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