|
@@ -191,11 +191,9 @@ let json_of_diagnostics com dctx =
|
|
|
()
|
|
|
end;
|
|
|
PMap.iter (fun p r ->
|
|
|
- (* TODO warning code? *)
|
|
|
if not !r then add DKUnusedImport p MessageSeverity.Warning None (JArray [])
|
|
|
) dctx.import_positions;
|
|
|
List.iter (fun (s,p,prange) ->
|
|
|
- (* TODO warning code? *)
|
|
|
add DKRemovableCode p MessageSeverity.Warning None (JObject ["description",JString s;"range",if prange = null_pos then JNull else Genjson.generate_pos_as_range prange])
|
|
|
) dctx.removable_code;
|
|
|
Hashtbl.iter (fun file ranges ->
|
|
@@ -205,7 +203,6 @@ let json_of_diagnostics com dctx =
|
|
|
"string",JString (Ast.Printer.s_expr e)
|
|
|
]
|
|
|
] in
|
|
|
- (* TODO warning code? *)
|
|
|
add DKInactiveBlock p MessageSeverity.Hint None jo
|
|
|
) ranges
|
|
|
) dctx.dead_blocks;
|