4 overrides of Modules
Microsoft.CodeAnalysis.CSharp (4)
Symbols\Metadata\PE\PEAssemblySymbol.cs (1)
110public override ImmutableArray<ModuleSymbol> Modules
Symbols\MissingAssemblySymbol.cs (1)
74public override ImmutableArray<ModuleSymbol> Modules
Symbols\Retargeting\RetargetingAssemblySymbol.cs (1)
166public override ImmutableArray<ModuleSymbol> Modules
Symbols\Source\SourceAssemblySymbol.cs (1)
564public override ImmutableArray<ModuleSymbol> Modules
37 references to Modules
Microsoft.CodeAnalysis.CSharp (37)
Binder\Binder_Symbols.cs (1)
2636Compilation.Assembly.Modules[0].GetReferencedAssemblySymbols())
Compilation\CSharpCompilation.cs (5)
1203return index < 0 ? null : this.Assembly.Modules[index]; 1216return Assembly.Modules.SelectMany(module => module.GetReferencedAssemblies()); 1304modules.AddRange(Assembly.Modules); 1401return Assembly.Modules[0]; 1672result = new MissingMetadataTypeSymbol.TopLevel(Assembly.CorLibrary.Modules[0], ref emittedName, specialType);
Compiler\ClsComplianceChecker.cs (3)
115for (int i = 0; i < symbol.Modules.Length; i++) 117ModuleSymbol module = symbol.Modules[i]; 165ModuleSymbol sourceModule = symbol.Modules[0];
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (4)
190return otherAssembly.Modules[0]; 194for (int i = 1; i < otherAssembly.Modules.Length; i++) 196var otherModule = otherAssembly.Modules[i]; 225foreach (var otherReferencedAssembly in _otherAssembly.Modules[0].ReferencedAssemblySymbols)
Emitter\Model\PEModuleBuilder.cs (2)
898AssemblyOrModuleSymbolToModuleRefMap.TryAdd(assembly.Modules[0], cachedAsmRef); 932if ((object)container != null && ReferenceEquals(container.Modules[0], module))
Emitter\NoPia\EmbeddedTypesManager.cs (1)
232foreach (ModuleSymbol m in a.Modules)
Symbols\AssemblySymbol.cs (3)
111return Modules[0].Machine; 122return Modules[0].Bit32Required; 363return new MissingMetadataTypeSymbol.TopLevel(this.Modules[0], ref emittedName, diagnosticInfo);
Symbols\Compilation_UsedAssemblies.cs (2)
103for (int i = (includeMainModule ? 0 : 1); i < assembly.Modules.Length; i++) 105foreach (var dependency in assembly.Modules[i].ReferencedAssemblySymbols)
Symbols\Compilation_WellKnownMembers.cs (2)
170result = new MissingMetadataTypeSymbol.TopLevel(this.Assembly.Modules[0], ref emittedName, type, errorInfo); 174result = new MissingMetadataTypeSymbol.TopLevel(this.Assembly.Modules[0], ref emittedName, type);
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
217specifierType = new MissingMetadataTypeSymbol.TopLevel(compilation.Assembly.CorLibrary.Modules[0], ref metadataName, new CSDiagnosticInfo(ErrorCode.ERR_TypeNotFound, typeName));
Symbols\MetadataOrSourceAssemblySymbol.cs (5)
48foreach (var module in this.Modules) 57ModuleSymbol module = this.Modules[0]; 128Interlocked.CompareExchange(ref _lazyTypeNames, UnionCollection<string>.Create(this.Modules, m => m.TypeNames), null); 165Interlocked.CompareExchange(ref _lazyNamespaceNames, UnionCollection<string>.Create(this.Modules, m => m.NamespaceNames), null); 184foreach (var module in this.Modules)
Symbols\NonMissingAssemblySymbol.cs (3)
62IEnumerable<NamespaceSymbol> allGlobalNamespaces = from m in Modules select m.GlobalNamespace; 138foreach (var module in this.Modules) 182return CacheTopLevelMetadataType(ref emittedName, result ?? new MissingMetadataTypeSymbol.TopLevel(this.Modules[0], ref emittedName));
Symbols\ReferenceManager.cs (4)
128foreach (var module in assemblySymbol.Modules) 330assemblySymbol.Modules[0].SetReferences(sourceModuleReferences); 332var assemblyModules = assemblySymbol.Modules; 1097var modules = compilation.Assembly.Modules;
Symbols\Source\SourceNamespaceSymbol.cs (1)
296if (@namespace.ContainingAssembly.Modules.Length > 1)