29 references to ThrowKeyword
Microsoft.CodeAnalysis.CSharp (9)
Parser\LanguageParser.cs (7)
7415
case SyntaxKind.
ThrowKeyword
:
8222
case SyntaxKind.
ThrowKeyword
:
9214
Debug.Assert(this.CurrentToken.Kind == SyntaxKind.
ThrowKeyword
);
9217
this.EatToken(SyntaxKind.
ThrowKeyword
),
9969
case SyntaxKind.
ThrowKeyword
:
10354
else if (tk == SyntaxKind.
ThrowKeyword
)
10612
this.EatToken(SyntaxKind.
ThrowKeyword
),
Syntax\SyntaxKindFacts.cs (2)
889
return SyntaxKind.
ThrowKeyword
;
1541
case SyntaxKind.
ThrowKeyword
:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (1)
79
Token(leadingTrivia, SyntaxKind.
ThrowKeyword
, trailing: default),
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
2622
if (token.IsKind(SyntaxKind.
ThrowKeyword
))
Microsoft.CodeAnalysis.CSharp.Features (3)
Completion\KeywordRecommenders\ThrowKeywordRecommender.cs (1)
13
: base(SyntaxKind.
ThrowKeyword
)
ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (1)
79
Token(leadingTrivia, SyntaxKind.
ThrowKeyword
, trailing: default),
ExtractMethod\Extensions.cs (1)
153
if (token.Kind() != SyntaxKind.
ThrowKeyword
)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (13)
Generated\Syntax.Test.xml.Generated.cs (8)
260
=> InternalSyntaxFactory.ThrowExpression(InternalSyntaxFactory.Token(SyntaxKind.
ThrowKeyword
), GenerateIdentifierName());
374
=> InternalSyntaxFactory.ThrowStatement(new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.AttributeListSyntax>(), InternalSyntaxFactory.Token(SyntaxKind.
ThrowKeyword
), null, InternalSyntaxFactory.Token(SyntaxKind.SemicolonToken));
1712
Assert.Equal(SyntaxKind.
ThrowKeyword
, node.ThrowKeyword.Kind);
2163
Assert.Equal(SyntaxKind.
ThrowKeyword
, node.ThrowKeyword.Kind);
10236
=> SyntaxFactory.ThrowExpression(SyntaxFactory.Token(SyntaxKind.
ThrowKeyword
), GenerateIdentifierName());
10350
=> SyntaxFactory.ThrowStatement(new SyntaxList<AttributeListSyntax>(), SyntaxFactory.Token(SyntaxKind.
ThrowKeyword
), default(ExpressionSyntax), SyntaxFactory.Token(SyntaxKind.SemicolonToken));
11688
Assert.Equal(SyntaxKind.
ThrowKeyword
, node.ThrowKeyword.Kind());
12139
Assert.Equal(SyntaxKind.
ThrowKeyword
, node.ThrowKeyword.Kind());
Parsing\PatternParsingTests.cs (1)
207
N(SyntaxKind.
ThrowKeyword
);
Parsing\StatementAttributeParsingTests.cs (1)
614
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)
427
N(SyntaxKind.
ThrowKeyword
);
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Classification\ClassificationHelpers.cs (1)
90
case SyntaxKind.
ThrowKeyword
:
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
2622
if (token.IsKind(SyntaxKind.
ThrowKeyword
))