|
@@ -5,13 +5,17 @@ using Lambda;
|
|
|
|
|
|
class IImport extends DisplayTestCase {
|
|
|
/**
|
|
|
- import ha{-1-}xe.ma{-2-}cro.Exp{-3-}rTools.Expr{-4-}ArrayTools.it{-5-}er;
|
|
|
+ import ha{-1-}xe.{-6-}ma{-2-}cro.{-7-}Exp{-3-}rTools.{-8-}Expr{-4-}ArrayTools.{-9-}it{-5-}er;
|
|
|
**/
|
|
|
function testImport1() {
|
|
|
- eq(true, hasPath(fields(pos(1)), "Serializer"));
|
|
|
- eq(true, hasPath(fields(pos(2)), "ExprTools"));
|
|
|
- eq(true, hasPath(fields(pos(3)), "ExprArrayTools"));
|
|
|
- eq(true, hasField(fields(pos(4)), "iter", "el : Array<haxe.macro.Expr> -> f : (haxe.macro.Expr -> Void) -> Void"));
|
|
|
+ eq(true, hasPath(fields(pos(2)), "Serializer"));
|
|
|
+ eq(true, hasPath(fields(pos(6)), "Serializer"));
|
|
|
+ eq(true, hasPath(fields(pos(3)), "ExprTools"));
|
|
|
+ eq(true, hasPath(fields(pos(7)), "ExprTools"));
|
|
|
+ eq(true, hasPath(fields(pos(4)), "ExprArrayTools"));
|
|
|
+ eq(true, hasPath(fields(pos(8)), "ExprArrayTools"));
|
|
|
+ eq(true, hasField(fields(pos(5)), "iter", "el : Array<haxe.macro.Expr> -> f : (haxe.macro.Expr -> Void) -> Void"));
|
|
|
+ eq(true, hasField(fields(pos(9)), "iter", "el : Array<haxe.macro.Expr> -> f : (haxe.macro.Expr -> Void) -> Void"));
|
|
|
eq("el : Array<haxe.macro.Expr> -> f : (haxe.macro.Expr -> Void) -> Void", type(pos(5)));
|
|
|
// TODO: test @position display. A bit annoying because it actually ends up in other files and we can't use markers.
|
|
|
}
|
|
@@ -32,13 +36,16 @@ class IImport extends DisplayTestCase {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- using ha{-1-}xe.ma{-2-}cro.Exp{-3-}rTools.Expr{-4-}ArrayTools;
|
|
|
+ using ha{-1-}xe.{-5-}ma{-2-}cro.{-6-}Exp{-3-}rTools.{-7-}Expr{-4-}ArrayTools;
|
|
|
**/
|
|
|
function testUsing1() {
|
|
|
- eq(true, hasPath(fields(pos(1)), "Serializer"));
|
|
|
- eq(true, hasPath(fields(pos(2)), "ExprTools"));
|
|
|
- eq(true, hasPath(fields(pos(3)), "ExprArrayTools"));
|
|
|
- eq(true, hasField(fields(pos(4)), "iter", "el : Array<haxe.macro.Expr> -> f : (haxe.macro.Expr -> Void) -> Void"));
|
|
|
+ eq(true, hasPath(fields(pos(2)), "Serializer"));
|
|
|
+ eq(true, hasPath(fields(pos(5)), "Serializer"));
|
|
|
+ eq(true, hasPath(fields(pos(3)), "ExprTools"));
|
|
|
+ eq(true, hasPath(fields(pos(6)), "ExprTools"));
|
|
|
+ eq(true, hasPath(fields(pos(4)), "ExprArrayTools"));
|
|
|
+ eq(true, hasPath(fields(pos(7)), "ExprArrayTools"));
|
|
|
+ // eq(true, hasField(fields(pos(8)), "iter", "el : Array<haxe.macro.Expr> -> f : (haxe.macro.Expr -> Void) -> Void"));
|
|
|
// TODO: test @position display. A bit annoying because it actually ends up in other files and we can't use markers.
|
|
|
}
|
|
|
|