2 types derived from ModuleSymbol
Microsoft.CodeAnalysis.CSharp (2)
Symbols\MissingModuleSymbol.cs (1)
24internal class MissingModuleSymbol : ModuleSymbol
Symbols\NonMissingModuleSymbol.cs (1)
21internal abstract class NonMissingModuleSymbol : ModuleSymbol
110 references to ModuleSymbol
Microsoft.CodeAnalysis.CSharp (110)
Binder\Binder_Symbols.cs (2)
2121ModuleSymbol arg2 = second.ContainingModule; 2131ModuleSymbol module = ns.ContainingModule;
Compilation\CSharpCompilation.cs (6)
1177/// Gets the <see cref="AssemblySymbol"/> or <see cref="ModuleSymbol"/> for a metadata reference used to create this compilation. 1179/// <returns><see cref="AssemblySymbol"/> or <see cref="ModuleSymbol"/> corresponding to the given reference or null if there is none.</returns> 1296private void GetAllUnaliasedModules(ArrayBuilder<ModuleSymbol> modules) 1392internal new ModuleSymbol SourceModule 1414var modules = ArrayBuilder<ModuleSymbol>.GetInstance(); 3702ImmutableArray<ModuleSymbol> modules = SourceAssembly.Modules;
Compiler\ClsComplianceChecker.cs (2)
117ModuleSymbol module = symbol.Modules[i]; 165ModuleSymbol sourceModule = symbol.Modules[0];
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (3)
179public override Symbol? VisitModule(ModuleSymbol module) 196var otherModule = otherAssembly.Modules[i]; 261return ((ModuleSymbol)otherContainer).GlobalNamespace;
Emitter\Model\ModuleReference.cs (2)
20private readonly ModuleSymbol _underlyingModule; 22internal ModuleReference(PEModuleBuilder moduleBeingBuilt, ModuleSymbol underlyingModule)
Emitter\Model\PEModuleBuilder.cs (3)
154ImmutableArray<ModuleSymbol> modules = SourceModule.ContainingAssembly.Modules; 903internal Cci.IModuleReference Translate(ModuleSymbol module, DiagnosticBag diagnostics) 928protected virtual Cci.IModuleReference TranslateModule(ModuleSymbol module, DiagnosticBag diagnostics)
Emitter\NoPia\EmbeddedTypesManager.cs (1)
232foreach (ModuleSymbol m in a.Modules)
Symbols\AssemblySymbol.cs (2)
179public abstract ImmutableArray<ModuleSymbol> Modules { get; } 366internal ErrorTypeSymbol CreateMultipleForwardingErrorTypeSymbol(ref MetadataTypeName emittedName, ModuleSymbol forwardingModule, AssemblySymbol destination1, AssemblySymbol destination2)
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
330public static FunctionPointerMethodSymbol CreateFromMetadata(ModuleSymbol containingModule, CallingConvention callingConvention, ImmutableArray<ParamInfo<TypeSymbol>> retAndParamTypes)
Symbols\FunctionPointers\FunctionPointerTypeSymbol.cs (1)
55public static FunctionPointerTypeSymbol CreateFromMetadata(ModuleSymbol containingModule, Cci.CallingConvention callingConvention, ImmutableArray<ParamInfo<TypeSymbol>> retAndParamTypes)
Symbols\Metadata\PE\MetadataDecoder.cs (1)
157foreach (ModuleSymbol m in moduleSymbol.ContainingAssembly.Modules)
Symbols\Metadata\PE\PEAssemblySymbol.cs (3)
39private readonly ImmutableArray<ModuleSymbol> _modules; 80var modules = new ModuleSymbol[assembly.Modules.Length]; 110public override ImmutableArray<ModuleSymbol> Modules
Symbols\Metadata\PE\PEGlobalNamespaceSymbol.cs (1)
74internal override ModuleSymbol ContainingModule
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
382internal override ModuleSymbol ContainingModule
Symbols\Metadata\PE\PENestedNamespaceSymbol.cs (1)
118internal override ModuleSymbol ContainingModule
Symbols\MetadataOrSourceAssemblySymbol.cs (3)
48foreach (var module in this.Modules) 57ModuleSymbol module = this.Modules[0]; 184foreach (var module in this.Modules)
Symbols\MissingAssemblySymbol.cs (3)
29private ImmutableArray<ModuleSymbol> _lazyModules; 74public override ImmutableArray<ModuleSymbol> Modules 80_lazyModules = ImmutableArray.Create<ModuleSymbol>(moduleSymbol);
Symbols\MissingCorLibrarySymbol.cs (1)
63foreach (var module in this.Modules)
Symbols\MissingMetadataTypeSymbol.cs (10)
84ModuleSymbol containingModule = this.ContainingModule; 143private readonly ModuleSymbol _containingModule; 153public TopLevel(ModuleSymbol module, string @namespace, string name, int arity, bool mangleName) 158public TopLevel(ModuleSymbol module, ref MetadataTypeName fullName, DiagnosticInfo? errorInfo = null) 163public TopLevel(ModuleSymbol module, ref MetadataTypeName fullName, ExtendedSpecialType specialType, DiagnosticInfo? errorInfo = null) 168public TopLevel(ModuleSymbol module, ref MetadataTypeName fullName, WellKnownType wellKnownType, DiagnosticInfo? errorInfo = null) 173private TopLevel(ModuleSymbol module, ref MetadataTypeName fullName, int typeId, DiagnosticInfo? errorInfo) 178private TopLevel(ModuleSymbol module, ref MetadataTypeName fullName, bool mangleName, DiagnosticInfo? errorInfo, int typeId) 191private TopLevel(ModuleSymbol module, string @namespace, string name, int arity, bool mangleName, bool isNativeInt, DiagnosticInfo? errorInfo, NamespaceSymbol? containingNamespace, int typeId, TupleExtraData? tupleData) 220internal override ModuleSymbol ContainingModule
Symbols\MissingModuleSymbol.cs (1)
21/// A <see cref="MissingModuleSymbol"/> is a special kind of <see cref="ModuleSymbol"/> that represents
Symbols\MissingNamespaceSymbol.cs (1)
70return new NamespaceExtent((ModuleSymbol)_containingSymbol);
Symbols\ModuleSymbol.cs (1)
47internal sealed override ModuleSymbol ContainingModule
Symbols\NamespaceExtent.cs (3)
40public ModuleSymbol Module 46return (ModuleSymbol)_symbolOrCompilation; 95internal NamespaceExtent(ModuleSymbol module)
Symbols\NamespaceSymbol.cs (1)
103internal override ModuleSymbol ContainingModule
Symbols\NonMissingAssemblySymbol.cs (1)
138foreach (var module in this.Modules)
Symbols\NonMissingModuleSymbol.cs (1)
18/// A <see cref="NonMissingModuleSymbol"/> is a special kind of <see cref="ModuleSymbol"/> that represents
Symbols\NoPiaIllegalGenericInstantiationSymbol.cs (2)
21private readonly ModuleSymbol _exposingModule; 24public NoPiaIllegalGenericInstantiationSymbol(ModuleSymbol exposingModule, NamedTypeSymbol underlyingSymbol)
Symbols\PublicModel\ModuleSymbol.cs (2)
14private readonly Symbols.ModuleSymbol _underlying; 16public ModuleSymbol(Symbols.ModuleSymbol underlying)
Symbols\ReferenceManager.cs (3)
128foreach (var module in assemblySymbol.Modules) 649ImmutableArray<ModuleSymbol> modules = retargetingAssemblySymbol.Modules; 727ImmutableArray<ModuleSymbol> modules = portableExecutableAssemblySymbol.Modules;
Symbols\Retargeting\RetargetingAssemblySymbol.cs (4)
54private readonly ImmutableArray<ModuleSymbol> _modules; 108ModuleSymbol[] modules = new ModuleSymbol[underlyingAssembly.Modules.Length]; 166public override ImmutableArray<ModuleSymbol> Modules
Symbols\Retargeting\RetargetingEventSymbol.cs (1)
148internal override ModuleSymbol ContainingModule
Symbols\Retargeting\RetargetingFieldSymbol.cs (1)
96internal override ModuleSymbol ContainingModule
Symbols\Retargeting\RetargetingMethodSymbol.cs (1)
282internal override ModuleSymbol ContainingModule
Symbols\Retargeting\RetargetingModuleSymbol.cs (1)
39/// The underlying <see cref="ModuleSymbol"/>, cannot be another <see cref="RetargetingModuleSymbol"/>.
Symbols\Retargeting\RetargetingNamedTypeSymbol.cs (1)
240internal override ModuleSymbol ContainingModule
Symbols\Retargeting\RetargetingNamespaceSymbol.cs (1)
177internal override ModuleSymbol ContainingModule
Symbols\Retargeting\RetargetingParameterSymbol.cs (1)
89internal sealed override ModuleSymbol ContainingModule
Symbols\Retargeting\RetargetingPropertySymbol.cs (1)
208internal override ModuleSymbol ContainingModule
Symbols\Retargeting\RetargetingSymbolTranslator.cs (2)
279var module = type.ContainingModule; 1317public override Symbol VisitModule(ModuleSymbol symbol, RetargetOptions options)
Symbols\Retargeting\RetargetingTypeParameterSymbol.cs (1)
76internal override ModuleSymbol ContainingModule
Symbols\SignatureOnlyMethodSymbol.cs (1)
161internal override ModuleSymbol ContainingModule { get { throw ExceptionUtilities.Unreachable(); } }
Symbols\SignatureOnlyParameterSymbol.cs (1)
101internal override ModuleSymbol ContainingModule { get { throw ExceptionUtilities.Unreachable(); } }
Symbols\SignatureOnlyPropertySymbol.cs (1)
96internal override ModuleSymbol ContainingModule { get { throw ExceptionUtilities.Unreachable(); } }
Symbols\Source\SourceAssemblySymbol.cs (7)
60private readonly ImmutableArray<ModuleSymbol> _modules; 129ArrayBuilder<ModuleSymbol> moduleBuilder = new ArrayBuilder<ModuleSymbol>(1 + netModules.Length); 564public override ImmutableArray<ModuleSymbol> Modules 996ModuleSymbol m = _modules[i]; 2057private static bool ContainsExtensionMethods(ImmutableArray<ModuleSymbol> modules) 2059foreach (var module in modules)
Symbols\Source\SourceNamespaceSymbol.cs (1)
208internal override ModuleSymbol ContainingModule
Symbols\Symbol.cs (1)
337internal virtual ModuleSymbol ContainingModule
Symbols\SymbolExtensions.cs (1)
653internal static IModuleSymbol? GetPublicSymbol(this ModuleSymbol? symbol)
Symbols\SymbolVisitor.cs (1)
75public virtual void VisitModule(ModuleSymbol symbol)
Symbols\SymbolVisitor`1.cs (1)
75public virtual TResult VisitModule(ModuleSymbol symbol)
Symbols\SymbolVisitor`2.cs (2)
60/// Called when visiting a <see cref="ModuleSymbol" />; Override this method with specific 66public virtual TResult VisitModule(ModuleSymbol symbol, TArgument argument)
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorTypeSymbol.cs (1)
146internal override ModuleSymbol ContainingModule => _containingType.ContainingModule;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (2)
256private readonly ModuleSymbol _containingModule; 823internal override ModuleSymbol ContainingModule => _containingModule;
Symbols\Synthesized\SynthesizedEmbeddedAttributeSymbol.cs (4)
33private readonly ModuleSymbol _module; 38ModuleSymbol containingModule, 78internal override ModuleSymbol ContainingModule => _module; 237ModuleSymbol containingModule,
Symbols\Synthesized\SynthesizedEmbeddedLifetimeAnnotationAttributeSymbol.cs (1)
17ModuleSymbol containingModule,
Symbols\Synthesized\SynthesizedEmbeddedNativeIntegerAttributeSymbol.cs (1)
25ModuleSymbol containingModule,
Symbols\Synthesized\SynthesizedEmbeddedNullableAttributeSymbol.cs (1)
27ModuleSymbol containingModule,
Symbols\Synthesized\SynthesizedEmbeddedNullableContextAttributeSymbol.cs (1)
24ModuleSymbol containingModule,
Symbols\Synthesized\SynthesizedEmbeddedNullablePublicOnlyAttributeSymbol.cs (1)
24ModuleSymbol containingModule,
Symbols\Synthesized\SynthesizedEmbeddedRefSafetyRulesAttributeSymbol.cs (1)
22ModuleSymbol containingModule,
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (2)
25private readonly ModuleSymbol _containingModule; 71internal override ModuleSymbol ContainingModule => _containingModule;