40 references to DoStatement
Microsoft.CodeAnalysis.VisualBasic (21)
Binding\Binder_Statements.vb (1)
2794
Dim topConditionSyntax = node.
DoStatement
.WhileOrUntilClause
Generated\Syntax.xml.Main.Generated.vb (2)
3368
Dim newDoStatement = DirectCast(Visit(node.
DoStatement
), DoStatementSyntax)
3369
If node.
DoStatement
IsNot newDoStatement Then anyChanges = True
Generated\Syntax.xml.Syntax.Generated.vb (4)
18010
return Update(Me.Kind, Me.
DoStatement
, statements, Me.LoopStatement)
18032
return Update(Me.Kind, Me.
DoStatement
, Me.Statements, loopStatement)
18051
Return Me.
DoStatement
18087
If kind <> Me.Kind OrElse doStatement IsNot Me.
DoStatement
OrElse statements <> Me.Statements OrElse loopStatement IsNot Me.LoopStatement Then
Lowering\Instrumentation\DebugInfoInjector.vb (1)
188
Return New BoundSequencePoint(DirectCast(original.Syntax, DoLoopBlockSyntax).
DoStatement
,
Lowering\LocalRewriter\LocalRewriter_DoLoop.vb (10)
73
doResumeLabel = RegisterUnstructuredExceptionHandlingNonThrowingResumeTarget(syntax.
DoStatement
)
77
Dim start As BoundStatement = New BoundLabelStatement(syntax.
DoStatement
, startLabel)
117
syntax.
DoStatement
,
131
New BoundLabelStatement(syntax.
DoStatement
, node.ContinueLabel),
133
New BoundLabelStatement(syntax.
DoStatement
, node.ExitLabel)
157
doResumeLabel = RegisterUnstructuredExceptionHandlingNonThrowingResumeTarget(syntax.
DoStatement
)
161
Dim start As BoundStatement = New BoundLabelStatement(syntax.
DoStatement
, startLabel)
199
New BoundLabelStatement(syntax.
DoStatement
, node.ContinueLabel),
200
New BoundGotoStatement(syntax.
DoStatement
, startLabel, Nothing),
201
New BoundLabelStatement(syntax.
DoStatement
, node.ExitLabel)
Semantics\StatementSyntaxWalker.vb (1)
193
Visit(node.
DoStatement
)
Syntax\SyntaxFacts.vb (1)
404
beginStatement = doBlock.
DoStatement
Syntax\SyntaxNormalizer.vb (1)
899
AddLinebreaksAfterTokenIfNeeded(node.
DoStatement
.GetLastToken(), 1)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
NodeBasedFormattingRule.vb (1)
473
[do].
DoStatement
.GetLastToken().GetNextToken(includeZeroWidth:=True),
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (1)
LineCommit\ContainingStatementInfo.MatchingStatementsVisitor.vb (1)
38
Return New StatementSyntax() {node.
DoStatement
, node.LoopStatement}
Microsoft.CodeAnalysis.VisualBasic.Features (6)
CodeFixes\GenerateEndConstruct\GenerateEndConstructCodeFixProvider.vb (1)
140
(Function(n As DoLoopBlockSyntax) n.
DoStatement
),
EditAndContinue\SyntaxComparer.vb (1)
958
Return New With {.Begin = CType(block.
DoStatement
, StatementSyntax), block.Statements}
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (1)
1666
Return DirectCast(node, DoLoopBlockSyntax).
DoStatement
.Span
ExtractMethod\VisualBasicMethodExtractor.VisualBasicCodeGenerator.CallSiteContainerRewriter.vb (1)
265
Return node.WithDoStatement(ReplaceStatementIfNeeded(node.
DoStatement
)).
Highlighting\KeywordHighlighters\DoLoopBlockHighlighter.vb (1)
36
With doLoop.
DoStatement
Structure\Providers\DoLoopBlockStructureProvider.vb (1)
20
node, node.
DoStatement
, autoCollapse:=False,
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (10)
Generated\Syntax.Test.xml.Generated.vb (10)
19963
Assert.NotNull(objectUnderTest.
doStatement
)
19965
Dim withObj = objectUnderTest.WithDoStatement(objectUnderTest.
DoStatement
).WithStatements(objectUnderTest.Statements).WithLoopStatement(objectUnderTest.LoopStatement)
19972
Assert.NotNull(objectUnderTest.
doStatement
)
19974
Dim withObj = objectUnderTest.WithDoStatement(objectUnderTest.
DoStatement
).WithStatements(objectUnderTest.Statements).WithLoopStatement(objectUnderTest.LoopStatement)
19981
Assert.NotNull(objectUnderTest.
doStatement
)
19983
Dim withObj = objectUnderTest.WithDoStatement(objectUnderTest.
DoStatement
).WithStatements(objectUnderTest.Statements).WithLoopStatement(objectUnderTest.LoopStatement)
19990
Assert.NotNull(objectUnderTest.
doStatement
)
19992
Dim withObj = objectUnderTest.WithDoStatement(objectUnderTest.
DoStatement
).WithStatements(objectUnderTest.Statements).WithLoopStatement(objectUnderTest.LoopStatement)
19999
Assert.NotNull(objectUnderTest.
doStatement
)
20001
Dim withObj = objectUnderTest.WithDoStatement(objectUnderTest.
DoStatement
).WithStatements(objectUnderTest.Statements).WithLoopStatement(objectUnderTest.LoopStatement)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
Formatting\Rules\NodeBasedFormattingRule.vb (1)
473
[do].
DoStatement
.GetLastToken().GetNextToken(includeZeroWidth:=True),