@@ -238,6 +238,7 @@ declare module "assemblyscript/src/diagnosticMessages.generated" {
238
238
_0_must_be_a_power_of_two = 223 ,
239
239
_0_is_not_a_valid_operator = 224 ,
240
240
Expression_cannot_be_represented_by_a_type = 225 ,
241
+ Expression_resolves_to_unusual_type_0 = 226 ,
241
242
Type_0_is_cyclic_Module_will_include_deferred_garbage_collection = 900 ,
242
243
Importing_the_table_disables_some_indirect_call_optimizations = 901 ,
243
244
Exporting_the_table_disables_some_indirect_call_optimizations = 902 ,
@@ -266,6 +267,7 @@ declare module "assemblyscript/src/diagnosticMessages.generated" {
266
267
An_accessor_cannot_have_type_parameters = 1094 ,
267
268
A_set_accessor_cannot_have_a_return_type_annotation = 1095 ,
268
269
Type_parameter_list_cannot_be_empty = 1098 ,
270
+ Type_argument_list_cannot_be_empty = 1099 ,
269
271
A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement = 1104 ,
270
272
A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement = 1105 ,
271
273
A_return_statement_can_only_be_used_within_a_function_body = 1108 ,
@@ -2235,10 +2237,16 @@ declare module "assemblyscript/src/module" {
2235
2237
setFunctionTable ( initial : Index , maximum : Index , funcs : string [ ] , offset : ExpressionRef ) : void ;
2236
2238
addCustomSection ( name : string , contents : Uint8Array ) : void ;
2237
2239
getOptimizeLevel ( ) : number ;
2238
- setOptimizeLevel ( level ? : number ) : void ;
2240
+ setOptimizeLevel ( level : number ) : void ;
2239
2241
getShrinkLevel ( ) : number ;
2240
- setShrinkLevel ( level ?: number ) : void ;
2241
- setDebugInfo ( on ?: boolean ) : void ;
2242
+ setShrinkLevel ( level : number ) : void ;
2243
+ getDebugInfo ( ) : boolean ;
2244
+ setDebugInfo ( on : boolean ) : void ;
2245
+ getLowMemoryUnused ( ) : boolean ;
2246
+ setLowMemoryUnused ( on : boolean ) : void ;
2247
+ getPassArgument ( key : string ) : string | null ;
2248
+ setPassArgument ( key : string , value : string | null ) : void ;
2249
+ clearPassArguments ( ) : void ;
2242
2250
getFeatures ( ) : FeatureFlags ;
2243
2251
setFeatures ( featureFlags : FeatureFlags ) : void ;
2244
2252
optimize ( func ?: FunctionRef ) : void ;
@@ -2345,10 +2353,11 @@ declare module "assemblyscript/src/module" {
2345
2353
WritesMemory = 128 ,
2346
2354
ImplicitTrap = 256 ,
2347
2355
IsAtomic = 512 ,
2348
- Any = 1023
2356
+ Throws = 1024 ,
2357
+ Any = 2047
2349
2358
}
2350
- export function getSideEffects ( expr : ExpressionRef ) : SideEffects ;
2351
- export function hasSideEffects ( expr : ExpressionRef ) : boolean ;
2359
+ export function getSideEffects ( expr : ExpressionRef , features ?: FeatureFlags ) : SideEffects ;
2360
+ export function hasSideEffects ( expr : ExpressionRef , features ?: FeatureFlags ) : boolean ;
2352
2361
export function readString ( ptr : number ) : string | null ;
2353
2362
/** Result structure of {@link Module#toBinary}. */
2354
2363
export class BinaryModule {
0 commit comments