Home > vue-metamorph > traverseScriptAST
traverseScriptAST() function
Traverse a script AST, an alias for ast-types' visit.
Declared here rather than re-exported directly so it carries a release tag; api-extractor cannot attach one to a destructured binding inside the vendored module.
Signature:
typescript
traverseScriptAST: <M = {}>(node: import("./vendor/ast-types/types").ASTNode, methods?: import("./vendor/ast-types/main").Visitor<M>) => anyParameters
Parameter | Type | Description |
|---|---|---|
node | import("./vendor/ast-types/types").ASTNode | |
methods | import("./vendor/ast-types/main").Visitor<M> | (Optional) |
Returns:
any
