@@ -235,7 +235,7 @@ declare module "assemblyscript/src/diagnosticMessages.generated" {
235
235
Unmanaged_classes_cannot_implement_interfaces = 208 ,
236
236
Invalid_regular_expression_flags = 209 ,
237
237
Expression_is_never_null = 210 ,
238
- Class_0_is_sealed_and_cannot_be_extended = 211 ,
238
+ Class_0_is_final_and_cannot_be_extended = 211 ,
239
239
Decorator_0_is_not_valid_here = 212 ,
240
240
Duplicate_decorator = 213 ,
241
241
Type_0_is_illegal_in_this_context = 214 ,
@@ -255,11 +255,13 @@ declare module "assemblyscript/src/diagnosticMessages.generated" {
255
255
Function_0_is_virtual_and_will_not_be_inlined = 228 ,
256
256
Property_0_only_has_a_setter_and_is_missing_a_getter = 229 ,
257
257
_0_keyword_cannot_be_used_here = 230 ,
258
+ A_class_with_a_constructor_explicitly_returning_something_else_than_this_must_be_final = 231 ,
258
259
Type_0_is_cyclic_Module_will_include_deferred_garbage_collection = 900 ,
259
260
Importing_the_table_disables_some_indirect_call_optimizations = 901 ,
260
261
Exporting_the_table_disables_some_indirect_call_optimizations = 902 ,
261
262
Expression_compiles_to_a_dynamic_check_at_runtime = 903 ,
262
263
Indexed_access_may_involve_bounds_checking = 904 ,
264
+ Explicitly_returning_constructor_drops_this_allocation = 905 ,
263
265
Unterminated_string_literal = 1002 ,
264
266
Identifier_expected = 1003 ,
265
267
_0_expected = 1005 ,
@@ -1160,7 +1162,7 @@ declare module "assemblyscript/src/ast" {
1160
1162
OPERATOR_PREFIX = 4 ,
1161
1163
OPERATOR_POSTFIX = 5 ,
1162
1164
UNMANAGED = 6 ,
1163
- SEALED = 7 ,
1165
+ FINAL = 7 ,
1164
1166
INLINE = 8 ,
1165
1167
EXTERNAL = 9 ,
1166
1168
BUILTIN = 10 ,
@@ -2656,9 +2658,9 @@ declare module "assemblyscript/src/flow" {
2656
2658
BREAKS = 16 ,
2657
2659
/** This flow always continues. */
2658
2660
CONTINUES = 32 ,
2659
- /** This flow always allocates . Constructors only. */
2660
- ALLOCATES = 64 ,
2661
- /** This flow always calls super. Constructors only. */
2661
+ /** This flow always accesses `this` . Constructors only. */
2662
+ ACCESSES_THIS = 64 ,
2663
+ /** This flow always calls ` super` . Constructors only. */
2662
2664
CALLS_SUPER = 128 ,
2663
2665
/** This flow always terminates (returns, throws or continues). */
2664
2666
TERMINATES = 256 ,
@@ -2670,8 +2672,10 @@ declare module "assemblyscript/src/flow" {
2670
2672
CONDITIONALLY_BREAKS = 2048 ,
2671
2673
/** This flow conditionally continues in a child flow. */
2672
2674
CONDITIONALLY_CONTINUES = 4096 ,
2673
- /** This flow conditionally allocates in a child flow. Constructors only. */
2674
- CONDITIONALLY_ALLOCATES = 8192 ,
2675
+ /** This flow conditionally accesses `this` in a child flow. Constructors only. */
2676
+ CONDITIONALLY_ACCESSES_THIS = 8192 ,
2677
+ /** This flow may return a non-this value. Constructors only. */
2678
+ MAY_RETURN_NONTHIS = 16384 ,
2675
2679
/** This is a flow with explicitly disabled bounds checking. */
2676
2680
UNCHECKED_CONTEXT = 32768 ,
2677
2681
/** Any categorical flag. */
@@ -3541,8 +3545,8 @@ declare module "assemblyscript/src/program" {
3541
3545
OPERATOR_POSTFIX = 8 ,
3542
3546
/** Is an unmanaged class. */
3543
3547
UNMANAGED = 16 ,
3544
- /** Is a sealed class. */
3545
- SEALED = 32 ,
3548
+ /** Is a final class. */
3549
+ FINAL = 32 ,
3546
3550
/** Is always inlined. */
3547
3551
INLINE = 64 ,
3548
3552
/** Is using a different external name. */
0 commit comments