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)
3765Assert.Equal(1, nodeOrToken.GetLeadingTrivia().Count);
3766Assert.Equal(0, nodeOrToken.GetLeadingTrivia().Span.Length); // zero-width elastic trivia
3774Assert.Equal(1, nodeOrToken.GetLeadingTrivia().Count);
3775Assert.Equal(0, nodeOrToken.GetLeadingTrivia().Span.Length); // zero-width elastic trivia
3783Assert.Equal(0, nodeOrToken.GetLeadingTrivia().Count);
3790Assert.Equal(0, nodeOrToken.GetLeadingTrivia().Count);
3797Assert.Equal(1, nodeOrToken.GetLeadingTrivia().Count);
3798Assert.Equal(1, nodeOrToken.GetLeadingTrivia().Span.Length); // zero-width elastic trivia
3806Assert.Equal(1, nodeOrToken.GetLeadingTrivia().Count);
3807Assert.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)