19 instantiations of SyntaxTrivia
Microsoft.CodeAnalysis.VisualBasic (19)
Generated\Syntax.xml.Internal.Generated.vb (18)
45706
Return New
SyntaxTrivia
(SyntaxKind.WhitespaceTrivia, text)
45720
Return New
SyntaxTrivia
(SyntaxKind.EndOfLineTrivia, text)
45734
Return New
SyntaxTrivia
(SyntaxKind.ColonTrivia, text)
45748
Return New
SyntaxTrivia
(SyntaxKind.CommentTrivia, text)
45762
Return New
SyntaxTrivia
(SyntaxKind.ConflictMarkerTrivia, text)
45776
Return New
SyntaxTrivia
(SyntaxKind.LineContinuationTrivia, text)
45790
Return New
SyntaxTrivia
(SyntaxKind.DocumentationCommentExteriorTrivia, text)
45804
Return New
SyntaxTrivia
(SyntaxKind.DisabledTextTrivia, text)
45825
Return New
SyntaxTrivia
(kind, text)
57772
Return New
SyntaxTrivia
(SyntaxKind.WhitespaceTrivia, text, _factoryContext)
57786
Return New
SyntaxTrivia
(SyntaxKind.EndOfLineTrivia, text, _factoryContext)
57800
Return New
SyntaxTrivia
(SyntaxKind.ColonTrivia, text, _factoryContext)
57814
Return New
SyntaxTrivia
(SyntaxKind.CommentTrivia, text, _factoryContext)
57828
Return New
SyntaxTrivia
(SyntaxKind.ConflictMarkerTrivia, text, _factoryContext)
57842
Return New
SyntaxTrivia
(SyntaxKind.LineContinuationTrivia, text, _factoryContext)
57856
Return New
SyntaxTrivia
(SyntaxKind.DocumentationCommentExteriorTrivia, text, _factoryContext)
57870
Return New
SyntaxTrivia
(SyntaxKind.DisabledTextTrivia, text, _factoryContext)
57891
Return New
SyntaxTrivia
(kind, text, _factoryContext)
Syntax\InternalSyntax\SyntaxTrivia.vb (1)
28
Me.
New
(kind, text)
76 references to SyntaxTrivia
Microsoft.CodeAnalysis.VisualBasic (76)
Generated\Syntax.xml.Internal.Generated.vb (18)
45704
Friend Shared Function WhitespaceTrivia(text as String) As
SyntaxTrivia
45718
Friend Shared Function EndOfLineTrivia(text as String) As
SyntaxTrivia
45732
Friend Shared Function ColonTrivia(text as String) As
SyntaxTrivia
45746
Friend Shared Function CommentTrivia(text as String) As
SyntaxTrivia
45760
Friend Shared Function ConflictMarkerTrivia(text as String) As
SyntaxTrivia
45774
Friend Shared Function LineContinuationTrivia(text as String) As
SyntaxTrivia
45788
Friend Shared Function DocumentationCommentExteriorTrivia(text as String) As
SyntaxTrivia
45802
Friend Shared Function DisabledTextTrivia(text as String) As
SyntaxTrivia
45822
Friend Shared Function SyntaxTrivia(kind As SyntaxKind, text as String) As
SyntaxTrivia
57770
Friend Function WhitespaceTrivia(text as String) As
SyntaxTrivia
57784
Friend Function EndOfLineTrivia(text as String) As
SyntaxTrivia
57798
Friend Function ColonTrivia(text as String) As
SyntaxTrivia
57812
Friend Function CommentTrivia(text as String) As
SyntaxTrivia
57826
Friend Function ConflictMarkerTrivia(text as String) As
SyntaxTrivia
57840
Friend Function LineContinuationTrivia(text as String) As
SyntaxTrivia
57854
Friend Function DocumentationCommentExteriorTrivia(text as String) As
SyntaxTrivia
57868
Friend Function DisabledTextTrivia(text as String) As
SyntaxTrivia
57888
Friend Function SyntaxTrivia(kind As SyntaxKind, text as String) As
SyntaxTrivia
Parser\ParseInterpolatedString.vb (1)
306
Dim firstColonTrivia = DirectCast(triviaList(indexOfFirstColon),
SyntaxTrivia
)
Parser\ParseStatement.vb (1)
1595
Dim colonTrivia = DirectCast(trivia(index),
SyntaxTrivia
)
Parser\ParseXml.vb (4)
1491
Dim whitespace As String = DirectCast(node,
SyntaxTrivia
).Text
2414
Public Overrides Function VisitSyntaxTrivia(trivia As
SyntaxTrivia
) As
SyntaxTrivia
2416
Return DirectCast(trivia.AddError(ErrorFactory.ErrorInfo(ERRID.ERR_IllegalXmlWhiteSpace)),
SyntaxTrivia
)
Scanner\Scanner.vb (9)
87
Private Shared ReadOnly s_wsTablePool As New ObjectPool(Of CachingFactory(Of TriviaKey,
SyntaxTrivia
))(
90
Private ReadOnly _wsTable As CachingFactory(Of TriviaKey,
SyntaxTrivia
) = s_wsTablePool.Allocate
347
Friend Function GetDisabledTextAt(span As TextSpan) As
SyntaxTrivia
533
Private Function ScanNewlineAsTrivia(StartCharacter As Char) As
SyntaxTrivia
577
Dim comment As
SyntaxTrivia
= ScanComment()
813
trivia = DirectCast(trivia.SetDiagnostics({ErrorFactory.ErrorInfo(ERRID.ERR_Merge_conflict_marker_encountered)}),
SyntaxTrivia
)
1096
Private Function ScanComment() As
SyntaxTrivia
1110
Dim commentTrivia As
SyntaxTrivia
= MakeCommentTrivia(GetTextNotInterned(length))
1129
Private Function ScanColonAsTrivia() As
SyntaxTrivia
Scanner\TokenFactories.vb (21)
34
Private Shared ReadOnly s_triviaKeyEquality As Func(Of TriviaKey,
SyntaxTrivia
, Boolean) =
37
Private Shared ReadOnly s_singleSpaceWhitespaceTrivia As
SyntaxTrivia
= SyntaxFactory.WhitespaceTrivia(" ")
38
Private Shared ReadOnly s_fourSpacesWhitespaceTrivia As
SyntaxTrivia
= SyntaxFactory.WhitespaceTrivia(" ")
39
Private Shared ReadOnly s_eightSpacesWhitespaceTrivia As
SyntaxTrivia
= SyntaxFactory.WhitespaceTrivia(" ")
40
Private Shared ReadOnly s_twelveSpacesWhitespaceTrivia As
SyntaxTrivia
= SyntaxFactory.WhitespaceTrivia(" ")
41
Private Shared ReadOnly s_sixteenSpacesWhitespaceTrivia As
SyntaxTrivia
= SyntaxFactory.WhitespaceTrivia(" ")
43
Private Shared Function CreateWsTable() As CachingFactory(Of TriviaKey,
SyntaxTrivia
)
44
Dim table = New CachingFactory(Of TriviaKey,
SyntaxTrivia
)(TABLE_LIMIT, Nothing, s_triviaKeyHasher, s_triviaKeyEquality)
157
Friend Function MakeWhiteSpaceTrivia(text As String) As
SyntaxTrivia
161
Dim ws As
SyntaxTrivia
= Nothing
170
Friend Function MakeEndOfLineTrivia(text As String) As
SyntaxTrivia
171
Dim ws As
SyntaxTrivia
= Nothing
180
Friend Function MakeColonTrivia(text As String) As
SyntaxTrivia
184
Dim ct As
SyntaxTrivia
= Nothing
193
Private Shared ReadOnly s_crLfTrivia As
SyntaxTrivia
= SyntaxFactory.EndOfLineTrivia(vbCrLf)
194
Friend Function MakeEndOfLineTriviaCRLF() As
SyntaxTrivia
199
Friend Function MakeLineContinuationTrivia(text As String) As
SyntaxTrivia
203
Dim ws As
SyntaxTrivia
= Nothing
212
Friend Function MakeDocumentationCommentExteriorTrivia(text As String) As
SyntaxTrivia
213
Dim ws As
SyntaxTrivia
= Nothing
222
Friend Shared Function MakeCommentTrivia(text As String) As
SyntaxTrivia
Scanner\TokenStream.vb (1)
293
Dim lastTrivia = DirectCast(tList(tList.Count - 1),
SyntaxTrivia
)
Syntax\InternalSyntax\SyntaxFactory.vb (16)
12
Friend Shared ReadOnly CarriageReturnLineFeed As
SyntaxTrivia
= EndOfLine(vbCrLf)
13
Friend Shared ReadOnly LineFeed As
SyntaxTrivia
= EndOfLine(vbLf)
14
Friend Shared ReadOnly CarriageReturn As
SyntaxTrivia
= EndOfLine(vbCr)
15
Friend Shared ReadOnly Space As
SyntaxTrivia
= Whitespace(" ")
16
Friend Shared ReadOnly Tab As
SyntaxTrivia
= Whitespace(vbTab)
18
Friend Shared ReadOnly ElasticCarriageReturnLineFeed As
SyntaxTrivia
= EndOfLine(vbCrLf, elastic:=True)
19
Friend Shared ReadOnly ElasticLineFeed As
SyntaxTrivia
= EndOfLine(vbLf, elastic:=True)
20
Friend Shared ReadOnly ElasticCarriageReturn As
SyntaxTrivia
= EndOfLine(vbCr, elastic:=True)
21
Friend Shared ReadOnly ElasticSpace As
SyntaxTrivia
= Whitespace(" ", elastic:=True)
22
Friend Shared ReadOnly ElasticTab As
SyntaxTrivia
= Whitespace(vbTab, elastic:=True)
24
Friend Shared ReadOnly ElasticZeroSpace As
SyntaxTrivia
= Whitespace(String.Empty, elastic:=True)
26
Friend Shared Function EndOfLine(text As String, Optional elastic As Boolean = False) As
SyntaxTrivia
28
Dim trivia As
SyntaxTrivia
= Nothing
53
Friend Shared Function Whitespace(text As String, Optional elastic As Boolean = False) As
SyntaxTrivia
66
Friend Shared Function GetWellKnownTrivia() As IEnumerable(Of
SyntaxTrivia
)
67
Return New
SyntaxTrivia
() {
Syntax\InternalSyntax\SyntaxNodeFactories.vb (1)
455
Friend Shared Function EndOfFileToken(precedingTrivia As
SyntaxTrivia
) As PunctuationSyntax
Syntax\InternalSyntax\SyntaxTrivia.vb (2)
94
Public Shared Narrowing Operator CType(trivia As
SyntaxTrivia
) As Microsoft.CodeAnalysis.SyntaxTrivia
103
Dim otherTrivia = DirectCast(other,
SyntaxTrivia
)
Syntax\InternalSyntax\VisualBasicSyntaxRewriter.vb (2)
14
Public Overridable Function VisitSyntaxTrivia(trivia As
SyntaxTrivia
) As
SyntaxTrivia