25 references to TryKeyword
Microsoft.CodeAnalysis.CSharp (7)
Parser\LanguageParser.cs (5)
7988case SyntaxKind.TryKeyword: 8815case SyntaxKind.TryKeyword: 8936Debug.Assert(this.CurrentToken.Kind is SyntaxKind.TryKeyword or SyntaxKind.CatchKeyword or SyntaxKind.FinallyKeyword); 8939var @try = this.EatToken(SyntaxKind.TryKeyword); 10690case SyntaxKind.TryKeyword:
Syntax\SyntaxKindFacts.cs (2)
915return SyntaxKind.TryKeyword; 1561case SyntaxKind.TryKeyword:
Microsoft.CodeAnalysis.CSharp.Features (1)
Completion\KeywordRecommenders\TryKeywordRecommender.cs (1)
13: base(SyntaxKind.TryKeyword)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (16)
Generated\Syntax.Test.xml.Generated.cs (4)
449=> InternalSyntaxFactory.TryStatement(new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.AttributeListSyntax>(), InternalSyntaxFactory.Token(SyntaxKind.TryKeyword), GenerateBlock(), new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.CatchClauseSyntax>(), null); 2529Assert.Equal(SyntaxKind.TryKeyword, node.TryKeyword.Kind); 10665=> SyntaxFactory.TryStatement(new SyntaxList<AttributeListSyntax>(), SyntaxFactory.Token(SyntaxKind.TryKeyword), GenerateBlock(), new SyntaxList<CatchClauseSyntax>(), default(FinallyClauseSyntax)); 12745Assert.Equal(SyntaxKind.TryKeyword, node.TryKeyword.Kind());
Parsing\DeclarationScopeParsingTests.cs (3)
14718N(SyntaxKind.TryKeyword); 14794N(SyntaxKind.TryKeyword); 14880N(SyntaxKind.TryKeyword);
Parsing\FieldKeywordParsingTests.cs (1)
1870N(SyntaxKind.TryKeyword);
Parsing\StatementAttributeParsingTests.cs (8)
2691N(SyntaxKind.TryKeyword); 2758N(SyntaxKind.TryKeyword); 2843N(SyntaxKind.TryKeyword); 2873M(SyntaxKind.TryKeyword); 2946N(SyntaxKind.TryKeyword); 3031N(SyntaxKind.TryKeyword); 3061M(SyntaxKind.TryKeyword); 3134N(SyntaxKind.TryKeyword);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Classification\ClassificationHelpers.cs (1)
87case SyntaxKind.TryKeyword: