Sha256: 5b131a727db18c956611a5e33d08217df96d0f2e0f26d98b804d1ec2407e59ae

Contents?: true

Size: 1.83 KB

Versions: 26

Compression:

Stored size: 1.83 KB

Contents

/** @typedef { import('estree').BaseNode} BaseNode */
/** @typedef { import('./walker.js').WalkerContext} WalkerContext */
/** @typedef {(
 *    this: WalkerContext,
 *    node: BaseNode,
 *    parent: BaseNode,
 *    key: string,
 *    index: number
 * ) => void} SyncHandler */
export class SyncWalker extends WalkerBase {
    /**
     *
     * @param {SyncHandler} enter
     * @param {SyncHandler} 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) => 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) => void);
    /** @type {SyncHandler} */
    enter: SyncHandler;
    /** @type {SyncHandler} */
    leave: SyncHandler;
    /**
     *
     * @param {BaseNode} node
     * @param {BaseNode} parent
     * @param {string} [prop]
     * @param {number} [index]
     * @returns {BaseNode}
     */
    visit(node: import("estree").BaseNode, parent: import("estree").BaseNode, prop?: string, index?: number): 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 SyncHandler = (this: {
    skip: () => void;
    remove: () => void;
    replace: (node: import("estree").BaseNode) => void;
}, node: import("estree").BaseNode, parent: import("estree").BaseNode, key: string, index: number) => 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/sync.d.ts
clapton-0.0.25 lib/clapton/javascripts/node_modules/estree-walker/types/sync.d.ts
clapton-0.0.24 lib/clapton/javascripts/node_modules/estree-walker/types/sync.d.ts
clapton-0.0.23 lib/clapton/javascripts/node_modules/estree-walker/types/sync.d.ts
clapton-0.0.22 lib/clapton/javascripts/node_modules/estree-walker/types/sync.d.ts
clapton-0.0.21 lib/clapton/javascripts/node_modules/estree-walker/types/sync.d.ts
clapton-0.0.20 lib/clapton/javascripts/node_modules/estree-walker/types/sync.d.ts
clapton-0.0.19 lib/clapton/javascripts/node_modules/estree-walker/types/sync.d.ts
clapton-0.0.18 lib/clapton/javascripts/node_modules/estree-walker/types/sync.d.ts
clapton-0.0.17 lib/clapton/javascripts/node_modules/estree-walker/types/sync.d.ts
clapton-0.0.16 lib/clapton/javascripts/node_modules/estree-walker/types/sync.d.ts
clapton-0.0.15 lib/clapton/javascripts/node_modules/estree-walker/types/sync.d.ts
clapton-0.0.14 lib/clapton/javascripts/node_modules/estree-walker/types/sync.d.ts
clapton-0.0.13 lib/clapton/javascripts/node_modules/estree-walker/types/sync.d.ts
clapton-0.0.12 lib/clapton/javascripts/node_modules/estree-walker/types/sync.d.ts
clapton-0.0.11 lib/clapton/javascripts/node_modules/estree-walker/types/sync.d.ts
clapton-0.0.10 lib/clapton/javascripts/node_modules/estree-walker/types/sync.d.ts
clapton-0.0.9 lib/clapton/javascripts/node_modules/estree-walker/types/sync.d.ts
clapton-0.0.8 lib/clapton/javascripts/node_modules/estree-walker/types/sync.d.ts
clapton-0.0.7 lib/clapton/javascripts/node_modules/estree-walker/types/sync.d.ts