3 overrides of Text
Microsoft.CodeAnalysis.CSharp (3)
Syntax\InternalSyntax\SyntaxToken.MissingTokenWithTrivia.cs (1)
28
public override string
Text
Syntax\InternalSyntax\SyntaxToken.SyntaxIdentifier.cs (1)
29
public override string
Text
Syntax\InternalSyntax\SyntaxToken.SyntaxLiteral.cs (1)
33
public override string
Text
53 references to Text
Microsoft.CodeAnalysis.CSharp (48)
Parser\DocumentationCommentParser.cs (18)
678
return token.
Text
.Length == 1 && SyntaxFacts.IsNonAsciiQuotationMark(token.
Text
[0]);
1064
operatorToken.
Text
+ operatorToken2.
Text
+ operatorToken3.
Text
,
1075
operatorToken.
Text
+ operatorToken2.
Text
+ operatorToken3.
Text
,
1086
operatorToken.
Text
+ operatorToken2.
Text
,
1097
operatorToken.
Text
+ operatorToken2.
Text
,
1107
operatorToken.
Text
+ operatorToken2.
Text
,
1166
operatorToken.
Text
+ operatorToken2.
Text
,
1602
return CurrentToken.
Text
== SyntaxFacts.GetText(SyntaxKind.LessThanToken) ||
1670
return CurrentToken.
Text
== SyntaxFacts.GetText(SyntaxKind.LessThanToken) ||
Parser\LanguageParser.cs (14)
2029
token = this.AddError(token, ErrorCode.ERR_InvalidMemberDecl, token.
Text
);
2974
misplacedModifier.
Text
);
3019
this.CurrentToken.
Text
);
3552
initializer = this.AddErrorToFirstToken(initializer, ErrorCode.ERR_UnexpectedToken, colonToken.
Text
);
3870
AddError(type, ErrorCode.ERR_BadOperatorSyntax, firstToken.
Text
));
5843
result = this.AddError(result, ErrorCode.ERR_InvalidExprTerm, this.CurrentToken.
Text
);
9505
identifier = SyntaxToken.WithValue(SyntaxKind.IdentifierToken, discard.LeadingTrivia.Node, discard.
Text
, discard.ValueText, discard.TrailingTrivia.Node);
10253
mods[i] = this.AddError(mod, ErrorCode.ERR_BadMemberFlag, mod.
Text
);
10515
mod = this.AddError(mod, ErrorCode.ERR_BadMemberFlag, mod.
Text
);
10657
modifier = this.AddError(modifier, ErrorCode.ERR_BadMemberFlag, modifier.
Text
);
11194
this.AddError(this.EatToken(), ErrorCode.ERR_InvalidExprTerm, this.CurrentToken.
Text
));
11288
operatorToken.
Text
);
11675
return this.AddError(this.CreateMissingIdentifierName(), ErrorCode.ERR_InvalidExprTerm, this.CurrentToken.
Text
);
11704
return this.AddError(this.CreateMissingIdentifierName(), ErrorCode.ERR_InvalidExprTerm, this.CurrentToken.
Text
);
Parser\SyntaxParser.cs (2)
866
Debug.Assert(childToken.
Text
== "", "All missing tokens should have no text");
1127
var identifier = SyntaxToken.Identifier(token.Kind, token.LeadingTrivia.Node, token.
Text
, token.ValueText, token.TrailingTrivia.Node);
Syntax\InternalSyntax\IdentifierNameSyntax.cs (1)
17
return 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)
25
FullWidth = this.
Text
.Length;
32
FullWidth = this.
Text
.Length;
39
FullWidth = this.
Text
.Length;
279
return this.
Text
;
295
return this.
Text
;
307
get { return this.
Text
; }
317
get { return this.
Text
.Length; }
416
writer.Write(this.
Text
);
437
if (this.
Text
!= otherToken.
Text
)
Syntax\SyntaxEquivalence.cs (2)
95
if (((Green.SyntaxToken)before).
Text
!= ((Green.SyntaxToken)after).
Text
)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (5)
LexicalAndXml\DocumentationCommentLexerTestBase.cs (4)
62
Assert.Equal(expectedToken.Text, actualToken.
Text
); //This first, since it's easiest to debug.
87
if (token.
Text
!= canonicalText)
89
builder.AppendFormat(", \"{0}\"", token.
Text
);
91
if (token.ValueText != token.
Text
)
Parsing\ParsingTests.cs (1)
481
stringBuilder.Append(tokens[i].
Text
);