2 types derived from SingleNamespaceOrTypeDeclaration
Microsoft.CodeAnalysis.CSharp (2)
Declarations\SingleNamespaceDeclaration.cs (1)
11internal class SingleNamespaceDeclaration : SingleNamespaceOrTypeDeclaration
Declarations\SingleTypeDeclaration.cs (1)
17internal sealed class SingleTypeDeclaration : SingleNamespaceOrTypeDeclaration
39 references to SingleNamespaceOrTypeDeclaration
Microsoft.CodeAnalysis.CSharp (39)
Compilation\SyntaxAndDeclarationManager.cs (5)
22private static readonly ObjectPool<Stack<SingleNamespaceOrTypeDeclaration>> s_declarationStack = 23new ObjectPool<Stack<SingleNamespaceOrTypeDeclaration>>(() => new Stack<SingleNamespaceOrTypeDeclaration>()); 615Stack<SingleNamespaceOrTypeDeclaration> stack = s_declarationStack.Allocate(); 622var current = stack.Pop();
Declarations\DeclarationTable.cs (1)
151Constraint = "Avoid " + nameof(SingleNamespaceOrTypeDeclaration.Location) + " since it has a costly allocation on this fast path.")]
Declarations\DeclarationTreeBuilder.cs (22)
24internal sealed class DeclarationTreeBuilder : CSharpSyntaxVisitor<SingleNamespaceOrTypeDeclaration> 123private ImmutableArray<SingleNamespaceOrTypeDeclaration> VisitNamespaceChildren( 134return ImmutableArray<SingleNamespaceOrTypeDeclaration>.Empty; 147var childrenBuilder = ArrayBuilder<SingleNamespaceOrTypeDeclaration>.GetInstance(); 150SingleNamespaceOrTypeDeclaration namespaceOrType = Visit(member); 216private static SingleNamespaceOrTypeDeclaration CreateImplicitClass(BoxedMemberNames memberNames, SyntaxReference container, SingleTypeDeclaration.TypeDeclarationFlags declFlags) 232private static SingleNamespaceOrTypeDeclaration CreateSimpleProgram(GlobalStatementSyntax firstGlobalStatement, bool hasAwaitExpressions, bool isIterator, bool hasReturnWithExpression, ImmutableArray<Diagnostic> diagnostics) 269var rootChildren = ArrayBuilder<SingleNamespaceOrTypeDeclaration>.GetInstance(); 274var decl = Visit(member); 320private SingleNamespaceOrTypeDeclaration CreateScriptClass( 333SingleNamespaceOrTypeDeclaration decl = new SingleTypeDeclaration( 390public override SingleNamespaceOrTypeDeclaration VisitCompilationUnit(CompilationUnitSyntax compilationUnit) 432private RootSingleNamespaceDeclaration CreateRootSingleNamespaceDeclaration(CompilationUnitSyntax compilationUnit, ImmutableArray<SingleNamespaceOrTypeDeclaration> children, bool isForScript) 493public override SingleNamespaceOrTypeDeclaration VisitFileScopedNamespaceDeclaration(FileScopedNamespaceDeclarationSyntax node) 496public override SingleNamespaceOrTypeDeclaration VisitNamespaceDeclaration(NamespaceDeclarationSyntax node) 518children = ImmutableArray.Create<SingleNamespaceOrTypeDeclaration>(ns); 656public override SingleNamespaceOrTypeDeclaration VisitClassDeclaration(ClassDeclarationSyntax node) 661public override SingleNamespaceOrTypeDeclaration VisitStructDeclaration(StructDeclarationSyntax node) 666public override SingleNamespaceOrTypeDeclaration VisitInterfaceDeclaration(InterfaceDeclarationSyntax node) 671public override SingleNamespaceOrTypeDeclaration VisitRecordDeclaration(RecordDeclarationSyntax node) 800public override SingleNamespaceOrTypeDeclaration VisitDelegateDeclaration(DelegateDeclarationSyntax node) 831public override SingleNamespaceOrTypeDeclaration VisitEnumDeclaration(EnumDeclarationSyntax node)
Declarations\MergedNamespaceDeclaration.cs (1)
98foreach (var child in decl.Children)
Declarations\RootSingleNamespaceDeclaration.cs (1)
32ImmutableArray<SingleNamespaceOrTypeDeclaration> children,
Declarations\SingleNamespaceDeclaration.cs (4)
13private readonly ImmutableArray<SingleNamespaceOrTypeDeclaration> _children; 19ImmutableArray<SingleNamespaceOrTypeDeclaration> children, 34protected override ImmutableArray<SingleNamespaceOrTypeDeclaration> GetNamespaceOrTypeDeclarationChildren() 69ImmutableArray<SingleNamespaceOrTypeDeclaration> children,
Declarations\SingleNamespaceDeclarationEx.cs (1)
19ImmutableArray<SingleNamespaceOrTypeDeclaration> children,
Declarations\SingleNamespaceOrTypeDeclaration.cs (2)
64public new ImmutableArray<SingleNamespaceOrTypeDeclaration> Children 72protected abstract ImmutableArray<SingleNamespaceOrTypeDeclaration> GetNamespaceOrTypeDeclarationChildren();
Declarations\SingleTypeDeclaration.cs (2)
207protected override ImmutableArray<SingleNamespaceOrTypeDeclaration> GetNamespaceOrTypeDeclarationChildren() 209return StaticCast<SingleNamespaceOrTypeDeclaration>.From(_children);