3 overrides of Text
Microsoft.CodeAnalysis.CSharp (3)
Syntax\InternalSyntax\SyntaxToken.MissingTokenWithTrivia.cs (1)
39public override string Text
Syntax\InternalSyntax\SyntaxToken.SyntaxIdentifier.cs (1)
48public override string Text
Syntax\InternalSyntax\SyntaxToken.SyntaxLiteral.cs (1)
54public override string Text
50 references to Text
Microsoft.CodeAnalysis.CSharp (45)
Parser\DocumentationCommentParser.cs (16)
683return token.Text.Length == 1 && SyntaxFacts.IsNonAsciiQuotationMark(token.Text[0]); 1036operatorToken.Text + operatorToken2.Text + operatorToken3.Text, 1047operatorToken.Text + operatorToken2.Text + operatorToken3.Text, 1069operatorToken.Text + operatorToken2.Text, 1080operatorToken.Text + operatorToken2.Text, 1090operatorToken.Text + operatorToken2.Text, 1520return CurrentToken.Text == SyntaxFacts.GetText(SyntaxKind.LessThanToken) || 1588return CurrentToken.Text == SyntaxFacts.GetText(SyntaxKind.LessThanToken) ||
Parser\LanguageParser.cs (13)
1721token = this.AddError(token, ErrorCode.ERR_InvalidMemberDecl, token.Text); 2595misplacedModifier.Text); 2636this.CurrentToken.Text); 3158initializer = this.AddErrorToFirstToken(initializer, ErrorCode.ERR_UnexpectedToken, colonToken.Text); 5411result = this.AddError(result, ErrorCode.ERR_InvalidExprTerm, this.CurrentToken.Text); 8770identifier = SyntaxToken.WithValue(SyntaxKind.IdentifierToken, discard.LeadingTrivia.Node, discard.Text, discard.ValueText, discard.TrailingTrivia.Node); 9460mods[i] = this.AddError(mod, ErrorCode.ERR_BadMemberFlag, mod.Text); 9670mod = this.AddError(mod, ErrorCode.ERR_BadMemberFlag, mod.Text); 9812modifier = this.AddError(modifier, ErrorCode.ERR_BadMemberFlag, modifier.Text); 10351skipped = this.AddError(skipped, ErrorCode.ERR_InvalidExprTerm, this.CurrentToken.Text); 10480opToken = this.AddError(opToken, errorCode, opToken.Text); 10668return this.AddError(this.CreateMissingIdentifierName(), ErrorCode.ERR_InvalidExprTerm, this.CurrentToken.Text); 10693return this.AddError(this.CreateMissingIdentifierName(), ErrorCode.ERR_InvalidExprTerm, this.CurrentToken.Text);
Parser\SyntaxParser.cs (1)
1069return SyntaxToken.Identifier(token.Kind, token.LeadingTrivia.Node, token.Text, token.ValueText, token.TrailingTrivia.Node);
Syntax\InternalSyntax\IdentifierNameSyntax.cs (1)
17return this.Identifier.Text;
Syntax\InternalSyntax\SyntaxFactory.cs (1)
127/// Creates a token whose <see cref="SyntaxToken.Text"/> and <see cref="SyntaxToken.ValueText"/> are the same.
Syntax\InternalSyntax\SyntaxToken.cs (11)
26FullWidth = this.Text.Length; 33FullWidth = this.Text.Length; 40FullWidth = this.Text.Length; 65var text = this.Text; 279return this.Text; 295return this.Text; 307get { return this.Text; } 317get { return this.Text.Length; } 416writer.Write(this.Text); 437if (this.Text != otherToken.Text)
Syntax\SyntaxEquivalence.cs (2)
91if (((Green.SyntaxToken)before).Text != ((Green.SyntaxToken)after).Text)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (5)
LexicalAndXml\DocumentationCommentLexerTestBase.cs (4)
62Assert.Equal(expectedToken.Text, actualToken.Text); //This first, since it's easiest to debug. 87if (token.Text != canonicalText) 89builder.AppendFormat(", \"{0}\"", token.Text); 91if (token.ValueText != token.Text)
Parsing\ParsingTests.cs (1)
357stringBuilder.Append(tokens[i].Text);