rescript-association/reanalyze

"ModuleName.+unsafe_expr is never used" incorrect report for graphql ppx module

BlueHotDog opened this issue · 8 comments

not sure for other info is needed. simply incorrect report for a used module/expression.
The expression in question looks somewhat like:

module ModuleName = [%graphql
  {|
      mutation XXX($x: ID!, $y: String!) {
        xxx(pageId: $x, text: $y){
...
        }
      }
  |}
];

I’d need to see the desugared code that is generated.
Eg if similar to #9

Any idea @jfrolich ?

Feel free to reopen with more info.

Yes I don't really know what unsafe_expr is.

I have a repro now.

Ok let me know if I can help out!

Meanwhile I have added a workaround: f0299b4.