41 references to ElseClause
Microsoft.CodeAnalysis.VisualBasic (15)
Binding\Binder_Statements.vb (3)
2737If node.ElseClause IsNot Nothing Then 2738alternative = BindBlock(node.ElseClause, node.ElseClause.Statements, diagnostics)
Binding\LocalBinderBuilder.vb (1)
233MakeBinder(node.ElseClause, _containingBinder)
Generated\Syntax.xml.Main.Generated.vb (2)
2922Dim newElseClause = DirectCast(Visit(node.ElseClause), SingleLineElseClauseSyntax) 2923If node.ElseClause IsNot newElseClause Then anyChanges = True
Generated\Syntax.xml.Syntax.Generated.vb (8)
14217return Update(ifKeyword, Me.Condition, Me.ThenKeyword, Me.Statements, Me.ElseClause) 14235return Update(Me.IfKeyword, condition, Me.ThenKeyword, Me.Statements, Me.ElseClause) 14253return Update(Me.IfKeyword, Me.Condition, thenKeyword, Me.Statements, Me.ElseClause) 14276return Update(Me.IfKeyword, Me.Condition, Me.ThenKeyword, statements, Me.ElseClause) 14305Dim _child = If(Me.ElseClause IsNot Nothing, Me.ElseClause, SyntaxFactory.SingleLineElseClause()) 14329Return Me.ElseClause 14364If 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)
138Visit(node.ElseClause)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (4)
SyntaxNodeExtensions.vb (4)
708elseStatements = If(singleLineIf.ElseClause Is Nothing, Nothing, singleLineIf.ElseClause.Statements) 720Dim elseBlockOpt = If(singleLineIf.ElseClause Is Nothing, 723SyntaxFactory.ElseStatement(singleLineIf.ElseClause.ElseKeyword).WithAppendedTrailingTrivia(SyntaxFactory.ElasticMarker),
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (7)
EndConstructGeneration\EndConstructStatementVisitor_IfStatement.vb (5)
31If node.ElseClause IsNot Nothing Then 32Dim trailingTrivia = If(node.ElseClause.ElseKeyword.HasTrailingTrivia AndAlso node.ElseClause.ElseKeyword.TrailingTrivia.Any(SyntaxKind.EndOfLineTrivia), 33node.ElseClause.ElseKeyword.TrailingTrivia, 36ConvertSingleLineStatementsToMultiLineStatements(node.ElseClause.Statements, indentedWhitespace))
EndConstructGeneration\VisualBasicEndConstructGenerationService.vb (2)
225(asSingleLine.ElseClause Is Nothing OrElse 226state.TokenToLeft <> asSingleLine.ElseClause.ElseKeyword) Then
Microsoft.CodeAnalysis.VisualBasic.Features (8)
ExtractMethod\VisualBasicMethodExtractor.VisualBasicCodeGenerator.CallSiteContainerRewriter.vb (1)
184node.ElseClause)
Highlighting\KeywordHighlighters\SingleLineIfBlockHighlighter.vb (2)
27If ifStatement.ElseClause IsNot Nothing Then 28highlights.Add(ifStatement.ElseClause.ElseKeyword.Span)
InvertIf\VisualBasicInvertIfCodeRefactoringProvider.SingleLine.vb (5)
22Return ifNode.ElseClause Is Nothing 28Not If(ifNode.ElseClause?.Statements.Any(Function(n) n.IsKind(SyntaxKind.LocalDeclarationStatement)), False) 40Return ifNode.ElseClause.Statements 75If(updatedIf.ElseClause IsNot Nothing, 76updatedIf.ElseClause.WithStatements(falseStatements),
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (3)
Generated\Syntax.Test.xml.Generated.vb (1)
19621Dim withObj = objectUnderTest.WithIfKeyword(objectUnderTest.IfKeyword).WithCondition(objectUnderTest.Condition).WithThenKeyword(objectUnderTest.ThenKeyword).WithStatements(objectUnderTest.Statements).WithElseClause(objectUnderTest.ElseClause)
Parser\ParseStatements.vb (2)
2259Dim statements = singleLineIf.ElseClause.Statements 2263Assert.IsType(Of SingleLineIfStatementSyntax)(singleLineIf.ElseClause.Statements(1))
Microsoft.CodeAnalysis.VisualBasic.Workspaces (4)
SyntaxNodeExtensions.vb (4)
708elseStatements = If(singleLineIf.ElseClause Is Nothing, Nothing, singleLineIf.ElseClause.Statements) 720Dim elseBlockOpt = If(singleLineIf.ElseClause Is Nothing, 723SyntaxFactory.ElseStatement(singleLineIf.ElseClause.ElseKeyword).WithAppendedTrailingTrivia(SyntaxFactory.ElasticMarker),