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