2 implementations of Modules
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\AssemblySymbol.cs (1)
29IEnumerable<IModuleSymbol> IAssemblySymbol.Modules
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\AssemblySymbol.vb (1)
765Private ReadOnly Property IAssemblySymbol_Modules As IEnumerable(Of IModuleSymbol) Implements IAssemblySymbol.Modules
67 references to Modules
ConfigurationSchemaGenerator (1)
RuntimeSource\Roslyn\GetBestTypeByMetadataName.cs (1)
49foreach (var module in compilation.Assembly.Modules)
ILLink.RoslynAnalyzer (1)
CompilationExtensions.cs (1)
50 foreach (var module in compilation.Assembly.Modules) {
Microsoft.CodeAnalysis (3)
CommandLine\CommonCompiler.cs (1)
626foreach (var assembly in currentAssembly.Modules.First().ReferencedAssemblySymbols.OrderBy(a => a.Name))
DiagnosticAnalyzer\SuppressMessageAttributeState.cs (1)
264foreach (var module in _compilation.Assembly.Modules)
SourceGeneration\Nodes\SyntaxValueProvider_ForAttributeWithMetadataName.cs (1)
150foreach (var module in assemblySymbol.Modules)
Microsoft.CodeAnalysis.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ICompilationExtensions.cs (1)
46var referencedAssemblySymbols = compilation.Assembly.Modules.First().ReferencedAssemblySymbols;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ModuleSymbolKey.cs (1)
37var assemblyModules = assembly.Modules;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
702var module = GetModule(assembly.Modules, moduleName);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (5)
SymbolKey\SymbolKeyCompilationsTests.cs (4)
603sym1 = comp1.Assembly.Modules.First(); 604sym2 = comp2.Assembly.Modules.First(); 636var module1 = compilation1.Assembly.Modules.First(); 637var module2 = compilation2.Assembly.Modules.First();
SymbolKey\SymbolKeyTestBase.cs (1)
209list.AddRange(c.Assembly.Modules);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (6)
Emit\CompilationEmitTests.cs (6)
4019var module = assembly.Modules.Single(); 4055var module = assembly.Modules.Single(); 4085var module = assembly.Modules.Single(); 4116var module = assembly.Modules.Single(); 4147var module = assembly.Modules.Single(); 4178var module = assembly.Modules.Single();
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (7)
Attributes\AttributeTests_Assembly.cs (6)
1786var module = (PEModuleSymbol)appCompilation.Assembly.Modules[1]; 2123Assert.Equal(3, appCompilation.Assembly.Modules.Length); 2155Assert.Equal(3, appCompilation.Assembly.Modules.Length); 2185Assert.Equal(3, appCompilation.Assembly.Modules.Length); 2217Assert.Equal(3, appCompilation.Assembly.Modules.Length); 2242Assert.Equal(2, appCompilation.Assembly.Modules.Length);
Attributes\InternalsVisibleToAndStrongNameTests.cs (1)
1853Assert.StartsWith("0024000004", ((SourceAssemblySymbol)comp.Assembly.Modules[1].ContainingAssembly).SignatureKey);
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (2)
InteractiveSessionReferencesTests.cs (2)
153var m = s1.GetCompilation().Assembly.Modules.Single(); 155var missingB = m.ReferencedAssemblySymbols.Single(a => a.Name == "libA").Modules.Single().ReferencedAssemblySymbols.Single(a => a.Name == "libB");
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\InheritanceBindingTests.cs (1)
6704var c2Type = comp.Assembly.Modules[0].GlobalNamespace.GetTypeMembers("C2").Single();
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (16)
Compilation\CompilationAPITests.cs (3)
3105Assert.Equal(2, comp.Assembly.Modules.Length); 3126Assert.Equal(1, comp.Assembly.Modules.Length); 3147Assert.Equal(1, comp.Assembly.Modules.Length);
Compilation\ReferenceManagerTests.cs (2)
946var mods = compilation.Assembly.Modules.ToArray(); 1001var refs = compilation.Assembly.Modules.Select(module => module.GetReferencedAssemblies()).ToArray();
Compilation\SymbolVisitorTests.cs (3)
60VisitChildren(symbol.Modules); 231VisitChildren(symbol.Modules); 394VisitChildren(symbol.Modules, argument);
Symbols\CompilationCreationTests.cs (2)
2979var sourceModule = sourceAssembly.Modules[0]; 2991var addedModule = sourceAssembly.Modules[1];
Symbols\Metadata\PE\BaseTypeResolution.cs (2)
313Assert.Equal("System.Object", ((SourceModuleSymbol)c1.Assembly.Modules[0]).GetCorLibType(SpecialType.System_Object).ToTestDisplayString()); 318Assert.Equal("System.Object[missing]", ((SourceModuleSymbol)c2.Assembly.Modules[0]).GetCorLibType(SpecialType.System_Object).ToTestDisplayString());
Symbols\Metadata\PE\TypeForwarders.cs (2)
1632var module = (PEModuleSymbol)appCompilation.Assembly.Modules[1]; 1686module = (PEModuleSymbol)appCompilation.Assembly.Modules[1];
Symbols\SymbolErrorTests.cs (2)
7094Assert.Equal(1, comp.Assembly.Modules[1].GlobalNamespace.GetTypeMembers("<ModuleA01>f__AnonymousType0", 1).Length); 7095Assert.Equal(1, comp.Assembly.Modules[2].GlobalNamespace.GetTypeMembers("<ModuleB01>f__AnonymousType0", 1).Length);
Microsoft.CodeAnalysis.Features.UnitTests (1)
FindUsages\DefinitionItemFactoryTests.cs (1)
212var m = compilation.Assembly.Modules.Single();
Microsoft.CodeAnalysis.Test.Utilities (2)
CommonTestBase.cs (1)
97var module = compilation.Assembly.Modules.First();
CompilationVerifier.cs (1)
700return ((IAssemblySymbol)symbol).Modules.First();
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\AssemblySymbol.vb (1)
765Private ReadOnly Property IAssemblySymbol_Modules As IEnumerable(Of IModuleSymbol) Implements IAssemblySymbol.Modules
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (4)
Attributes\AssemblyAttributes.vb (4)
2080Assert.Equal(3, appCompilation.Assembly.Modules.Length) 2130Assert.Equal(3, appCompilation.Assembly.Modules.Length) 2178Assert.Equal(3, appCompilation.Assembly.Modules.Length) 2227Assert.Equal(3, appCompilation.Assembly.Modules.Length)
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (1)
EETypeNameDecoder.vb (1)
74Return _compilation.Assembly.Modules.Single()
Microsoft.CodeAnalysis.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ICompilationExtensions.cs (1)
46var referencedAssemblySymbols = compilation.Assembly.Modules.First().ReferencedAssemblySymbols;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ModuleSymbolKey.cs (1)
37var assemblyModules = assembly.Modules;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
702var module = GetModule(assembly.Modules, moduleName);
Microsoft.Extensions.Logging.Generators (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
49foreach (var module in compilation.Assembly.Modules)
Microsoft.Extensions.Options.SourceGeneration (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
49foreach (var module in compilation.Assembly.Modules)
Microsoft.Gen.Logging (1)
src\Generators\Shared\RoslynExtensions.cs (1)
61foreach (var module in compilation.Assembly.Modules)
Microsoft.Gen.Metrics (1)
src\Generators\Shared\RoslynExtensions.cs (1)
61foreach (var module in compilation.Assembly.Modules)
Microsoft.Interop.ComInterfaceGenerator (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
49foreach (var module in compilation.Assembly.Modules)
Microsoft.Interop.LibraryImportGenerator (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
49foreach (var module in compilation.Assembly.Modules)
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
49foreach (var module in compilation.Assembly.Modules)
Microsoft.Interop.SourceGeneration (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
49foreach (var module in compilation.Assembly.Modules)
System.Text.Json.SourceGeneration (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
49foreach (var module in compilation.Assembly.Modules)
System.Text.RegularExpressions.Generator (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
49foreach (var module in compilation.Assembly.Modules)