ContextAwareVisitor

class mlfarm.core.ContextAwareVisitor[source]

Extends BaseVisitor to keep the path to the current node. It is designed to be extended and/or used for debugging.

get_path()[source]

To be used in an child class.

Returns:Full path to current node.
Return type:str
visit_dict(obj)[source]

Appends “.k” for each k key in the dict before calling the child visit.

visit_list(obj)[source]

Appends “[i]” for each i index in the list before calling the child visit.