Explorer

core.type-resolve

description
Expands a reference type to the definition of the type part, following references to other type parts, using the type environment
type
Fn(type: @core.type-ast, env: @core.type-env) -> @core.type-ast
expression
fn(type$0, env$1) =>
  match $0 {
    #reference(reference$10) =>
      @core.type-resolve-from(type: $0, env: $1, seen: []),
    #code(code$7020) =>
      @core.type-resolve(
        type: #reference<@core.type-ast>({part_hash: "D4CQm6PIfJ6RG5gONuLg_vbk7fzsTwnIcwTJm7Yhst0"}),
        env: $1
      ),
    #apply(_) =>
      @core.type-resolve-from(type: $0, env: $1, seen: []),
    _ =>
      $0
  }
visibility
public
core.type-resolve (project definy, branch auto-release, snapshot oiQgPqhJm-TbM4kexXeRHBaJB_tS7gwBSewII64P-44)
id: 3s2tPb02fCUhvaKoPTLr43VMmQKqWkp4uXNvLmodLhk
content hash: uoYxHDRk3J94m-aAvhOp9HPlzTmIwE91ErFBVX6S1mk