core.type-expression-arguments-to-type-ast
- description
- Convert the arguments of a call in a type expression to the arguments of `apply`
- type
Fn( items: List<Record{name: String, value: @core.expression}>, parameters: List<Record{parameter_id: Number, parameter_name: String}>, index: Number, accum: List<Record{name: String, type: @core.type-ast}> ) -> Union{#none, #some(List<Record{name: String, type: @core.type-ast}>)}- expression
fn(items$0, parameters$1, index$2, accum$3) => match @core.list-get(list: $0, index: $2) { #none(_) => #some($3), #some(item$4) => match @core.type-expression-to-type-ast(expr: $4.value, parameters: $1) { #none(_) => #none, #some(type$5) => @core.type-expression-arguments-to-type-ast( items: $0, parameters: $1, index: @core.plus(left: $2, right: 1), accum: @core.list-append(list: $3, item: {name: $4.name, type: $5}) ) } }
- visibility
- public
core.type-expression-arguments-to-type-ast (project definy, branch auto-release, snapshot oiQgPqhJm-TbM4kexXeRHBaJB_tS7gwBSewII64P-44) id: BAgIMoZdq9IztNxztXn1dllEFiXpSweYTEiaYOo_ofY content hash: VEYAPGWHq82Txvptn_1HfCW80owr5Z0k4ll9Y7NyNdA