54 references to TryStatement
Microsoft.CodeAnalysis.CSharp (7)
Binder\Binder_Statements.cs (1)
114case SyntaxKind.TryStatement:
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (1)
1067Debug.Assert(pendingCatch.SyntaxOpt.IsKind(SyntaxKind.TryStatement));
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (2)
89case SyntaxKind.TryStatement: 144Debug.Assert(node is { } && node.Kind() == SyntaxKind.TryStatement);
Syntax\LambdaUtilities.cs (1)
399case SyntaxKind.TryStatement:
Syntax\LookupPosition.cs (2)
354case SyntaxKind.TryStatement: 417case SyntaxKind.TryStatement:
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\Analyzers\CSharp\Analyzers\InlineDeclaration\CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
332case SyntaxKind.TryStatement:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\NewLineUserSettingFormattingRule.cs (1)
61case SyntaxKind.TryStatement:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Indentation\CSharpSmartTokenFormatter.cs (1)
75endToken.Parent.Parent?.Kind() is SyntaxKind.TryStatement or SyntaxKind.DoStatement;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\FormattingRangeHelper.cs (1)
365SyntaxKind.TryStatement or
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
135if (token.Parent.Parent.Kind() is not SyntaxKind.TryStatement and not SyntaxKind.DoStatement)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
2954block.Parent?.Kind() is SyntaxKind.TryStatement or SyntaxKind.CatchClause)
Microsoft.CodeAnalysis.CSharp.Features (9)
BraceCompletion\CurlyBraceCompletionService.cs (1)
218case SyntaxKind.TryStatement:
Debugging\CSharpProximityExpressionsService.Worker.cs (2)
208case SyntaxKind.TryStatement: 278case SyntaxKind.TryStatement:
EditAndContinue\BreakpointSpans.cs (1)
739case SyntaxKind.TryStatement:
EditAndContinue\SyntaxComparer.cs (2)
440case SyntaxKind.TryStatement: 1104case SyntaxKind.TryStatement:
src\Analyzers\CSharp\Analyzers\InlineDeclaration\CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
332case SyntaxKind.TryStatement:
src\Compilers\CSharp\Portable\Syntax\LambdaUtilities.cs (1)
399case SyntaxKind.TryStatement:
Structure\Providers\BlockSyntaxStructureProvider.cs (1)
207SyntaxKind.TryStatement => BlockTypes.Statement,
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (26)
Parsing\DeclarationScopeParsingTests.cs (3)
14716N(SyntaxKind.TryStatement); 14792N(SyntaxKind.TryStatement); 14878N(SyntaxKind.TryStatement);
Parsing\FieldKeywordParsingTests.cs (1)
1868N(SyntaxKind.TryStatement);
Parsing\ParsingErrorRecoveryTests.cs (8)
4144Assert.Equal(SyntaxKind.TryStatement, ms.Body.Statements[0].Kind()); 4165Assert.Equal(SyntaxKind.TryStatement, ms.Body.Statements[0].Kind()); 4186Assert.Equal(SyntaxKind.TryStatement, ms.Body.Statements[0].Kind()); 4208Assert.Equal(SyntaxKind.TryStatement, ms.Body.Statements[0].Kind()); 4230Assert.Equal(SyntaxKind.TryStatement, ms.Body.Statements[0].Kind()); 4253Assert.Equal(SyntaxKind.TryStatement, ms.Body.Statements[0].Kind()); 4276Assert.Equal(SyntaxKind.TryStatement, ms.Body.Statements[0].Kind()); 4297Assert.Equal(SyntaxKind.TryStatement, ms.Body.Statements[0].Kind());
Parsing\StatementAttributeParsingTests.cs (8)
2677N(SyntaxKind.TryStatement); 2756N(SyntaxKind.TryStatement); 2841N(SyntaxKind.TryStatement); 2859N(SyntaxKind.TryStatement); 2944N(SyntaxKind.TryStatement); 3029N(SyntaxKind.TryStatement); 3047N(SyntaxKind.TryStatement); 3132N(SyntaxKind.TryStatement);
Parsing\StatementParsingTests.cs (6)
1229Assert.Equal(SyntaxKind.TryStatement, statement.Kind()); 1259Assert.Equal(SyntaxKind.TryStatement, statement.Kind()); 1288Assert.Equal(SyntaxKind.TryStatement, statement.Kind()); 1312Assert.Equal(SyntaxKind.TryStatement, statement.Kind()); 1355Assert.Equal(SyntaxKind.TryStatement, statement.Kind()); 1378Assert.Equal(SyntaxKind.TryStatement, statement.Kind());
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
Classification\ClassificationHelpers.cs (1)
128case SyntaxKind.TryStatement:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\NewLineUserSettingFormattingRule.cs (1)
61case SyntaxKind.TryStatement:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Indentation\CSharpSmartTokenFormatter.cs (1)
75endToken.Parent.Parent?.Kind() is SyntaxKind.TryStatement or SyntaxKind.DoStatement;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\FormattingRangeHelper.cs (1)
365SyntaxKind.TryStatement or
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
135if (token.Parent.Parent.Kind() is not SyntaxKind.TryStatement and not SyntaxKind.DoStatement)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
2954block.Parent?.Kind() is SyntaxKind.TryStatement or SyntaxKind.CatchClause)