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