Base:
property
Width
Microsoft.CodeAnalysis.GreenNode.Width
25 references to Width
Microsoft.CodeAnalysis.CSharp (25)
Parser\DirectiveParser.cs (1)
850if (identifier.Width > MAX_DIRECTIVE_IDENTIFIER_WIDTH)
Parser\DocumentationCommentParser.cs (1)
843return WithAdditionalDiagnostics(node, new XmlSyntaxDiagnosticInfo(0, node.Width, code, args));
Parser\LanguageParser.cs (14)
3014misplacedModifier.Width, 3071this.CurrentToken.Width, 3958separator = WithAdditionalDiagnostics(separator, GetExpectedTokenError(SyntaxKind.DotToken, separator.Kind, separator.GetLeadingTriviaWidth(), separator.Width)); 4025opTokenErrorWidth = opToken.Width; 4032(opTokenErrorOffset, opTokenErrorWidth) = (0, this.CurrentToken.Width); 4057opTokenErrorWidth = opToken.Width; 4078opTokenErrorWidth = opToken.Width; 4085opTokenErrorWidth = opToken.Width; 4090opTokenErrorWidth = opToken.Width; 4099opTokenErrorWidth = opToken.Width; 6859separator = WithAdditionalDiagnostics(separator, GetExpectedTokenError(SyntaxKind.DotToken, separator.Kind, separator.GetLeadingTriviaWidth(), separator.Width)); 7041separator = WithAdditionalDiagnostics(separator, GetExpectedTokenError(SyntaxKind.DotToken, separator.Kind, separator.GetLeadingTriviaWidth(), separator.Width)); 12114width: this.CurrentToken.Width, 14203name = WithAdditionalDiagnostics(name, this.GetExpectedTokenError(SyntaxKind.IdentifierToken, name.ContextualKind, name.GetLeadingTriviaWidth(), name.Width));
Parser\LanguageParser_InterpolatedString.cs (1)
61var textTokenDiagnostics = MoveDiagnostics(interpolatedText.GetDiagnostics(), interpolatedString.StringStartToken.Width);
Parser\SyntaxParser.cs (8)
634return (offset: 0, token.Width); 641token = WithAdditionalDiagnostics(token, MakeError(offset: 0, token.Width, errorCode, args)); 848return (missingNodeOrToken.Width + missingNodeOrToken.GetTrailingTriviaWidth() + token.GetLeadingTriviaWidth(), token.Width); 906return WithAdditionalDiagnostics(node, MakeError(offset: 0, firstToken.Width, code)); 912return WithAdditionalDiagnostics(node, MakeError(offset: 0, firstToken.Width, code, args)); 932width = lastToken.Width; 1028currentOffset = target.Width + target.GetTrailingTriviaWidth(); 1051if (token.Width > 0)