Skip to content

[AST] Add some factory constructors #38504

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

Merged
merged 4 commits into from
Jul 29, 2021

Conversation

hamishknight
Copy link
Contributor

Split off a couple of separate changes from #37435

@hamishknight hamishknight requested a review from CodaFi July 20, 2021 14:07
@swiftlang swiftlang deleted a comment from swift-ci Jul 20, 2021
@swiftlang swiftlang deleted a comment from swift-ci Jul 26, 2021
Add a convenience constructor for an implicit
nullary call. This will become more useful when
the argument parameter starts taking an
ArgumentList.
This provides consistency with other AST nodes,
and will be useful for implementing ArgumentList
construction in the future.
Introduce private constructors for specific kinds
of components, leaving the subscript constructor
to deal with only subscripts.
Explicitly call out the fact we're dealing with
tuples.
@hamishknight
Copy link
Contributor Author

@swift-ci please test

@swiftlang swiftlang deleted a comment from swift-ci Jul 29, 2021
@hamishknight hamishknight merged commit ebdae7c into swiftlang:main Jul 29, 2021
@hamishknight hamishknight deleted the construction-site branch July 29, 2021 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant