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