24 references to GetLeadingTrivia
Microsoft.CodeAnalysis (3)
Microsoft.CodeAnalysis.CodeStyle (1)
Microsoft.CodeAnalysis.CSharp.Features (1)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (10)
Syntax\SyntaxNodeTests.cs (10)
3803Assert.Equal(1, nodeOrToken.GetLeadingTrivia().Count);
3804Assert.Equal(0, nodeOrToken.GetLeadingTrivia().Span.Length); // zero-width elastic trivia
3812Assert.Equal(1, nodeOrToken.GetLeadingTrivia().Count);
3813Assert.Equal(0, nodeOrToken.GetLeadingTrivia().Span.Length); // zero-width elastic trivia
3821Assert.Equal(0, nodeOrToken.GetLeadingTrivia().Count);
3828Assert.Equal(0, nodeOrToken.GetLeadingTrivia().Count);
3835Assert.Equal(1, nodeOrToken.GetLeadingTrivia().Count);
3836Assert.Equal(1, nodeOrToken.GetLeadingTrivia().Span.Length); // zero-width elastic trivia
3844Assert.Equal(1, nodeOrToken.GetLeadingTrivia().Count);
3845Assert.Equal(1, nodeOrToken.GetLeadingTrivia().Span.Length); // zero-width elastic trivia
Microsoft.CodeAnalysis.VisualBasic (1)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (5)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
Microsoft.CodeAnalysis.Workspaces (1)