Closed sim642 closed 2 years ago
Indeed OCaml syntax support is lagging a bit behind ReScript syntax support. Could be revamped.
Looking at this again, reanalyze starts from location info in the typed AST, and has no way of knowing how you format your code. Would you try to just format this specific code fragment using ocamlformat and see if it works fine. There's no plan to support every possible formatting, but at least the result of ocamlformat should be supported.
Closing this as that specific formatting is not supported.
Running reanalyze https://github.com/rescript-association/reanalyze/commit/389dd682223201b42c33e5c444e5c79e0805adad on Goblint https://github.com/goblint/analyzer/commit/a544002114324a207df72f9e79eb656c3ebe7b5b revealed the following.
Using
-write
, record field dead attributes are placed quite awkwardly if the record type is formatted as follows:I guess the attribute gets placed after the
;
. It might just be the fault of such weird record formatting we have in a handful of places and not worth fixing in reanalyze, but I thought I'd open an issue about every observation regardless.