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_InterpolatedString.cs (1)
61var textTokenDiagnostics = MoveDiagnostics(interpolatedText.GetDiagnostics(), interpolatedString.StringStartToken.Width);
Parser\LanguageParser.cs (14)
3036misplacedModifier.Width, 3093this.CurrentToken.Width, 3971separator = WithAdditionalDiagnostics(separator, GetExpectedTokenError(SyntaxKind.DotToken, separator.Kind, separator.GetLeadingTriviaWidth(), separator.Width)); 4038opTokenErrorWidth = opToken.Width; 4045(opTokenErrorOffset, opTokenErrorWidth) = (0, this.CurrentToken.Width); 4070opTokenErrorWidth = opToken.Width; 4091opTokenErrorWidth = opToken.Width; 4098opTokenErrorWidth = opToken.Width; 4103opTokenErrorWidth = opToken.Width; 4112opTokenErrorWidth = opToken.Width; 6833separator = WithAdditionalDiagnostics(separator, GetExpectedTokenError(SyntaxKind.DotToken, separator.Kind, separator.GetLeadingTriviaWidth(), separator.Width)); 7015separator = WithAdditionalDiagnostics(separator, GetExpectedTokenError(SyntaxKind.DotToken, separator.Kind, separator.GetLeadingTriviaWidth(), separator.Width)); 12114width: this.CurrentToken.Width, 14258name = WithAdditionalDiagnostics(name, this.GetExpectedTokenError(SyntaxKind.IdentifierToken, name.ContextualKind, name.GetLeadingTriviaWidth(), name.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)