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