2 overrides of Width
Microsoft.CodeAnalysis.CSharp (2)
Syntax\InternalSyntax\SyntaxToken.cs (1)
315
public override int
Width
Syntax\InternalSyntax\SyntaxTrivia.cs (1)
46
public override int
Width
18 references to Width
Microsoft.CodeAnalysis (6)
Syntax\SyntaxNode.cs (1)
127
internal int Width => this.Green.
Width
;
Syntax\SyntaxNodeOrToken.cs (1)
894
internal int Width => _token?.
Width
?? _nodeOrParent?.Width ?? 0;
Syntax\SyntaxToken.cs (2)
96
internal int Width => Node?.
Width
?? 0;
110
return Node != null ? new TextSpan(Position + Node.GetLeadingTriviaWidth(), Node.
Width
) : default(TextSpan);
Syntax\SyntaxTrivia.cs (2)
78
internal int Width => UnderlyingNode?.
Width
?? 0;
96
? new TextSpan(Position + UnderlyingNode.GetLeadingTriviaWidth(), UnderlyingNode.
Width
)
Microsoft.CodeAnalysis.CSharp (12)
Parser\DocumentationCommentParser.cs (2)
833
return WithAdditionalDiagnostics(node, new XmlSyntaxDiagnosticInfo(0, node.
Width
, code));
838
return WithAdditionalDiagnostics(node, new XmlSyntaxDiagnosticInfo(0, node.
Width
, code, args));
Parser\LanguageParser.cs (4)
2971
offset: type.
Width
+ type.GetTrailingTriviaWidth() + misplacedModifier.GetLeadingTriviaWidth(),
3016
offset: incompleteMember.
Width
+ incompleteMember.GetTrailingTriviaWidth() + this.CurrentToken.GetLeadingTriviaWidth(),
7700
list[i] = this.AddError(this.CreateMissingIdentifierName(), offset: 0, list[i].
Width
, ErrorCode.ERR_ValueExpected);
8857
return statements[0].
Width
> 60;
Parser\SyntaxParser.cs (5)
767
Debug.Assert(nodeOrToken.
Width
> 0 || nodeOrToken.RawKind is (int)SyntaxKind.EndOfFileToken);
848
return (missingNodeOrToken.
Width
+ missingNodeOrToken.GetTrailingTriviaWidth() + token.GetLeadingTriviaWidth(), token.Width);
886
return (offset, trivia.
Width
);
926
offset = node.
Width
+ node.GetTrailingTriviaWidth(); //advance to end of entire node
948
return new SyntaxDiagnosticInfo(offset: 0, node.
Width
, code, args);
Syntax\SyntaxTreeDiagnosticEnumerator.cs (1)
80
position += node.
Width
;