"ModuleName.+unsafe_expr is never used" incorrect report for graphql ppx module
BlueHotDog opened this issue · 8 comments
BlueHotDog commented
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){
...
}
}
|}
];
cristianoc commented
I’d need to see the desugared code that is generated.
Eg if similar to #9
cristianoc commented
Any idea @jfrolich ?
cristianoc commented
Feel free to reopen with more info.
jfrolich commented
Yes I don't really know what unsafe_expr
is.
cristianoc commented
I have a repro now.
jfrolich commented
Ok let me know if I can help out!
cristianoc commented
Follow in rescript-lang/rescript-compiler#4532.
cristianoc commented
Meanwhile I have added a workaround: f0299b4.