47 references to StackAllocKeyword
Microsoft.CodeAnalysis.CSharp (16)
Parser\LanguageParser.cs (5)
10810
case SyntaxKind.
StackAllocKeyword
:
11739
case SyntaxKind.
StackAllocKeyword
:
13232
Debug.Assert(this.CurrentToken.Kind is SyntaxKind.NewKeyword or SyntaxKind.
StackAllocKeyword
);
13314
var @stackalloc = this.EatToken(SyntaxKind.
StackAllocKeyword
);
13346
this.EatToken(SyntaxKind.
StackAllocKeyword
),
Syntax.xml.Internal.Generated.cs (4)
29706
if (stackAllocKeyword.Kind != SyntaxKind.
StackAllocKeyword
) throw new ArgumentException(nameof(stackAllocKeyword));
29727
if (stackAllocKeyword.Kind != SyntaxKind.
StackAllocKeyword
) throw new ArgumentException(nameof(stackAllocKeyword));
35073
if (stackAllocKeyword.Kind != SyntaxKind.
StackAllocKeyword
) throw new ArgumentException(nameof(stackAllocKeyword));
35094
if (stackAllocKeyword.Kind != SyntaxKind.
StackAllocKeyword
) throw new ArgumentException(nameof(stackAllocKeyword));
Syntax.xml.Main.Generated.cs (5)
3381
if (stackAllocKeyword.Kind() != SyntaxKind.
StackAllocKeyword
) throw new ArgumentException(nameof(stackAllocKeyword));
3388
=> SyntaxFactory.StackAllocArrayCreationExpression(SyntaxFactory.Token(SyntaxKind.
StackAllocKeyword
), type, initializer);
3392
=> SyntaxFactory.StackAllocArrayCreationExpression(SyntaxFactory.Token(SyntaxKind.
StackAllocKeyword
), type, default);
3397
if (stackAllocKeyword.Kind() != SyntaxKind.
StackAllocKeyword
) throw new ArgumentException(nameof(stackAllocKeyword));
3406
=> SyntaxFactory.ImplicitStackAllocArrayCreationExpression(SyntaxFactory.Token(SyntaxKind.
StackAllocKeyword
), SyntaxFactory.Token(SyntaxKind.OpenBracketToken), SyntaxFactory.Token(SyntaxKind.CloseBracketToken), initializer);
Syntax\SyntaxKindFacts.cs (2)
975
return SyntaxKind.
StackAllocKeyword
;
1667
case SyntaxKind.
StackAllocKeyword
:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
735
syntaxTree.IsAfterKeyword(position, SyntaxKind.
StackAllocKeyword
, cancellationToken) ||
Microsoft.CodeAnalysis.CSharp.Features (14)
Completion\KeywordRecommenders\BoolKeywordRecommender.cs (1)
38
syntaxTree.IsAfterKeyword(position, SyntaxKind.
StackAllocKeyword
, cancellationToken) ||
Completion\KeywordRecommenders\ByteKeywordRecommender.cs (1)
39
syntaxTree.IsAfterKeyword(position, SyntaxKind.
StackAllocKeyword
, cancellationToken) ||
Completion\KeywordRecommenders\CharKeywordRecommender.cs (1)
38
syntaxTree.IsAfterKeyword(position, SyntaxKind.
StackAllocKeyword
, cancellationToken) ||
Completion\KeywordRecommenders\DecimalKeywordRecommender.cs (1)
38
syntaxTree.IsAfterKeyword(position, SyntaxKind.
StackAllocKeyword
, cancellationToken) ||
Completion\KeywordRecommenders\DoubleKeywordRecommender.cs (1)
38
syntaxTree.IsAfterKeyword(position, SyntaxKind.
StackAllocKeyword
, cancellationToken) ||
Completion\KeywordRecommenders\FloatKeywordRecommender.cs (1)
38
syntaxTree.IsAfterKeyword(position, SyntaxKind.
StackAllocKeyword
, cancellationToken) ||
Completion\KeywordRecommenders\IntKeywordRecommender.cs (1)
39
syntaxTree.IsAfterKeyword(position, SyntaxKind.
StackAllocKeyword
, cancellationToken) ||
Completion\KeywordRecommenders\LongKeywordRecommender.cs (1)
39
syntaxTree.IsAfterKeyword(position, SyntaxKind.
StackAllocKeyword
, cancellationToken) ||
Completion\KeywordRecommenders\SByteKeywordRecommender.cs (1)
39
syntaxTree.IsAfterKeyword(position, SyntaxKind.
StackAllocKeyword
, cancellationToken) ||
Completion\KeywordRecommenders\ShortKeywordRecommender.cs (1)
39
syntaxTree.IsAfterKeyword(position, SyntaxKind.
StackAllocKeyword
, cancellationToken) ||
Completion\KeywordRecommenders\StackAllocKeywordRecommender.cs (1)
10
internal sealed class StackAllocKeywordRecommender() : AbstractSyntacticSingleKeywordRecommender(SyntaxKind.
StackAllocKeyword
)
Completion\KeywordRecommenders\UIntKeywordRecommender.cs (1)
39
syntaxTree.IsAfterKeyword(position, SyntaxKind.
StackAllocKeyword
, cancellationToken) ||
Completion\KeywordRecommenders\ULongKeywordRecommender.cs (1)
39
syntaxTree.IsAfterKeyword(position, SyntaxKind.
StackAllocKeyword
, cancellationToken) ||
Completion\KeywordRecommenders\UShortKeywordRecommender.cs (1)
46
syntaxTree.IsAfterKeyword(position, SyntaxKind.
StackAllocKeyword
, cancellationToken) ||
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (14)
Generated\Syntax.Test.xml.Generated.cs (8)
212
=> InternalSyntaxFactory.StackAllocArrayCreationExpression(InternalSyntaxFactory.Token(SyntaxKind.
StackAllocKeyword
), GenerateIdentifierName(), null);
215
=> InternalSyntaxFactory.ImplicitStackAllocArrayCreationExpression(InternalSyntaxFactory.Token(SyntaxKind.
StackAllocKeyword
), InternalSyntaxFactory.Token(SyntaxKind.OpenBracketToken), InternalSyntaxFactory.Token(SyntaxKind.CloseBracketToken), GenerateInitializerExpression());
1541
Assert.Equal(SyntaxKind.
StackAllocKeyword
, node.StackAllocKeyword.Kind);
1553
Assert.Equal(SyntaxKind.
StackAllocKeyword
, node.StackAllocKeyword.Kind);
10562
=> SyntaxFactory.StackAllocArrayCreationExpression(SyntaxFactory.Token(SyntaxKind.
StackAllocKeyword
), GenerateIdentifierName(), default(InitializerExpressionSyntax));
10565
=> SyntaxFactory.ImplicitStackAllocArrayCreationExpression(SyntaxFactory.Token(SyntaxKind.
StackAllocKeyword
), SyntaxFactory.Token(SyntaxKind.OpenBracketToken), SyntaxFactory.Token(SyntaxKind.CloseBracketToken), GenerateInitializerExpression());
11891
Assert.Equal(SyntaxKind.
StackAllocKeyword
, node.StackAllocKeyword.Kind());
11903
Assert.Equal(SyntaxKind.
StackAllocKeyword
, node.StackAllocKeyword.Kind());
Parsing\LambdaAttributeParsingTests.cs (1)
3085
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)
4040
var replacedKeyword = SyntaxFactory.Token(SyntaxKind.
StackAllocKeyword
).WithTrailingTrivia(SyntaxFactory.Space);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
735
syntaxTree.IsAfterKeyword(position, SyntaxKind.
StackAllocKeyword
, cancellationToken) ||
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
735
syntaxTree.IsAfterKeyword(position, SyntaxKind.
StackAllocKeyword
, cancellationToken) ||