예제 #1
0
        protected override void OnGetTypesCompleted(ImmutableArray <EmbeddedType> types, DiagnosticBag diagnostics)
        {
            foreach (EmbeddedType t in types)
            {
                // Note, once we reached this point we are no longer interested in guid values, using null.
                assemblyGuidMap.TryAdd(t.UnderlyingNamedType.ContainingAssembly, null);
            }

            foreach (AssemblySymbol a in ModuleBeingBuilt.GetReferencedAssembliesUsedSoFar())
            {
                ReportIndirectReferencesToLinkedAssemblies(a, diagnostics);
            }
        }
예제 #2
0
        Microsoft.Cci.ITypeReference Microsoft.Cci.IFieldReference.GetType(object m)
        {
            var customModifiers = UnderlyingField.CustomModifiers;

            if (customModifiers.Count == 0)
            {
                return(ModuleBeingBuilt.Translate(UnderlyingField.Type));
            }
            else
            {
                return(new ModifiedTypeReference(ModuleBeingBuilt, UnderlyingField.Type, customModifiers));
            }
        }