Trying to remove some jank from those macros. They made assumptions about their surrounding scope, which made for short but brittle code.
So, turn them into plain 'ol functions.
ASSIGN_NAME is a bit tougher because it depends on node and get_name_fn being typed by a specific AST node and I couldn't figure out how to do that well.
Trying to remove some jank from those macros. They made assumptions about their surrounding scope, which made for short but brittle code.
So, turn them into plain 'ol functions.
ASSIGN_NAME
is a bit tougher because it depends onnode
andget_name_fn
being typed by a specific AST node and I couldn't figure out how to do that well.