21 references to Create
ConfigurationSchemaGenerator (1)
RuntimeSource\SourceGenerators\DiagnosticInfo.cs (1)
34=> Location.Create(location.SourceTree?.FilePath ?? "", location.SourceSpan, location.GetLineSpan().Span);
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (3)
CompilerFailedExceptionFactoryTest.cs (3)
240Location.Create( 246Location.Create( 252Location.Create(
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\DiagnosticAnalysisContext.cs (1)
1642/// which can be created using <see cref="Location.Create(string, TextSpan, LinePositionSpan)"/> API.
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Diagnostics\LocationsTests.cs (2)
504Location location = Location.Create("test.txt", new TextSpan(), new LinePositionSpan(new LinePosition(2, 1), new LinePosition(3, 1))); 519Location locationWithoutMapping = Location.Create(filePath, sourceSpan, lineSpan);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Workspaces\NoCompilationDocumentDiagnosticAnalyzer.cs (1)
30Diagnostic.Create(Descriptor, Location.Create(document.FilePath, default, default))));
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
CodeFixes\CodeFixServiceTests.cs (1)
927var location = Location.Create(context.AdditionalFile.Path, span, text.Lines.GetLinePositionSpan(span));
Diagnostics\DiagnosticAnalyzerServiceTests.cs (1)
952=> Task.FromResult(ImmutableArray.Create(Diagnostic.Create(s_syntaxRule, Location.Create(document.FilePath, TextSpan.FromBounds(0, 0), new LinePositionSpan(new LinePosition(0, 0), new LinePosition(0, 0))))));
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (2)
Diagnostics\AbstractPullDiagnosticTestsBase.cs (1)
385Diagnostic.Create(Descriptor, Location.Create(document.FilePath!, default, default))));
Diagnostics\AdditionalFileDiagnosticsTests.cs (1)
139location: Location.Create(context.AdditionalFile.Path, Text.TextSpan.FromBounds(0, 0), new Text.LinePositionSpan(new Text.LinePosition(0, 0), new Text.LinePosition(0, 0))), "args"));
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\CommonDiagnosticAnalyzers.cs (1)
2660var location = Location.Create(context.AdditionalFile.Path, _diagnosticSpan, text.Lines.GetLinePositionSpan(_diagnosticSpan));
Microsoft.CodeAnalysis.UnitTests (3)
Diagnostics\SarifErrorLoggerTests.cs (3)
37var mainLocation = Location.Create(@"Z:\Main Location.cs", span, position); 41Location.Create(@"Relative Additional/Location.cs", span, position), 110var location = Location.Create(
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (1)
CommandLineTests.vb (1)
11092Dim diagLocation = Location.Create(path, span, linePosSpan)
Microsoft.CodeAnalysis.Workspaces (2)
Diagnostics\Extensions.cs (1)
66return Location.Create(textDocument.FilePath, span, text.Lines.GetLinePositionSpan(span));
Workspace\Solution\TextLoader.cs (1)
172location = Location.Create(filePath, textSpan: default, lineSpan: default);
System.Text.Json.SourceGeneration (1)
src\libraries\Common\src\SourceGenerators\DiagnosticInfo.cs (1)
34=> Location.Create(location.SourceTree?.FilePath ?? "", location.SourceSpan, location.GetLineSpan().Span);
System.Text.RegularExpressions.Generator (1)
RegexGenerator.Parser.cs (1)
255return Location.Create(location.SourceTree?.FilePath ?? string.Empty, location.SourceSpan, location.GetLineSpan().Span);