Hierarchy

Constructors

Properties

Methods

blockPreWalkClassDeclaration blockPreWalkExportAllDeclaration blockPreWalkExportDefaultDeclaration blockPreWalkExportNamedDeclaration blockPreWalkExpressionStatement blockPreWalkImportDeclaration blockPreWalkStatement blockPreWalkStatements blockPreWalkVariableDeclaration callHooksForExpression callHooksForExpressionWithFallback callHooksForInfo callHooksForInfoWithFallback callHooksForName callHooksForNameWithFallback defineVariable destructuringAssignmentPropertiesFor detectMode enterArrayPattern enterAssignmentPattern enterDeclaration enterIdentifier enterObjectPattern enterPattern enterPatterns enterRestElement evaluate evaluateExpression evaluatedVariable extractMemberExpressionChain getComments getFreeInfoFromVariable getMemberExpressionInfo getNameForExpression getRenameIdentifier getTagData getVariableInfo inBlockScope inClassScope inFunctionScope inScope isAsiPosition isPure isStatementLevelExpression isVariableDefined parse parseCalculatedString parseCommentOptions parseString preWalkAssignmentExpression preWalkBlockStatement preWalkCatchClause preWalkDoWhileStatement preWalkForInStatement preWalkForOfStatement preWalkForStatement preWalkFunctionDeclaration preWalkIfStatement preWalkLabeledStatement preWalkStatement preWalkStatements preWalkSwitchCases preWalkSwitchStatement preWalkTryStatement preWalkVariableDeclaration preWalkVariableDeclarator preWalkWhileStatement preWalkWithStatement setVariable tagVariable undefineVariable unsetAsiPosition walkArrayExpression walkArrayPattern walkArrowFunctionExpression walkAssignmentExpression walkAssignmentPattern walkAwaitExpression walkBinaryExpression walkBlockStatement walkCallExpression walkCatchClause walkChainExpression walkClass walkClassDeclaration walkClassExpression walkConditionalExpression walkDoWhileStatement walkExportDefaultDeclaration walkExportNamedDeclaration walkExpression walkExpressionStatement walkExpressions walkForInStatement walkForOfStatement walkForStatement walkFunctionDeclaration walkFunctionExpression walkIdentifier walkIfStatement walkImportExpression walkLabeledStatement walkLeftRightExpression walkLogicalExpression walkMemberExpression walkMemberExpressionWithExpressionName walkMetaProperty walkNestedStatement walkNewExpression walkObjectExpression walkObjectPattern walkPattern walkProperty walkRestElement walkReturnStatement walkSequenceExpression walkSpreadElement walkStatement walkStatements walkSwitchCases walkSwitchStatement walkTaggedTemplateExpression walkTemplateLiteral walkTerminatingStatement walkThisExpression walkThrowStatement walkTryStatement walkUnaryExpression walkUpdateExpression walkVariableDeclaration walkWhileStatement walkWithStatement walkYieldExpression

Constructors

Properties

