50 references to SourceSpan
Microsoft.AspNetCore.Mvc.Razor.Extensions.UnitTests (4)
InjectTargetExtensionTest.cs (2)
53TypeSource = new SourceSpan( 59MemberSource = new SourceSpan(
ModelExpressionPassTest.cs (2)
90Assert.Equal(new SourceSpan("test.cshtml", 51, 1, 8, 3), source); 126Assert.Equal(new SourceSpan("test.cshtml", 52, 1, 9, 3), source);
Microsoft.AspNetCore.Razor.Language.UnitTests (38)
CodeGeneration\CSharpCodeWriterTest.cs (1)
287var mappingLocation = new SourceSpan(filePath, 10, 4, 3, 9);
CodeGeneration\DesignTimeNodeWriterTest.cs (10)
51var originalSpan = new SourceSpan("test.cshtml", 0, 0, 0, 6); 52var generatedSpan = new SourceSpan(null, 38 + Environment.NewLine.Length * 3, 3, 0, 6); 87var originalSpan = new SourceSpan("test.cshtml", 0, 0, 0, 6); 88var generatedSpan = new SourceSpan(null, 38 + Environment.NewLine.Length * 3, 3, 0, 6); 151Source = new SourceSpan("test.cshtml", 0, 0, 0, 3), 215Source = new SourceSpan("test.cshtml", 8, 0, 8, 3), 254Source = new SourceSpan("test.cshtml", 0, 0, 0, 3) 311Source = new SourceSpan("test.cshtml", 0, 0, 0, 13) 345Source = new SourceSpan("test.cshtml", 0, 0, 0, 17) 494Source = new SourceSpan(fileName, 0, 0, 0, 3)
CodeGeneration\RuntimeNodeWriterTest.cs (4)
55Source = new SourceSpan("test.cshtml", 0, 0, 0, 3) 86Source = new SourceSpan("test.cshtml", 0, 0, 0, 3), 290.Add(IntermediateNodeFactory.CSharpToken("if (true) { }", new SourceSpan("test.cshtml", 0, 0, 0, 13))); 321.Add(IntermediateNodeFactory.CSharpToken(" if (true) { }", new SourceSpan("test.cshtml", 0, 0, 0, 17)));
DefaultRazorCSharpLoweringPhaseTest.cs (1)
73new SourceSpan("SomeFile.cshtml", 11, 0, 11, 1));
DefaultRazorIntermediateNodeLoweringPhaseIntegrationTest.cs (1)
178var expectedSourceLocation = new SourceSpan(codeDocument.Source.FilePath, 1, 0, 1, 12);
Extensions\DefaultTagHelperTargetExtensionTest.cs (1)
54private static readonly SourceSpan Span = new SourceSpan("test.cshtml", 15, 2, 5, 2);
Extensions\DesignTimeDirectiveTargetExtensionTest.cs (6)
48Source = new SourceSpan("test.cshtml", 0, 0, 0, 5), 89Source = new SourceSpan("test.cshtml", 0, 0, 0, 5), 130Source = new SourceSpan("test.cshtml", 0, 0, 0, 5), 171Source = new SourceSpan("test.cshtml", 0, 0, 0, 5), 177Source = new SourceSpan("test.cshtml", 0, 0, 0, 5), 229Source = new SourceSpan("test.cshtml", 0, 0, 0, 5),
RazorDiagnosticTest.cs (14)
17var span = new SourceSpan("test.cs", 15, 1, 8, 5); 33var span = new SourceSpan("test.cs", 15, 1, 8, 5); 49var span = new SourceSpan("test.cs", 15, 1, 8, 5); 65var span = new SourceSpan("test.cs", 15, 1, 8, 5); 82var span = new SourceSpan("test.cs", 15, 1, 8, 5); 98var span = new SourceSpan("test.cs", 15, 1, 8, 5); 114var span = new SourceSpan("test.cs", 15, 1, 8, 5); 131var span1 = new SourceSpan("test.cs", 15, 1, 8, 5); 132var span2 = new SourceSpan("test.cs", 15, 1, 8, 3); 150var span = new SourceSpan("test.cs", 15, 1, 8, 5); 167var span = new SourceSpan("test.cs", 15, 1, 8, 5); 184var span1 = new SourceSpan("test.cs", 15, 1, 8, 5); 185var span2 = new SourceSpan("test.cs", 15, 1, 8, 3); 203var span = new SourceSpan("test.cs", 15, 1, 8, 5);
Microsoft.CodeAnalysis.Razor.Compiler (3)
CSharp\TextSpanExtensions.cs (1)
15return new SourceSpan(filePath: null, absoluteIndex: textSpan.Start, lineIndex: -1, characterIndex: -1, length: textSpan.Length);
Language\SourceSpan.cs (2)
17: this(null, absoluteIndex, -1, -1, length) 43: this(filePath: null, absoluteIndex: absoluteIndex, lineIndex: lineIndex, characterIndex: characterIndex, length: length)
Microsoft.NET.Sdk.Razor.SourceGenerators.UnitTests (1)
RazorDiagnosticTest.cs (1)
32var span = new SourceSpan("some-file", 100, 1, 5, 10);
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (2)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Mapping\RazorEditServiceTest.cs (2)
1291var csharpSourceSpan = new SourceSpan( 1298var razorSourceSpan = new SourceSpan(
Microsoft.VisualStudioCode.RazorExtension.UnitTests (2)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Mapping\RazorEditServiceTest.cs (2)
1291var csharpSourceSpan = new SourceSpan( 1298var razorSourceSpan = new SourceSpan(