Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Standard infrastructure for ppx rewriters
CHANGES:
Fix
Longident.parse
so it properly handles unparenthesized dotted operatorssuch as
+.
or*.
. (Add tests for parsing longident's with . ocaml-ppx/ppxlib#111, @rgrinberg, @NathanReb)raising an exception does no longer cancel the whole context free phase(Allowing multiple errors to be reported in one pass of the context_free phase ocaml-ppx/ppxlib#453, @Burnleydev1)
Sort embedded errors that are appended to the AST by location so the compiler
reports the one closer to the beginning of the file first. (Sort errors by location before appending them to the AST ocaml-ppx/ppxlib#463, @NathanReb)
Update
Attribute.get
to ignoreloc_ghost
. (Fix hash used byAttribute.get
ocaml-ppx/ppxlib#460, @ceastlund)Add API to manipulate attributes that are used as flags (cumbersome flag attributes ocaml-ppx/ppxlib#408, @dianaoigo)
Update changelog to use ISO 8061 date format: YYYY-MM-DD. (Changed dates in changelog to ISO 8601 format: YYYY-MM-DD. ocaml-ppx/ppxlib#445, @ceastlund)
Replace
Caml
withStdlib
. (Replace Caml with Stdlib ocaml-ppx/ppxlib#427, @ceastlund)When a transformation raises, the last valid AST is used as input to the upcoming
transformations. All such errors are collected and appended as
extension nodes to the final AST (Driver: Multiple errors can be reported. ocaml-ppx/ppxlib#447, @Burnleydev1)
Fix a small mistake in the man pages: Embededding errors is done by default with
-as-pp
, not with-dump-ast
(Fix misleading error in man page ocaml-ppx/ppxlib#464, @pitag-ha)Set appropriate binary mode when writing to
stdout
especially for Windowscompatibility. (Binary mode when writing to stdout on Windows ocaml-ppx/ppxlib#466, @jonahbeckford)