21 references to IfKeyword
Microsoft.CodeAnalysis.VisualBasic (8)
Generated\Syntax.xml.Main.Generated.vb (2)
2914Dim newIfKeyword = DirectCast(VisitToken(node.IfKeyword).Node, InternalSyntax.KeywordSyntax) 2915If node.IfKeyword.Node IsNot newIfKeyword Then anyChanges = True
Generated\Syntax.xml.Syntax.Generated.vb (5)
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) 14301return Update(Me.IfKeyword, Me.Condition, Me.ThenKeyword, Me.Statements, elseClause) 14364If ifKeyword <> Me.IfKeyword OrElse condition IsNot Me.Condition OrElse thenKeyword <> Me.ThenKeyword OrElse statements <> Me.Statements OrElse elseClause IsNot Me.ElseClause Then
Lowering\Instrumentation\DebugInfoInjector.vb (1)
209condGoto = New BoundSequencePointWithSpan(asSingleLine, condGoto, TextSpan.FromBounds(asSingleLine.IfKeyword.SpanStart, asSingleLine.ThenKeyword.EndPosition - 1))
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (2)
SyntaxNodeExtensions.vb (2)
717Dim ifStatement = SyntaxFactory.IfStatement(singleLineIf.IfKeyword, singleLineIf.Condition, singleLineIf.ThenKeyword) _ 731SyntaxFactory.IfStatement(singleLineIf.IfKeyword, singleLineIf.Condition, singleLineIf.ThenKeyword) _
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (2)
EndConstructGeneration\EndConstructStatementVisitor_IfStatement.vb (1)
40SyntaxFactory.IfStatement(node.IfKeyword, node.Condition, node.ThenKeyword).WithTrailingTrivia(endOfLine),
EndConstructGeneration\VisualBasicEndConstructGenerationService.vb (1)
272Dim span = TextSpan.FromBounds(asSingleLine.IfKeyword.SpanStart, asSingleLine.ThenKeyword.Span.End)
Microsoft.CodeAnalysis.VisualBasic.Features (5)
EditAndContinue\BreakpointSpans.vb (2)
173If position >= asSingleLine.IfKeyword.SpanStart AndAlso position < asSingleLine.ThenKeyword.Span.End Then 174Return TextSpan.FromBounds(asSingleLine.IfKeyword.SpanStart, asSingleLine.ThenKeyword.Span.End)
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (1)
1638Return GetDiagnosticSpan(ifStatement.IfKeyword, ifStatement.Condition, ifStatement.ThenKeyword)
ExtractMethod\VisualBasicMethodExtractor.VisualBasicCodeGenerator.CallSiteContainerRewriter.vb (1)
180Return SyntaxFactory.SingleLineIfStatement(node.IfKeyword,
Highlighting\KeywordHighlighters\SingleLineIfBlockHighlighter.vb (1)
23highlights.Add(ifStatement.IfKeyword.Span)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (2)
Generated\Syntax.Test.xml.Generated.vb (2)
19618Assert.NotNull(objectUnderTest.ifKeyword) 19621Dim withObj = objectUnderTest.WithIfKeyword(objectUnderTest.IfKeyword).WithCondition(objectUnderTest.Condition).WithThenKeyword(objectUnderTest.ThenKeyword).WithStatements(objectUnderTest.Statements).WithElseClause(objectUnderTest.ElseClause)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (2)
SyntaxNodeExtensions.vb (2)
717Dim ifStatement = SyntaxFactory.IfStatement(singleLineIf.IfKeyword, singleLineIf.Condition, singleLineIf.ThenKeyword) _ 731SyntaxFactory.IfStatement(singleLineIf.IfKeyword, singleLineIf.Condition, singleLineIf.ThenKeyword) _