amanda.hinchman-dominguez
02/22/2019, 9:42 PM(file.decls[0] as Node.Decl.Structured).members.forEach {
when (it) {
is Node.Decl.Structured -> println("this is probably a companion object")
is Node.Decl.Property -> convertToClassProperty(it, classProperties, className, path)
is Node.Decl.Func -> breakdownClassMethod(it, classMethods)
}
}
louiscad
02/22/2019, 10:48 PMis
. Smart casts work on it, I used it again just today.