112 references to Text
Microsoft.CodeAnalysis.VisualBasic (110)
Generated\Syntax.xml.Internal.Generated.vb (36)
32544
Return new KeywordSyntax(Me.Kind, GetDiagnostics, GetAnnotations,
text
, trivia, GetTrailingTrivia)
32548
Return new KeywordSyntax(Me.Kind, GetDiagnostics, GetAnnotations,
text
, GetLeadingTrivia, trivia)
32552
Return new KeywordSyntax(Me.Kind, newErrors, GetAnnotations,
text
, GetLeadingTrivia, GetTrailingTrivia)
32556
Return new KeywordSyntax(Me.Kind, GetDiagnostics, annotations,
text
, GetLeadingTrivia, GetTrailingTrivia)
32593
Return new PunctuationSyntax(Me.Kind, GetDiagnostics, GetAnnotations,
text
, trivia, GetTrailingTrivia)
32597
Return new PunctuationSyntax(Me.Kind, GetDiagnostics, GetAnnotations,
text
, GetLeadingTrivia, trivia)
32601
Return new PunctuationSyntax(Me.Kind, newErrors, GetAnnotations,
text
, GetLeadingTrivia, GetTrailingTrivia)
32605
Return new PunctuationSyntax(Me.Kind, GetDiagnostics, annotations,
text
, GetLeadingTrivia, GetTrailingTrivia)
32657
Return new XmlNameTokenSyntax(Me.Kind, GetDiagnostics, GetAnnotations,
text
, trivia, GetTrailingTrivia, _possibleKeywordKind)
32661
Return new XmlNameTokenSyntax(Me.Kind, GetDiagnostics, GetAnnotations,
text
, GetLeadingTrivia, trivia, _possibleKeywordKind)
32665
Return new XmlNameTokenSyntax(Me.Kind, newErrors, GetAnnotations,
text
, GetLeadingTrivia, GetTrailingTrivia, _possibleKeywordKind)
32669
Return new XmlNameTokenSyntax(Me.Kind, GetDiagnostics, annotations,
text
, GetLeadingTrivia, GetTrailingTrivia, _possibleKeywordKind)
32726
Return new XmlTextTokenSyntax(Me.Kind, GetDiagnostics, GetAnnotations,
text
, trivia, GetTrailingTrivia, _value)
32730
Return new XmlTextTokenSyntax(Me.Kind, GetDiagnostics, GetAnnotations,
text
, GetLeadingTrivia, trivia, _value)
32734
Return new XmlTextTokenSyntax(Me.Kind, newErrors, GetAnnotations,
text
, GetLeadingTrivia, GetTrailingTrivia, _value)
32738
Return new XmlTextTokenSyntax(Me.Kind, GetDiagnostics, annotations,
text
, GetLeadingTrivia, GetTrailingTrivia, _value)
32793
Return new InterpolatedStringTextTokenSyntax(Me.Kind, GetDiagnostics, GetAnnotations,
text
, trivia, GetTrailingTrivia, _value)
32797
Return new InterpolatedStringTextTokenSyntax(Me.Kind, GetDiagnostics, GetAnnotations,
text
, GetLeadingTrivia, trivia, _value)
32801
Return new InterpolatedStringTextTokenSyntax(Me.Kind, newErrors, GetAnnotations,
text
, GetLeadingTrivia, GetTrailingTrivia, _value)
32805
Return new InterpolatedStringTextTokenSyntax(Me.Kind, GetDiagnostics, annotations,
text
, GetLeadingTrivia, GetTrailingTrivia, _value)
32876
Return new DecimalLiteralTokenSyntax(Me.Kind, GetDiagnostics, GetAnnotations,
text
, trivia, GetTrailingTrivia, _typeSuffix, _value)
32880
Return new DecimalLiteralTokenSyntax(Me.Kind, GetDiagnostics, GetAnnotations,
text
, GetLeadingTrivia, trivia, _typeSuffix, _value)
32884
Return new DecimalLiteralTokenSyntax(Me.Kind, newErrors, GetAnnotations,
text
, GetLeadingTrivia, GetTrailingTrivia, _typeSuffix, _value)
32888
Return new DecimalLiteralTokenSyntax(Me.Kind, GetDiagnostics, annotations,
text
, GetLeadingTrivia, GetTrailingTrivia, _typeSuffix, _value)
32943
Return new DateLiteralTokenSyntax(Me.Kind, GetDiagnostics, GetAnnotations,
text
, trivia, GetTrailingTrivia, _value)
32947
Return new DateLiteralTokenSyntax(Me.Kind, GetDiagnostics, GetAnnotations,
text
, GetLeadingTrivia, trivia, _value)
32951
Return new DateLiteralTokenSyntax(Me.Kind, newErrors, GetAnnotations,
text
, GetLeadingTrivia, GetTrailingTrivia, _value)
32955
Return new DateLiteralTokenSyntax(Me.Kind, GetDiagnostics, annotations,
text
, GetLeadingTrivia, GetTrailingTrivia, _value)
33011
Return new StringLiteralTokenSyntax(Me.Kind, GetDiagnostics, GetAnnotations,
text
, trivia, GetTrailingTrivia, _value)
33015
Return new StringLiteralTokenSyntax(Me.Kind, GetDiagnostics, GetAnnotations,
text
, GetLeadingTrivia, trivia, _value)
33019
Return new StringLiteralTokenSyntax(Me.Kind, newErrors, GetAnnotations,
text
, GetLeadingTrivia, GetTrailingTrivia, _value)
33023
Return new StringLiteralTokenSyntax(Me.Kind, GetDiagnostics, annotations,
text
, GetLeadingTrivia, GetTrailingTrivia, _value)
33078
Return new CharacterLiteralTokenSyntax(Me.Kind, GetDiagnostics, GetAnnotations,
text
, trivia, GetTrailingTrivia, _value)
33082
Return new CharacterLiteralTokenSyntax(Me.Kind, GetDiagnostics, GetAnnotations,
text
, GetLeadingTrivia, trivia, _value)
33086
Return new CharacterLiteralTokenSyntax(Me.Kind, newErrors, GetAnnotations,
text
, GetLeadingTrivia, GetTrailingTrivia, _value)
33090
Return new CharacterLiteralTokenSyntax(Me.Kind, GetDiagnostics, annotations,
text
, GetLeadingTrivia, GetTrailingTrivia, _value)
Parser\ParseExpression.vb (1)
517
Dim spelling = tk.
Text
Parser\ParseInterpolatedString.vb (1)
194
formatStringToken = InternalSyntaxFactory.InterpolatedStringTextToken(excessText & formatStringToken.
Text
,
Parser\ParseQuery.vb (4)
539
Debug.Assert(CurrentToken.
Text
= contextualKeyword.
Text
)
1232
Debug.Assert(pToken.
Text
Is PeekToken(1).
Text
)
Parser\Parser.vb (2)
5404
Dim tokenText = token.
Text
5405
Dim tokenLength = token.
Text
.Length
Parser\ParseTerminal.vb (1)
65
If (CurrentToken.Kind = SyntaxKind.BadToken AndAlso CurrentToken.
Text
= "_") Then
Parser\ParseXml.vb (29)
759
prefix = name.Prefix.Name.
Text
762
localName = name.LocalName.
Text
891
lessThan.
Text
& slashToken.
Text
),
1035
If DocumentationCommentXmlNames.ElementEquals(xmlName.LocalName.
Text
, name, True) Then
1051
Not DocumentationCommentXmlNames.AttributeEquals(xmlName.LocalName.
Text
,
1063
state = If(CurrentToken.
Text
= "'"c, ScannerState.SingleQuotedString, ScannerState.SmartSingleQuotedString)
1066
state = If(CurrentToken.
Text
= """"c, ScannerState.QuotedString, ScannerState.SmartQuotedString)
1081
Dim text As String = nextToken.
Text
.Trim()
1369
Not DocumentationCommentXmlNames.AttributeEquals(xmlName.LocalName.
Text
,
1386
state = If(CurrentToken.
Text
= "'"c, ScannerState.SingleQuotedString, ScannerState.SmartSingleQuotedString)
1389
state = If(CurrentToken.
Text
= """"c, ScannerState.QuotedString, ScannerState.SmartQuotedString)
1618
localName = SyntaxFactory.XmlNameToken(localName.
Text
, localName.PossibleKeywordKind, localName.GetLeadingTrivia(), trailingTrivia.Node).WithDiagnostics(localName.GetDiagnostics())
1652
Dim name = SyntaxFactory.XmlNameToken(id.
Text
, id.PossibleKeywordKind, token.GetLeadingTrivia(), token.GetTrailingTrivia())
1666
Return SyntaxFactory.XmlNameToken(token.
Text
, token.Kind, token.GetLeadingTrivia(), token.GetTrailingTrivia())
1846
If name.
Text
.Length = 3 AndAlso String.Equals(name.
Text
, "xml", StringComparison.OrdinalIgnoreCase) Then
1847
name = ReportSyntaxError(name, ERRID.ERR_IllegalProcessingInstructionName, name.
Text
)
1923
If textToken.
Text
.Length = 2 AndAlso textToken.
Text
= "--" Then
1948
state = If(CurrentToken.
Text
= "'"c, ScannerState.SingleQuotedString, ScannerState.SmartSingleQuotedString)
1952
state = If(CurrentToken.
Text
= """"c, ScannerState.QuotedString, ScannerState.SmartQuotedString)
2392
Return New XmlNameTokenSyntax(node.Kind, node.GetDiagnostics, node.GetAnnotations, node.
Text
, leadingTrivia, trailingTrivia, node.PossibleKeywordKind)
2397
Return New KeywordSyntax(node.Kind, node.GetDiagnostics, node.GetAnnotations, node.
Text
, leadingTrivia, trailingTrivia)
2406
Return New PunctuationSyntax(node.Kind, node.GetDiagnostics, node.GetAnnotations, node.
Text
, leadingTrivia, trailingTrivia)
2501
If startName.LocalName.
Text
= name.LocalName.
Text
Then
2511
If startPrefix.Name.
Text
= endPrefix.Name.
Text
Then
Scanner\TokenFactories.vb (5)
125
x.spelling IsNot y.
Text
OrElse
263
Return MakeIdentifier(keyword.
Text
,
266
keyword.
Text
,
322
identifier.
Text
,
331
xmlName.
Text
,
Syntax\InternalSyntax\BadTokenSyntax.vb (4)
48
Return New BadTokenSyntax(Kind, SubKind, GetDiagnostics, GetAnnotations,
Text
, trivia, GetTrailingTrivia)
52
Return New BadTokenSyntax(Kind, SubKind, GetDiagnostics, GetAnnotations,
Text
, GetLeadingTrivia, trivia)
56
Return New BadTokenSyntax(Kind, SubKind, newErrors, GetAnnotations,
Text
, GetLeadingTrivia, GetTrailingTrivia)
60
Return New BadTokenSyntax(Kind, SubKind, GetDiagnostics, annotations,
Text
, GetLeadingTrivia, GetTrailingTrivia)
Syntax\InternalSyntax\ComplexIdentifierSyntax.vb (4)
97
Return New ComplexIdentifierSyntax(Kind, GetDiagnostics, GetAnnotations,
Text
, trivia, GetTrailingTrivia, PossibleKeywordKind, IsBracketed, IdentifierText, TypeCharacter)
101
Return New ComplexIdentifierSyntax(Kind, GetDiagnostics, GetAnnotations,
Text
, GetLeadingTrivia, trivia, PossibleKeywordKind, IsBracketed, IdentifierText, TypeCharacter)
105
Return New ComplexIdentifierSyntax(Kind, newErrors, GetAnnotations,
Text
, GetLeadingTrivia, GetTrailingTrivia, PossibleKeywordKind, IsBracketed, IdentifierText, TypeCharacter)
109
Return New ComplexIdentifierSyntax(Kind, GetDiagnostics, annotations,
Text
, GetLeadingTrivia, GetTrailingTrivia, PossibleKeywordKind, IsBracketed, IdentifierText, TypeCharacter)
Syntax\InternalSyntax\DocumentationCommentTriviaSyntax.vb (2)
38
Dim txt = node.
Text
40
sb.Append(node.
Text
)
Syntax\InternalSyntax\SimpleIdentifierSyntax.vb (5)
54
Return Me.
Text
70
Return New SimpleIdentifierSyntax(Kind, GetDiagnostics, GetAnnotations,
Text
, trivia, GetTrailingTrivia)
74
Return New SimpleIdentifierSyntax(Kind, GetDiagnostics, GetAnnotations,
Text
, GetLeadingTrivia, trivia)
78
Return New SimpleIdentifierSyntax(Kind, newErrors, GetAnnotations,
Text
, GetLeadingTrivia, GetTrailingTrivia)
82
Return New SimpleIdentifierSyntax(Kind, GetDiagnostics, annotations,
Text
, GetLeadingTrivia, GetTrailingTrivia)
Syntax\InternalSyntax\SyntaxLiterals.vb (8)
98
Return New IntegerLiteralTokenSyntax(Of T)(Kind, GetDiagnostics, GetAnnotations,
Text
, trivia, GetTrailingTrivia, _base, _typeSuffix, _value)
102
Return New IntegerLiteralTokenSyntax(Of T)(Kind, GetDiagnostics, GetAnnotations,
Text
, GetLeadingTrivia, trivia, _base, _typeSuffix, _value)
106
Return New IntegerLiteralTokenSyntax(Of T)(Kind, newErrors, GetAnnotations,
Text
, GetLeadingTrivia, GetTrailingTrivia, _base, _typeSuffix, _value)
110
Return New IntegerLiteralTokenSyntax(Of T)(Kind, GetDiagnostics, annotations,
Text
, GetLeadingTrivia, GetTrailingTrivia, _base, _typeSuffix, _value)
222
Return New FloatingLiteralTokenSyntax(Of T)(Kind, GetDiagnostics, GetAnnotations,
Text
, trivia, GetTrailingTrivia, _typeSuffix, _value)
226
Return New FloatingLiteralTokenSyntax(Of T)(Kind, GetDiagnostics, GetAnnotations,
Text
, GetLeadingTrivia, trivia, _typeSuffix, _value)
230
Return New FloatingLiteralTokenSyntax(Of T)(Kind, newErrors, GetAnnotations,
Text
, GetLeadingTrivia, GetTrailingTrivia, _typeSuffix, _value)
234
Return New FloatingLiteralTokenSyntax(Of T)(Kind, GetDiagnostics, annotations,
Text
, GetLeadingTrivia, GetTrailingTrivia, _typeSuffix, _value)
Syntax\InternalSyntax\SyntaxToken.vb (6)
194
If
Text
.Length = 0 AndAlso Kind <> SyntaxKind.EndOfFileToken AndAlso Kind <> SyntaxKind.EmptyToken Then
295
writer.Write(Me.
Text
) 'Append text of token itself
340
Return
Text
486
If Not String.Equals(Me.
Text
, otherToken.
Text
, StringComparison.Ordinal) Then
539
Return Me.
Text
Syntax\SyntaxEquivalence.vb (2)
56
Return String.Equals(DirectCast(before, Green.SyntaxToken).
Text
,
57
DirectCast(after, Green.SyntaxToken).
Text
,
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (2)
TestSyntaxNodes.vb (2)
1137
Return SyntaxFactory.Identifier(token.LeadingTrivia(), node.
Text
.ToUpperInvariant(), node.IsBracketed, node.IdentifierText.ToUpperInvariant(),
1145
Return SyntaxFactory.Token(token.LeadingTrivia(), node.Kind, token.TrailingTrivia(), node.
Text
.ToUpperInvariant())