Skip to content

Home > vue-metamorph > traverseScriptAST

traverseScriptAST() function ​

Traverses a script AST. This is an alias for the visit function from ast-types.

It's declared here rather than re-exported directly so that it carries a release tag. api-extractor can't attach a release tag 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>) => any

Parameters ​

Parameter

Type

Description

node

import("./vendor/ast-types/types").ASTNode

methods

import("./vendor/ast-types/main").Visitor<M>

(Optional)

Returns:

any