comments: any
currentTagData: any
destructuringAssignmentProperties: WeakMap<Expression, Set<string>>
hooks: Readonly<{
    assign: HookMap<SyncBailHook<[AssignmentExpression], boolean | void, UnsetAdditionalOptions>>;
    assignMemberChain: HookMap<SyncBailHook<[AssignmentExpression, string[]], boolean | void, UnsetAdditionalOptions>>;
    binaryExpression: SyncBailHook<[BinaryExpression], boolean | void, UnsetAdditionalOptions>;
    blockPreStatement: SyncBailHook<[FunctionDeclaration | VariableDeclaration | ClassDeclaration | ExpressionStatement | BlockStatement | StaticBlock | EmptyStatement | DebuggerStatement | WithStatement | ReturnStatement | LabeledStatement | BreakStatement | ContinueStatement | IfStatement | SwitchStatement | ThrowStatement | TryStatement | WhileStatement | DoWhileStatement | ForStatement | ForInStatement | ForOfStatement | ImportDeclaration | ExportNamedDeclaration | ExportDefaultDeclaration | ExportAllDeclaration], boolean | void, UnsetAdditionalOptions>;
    call: HookMap<SyncBailHook<[BaseCallExpression], boolean | void, UnsetAdditionalOptions>>;
    callMemberChain: HookMap<SyncBailHook<[CallExpression, string[], boolean[]], boolean | void, UnsetAdditionalOptions>>;
    callMemberChainOfCallMemberChain: HookMap<SyncBailHook<[Expression, string[], CallExpression, string[]], boolean | void, UnsetAdditionalOptions>>;
    canRename: HookMap<SyncBailHook<[Expression], boolean | void, UnsetAdditionalOptions>>;
    classBodyElement: SyncBailHook<[StaticBlock | MethodDefinition | PropertyDefinition, ClassExpression | ClassDeclaration], boolean | void, UnsetAdditionalOptions>;
    classBodyValue: SyncBailHook<[Expression, MethodDefinition | PropertyDefinition, ClassExpression | ClassDeclaration], boolean | void, UnsetAdditionalOptions>;
    classExtendsExpression: SyncBailHook<[Expression, ClassExpression | ClassDeclaration], boolean | void, UnsetAdditionalOptions>;
    declarator: SyncBailHook<[VariableDeclarator, Statement], boolean | void, UnsetAdditionalOptions>;
    evaluate: HookMap<SyncBailHook<[Expression], undefined | null | BasicEvaluatedExpression, UnsetAdditionalOptions>>;
    evaluateCallExpression: HookMap<SyncBailHook<[CallExpression], undefined | null | BasicEvaluatedExpression, UnsetAdditionalOptions>>;
    evaluateCallExpressionMember: HookMap<SyncBailHook<[CallExpression, undefined | BasicEvaluatedExpression], undefined | null | BasicEvaluatedExpression, UnsetAdditionalOptions>>;
    evaluateDefinedIdentifier: HookMap<SyncBailHook<[Identifier | MemberExpression | ThisExpression], undefined | null | BasicEvaluatedExpression, UnsetAdditionalOptions>>;
    evaluateIdentifier: HookMap<SyncBailHook<[Identifier | MemberExpression | MetaProperty | ThisExpression], undefined | null | BasicEvaluatedExpression, UnsetAdditionalOptions>>;
    evaluateNewExpression: HookMap<SyncBailHook<[NewExpression], undefined | null | BasicEvaluatedExpression, UnsetAdditionalOptions>>;
    evaluateTypeof: HookMap<SyncBailHook<[UnaryExpression], undefined | null | BasicEvaluatedExpression, UnsetAdditionalOptions>>;
    export: SyncBailHook<[ExportNamedDeclaration | ExportAllDeclaration], boolean | void, UnsetAdditionalOptions>;
    exportDeclaration: SyncBailHook<[ExportNamedDeclaration | ExportAllDeclaration, Declaration], boolean | void, UnsetAdditionalOptions>;
    exportExpression: SyncBailHook<[ExportDefaultDeclaration, Declaration], boolean | void, UnsetAdditionalOptions>;
    exportImport: SyncBailHook<[ExportNamedDeclaration | ExportAllDeclaration, ImportSource], boolean | void, UnsetAdditionalOptions>;
    exportImportSpecifier: SyncBailHook<[ExportNamedDeclaration | ExportAllDeclaration, ImportSource, string, string, undefined | number], boolean | void, UnsetAdditionalOptions>;
    exportSpecifier: SyncBailHook<[ExportNamedDeclaration | ExportAllDeclaration, string, string, undefined | number], boolean | void, UnsetAdditionalOptions>;
    expression: HookMap<SyncBailHook<[Expression], boolean | void, UnsetAdditionalOptions>>;
    expressionConditionalOperator: SyncBailHook<[Expression], boolean | void, UnsetAdditionalOptions>;
    expressionLogicalOperator: SyncBailHook<[Expression], boolean | void, UnsetAdditionalOptions>;
    expressionMemberChain: HookMap<SyncBailHook<[Expression, string[], boolean[]], boolean | void, UnsetAdditionalOptions>>;
    finish: SyncBailHook<[Program, Comment[]], boolean | void, UnsetAdditionalOptions>;
    import: SyncBailHook<[ImportDeclaration, ImportSource], boolean | void, UnsetAdditionalOptions>;
    importCall: SyncBailHook<[ImportExpression], boolean | void, UnsetAdditionalOptions>;
    importSpecifier: SyncBailHook<[ImportDeclaration, ImportSource, string, string], boolean | void, UnsetAdditionalOptions>;
    isPure: HookMap<SyncBailHook<[UnaryExpression | ArrayExpression | ArrowFunctionExpression | AssignmentExpression | AwaitExpression | BinaryExpression | SimpleCallExpression | NewExpression | ChainExpression | ClassExpression | ConditionalExpression | FunctionExpression | Identifier | ImportExpression | SimpleLiteral | RegExpLiteral | BigIntLiteral | LogicalExpression | MemberExpression | MetaProperty | ObjectExpression | SequenceExpression | TaggedTemplateExpression | TemplateLiteral | ThisExpression | UpdateExpression | YieldExpression | FunctionDeclaration | VariableDeclaration | ClassDeclaration | PrivateIdentifier, number], boolean | void, UnsetAdditionalOptions>>;
    label: HookMap<SyncBailHook<[LabeledStatement], boolean | void, UnsetAdditionalOptions>>;
    memberChainOfCallMemberChain: HookMap<SyncBailHook<[Expression, string[], CallExpression, string[]], boolean | void, UnsetAdditionalOptions>>;
    new: HookMap<SyncBailHook<[NewExpression], boolean | void, UnsetAdditionalOptions>>;
    optionalChaining: SyncBailHook<[ChainExpression], boolean | void, UnsetAdditionalOptions>;
    pattern: HookMap<SyncBailHook<[Identifier], boolean | void, UnsetAdditionalOptions>>;
    preDeclarator: SyncBailHook<[VariableDeclarator, Statement], boolean | void, UnsetAdditionalOptions>;
    preStatement: SyncBailHook<[FunctionDeclaration | VariableDeclaration | ClassDeclaration | ExpressionStatement | BlockStatement | StaticBlock | EmptyStatement | DebuggerStatement | WithStatement | ReturnStatement | LabeledStatement | BreakStatement | ContinueStatement | IfStatement | SwitchStatement | ThrowStatement | TryStatement | WhileStatement | DoWhileStatement | ForStatement | ForInStatement | ForOfStatement | ImportDeclaration | ExportNamedDeclaration | ExportDefaultDeclaration | ExportAllDeclaration], boolean | void, UnsetAdditionalOptions>;
    program: SyncBailHook<[Program, Comment[]], boolean | void, UnsetAdditionalOptions>;
    rename: HookMap<SyncBailHook<[Expression], boolean | void, UnsetAdditionalOptions>>;
    statement: SyncBailHook<[FunctionDeclaration | VariableDeclaration | ClassDeclaration | ExpressionStatement | BlockStatement | StaticBlock | EmptyStatement | DebuggerStatement | WithStatement | ReturnStatement | LabeledStatement | BreakStatement | ContinueStatement | IfStatement | SwitchStatement | ThrowStatement | TryStatement | WhileStatement | DoWhileStatement | ForStatement | ForInStatement | ForOfStatement | ImportDeclaration | ExportNamedDeclaration | ExportDefaultDeclaration | ExportAllDeclaration], boolean | void, UnsetAdditionalOptions>;
    statementIf: SyncBailHook<[IfStatement], boolean | void, UnsetAdditionalOptions>;
    topLevelAwait: SyncBailHook<[Expression], boolean | void, UnsetAdditionalOptions>;
    typeof: HookMap<SyncBailHook<[Expression], boolean | void, UnsetAdditionalOptions>>;
    unhandledExpressionMemberChain: HookMap<SyncBailHook<[Expression, string[]], boolean | void, UnsetAdditionalOptions>>;
    varDeclaration: HookMap<SyncBailHook<[Declaration], boolean | void, UnsetAdditionalOptions>>;
    varDeclarationConst: HookMap<SyncBailHook<[Declaration], boolean | void, UnsetAdditionalOptions>>;
    varDeclarationLet: HookMap<SyncBailHook<[Declaration], boolean | void, UnsetAdditionalOptions>>;
    varDeclarationVar: HookMap<SyncBailHook<[Declaration], boolean | void, UnsetAdditionalOptions>>;
}>

