Bläddra i källkod

Update JSGenApi.hx

Porfirio 11 år sedan
förälder
incheckning
7449d01afb
1 ändrade filer med 4 tillägg och 0 borttagningar
  1. 4 0
      std/haxe/macro/JSGenApi.hx

+ 4 - 0
std/haxe/macro/JSGenApi.hx

@@ -40,6 +40,10 @@ typedef JSGenApi = {
 	function setTypeAccessor( callb : Type -> String ) : Void;
 	/** tells if the given identifier is a JS keyword **/
 	function isKeyword( ident : String ) : Bool;
+	/** add a feature **/
+	function addFeature( f : String ) : Bool;
+	/** check if a feature is used **/
+	function hasFeature( f : String ) : Bool;
 	/** quote and escape the given string constant **/
 	function quoteString( s : String ) : String;
 	/** create the metadata expression for the given type **/