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