Base:
method
GetLeadingTrivia
Microsoft.CodeAnalysis.VisualBasic.Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax.VisualBasicSyntaxNode.GetLeadingTrivia()
72 references to GetLeadingTrivia
Microsoft.CodeAnalysis.VisualBasic (72)
Generated\Syntax.xml.Internal.Generated.vb (27)
25545
Return new KeywordSyntax(Me.Kind, GetDiagnostics, GetAnnotations, text,
GetLeadingTrivia
, trivia)
25549
Return new KeywordSyntax(Me.Kind, newErrors, GetAnnotations, text,
GetLeadingTrivia
, GetTrailingTrivia)
25553
Return new KeywordSyntax(Me.Kind, GetDiagnostics, annotations, text,
GetLeadingTrivia
, GetTrailingTrivia)
25584
Return new PunctuationSyntax(Me.Kind, GetDiagnostics, GetAnnotations, text,
GetLeadingTrivia
, trivia)
25588
Return new PunctuationSyntax(Me.Kind, newErrors, GetAnnotations, text,
GetLeadingTrivia
, GetTrailingTrivia)
25592
Return new PunctuationSyntax(Me.Kind, GetDiagnostics, annotations, text,
GetLeadingTrivia
, GetTrailingTrivia)
25632
Return new XmlNameTokenSyntax(Me.Kind, GetDiagnostics, GetAnnotations, text,
GetLeadingTrivia
, trivia, _possibleKeywordKind)
25636
Return new XmlNameTokenSyntax(Me.Kind, newErrors, GetAnnotations, text,
GetLeadingTrivia
, GetTrailingTrivia, _possibleKeywordKind)
25640
Return new XmlNameTokenSyntax(Me.Kind, GetDiagnostics, annotations, text,
GetLeadingTrivia
, GetTrailingTrivia, _possibleKeywordKind)
25685
Return new XmlTextTokenSyntax(Me.Kind, GetDiagnostics, GetAnnotations, text,
GetLeadingTrivia
, trivia, _value)
25689
Return new XmlTextTokenSyntax(Me.Kind, newErrors, GetAnnotations, text,
GetLeadingTrivia
, GetTrailingTrivia, _value)
25693
Return new XmlTextTokenSyntax(Me.Kind, GetDiagnostics, annotations, text,
GetLeadingTrivia
, GetTrailingTrivia, _value)
25736
Return new InterpolatedStringTextTokenSyntax(Me.Kind, GetDiagnostics, GetAnnotations, text,
GetLeadingTrivia
, trivia, _value)
25740
Return new InterpolatedStringTextTokenSyntax(Me.Kind, newErrors, GetAnnotations, text,
GetLeadingTrivia
, GetTrailingTrivia, _value)
25744
Return new InterpolatedStringTextTokenSyntax(Me.Kind, GetDiagnostics, annotations, text,
GetLeadingTrivia
, GetTrailingTrivia, _value)
25801
Return new DecimalLiteralTokenSyntax(Me.Kind, GetDiagnostics, GetAnnotations, text,
GetLeadingTrivia
, trivia, _typeSuffix, _value)
25805
Return new DecimalLiteralTokenSyntax(Me.Kind, newErrors, GetAnnotations, text,
GetLeadingTrivia
, GetTrailingTrivia, _typeSuffix, _value)
25809
Return new DecimalLiteralTokenSyntax(Me.Kind, GetDiagnostics, annotations, text,
GetLeadingTrivia
, GetTrailingTrivia, _typeSuffix, _value)
25852
Return new DateLiteralTokenSyntax(Me.Kind, GetDiagnostics, GetAnnotations, text,
GetLeadingTrivia
, trivia, _value)
25856
Return new DateLiteralTokenSyntax(Me.Kind, newErrors, GetAnnotations, text,
GetLeadingTrivia
, GetTrailingTrivia, _value)
25860
Return new DateLiteralTokenSyntax(Me.Kind, GetDiagnostics, annotations, text,
GetLeadingTrivia
, GetTrailingTrivia, _value)
25904
Return new StringLiteralTokenSyntax(Me.Kind, GetDiagnostics, GetAnnotations, text,
GetLeadingTrivia
, trivia, _value)
25908
Return new StringLiteralTokenSyntax(Me.Kind, newErrors, GetAnnotations, text,
GetLeadingTrivia
, GetTrailingTrivia, _value)
25912
Return new StringLiteralTokenSyntax(Me.Kind, GetDiagnostics, annotations, text,
GetLeadingTrivia
, GetTrailingTrivia, _value)
25955
Return new CharacterLiteralTokenSyntax(Me.Kind, GetDiagnostics, GetAnnotations, text,
GetLeadingTrivia
, trivia, _value)
25959
Return new CharacterLiteralTokenSyntax(Me.Kind, newErrors, GetAnnotations, text,
GetLeadingTrivia
, GetTrailingTrivia, _value)
25963
Return new CharacterLiteralTokenSyntax(Me.Kind, GetDiagnostics, annotations, text,
GetLeadingTrivia
, GetTrailingTrivia, _value)
Parser\BlockContexts\CompilationUnitContext.vb (2)
443
Dim leadingTrivia = _tokenWithDirectivesBeingVisited.
GetLeadingTrivia
()
539
Dim leadingTrivia = token.
GetLeadingTrivia
()
Parser\ParseInterpolatedString.vb (1)
196
formatStringToken.
GetLeadingTrivia
(),
Parser\Parser.vb (1)
5420
token.
GetLeadingTrivia
(),
Parser\ParseStatement.vb (2)
470
elseIfKeyword = New KeywordSyntax(SyntaxKind.ElseIfKeyword, MergeTokenText(elseKeyword, ifKeyword), elseKeyword.
GetLeadingTrivia
(), ifKeyword.GetTrailingTrivia())
896
intLiteral = New IntegerLiteralTokenSyntax(Of ULong)(SyntaxKind.IntegerLiteralToken, intLiteral.ToString, intLiteral.
GetLeadingTrivia
, intLiteral.GetTrailingTrivia, intLiteral.Base, TypeCharacter.None, intLiteralValue)
Parser\ParseXml.vb (9)
270
Dim hasPrecedingWhitespace = PrevToken.GetTrailingTrivia.ContainsWhitespaceTrivia() OrElse CurrentToken.
GetLeadingTrivia
.ContainsWhitespaceTrivia
889
beginEndElement = DirectCast(InternalSyntaxFactory.Token(lessThan.
GetLeadingTrivia
,
1459
If IsInvalidTrivia(token.
GetLeadingTrivia
) OrElse IsInvalidTrivia(token.GetTrailingTrivia) Then
1542
(PrevToken.GetTrailingTrivia.ContainsWhitespaceTrivia() OrElse CurrentToken.
GetLeadingTrivia
.ContainsWhitespaceTrivia)
1619
localName = SyntaxFactory.XmlNameToken(localName.Text, localName.PossibleKeywordKind, localName.
GetLeadingTrivia
(), trailingTrivia.Node).WithDiagnostics(localName.GetDiagnostics())
1653
Dim name = SyntaxFactory.XmlNameToken(id.Text, id.PossibleKeywordKind, token.
GetLeadingTrivia
(), token.GetTrailingTrivia())
1667
Return SyntaxFactory.XmlNameToken(token.Text, token.Kind, token.
GetLeadingTrivia
(), token.GetTrailingTrivia())
1859
Not textToken.
GetLeadingTrivia
.ContainsWhitespaceTrivia() Then
2368
leadingTrivia = token.
GetLeadingTrivia
Scanner\Blender.vb (1)
71
trivia = tk.
GetLeadingTrivia
Scanner\Directives.vb (1)
158
Dim trivia = tk.
GetLeadingTrivia
Scanner\TokenFactories.vb (3)
268
keyword.
GetLeadingTrivia
,
323
identifier.
GetLeadingTrivia
,
332
xmlName.
GetLeadingTrivia
,
Scanner\TokenStream.vb (1)
256
xmlTk = SyntaxToken.AddLeadingTrivia(xmlTk, vbTk.
GetLeadingTrivia
())
Syntax\InternalSyntax\BadTokenSyntax.vb (3)
36
Return New BadTokenSyntax(Kind, SubKind, GetDiagnostics, GetAnnotations, Text,
GetLeadingTrivia
, trivia)
40
Return New BadTokenSyntax(Kind, SubKind, newErrors, GetAnnotations, Text,
GetLeadingTrivia
, GetTrailingTrivia)
44
Return New BadTokenSyntax(Kind, SubKind, GetDiagnostics, annotations, Text,
GetLeadingTrivia
, GetTrailingTrivia)
Syntax\InternalSyntax\ComplexIdentifierSyntax.vb (3)
81
Return New ComplexIdentifierSyntax(Kind, GetDiagnostics, GetAnnotations, Text,
GetLeadingTrivia
, trivia, PossibleKeywordKind, IsBracketed, IdentifierText, TypeCharacter)
85
Return New ComplexIdentifierSyntax(Kind, newErrors, GetAnnotations, Text,
GetLeadingTrivia
, GetTrailingTrivia, PossibleKeywordKind, IsBracketed, IdentifierText, TypeCharacter)
89
Return New ComplexIdentifierSyntax(Kind, GetDiagnostics, annotations, Text,
GetLeadingTrivia
, GetTrailingTrivia, PossibleKeywordKind, IsBracketed, IdentifierText, TypeCharacter)
Syntax\InternalSyntax\DocumentationCommentTriviaSyntax.vb (1)
30
WriteInteriorXml(New CodeAnalysis.Syntax.InternalSyntax.SyntaxList(Of VisualBasicSyntaxNode)(tk.
GetLeadingTrivia
), sb)
Syntax\InternalSyntax\SimpleIdentifierSyntax.vb (3)
57
Return New SimpleIdentifierSyntax(Kind, GetDiagnostics, GetAnnotations, Text,
GetLeadingTrivia
, trivia)
61
Return New SimpleIdentifierSyntax(Kind, newErrors, GetAnnotations, Text,
GetLeadingTrivia
, GetTrailingTrivia)
65
Return New SimpleIdentifierSyntax(Kind, GetDiagnostics, annotations, Text,
GetLeadingTrivia
, GetTrailingTrivia)
Syntax\InternalSyntax\SyntaxLiterals.vb (6)
88
Return New IntegerLiteralTokenSyntax(Of T)(Kind, GetDiagnostics, GetAnnotations, Text,
GetLeadingTrivia
, trivia, _base, _typeSuffix, _value)
92
Return New IntegerLiteralTokenSyntax(Of T)(Kind, newErrors, GetAnnotations, Text,
GetLeadingTrivia
, GetTrailingTrivia, _base, _typeSuffix, _value)
96
Return New IntegerLiteralTokenSyntax(Of T)(Kind, GetDiagnostics, annotations, Text,
GetLeadingTrivia
, GetTrailingTrivia, _base, _typeSuffix, _value)
186
Return New FloatingLiteralTokenSyntax(Of T)(Kind, GetDiagnostics, GetAnnotations, Text,
GetLeadingTrivia
, trivia, _typeSuffix, _value)
190
Return New FloatingLiteralTokenSyntax(Of T)(Kind, newErrors, GetAnnotations, Text,
GetLeadingTrivia
, GetTrailingTrivia, _typeSuffix, _value)
194
Return New FloatingLiteralTokenSyntax(Of T)(Kind, GetDiagnostics, annotations, Text,
GetLeadingTrivia
, GetTrailingTrivia, _typeSuffix, _value)
Syntax\InternalSyntax\SyntaxNode.vb (1)
98
Return possibleFirstChild.
GetLeadingTrivia
()
Syntax\InternalSyntax\SyntaxNodeExtensions.vb (2)
496
If token.HasLeadingTrivia() AndAlso (isFirst OrElse isMissing OrElse TriviaListContainsStructuredTrivia(token.
GetLeadingTrivia
())) Then
498
AddTrivia(token.
GetLeadingTrivia
())
Syntax\InternalSyntax\SyntaxToken.vb (5)
209
Dim leadingTrivia =
GetLeadingTrivia
()
227
Dim leadingTrivia =
GetLeadingTrivia
()
351
Dim oldTrivia = New CoreInternalSyntax.SyntaxList(Of VisualBasicSyntaxNode)(token.
GetLeadingTrivia
())
433
If Me.HasLeadingTrivia AndAlso Not Me.
GetLeadingTrivia
().IsEquivalentTo(otherToken.
GetLeadingTrivia
()) Then