43 references to IfStatement
Microsoft.CodeAnalysis.VisualBasic (14)
Binding\Binder_Statements.vb (1)
2782
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 (5)
src\709edbd02add87b6\VisualBasicUseCoalesceExpressionForIfNullStatementCheckDiagnosticAnalyzer.vb (1)
35
Return ifBlock.
IfStatement
.Condition
src\roslyn\src\Analyzers\VisualBasic\Analyzers\UseNullPropagation\VisualBasicUseNullPropagationDiagnosticAnalyzer.vb (1)
49
condition = ifStatement.
IfStatement
.Condition
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\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))
Microsoft.CodeAnalysis.VisualBasic.Features (13)
CodeFixes\GenerateEndConstruct\GenerateEndConstructCodeFixProvider.vb (1)
129
(Function(n As MultiLineIfBlockSyntax) n.
IfStatement
),
EditAndContinue\SyntaxComparer.vb (1)
1035
Return New With {part.
IfStatement
.Condition, part.Statements}
ExtractMethod\VisualBasicMethodExtractor.VisualBasicCodeGenerator.CallSiteContainerRewriter.vb (1)
202
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 (4)
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)
src\709edbd02add87b6\VisualBasicUseCoalesceExpressionForIfNullStatementCheckDiagnosticAnalyzer.vb (1)
35
Return ifBlock.
IfStatement
.Condition
src\roslyn\src\Analyzers\VisualBasic\Analyzers\UseNullPropagation\VisualBasicUseNullPropagationDiagnosticAnalyzer.vb (1)
49
condition = ifStatement.
IfStatement
.Condition
Structure\Providers\MultiLineIfBlockStructureProvider.vb (1)
20
node, node.
IfStatement
, autoCollapse:=False,
Microsoft.CodeAnalysis.VisualBasic.NetAnalyzers (4)
Microsoft.NetCore.Analyzers\Performance\BasicDoNotGuardCall.Fixer.vb (1)
57
Return multiLineIfBlockSyntax.WithIfStatement(multiLineIfBlockSyntax.
IfStatement
.WithCondition(CType(negatedExpression, ExpressionSyntax))) _
Microsoft.NetCore.Analyzers\Performance\BasicPreferDictionaryTryMethodsOverContainsKeyGuardFixer.vb (3)
236
Dim unary = TryCast(ifStatement.
IfStatement
.Condition, UnaryExpressionSyntax)
245
WithIfStatement(ifStatement.
IfStatement
.ReplaceNode(fix.ContainsKeyInvocation, tryAddInvocation))
252
ElseIf ifStatement.
IfStatement
.Condition.IsKind(SyntaxKind.InvocationExpression) And ifStatement.ElseBlock IsNot Nothing Then
Microsoft.CodeAnalysis.VisualBasic.Workspaces (4)
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
201
SyntaxFactory.ElseIfStatement(SyntaxFactory.Token(SyntaxKind.ElseIfKeyword), mifBlock.
IfStatement
.Condition, SyntaxFactory.Token(SyntaxKind.ThenKeyword)),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\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))
Roslyn.Diagnostics.VisualBasic.Analyzers (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\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))