16 references to GetSourceLocation
Microsoft.CodeAnalysis.Razor.Compiler (13)
Language\DefaultDirectiveSyntaxTreePass.cs (1)
83
var directiveStart = node.Transition.
GetSourceLocation
(_syntaxTree.Source);
Language\Legacy\TagHelperBlockRewriter.cs (3)
82
attributeNameLocation = attributeBlock.Name.
GetSourceLocation
(source);
95
attributeNameLocation = minimizedAttributeBlock.Name.
GetSourceLocation
(source);
113
var location = new SourceSpan(codeBlock.
GetSourceLocation
(source), codeBlock.Width);
Language\Legacy\TagHelperParseTreeRewriter.cs (7)
142
var source = new SourceSpan(SourceLocationTracker.Advance(startTag.
GetSourceLocation
(_source), "<"), tagName.Length);
187
new SourceSpan(SourceLocationTracker.Advance(endTag.
GetSourceLocation
(_source), "</"), tagName.Length), tagName));
368
new SourceSpan(SourceLocationTracker.Advance(endTag.
GetSourceLocation
(_source), "</"), tagName.Length),
493
new SourceSpan(tagBlock.
GetSourceLocation
(_source), tagBlock.Width),
581
var errorStart = SourceLocationTracker.Advance(child.
GetSourceLocation
(_source), whitespace);
731
return SourceLocationTracker.Advance(tagBlock.
GetSourceLocation
(source), "<");
736
return SourceLocationTracker.Advance(tagBlock.
GetSourceLocation
(source), "</");
Language\Syntax\SyntaxNodeExtensions.cs (2)
46
: nodeOrToken.AsNode()?.
GetSourceLocation
(source) ?? default;
120
var location = node.
GetSourceLocation
(source);
Microsoft.CodeAnalysis.Razor.Workspaces (3)
DocumentMapping\RazorEditService_Methods.cs (2)
46
var openBraceLine = openBrace.
GetSourceLocation
(source).LineIndex;
47
var closeBraceLocation = closeBrace.
GetSourceLocation
(source);
Extensions\RazorSyntaxNodeExtensions.cs (1)
213
var location = node.
GetSourceLocation
(sourceDocument);