36 references to StackAllocKeyword
Microsoft.CodeAnalysis.CSharp (7)
Parser\LanguageParser.cs (5)
10749case SyntaxKind.StackAllocKeyword: 11672case SyntaxKind.StackAllocKeyword: 13165Debug.Assert(this.CurrentToken.Kind is SyntaxKind.NewKeyword or SyntaxKind.StackAllocKeyword); 13247var @stackalloc = this.EatToken(SyntaxKind.StackAllocKeyword); 13279this.EatToken(SyntaxKind.StackAllocKeyword),
Syntax\SyntaxKindFacts.cs (2)
952return SyntaxKind.StackAllocKeyword; 1603case SyntaxKind.StackAllocKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
734syntaxTree.IsAfterKeyword(position, SyntaxKind.StackAllocKeyword, cancellationToken) ||
Microsoft.CodeAnalysis.CSharp.Features (13)
Completion\KeywordRecommenders\BoolKeywordRecommender.cs (1)
38syntaxTree.IsAfterKeyword(position, SyntaxKind.StackAllocKeyword, cancellationToken) ||
Completion\KeywordRecommenders\ByteKeywordRecommender.cs (1)
39syntaxTree.IsAfterKeyword(position, SyntaxKind.StackAllocKeyword, cancellationToken) ||
Completion\KeywordRecommenders\CharKeywordRecommender.cs (1)
38syntaxTree.IsAfterKeyword(position, SyntaxKind.StackAllocKeyword, cancellationToken) ||
Completion\KeywordRecommenders\DecimalKeywordRecommender.cs (1)
38syntaxTree.IsAfterKeyword(position, SyntaxKind.StackAllocKeyword, cancellationToken) ||
Completion\KeywordRecommenders\DoubleKeywordRecommender.cs (1)
38syntaxTree.IsAfterKeyword(position, SyntaxKind.StackAllocKeyword, cancellationToken) ||
Completion\KeywordRecommenders\FloatKeywordRecommender.cs (1)
38syntaxTree.IsAfterKeyword(position, SyntaxKind.StackAllocKeyword, cancellationToken) ||
Completion\KeywordRecommenders\IntKeywordRecommender.cs (1)
39syntaxTree.IsAfterKeyword(position, SyntaxKind.StackAllocKeyword, cancellationToken) ||
Completion\KeywordRecommenders\LongKeywordRecommender.cs (1)
39syntaxTree.IsAfterKeyword(position, SyntaxKind.StackAllocKeyword, cancellationToken) ||
Completion\KeywordRecommenders\SByteKeywordRecommender.cs (1)
39syntaxTree.IsAfterKeyword(position, SyntaxKind.StackAllocKeyword, cancellationToken) ||
Completion\KeywordRecommenders\ShortKeywordRecommender.cs (1)
39syntaxTree.IsAfterKeyword(position, SyntaxKind.StackAllocKeyword, cancellationToken) ||
Completion\KeywordRecommenders\UIntKeywordRecommender.cs (1)
39syntaxTree.IsAfterKeyword(position, SyntaxKind.StackAllocKeyword, cancellationToken) ||
Completion\KeywordRecommenders\ULongKeywordRecommender.cs (1)
39syntaxTree.IsAfterKeyword(position, SyntaxKind.StackAllocKeyword, cancellationToken) ||
Completion\KeywordRecommenders\UShortKeywordRecommender.cs (1)
46syntaxTree.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()); 1538Assert.Equal(SyntaxKind.StackAllocKeyword, node.StackAllocKeyword.Kind); 1550Assert.Equal(SyntaxKind.StackAllocKeyword, node.StackAllocKeyword.Kind); 10519=> SyntaxFactory.StackAllocArrayCreationExpression(SyntaxFactory.Token(SyntaxKind.StackAllocKeyword), GenerateIdentifierName(), default(InitializerExpressionSyntax)); 10522=> SyntaxFactory.ImplicitStackAllocArrayCreationExpression(SyntaxFactory.Token(SyntaxKind.StackAllocKeyword), SyntaxFactory.Token(SyntaxKind.OpenBracketToken), SyntaxFactory.Token(SyntaxKind.CloseBracketToken), GenerateInitializerExpression()); 11845Assert.Equal(SyntaxKind.StackAllocKeyword, node.StackAllocKeyword.Kind()); 11857Assert.Equal(SyntaxKind.StackAllocKeyword, node.StackAllocKeyword.Kind());
Parsing\LambdaAttributeParsingTests.cs (1)
3085N(SyntaxKind.StackAllocKeyword);
Parsing\StackAllocInitializerParsingTests.cs (4)
36N(SyntaxKind.StackAllocKeyword); 83N(SyntaxKind.StackAllocKeyword); 130N(SyntaxKind.StackAllocKeyword); 167N(SyntaxKind.StackAllocKeyword);
Syntax\SyntaxNodeTests.cs (1)
4041var replacedKeyword = SyntaxFactory.Token(SyntaxKind.StackAllocKeyword).WithTrailingTrivia(SyntaxFactory.Space);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
734syntaxTree.IsAfterKeyword(position, SyntaxKind.StackAllocKeyword, cancellationToken) ||