77 references to SourceSpan
Microsoft.CodeAnalysis.Razor.Compiler (77)
Language\DefaultDirectiveSyntaxTreePass.cs (1)
85var error = RazorDiagnosticFactory.CreateParsing_SectionsCannotBeNested(new SourceSpan(directiveStart, errorLength));
Language\Legacy\CSharpCodeParser.cs (40)
354new SourceSpan(CurrentStart, CurrentToken.Content.Length)); 412new SourceSpan(CurrentStart, CurrentToken.Content.Length))); 418new SourceSpan(CurrentStart, contentLength: 1 /* end of file */))); 424new SourceSpan(CurrentStart, CurrentToken.Content.Length), 468new SourceSpan(block.Start, contentLength: 1 /* ( */), block.Name, ")", "(")); 725new SourceSpan(block.Start, contentLength: 1 /* { OR } */), block.Name, "}", "{")); 852new SourceSpan(location, contentLength: 1 /* @ */))); 885new SourceSpan(block.Start, contentLength: 1 /* { OR } */), block.Name, "}", "{")); 947new SourceSpan(CurrentStart, contentLength: 1 /* { */))); 1072new SourceSpan(CurrentStart, contentLength: 1 /* @ */))); 1148new SourceSpan(CurrentStart, contentLength: 1 /* @ */))); 1209new SourceSpan(CurrentStart, currentDirective.Length), currentDirective)); 1233new SourceSpan(directiveStart, errorLength), 1345new SourceSpan(keywordStartLocation, keywordLength), keyword)); 1367new SourceSpan(valueStartLocation.Value, rawValue.Length), keyword)); 1456new SourceSpan(directiveLocation, Math.Max(text?.Length ?? 0, 1)), text ?? string.Empty)); 1512new SourceSpan(directiveLocation, prefix.Length), 1572new SourceSpan(CurrentStart, CurrentToken.Content.Length), descriptor.Directive)); 1625new SourceSpan(CurrentStart, contentLength: 1), 1639new SourceSpan(CurrentStart, CurrentToken.Content.Length), descriptor.Directive)); 1651new SourceSpan(CurrentStart, identifierLength), descriptor.Directive)); 1668new SourceSpan(CurrentStart, CurrentToken.Content.Length), descriptor.Directive)); 1683new SourceSpan(CurrentStart, CurrentToken.Content.Length), descriptor.Directive)); 1698new SourceSpan(CurrentStart, CurrentToken.Content.Length), descriptor.Directive)); 1716new SourceSpan(CurrentStart, CurrentToken.Content.Length), descriptor.Directive)); 1737new SourceSpan(CurrentStart, CurrentToken.Content.Length), descriptor.Directive, CurrentToken.Content, lastSeenMemberIdentifier ?? string.Empty)); 1767new SourceSpan(CurrentStart, CurrentToken.Content.Length), 1790new SourceSpan(CurrentStart, identifierLength), descriptor.Directive)); 1830new SourceSpan(CurrentStart, CurrentToken.Content.Length), 1945new SourceSpan(directiveStart, errorLength), descriptor.Directive)); 2018new SourceSpan(CurrentStart, contentLength: 1 /* { */), descriptor.Directive, "{")); 2024new SourceSpan(CurrentStart, CurrentToken.Content.Length), descriptor.Directive, "{")); 2054new SourceSpan(startingBraceLocation, contentLength: 1 /* } */), descriptor.Directive, "}", "{")); 2216new SourceSpan(CurrentStart, CurrentToken.Content.Length))); 2224new SourceSpan(CurrentStart, contentLength: 2 /* @: */))); 2232new SourceSpan(CurrentStart, contentLength: 2 /* @@ */))); 2494new SourceSpan(block.Start, block.Name.Length))); 2739new SourceSpan(CurrentStart, CurrentToken.Content.Length), CurrentToken.Content)); 2921new SourceSpan(start, contentLength: 1 /* { OR } */), 2998new SourceSpan(start, contentLength: 1 /* { OR } */),
Language\Legacy\HtmlMarkupParser.cs (8)
160new SourceSpan(CurrentStart, CurrentToken.Content.Length))); 338new SourceSpan( 553new SourceSpan(SourceLocationTracker.Advance(endTagStartLocation, "</"), Math.Max(endTagName.Length, 1)), endTagName)); 569new SourceSpan( 689new SourceSpan( 815new SourceSpan(textLocation, contentLength: 4 /* text */))); 970new SourceSpan(textLocation, contentLength: 4 /* text */))); 1547new SourceSpan(SourceLocationTracker.Advance(tagStart, "</"), ScriptTagName.Length),
Language\Legacy\NativeCSharpTokenizer.cs (3)
561new SourceSpan(CurrentStart, contentLength: 1 /* end of file */))); 591new SourceSpan(CurrentStart, contentLength: 1 /* " */))); 608new SourceSpan(CurrentStart, contentLength: 1 /* end of file */)));
Language\Legacy\RoslynCSharpTokenizer.cs (5)
393new SourceSpan(CurrentStart, contentLength: expectedPrefix?.Length ?? 0 /* " */))); 500new SourceSpan(CurrentStart, contentLength: 1 /* end of file */))); 528new SourceSpan(CurrentStart, contentLength: trivia.FullSpan.Length))); 546new SourceSpan(CurrentStart, contentLength: trivia.FullSpan.Length))); 556new SourceSpan(CurrentStart, contentLength: directiveTrivia.FullSpan.Length)));
Language\Legacy\TagHelperBlockRewriter.cs (3)
113var location = new SourceSpan(codeBlock.GetSourceLocation(source), codeBlock.Width); 190var errorLocation = new SourceSpan(attributeNameLocation, result.AttributeName.Length); 200var errorLocation = new SourceSpan(attributeNameLocation, result.AttributeName.Length);
Language\Legacy\TagHelperParseTreeRewriter.cs (9)
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), 515new SourceSpan(errorStart, tagName.Length), tagName)); 532new SourceSpan(errorStart, tagName.Length), tagName)); 587new SourceSpan(errorStart, length), 705new SourceSpan(errorStart, tagName.Length), 723new SourceSpan(errorStart, tagName.Length),
Language\Legacy\TokenizerBackedParser.cs (2)
385new SourceSpan(start, contentLength: 2 /* @* */)); 395new SourceSpan(start, contentLength: 2 /* @* */));
Language\SourceSpan.cs (1)
14public static readonly SourceSpan Undefined = new SourceSpan(SourceLocation.Undefined, 0);
Mvc\RazorExtensionsDiagnosticFactory.cs (5)
22new SourceSpan(SourceLocation.Undefined, contentLength: 0), 35new SourceSpan(SourceLocation.Undefined, contentLength: 0), 48new SourceSpan(SourceLocation.Undefined, contentLength: 0), 61new SourceSpan(SourceLocation.Undefined, contentLength: 0), 73new SourceSpan(SourceLocation.Undefined, contentLength: 0),