4 instantiations of SingleLineIfStatementSyntax
Microsoft.CodeAnalysis.VisualBasic (4)
Generated\Syntax.xml.Internal.Generated.vb (1)
12582Return new Microsoft.CodeAnalysis.VisualBasic.Syntax.SingleLineIfStatementSyntax(Me, parent, startLocation)
Generated\Syntax.xml.Main.Generated.vb (2)
2926Return New SingleLineIfStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newIfKeyword, newCondition, newThenKeyword, newStatements.Node, newElseClause) 14077Return New SingleLineIfStatementSyntax(SyntaxKind.SingleLineIfStatement, Nothing, Nothing, DirectCast(ifKeyword.Node, InternalSyntax.KeywordSyntax), condition, DirectCast(thenKeyword.Node, InternalSyntax.KeywordSyntax), statements.Node, elseClause)
Generated\Syntax.xml.Syntax.Generated.vb (1)
14199Me.New(New Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax.SingleLineIfStatementSyntax(kind, errors, annotations, ifKeyword, DirectCast(condition.Green, Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax.ExpressionSyntax), thenKeyword, if(statements IsNot Nothing, statements.Green, Nothing), if(elseClause IsNot Nothing, DirectCast(elseClause.Green, Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax.SingleLineElseClauseSyntax), Nothing)), Nothing, 0)
77 references to SingleLineIfStatementSyntax
Microsoft.CodeAnalysis.VisualBasic (20)
Binding\Binder_Statements.vb (2)
63Return BindSingleLineIfStatement(DirectCast(node, SingleLineIfStatementSyntax), diagnostics) 2728Private Function BindSingleLineIfStatement(node As SingleLineIfStatementSyntax, diagnostics As BindingDiagnosticBag) As BoundStatement
Binding\LocalBinderBuilder.vb (1)
231Public Overrides Sub VisitSingleLineIfStatement(node As SingleLineIfStatementSyntax)
Generated\Syntax.xml.Main.Generated.vb (6)
257Public Overridable Function VisitSingleLineIfStatement(ByVal node As SingleLineIfStatementSyntax) As TResult 992Public Overridable Sub VisitSingleLineIfStatement(ByVal node As SingleLineIfStatementSyntax) 2911Public Overrides Function VisitSingleLineIfStatement(ByVal node As SingleLineIfStatementSyntax) As SyntaxNode 13954Public Shared Function SingleLineIfStatement(ifKeyword As SyntaxToken, condition As ExpressionSyntax, thenKeyword As SyntaxToken, statements As SyntaxList(of StatementSyntax), elseClause As SingleLineElseClauseSyntax) As SingleLineIfStatementSyntax 14094Public Shared Function SingleLineIfStatement(condition As ExpressionSyntax, statements As SyntaxList(of StatementSyntax), elseClause As SingleLineElseClauseSyntax) As SingleLineIfStatementSyntax 14105Public Shared Function SingleLineIfStatement(condition As ExpressionSyntax) As SingleLineIfStatementSyntax
Generated\Syntax.xml.Syntax.Generated.vb (8)
14216Public Shadows Function WithIfKeyword(ifKeyword as SyntaxToken) As SingleLineIfStatementSyntax 14234Public Shadows Function WithCondition(condition as ExpressionSyntax) As SingleLineIfStatementSyntax 14252Public Shadows Function WithThenKeyword(thenKeyword as SyntaxToken) As SingleLineIfStatementSyntax 14275Public Shadows Function WithStatements(statements as SyntaxList(Of StatementSyntax)) As SingleLineIfStatementSyntax 14279Public Shadows Function AddStatements(ParamArray items As StatementSyntax()) As SingleLineIfStatementSyntax 14300Public Shadows Function WithElseClause(elseClause as SingleLineElseClauseSyntax) As SingleLineIfStatementSyntax 14304Public Shadows Function AddElseClauseStatements(ParamArray items As StatementSyntax()) As SingleLineIfStatementSyntax 14363Public Function Update(ifKeyword As SyntaxToken, condition As ExpressionSyntax, thenKeyword As SyntaxToken, statements As SyntaxList(of StatementSyntax), elseClause As SingleLineElseClauseSyntax) As SingleLineIfStatementSyntax
Lowering\Instrumentation\DebugInfoInjector.vb (1)
208Dim asSingleLine = DirectCast(original.Syntax, SingleLineIfStatementSyntax)
Semantics\StatementSyntaxWalker.vb (1)
136Public Overrides Sub VisitSingleLineIfStatement(ByVal node As SingleLineIfStatementSyntax)
Syntax\SyntaxFacts.vb (1)
445Dim ifStatement = DirectCast(possibleBlock, SingleLineIfStatementSyntax)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (9)
DefaultOperationProvider.vb (1)
152Return TypeOf node Is SingleLineIfStatementSyntax OrElse TypeOf node Is SingleLineElseClauseSyntax
SyntaxNodeExtensions.vb (7)
142Dim singleLineIfStatement = TryCast(node, SingleLineIfStatementSyntax) 553Return DirectCast(node, SingleLineIfStatementSyntax).Statements 624Function(x As SingleLineIfStatementSyntax) x.WithStatements(statements), 698ByRef singleLineIf As SingleLineIfStatementSyntax, 706singleLineIf = DirectCast(executableBlock, SingleLineIfStatementSyntax) 710singleLineIf = DirectCast(executableBlock.Parent, SingleLineIfStatementSyntax) 753Dim singleLineIf As SingleLineIfStatementSyntax = Nothing
VisualBasicHeaderFacts.vb (1)
116Dim singleLineNode = TryGetAncestorForLocation(Of SingleLineIfStatementSyntax)(root, position)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (3)
SyntaxTreeExtensions.vb (2)
643Dim singleLineIf = targetToken.GetAncestor(Of SingleLineIfStatementSyntax)() 645(targetToken.IsChildToken(Of SingleLineIfStatementSyntax)(Function(n) n.ThenKeyword) OrElse
VisualBasicTypeInferenceService.TypeInferrer.vb (1)
91Function(ifStatement As SingleLineIfStatementSyntax) InferTypeInIfOrElseIfStatement(),
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (3)
EndConstructGeneration\EndConstructStatementVisitor_IfStatement.vb (1)
22Public Overrides Function VisitSingleLineIfStatement(node As SingleLineIfStatementSyntax) As AbstractEndConstructResult
EndConstructGeneration\VisualBasicEndConstructGenerationService.vb (2)
222Dim asSingleLine = DirectCast(statement, SingleLineIfStatementSyntax) 270Dim asSingleLine = DirectCast(statement, SingleLineIfStatementSyntax)
Microsoft.CodeAnalysis.VisualBasic.Features (19)
Completion\KeywordRecommenders\Statements\ElseKeywordRecommender.vb (2)
20Dim parent = targetToken.GetAncestor(Of SingleLineIfStatementSyntax)() 23If context.IsFollowingCompleteStatement(Of SingleLineIfStatementSyntax)(Function(ifStatement) ifStatement.Statements.Last()) Then
EditAndContinue\BreakpointSpans.vb (1)
171Dim asSingleLine = DirectCast(node, SingleLineIfStatementSyntax)
EditAndContinue\SyntaxComparer.vb (1)
1035Dim part = DirectCast(node, SingleLineIfStatementSyntax)
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (2)
913lastBlockStatement = DirectCast(nodeOrToken.Parent, SingleLineIfStatementSyntax).Statements.LastOrDefault() 1637Dim ifStatement = DirectCast(node, SingleLineIfStatementSyntax)
ExtractMethod\VisualBasicMethodExtractor.TriviaResult.vb (1)
168Dim singleLineIf = token.Parent.GetAncestor(Of SingleLineIfStatementSyntax)()
ExtractMethod\VisualBasicMethodExtractor.VisualBasicCodeGenerator.CallSiteContainerRewriter.vb (1)
175Public Overrides Function VisitSingleLineIfStatement(node As SingleLineIfStatementSyntax) As SyntaxNode
ExtractMethod\VisualBasicSelectionValidator.Validator.vb (1)
50TypeOf statement Is SingleLineIfStatementSyntax OrElse
Highlighting\KeywordHighlighters\SingleLineIfBlockHighlighter.vb (2)
15Inherits AbstractKeywordHighlighter(Of SingleLineIfStatementSyntax) 22Protected Overloads Overrides Sub AddHighlights(ifStatement As SingleLineIfStatementSyntax, highlights As List(Of TextSpan), cancellationToken As CancellationToken)
InvertIf\VisualBasicInvertIfCodeRefactoringProvider.SingleLine.vb (8)
14Inherits VisualBasicInvertIfCodeRefactoringProvider(Of SingleLineIfStatementSyntax) 21Protected Overrides Function IsElseless(ifNode As SingleLineIfStatementSyntax) As Boolean 25Protected Overrides Function CanInvert(ifNode As SingleLineIfStatementSyntax) As Boolean 31Protected Overrides Function GetCondition(ifNode As SingleLineIfStatementSyntax) As SyntaxNode 35Protected Overrides Function GetIfBody(ifNode As SingleLineIfStatementSyntax) As SyntaxList(Of StatementSyntax) 39Protected Overrides Function GetElseBody(ifNode As SingleLineIfStatementSyntax) As SyntaxList(Of StatementSyntax) 45ifNode As SingleLineIfStatementSyntax, 48Optional falseStatements As SyntaxList(Of StatementSyntax) = Nothing) As SingleLineIfStatementSyntax
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (4)
Generated\Syntax.Test.xml.Generated.vb (1)
12321Private Shared Function GenerateRedSingleLineIfStatement() As SingleLineIfStatementSyntax
Parser\ParseStatements.vb (3)
364Dim ifStmt = TryCast(subMain.ChildNodesAndTokens()(1).AsNode, SingleLineIfStatementSyntax) 2257CType(CType(CType(compilation.Members(0), TypeBlockSyntax).Members(0), MethodBlockSyntax).Statements(0), SingleLineIfStatementSyntax) 2263Assert.IsType(Of SingleLineIfStatementSyntax)(singleLineIf.ElseClause.Statements(1))
Microsoft.CodeAnalysis.VisualBasic.Workspaces (13)
CodeCleanup\Providers\RemoveUnnecessaryLineContinuationCodeCleanupProvider.vb (1)
262If TypeOf node Is SingleLineIfStatementSyntax OrElse
Formatting\DefaultOperationProvider.vb (1)
152Return TypeOf node Is SingleLineIfStatementSyntax OrElse TypeOf node Is SingleLineElseClauseSyntax
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\SyntaxTreeExtensions.vb\SyntaxTreeExtensions.vb (2)
643Dim singleLineIf = targetToken.GetAncestor(Of SingleLineIfStatementSyntax)() 645(targetToken.IsChildToken(Of SingleLineIfStatementSyntax)(Function(n) n.ThenKeyword) OrElse
SyntaxNodeExtensions.vb (7)
142Dim singleLineIfStatement = TryCast(node, SingleLineIfStatementSyntax) 553Return DirectCast(node, SingleLineIfStatementSyntax).Statements 624Function(x As SingleLineIfStatementSyntax) x.WithStatements(statements), 698ByRef singleLineIf As SingleLineIfStatementSyntax, 706singleLineIf = DirectCast(executableBlock, SingleLineIfStatementSyntax) 710singleLineIf = DirectCast(executableBlock.Parent, SingleLineIfStatementSyntax) 753Dim singleLineIf As SingleLineIfStatementSyntax = Nothing
VisualBasicHeaderFacts.vb (1)
116Dim singleLineNode = TryGetAncestorForLocation(Of SingleLineIfStatementSyntax)(root, position)
VisualBasicTypeInferenceService.TypeInferrer.vb (1)
91Function(ifStatement As SingleLineIfStatementSyntax) InferTypeInIfOrElseIfStatement(),
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
Help\VisualBasicHelpContextService.Visitor.vb (1)
184Public Overrides Sub VisitSingleLineIfStatement(node As SingleLineIfStatementSyntax)
Roslyn.Compilers.VisualBasic.IOperation.UnitTests (5)
IOperation\IOperationTests_IIfStatement.vb (5)
49VerifyOperationTreeAndDiagnosticsForTest(Of SingleLineIfStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) 143VerifyOperationTreeAndDiagnosticsForTest(Of SingleLineIfStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) 193VerifyOperationTreeAndDiagnosticsForTest(Of SingleLineIfStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) 316VerifyOperationTreeAndDiagnosticsForTest(Of SingleLineIfStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) 733VerifyOperationTreeAndDiagnosticsForTest(Of SingleLineIfStatementSyntax)(source, expectedOperationTree, expectedDiagnostics)