1 write to Token
Microsoft.CodeAnalysis.CSharp (1)
Syntax\SyntaxTokenParser.cs (1)
142
Token
= token;
30 references to Token
Microsoft.CodeAnalysis.CSharp (3)
Syntax\SyntaxTokenParser.cs (3)
108
_lexer.Reset(result.
Token
.Position, result.ContextStartDirectiveStack);
133
var contextualKind =
Token
.ContextualKind();
134
return contextualKind ==
Token
.Kind() ? SyntaxKind.None : contextualKind;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (27)
LexicalAndXml\SyntaxTokenParserTests.cs (27)
85
var docCommentTrivia = result.
Token
.GetLeadingTrivia()[0];
277
Assert.Empty(result.
Token
.LeadingTrivia);
278
Assert.Empty(result.
Token
.TrailingTrivia);
282
Assert.Empty(result.
Token
.LeadingTrivia);
283
Assert.Empty(result.
Token
.TrailingTrivia);
296
AssertTrivia(result.
Token
.LeadingTrivia,
299
Assert.Empty(result.
Token
.TrailingTrivia);
303
Assert.Empty(intermediateResult.
Token
.LeadingTrivia);
304
Assert.Empty(intermediateResult.
Token
.TrailingTrivia);
308
Assert.Empty(intermediateResult.
Token
.LeadingTrivia);
309
Assert.Empty(intermediateResult.
Token
.TrailingTrivia);
329
AssertTrivia(result.
Token
.LeadingTrivia,
333
Assert.Empty(result.
Token
.TrailingTrivia);
337
Assert.Empty(intermediateResult.
Token
.LeadingTrivia);
338
Assert.Empty(intermediateResult.
Token
.TrailingTrivia);
342
Assert.Empty(intermediateResult.
Token
.LeadingTrivia);
343
Assert.Empty(intermediateResult.
Token
.TrailingTrivia);
359
Assert.Empty(result.
Token
.LeadingTrivia);
360
Assert.Empty(result.
Token
.TrailingTrivia);
373
Assert.Empty(result.
Token
.LeadingTrivia);
374
AssertTrivia(result.
Token
.TrailingTrivia,
396
Assert.Empty(result.
Token
.LeadingTrivia);
397
AssertTrivia(result.
Token
.TrailingTrivia,
409
Assert.Equal(expectedKind, result.
Token
.Kind());
411
AssertEx.Equal(expectedText.NormalizeLineEndings(), result.
Token
.ToFullString());
412
Assert.Null(result.
Token
.Parent);
413
Assert.Equal(expectedFullSpan, result.
Token
.FullSpan);