Skip to content

Commit fecdc15

Browse files
committed
feat(engine): add module for the Rust engine ASTs
1 parent 1762dcd commit fecdc15

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

engine/lib/rust_engine_types.ml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
(** This module re-exports and renames a subset of `Types`.
2+
`Types` contains both the modules from the frontend and from the Rust engine.
3+
Thus, some types are deduplicated, and get renamed.
4+
*)
5+
6+
module Renamed = struct
7+
type arm = Types.arm2
8+
type attribute = Types.attribute2
9+
type attribute_kind = Types.attribute_kind2
10+
type binding_mode = Types.binding_mode2
11+
type borrow_kind = Types.borrow_kind2
12+
type def_id = Types.def_id2
13+
type expr_kind = Types.expr_kind2
14+
type impl_expr = Types.impl_expr2
15+
type param = Types.param2
16+
type pat_kind = Types.pat_kind2
17+
type projection_predicate = Types.projection_predicate2
18+
type region = Types.region2
19+
type span = Types.span2
20+
end
21+
22+
include Types
23+
include Renamed

0 commit comments

Comments
 (0)