Files
swift-mirror/tools/SwiftSyntax/SyntaxCollection.swift
Robert Widmann cd64938e6b Provide an explicit iterator for SyntaxCollection (#13112)
The default IndexingIterator for a custom collection is not suitable for
subclasses that specialize the element type the way libSyntax does.
Overriding it with a more specific iterator, even with something like
covariant overrides, would not work because it the iterator is generic
over its base collection, not its element type.

Provide a custom iterator parameterized by the element type instead.
2017-11-28 15:23:35 -05:00

5.4 KiB