27 references to ThrowKeyword
Microsoft.CodeAnalysis.CSharp (18)
_generated\0\Syntax.xml.Main.Generated.cs (5)
3727if (throwKeyword.Kind() != SyntaxKind.ThrowKeyword) throw new ArgumentException(nameof(throwKeyword)); 3734=> SyntaxFactory.ThrowExpression(SyntaxFactory.Token(SyntaxKind.ThrowKeyword), expression); 4274if (throwKeyword.Kind() != SyntaxKind.ThrowKeyword) throw new ArgumentException(nameof(throwKeyword)); 4281=> SyntaxFactory.ThrowStatement(attributeLists, SyntaxFactory.Token(SyntaxKind.ThrowKeyword), expression, SyntaxFactory.Token(SyntaxKind.SemicolonToken)); 4286=> SyntaxFactory.ThrowStatement(default, SyntaxFactory.Token(SyntaxKind.ThrowKeyword), expression, SyntaxFactory.Token(SyntaxKind.SemicolonToken));
_generated\1\Syntax.xml.Internal.Generated.cs (4)
30492if (throwKeyword.Kind != SyntaxKind.ThrowKeyword) throw new ArgumentException(nameof(throwKeyword)); 31259if (throwKeyword.Kind != SyntaxKind.ThrowKeyword) throw new ArgumentException(nameof(throwKeyword)); 35919if (throwKeyword.Kind != SyntaxKind.ThrowKeyword) throw new ArgumentException(nameof(throwKeyword)); 36686if (throwKeyword.Kind != SyntaxKind.ThrowKeyword) throw new ArgumentException(nameof(throwKeyword));
Parser\LanguageParser.cs (7)
8392case SyntaxKind.ThrowKeyword: 9288case SyntaxKind.ThrowKeyword: 10351Debug.Assert(this.CurrentToken.Kind == SyntaxKind.ThrowKeyword); 10354this.EatToken(SyntaxKind.ThrowKeyword), 11164case SyntaxKind.ThrowKeyword: 11547if (tk == SyntaxKind.ThrowKeyword) 11966this.EatToken(SyntaxKind.ThrowKeyword),
Syntax\SyntaxKindFacts.cs (2)
947return SyntaxKind.ThrowKeyword; 1660case SyntaxKind.ThrowKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (1)
80Token(leadingTrivia, SyntaxKind.ThrowKeyword, trailing: default),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
2616if (token.IsKind(SyntaxKind.ThrowKeyword))
Microsoft.CodeAnalysis.CSharp.Features (3)
Completion\KeywordRecommenders\ThrowKeywordRecommender.cs (1)
10internal sealed class ThrowKeywordRecommender() : AbstractSyntacticSingleKeywordRecommender(SyntaxKind.ThrowKeyword)
ExtractMethod\Extensions.cs (1)
147if (token.Kind() != SyntaxKind.ThrowKeyword)
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (1)
80Token(leadingTrivia, SyntaxKind.ThrowKeyword, trailing: default),
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Classification\ClassificationHelpers.cs (1)
88case SyntaxKind.ThrowKeyword:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
2616if (token.IsKind(SyntaxKind.ThrowKeyword))
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\Legacy\NativeCSharpTokenizer.cs (1)
80CSharpSyntaxKind.ThrowKeyword,
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
2616if (token.IsKind(SyntaxKind.ThrowKeyword))