-
Notifications
You must be signed in to change notification settings - Fork 0
/
Metas.hx
1316 lines (1316 loc) · 34.6 KB
/
Metas.hx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
package haxe.macro;
/**
--- DO NOT EDIT ---
This file is auto-generated.
Built from `meta.json` found at https://raw.githubusercontent.com/HaxeFoundation/haxe/development/src-json/meta.json
**/
@:forward @:forwardStatics enum abstract Metas(String) from String to String {
/**
`@:abi`
Function ABI/calling convention.
Platform: cpp
**/
public var Abi = ":abi";
/**
`@:abstract`
Sets the underlying class implementation as `abstract`.
Platform: java | cs
**/
public var Abstract = ":abstract";
/**
`@:access`
Forces private access to package, type or field.
Applies to: Class | ClassField
@param arg Target path
@see https://haxe.org/manual/lf-access-control.html
**/
public var Access = ":access";
/**
`@:accessor`
Used internally by DCE to mark property accessors.
For internal compiler use only.
Applies to: ClassField
**/
public var Accessor = ":accessor";
/**
`@:allow`
Allows private access from package, type or field.
@param arg Target path
@see https://haxe.org/manual/lf-access-control.html
**/
public var Allow = ":allow";
/**
`@:analyzer`
Used to configure the static analyzer.
**/
public var Analyzer = ":analyzer";
/**
`@:annotation`
Annotation (`@interface`) definitions on `--java-lib` imports will be annotated with this metadata. Has no effect on types compiled by Haxe.
Platform: java
Applies to: Class
**/
public var Annotation = ":annotation";
/**
`@:arrayAccess`
Allows array access on an abstract.
Applies to: Abstract | AbstractField
@see https://haxe.org/manual/types-abstract-array-access.html
**/
public var ArrayAccess = ":arrayAccess";
/**
`@:cs.assemblyMeta`
Used to declare a native C# assembly attribute
Platform: cs
Applies to: Class
**/
public var AssemblyMeta = ":cs.assemblyMeta";
/**
`@:cs.assemblyStrict`
Used to declare a native C# assembly attribute; is type checked
Platform: cs
Applies to: Class
**/
public var AssemblyStrict = ":cs.assemblyStrict";
/**
`@:ast`
Internally used to pass the AST source into the typed AST.
For internal compiler use only.
**/
public var Ast = ":ast";
/**
`@:astSource`
Filled by the compiler with the parsed expression of the field.
Applies to: ClassField
**/
public var AstSource = ":astSource";
/**
`@:autoBuild`
Extends `@:build` metadata to all extending and implementing classes.
Applies to: Class
@param arg Build macro call
@see https://haxe.org/manual/macro-auto-build.html
**/
public var AutoBuild = ":autoBuild";
/**
`@:bind`
Override SWF class declaration.
Platform: flash
Applies to: Class
**/
public var Bind = ":bind";
/**
`@:bitmap`
Embeds given bitmap data into the class (must extend `flash.display.BitmapData`).
Platform: flash
Applies to: Class
@param arg Bitmap file path
@see https://haxe.org/manual/target-flash-resources.html
**/
public var Bitmap = ":bitmap";
/**
`@:bridgeProperties`
Creates native property bridges for all Haxe properties in this class.
Platform: cs
Applies to: Class
**/
public var BridgeProperties = ":bridgeProperties";
/**
`@:build`
Builds a class, enum, or abstract from a macro.
Applies to: Class | Enum | Abstract
@param arg Build macro call
@see https://haxe.org/manual/macro-type-building.html
**/
public var Build = ":build";
/**
`@:buildXml`
Specify XML data to be injected into `Build.xml`.
Platform: cpp
**/
public var BuildXml = ":buildXml";
/**
`@:bypassAccessor`
Do not call property accessor method and access the field directly.
Applies to: Expr
@see https://haxe.org/manual/class-field-property.html
**/
public var BypassAccessor = ":bypassAccessor";
/**
`@:callable`
Abstract forwards call to its underlying type.
Applies to: Abstract
**/
public var Callable = ":callable";
/**
`@:class`
Used internally to annotate an enum that will be generated as a class.
For internal compiler use only.
Platform: java | cs
Applies to: Enum
**/
public var Class = ":class";
/**
`@:classCode`
Used to inject platform-native code into a class.
Platform: java | cs
Applies to: Class
**/
public var ClassCode = ":classCode";
/**
`@:commutative`
Declares an abstract operator as commutative.
Applies to: AbstractField
@see https://haxe.org/manual/types-abstract-operator-overloading.html
**/
public var Commutative = ":commutative";
/**
`@:compilerGenerated`
Marks a field as generated by the compiler. Should not be used by the end user.
For internal compiler use only.
**/
public var CompilerGenerated = ":compilerGenerated";
/**
`@:const`
Allows a type parameter to accept expression values.
Applies to: TypeParameter
**/
public var Const = ":const";
/**
`@:coreApi`
Identifies this class as a core API class (forces API check).
Applies to: Class | Enum | Typedef | Abstract
**/
public var CoreApi = ":coreApi";
/**
`@:coreType`
Identifies an abstract as core type so that it requires no implementation.
Applies to: Abstract
@see https://haxe.org/manual/types-abstract-core-type.html
**/
public var CoreType = ":coreType";
/**
`@:cppFileCode`
Code to be injected into generated cpp file.
Platform: cpp
**/
public var CppFileCode = ":cppFileCode";
/**
`@:cppInclude`
File to be included in generated cpp file.
Platform: cpp
**/
public var CppInclude = ":cppInclude";
/**
`@:cppNamespaceCode`
Platform: cpp
**/
public var CppNamespaceCode = ":cppNamespaceCode";
/**
`@:csNative`
Automatically added by `--net-lib` on classes generated from .NET DLL files.
For internal compiler use only.
Platform: cs
Applies to: Class | Enum
**/
public var CsNative = ":csNative";
/**
`@:cs.using`
Add using directives to your module
Platform: cs
Applies to: Class
**/
public var CsUsing = ":cs.using";
/**
`@:dce`
Forces dead code elimination even when `--dce full` is not specified.
Applies to: Class | Enum
@see https://haxe.org/manual/cr-dce.html
**/
public var Dce = ":dce";
/**
`@:debug`
Forces debug information to be generated into the SWF even without `--debug`.
Platform: flash
Applies to: Class | ClassField
**/
public var Debug = ":debug";
/**
`@:decl`
Platform: cpp
**/
public var Decl = ":decl";
/**
`@:defParam`
Default function argument value loaded from the SWF and used for documentation in Genxml.
For internal compiler use only.
Platform: flash
**/
public var DefParam = ":defParam";
/**
`@:delegate`
Automatically added by `--net-lib` on delegates.
Platform: cs
Applies to: Abstract
**/
public var Delegate = ":delegate";
/**
`@:depend`
Platform: cpp
**/
public var Depend = ":depend";
/**
`@:deprecated`
Mark a type or field as deprecated.
**/
public var Deprecated = ":deprecated";
/**
`@:directlyUsed`
Marks types that are directly referenced by non-extern code.
For internal compiler use only.
**/
public var DirectlyUsed = ":directlyUsed";
/**
`@:?display.override`
Internally used to mark override fields for completion
For internal compiler use only.
**/
public var DisplayOverride = ":?display.override";
/**
`@:dynamicObject`
Used internally to identify the Dynamic Object implementation.
For internal compiler use only.
Platform: java | cs
Applies to: Class
**/
public var DynamicObject = ":dynamicObject";
/**
`@:eager`
Forces typedefs to be followed early.
Applies to: Typedef
**/
public var Eager = ":eager";
/**
`@:enum`
Defines finite value sets to abstract definitions.
Applies to: Abstract
@see https://haxe.org/manual/types-abstract-enum.html
**/
public var Enum = ":enum";
/**
`@:enumConstructorParam`
Used internally to annotate GADT type parameters.
For internal compiler use only.
Applies to: Class
**/
public var EnumConstructorParam = ":enumConstructorParam";
/**
`@:event`
Automatically added by `--net-lib` on events. Has no effect on types compiled by Haxe.
Platform: cs
Applies to: ClassField
**/
public var Event = ":event";
/**
`@:exhaustive`
Used internally to mark that a switch is exhaustive.
For internal compiler use only.
@see https://haxe.org/manual/lf-pattern-matching-exhaustiveness.html
**/
public var Exhaustive = ":exhaustive";
/**
`@:expose`
Includes the class or field in Haxe exports (default name is the classpath).
Platform: js | lua
@param arg name
@see https://haxe.org/manual/target-javascript-expose.html
**/
public var Expose = ":expose";
/**
`@:extern`
Marks the field as extern so it is not generated.
Applies to: ClassField
**/
public var Extern = ":extern";
/**
`@:file`
Includes a given binary file into the target SWF and associates it with the class (must extend `flash.utils.ByteArray`).
Platform: flash
Applies to: Class
@param arg File path
@see https://haxe.org/manual/target-flash-resources.html
**/
public var File = ":file";
/**
`@:fileXml`
Include a given XML attribute snippet in the `Build.xml` entry for the file.
Platform: cpp
Applies to: Class
**/
public var FileXml = ":fileXml";
/**
`@:final`
Prevents a class or interface from being extended or a method from being overridden. Deprecated by the keyword `final`.
Applies to: Class | ClassField
@see https://haxe.org/manual/class-field-final.html
**/
public var Final = ":final";
/**
`@:fixed`
Declares an anonymous object to have fixed fields.
this used to have UsedOn TObjectDecl(_)
**/
public var Fixed = ":fixed";
/**
`@:flash.property`
Platform: flash
Applies to: ClassField
**/
public var FlashProperty = ":flash.property";
/**
`@:flatEnum`
Internally used to mark an enum as being flat, i.e. having no function constructors.
For internal compiler use only.
Applies to: Enum
**/
public var FlatEnum = ":flatEnum";
/**
`@:font`
Embeds the given TrueType font into the class (must extend `flash.text.Font`).
Applies to: Class
@param arg0 TTF path
@param arg1 Range String
@see https://haxe.org/manual/target-flash-resources.html
**/
public var Font = ":font";
/**
`@:forLoopVariable`
Internally used to mark for-loop variables.
For internal compiler use only.
**/
public var ForLoopVariable = ":forLoopVariable";
/**
`@:forward`
Forwards field access to underlying type.
Applies to: Abstract
@param arg List of field names
@see https://haxe.org/manual/types-abstract-forward.html
**/
public var Forward = ":forward";
/**
`@:forward.new`
Forwards constructor call to underlying type.
Applies to: Abstract
**/
public var ForwardNew = ":forward.new";
/**
`@:forwardStatics`
Forwards static field access to underlying type.
Applies to: Abstract
@param arg List of field names
@see https://haxe.org/manual/types-abstract-forward.html
**/
public var ForwardStatics = ":forwardStatics";
/**
`@:forward.variance`
Forwards variance unification to underlying type.
Applies to: Abstract
**/
public var ForwardVariance = ":forward.variance";
/**
`@:from`
Specifies that the field of the abstract is a cast operation from the type identified in the function.
Applies to: AbstractField
@see https://haxe.org/manual/types-abstract-implicit-casts.html
**/
public var From = ":from";
/**
`@:functionCode`
Used to inject platform-native code into a function.
Platform: cpp | java | cs
**/
public var FunctionCode = ":functionCode";
/**
`@:functionTailCode`
Platform: cpp
**/
public var FunctionTailCode = ":functionTailCode";
/**
`@:generic`
Marks a class or class field as generic so each type parameter combination generates its own type/field.
@see https://haxe.org/manual/type-system-generic.html
**/
public var Generic = ":generic";
/**
`@:genericBuild`
Builds instances of a type using the specified macro.
Applies to: Class
**/
public var GenericBuild = ":genericBuild";
/**
`@:genericInstance`
Internally used to mark instances of `@:generic` methods.
For internal compiler use only.
Applies to: ClassField
**/
public var GenericInstance = ":genericInstance";
/**
`@:genericClassPerMethod`
Makes compiler generate separate class per generic static method specialization
Applies to: Class
**/
public var GenericClassPerMethod = ":genericClassPerMethod";
/**
`@:getter`
Generates a native getter function on the given field.
Platform: flash
Applies to: ClassField
@param arg Class field name
**/
public var Getter = ":getter";
/**
`@:hack`
Allows extending classes marked as `@:final`. Not guaranteed to work on all targets.
Applies to: Class
**/
public var Hack = ":hack";
/**
`@:has_untyped`
Used by the typer to mark fields that have untyped expressions.
For internal compiler use only.
**/
public var HasUntyped = ":has_untyped";
/**
`@:haxeGeneric`
Used internally to annotate non-native generic classes.
For internal compiler use only.
Platform: cs
Applies to: Class | Enum
**/
public var HaxeGeneric = ":haxeGeneric";
/**
`@:headerClassCode`
Code to be injected into the generated class, in the header.
Platform: cpp
**/
public var HeaderClassCode = ":headerClassCode";
/**
`@:headerCode`
Code to be injected into the generated header file.
Platform: cpp
**/
public var HeaderCode = ":headerCode";
/**
`@:headerInclude`
File to be included in generated header file.
Platform: cpp
**/
public var HeaderInclude = ":headerInclude";
/**
`@:headerNamespaceCode`
Platform: cpp
**/
public var HeaderNamespaceCode = ":headerNamespaceCode";
/**
`@:hlNative`
Specifies `hdll` name and function prefix for native functions.
Platform: hl
Applies to: Class | ClassField
**/
public var HlNative = ":hlNative";
/**
`@:hx.completion`
Internally used for completion
For internal compiler use only.
**/
public var HxCompletion = ":hx.completion";
/**
`@:hxGen`
Annotates that an extern class was generated by Haxe.
Platform: java | cs
Applies to: Class | Enum
**/
public var HxGen = ":hxGen";
/**
`@:ifFeature`
Causes a field to be kept by DCE if the given feature is part of the compilation.
Applies to: ClassField
@param arg Feature name
@see https://haxe.org/manual/cr-dce.html
**/
public var IfFeature = ":ifFeature";
/**
`@:pythonImport`
Generates python import statement for extern classes.
Platform: python
Applies to: Class
**/
public var PythonImport = ":pythonImport";
/**
`@:implicitCast`
Generated automatically on the AST when an implicit abstract cast happens.
For internal compiler use only.
Applies to: Expr
**/
public var ImplicitCast = ":implicitCast";
/**
`@:implicitReturn`
Generated automatically on the AST when an implicit return is inserted for arrow function.
For internal compiler use only.
Applies to: Expr
**/
public var ImplicitReturn = ":implicitReturn";
/**
`@:include`
Platform: cpp
**/
public var Include = ":include";
/**
`@:inheritDoc`
Append documentation from a parent field or class (if used without an argument) or from a specified class or field (if used like @:inheritDoc(pack.Some.field)).
Applies to: Class | Class | Enum | Abstract | AnyField
**/
public var InheritDoc = ":inheritDoc";
/**
`@:initPackage`
Some weird thing for Genjs we want to remove someday.
For internal compiler use only.
Platform: js
**/
public var InitPackage = ":initPackage";
/**
`@:inline`
Inserted by the parser in case of `inline expr` and `inline function`.
Applies to: Expr
**/
public var Inline = ":inline";
/**
`@:inlineConstructorArgument`
Internally used to mark expressions that were passed as arguments of an inlined constructor.
For internal compiler use only.
**/
public var InlineConstructorArgument = ":inlineConstructorArgument";
/**
`@:inlineObject`
Internally used by inline constructors filter to mark potentially inlineable objects.
For internal compiler use only.
**/
public var InlineObject = ":inlineObject";
/**
`@:internal`
Generates the annotated field/class with 'internal' access.
Platform: java | cs
Applies to: Class | Enum | ClassField
**/
public var Internal = ":internal";
/**
`@:isVar`
Forces a physical field to be generated for properties that otherwise would not require one.
Applies to: ClassField
@see https://haxe.org/manual/class-field-property-rules.html
**/
public var IsVar = ":isVar";
/**
`@:javaCanonical`
Used by the Java target to annotate the canonical path of the type.
Platform: java
Applies to: Class | Enum
@param arg0 Output type package
@param arg1 Output type name
**/
public var JavaCanonical = ":javaCanonical";
/**
`@:java.default`
Equivalent to the default modifier of the Java language
Platform: java
Applies to: ClassField
@param arg null
**/
public var JavaDefault = ":java.default";
/**
`@:javaNative`
Automatically added by `--java-lib` on classes generated from JAR/class files.
For internal compiler use only.
Platform: java
Applies to: Class | Enum
**/
public var JavaNative = ":javaNative";
/**
`@:jvm.synthetic`
Mark generated class, field or method as synthetic
Platform: java
Applies to: Class | Enum | AnyField
**/
public var JvmSynthetic = ":jvm.synthetic";
/**
`@:jsRequire`
Generate JavaScript module require expression for given extern.
Platform: js
Applies to: Class
@see https://haxe.org/manual/target-javascript-require.html
**/
public var JsRequire = ":jsRequire";
/**
`@:luaRequire`
Generate Lua module require expression for given extern.
Platform: lua
Applies to: Class
**/
public var LuaRequire = ":luaRequire";
/**
`@:luaDotMethod`
Indicates that the given extern type instance should have dot-style invocation for methods instead of colon.
Platform: lua
**/
public var LuaDotMethod = ":luaDotMethod";
/**
`@:keep`
Causes a field or type to be kept by DCE.
@see https://haxe.org/manual/cr-dce.html
**/
public var Keep = ":keep";
/**
`@:keepInit`
Causes a class to be kept by DCE even if all its field are removed.
Applies to: Class
@see https://haxe.org/manual/cr-dce.html
**/
public var KeepInit = ":keepInit";
/**
`@:keepSub`
Extends `@:keep` metadata to all implementing and extending classes.
Applies to: Class
@see https://haxe.org/manual/cr-dce.html
**/
public var KeepSub = ":keepSub";
/**
`@:libType`
Used by `--net-lib` and `--java-lib` to mark a class that should not be checked (overrides, interfaces, etc) by the type loader.
For internal compiler use only.
Platform: java | cs
Applies to: Class
**/
public var LibType = ":libType";
/**
`@:loopLabel`
Mark loop and break expressions with a label to support breaking from within switch.
For internal compiler use only.
**/
public var LoopLabel = ":loopLabel";
/**
`@:markup`
Used as a result of inline XML parsing.
@see https://haxe.org/manual/lf-markup.html
**/
public var Markup = ":markup";
/**
`@:meta`
Internally used to mark a class field as being the metadata field.
For internal compiler use only.
**/
public var Meta = ":meta";
/**
`@:macro`
@deprecated
**/
public var Macro = ":macro";
/**
`@:maybeUsed`
Internally used by DCE to mark fields that might be kept.
For internal compiler use only.
**/
public var MaybeUsed = ":maybeUsed";
/**
`@:mergeBlock`
Merge the annotated block into the current scope.
Applies to: Expr
**/
public var MergeBlock = ":mergeBlock";
/**
`@:multiReturn`
Annotates an extern class as the result of multi-return function.
Platform: lua
Applies to: Class
@see https://haxe.org/manual/target-lua-multireturns.html
**/
public var MultiReturn = ":multiReturn";
/**
`@:multiType`
Specifies that an abstract chooses its this-type from its `@:to` functions.
Applies to: Abstract
@param arg Relevant type parameters
**/
public var MultiType = ":multiType";
/**
`@:native`
Rewrites the path of a type or class field during generation.
Applies to: Class | Enum | Abstract | ClassField
@param arg Output path
@see https://haxe.org/manual/lf-externs.html
**/
public var Native = ":native";
/**
`@:java.native`
Annotates that a function has implementation in native code through JNI.
Platform: java
Applies to: ClassField
**/
public var NativeJni = ":java.native";
/**
`@:nativeChildren`
Annotates that all children from a type should be treated as if it were an extern definition - platform native.
Platform: java | cs
Applies to: Class
**/
public var NativeChildren = ":nativeChildren";
/**
`@:nativeGen`
Annotates that a type should be treated as if it were an extern definition - platform native.
Platform: java | cs | python
Applies to: Class | Enum
**/
public var NativeGen = ":nativeGen";
/**
`@:nativeGeneric`
Used internally to annotate native generic classes.
For internal compiler use only.
Platform: cs
Applies to: Class | Enum
**/
public var NativeGeneric = ":nativeGeneric";
/**
`@:nativeProperty`
Use native properties which will execute even with dynamic usage.
Platform: cpp
**/
public var NativeProperty = ":nativeProperty";
/**
`@:nativeStaticExtension`
Converts static function syntax into member call.
Platform: cpp
**/
public var NativeStaticExtension = ":nativeStaticExtension";
/**
`@:noCompletion`
Prevents the compiler from suggesting completion on this field or type.
Applies to: ClassField
@see https://haxe.org/manual/cr-completion.html
**/
public var NoCompletion = ":noCompletion";
/**
`@:noClosure`
Prevents a method or all methods in a class from being used as a value.
Applies to: Class | ClassField
**/
public var NoClosure = ":noClosure";
/**
`@:noDebug`
Does not generate debug information even if `--debug` is set.
Platform: flash | cpp
Applies to: Class | ClassField
**/
public var NoDebug = ":noDebug";
/**
`@:noDoc`
Prevents a type or field from being included in documentation generation.
**/
public var NoDoc = ":noDoc";
/**
`@:noExpr`
Internally used to mark abstract fields which have no expression by design.
For internal compiler use only.
**/
public var NoExpr = ":noExpr";
/**
`@:noImportGlobal`
Prevents a static field from being imported with `import Class.*`.
Applies to: AnyField
**/
public var NoImportGlobal = ":noImportGlobal";
/**
`@:nonVirtual`
Declares function to be non-virtual in cpp.
Platform: cpp
**/
public var NonVirtual = ":nonVirtual";
/**
`@:noPackageRestrict`
Allows a module to be accessed across all targets if found on its first type.
For internal compiler use only.
**/
public var NoPackageRestrict = ":noPackageRestrict";
/**
`@:noPrivateAccess`
Disallow private access to anything for the annotated expression.
Applies to: Expr
**/
public var NoPrivateAccess = ":noPrivateAccess";
/**
`@:noStack`
Platform: cpp
**/
public var NoStack = ":noStack";
/**
`@:notNull`
Declares an abstract type as not accepting null values.
Applies to: Abstract
@see https://haxe.org/manual/types-nullability.html
**/
public var NotNull = ":notNull";
/**
`@:noUsing`
Prevents a field from being used with static extension.
Applies to: ClassField
@see https://haxe.org/manual/lf-static-extension.html
**/
public var NoUsing = ":noUsing";
/**
`@:ns`
Internally used by the SWF generator to handle namespaces.
For internal compiler use only.
Platform: flash
**/
public var Ns = ":ns";
/**
`@:nullSafety`
Enables null safety for classes or fields. Disables null safety for classes, fields or expressions if provided with `Off` as an argument.
Applies to: Class | ClassField | Expr
@param arg Off | Loose | Strict | StrictThreaded
@see https://haxe.org/manual/cr-null-safety.html
**/
public var NullSafety = ":nullSafety";
/**
`@:objc`
Declares a class or interface that is used to interoperate with Objective-C code.
Platform: cpp
Applies to: Class
**/
public var Objc = ":objc";
/**
`@:objcProtocol`
Associates an interface with, or describes a function in, a native Objective-C protocol.
Platform: cpp
**/
public var ObjcProtocol = ":objcProtocol";
/**
`@:op`
Declares an abstract field as being an operator overload.
Applies to: AbstractField
@param arg The operation
@see https://haxe.org/manual/types-abstract-operator-overloading.html
**/
public var Op = ":op";
/**
`@:optional`
Marks the field of a structure as optional.
Applies to: ClassField
@see https://haxe.org/manual/types-nullability-optional-arguments.html
**/
public var Optional = ":optional";
/**
`@:overload`
Allows the field to be called with different argument types.
Applies to: ClassField
@param arg Function specification (no expression)
@see https://haxe.org/manual/target-javascript-external-libraries.html
**/
public var Overload = ":overload";
/**
`@:persistent`
Keeps the value of static variables in macro context across compilations.
Platform: eval
Applies to: AnyField
**/
public var Persistent = ":persistent";
/**
`@:php.attribute`
Adds a PHP attribute to the annotated symbol. Meta argument expects a string constant. E.g. `@:php.attribute('\\my\\Attr(123)')` will be generated as `#[\my\Attr(123)]` in the compiled php file.
Platform: php
@see https://www.php.net/manual/en/language.attributes.overview.php
**/
public var PhpAttribute = ":php.attribute";
/**
`@:phpGlobal`
Indicates that static fields of an extern class actually are located in the global PHP namespace.
Platform: php
Applies to: Class
**/
public var PhpGlobal = ":phpGlobal";
/**
`@:phpClassConst`
Indicates that a static var of an extern class is a PHP class constant.
Platform: php
Applies to: ClassField
**/
public var PhpClassConst = ":phpClassConst";
/**
`@:phpMagic`
Treat annotated field as special PHP magic field - this meta makes compiler avoid renaming such fields on generating PHP code.
Platform: php
Applies to: ClassField
**/
public var PhpMagic = ":phpMagic";
/**
`@:phpNoConstructor`
Special meta for extern classes which do not have native constructor in PHP, but need a constructor in Haxe extern.
Platform: php
Applies to: Class
**/
public var PhpNoConstructor = ":phpNoConstructor";
/**
`@:pos`
Sets the position of a reified expression.
Applies to: Expr
@param arg Position
@see https://haxe.org/manual/macro-reification.html
**/
public var Pos = ":pos";
/**
`@:public`
Marks a class field as being public.
For internal compiler use only.
Applies to: ClassField
**/
public var Public = ":public";
/**
`@:publicFields`
Forces all class fields of inheriting classes to be public.
Applies to: Class
**/
public var PublicFields = ":publicFields";
/**
`@:private`
Marks a class field as being private.
Platform: cs
Applies to: ClassField
**/
public var Private = ":private";
/**
`@:privateAccess`
Allow private access to anything for the annotated expression.
Applies to: Expr
**/
public var PrivateAccess = ":privateAccess";
/**
`@:protected`
Marks a class field as being protected.
Platform: cs | java | flash
Applies to: ClassField
**/
public var Protected = ":protected";