How to use the acorn-walk.findNodeAround function in acorn-walk

To help you get started, we’ve selected a few acorn-walk examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github endorphinjs / endorphin / packages / template-parser / src / walk.ts View on Github external
export function findNodeAround(node: Ast.Node,
                                  pos: number,
                                  test: string | AstTestFn | null,
                                  baseVisitor = base,
                                  state?: T):
                                  { node: Node, state: T } {
    return acornWalk.findNodeAround(node, pos, test, baseVisitor, state);
}
github peterqliu / threebox / node_modules / acorn-node / walk.js View on Github external
function findNodeAround (node, pos, test, baseVisitor, state) {
  return walk.findNodeAround(node, pos, test, baseVisitor || base, state)
}
github cloudflare / ipfs-ext / node_modules / acorn-node / walk.js View on Github external
function findNodeAround (node, pos, test, baseVisitor, state) {
  return walk.findNodeAround(node, pos, test, baseVisitor || base, state)
}
github publiclab / leaflet-environmental-layers / node_modules / acorn-node / walk.js View on Github external
function findNodeAround (node, pos, test, baseVisitor, state) {
  return walk.findNodeAround(node, pos, test, baseVisitor || base, state)
}