mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-17 03:22:15 +00:00
702 B
702 B
youtubei.js / JsHelpers / walkAst
Function: walkAst()
walkAst(
root,visitor):void
Defined in: src/utils/javascript/helpers.ts:62
Performs traversal of an ESTree AST.
Parameters
root
Node
Root AST node to start the traversal from.
visitor
Callbacks invoked when nodes are entered or left.
Returns
void
Remarks
- If it returns
WALK_STOP, the entire traversal is halted. - Why did I not use some AST walker library instead?: They're too slow.