ocaml-ppx / ppx_tools

Tools for authors of ppx rewriters
MIT License
134 stars 39 forks source link

Rewriter does not include source file in locations #46

Open jonathan-dilorenzo opened 8 years ago

jonathan-dilorenzo commented 8 years ago

It seems the rewriter does not include the source file in location information for some reason.

When I use ocamlc to spit out new source and print a location (in my AST mapper) I get:

File "examples/test.ml", line 3, characters 0-166

When I use the rewriter I get:

File "", line 3, characters 0-166