50 references to SourceSpan
Microsoft.AspNetCore.Mvc.Razor.Extensions.UnitTests (4)
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\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)));
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)
Microsoft.NET.Sdk.Razor.SourceGenerators.UnitTests (1)
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (2)
Microsoft.VisualStudioCode.RazorExtension.UnitTests (2)