3 overrides of Text
Microsoft.CodeAnalysis.CSharp (3)
Syntax\InternalSyntax\SyntaxToken.MissingTokenWithTrivia.cs (1)
28public override string Text
Syntax\InternalSyntax\SyntaxToken.SyntaxIdentifier.cs (1)
29public override string Text
Syntax\InternalSyntax\SyntaxToken.SyntaxLiteral.cs (1)
33public override string Text
53 references to Text
Microsoft.CodeAnalysis.CSharp (48)
Parser\DocumentationCommentParser.cs (18)
678return token.Text.Length == 1 && SyntaxFacts.IsNonAsciiQuotationMark(token.Text[0]); 1064operatorToken.Text + operatorToken2.Text + operatorToken3.Text, 1075operatorToken.Text + operatorToken2.Text + operatorToken3.Text, 1086operatorToken.Text + operatorToken2.Text, 1097operatorToken.Text + operatorToken2.Text, 1107operatorToken.Text + operatorToken2.Text, 1166operatorToken.Text + operatorToken2.Text, 1602return CurrentToken.Text == SyntaxFacts.GetText(SyntaxKind.LessThanToken) || 1670return CurrentToken.Text == SyntaxFacts.GetText(SyntaxKind.LessThanToken) ||
Parser\LanguageParser.cs (14)
2029token = this.AddError(token, ErrorCode.ERR_InvalidMemberDecl, token.Text); 2974misplacedModifier.Text); 3019this.CurrentToken.Text); 3552initializer = this.AddErrorToFirstToken(initializer, ErrorCode.ERR_UnexpectedToken, colonToken.Text); 3870AddError(type, ErrorCode.ERR_BadOperatorSyntax, firstToken.Text)); 5843result = this.AddError(result, ErrorCode.ERR_InvalidExprTerm, this.CurrentToken.Text); 9505identifier = SyntaxToken.WithValue(SyntaxKind.IdentifierToken, discard.LeadingTrivia.Node, discard.Text, discard.ValueText, discard.TrailingTrivia.Node); 10253mods[i] = this.AddError(mod, ErrorCode.ERR_BadMemberFlag, mod.Text); 10515mod = this.AddError(mod, ErrorCode.ERR_BadMemberFlag, mod.Text); 10657modifier = this.AddError(modifier, ErrorCode.ERR_BadMemberFlag, modifier.Text); 11194this.AddError(this.EatToken(), ErrorCode.ERR_InvalidExprTerm, this.CurrentToken.Text)); 11288operatorToken.Text); 11675return this.AddError(this.CreateMissingIdentifierName(), ErrorCode.ERR_InvalidExprTerm, this.CurrentToken.Text); 11704return this.AddError(this.CreateMissingIdentifierName(), ErrorCode.ERR_InvalidExprTerm, this.CurrentToken.Text);
Parser\SyntaxParser.cs (2)
866Debug.Assert(childToken.Text == "", "All missing tokens should have no text"); 1127var identifier = 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 (10)
25FullWidth = this.Text.Length; 32FullWidth = this.Text.Length; 39FullWidth = this.Text.Length; 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)
95if (((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)
481stringBuilder.Append(tokens[i].Text);