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