41 references to ElseClause
Microsoft.CodeAnalysis.VisualBasic (15)
Binding\Binder_Statements.vb (3)
2737
If node.
ElseClause
IsNot Nothing Then
2738
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)
SyntaxNodeExtensions.vb (4)
708
elseStatements = If(singleLineIf.
ElseClause
Is Nothing, Nothing, singleLineIf.
ElseClause
.Statements)
720
Dim elseBlockOpt = If(singleLineIf.
ElseClause
Is Nothing,
723
SyntaxFactory.ElseStatement(singleLineIf.
ElseClause
.ElseKeyword).WithAppendedTrailingTrivia(SyntaxFactory.ElasticMarker),
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (7)
EndConstructGeneration\EndConstructStatementVisitor_IfStatement.vb (5)
31
If node.
ElseClause
IsNot Nothing Then
32
Dim trailingTrivia = If(node.
ElseClause
.ElseKeyword.HasTrailingTrivia AndAlso node.
ElseClause
.ElseKeyword.TrailingTrivia.Any(SyntaxKind.EndOfLineTrivia),
33
node.
ElseClause
.ElseKeyword.TrailingTrivia,
36
ConvertSingleLineStatementsToMultiLineStatements(node.
ElseClause
.Statements, indentedWhitespace))
EndConstructGeneration\VisualBasicEndConstructGenerationService.vb (2)
225
(asSingleLine.
ElseClause
Is Nothing OrElse
226
state.TokenToLeft <> asSingleLine.
ElseClause
.ElseKeyword) Then
Microsoft.CodeAnalysis.VisualBasic.Features (8)
ExtractMethod\VisualBasicMethodExtractor.VisualBasicCodeGenerator.CallSiteContainerRewriter.vb (1)
184
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.Syntax.UnitTests (3)
Generated\Syntax.Test.xml.Generated.vb (1)
19621
Dim withObj = objectUnderTest.WithIfKeyword(objectUnderTest.IfKeyword).WithCondition(objectUnderTest.Condition).WithThenKeyword(objectUnderTest.ThenKeyword).WithStatements(objectUnderTest.Statements).WithElseClause(objectUnderTest.
ElseClause
)
Parser\ParseStatements.vb (2)
2259
Dim statements = singleLineIf.
ElseClause
.Statements
2263
Assert.IsType(Of SingleLineIfStatementSyntax)(singleLineIf.
ElseClause
.Statements(1))
Microsoft.CodeAnalysis.VisualBasic.Workspaces (4)
SyntaxNodeExtensions.vb (4)
708
elseStatements = If(singleLineIf.
ElseClause
Is Nothing, Nothing, singleLineIf.
ElseClause
.Statements)
720
Dim elseBlockOpt = If(singleLineIf.
ElseClause
Is Nothing,
723
SyntaxFactory.ElseStatement(singleLineIf.
ElseClause
.ElseKeyword).WithAppendedTrailingTrivia(SyntaxFactory.ElasticMarker),