23 references to Width
Microsoft.AspNetCore.Razor.Language.Legacy.UnitTests (5)
Legacy\CSharpToMarkupSwitchTest.cs (3)
364
Assert.Equal(11, codeBlock.
Width
);
372
Assert.Equal(9, directive.
Width
);
377
Assert.Equal(2, whitespace.
Width
);
Legacy\TagHelperRewritingTestBase.cs (2)
46
Assert.Equal(syntaxTree.Root.
Width
, rewrittenTree.Root.
Width
);
Microsoft.AspNetCore.Razor.Language.UnitTests (2)
Legacy\TagHelperRewritingTestBase.cs (2)
46
Assert.Equal(syntaxTree.Root.
Width
, rewrittenTree.Root.
Width
);
Microsoft.CodeAnalysis.Razor.Compiler (8)
Language\DefaultRazorIntermediateNodeLoweringPhase.cs (1)
905
source.Length + item.
Width
,
Language\Legacy\ImplicitExpressionEditHandler.cs (1)
88
if (changeRelativePosition > 0 && target.
Width
> 0)
Language\Legacy\TagHelperBlockRewriter.cs (1)
113
var location = new SourceSpan(codeBlock.GetSourceLocation(source), codeBlock.
Width
);
Language\Legacy\TagHelperParseTreeRewriter.cs (1)
493
new SourceSpan(tagBlock.GetSourceLocation(_source), tagBlock.
Width
),
Language\SourceChange.cs (1)
105
if (node.
Width
== 0)
Language\Syntax\SyntaxNode.cs (1)
21
public int EndPosition => Position +
Width
;
Language\Syntax\SyntaxNodeExtensions.cs (1)
123
return new SourceSpan(location.FilePath, location.AbsoluteIndex, location.LineIndex, location.CharacterIndex, node.
Width
, lineCount, endLocation.Character);
Language\Syntax\SyntaxNodeOrToken.cs (1)
86
internal int Width => _token?.Width ?? _nodeOrParent?.
Width
?? 0;
Microsoft.CodeAnalysis.Razor.Workspaces (8)
Completion\CSharpRazorKeywordCompletionItemProvider.cs (1)
49
if (implicitExpression.
Width
> 2 && context.Reason != CompletionReason.Invoked)
Completion\DirectiveCompletionItemProvider.cs (1)
84
if (implicitExpression.
Width
> 2 && context.Reason != CompletionReason.Invoked)
Extensions\RazorSyntaxNodeExtensions.cs (3)
210
if (start == sourceText.Length && node.
Width
== 0)
293
if (parent == null || parent.
Width
!= node.
Width
)
Hover\HoverFactory.cs (2)
161
span = span.WithStart(start => start.WithCharacter(ch => ch - directiveAttribute.Transition.
Width
));
167
span = span.WithStart(start => start.WithCharacter(ch => ch - minimizedAttribute.Transition.
Width
));
SemanticTokens\SemanticTokensVisitor.cs (1)
545
if (node.
Width
== 0)