Skip to content
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 attributes/doc-comments on record type fields. #1817

Merged
merged 2 commits into from Feb 13, 2018

Conversation

jordwalke
Copy link
Member

Summary:Fixes #1653

Test Plan:Test cases

Reviewers:

CC:

Summary:Fixes #1653

Test Plan:Test cases

Reviewers:

CC:
@jordwalke
Copy link
Member Author

@zploskey and @kyldvs both found this issue.

@@ -267,20 +266,17 @@ class boxA ('a) (init: 'a) =
* In non-curried sugar, the class_expr still sticks to "the simple thing".
*/
class boxB ('a) (init: 'a) =
[@stillOnTheReturnBecauseItsSimple]
Copy link
Member Author

@jordwalke jordwalke Feb 12, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found the formatting change in this diff to be a slight improvement, especially if we were to allow omitting the brackets:

@attr {
  bracedExpression
}

I imagine it could be pretty easily used to embed query languages for things like graphQL:

@query {
   friends: {
      
   },
   otherField: {

   }
}

@jordwalke
Copy link
Member Author

Please let me know if any of the small formatting changes for attribute attachments didn't result in improvements and I'll be happy to revisit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants