81 references to SourceSpan
Microsoft.CodeAnalysis.Razor.Compiler (81)
Language\DefaultDirectiveSyntaxTreePass.cs (1)
85
var error = RazorDiagnosticFactory.CreateParsing_SectionsCannotBeNested(new
SourceSpan
(directiveStart, errorLength));
Language\Legacy\CSharpCodeParser.cs (43)
356
new
SourceSpan
(CurrentStart, CurrentToken.Content.Length));
414
new
SourceSpan
(CurrentStart, CurrentToken.Content.Length)));
420
new
SourceSpan
(CurrentStart, contentLength: 1 /* end of file */)));
426
new
SourceSpan
(CurrentStart, CurrentToken.Content.Length),
470
new
SourceSpan
(block.Start, contentLength: 1 /* ( */), block.Name, ")", "("));
727
new
SourceSpan
(block.Start, contentLength: 1 /* { OR } */), block.Name, "}", "{"));
854
new
SourceSpan
(location, contentLength: 1 /* @ */)));
887
new
SourceSpan
(block.Start, contentLength: 1 /* { OR } */), block.Name, "}", "{"));
949
new
SourceSpan
(CurrentStart, contentLength: 1 /* { */)));
1074
new
SourceSpan
(CurrentStart, contentLength: 1 /* @ */)));
1166
new
SourceSpan
(CurrentStart, contentLength: 1 /* @ */)));
1214
new
SourceSpan
(CurrentStart, CurrentToken.Content.Length)));
1236
new
SourceSpan
(CurrentStart, currentDirective.Length), currentDirective));
1260
new
SourceSpan
(directiveStart, errorLength),
1372
new
SourceSpan
(keywordStartLocation, keywordLength), keyword));
1394
new
SourceSpan
(valueStartLocation.Value, rawValue.Length), keyword));
1483
new
SourceSpan
(directiveLocation, Math.Max(text?.Length ?? 0, 1)), text ?? string.Empty));
1539
new
SourceSpan
(directiveLocation, prefix.Length),
1599
new
SourceSpan
(CurrentStart, CurrentToken.Content.Length), descriptor.Directive));
1652
new
SourceSpan
(CurrentStart, contentLength: 1),
1666
new
SourceSpan
(CurrentStart, CurrentToken.Content.Length), descriptor.Directive));
1678
new
SourceSpan
(CurrentStart, identifierLength), descriptor.Directive));
1695
new
SourceSpan
(CurrentStart, CurrentToken.Content.Length), descriptor.Directive));
1710
new
SourceSpan
(CurrentStart, CurrentToken.Content.Length), descriptor.Directive));
1725
new
SourceSpan
(CurrentStart, CurrentToken.Content.Length), descriptor.Directive));
1743
new
SourceSpan
(CurrentStart, CurrentToken.Content.Length), descriptor.Directive));
1764
new
SourceSpan
(CurrentStart, CurrentToken.Content.Length), descriptor.Directive, CurrentToken.Content, lastSeenMemberIdentifier ?? string.Empty));
1794
new
SourceSpan
(CurrentStart, CurrentToken.Content.Length),
1817
new
SourceSpan
(CurrentStart, identifierLength), descriptor.Directive));
1857
new
SourceSpan
(CurrentStart, CurrentToken.Content.Length),
1980
new
SourceSpan
(directiveStart, errorLength), descriptor.Directive));
2061
new
SourceSpan
(
2074
new
SourceSpan
(
2189
new
SourceSpan
(CurrentStart, contentLength: 1 /* { */), descriptor.Directive, "{"));
2195
new
SourceSpan
(CurrentStart, CurrentToken.Content.Length), descriptor.Directive, "{"));
2225
new
SourceSpan
(startingBraceLocation, contentLength: 1 /* } */), descriptor.Directive, "}", "{"));
2387
new
SourceSpan
(CurrentStart, CurrentToken.Content.Length)));
2395
new
SourceSpan
(CurrentStart, contentLength: 2 /* @: */)));
2403
new
SourceSpan
(CurrentStart, contentLength: 2 /* @@ */)));
2665
new
SourceSpan
(block.Start, block.Name.Length)));
2910
new
SourceSpan
(CurrentStart, CurrentToken.Content.Length), CurrentToken.Content));
3092
new
SourceSpan
(start, contentLength: 1 /* { OR } */),
3197
new
SourceSpan
(start, contentLength: 1 /* { OR } */),
Language\Legacy\HtmlMarkupParser.cs (9)
179
new
SourceSpan
(CurrentStart, CurrentToken.Content.Length)));
356
new
SourceSpan
(
571
new
SourceSpan
(SourceLocationTracker.Advance(endTagStartLocation, "</"), Math.Max(endTagName.Length, 1)), endTagName));
587
new
SourceSpan
(
688
new
SourceSpan
(tagStartLocation, contentLength: 1)));
719
new
SourceSpan
(
845
new
SourceSpan
(textLocation, contentLength: 4 /* text */)));
997
new
SourceSpan
(textLocation, contentLength: 4 /* text */)));
1575
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),