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