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