瀏覽代碼

add completion support to haxe.macro.Tools (by #if display)

Dan Korostelev 8 年之前
父節點
當前提交
e6f3b7d3a7

+ 1 - 1
std/haxe/macro/ComplexTypeTools.hx

@@ -40,7 +40,7 @@ class ComplexTypeTools {
 	static public function toString( c : ComplexType ) : String
 	static public function toString( c : ComplexType ) : String
 		return new Printer().printComplexType(c);
 		return new Printer().printComplexType(c);
 
 
-	#if macro
+	#if (macro || display)
 
 
 	/**
 	/**
 		Returns a type corresponding to `c`.
 		Returns a type corresponding to `c`.

+ 1 - 1
std/haxe/macro/MacroStringTools.hx

@@ -30,7 +30,7 @@ import haxe.macro.Expr;
 **/
 **/
 #if hl @:hlNative("macro") #end
 #if hl @:hlNative("macro") #end
 class MacroStringTools {
 class MacroStringTools {
-	#if macro
+	#if (macro || display)
 
 
 
 
 	/**
 	/**

+ 1 - 1
std/haxe/macro/PositionTools.hx

@@ -60,7 +60,7 @@ class PositionTools {
 		#end
 		#end
 	}
 	}
 
 
-	#if macro
+	#if (macro || display)
 	/**
 	/**
 		Converts a `haxe.macro.Position` to a `haxe.display.Range`.
 		Converts a `haxe.macro.Position` to a `haxe.display.Range`.
 
 

+ 1 - 1
std/haxe/macro/TypeTools.hx

@@ -157,7 +157,7 @@ class TypeTools {
 	}
 	}
 
 
 
 
-	#if macro
+	#if (macro || display)
 
 
 	/**
 	/**
 		Follows all typedefs of `t` to reach the actual type.
 		Follows all typedefs of `t` to reach the actual type.

+ 1 - 1
std/haxe/macro/TypedExprTools.hx

@@ -156,7 +156,7 @@ class TypedExprTools {
 		}
 		}
 	}
 	}
 
 
-	#if macro
+	#if (macro || display)
 	static public function toString(t:TypedExpr, ?pretty = false):String {
 	static public function toString(t:TypedExpr, ?pretty = false):String {
 		return @:privateAccess haxe.macro.Context.sExpr(t, pretty);
 		return @:privateAccess haxe.macro.Context.sExpr(t, pretty);
 	}
 	}