@@ -40,7 +40,7 @@ class ComplexTypeTools {
static public function toString( c : ComplexType ) : String
return new Printer().printComplexType(c);
- #if macro
+ #if (macro || display)
/**
Returns a type corresponding to `c`.
@@ -30,7 +30,7 @@ import haxe.macro.Expr;
**/
#if hl @:hlNative("macro") #end
class MacroStringTools {
@@ -60,7 +60,7 @@ class PositionTools {
#end
}
Converts a `haxe.macro.Position` to a `haxe.display.Range`.
@@ -157,7 +157,7 @@ class TypeTools {
Follows all typedefs of `t` to reach the actual type.
@@ -156,7 +156,7 @@ class TypedExprTools {
static public function toString(t:TypedExpr, ?pretty = false):String {
return @:privateAccess haxe.macro.Context.sExpr(t, pretty);