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