Skip to content

Commit

Permalink
(wip) [@field.collection]
Browse files Browse the repository at this point in the history
  • Loading branch information
alex35mil committed Feb 28, 2020
1 parent 18d6c5d commit 87847d1
Show file tree
Hide file tree
Showing 36 changed files with 6,050 additions and 1,951 deletions.
8 changes: 1 addition & 7 deletions lib/ppx/Ast.re
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
open Ppxlib;
open Ast_helper;

let lid = (~loc, x: Longident.t) => {txt: x, loc};
let str = (~loc, x: string) => {txt: x, loc};
let lid = (~loc, x: Longident.t) => {txt: x, loc};

let explicit_arity = (~loc) => {
attr_name: "explicit_arity" |> str(~loc),
attr_payload: PStr([]),
attr_loc: Location.none,
};

module StructureItem = {
let from_type_declaration =
(~loc: Location.t, ~rec_flag: rec_flag, decl: type_declaration) =>
Str.type_(~loc, rec_flag, [decl]);
};
Loading

0 comments on commit 87847d1

Please sign in to comment.