onVariable

inline fun <T : Any> onVariable(noinline callback: VariableDeclarationCallback<T>)

Runs callback for every snippet property of compile-time subtype of type T

callback gives access to both runtime value of the property and its KProperty object