translateList

fun <T> ParseTreeToASTTransformer.translateList(original: Collection<out ParserRuleContext>?): ObservableList<T>

Translate a whole collection into a mutable list, translating each element and ensuring the list has the expected type.

Example:

JExtendsType(translateCasted(pt.typeType()), translateList(pt.annotation()))