25 references to RootSingleNamespaceDeclaration
Microsoft.CodeAnalysis.CSharp (23)
Compilation\SyntaxAndDeclarationManager.cs (7)
60var declMapBuilder = PooledDictionary<SyntaxTree, Lazy<RootSingleNamespaceDeclaration>>.GetInstance(); 163IDictionary<SyntaxTree, Lazy<RootSingleNamespaceDeclaration>> declMapBuilder, 198IDictionary<SyntaxTree, Lazy<RootSingleNamespaceDeclaration>> declMapBuilder, 295IDictionary<SyntaxTree, Lazy<RootSingleNamespaceDeclaration>> declMapBuilder, 299var lazyRoot = new Lazy<RootSingleNamespaceDeclaration>(() => DeclarationTreeBuilder.ForTree(tree, scriptClassName, isSubmission, lastComputedMemberNames)); 458IDictionary<SyntaxTree, Lazy<RootSingleNamespaceDeclaration>> declMap, 607ImmutableDictionary<SyntaxTree, Lazy<RootSingleNamespaceDeclaration>>.Builder declMapBuilder,
Compilation\SyntaxAndDeclarationManager.LazyState.cs (2)
24internal readonly ImmutableDictionary<SyntaxTree, Lazy<RootSingleNamespaceDeclaration>> RootNamespaces; 51ImmutableDictionary<SyntaxTree, Lazy<RootSingleNamespaceDeclaration>> rootNamespaces,
Declarations\DeclarationTable.Cache.cs (1)
85MergedRoot.Declarations.OfType<RootSingleNamespaceDeclaration>().SelectMany(r => r.ReferenceDirectives).AsImmutable());
Declarations\DeclarationTable.cs (7)
25allOlderRootDeclarations: ImmutableSetWithInsertionOrder<Lazy<RootSingleNamespaceDeclaration>>.Empty, 31private readonly ImmutableSetWithInsertionOrder<Lazy<RootSingleNamespaceDeclaration>> _allOlderRootDeclarations; 32private readonly Lazy<RootSingleNamespaceDeclaration>? _latestLazyRootDeclaration; 45ImmutableSetWithInsertionOrder<Lazy<RootSingleNamespaceDeclaration>> allOlderRootDeclarations, 46Lazy<RootSingleNamespaceDeclaration>? latestLazyRootDeclaration, 54public DeclarationTable AddRootDeclaration(Lazy<RootSingleNamespaceDeclaration> lazyRootDeclaration) 71public DeclarationTable RemoveRootDeclaration(Lazy<RootSingleNamespaceDeclaration> lazyRootDeclaration)
Declarations\DeclarationTreeBuilder.cs (4)
87public static RootSingleNamespaceDeclaration ForTree( 96return (RootSingleNamespaceDeclaration)builder.Visit(syntaxTree.GetRoot()); 264private RootSingleNamespaceDeclaration CreateScriptRootDeclaration(CompilationUnitSyntax compilationUnit) 432private RootSingleNamespaceDeclaration CreateRootSingleNamespaceDeclaration(CompilationUnitSyntax compilationUnit, ImmutableArray<SingleNamespaceOrTypeDeclaration> children, bool isForScript)
Symbols\Source\SourceAssemblySymbol.cs (1)
1554foreach (RootSingleNamespaceDeclaration rootNs in declarations)
Symbols\Source\SourceNamedTypeSymbol.cs (1)
785if (decl is RootSingleNamespaceDeclaration rootNamespaceDecl &&
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
DeclarationTests.cs (2)
61var decl1 = DeclarationTreeBuilder.ForTree(tree1, TestOptions.DebugExe.ScriptClassName, isSubmission: false); 62var decl2 = DeclarationTreeBuilder.ForTree(tree2, TestOptions.DebugExe.ScriptClassName, isSubmission: false);