43 references to IfStatement
Microsoft.CodeAnalysis.VisualBasic (14)
Binding\Binder_Statements.vb (1)
2782conditions.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 (5)
src\709edbd02add87b6\VisualBasicUseCoalesceExpressionForIfNullStatementCheckDiagnosticAnalyzer.vb (1)
35Return ifBlock.IfStatement.Condition
src\roslyn\src\Analyzers\VisualBasic\Analyzers\UseNullPropagation\VisualBasicUseNullPropagationDiagnosticAnalyzer.vb (1)
49condition = 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)
1035Return New With {part.IfStatement.Condition, part.Statements}
ExtractMethod\VisualBasicMethodExtractor.VisualBasicCodeGenerator.CallSiteContainerRewriter.vb (1)
202Return 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 (4)
118Return ifBlock.WithIfStatement(ifBlock.IfStatement.WithCondition(DirectCast(condition, ExpressionSyntax))) 149Dim newIfStatement = SyntaxFactory.IfStatement(ifBlock.IfStatement.IfKeyword, 168ifBlock.IfStatement.Condition, 169ifBlock.IfStatement.ThenKeyword)
src\709edbd02add87b6\VisualBasicUseCoalesceExpressionForIfNullStatementCheckDiagnosticAnalyzer.vb (1)
35Return ifBlock.IfStatement.Condition
src\roslyn\src\Analyzers\VisualBasic\Analyzers\UseNullPropagation\VisualBasicUseNullPropagationDiagnosticAnalyzer.vb (1)
49condition = ifStatement.IfStatement.Condition
Structure\Providers\MultiLineIfBlockStructureProvider.vb (1)
20node, node.IfStatement, autoCollapse:=False,
Microsoft.CodeAnalysis.VisualBasic.NetAnalyzers (4)
Microsoft.NetCore.Analyzers\Performance\BasicDoNotGuardCall.Fixer.vb (1)
57Return multiLineIfBlockSyntax.WithIfStatement(multiLineIfBlockSyntax.IfStatement.WithCondition(CType(negatedExpression, ExpressionSyntax))) _
Microsoft.NetCore.Analyzers\Performance\BasicPreferDictionaryTryMethodsOverContainsKeyGuardFixer.vb (3)
236Dim unary = TryCast(ifStatement.IfStatement.Condition, UnaryExpressionSyntax) 245WithIfStatement(ifStatement.IfStatement.ReplaceNode(fix.ContainsKeyInvocation, tryAddInvocation)) 252ElseIf ifStatement.IfStatement.Condition.IsKind(SyntaxKind.InvocationExpression) And ifStatement.ElseBlock IsNot Nothing Then
Microsoft.CodeAnalysis.VisualBasic.Workspaces (4)
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
201SyntaxFactory.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))