|
@@ -40,6 +40,10 @@ typedef JSGenApi = {
|
|
function setTypeAccessor( callb : Type -> String ) : Void;
|
|
function setTypeAccessor( callb : Type -> String ) : Void;
|
|
/** tells if the given identifier is a JS keyword **/
|
|
/** tells if the given identifier is a JS keyword **/
|
|
function isKeyword( ident : String ) : Bool;
|
|
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 **/
|
|
/** quote and escape the given string constant **/
|
|
function quoteString( s : String ) : String;
|
|
function quoteString( s : String ) : String;
|
|
/** create the metadata expression for the given type **/
|
|
/** create the metadata expression for the given type **/
|