|
@@ -133,6 +133,7 @@ type context = {
|
|
mutable get_macros : unit -> context option;
|
|
mutable get_macros : unit -> context option;
|
|
mutable run_command : string -> int;
|
|
mutable run_command : string -> int;
|
|
file_lookup_cache : (string,string option) Hashtbl.t;
|
|
file_lookup_cache : (string,string option) Hashtbl.t;
|
|
|
|
+ mutable stored_typed_exprs : (int, texpr) PMap.t;
|
|
(* output *)
|
|
(* output *)
|
|
mutable file : string;
|
|
mutable file : string;
|
|
mutable flash_version : float;
|
|
mutable flash_version : float;
|
|
@@ -463,6 +464,7 @@ module MetaInfo = struct
|
|
| RuntimeValue -> ":runtimeValue",("Marks an abstract as being a runtime value",[UsedOn TAbstract])
|
|
| RuntimeValue -> ":runtimeValue",("Marks an abstract as being a runtime value",[UsedOn TAbstract])
|
|
| SelfCall -> ":selfCall",("Translates method calls into calling object directly",[UsedOn TClassField; Platform Js])
|
|
| SelfCall -> ":selfCall",("Translates method calls into calling object directly",[UsedOn TClassField; Platform Js])
|
|
| Setter -> ":setter",("Generates a native getter function on the given field",[HasParam "Class field name";UsedOn TClassField;Platform Flash])
|
|
| Setter -> ":setter",("Generates a native getter function on the given field",[HasParam "Class field name";UsedOn TClassField;Platform Flash])
|
|
|
|
+ | StoredTypedExpr -> ":storedTypedExpr",("Used internally to reference a typed expression returned from a macro",[Internal])
|
|
| SkipCtor -> ":skipCtor",("Used internally to generate a constructor as if it were a native type (no __hx_ctor)",[Platforms [Java;Cs]; Internal])
|
|
| SkipCtor -> ":skipCtor",("Used internally to generate a constructor as if it were a native type (no __hx_ctor)",[Platforms [Java;Cs]; Internal])
|
|
| SkipReflection -> ":skipReflection",("Used internally to annotate a field that shouldn't have its reflection data generated",[Platforms [Java;Cs]; UsedOn TClassField; Internal])
|
|
| SkipReflection -> ":skipReflection",("Used internally to annotate a field that shouldn't have its reflection data generated",[Platforms [Java;Cs]; UsedOn TClassField; Internal])
|
|
| Sound -> ":sound",( "Includes a given .wav or .mp3 file into the target Swf and associates it with the class (must extend flash.media.Sound)",[HasParam "File path";UsedOn TClass;Platform Flash])
|
|
| Sound -> ":sound",( "Includes a given .wav or .mp3 file into the target Swf and associates it with the class (must extend flash.media.Sound)",[HasParam "File path";UsedOn TClass;Platform Flash])
|
|
@@ -735,6 +737,7 @@ let create v args =
|
|
tarray = (fun _ -> assert false);
|
|
tarray = (fun _ -> assert false);
|
|
};
|
|
};
|
|
file_lookup_cache = Hashtbl.create 0;
|
|
file_lookup_cache = Hashtbl.create 0;
|
|
|
|
+ stored_typed_exprs = PMap.empty;
|
|
memory_marker = memory_marker;
|
|
memory_marker = memory_marker;
|
|
}
|
|
}
|
|
|
|
|