How to get all methods in a macro including from superclasses

Is there an easy way to get all methods from a TypeNode in a macro, including inherited methods?

TypeNode#methods only returns the methods defined in the class itself.

Related: Add `include_parent` named argument to `TypeNode#methods` · Issue #8586 · crystal-lang/crystal · GitHub

1 Like