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