25 references to RootSingleNamespaceDeclaration
Microsoft.CodeAnalysis.CSharp (23)
Compilation\SyntaxAndDeclarationManager.cs (7)
60
var declMapBuilder = PooledDictionary<SyntaxTree, Lazy<
RootSingleNamespaceDeclaration
>>.GetInstance();
163
IDictionary<SyntaxTree, Lazy<
RootSingleNamespaceDeclaration
>> declMapBuilder,
198
IDictionary<SyntaxTree, Lazy<
RootSingleNamespaceDeclaration
>> declMapBuilder,
295
IDictionary<SyntaxTree, Lazy<
RootSingleNamespaceDeclaration
>> declMapBuilder,
299
var lazyRoot = new Lazy<
RootSingleNamespaceDeclaration
>(() => DeclarationTreeBuilder.ForTree(tree, scriptClassName, isSubmission, lastComputedMemberNames));
458
IDictionary<SyntaxTree, Lazy<
RootSingleNamespaceDeclaration
>> declMap,
607
ImmutableDictionary<SyntaxTree, Lazy<
RootSingleNamespaceDeclaration
>>.Builder declMapBuilder,
Compilation\SyntaxAndDeclarationManager.LazyState.cs (2)
24
internal readonly ImmutableDictionary<SyntaxTree, Lazy<
RootSingleNamespaceDeclaration
>> RootNamespaces;
51
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)
87
public static
RootSingleNamespaceDeclaration
ForTree(
96
return (
RootSingleNamespaceDeclaration
)builder.Visit(syntaxTree.GetRoot());
264
private
RootSingleNamespaceDeclaration
CreateScriptRootDeclaration(CompilationUnitSyntax compilationUnit)
432
private
RootSingleNamespaceDeclaration
CreateRootSingleNamespaceDeclaration(CompilationUnitSyntax compilationUnit, ImmutableArray<SingleNamespaceOrTypeDeclaration> children, bool isForScript)
Symbols\Source\SourceAssemblySymbol.cs (1)
1554
foreach (
RootSingleNamespaceDeclaration
rootNs in declarations)
Symbols\Source\SourceNamedTypeSymbol.cs (1)
785
if (decl is
RootSingleNamespaceDeclaration
rootNamespaceDecl &&
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
DeclarationTests.cs (2)
61
var
decl1 = DeclarationTreeBuilder.ForTree(tree1, TestOptions.DebugExe.ScriptClassName, isSubmission: false);
62
var
decl2 = DeclarationTreeBuilder.ForTree(tree2, TestOptions.DebugExe.ScriptClassName, isSubmission: false);