37 references to FullWidth
Microsoft.CodeAnalysis (37)
Syntax\ChildSyntaxList.cs (3)
162position += greenChild.FullWidth; 242var endPosition = position + greenChild.FullWidth; 332position += greenChild.FullWidth;
Syntax\GreenNode.cs (6)
192offset += child.FullWidth; 215/// <param name="offset">The target offset. Must be between 0 and <see cref="FullWidth"/>.</param> 223Debug.Assert(0 <= offset && offset < FullWidth); 233accumulatedWidth += child.FullWidth; 430return this.FullWidth != 0 ? 437return this.FullWidth != 0 ?
Syntax\InternalSyntax\SyntaxList.WithLotsOfChildren.cs (3)
36/// <param name="offset">The target offset. Must be between 0 and <see cref="GreenNode.FullWidth"/>.</param> 44Debug.Assert(offset >= 0 && offset < FullWidth); 56offset += children[i].Value.FullWidth;
Syntax\SyntaxList.WithManyWeakChildren.cs (1)
34childPosition += greenChildren[i].Value.FullWidth;
Syntax\SyntaxNode.cs (8)
72internal int EndPosition => Position + Green.FullWidth; 84public TextSpan FullSpan => new TextSpan(this.Position, this.Green.FullWidth); 97var width = this.Green.FullWidth; 133internal int FullWidth => this.Green.FullWidth; 328var writer = SourceTextWriter.Create(encoding, checksumAlgorithm, this.Green.FullWidth); 636offset += greenChild.FullWidth; 653int offset = green.GetSlot(index)?.FullWidth ?? 0; 666offset += greenChild.FullWidth;
Syntax\SyntaxNodeOrToken.cs (2)
278return new TextSpan(Position, _token.FullWidth); 895internal int FullWidth => _token?.FullWidth ?? _nodeOrParent?.FullWidth ?? 0;
Syntax\SyntaxToken.cs (3)
100internal int FullWidth => Node?.FullWidth ?? 0; 115get { return Node != null ? Position + Node.FullWidth : 0; } 439trailingPosition -= trailingGreen.FullWidth;
Syntax\SyntaxTokenList.cs (2)
160return new TextSpan(this.Position, Node.FullWidth); 177Position + Node.FullWidth - Node.GetTrailingTriviaWidth());
Syntax\SyntaxTokenList.Enumerator.cs (1)
92_position += _current.FullWidth;
Syntax\SyntaxTokenList.Reversed.cs (1)
113_position -= _current.FullWidth;
Syntax\SyntaxTrivia.cs (2)
83internal int FullWidth => UnderlyingNode?.FullWidth ?? 0; 122get { return UnderlyingNode != null ? new TextSpan(Position, UnderlyingNode.FullWidth) : default(TextSpan); }
Syntax\SyntaxTriviaList.cs (2)
158return new TextSpan(this.Position, Node.FullWidth); 175Position + Node.FullWidth - Node.GetTrailingTriviaWidth());
Syntax\SyntaxTriviaList.Enumerator.cs (2)
80trailingPosition -= trailingGreen.FullWidth; 101_position += _current.FullWidth;
Syntax\SyntaxTriviaList.Reversed.cs (1)
112_position -= _current.FullWidth;