31 references to BreakStatementSyntax
Microsoft.CodeAnalysis.CSharp (7)
Binder\Binder_Statements.cs (2)
95result = BindBreak((BreakStatementSyntax)node, diagnostics); 2899private BoundStatement BindBreak(BreakStatementSyntax node, BindingDiagnosticBag diagnostics)
Parser\LanguageParser.cs (1)
8918private BreakStatementSyntax ParseBreakStatement(SyntaxList<AttributeListSyntax> attributes)
Syntax\BreakStatementSyntax.cs (2)
11public BreakStatementSyntax Update(SyntaxToken breakKeyword, SyntaxToken semicolonToken) 20public static BreakStatementSyntax BreakStatement(SyntaxToken breakKeyword, SyntaxToken semicolonToken)
Syntax\LookupPosition.cs (2)
318return ((BreakStatementSyntax)statement).BreakKeyword; 380return ((BreakStatementSyntax)statement).SemicolonToken;
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\UseSimpleUsingStatement\UseSimpleUsingStatementDiagnosticAnalyzer.cs (1)
248if (nextStatement is BreakStatementSyntax or ContinueStatementSyntax)
Microsoft.CodeAnalysis.CSharp.Features (6)
ExtractMethod\CSharpMethodExtractor.Analyzer.cs (1)
44breakStatementCount: controlFlowAnalysis.ExitPoints.Count(n => n is BreakStatementSyntax),
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (1)
442if (current is BreakStatementSyntax breakStatement)
ExtractMethod\CSharpSelectionResult.cs (1)
134=> exitPoints.Any(n => n is not (BreakStatementSyntax or ContinueStatementSyntax or ReturnStatementSyntax));
Highlighting\KeywordHighlighters\LoopHighlighter.cs (1)
83if (highlightBreaks && node is BreakStatementSyntax breakStatement)
Highlighting\KeywordHighlighters\SwitchStatementHighlighter.cs (1)
61if (highlightBreaks && node is BreakStatementSyntax breakStatement)
src\Analyzers\CSharp\Analyzers\UseSimpleUsingStatement\UseSimpleUsingStatementDiagnosticAnalyzer.cs (1)
248if (nextStatement is BreakStatementSyntax or ContinueStatementSyntax)
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (10)
IOperation\IOperationTests_IBranchOperation.Extensions.cs (9)
52AssertOuterIsCorrespondingLoopOfInner<ForStatementSyntax, BreakStatementSyntax>(@" 109AssertOuterIsCorrespondingLoopOfInner<ForEachStatementSyntax, BreakStatementSyntax>(@" 128AssertOuterIsCorrespondingLoopOfInner<ForEachStatementSyntax, BreakStatementSyntax>(@" 149AssertOuterIsCorrespondingLoopOfInner<ForStatementSyntax, BreakStatementSyntax>(@" 170AssertOuterIsCorrespondingLoopOfInner<ForStatementSyntax, BreakStatementSyntax>(@" 258AssertOuterIsCorrespondingLoopOfInner<ForStatementSyntax, BreakStatementSyntax>(@" 326var (expected, actual) = GetOuterOperationAndCorrespondingInnerOperation<ForStatementSyntax, BreakStatementSyntax>(@" 344var (expected, actual) = GetOuterOperationAndCorrespondingInnerOperation<SwitchStatementSyntax, BreakStatementSyntax>(@" 368var (expected, actual) = GetOuterOperationAndCorrespondingInnerOperation<SwitchStatementSyntax, BreakStatementSyntax>(source);
IOperation\IOperationTests_InvalidStatement.cs (1)
472VerifyOperationTreeAndDiagnosticsForTest<BreakStatementSyntax>(source, expectedOperationTree, expectedDiagnostics);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (7)
Generated\Syntax.Test.xml.Generated.cs (5)
10592private static BreakStatementSyntax GenerateBreakStatement() 12400var node = GenerateBreakStatement(); 12405var newNode = node.WithAttributeLists(node.AttributeLists).WithBreakKeyword(node.BreakKeyword).WithSemicolonToken(node.SemicolonToken); 17245var oldNode = GenerateBreakStatement(); 17261var oldNode = GenerateBreakStatement();
Parsing\StatementParsingTests.cs (2)
997var b = (BreakStatementSyntax)statement;