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