Skip to content

Instantly share code, notes, and snippets.

@Morfly
Last active July 16, 2021 05:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Morfly/c07f73a07efb89c8530ddba1bc5212f8 to your computer and use it in GitHub Desktop.
Save Morfly/c07f73a07efb89c8530ddba1bc5212f8 to your computer and use it in GitHub Desktop.
interface KSVisitor<D, R> {
fun visitNode(node: KSNode, data: D): R
fun visitClassDeclaration(classDeclaration: KSClassDeclaration, data: D): R
fun visitPropertyDeclaration(property: KSPropertyDeclaration, data: D): R
// ~20 more functions
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment