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)
3047misplacedModifier.Width, 3104this.CurrentToken.Width, 3982separator = WithAdditionalDiagnostics(separator, GetExpectedTokenError(SyntaxKind.DotToken, separator.Kind, separator.GetLeadingTriviaWidth(), separator.Width)); 4049opTokenErrorWidth = opToken.Width; 4056(opTokenErrorOffset, opTokenErrorWidth) = (0, this.CurrentToken.Width); 4081opTokenErrorWidth = opToken.Width; 4102opTokenErrorWidth = opToken.Width; 4109opTokenErrorWidth = opToken.Width; 4114opTokenErrorWidth = opToken.Width; 4123opTokenErrorWidth = opToken.Width; 6857separator = WithAdditionalDiagnostics(separator, GetExpectedTokenError(SyntaxKind.DotToken, separator.Kind, separator.GetLeadingTriviaWidth(), separator.Width)); 7039separator = WithAdditionalDiagnostics(separator, GetExpectedTokenError(SyntaxKind.DotToken, separator.Kind, separator.GetLeadingTriviaWidth(), separator.Width)); 12138width: this.CurrentToken.Width, 14236name = 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)