31 references to ThrowKeyword
Microsoft.CodeAnalysis.CSharp (9)
Parser\LanguageParser.cs (7)
7963
case SyntaxKind.
ThrowKeyword
:
8776
case SyntaxKind.
ThrowKeyword
:
9811
Debug.Assert(this.CurrentToken.Kind == SyntaxKind.
ThrowKeyword
);
9814
this.EatToken(SyntaxKind.
ThrowKeyword
),
10585
case SyntaxKind.
ThrowKeyword
:
10968
if (tk == SyntaxKind.
ThrowKeyword
)
11372
this.EatToken(SyntaxKind.
ThrowKeyword
),
Syntax\SyntaxKindFacts.cs (2)
917
return SyntaxKind.
ThrowKeyword
;
1577
case SyntaxKind.
ThrowKeyword
:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (1)
80
Token(leadingTrivia, SyntaxKind.
ThrowKeyword
, trailing: default),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
2608
if (token.IsKind(SyntaxKind.
ThrowKeyword
))
Microsoft.CodeAnalysis.CSharp.Features (3)
Completion\KeywordRecommenders\ThrowKeywordRecommender.cs (1)
13
: base(SyntaxKind.
ThrowKeyword
)
ExtractMethod\Extensions.cs (1)
147
if (token.Kind() != SyntaxKind.
ThrowKeyword
)
src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (1)
80
Token(leadingTrivia, SyntaxKind.
ThrowKeyword
, trailing: default),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (15)
Generated\Syntax.Test.xml.Generated.cs (8)
272
=> InternalSyntaxFactory.ThrowExpression(InternalSyntaxFactory.Token(SyntaxKind.
ThrowKeyword
), GenerateIdentifierName());
386
=> InternalSyntaxFactory.ThrowStatement(new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.AttributeListSyntax>(), InternalSyntaxFactory.Token(SyntaxKind.
ThrowKeyword
), null, InternalSyntaxFactory.Token(SyntaxKind.SemicolonToken));
1773
Assert.Equal(SyntaxKind.
ThrowKeyword
, node.ThrowKeyword.Kind);
2224
Assert.Equal(SyntaxKind.
ThrowKeyword
, node.ThrowKeyword.Kind);
10488
=> SyntaxFactory.ThrowExpression(SyntaxFactory.Token(SyntaxKind.
ThrowKeyword
), GenerateIdentifierName());
10602
=> SyntaxFactory.ThrowStatement(new SyntaxList<AttributeListSyntax>(), SyntaxFactory.Token(SyntaxKind.
ThrowKeyword
), default(ExpressionSyntax), SyntaxFactory.Token(SyntaxKind.SemicolonToken));
11989
Assert.Equal(SyntaxKind.
ThrowKeyword
, node.ThrowKeyword.Kind());
12440
Assert.Equal(SyntaxKind.
ThrowKeyword
, node.ThrowKeyword.Kind());
Parsing\CollectionExpressionParsingTests.cs (1)
6503
N(SyntaxKind.
ThrowKeyword
);
Parsing\MemberDeclarationParsingTests.cs (1)
12506
N(SyntaxKind.
ThrowKeyword
);
Parsing\PatternParsingTests.cs (1)
207
N(SyntaxKind.
ThrowKeyword
);
Parsing\StatementAttributeParsingTests.cs (1)
615
N(SyntaxKind.
ThrowKeyword
);
Parsing\StatementParsingTests.cs (2)
1195
Assert.Equal(SyntaxKind.
ThrowKeyword
, ts.ThrowKeyword.ContextualKind());
1215
Assert.Equal(SyntaxKind.
ThrowKeyword
, ts.ThrowKeyword.ContextualKind());
Parsing\SwitchExpressionParsingTests.cs (1)
428
N(SyntaxKind.
ThrowKeyword
);
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Classification\ClassificationHelpers.cs (1)
90
case SyntaxKind.
ThrowKeyword
:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
2608
if (token.IsKind(SyntaxKind.
ThrowKeyword
))