11 references to Width
Microsoft.AspNetCore.Razor.Test.Common (3)
Language\SyntaxTreeVerifier.cs (3)
88Assert.Equal(0, tokens[i].Width); 94Assert.NotEqual(0, foundNonZeroWidthToken.Width); 100if (token.Width == 0)
Microsoft.CodeAnalysis.Razor.Compiler (5)
Language\DefaultRazorIntermediateNodeLoweringPhase.cs (2)
1082IsEscaped = node.MarkupStartTag?.Bang is { Width: > 0 }, 1647IsEscaped = node.MarkupStartTag?.Bang is { Width: > 0 },
Language\Syntax\SyntaxNodeExtensions.cs (1)
131return new SourceSpan(location.FilePath, location.AbsoluteIndex, location.LineIndex, location.CharacterIndex, token.Width, lineCount, endLocation.Character);
Language\Syntax\SyntaxToken.cs (1)
16internal static readonly Func<SyntaxToken, bool> NonZeroWidth = t => t.Width > 0;
Language\Syntax\SyntaxTokenList.Reversed.cs (1)
63_position = last.Position + last.Width;
Microsoft.CodeAnalysis.Razor.Workspaces (3)
CodeActions\Razor\ComponentAccessibilityCodeActionProvider.cs (1)
83if (startTag.Name.Width == 0)
Extensions\RazorSyntaxTokenExtensions.cs (1)
65if (start == sourceText.Length && token.Width == 0)
SemanticTokens\SemanticTokensVisitor.cs (1)
584if (token.Width == 0 || token.ContainsOnlyWhitespace())