Skip to content

Commit

Permalink
Update the docs for @:expose (#6515)
Browse files Browse the repository at this point in the history
It works for Lua as well, and for both classes and fields.
  • Loading branch information
Gama11 authored and nadako committed Aug 14, 2017
1 parent 04dac44 commit 3e0be1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/context/meta.ml
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ let get_info = function
| EnumConstructorParam -> ":enumConstructorParam",("Used internally to annotate GADT type parameters",[UsedOn TClass; UsedInternally])
| Event -> ":event",("Automatically added by -net-lib on events. Has no effect on types compiled by Haxe",[Platform Cs; UsedOn TClassField])
| Exhaustive -> ":exhaustive",("",[UsedInternally])
| Expose -> ":expose",("Makes the class available on the window object",[HasParam "?Name=Class path";UsedOn TClass;Platform Js])
| Expose -> ":expose",("Includes the class or field in Haxe exports",[HasParam "?Name=Class path";UsedOnEither [TClass;TClassField];Platforms [Js;Lua]])
| Extern -> ":extern",("Marks the field as extern so it is not generated",[UsedOn TClassField])
| FakeEnum -> ":fakeEnum",("Treat enum as collection of values of the specified type",[HasParam "Type name";UsedOn TEnum])
| File -> ":file",("Includes a given binary file into the target Swf and associates it with the class (must extend flash.utils.ByteArray)",[HasParam "File path";UsedOn TClass;Platform Flash])
Expand Down

0 comments on commit 3e0be1a

Please sign in to comment.