46 references to IfStatement
Microsoft.CodeAnalysis.VisualBasic (14)
Binding\Binder_Statements.vb (1)
2753
conditions.Add(BindBooleanExpression(node.
IfStatement
.Condition, diagnostics))
Generated\Syntax.xml.Main.Generated.vb (2)
2950
Dim newIfStatement = DirectCast(Visit(node.
IfStatement
), IfStatementSyntax)
2951
If node.
IfStatement
IsNot newIfStatement Then anyChanges = True
Generated\Syntax.xml.Syntax.Generated.vb (6)
14564
return Update(Me.
IfStatement
, statements, Me.ElseIfBlocks, Me.ElseBlock, Me.EndIfStatement)
14591
return Update(Me.
IfStatement
, Me.Statements, elseIfBlocks, Me.ElseBlock, Me.EndIfStatement)
14617
return Update(Me.
IfStatement
, Me.Statements, Me.ElseIfBlocks, elseBlock, Me.EndIfStatement)
14640
return Update(Me.
IfStatement
, Me.Statements, Me.ElseIfBlocks, Me.ElseBlock, endIfStatement)
14663
Return Me.
IfStatement
14706
If ifStatement IsNot Me.
IfStatement
OrElse statements <> Me.Statements OrElse elseIfBlocks <> Me.ElseIfBlocks OrElse elseBlock IsNot Me.ElseBlock OrElse endIfStatement IsNot Me.EndIfStatement Then
Lowering\Instrumentation\DebugInfoInjector.vb (1)
203
condGoto = New BoundSequencePoint(asMultiline.
IfStatement
, condGoto)
Semantics\StatementSyntaxWalker.vb (1)
146
Visit(node.
IfStatement
)
Syntax\SyntaxFacts.vb (1)
462
beginStatement = ifBlock.
IfStatement
Syntax\SyntaxNormalizer.vb (2)
857
AddLinebreaksAfterTokenIfNeeded(node.
IfStatement
.GetLastToken(), 1)
868
previousNode = node.
IfStatement
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (7)
NodeBasedFormattingRule.vb (3)
406
[ifBlock].
IfStatement
.GetLastToken().GetNextToken(includeZeroWidth:=True),
410
[ifBlock].
IfStatement
.GetLastToken().GetNextToken(includeZeroWidth:=True),
411
[ifBlock].
IfStatement
.GetLastToken(includeZeroWidth:=True))
VisualBasicHeaderFacts.vb (2)
113
Return IsOnHeader(root, position, multipleLineNode.
IfStatement
, multipleLineNode.
IfStatement
)
VisualBasicUseCoalesceExpressionForIfNullStatementCheckDiagnosticAnalyzer.vb (1)
37
Return ifBlock.
IfStatement
.Condition
VisualBasicUseNullPropagationDiagnosticAnalyzer.vb (1)
55
condition = ifStatement.
IfStatement
.Condition
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (2)
EndConstructGeneration\EndConstructStatementVisitor_IfStatement.vb (1)
48
Dim position = If(ifBlock.Statements.Any(), ifBlock.Statements(0).SpanStart, ifBlock.
IfStatement
.Span.End + _state.NewLineCharacter.Length)
LineCommit\ContainingStatementInfo.MatchingStatementsVisitor.vb (1)
57
Dim parts As New List(Of StatementSyntax) From {node.
IfStatement
, node.EndIfStatement}
Microsoft.CodeAnalysis.VisualBasic.Features (15)
CodeFixes\GenerateEndConstruct\GenerateEndConstructCodeFixProvider.vb (1)
129
(Function(n As MultiLineIfBlockSyntax) n.
IfStatement
),
EditAndContinue\SyntaxComparer.vb (1)
1033
Return New With {part.
IfStatement
.Condition, part.Statements}
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (1)
1629
Dim ifStatement = DirectCast(node, MultiLineIfBlockSyntax).
IfStatement
ExtractMethod\VisualBasicMethodExtractor.VisualBasicCodeGenerator.CallSiteContainerRewriter.vb (1)
201
Return node.WithIfStatement(ReplaceStatementIfNeeded(node.
IfStatement
)).
Highlighting\KeywordHighlighters\MultiLineIfBlockHighlighter.vb (1)
23
With ifBlock.
IfStatement
InvertIf\VisualBasicInvertIfCodeRefactoringProvider.MultiLine.vb (2)
30
Return ifNode.
IfStatement
.Condition
49
.WithIfStatement(ifNode.
IfStatement
.WithCondition(DirectCast(condition, ExpressionSyntax))) _
SplitOrMergeIfStatements\VisualBasicIfLikeStatementGenerator.vb (5)
79
Return DirectCast(ifOrElseIf, MultiLineIfBlockSyntax).
IfStatement
.Condition
118
Return ifBlock.WithIfStatement(ifBlock.
IfStatement
.WithCondition(DirectCast(condition, ExpressionSyntax)))
149
Dim newIfStatement = SyntaxFactory.IfStatement(ifBlock.
IfStatement
.IfKeyword,
168
ifBlock.
IfStatement
.Condition,
169
ifBlock.
IfStatement
.ThenKeyword)
Structure\Providers\MultiLineIfBlockStructureProvider.vb (1)
20
node, node.
IfStatement
, autoCollapse:=False,
VisualBasicUseCoalesceExpressionForIfNullStatementCheckDiagnosticAnalyzer.vb (1)
37
Return ifBlock.
IfStatement
.Condition
VisualBasicUseNullPropagationDiagnosticAnalyzer.vb (1)
55
condition = ifStatement.
IfStatement
.Condition
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (2)
Generated\Syntax.Test.xml.Generated.vb (2)
19636
Assert.NotNull(objectUnderTest.
ifStatement
)
19638
Dim withObj = objectUnderTest.WithIfStatement(objectUnderTest.
IfStatement
).WithStatements(objectUnderTest.Statements).WithElseIfBlocks(objectUnderTest.ElseIfBlocks).WithElseBlock(objectUnderTest.ElseBlock).WithEndIfStatement(objectUnderTest.EndIfStatement)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (6)
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
232
SyntaxFactory.ElseIfStatement(SyntaxFactory.Token(SyntaxKind.ElseIfKeyword), mifBlock.
IfStatement
.Condition, SyntaxFactory.Token(SyntaxKind.ThenKeyword)),
Formatting\Rules\NodeBasedFormattingRule.vb (3)
406
[ifBlock].
IfStatement
.GetLastToken().GetNextToken(includeZeroWidth:=True),
410
[ifBlock].
IfStatement
.GetLastToken().GetNextToken(includeZeroWidth:=True),
411
[ifBlock].
IfStatement
.GetLastToken(includeZeroWidth:=True))
VisualBasicHeaderFacts.vb (2)
113
Return IsOnHeader(root, position, multipleLineNode.
IfStatement
, multipleLineNode.
IfStatement
)