37 references to StackAllocKeyword
Microsoft.CodeAnalysis.CSharp (7)
Parser\LanguageParser.cs (5)
9970
case SyntaxKind.
StackAllocKeyword
:
10735
case SyntaxKind.
StackAllocKeyword
:
12149
Debug.Assert(this.CurrentToken.Kind is SyntaxKind.NewKeyword or SyntaxKind.
StackAllocKeyword
);
12231
var @stackalloc = this.EatToken(SyntaxKind.
StackAllocKeyword
);
12263
this.EatToken(SyntaxKind.
StackAllocKeyword
),
Syntax\SyntaxKindFacts.cs (2)
921
return SyntaxKind.
StackAllocKeyword
;
1561
case SyntaxKind.
StackAllocKeyword
:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
732
syntaxTree.IsAfterKeyword(position, SyntaxKind.
StackAllocKeyword
, cancellationToken) ||
Microsoft.CodeAnalysis.CSharp.Features (14)
Completion\KeywordRecommenders\BoolKeywordRecommender.cs (1)
43
syntaxTree.IsAfterKeyword(position, SyntaxKind.
StackAllocKeyword
, cancellationToken) ||
Completion\KeywordRecommenders\ByteKeywordRecommender.cs (1)
44
syntaxTree.IsAfterKeyword(position, SyntaxKind.
StackAllocKeyword
, cancellationToken) ||
Completion\KeywordRecommenders\CharKeywordRecommender.cs (1)
43
syntaxTree.IsAfterKeyword(position, SyntaxKind.
StackAllocKeyword
, cancellationToken) ||
Completion\KeywordRecommenders\DecimalKeywordRecommender.cs (1)
43
syntaxTree.IsAfterKeyword(position, SyntaxKind.
StackAllocKeyword
, cancellationToken) ||
Completion\KeywordRecommenders\DoubleKeywordRecommender.cs (1)
43
syntaxTree.IsAfterKeyword(position, SyntaxKind.
StackAllocKeyword
, cancellationToken) ||
Completion\KeywordRecommenders\FloatKeywordRecommender.cs (1)
43
syntaxTree.IsAfterKeyword(position, SyntaxKind.
StackAllocKeyword
, cancellationToken) ||
Completion\KeywordRecommenders\IntKeywordRecommender.cs (1)
44
syntaxTree.IsAfterKeyword(position, SyntaxKind.
StackAllocKeyword
, cancellationToken) ||
Completion\KeywordRecommenders\LongKeywordRecommender.cs (1)
44
syntaxTree.IsAfterKeyword(position, SyntaxKind.
StackAllocKeyword
, cancellationToken) ||
Completion\KeywordRecommenders\SByteKeywordRecommender.cs (1)
44
syntaxTree.IsAfterKeyword(position, SyntaxKind.
StackAllocKeyword
, cancellationToken) ||
Completion\KeywordRecommenders\ShortKeywordRecommender.cs (1)
44
syntaxTree.IsAfterKeyword(position, SyntaxKind.
StackAllocKeyword
, cancellationToken) ||
Completion\KeywordRecommenders\StackAllocKeywordRecommender.cs (1)
13
: base(SyntaxKind.
StackAllocKeyword
)
Completion\KeywordRecommenders\UIntKeywordRecommender.cs (1)
44
syntaxTree.IsAfterKeyword(position, SyntaxKind.
StackAllocKeyword
, cancellationToken) ||
Completion\KeywordRecommenders\ULongKeywordRecommender.cs (1)
44
syntaxTree.IsAfterKeyword(position, SyntaxKind.
StackAllocKeyword
, cancellationToken) ||
Completion\KeywordRecommenders\UShortKeywordRecommender.cs (1)
51
syntaxTree.IsAfterKeyword(position, SyntaxKind.
StackAllocKeyword
, cancellationToken) ||
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (14)
Generated\Syntax.Test.xml.Generated.cs (8)
209
=> InternalSyntaxFactory.StackAllocArrayCreationExpression(InternalSyntaxFactory.Token(SyntaxKind.
StackAllocKeyword
), GenerateIdentifierName(), null);
212
=> InternalSyntaxFactory.ImplicitStackAllocArrayCreationExpression(InternalSyntaxFactory.Token(SyntaxKind.
StackAllocKeyword
), InternalSyntaxFactory.Token(SyntaxKind.OpenBracketToken), InternalSyntaxFactory.Token(SyntaxKind.CloseBracketToken), GenerateInitializerExpression());
1504
Assert.Equal(SyntaxKind.
StackAllocKeyword
, node.StackAllocKeyword.Kind);
1516
Assert.Equal(SyntaxKind.
StackAllocKeyword
, node.StackAllocKeyword.Kind);
10185
=> SyntaxFactory.StackAllocArrayCreationExpression(SyntaxFactory.Token(SyntaxKind.
StackAllocKeyword
), GenerateIdentifierName(), default(InitializerExpressionSyntax));
10188
=> SyntaxFactory.ImplicitStackAllocArrayCreationExpression(SyntaxFactory.Token(SyntaxKind.
StackAllocKeyword
), SyntaxFactory.Token(SyntaxKind.OpenBracketToken), SyntaxFactory.Token(SyntaxKind.CloseBracketToken), GenerateInitializerExpression());
11480
Assert.Equal(SyntaxKind.
StackAllocKeyword
, node.StackAllocKeyword.Kind());
11492
Assert.Equal(SyntaxKind.
StackAllocKeyword
, node.StackAllocKeyword.Kind());
Parsing\LambdaAttributeParsingTests.cs (1)
3080
N(SyntaxKind.
StackAllocKeyword
);
Parsing\StackAllocInitializerParsingTests.cs (4)
36
N(SyntaxKind.
StackAllocKeyword
);
83
N(SyntaxKind.
StackAllocKeyword
);
130
N(SyntaxKind.
StackAllocKeyword
);
167
N(SyntaxKind.
StackAllocKeyword
);
Syntax\SyntaxNodeTests.cs (1)
3968
var replacedKeyword = SyntaxFactory.Token(SyntaxKind.
StackAllocKeyword
).WithTrailingTrivia(SyntaxFactory.Space);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
732
syntaxTree.IsAfterKeyword(position, SyntaxKind.
StackAllocKeyword
, cancellationToken) ||