46 references to IfStatement
Microsoft.CodeAnalysis.VisualBasic (14)
Binding\Binder_Statements.vb (1)
2753conditions.Add(BindBooleanExpression(node.IfStatement.Condition, diagnostics))
Generated\Syntax.xml.Main.Generated.vb (2)
2950Dim newIfStatement = DirectCast(Visit(node.IfStatement), IfStatementSyntax) 2951If node.IfStatement IsNot newIfStatement Then anyChanges = True
Generated\Syntax.xml.Syntax.Generated.vb (6)
14564return Update(Me.IfStatement, statements, Me.ElseIfBlocks, Me.ElseBlock, Me.EndIfStatement) 14591return Update(Me.IfStatement, Me.Statements, elseIfBlocks, Me.ElseBlock, Me.EndIfStatement) 14617return Update(Me.IfStatement, Me.Statements, Me.ElseIfBlocks, elseBlock, Me.EndIfStatement) 14640return Update(Me.IfStatement, Me.Statements, Me.ElseIfBlocks, Me.ElseBlock, endIfStatement) 14663Return Me.IfStatement 14706If 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)
203condGoto = New BoundSequencePoint(asMultiline.IfStatement, condGoto)
Semantics\StatementSyntaxWalker.vb (1)
146Visit(node.IfStatement)
Syntax\SyntaxFacts.vb (1)
462beginStatement = ifBlock.IfStatement
Syntax\SyntaxNormalizer.vb (2)
857AddLinebreaksAfterTokenIfNeeded(node.IfStatement.GetLastToken(), 1) 868previousNode = 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)
113Return IsOnHeader(root, position, multipleLineNode.IfStatement, multipleLineNode.IfStatement)
VisualBasicUseCoalesceExpressionForIfNullStatementCheckDiagnosticAnalyzer.vb (1)
37Return ifBlock.IfStatement.Condition
VisualBasicUseNullPropagationDiagnosticAnalyzer.vb (1)
55condition = ifStatement.IfStatement.Condition
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (2)
EndConstructGeneration\EndConstructStatementVisitor_IfStatement.vb (1)
48Dim position = If(ifBlock.Statements.Any(), ifBlock.Statements(0).SpanStart, ifBlock.IfStatement.Span.End + _state.NewLineCharacter.Length)
LineCommit\ContainingStatementInfo.MatchingStatementsVisitor.vb (1)
57Dim 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)
1033Return New With {part.IfStatement.Condition, part.Statements}
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (1)
1629Dim ifStatement = DirectCast(node, MultiLineIfBlockSyntax).IfStatement
ExtractMethod\VisualBasicMethodExtractor.VisualBasicCodeGenerator.CallSiteContainerRewriter.vb (1)
201Return node.WithIfStatement(ReplaceStatementIfNeeded(node.IfStatement)).
Highlighting\KeywordHighlighters\MultiLineIfBlockHighlighter.vb (1)
23With ifBlock.IfStatement
InvertIf\VisualBasicInvertIfCodeRefactoringProvider.MultiLine.vb (2)
30Return ifNode.IfStatement.Condition 49.WithIfStatement(ifNode.IfStatement.WithCondition(DirectCast(condition, ExpressionSyntax))) _
SplitOrMergeIfStatements\VisualBasicIfLikeStatementGenerator.vb (5)
79Return DirectCast(ifOrElseIf, MultiLineIfBlockSyntax).IfStatement.Condition 118Return ifBlock.WithIfStatement(ifBlock.IfStatement.WithCondition(DirectCast(condition, ExpressionSyntax))) 149Dim newIfStatement = SyntaxFactory.IfStatement(ifBlock.IfStatement.IfKeyword, 168ifBlock.IfStatement.Condition, 169ifBlock.IfStatement.ThenKeyword)
Structure\Providers\MultiLineIfBlockStructureProvider.vb (1)
20node, node.IfStatement, autoCollapse:=False,
VisualBasicUseCoalesceExpressionForIfNullStatementCheckDiagnosticAnalyzer.vb (1)
37Return ifBlock.IfStatement.Condition
VisualBasicUseNullPropagationDiagnosticAnalyzer.vb (1)
55condition = ifStatement.IfStatement.Condition
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (2)
Generated\Syntax.Test.xml.Generated.vb (2)
19636Assert.NotNull(objectUnderTest.ifStatement) 19638Dim 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)
232SyntaxFactory.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)
113Return IsOnHeader(root, position, multipleLineNode.IfStatement, multipleLineNode.IfStatement)