Closed fasterthanlime closed 9 years ago
It seems that there's no clean way to throw a warning in front-end?
Only middle-end can print a warning by Resolver throwError(Warning)
,
but the resolver is not available in front-end.
That's true, the current workaround used in various parts of rock is to go through the token:
err := InternalError new(node token, "something")
node token module params errorHandler onError(err)
As for AstBuilder
, you have direct access to params
, so that should be even easier.
Closed in 784b3c31a155e415508ccbe861a37becb8a0a199
It should be a warning at most