-
Notifications
You must be signed in to change notification settings - Fork 440
Add convenience initializers that conforms to ExpressibleAsArrayExpr
#483
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
Conversation
@swift-ci please test |
f27779f
to
d58ae62
Compare
@swift-ci please test |
Sources/SwiftSyntaxBuilder/ArrayElementListConvenienceInitializers.swift
Outdated
Show resolved
Hide resolved
Sources/SwiftSyntaxBuilder/ArrayElementConvenienceInitializers.swift
Outdated
Show resolved
Hide resolved
a7eb28f
to
97d1a59
Compare
97d1a59
to
f93dd27
Compare
@swift-ci please test |
@ahoppen, there was to much spacing so cleaned a bit too 🧹 |
extension Array: ExpressibleAsArrayElementList where Element == ExpressibleAsArrayElement { | ||
public func createArrayElementList() -> ArrayElementList { | ||
return ArrayElementList(self) | ||
} | ||
} |
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.
Hm, this removes the Array: ExpressibleAsArrayElementList
conformance since ExpressibleAsArrayElementList
now has a superprotocol (see #528 for details why generating Array
conformances for these hierarchies is hard).
But I guess we can just use ArrayElementList
s instead of ArrayExpr
s in those places now (or simply the builder-based initializer for ArrayExpr
).
Part of #479