36 references to CheckedStatementSyntax
Microsoft.CodeAnalysis.CSharp (8)
Binder\Binder_Statements.cs (2)
128result = BindCheckedStatement((CheckedStatementSyntax)node, diagnostics); 165private BoundStatement BindCheckedStatement(CheckedStatementSyntax node, BindingDiagnosticBag diagnostics)
Binder\LocalBinderFactory.cs (1)
678public override void VisitCheckedStatement(CheckedStatementSyntax node)
Compilation\MemberSemanticModel.cs (1)
2204case CheckedStatementSyntax n:
Syntax\CheckedStatementSyntax.cs (2)
11public CheckedStatementSyntax Update(SyntaxToken keyword, BlockSyntax block) 20public static CheckedStatementSyntax CheckedStatement(SyntaxKind kind, SyntaxToken keyword, BlockSyntax block)
Syntax\LookupPosition.cs (2)
321return ((CheckedStatementSyntax)statement).Keyword; 383return ((CheckedStatementSyntax)statement).Block.CloseBraceToken;
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\UseConditionalExpression\CSharpUseConditionalExpressionForReturnDiagnosticAnalyzer.cs (1)
39if (block.Syntax.Parent is UnsafeStatementSyntax or CheckedStatementSyntax)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpMoveDeclarationNearReferenceService.cs (1)
40CheckedStatementSyntax;
Microsoft.CodeAnalysis.CSharp.EditorFeatures (3)
AutomaticCompletion\AutomaticLineEnderCommandHandler.cs (1)
617CheckedStatementSyntax checkedStatementNode => checkedStatementNode.Keyword.Span.End,
AutomaticCompletion\AutomaticLineEnderCommandHandler_Helpers.cs (2)
484CheckedStatementSyntax checkedStatementNode => ShouldAddBraceForCheckedStatement(checkedStatementNode, caretPosition), 655private static bool ShouldAddBraceForCheckedStatement(CheckedStatementSyntax checkedStatementNode, int caretPosition)
Microsoft.CodeAnalysis.CSharp.Features (13)
Debugging\CSharpProximityExpressionsService.Worker.cs (1)
246AddLastStatementOfConstruct((statement as CheckedStatementSyntax).Block);
EditAndContinue\BreakpointSpans.cs (2)
710var checkedStatement = (CheckedStatementSyntax)statement;
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (5)
1835return ((CheckedStatementSyntax)node).Keyword.Span; 2939var oldCheckedStatement = TryGetCheckedStatementAncestor(oldActiveStatement); 2940var newCheckedStatement = TryGetCheckedStatementAncestor(newActiveStatement); 2958private static CheckedStatementSyntax? TryGetCheckedStatementAncestor(SyntaxNode? node) 2968return (CheckedStatementSyntax)node;
ExtractMethod\CSharpSelectionResult.cs (1)
225=> UnderCheckedContext<CheckedStatementSyntax>();
ExtractMethod\CSharpSelectionValidator.Validator.cs (1)
57=> statement is CheckedStatementSyntax or
Highlighting\KeywordHighlighters\CheckedStatementHighlighter.cs (2)
19internal class CheckedStatementHighlighter : AbstractKeywordHighlighter<CheckedStatementSyntax> 27protected override void AddHighlights(CheckedStatementSyntax checkedStatement, List<TextSpan> highlights, CancellationToken cancellationToken)
src\Analyzers\CSharp\Analyzers\UseConditionalExpression\CSharpUseConditionalExpressionForReturnDiagnosticAnalyzer.cs (1)
39if (block.Syntax.Parent is UnsafeStatementSyntax or CheckedStatementSyntax)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (9)
Generated\Syntax.Test.xml.Generated.cs (5)
10628private static CheckedStatementSyntax GenerateCheckedStatement() 12585var node = GenerateCheckedStatement(); 12590var newNode = node.WithAttributeLists(node.AttributeLists).WithKeyword(node.Keyword).WithBlock(node.Block); 17557var oldNode = GenerateCheckedStatement(); 17573var oldNode = GenerateCheckedStatement();
Parsing\StatementParsingTests.cs (4)
1427var cs = (CheckedStatementSyntax)statement; 1444var cs = (CheckedStatementSyntax)statement;
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpMoveDeclarationNearReferenceService.cs (1)
40CheckedStatementSyntax;