|
@@ -1103,9 +1103,9 @@ let reify in_macro =
|
|
|
expr "EBlock" [e1]
|
|
|
(* TODO: can $v and $i be implemented better? *)
|
|
|
| Meta.Dollar "v", _ ->
|
|
|
- expr "EConst" [mk_enum "Constant" "CIdent" [e1] (pos e1)]
|
|
|
+ (ECall ((EField ((EField ((EField ((EConst (Ident "haxe"),p),"macro"),p),"Context"),p),"makeExpr"),p),[e; to_pos (pos e)]),p)
|
|
|
| Meta.Dollar "i", _ ->
|
|
|
- (ECall ((EField ((EField ((EField ((EConst (Ident "haxe"),p),"macro"),p),"ExprTools"),p),"asIdent"),p),[e; to_pos (pos e)]),p)
|
|
|
+ expr "EConst" [mk_enum "Constant" "CIdent" [e1] (pos e1)]
|
|
|
| Meta.Dollar "p", _ ->
|
|
|
(ECall ((EField ((EField ((EField ((EConst (Ident "haxe"),p),"macro"),p),"ExprTools"),p),"toFieldExpr"),p),[e]),p)
|
|
|
| Meta.Custom ":pos", [pexpr] ->
|