the visited node.
the parent node.
the property on the parent node that contains the visited node. It can be the node itself or an array of nodes.
A parse sub result that might not be a valid type expression on its own.
A parse result that corresponds to a valid type expression.
This function parses the given expression in the given mode and produces a RootResult.
A function to traverse an AST. It traverses it depth first.
the node to start traversing at.
node visitor function that will be called on entering the node. This corresponds to preorder traversing.
node visitor function that will be called on leaving the node. This corresponds to postorder traversing.
This function tries to parse the given expression in multiple modes and returns the first successful
RootResult. By default it tries 'typescript'
, 'closure'
and 'jsdoc'
in this order. If
no mode was successful it throws the error that was produced by the last parsing attempt.
Generated using TypeDoc
A node visitor function.