-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Record type #78
Conversation
@@ -7,3 +7,6 @@ | |||
|
|||
%% test case for opaque decl | |||
-opaque int() :: integer(). | |||
|
|||
-record(state, {name :: string(), param :: term()}). | |||
-type record_as_type(A) :: #state{param :: A}. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add the purpose of this test-case as a comment? e.g., %% test case for record type and record field type
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added.
80679f1
to
d498944
Compare
lib/abstract_format.ml
Outdated
Sf.Integer line; | ||
Sf.Atom "record"; | ||
Sf.List ( | ||
Sf.Tuple(3, [Sf.Atom "atom"; Sf.Integer line_field_types; Sf.Atom name]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line_field_types
seems to be line of record name. So could you rename line_field_types
to line_name
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's right, I fixed it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thx!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I'll merge this after CI is passed
Support
See also #54
Example