3 instantiations of SourceFile
Microsoft.CodeAnalysis.CSharp.Features (3)
Diagnostics\Analyzers\FileBasedPrograms\FileLevelDirectiveDiagnosticAnalyzer.cs (1)
54new SourceFile(tree.FilePath, tree.GetText(cancellationToken)),
SyncedSource\FileBasedPrograms\FileLevelDirectiveHelpers.cs (2)
232return new SourceFile(filePath, SourceText.From(stream, encoding: null)); 237return new SourceFile(Path, newText);
7 references to SourceFile
Microsoft.CodeAnalysis.CSharp.Features (7)
SyncedSource\FileBasedPrograms\FileLevelDirectiveHelpers.cs (7)
39public static ImmutableArray<CSharpDirective> FindDirectives(SourceFile sourceFile, bool reportAllErrors, ErrorReporter reportError) 87SourceFile sourceFile, 228public static SourceFile Load(string filePath) 235public SourceFile WithText(SourceText newText) 298public required SourceFile SourceFile { get; init; } 536public Project EnsureProjectFilePath(SourceFile sourceFile, ErrorReporter reportError) 621internal delegate void ErrorReporter(SourceFile sourceFile, TextSpan textSpan, string message);