Base:
property
Width
Microsoft.CodeAnalysis.GreenNode.Width
24 references to Width
Microsoft.CodeAnalysis.CSharp (24)
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 (13)
2959misplacedModifier.Width, 3016this.CurrentToken.Width, 3903separator = WithAdditionalDiagnostics(separator, GetExpectedTokenError(SyntaxKind.DotToken, separator.Kind, separator.GetLeadingTriviaWidth(), separator.Width)); 3970opTokenErrorWidth = opToken.Width; 3977(opTokenErrorOffset, opTokenErrorWidth) = (0, this.CurrentToken.Width); 4002opTokenErrorWidth = opToken.Width; 4023opTokenErrorWidth = opToken.Width; 4030opTokenErrorWidth = opToken.Width; 4035opTokenErrorWidth = opToken.Width; 4044opTokenErrorWidth = opToken.Width; 6722separator = WithAdditionalDiagnostics(separator, GetExpectedTokenError(SyntaxKind.DotToken, separator.Kind, separator.GetLeadingTriviaWidth(), separator.Width)); 6904separator = WithAdditionalDiagnostics(separator, GetExpectedTokenError(SyntaxKind.DotToken, separator.Kind, separator.GetLeadingTriviaWidth(), separator.Width)); 13995name = 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)