39 references to ElseClause
Microsoft.CodeAnalysis.VisualBasic (15)
Binding\Binder_Statements.vb (3)
2766
If node.
ElseClause
IsNot Nothing Then
2767
alternative = BindBlock(node.
ElseClause
, node.
ElseClause
.Statements, diagnostics)
Binding\LocalBinderBuilder.vb (1)
233
MakeBinder(node.
ElseClause
, _containingBinder)
Generated\Syntax.xml.Main.Generated.vb (2)
2922
Dim newElseClause = DirectCast(Visit(node.
ElseClause
), SingleLineElseClauseSyntax)
2923
If node.
ElseClause
IsNot newElseClause Then anyChanges = True
Generated\Syntax.xml.Syntax.Generated.vb (8)
14217
return Update(ifKeyword, Me.Condition, Me.ThenKeyword, Me.Statements, Me.
ElseClause
)
14235
return Update(Me.IfKeyword, condition, Me.ThenKeyword, Me.Statements, Me.
ElseClause
)
14253
return Update(Me.IfKeyword, Me.Condition, thenKeyword, Me.Statements, Me.
ElseClause
)
14276
return Update(Me.IfKeyword, Me.Condition, Me.ThenKeyword, statements, Me.
ElseClause
)
14305
Dim _child = If(Me.
ElseClause
IsNot Nothing, Me.
ElseClause
, SyntaxFactory.SingleLineElseClause())
14329
Return Me.
ElseClause
14364
If ifKeyword <> Me.IfKeyword OrElse condition IsNot Me.Condition OrElse thenKeyword <> Me.ThenKeyword OrElse statements <> Me.Statements OrElse elseClause IsNot Me.
ElseClause
Then
Semantics\StatementSyntaxWalker.vb (1)
138
Visit(node.
ElseClause
)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SyntaxNodeExtensions.vb (4)
680
elseStatements = If(singleLineIf.
ElseClause
Is Nothing, Nothing, singleLineIf.
ElseClause
.Statements)
692
Dim elseBlockOpt = If(singleLineIf.
ElseClause
Is Nothing,
695
SyntaxFactory.ElseStatement(singleLineIf.
ElseClause
.ElseKeyword).WithAppendedTrailingTrivia(SyntaxFactory.ElasticMarker),
Microsoft.CodeAnalysis.VisualBasic.Features (8)
ExtractMethod\VisualBasicMethodExtractor.VisualBasicCodeGenerator.CallSiteContainerRewriter.vb (1)
185
node.
ElseClause
)
Highlighting\KeywordHighlighters\SingleLineIfBlockHighlighter.vb (2)
27
If ifStatement.
ElseClause
IsNot Nothing Then
28
highlights.Add(ifStatement.
ElseClause
.ElseKeyword.Span)
InvertIf\VisualBasicInvertIfCodeRefactoringProvider.SingleLine.vb (5)
22
Return ifNode.
ElseClause
Is Nothing
28
Not If(ifNode.
ElseClause
?.Statements.Any(Function(n) n.IsKind(SyntaxKind.LocalDeclarationStatement)), False)
40
Return ifNode.
ElseClause
.Statements
75
If(updatedIf.
ElseClause
IsNot Nothing,
76
updatedIf.
ElseClause
.WithStatements(falseStatements),
Microsoft.CodeAnalysis.VisualBasic.NetAnalyzers (4)
Microsoft.NetCore.Analyzers\Performance\BasicDoNotGuardCall.Fixer.vb (4)
68
Dim singleLineHasElse = singleLineIfStatementSyntax.
ElseClause
IsNot Nothing AndAlso singleLineIfStatementSyntax.
ElseClause
.ChildNodes().Any()
69
Dim singleLineGuardedStatement = GetGuardedStatement(If(guardedCallInElse, singleLineIfStatementSyntax.
ElseClause
?.Statements, singleLineIfStatementSyntax.Statements))
82
.WithStatements(If(guardedCallInElse, singleLineIfStatementSyntax.Statements, singleLineIfStatementSyntax.
ElseClause
.Statements)) _
Microsoft.CodeAnalysis.VisualBasic.Workspaces (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SyntaxNodeExtensions.vb (4)
680
elseStatements = If(singleLineIf.
ElseClause
Is Nothing, Nothing, singleLineIf.
ElseClause
.Statements)
692
Dim elseBlockOpt = If(singleLineIf.
ElseClause
Is Nothing,
695
SyntaxFactory.ElseStatement(singleLineIf.
ElseClause
.ElseKeyword).WithAppendedTrailingTrivia(SyntaxFactory.ElasticMarker),
Roslyn.Diagnostics.VisualBasic.Analyzers (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SyntaxNodeExtensions.vb (4)
680
elseStatements = If(singleLineIf.
ElseClause
Is Nothing, Nothing, singleLineIf.
ElseClause
.Statements)
692
Dim elseBlockOpt = If(singleLineIf.
ElseClause
Is Nothing,
695
SyntaxFactory.ElseStatement(singleLineIf.
ElseClause
.ElseKeyword).WithAppendedTrailingTrivia(SyntaxFactory.ElasticMarker),