14 references to Advance
Microsoft.AspNetCore.Razor.Language.UnitTests (2)
Legacy\SourceLocationTrackerTest.cs (2)
23var result = SourceLocationTracker.Advance(sourceLocation, "Hello world"); 39var currentLocation = SourceLocationTracker.Advance(location, "foo\nbar\rbaz\r\nbox");
Microsoft.AspNetCore.Razor.Test.Common (1)
Language\SyntaxTreeVerifier.cs (1)
140_currentLocation = SourceLocationTracker.Advance(_currentLocation, token.Content);
Microsoft.CodeAnalysis.Razor.Compiler (11)
Language\Legacy\HtmlMarkupParser.cs (5)
339SourceLocationTracker.Advance(tracker.TagLocation, "<"), 559new SourceSpan(SourceLocationTracker.Advance(endTagStartLocation, "</"), Math.Max(endTagName.Length, 1)), endTagName)); 576SourceLocationTracker.Advance(tracker.TagLocation, "<"), 696tagName.Length == 0 ? tagStartLocation : SourceLocationTracker.Advance(tagStartLocation, "<"), 1553new SourceSpan(SourceLocationTracker.Advance(tagStart, "</"), ScriptTagName.Length),
Language\Legacy\TagHelperParseTreeRewriter.cs (6)
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), 581var errorStart = SourceLocationTracker.Advance(child.GetSourceLocation(_source), whitespace); 731return SourceLocationTracker.Advance(tagBlock.GetSourceLocation(source), "<"); 736return SourceLocationTracker.Advance(tagBlock.GetSourceLocation(source), "</");