2 overrides of Width
Microsoft.CodeAnalysis.CSharp (2)
Syntax\InternalSyntax\SyntaxToken.cs (1)
315
public override int
Width
Syntax\InternalSyntax\SyntaxTrivia.cs (1)
67
public override int
Width
23 references to Width
Microsoft.CodeAnalysis (6)
Syntax\SyntaxNode.cs (1)
125
internal int Width => this.Green.
Width
;
Syntax\SyntaxNodeOrToken.cs (1)
907
internal int Width => _token?.
Width
?? _nodeOrParent?.Width ?? 0;
Syntax\SyntaxToken.cs (2)
98
internal int Width => Node?.
Width
?? 0;
112
return Node != null ? new TextSpan(Position + Node.GetLeadingTriviaWidth(), Node.
Width
) : default(TextSpan);
Syntax\SyntaxTrivia.cs (2)
77
internal int Width => UnderlyingNode?.
Width
?? 0;
95
? new TextSpan(Position + UnderlyingNode.GetLeadingTriviaWidth(), UnderlyingNode.
Width
)
Microsoft.CodeAnalysis.CSharp (10)
Parser\DocumentationCommentParser.cs (2)
838
return WithAdditionalDiagnostics(node, new XmlSyntaxDiagnosticInfo(0, node.
Width
, code));
843
return WithAdditionalDiagnostics(node, new XmlSyntaxDiagnosticInfo(0, node.
Width
, code, args));
Parser\LanguageParser.cs (2)
7074
int width = list[i].
Width
;
8132
return statements[0].
Width
> 60;
Parser\LanguageParser_Patterns.cs (1)
592
if (switchExpressionCase.
Width
== 0 && this.CurrentToken.Kind != SyntaxKind.CommaToken)
Parser\SyntaxParser.cs (4)
757
width += trivia.
Width
;
765
offset += trivia.
Width
;
787
return WithAdditionalDiagnostics(node, MakeError(offset, location.
Width
, code, args));
843
return new SyntaxDiagnosticInfo(node.GetLeadingTriviaWidth(), node.
Width
, code, args);
Syntax\SyntaxTreeDiagnosticEnumerator.cs (1)
96
_position += node.
Width
;
Microsoft.CodeAnalysis.VisualBasic (7)
Parser\BlockContexts\BlockContext.vb (1)
272
Return statements(0).
Width
> 60
Scanner\TokenStream.vb (3)
272
Debug.Assert(tk.
Width
> 0)
299
Debug.Assert(lastTrivia.
Width
= 1)
366
If tk.
Width
= 0 AndAlso SyntaxFacts.IsTerminator(tk.Kind) Then
Syntax\InternalSyntax\SyntaxNodeExtensions.vb (1)
87
Return token.
Width
= 0 AndAlso token.Kind <> SyntaxKind.EmptyToken
Syntax\SyntaxTreeDiagnosticEnumerator.vb (2)
69
Me._current = New VBDiagnostic(di, Me._tree.GetLocation(New TextSpan(position, node.
Width
)))
98
Me._position += node.
Width