@@ -29,8 +29,8 @@ type LoadClosureInput =
2929 {
3030 FileName: string
3131 SyntaxTree: ParsedInput option
32- ParseDiagnostics: ( PhasedDiagnostic * FSharpDiagnosticSeverity ) list
33- MetaCommandDiagnostics: ( PhasedDiagnostic * FSharpDiagnosticSeverity ) list
32+ ParseDiagnostics: PhasedDiagnostic list
33+ MetaCommandDiagnostics: PhasedDiagnostic list
3434 }
3535
3636[<RequireQualifiedAccess>]
@@ -64,13 +64,13 @@ type LoadClosure =
6464 OriginalLoadReferences: ( range * string * string ) list
6565
6666 /// Diagnostics seen while processing resolutions
67- ResolutionDiagnostics: ( PhasedDiagnostic * FSharpDiagnosticSeverity ) list
67+ ResolutionDiagnostics: PhasedDiagnostic list
6868
6969 /// Diagnostics seen while parsing root of closure
70- AllRootFileDiagnostics: ( PhasedDiagnostic * FSharpDiagnosticSeverity ) list
70+ AllRootFileDiagnostics: PhasedDiagnostic list
7171
7272 /// Diagnostics seen while processing the compiler options implied root of closure
73- LoadClosureRootFileDiagnostics: ( PhasedDiagnostic * FSharpDiagnosticSeverity ) list
73+ LoadClosureRootFileDiagnostics: PhasedDiagnostic list
7474 }
7575
7676[<RequireQualifiedAccess>]
@@ -91,8 +91,8 @@ module ScriptPreprocessClosure =
9191 fileName: string *
9292 range: range *
9393 parsedInput: ParsedInput option *
94- parseDiagnostics: ( PhasedDiagnostic * FSharpDiagnosticSeverity ) list *
95- metaDiagnostics: ( PhasedDiagnostic * FSharpDiagnosticSeverity ) list
94+ parseDiagnostics: PhasedDiagnostic list *
95+ metaDiagnostics: PhasedDiagnostic list
9696
9797 type Observed () =
9898 let seen = Dictionary<_, bool>()
@@ -594,7 +594,7 @@ module ScriptPreprocessClosure =
594594 | None -> true
595595
596596 // Filter out non-root errors and warnings
597- let allRootDiagnostics = allRootDiagnostics |> List.filter ( fst >> isRootRange)
597+ let allRootDiagnostics = allRootDiagnostics |> List.filter isRootRange
598598
599599 {
600600 SourceFiles = List.groupBy fst sourceFiles |> List.map ( map2Of2 ( List.map snd))
0 commit comments