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