13 references to GetLeadingTriviaWidth
Microsoft.CodeAnalysis (13)
Syntax\GreenNode.cs (3)
424return _fullWidth - this.GetLeadingTriviaWidth() - this.GetTrailingTriviaWidth(); 431this.GetFirstTerminal()!.GetLeadingTriviaWidth() : 446return this.GetLeadingTriviaWidth() != 0;
Syntax\SyntaxNode.cs (2)
100var precedingWidth = this.Green.GetLeadingTriviaWidth(); 118public int SpanStart => Position + Green.GetLeadingTriviaWidth();
Syntax\SyntaxNodeOrToken.cs (1)
257return _position + _token.GetLeadingTriviaWidth();
Syntax\SyntaxToken.cs (3)
109return Node != null ? new TextSpan(Position + Node.GetLeadingTriviaWidth(), Node.Width) : default(TextSpan); 126get { return Node != null ? Position + Node.GetLeadingTriviaWidth() : 0; } 204internal int LeadingWidth => Node?.GetLeadingTriviaWidth() ?? 0;
Syntax\SyntaxTokenList.cs (1)
176return TextSpan.FromBounds(Position + Node.GetLeadingTriviaWidth(),
Syntax\SyntaxTrivia.cs (2)
95? new TextSpan(Position + UnderlyingNode.GetLeadingTriviaWidth(), UnderlyingNode.Width) 111? Position + UnderlyingNode.GetLeadingTriviaWidth()
Syntax\SyntaxTriviaList.cs (1)
174return TextSpan.FromBounds(Position + Node.GetLeadingTriviaWidth(),