16 references to TryKeyword
Microsoft.AspNetCore.Components.Analyzers (1)
JSInteropCodeFixProvider.cs (1)
125.WithTryKeyword(SyntaxFactory.Token(leadingTrivia, SyntaxKind.TryKeyword, eolList))
Microsoft.CodeAnalysis.CSharp (10)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Syntax.xml.Main.Generated.cs (3)
4731if (tryKeyword.Kind() != SyntaxKind.TryKeyword) throw new ArgumentException(nameof(tryKeyword)); 4738=> SyntaxFactory.TryStatement(attributeLists, SyntaxFactory.Token(SyntaxKind.TryKeyword), block, catches, @finally); 4743=> SyntaxFactory.TryStatement(default, SyntaxFactory.Token(SyntaxKind.TryKeyword), SyntaxFactory.Block(), catches, default);
Parser\LanguageParser.cs (5)
8306case SyntaxKind.TryKeyword: 9210case SyntaxKind.TryKeyword: 9350Debug.Assert(this.CurrentToken.Kind is SyntaxKind.TryKeyword or SyntaxKind.CatchKeyword or SyntaxKind.FinallyKeyword); 9353var @try = this.EatToken(SyntaxKind.TryKeyword); 11164case SyntaxKind.TryKeyword:
Syntax\SyntaxKindFacts.cs (2)
947return SyntaxKind.TryKeyword; 1646case SyntaxKind.TryKeyword:
Microsoft.CodeAnalysis.CSharp.Features (1)
Completion\KeywordRecommenders\TryKeywordRecommender.cs (1)
10internal sealed class TryKeywordRecommender() : AbstractSyntacticSingleKeywordRecommender(SyntaxKind.TryKeyword)
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Classification\ClassificationHelpers.cs (1)
89case SyntaxKind.TryKeyword:
Microsoft.CodeAnalysis.Razor.Compiler (3)
Language\Legacy\CSharpCodeParser.cs (2)
96CSharpSyntaxKind.TryKeyword]; 2511Assert(CSharpSyntaxKind.TryKeyword);
Language\Legacy\NativeCSharpTokenizer.cs (1)
41CSharpSyntaxKind.TryKeyword,