39 references to ElseClause
Microsoft.CodeAnalysis.VisualBasic (15)
Binding\Binder_Statements.vb (3)
2766If node.ElseClause IsNot Nothing Then 2767alternative = 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)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SyntaxNodeExtensions.vb (4)
680elseStatements = If(singleLineIf.ElseClause Is Nothing, Nothing, singleLineIf.ElseClause.Statements) 692Dim elseBlockOpt = If(singleLineIf.ElseClause Is Nothing, 695SyntaxFactory.ElseStatement(singleLineIf.ElseClause.ElseKeyword).WithAppendedTrailingTrivia(SyntaxFactory.ElasticMarker),
Microsoft.CodeAnalysis.VisualBasic.Features (8)
ExtractMethod\VisualBasicMethodExtractor.VisualBasicCodeGenerator.CallSiteContainerRewriter.vb (1)
185node.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.NetAnalyzers (4)
Microsoft.NetCore.Analyzers\Performance\BasicDoNotGuardCall.Fixer.vb (4)
68Dim singleLineHasElse = singleLineIfStatementSyntax.ElseClause IsNot Nothing AndAlso singleLineIfStatementSyntax.ElseClause.ChildNodes().Any() 69Dim 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)
680elseStatements = If(singleLineIf.ElseClause Is Nothing, Nothing, singleLineIf.ElseClause.Statements) 692Dim elseBlockOpt = If(singleLineIf.ElseClause Is Nothing, 695SyntaxFactory.ElseStatement(singleLineIf.ElseClause.ElseKeyword).WithAppendedTrailingTrivia(SyntaxFactory.ElasticMarker),
Roslyn.Diagnostics.VisualBasic.Analyzers (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SyntaxNodeExtensions.vb (4)
680elseStatements = If(singleLineIf.ElseClause Is Nothing, Nothing, singleLineIf.ElseClause.Statements) 692Dim elseBlockOpt = If(singleLineIf.ElseClause Is Nothing, 695SyntaxFactory.ElseStatement(singleLineIf.ElseClause.ElseKeyword).WithAppendedTrailingTrivia(SyntaxFactory.ElasticMarker),