Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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);
}
function findNodeAround (node, pos, test, baseVisitor, state) {
return walk.findNodeAround(node, pos, test, baseVisitor || base, state)
}
function findNodeAround (node, pos, test, baseVisitor, state) {
return walk.findNodeAround(node, pos, test, baseVisitor || base, state)
}
function findNodeAround (node, pos, test, baseVisitor, state) {
return walk.findNodeAround(node, pos, test, baseVisitor || base, state)
}