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 new T(...) callable syntax #32

Merged
merged 2 commits into from
Oct 6, 2021
Merged

Support new T(...) callable syntax #32

merged 2 commits into from
Oct 6, 2021

Conversation

thekid
Copy link
Member

@thekid thekid commented Oct 5, 2021

  • New lang.ast.nodes.CallableNewExpression node
  • Parse into these containing NewExpression or NewClassExpression nodes with null args in their type member
  • Parsing test

@thekid thekid changed the title Support new T(...) as a shorthand for fn(...$args) => new T(...$args) Support new T(...) callable syntax Oct 5, 2021
@thekid thekid merged commit ee2b34e into master Oct 6, 2021
@thekid thekid deleted the feature/new-callable branch October 6, 2021 18:50
@thekid
Copy link
Member Author

thekid commented Oct 6, 2021

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.

1 participant