4 instantiations of SourceFile
Microsoft.CodeAnalysis.CSharp.Features (1)
Diagnostics\Analyzers\FileBasedPrograms\FileLevelDirectiveDiagnosticAnalyzer.cs (1)
54new SourceFile(tree.FilePath, tree.GetText(cancellationToken)),
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
FileBasedPrograms\FileBasedProgramService.cs (1)
49(text, path, textSpan, message, innerException) => reportError($"{new SourceFile(path, text).GetLocationString(textSpan)}: {message}"))
SyncedSource\FileBasedPrograms\FileLevelDirectiveHelpers.cs (1)
230return new SourceFile(filePath, SourceText.From(stream, encoding: null));
SyncedSource\FileBasedPrograms\VirtualProjectBuilder.cs (1)
80EntryPointSourceFile = new SourceFile(entryPointFileFullPath, sourceText);
11 references to SourceFile
Microsoft.CodeAnalysis.CSharp.Workspaces (11)
SyncedSource\FileBasedPrograms\FileLevelDirectiveHelpers.cs (5)
38public static ImmutableArray<CSharpDirective> FindDirectives(SourceFile sourceFile, bool reportAllErrors, ErrorReporter errorReporter, bool checkDuplicates = true) 85SourceFile sourceFile, 226public static SourceFile Load(string filePath) 280public required SourceFile SourceFile { get; init; } 833SourceFile sourceFile,
SyncedSource\FileBasedPrograms\VirtualProjectBuilder.cs (6)
44internal SourceFile EntryPointSourceFile 50field = SourceFile.Load(EntryPointFileFullPath); 140var sourceFile = SourceFile.Load(sourceFilePath); 423var sourceFile = SourceFile.Load(filePath);