Type declaration

scope: ScopeInfo
semicolons: any
sourceType: "script" | "module" | "auto"
ALLOWED_MEMBER_TYPES_ALL: 3
ALLOWED_MEMBER_TYPES_CALL_EXPRESSION: 1
ALLOWED_MEMBER_TYPES_EXPRESSION: 2

Methods

  • Parameters

    Returns void

  • Parameters

    • Optional statement: any

    Returns void

  • Parameters

    • Optional statement: any

    Returns void

  • Parameters

    • Optional statement: any

    Returns void

  • Parameters

    Returns void

  • Parameters

    • Optional statement: any

    Returns void

  • Parameters

    Returns void

  • Parameters

    • hookMap: any
    • expr: any
    • Rest ...args: any[]

    Returns any

  • Type Parameters

    • T

    • R

    Parameters

    Returns R

  • Type Parameters

    • T

    • R

    Parameters

    Returns R

  • Type Parameters

    • T

    • R

    Parameters

    Returns R

  • Parameters

    • name: string

    Returns void

  • Parameters

    Returns undefined | Set<string>

  • Parameters

    • Optional statements: any

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    • Optional declaration: any
    • Optional onIdent: any

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    • Optional pattern: any
    • Optional onIdent: any

    Returns void

  • Parameters

    • Optional patterns: any
    • Optional onIdent: any

    Returns void

  • Parameters

    Returns void

  • Parameters

    • range: [number, number]

    Returns any[]

  • Parameters

    • varName: string

    Returns {
        info: string | VariableInfo;
        name: string;
    }

  • Parameters

    Returns {
        getMembers: (() => string[]);
        name: string;
        rootInfo: ExportedVariableInfo;
    }

    • getMembers: (() => string[])
        • (): string[]
        • Returns string[]

    • name: string
    • rootInfo: ExportedVariableInfo
  • Parameters

    • Optional name: any
    • Optional tag: any

    Returns any

  • Parameters

    • Optional fn: any

    Returns void

  • Parameters

    • Optional hasThis: any
    • Optional params: any
    • Optional fn: any

    Returns void

  • Parameters

    • Optional hasThis: any
    • Optional params: any
    • Optional fn: any

    Returns void

  • Parameters

    • params: any
    • fn: (() => void)
        • (): void
        • Returns void

    Returns void

  • Parameters

    • pos: number

    Returns boolean

  • Parameters

    • Optional expr: any

    Returns boolean

  • Parameters

    • name: string

    Returns boolean

  • Parameters

    • Optional expression: any

    Returns any

  • Parameters

    • range: [number, number]

    Returns any

  • Parameters

    Returns string

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    • Optional statement: any

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    • Optional name: any
    • Optional tag: any
    • Optional data: any

    Returns void

  • Parameters

    • name: string

    Returns void

  • Parameters

    • pos: number

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    • Optional expression: any

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    • Optional statement: any

    Returns void

  • Parameters

    Returns void

  • Parameters

    • Optional expression: any

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    • Optional expression: any
    • Optional name: any
    • Optional rootInfo: any
    • Optional members: any
    • Optional onUnhandled: any

    Returns void

  • Parameters

    Returns void

  • Walks a statements that is nested within a parent statement and can potentially be a non-block statement. This enforces the nested statement to never be in ASI position.

    Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    • Optional pattern: any

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

Generated using TypeDoc