@locker/ast-lib-maker
v0.23.6
Published
Lightning Web Security AST library maker utilities
Downloads
28,065
Readme
@locker/ast-lib-maker
Lightning Web Security AST library maker utilities
Installation
$ yarn add @locker/ast-lib-maker
Usage
Create an AST library instance using createLib(overrides)
. Provide an
optional overrides
object to override specific methods.
const { createLib } = require('@locker/ast-lib-maker');
module.exports = createLib({
getParent(node) {
return node.parent;
},
});