@@ -2743,18 +2743,6 @@ present, is validated as such:
2743
2743
Additionally some options are required depending on lift/lower operations
2744
2744
performed for a component. These are defined as:
2745
2745
2746
- * ` lower_func(ft) `
2747
- * requires options based on ` lower(param) ` for all parameters in ` ft `
2748
- * requires options based on ` lift(result) ` if ` ft ` has a result
2749
- * if ` len(flatten_types(ft.param_types())) > MAX_FLAT_PARAMS ` , ` memory ` is required
2750
- * if ` len(flatten_types(ft.result_types())) > MAX_FLAT_RESULTS ` , ` realloc ` is required
2751
-
2752
- * ` lift_func(ft) `
2753
- * requires options based on ` lift(param) ` for all parameters in ` ft `
2754
- * requires options based on ` lower(result) ` if ` ft ` has a result
2755
- * if ` len(flatten_types(ft.param_types())) > MAX_FLAT_PARAMS ` , ` realloc ` is required
2756
- * if ` len(flatten_types(ft.result_types())) > MAX_FLAT_RESULTS ` , ` memory ` is required
2757
-
2758
2746
* ` lower(T) `
2759
2747
* requires ` memory ` if ` T ` contains a ` list ` or ` string `
2760
2748
@@ -2775,7 +2763,10 @@ validation is performed:
2775
2763
* ` $callee ` must have type ` flatten_functype($opts, $ft, 'lift') `
2776
2764
* ` $f ` is given type ` $ft `
2777
2765
* if a ` post-return ` is present, it has type ` (func (param flatten_functype({}, $ft, 'lift').results)) `
2778
- * [ ` lift_func($ft) ` above] ( #canonopt-validation ) defines extra required options.
2766
+ * requires options based on [ ` lift(param) ` ] ( #canonopt-validation ) for all parameters in ` ft `
2767
+ * requires options based on [ ` lower(result) ` ] ( #canonopt-validation ) if ` ft ` has a result
2768
+ * if ` len(flatten_types(ft.param_types())) > MAX_FLAT_PARAMS ` , ` realloc ` is required
2769
+ * if ` len(flatten_types(ft.result_types())) > MAX_FLAT_RESULTS ` , ` memory ` is required
2779
2770
2780
2771
When instantiating component instance ` $inst ` :
2781
2772
* Define ` $f ` to be the partially-bound closure ` canon_lift($opts, $inst, $ft, $callee) `
@@ -2937,7 +2928,10 @@ In addition to [general validation of `$opts`](#canonopt-validation) the additio
2937
2928
validation is performed where ` $callee ` has type ` $ft ` :
2938
2929
2939
2930
* ` $f ` is given type ` flatten_functype($opts, $ft, 'lower') `
2940
- * [ ` lower_func($ft) ` above] ( #canonopt-validation ) defines extra required options.
2931
+ * requires options [ based on ` lower(param) ` ] ( #canonopt-validation ) for all parameters in ` ft `
2932
+ * requires options [ based on ` lift(result) ` ] ( #canonopt-validation ) if ` ft ` has a result
2933
+ * if ` len(flatten_types(ft.param_types())) > max_flat_params ` , ` memory ` is required
2934
+ * if ` len(flatten_types(ft.result_types())) > max_flat_results ` , ` realloc ` is required
2941
2935
* if ` async ` is specified, ` memory ` must be present
2942
2936
2943
2937
When instantiating component instance ` $inst ` :
@@ -3254,7 +3248,7 @@ specifies:
3254
3248
3255
3249
* ` $f ` is given type ` flatten_functype($opts, (func (param $t)?), 'lower') `
3256
3250
* ` $opts ` may only contain ` memory ` and ` string-encoding `
3257
- * [ ` lift_func ($f.result)` above] ( #canonopt-validation ) defines required options
3251
+ * [ ` lift ($f.result)` above] ( #canonopt-validation ) defines required options
3258
3252
3259
3253
Calling ` $f ` invokes the following function which uses ` Task.return_ ` to lift
3260
3254
and pass the results to the caller:
0 commit comments