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 /* @ */)));
1164
new
SourceSpan
(CurrentStart, contentLength: 1 /* @ */)));
1225
new
SourceSpan
(CurrentStart, currentDirective.Length), currentDirective));
1249
new
SourceSpan
(directiveStart, errorLength),
1361
new
SourceSpan
(keywordStartLocation, keywordLength), keyword));
1383
new
SourceSpan
(valueStartLocation.Value, rawValue.Length), keyword));
1472
new
SourceSpan
(directiveLocation, Math.Max(text?.Length ?? 0, 1)), text ?? string.Empty));
1528
new
SourceSpan
(directiveLocation, prefix.Length),
1588
new
SourceSpan
(CurrentStart, CurrentToken.Content.Length), descriptor.Directive));
1641
new
SourceSpan
(CurrentStart, contentLength: 1),
1655
new
SourceSpan
(CurrentStart, CurrentToken.Content.Length), descriptor.Directive));
1667
new
SourceSpan
(CurrentStart, identifierLength), descriptor.Directive));
1684
new
SourceSpan
(CurrentStart, CurrentToken.Content.Length), descriptor.Directive));
1699
new
SourceSpan
(CurrentStart, CurrentToken.Content.Length), descriptor.Directive));
1714
new
SourceSpan
(CurrentStart, CurrentToken.Content.Length), descriptor.Directive));
1732
new
SourceSpan
(CurrentStart, CurrentToken.Content.Length), descriptor.Directive));
1753
new
SourceSpan
(CurrentStart, CurrentToken.Content.Length), descriptor.Directive, CurrentToken.Content, lastSeenMemberIdentifier ?? string.Empty));
1783
new
SourceSpan
(CurrentStart, CurrentToken.Content.Length),
1806
new
SourceSpan
(CurrentStart, identifierLength), descriptor.Directive));
1846
new
SourceSpan
(CurrentStart, CurrentToken.Content.Length),
1961
new
SourceSpan
(directiveStart, errorLength), descriptor.Directive));
2034
new
SourceSpan
(CurrentStart, contentLength: 1 /* { */), descriptor.Directive, "{"));
2040
new
SourceSpan
(CurrentStart, CurrentToken.Content.Length), descriptor.Directive, "{"));
2070
new
SourceSpan
(startingBraceLocation, contentLength: 1 /* } */), descriptor.Directive, "}", "{"));
2232
new
SourceSpan
(CurrentStart, CurrentToken.Content.Length)));
2240
new
SourceSpan
(CurrentStart, contentLength: 2 /* @: */)));
2248
new
SourceSpan
(CurrentStart, contentLength: 2 /* @@ */)));
2510
new
SourceSpan
(block.Start, block.Name.Length)));
2755
new
SourceSpan
(CurrentStart, CurrentToken.Content.Length), CurrentToken.Content));
2937
new
SourceSpan
(start, contentLength: 1 /* { OR } */),
3042
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 */)));
1548
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),