@@ -238,6 +238,7 @@ declare module "assemblyscript/src/diagnosticMessages.generated" {
238238 _0_must_be_a_power_of_two = 223 ,
239239 _0_is_not_a_valid_operator = 224 ,
240240 Expression_cannot_be_represented_by_a_type = 225 ,
241+ Expression_resolves_to_unusual_type_0 = 226 ,
241242 Type_0_is_cyclic_Module_will_include_deferred_garbage_collection = 900 ,
242243 Importing_the_table_disables_some_indirect_call_optimizations = 901 ,
243244 Exporting_the_table_disables_some_indirect_call_optimizations = 902 ,
@@ -266,6 +267,7 @@ declare module "assemblyscript/src/diagnosticMessages.generated" {
266267 An_accessor_cannot_have_type_parameters = 1094 ,
267268 A_set_accessor_cannot_have_a_return_type_annotation = 1095 ,
268269 Type_parameter_list_cannot_be_empty = 1098 ,
270+ Type_argument_list_cannot_be_empty = 1099 ,
269271 A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement = 1104 ,
270272 A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement = 1105 ,
271273 A_return_statement_can_only_be_used_within_a_function_body = 1108 ,
@@ -2235,10 +2237,16 @@ declare module "assemblyscript/src/module" {
22352237 setFunctionTable ( initial : Index , maximum : Index , funcs : string [ ] , offset : ExpressionRef ) : void ;
22362238 addCustomSection ( name : string , contents : Uint8Array ) : void ;
22372239 getOptimizeLevel ( ) : number ;
2238- setOptimizeLevel ( level ? : number ) : void ;
2240+ setOptimizeLevel ( level : number ) : void ;
22392241 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 ;
22422250 getFeatures ( ) : FeatureFlags ;
22432251 setFeatures ( featureFlags : FeatureFlags ) : void ;
22442252 optimize ( func ?: FunctionRef ) : void ;
@@ -2345,10 +2353,11 @@ declare module "assemblyscript/src/module" {
23452353 WritesMemory = 128 ,
23462354 ImplicitTrap = 256 ,
23472355 IsAtomic = 512 ,
2348- Any = 1023
2356+ Throws = 1024 ,
2357+ Any = 2047
23492358 }
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 ;
23522361 export function readString ( ptr : number ) : string | null ;
23532362 /** Result structure of {@link Module#toBinary}. */
23542363 export class BinaryModule {
0 commit comments