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)
3052misplacedModifier.Width, 3109this.CurrentToken.Width, 3996separator = WithAdditionalDiagnostics(separator, GetExpectedTokenError(SyntaxKind.DotToken, separator.Kind, separator.GetLeadingTriviaWidth(), separator.Width)); 4063opTokenErrorWidth = opToken.Width; 4070(opTokenErrorOffset, opTokenErrorWidth) = (0, this.CurrentToken.Width); 4095opTokenErrorWidth = opToken.Width; 4116opTokenErrorWidth = opToken.Width; 4123opTokenErrorWidth = opToken.Width; 4128opTokenErrorWidth = opToken.Width; 4137opTokenErrorWidth = opToken.Width; 6897separator = WithAdditionalDiagnostics(separator, GetExpectedTokenError(SyntaxKind.DotToken, separator.Kind, separator.GetLeadingTriviaWidth(), separator.Width)); 7079separator = WithAdditionalDiagnostics(separator, GetExpectedTokenError(SyntaxKind.DotToken, separator.Kind, separator.GetLeadingTriviaWidth(), separator.Width)); 12178width: this.CurrentToken.Width, 14276name = 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)