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)
242return new SourceFile(filePath, SourceText.From(stream, encoding: null));
SyncedSource\FileBasedPrograms\VirtualProjectBuilder.cs (1)
82EntryPointSourceFile = 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) 87SourceFile sourceFile, 238public static SourceFile Load(string filePath) 332public required SourceFile SourceFile { get; init; } 1370SourceFile sourceFile,
SyncedSource\FileBasedPrograms\VirtualProjectBuilder.cs (6)
46internal SourceFile EntryPointSourceFile 52field = SourceFile.Load(EntryPointFileFullPath); 142var sourceFile = SourceFile.Load(sourceFilePath); 431var sourceFile = SourceFile.Load(filePath);