57 references to TryStatement
Microsoft.CodeAnalysis.CSharp (6)
Binder\Binder_Statements.cs (1)
113
case SyntaxKind.
TryStatement
:
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (1)
1031
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\LookupPosition.cs (2)
354
case SyntaxKind.
TryStatement
:
419
case SyntaxKind.
TryStatement
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
293
case SyntaxKind.
TryStatement
:
CSharpSmartTokenFormatter.cs (1)
75
(endToken.Parent.IsParentKind(SyntaxKind.
TryStatement
) || endToken.Parent.IsParentKind(SyntaxKind.DoStatement));
FormattingRangeHelper.cs (1)
365
SyntaxKind.
TryStatement
or
NewLineUserSettingFormattingRule.cs (1)
61
case SyntaxKind.
TryStatement
:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs\SyntaxTokenExtensions.cs (1)
132
if (!token.Parent.IsParentKind(SyntaxKind.
TryStatement
) &&
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
2952
if (block.IsParentKind(SyntaxKind.
TryStatement
) ||
Microsoft.CodeAnalysis.CSharp.Features (14)
BraceCompletion\CurlyBraceCompletionService.cs (1)
224
case SyntaxKind.
TryStatement
:
CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
293
case SyntaxKind.
TryStatement
:
Debugging\CSharpProximityExpressionsService.Worker.cs (2)
214
case SyntaxKind.
TryStatement
:
284
case SyntaxKind.
TryStatement
:
EditAndContinue\BreakpointSpans.cs (1)
558
case SyntaxKind.
TryStatement
:
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (6)
1750
case SyntaxKind.
TryStatement
:
2099
case SyntaxKind.
TryStatement
:
2555
case SyntaxKind.
TryStatement
:
2569
RoslynDebug.Assert(current.Parent.Kind() == SyntaxKind.
TryStatement
);
2616
case SyntaxKind.
TryStatement
:
2650
case SyntaxKind.
TryStatement
:
EditAndContinue\SyntaxComparer.cs (2)
439
case SyntaxKind.
TryStatement
:
1095
case SyntaxKind.
TryStatement
:
Structure\Providers\BlockSyntaxStructureProvider.cs (1)
141
case SyntaxKind.
TryStatement
: return BlockTypes.Statement;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (25)
Parsing\DeclarationScopeParsingTests.cs (3)
15127
N(SyntaxKind.
TryStatement
);
15204
N(SyntaxKind.
TryStatement
);
15291
N(SyntaxKind.
TryStatement
);
Parsing\ParsingErrorRecoveryTests.cs (8)
3982
Assert.Equal(SyntaxKind.
TryStatement
, ms.Body.Statements[0].Kind());
4003
Assert.Equal(SyntaxKind.
TryStatement
, ms.Body.Statements[0].Kind());
4024
Assert.Equal(SyntaxKind.
TryStatement
, ms.Body.Statements[0].Kind());
4046
Assert.Equal(SyntaxKind.
TryStatement
, ms.Body.Statements[0].Kind());
4068
Assert.Equal(SyntaxKind.
TryStatement
, ms.Body.Statements[0].Kind());
4091
Assert.Equal(SyntaxKind.
TryStatement
, ms.Body.Statements[0].Kind());
4114
Assert.Equal(SyntaxKind.
TryStatement
, ms.Body.Statements[0].Kind());
4135
Assert.Equal(SyntaxKind.
TryStatement
, ms.Body.Statements[0].Kind());
Parsing\StatementAttributeParsingTests.cs (8)
2676
N(SyntaxKind.
TryStatement
);
2755
N(SyntaxKind.
TryStatement
);
2840
N(SyntaxKind.
TryStatement
);
2858
N(SyntaxKind.
TryStatement
);
2943
N(SyntaxKind.
TryStatement
);
3028
N(SyntaxKind.
TryStatement
);
3046
N(SyntaxKind.
TryStatement
);
3131
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)
128
case SyntaxKind.
TryStatement
:
CSharpSmartTokenFormatter.cs (1)
75
(endToken.Parent.IsParentKind(SyntaxKind.
TryStatement
) || endToken.Parent.IsParentKind(SyntaxKind.DoStatement));
FormattingRangeHelper.cs (1)
365
SyntaxKind.
TryStatement
or
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs\SyntaxTokenExtensions.cs (1)
132
if (!token.Parent.IsParentKind(SyntaxKind.
TryStatement
) &&
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
2952
if (block.IsParentKind(SyntaxKind.
TryStatement
) ||
NewLineUserSettingFormattingRule.cs (1)
61
case SyntaxKind.
TryStatement
: