Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
self pattern variable location tweak for OCaml 4.00.0 beta #5654
Original bug ID: 5654
During porting OCamlSpotter to 4.00.0, I found the hidden function argument self-n for methods are defined with noloc.
This is sad for I and probably OCamlPro guys who work on tools like OCamlSpotter and TypeRex. It would be nice if their locations are equal to the corresponding (self) parameters at object (self). I put a patch for it. The patch only fixes the location of self-n. Probably self-*'s location should be fixed too.
Comment author: @garrigue
Applied slightly modified patch (using ghost locations, and self-* too) to trunk and 4.00, at revision 12614.