27 references to ThenKeyword
Microsoft.CodeAnalysis.VisualBasic (9)
Generated\Syntax.xml.Main.Generated.vb (2)
2918Dim newThenKeyword = DirectCast(VisitToken(node.ThenKeyword).Node, InternalSyntax.KeywordSyntax) 2919If node.ThenKeyword.Node IsNot newThenKeyword Then anyChanges = True
Generated\Syntax.xml.Syntax.Generated.vb (5)
14217return Update(ifKeyword, Me.Condition, Me.ThenKeyword, Me.Statements, Me.ElseClause) 14235return Update(Me.IfKeyword, condition, Me.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))
Syntax\SyntaxFacts.vb (1)
447beginTerminator = ifStatement.ThenKeyword
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.CodeStyle.Fixes (1)
SyntaxTreeExtensions.vb (1)
645(targetToken.IsChildToken(Of SingleLineIfStatementSyntax)(Function(n) n.ThenKeyword) OrElse
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (3)
EndConstructGeneration\EndConstructStatementVisitor_IfStatement.vb (1)
40SyntaxFactory.IfStatement(node.IfKeyword, node.Condition, node.ThenKeyword).WithTrailingTrivia(endOfLine),
EndConstructGeneration\VisualBasicEndConstructGenerationService.vb (2)
224If state.TokenToLeft <> asSingleLine.ThenKeyword AndAlso 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)
182node.ThenKeyword,
Highlighting\KeywordHighlighters\SingleLineIfBlockHighlighter.vb (1)
25highlights.Add(ifStatement.ThenKeyword.Span)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (2)
Generated\Syntax.Test.xml.Generated.vb (2)
19620Assert.NotNull(objectUnderTest.thenKeyword) 19621Dim withObj = objectUnderTest.WithIfKeyword(objectUnderTest.IfKeyword).WithCondition(objectUnderTest.Condition).WithThenKeyword(objectUnderTest.ThenKeyword).WithStatements(objectUnderTest.Statements).WithElseClause(objectUnderTest.ElseClause)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (3)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\SyntaxTreeExtensions.vb\SyntaxTreeExtensions.vb (1)
645(targetToken.IsChildToken(Of SingleLineIfStatementSyntax)(Function(n) n.ThenKeyword) OrElse
SyntaxNodeExtensions.vb (2)
717Dim ifStatement = SyntaxFactory.IfStatement(singleLineIf.IfKeyword, singleLineIf.Condition, singleLineIf.ThenKeyword) _ 731SyntaxFactory.IfStatement(singleLineIf.IfKeyword, singleLineIf.Condition, singleLineIf.ThenKeyword) _
Microsoft.VisualStudio.LanguageServices.VisualBasic (2)
Help\VisualBasicHelpContextService.Visitor.vb (2)
185If node.ThenKeyword.Span.IntersectsWith(_span) Then 186result = Keyword(node.ThenKeyword.Text)