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