Skip to content

Support Record Type spec #280

@yoshihiro503

Description

@yoshihiro503

The Problem

Ordinary record type expression has no field information in type specs. like this:

-spec foo(#rec{}) -> ok.

Then, the field_types field of TyRecord in absform is almost empty.

(I think that many Erlang programmer does not know the explicit record type field syntax)

links

What should we do

Add a parameter module_info to the Type.of_absform like From_erlang.expr_of_erlang_expr'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions