ahinchman1 / TornadoFX-Suite

Automated user-interaction testing for TornadoFX
20 stars 6 forks source link

Some light refactors to use a data structure to hold the parsed results. #16

Closed mattmoore closed 5 years ago

tieskedh commented 6 years ago

little hint: filter { it is kastree.ast.Node.Decl.Structured }.map { it as kastree.ast.Node.Decl.Structured } is the same as filterIsInstance()`

ahinchman1 commented 6 years ago

@tieskedh @mattmoore I had no idea! This is so cool, is this a new Kotlin function?

mattmoore commented 6 years ago

@tieskedh @ahinchman1 Nice! I felt like I was going crazy with the need for a double transform on filters. Looks like this has been around for a little bit. Kotlin 1.2 and 1.3 has it.

ahinchman1 commented 5 years ago

@mattmoore I think you have to rebase this PR