handle

open fun handle(ctx: T): S?

Searches for a handler matching the most specific superclass of T. The created map should thus contain a handler for every semantically different AST node and can reuse handler code as long as the handled AST nodes have a common ancestor.

Return

most specific handler.

Parameters

ctx

The AST node, whose handler is matched with respect to the AST node class.