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