2 instantiations of MergedNamespaceDeclaration
Microsoft.CodeAnalysis.CSharp (2)
Declarations\MergedNamespaceDeclaration.cs (2)
30return new MergedNamespaceDeclaration(declarations); 35return new MergedNamespaceDeclaration(ImmutableArray.Create(declaration));
22 references to MergedNamespaceDeclaration
Microsoft.CodeAnalysis.CSharp (21)
Compilation\CSharpCompilation.cs (1)
2848internal MergedNamespaceDeclaration MergedRootDeclaration
Declarations\DeclarationTable.Cache.cs (3)
27private MergedNamespaceDeclaration? _mergedRoot; 39public MergedNamespaceDeclaration MergedRoot 47MergedNamespaceDeclaration.Create(_table._allOlderRootDeclarations.InInsertionOrder.Select(static lazyRoot => lazyRoot.Value).AsImmutable<SingleNamespaceDeclaration>()),
Declarations\DeclarationTable.cs (9)
38private MergedNamespaceDeclaration? _mergedRoot; 103public MergedNamespaceDeclaration GetMergedRoot(CSharpCompilation compilation) 114internal MergedNamespaceDeclaration CalculateMergedRoot(CSharpCompilation compilation) 116var oldRoot = _cache.MergedRoot; 123return MergedNamespaceDeclaration.Create(_latestLazyRootDeclaration.Value); 136return MergedNamespaceDeclaration.Create(builder.ToImmutableAndFree()); 275MergedNamespaceDeclaration mergedRoot, 289MergedNamespaceDeclaration mergedRoot, 311MergedNamespaceDeclaration mergedRoot,
Declarations\MergedNamespaceDeclaration.cs (4)
28public static MergedNamespaceDeclaration Create(ImmutableArray<SingleNamespaceDeclaration> declarations) 33public static MergedNamespaceDeclaration Create(SingleNamespaceDeclaration declaration) 154children.Add(MergedNamespaceDeclaration.Create(namespaces.ToImmutableAndFree())); 175children.Add(MergedNamespaceDeclaration.Create(namespaceGroup.ToImmutableAndFree()));
Symbols\Source\SourceNamespaceSymbol.cs (4)
27private readonly MergedNamespaceDeclaration _mergedDeclaration; 55MergedNamespaceDeclaration mergedDeclaration, 67internal MergedNamespaceDeclaration MergedDeclaration 405return new SourceNamespaceSymbol(_module, this, (MergedNamespaceDeclaration)declaration, diagnostics);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
DeclarationTests.cs (1)
120var mr = table.CalculateMergedRoot(null);