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