2 overrides of GetLeadingTriviaWidth
Microsoft.CodeAnalysis.CSharp (2)
Syntax\InternalSyntax\SyntaxToken.cs (1)
320
public override int
GetLeadingTriviaWidth
()
Syntax\InternalSyntax\SyntaxTrivia.cs (1)
55
public override int
GetLeadingTriviaWidth
()
20 references to GetLeadingTriviaWidth
Microsoft.CodeAnalysis (13)
Syntax\GreenNode.cs (3)
425
return _fullWidth - this.
GetLeadingTriviaWidth
() - this.GetTrailingTriviaWidth();
432
this.GetFirstTerminal()!.
GetLeadingTriviaWidth
() :
447
return this.
GetLeadingTriviaWidth
() != 0;
Syntax\SyntaxNode.cs (2)
101
var precedingWidth = this.Green.
GetLeadingTriviaWidth
();
119
public int SpanStart => Position + Green.
GetLeadingTriviaWidth
();
Syntax\SyntaxNodeOrToken.cs (1)
258
return _position + _token.
GetLeadingTriviaWidth
();
Syntax\SyntaxToken.cs (3)
110
return Node != null ? new TextSpan(Position + Node.
GetLeadingTriviaWidth
(), Node.Width) : default(TextSpan);
127
get { return Node != null ? Position + Node.
GetLeadingTriviaWidth
() : 0; }
205
internal int LeadingWidth => Node?.
GetLeadingTriviaWidth
() ?? 0;
Syntax\SyntaxTokenList.cs (1)
177
return TextSpan.FromBounds(Position + Node.
GetLeadingTriviaWidth
(),
Syntax\SyntaxTrivia.cs (2)
96
? new TextSpan(Position + UnderlyingNode.
GetLeadingTriviaWidth
(), UnderlyingNode.Width)
112
? Position + UnderlyingNode.
GetLeadingTriviaWidth
()
Syntax\SyntaxTriviaList.cs (1)
175
return TextSpan.FromBounds(Position + Node.
GetLeadingTriviaWidth
(),
Microsoft.CodeAnalysis.CSharp (7)
Parser\DocumentationCommentParser.cs (3)
207
if (lessThan.GetTrailingTriviaWidth() > 0 || name.
GetLeadingTriviaWidth
() > 0)
246
if (lessThanSlash.GetTrailingTriviaWidth() > 0 || endName.
GetLeadingTriviaWidth
() > 0)
441
if (attrName.
GetLeadingTriviaWidth
() == 0)
Parser\LanguageParser.cs (1)
7693
int offset = list[i].
GetLeadingTriviaWidth
();
Parser\SyntaxParser.cs (2)
885
return new SyntaxDiagnosticInfo(node.
GetLeadingTriviaWidth
(), node.Width, code, args);
1082
offset += child.
GetLeadingTriviaWidth
() + currentOffset;
Syntax\SyntaxTreeDiagnosticEnumerator.cs (1)
58
int leadingWidthAlreadyCounted = node.IsToken ? node.
GetLeadingTriviaWidth
() : 0;