@@ -235,7 +235,7 @@ declare module "assemblyscript/src/diagnosticMessages.generated" {
235235 Unmanaged_classes_cannot_implement_interfaces = 208 ,
236236 Invalid_regular_expression_flags = 209 ,
237237 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 ,
239239 Decorator_0_is_not_valid_here = 212 ,
240240 Duplicate_decorator = 213 ,
241241 Type_0_is_illegal_in_this_context = 214 ,
@@ -255,11 +255,13 @@ declare module "assemblyscript/src/diagnosticMessages.generated" {
255255 Function_0_is_virtual_and_will_not_be_inlined = 228 ,
256256 Property_0_only_has_a_setter_and_is_missing_a_getter = 229 ,
257257 _0_keyword_cannot_be_used_here = 230 ,
258+ A_class_with_a_constructor_explicitly_returning_something_else_than_this_must_be_final = 231 ,
258259 Type_0_is_cyclic_Module_will_include_deferred_garbage_collection = 900 ,
259260 Importing_the_table_disables_some_indirect_call_optimizations = 901 ,
260261 Exporting_the_table_disables_some_indirect_call_optimizations = 902 ,
261262 Expression_compiles_to_a_dynamic_check_at_runtime = 903 ,
262263 Indexed_access_may_involve_bounds_checking = 904 ,
264+ Explicitly_returning_constructor_drops_this_allocation = 905 ,
263265 Unterminated_string_literal = 1002 ,
264266 Identifier_expected = 1003 ,
265267 _0_expected = 1005 ,
@@ -1160,7 +1162,7 @@ declare module "assemblyscript/src/ast" {
11601162 OPERATOR_PREFIX = 4 ,
11611163 OPERATOR_POSTFIX = 5 ,
11621164 UNMANAGED = 6 ,
1163- SEALED = 7 ,
1165+ FINAL = 7 ,
11641166 INLINE = 8 ,
11651167 EXTERNAL = 9 ,
11661168 BUILTIN = 10 ,
@@ -2656,9 +2658,9 @@ declare module "assemblyscript/src/flow" {
26562658 BREAKS = 16 ,
26572659 /** This flow always continues. */
26582660 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. */
26622664 CALLS_SUPER = 128 ,
26632665 /** This flow always terminates (returns, throws or continues). */
26642666 TERMINATES = 256 ,
@@ -2670,8 +2672,10 @@ declare module "assemblyscript/src/flow" {
26702672 CONDITIONALLY_BREAKS = 2048 ,
26712673 /** This flow conditionally continues in a child flow. */
26722674 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 ,
26752679 /** This is a flow with explicitly disabled bounds checking. */
26762680 UNCHECKED_CONTEXT = 32768 ,
26772681 /** Any categorical flag. */
@@ -3541,8 +3545,8 @@ declare module "assemblyscript/src/program" {
35413545 OPERATOR_POSTFIX = 8 ,
35423546 /** Is an unmanaged class. */
35433547 UNMANAGED = 16 ,
3544- /** Is a sealed class. */
3545- SEALED = 32 ,
3548+ /** Is a final class. */
3549+ FINAL = 32 ,
35463550 /** Is always inlined. */
35473551 INLINE = 64 ,
35483552 /** Is using a different external name. */
0 commit comments