A signal that the processing is complete and no more calls to process will be made.
A signal that the processing is complete and no more calls to process will be made. This also gives the Pass subclass a chance to do post-processing as some computations can only be done after collecting data from the entire AST
Value parameters
root
The root of the parsed model just as a convenience for post-processing
Typically returns the same Root objects with changes in subsequent levels, but it entirely possibly to completely reorganize the hierarchy, including its root node.
The method usually called for each definition that is to be processed but our implementation of traverse instead calls collect so a value can be returned.
The method usually called for each definition that is to be processed but our implementation of traverse instead calls collect so a value can be returned. This implementation is final because it is meant to be ignored.
Value parameters
definition
The definition to be processed
parents
The stack of definitions that are the parents of com.ossuminc.riddl.language.AST.Definition. This stack goes from immediate parent towards the root. The root is deepest in the stack.