Sha256: da428f781d6dc6dfd4f4afd0dd5f25a780897dc8b57e5b30462491b7d08f32c0

Contents?: true

Size: 1.89 KB

Versions: 26

Compression:

Stored size: 1.89 KB

Contents

/** @typedef { import('estree').BaseNode} BaseNode */
/** @typedef { import('./walker').WalkerContext} WalkerContext */
/** @typedef {(
 *    this: WalkerContext,
 *    node: BaseNode,
 *    parent: BaseNode,
 *    key: string,
 *    index: number
 * ) => Promise<void>} AsyncHandler */
export class AsyncWalker extends WalkerBase {
    /**
     *
     * @param {AsyncHandler} enter
     * @param {AsyncHandler} leave
     */
    constructor(enter: (this: {
        skip: () => void;
        remove: () => void;
        replace: (node: import("estree").BaseNode) => void;
    }, node: import("estree").BaseNode, parent: import("estree").BaseNode, key: string, index: number) => Promise<void>, leave: (this: {
        skip: () => void;
        remove: () => void;
        replace: (node: import("estree").BaseNode) => void;
    }, node: import("estree").BaseNode, parent: import("estree").BaseNode, key: string, index: number) => Promise<void>);
    /** @type {AsyncHandler} */
    enter: AsyncHandler;
    /** @type {AsyncHandler} */
    leave: AsyncHandler;
    /**
     *
     * @param {BaseNode} node
     * @param {BaseNode} parent
     * @param {string} [prop]
     * @param {number} [index]
     * @returns {Promise<BaseNode>}
     */
    visit(node: import("estree").BaseNode, parent: import("estree").BaseNode, prop?: string, index?: number): Promise<import("estree").BaseNode>;
    should_skip: any;
    should_remove: any;
    replacement: any;
}
export type BaseNode = import("estree").BaseNode;
export type WalkerContext = {
    skip: () => void;
    remove: () => void;
    replace: (node: import("estree").BaseNode) => void;
};
export type AsyncHandler = (this: {
    skip: () => void;
    remove: () => void;
    replace: (node: import("estree").BaseNode) => void;
}, node: import("estree").BaseNode, parent: import("estree").BaseNode, key: string, index: number) => Promise<void>;
import { WalkerBase } from "./walker.js";

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
clapton-0.0.26 lib/clapton/javascripts/node_modules/estree-walker/types/async.d.ts
clapton-0.0.25 lib/clapton/javascripts/node_modules/estree-walker/types/async.d.ts
clapton-0.0.24 lib/clapton/javascripts/node_modules/estree-walker/types/async.d.ts
clapton-0.0.23 lib/clapton/javascripts/node_modules/estree-walker/types/async.d.ts
clapton-0.0.22 lib/clapton/javascripts/node_modules/estree-walker/types/async.d.ts
clapton-0.0.21 lib/clapton/javascripts/node_modules/estree-walker/types/async.d.ts
clapton-0.0.20 lib/clapton/javascripts/node_modules/estree-walker/types/async.d.ts
clapton-0.0.19 lib/clapton/javascripts/node_modules/estree-walker/types/async.d.ts
clapton-0.0.18 lib/clapton/javascripts/node_modules/estree-walker/types/async.d.ts
clapton-0.0.17 lib/clapton/javascripts/node_modules/estree-walker/types/async.d.ts
clapton-0.0.16 lib/clapton/javascripts/node_modules/estree-walker/types/async.d.ts
clapton-0.0.15 lib/clapton/javascripts/node_modules/estree-walker/types/async.d.ts
clapton-0.0.14 lib/clapton/javascripts/node_modules/estree-walker/types/async.d.ts
clapton-0.0.13 lib/clapton/javascripts/node_modules/estree-walker/types/async.d.ts
clapton-0.0.12 lib/clapton/javascripts/node_modules/estree-walker/types/async.d.ts
clapton-0.0.11 lib/clapton/javascripts/node_modules/estree-walker/types/async.d.ts
clapton-0.0.10 lib/clapton/javascripts/node_modules/estree-walker/types/async.d.ts
clapton-0.0.9 lib/clapton/javascripts/node_modules/estree-walker/types/async.d.ts
clapton-0.0.8 lib/clapton/javascripts/node_modules/estree-walker/types/async.d.ts
clapton-0.0.7 lib/clapton/javascripts/node_modules/estree-walker/types/async.d.ts