1 instantiation of RootSingleNamespaceDeclaration
Microsoft.CodeAnalysis.CSharp (1)
Declarations\DeclarationTreeBuilder.cs (1)
379
return new
RootSingleNamespaceDeclaration
(
27 references to RootSingleNamespaceDeclaration
Microsoft.CodeAnalysis.CSharp (22)
Compilation\SyntaxAndDeclarationManager.cs (6)
55
var declMapBuilder = PooledDictionary<SyntaxTree, Lazy<
RootSingleNamespaceDeclaration
>>.GetInstance();
152
IDictionary<SyntaxTree, Lazy<
RootSingleNamespaceDeclaration
>> declMapBuilder,
178
IDictionary<SyntaxTree, Lazy<
RootSingleNamespaceDeclaration
>> declMapBuilder,
273
IDictionary<SyntaxTree, Lazy<
RootSingleNamespaceDeclaration
>> declMapBuilder,
276
var lazyRoot = new Lazy<
RootSingleNamespaceDeclaration
>(() => DeclarationTreeBuilder.ForTree(tree, scriptClassName, isSubmission));
432
IDictionary<SyntaxTree, Lazy<
RootSingleNamespaceDeclaration
>> declMap,
Compilation\SyntaxAndDeclarationManager.LazyState.cs (2)
24
internal readonly ImmutableDictionary<SyntaxTree, Lazy<
RootSingleNamespaceDeclaration
>> RootNamespaces;
32
ImmutableDictionary<SyntaxTree, Lazy<
RootSingleNamespaceDeclaration
>> rootNamespaces,
Declarations\DeclarationTable.Cache.cs (1)
85
MergedRoot.Declarations.OfType<
RootSingleNamespaceDeclaration
>().SelectMany(r => r.ReferenceDirectives).AsImmutable());
Declarations\DeclarationTable.cs (7)
25
allOlderRootDeclarations: ImmutableSetWithInsertionOrder<Lazy<
RootSingleNamespaceDeclaration
>>.Empty,
31
private readonly ImmutableSetWithInsertionOrder<Lazy<
RootSingleNamespaceDeclaration
>> _allOlderRootDeclarations;
32
private readonly Lazy<
RootSingleNamespaceDeclaration
>? _latestLazyRootDeclaration;
45
ImmutableSetWithInsertionOrder<Lazy<
RootSingleNamespaceDeclaration
>> allOlderRootDeclarations,
46
Lazy<
RootSingleNamespaceDeclaration
>? latestLazyRootDeclaration,
54
public DeclarationTable AddRootDeclaration(Lazy<
RootSingleNamespaceDeclaration
> lazyRootDeclaration)
71
public DeclarationTable RemoveRootDeclaration(Lazy<
RootSingleNamespaceDeclaration
> lazyRootDeclaration)
Declarations\DeclarationTreeBuilder.cs (4)
39
public static
RootSingleNamespaceDeclaration
ForTree(
45
return (
RootSingleNamespaceDeclaration
)builder.Visit(syntaxTree.GetRoot());
180
private
RootSingleNamespaceDeclaration
CreateScriptRootDeclaration(CompilationUnitSyntax compilationUnit)
348
private
RootSingleNamespaceDeclaration
CreateRootSingleNamespaceDeclaration(CompilationUnitSyntax compilationUnit, ImmutableArray<SingleNamespaceOrTypeDeclaration> children, bool isForScript)
Symbols\Source\SourceAssemblySymbol.cs (1)
1545
foreach (
RootSingleNamespaceDeclaration
rootNs in declarations)
Symbols\Source\SourceNamedTypeSymbol.cs (1)
788
if (decl is
RootSingleNamespaceDeclaration
rootNamespaceDecl &&
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (5)
DeclarationTests.cs (5)
61
var
decl1 = DeclarationTreeBuilder.ForTree(tree1, TestOptions.DebugExe.ScriptClassName, isSubmission: false);
62
var
decl2 = DeclarationTreeBuilder.ForTree(tree2, TestOptions.DebugExe.ScriptClassName, isSubmission: false);
191
private Lazy<
RootSingleNamespaceDeclaration
> Lazy(
RootSingleNamespaceDeclaration
decl)
193
return new Lazy<
RootSingleNamespaceDeclaration
>(() => decl);