48 references to SpanStart
Microsoft.AspNetCore.Razor.Language.UnitTests (10)
IntegrationTests\ComponentDiscoveryIntegrationTest.cs (2)
231
Assert.Equal([directives[0].
SpanStart
, directives[1].
SpanStart
], contributions.Select(c => c.DirectiveSpanStart));
IntegrationTests\TagHelpersIntegrationTest.cs (1)
179
Assert.Equal(addTagHelperDirective.
SpanStart
, contribution.DirectiveSpanStart);
RazorCodeDocumentExtensionsTest.cs (7)
73
var contribution = new DirectiveTagHelperContribution(usingDirective.
SpanStart
, TagHelperCollection.Empty);
81
Assert.Equal(usingDirective.
SpanStart
, stored.DirectiveSpanStart);
92
new(directives[0].
SpanStart
, TagHelperCollection.Empty),
93
new(directives[1].
SpanStart
, TagHelperCollection.Empty),
116
new(directives[0].
SpanStart
, TagHelperCollection.Create([usedTagHelper])),
117
new(directives[1].
SpanStart
, TagHelperCollection.Empty),
142
codeDocument = codeDocument.WithDirectiveTagHelperContributions([new(directive.
SpanStart
, TagHelperCollection.Empty)]);
Microsoft.CodeAnalysis.Razor.Compiler (4)
Language\DefaultRazorTagHelperContextDiscoveryPhase.cs (1)
143
_directiveContributions.Add(new(directive.
SpanStart
, contributedTagHelpers));
Language\RazorCodeDocumentExtensions.cs (1)
78
if (contribution.DirectiveSpanStart == directive.
SpanStart
)
Language\Syntax\SyntaxNode.cs (1)
500
if (foundToken.SpanStart < this.
SpanStart
)
Language\Syntax\SyntaxNodeOrToken.cs (1)
200
return _nodeOrParent.
SpanStart
;
Microsoft.CodeAnalysis.Razor.Workspaces (32)
CodeActions\Razor\ComponentAccessibilityCodeActionProvider.cs (1)
50
if (context.StartAbsoluteIndex < startTag.
SpanStart
)
CodeActions\Razor\ExtractToCodeBehindCodeActionProvider.cs (1)
89
if (context.StartAbsoluteIndex > csharpCodeBlockNode.
SpanStart
)
CodeActions\Razor\PromoteUsingCodeActionProvider.cs (1)
50
UsingStart = directive.
SpanStart
,
CodeActions\Razor\WrapAttributesCodeActionProvider.cs (1)
68
newLinePositions.Add(attribute.
SpanStart
+ startOffset);
Completion\AbstractRazorCompletionFactsService.cs (1)
83
if (originalNode.
SpanStart
== requestIndex
Completion\DirectiveAttributeCompletionItemProviderBase.cs (4)
82
var nameStart = directiveAttributeTransition?.
SpanStart
?? attributeNameNode.
SpanStart
;
96
var nameStart = directiveAttributeTransition?.
SpanStart
?? attributeNameNode.
SpanStart
;
Completion\MarkupTransitionCompletionItemProvider.cs (1)
37
if (owner is RazorMetaCodeSyntax {
SpanStart
: var spanStart, MetaCode: [var metaCodeToken, ..] } && spanStart == context.AbsoluteIndex)
Extensions\RazorSyntaxNodeExtensions.cs (2)
126
while (node.
SpanStart
== owner.
SpanStart
)
Formatting\Passes\CSharpFormattingPass.CSharpDocumentGenerator.cs (5)
342
var expressionStartsBlockLambda = IsBlockLambdaStart(node.
SpanStart
, _sourceText.Lines[nodeStartLine]);
353
var skippedPreviousLineText = _sourceText.ToString(TextSpan.FromBounds(node.
SpanStart
, previousLine.End));
355
skippedPreviousLineOriginOffset = node.
SpanStart
- previousLine.Start;
1096
originOffset: conditions.
SpanStart
- _currentToken.Position,
1108
originOffset: attribute.
SpanStart
- _currentToken.Position,
Formatting\Passes\CSharpOnTypeFormattingPass.cs (4)
346
owner.
SpanStart
== template.Span.End &&
500
template.
SpanStart
== owner.Span.End &&
954
mappingSpan.Start != owner.
SpanStart
)
971
if (owner.
SpanStart
== mappingSpan.Start &&
Formatting\Passes\HtmlFormattingPass.cs (2)
285
var endTagLine = sourceText.Lines.GetLineFromPosition(endTag.
SpanStart
);
287
var end = firstNonWhitespace == endTag.
SpanStart
Hover\HoverFactory.cs (4)
67
var ownerStart = owner.
SpanStart
;
70
var ancestors = owner.Ancestors().Where(n => n.
SpanStart
!= ownerStart);
107
var ancestors = containingTag.Ancestors().Where(n => n.
SpanStart
!= containingTag.
SpanStart
);
RazorSyntaxFacts.cs (4)
59
attributeNameAbsoluteIndex = attributeName.
SpanStart
+ 5;
63
attributeNameAbsoluteIndex = attributeName.
SpanStart
;
102
var start = attributeName.
SpanStart
;
219
GetFullAttributeNameSpan(node.Parent).Start == node.
SpanStart
)
SpellCheck\SpellCheckService.cs (1)
79
ranges.Add(new((int)VSInternalSpellCheckableRangeKind.String, textLiteralSyntax.
SpanStart
, textLiteralSyntax.Span.Length));
Microsoft.CodeAnalysis.Remote.Razor (2)
DevTools\RemoteDevToolsService.cs (1)
195
SpanStart = node.
SpanStart
,
InlayHints\RemoteInlayHintService.cs (1)
93
if (node?.
SpanStart
== hostDocumentIndex &&