- {ParserClass}
new JavascriptParser(sourceType?, options?): voidsourceType<"module">|<"auto">|<"script">options<object>- Returns:
<JavascriptParser>
Creates an instance of JavascriptParser.
<CommentJavascriptParser><Record>
<
<string>
,
<any>
> |
<TopLevelSymbol>
|
<HarmonySettings>
|
<ImportSettings>
|
<CommonJsImportSettings>
|
<CompatibilitySettings>
|
<HarmonySpecifierGuards><WeakMap><Readonly>
<
<object>
><object><ClassDeclaration>
|
<MaybeNamedClassDeclaration>
|
<ClassExpression>
|
<Identifier>
|
<SimpleLiteral>
|
<RegExpLiteral>
|
<BigIntLiteral>
|
<ArrayExpression>
|
<ArrowFunctionExpression>
|
<AssignmentExpression>
|
<AwaitExpression>
|
<BinaryExpression>
|
<SimpleCallExpression>
|
<NewExpression>
|
<ChainExpression>
|
<ConditionalExpression>
|
<FunctionExpression>
|
<ImportExpression>
|
<LogicalExpression>
|
<MemberExpression>
|
<MetaProperty>
|
<ObjectExpression>
|
<SequenceExpression>
|
<TaggedTemplateExpression>
|
<TemplateLiteral>
|
<ThisExpression>
|
<UnaryExpression>
|
<UpdateExpression>
|
<YieldExpression>
|
<FunctionDeclaration>
|
<MaybeNamedFunctionDeclaration>
|
<ImportDeclaration>
|
<ExportNamedDeclaration>
|
<ExportDefaultDeclaration>
|
<ExportAllDeclaration>
|
<ExpressionStatement>
|
<BlockStatement>
|
<StaticBlock>
|
<EmptyStatement>
|
<DebuggerStatement>
|
<WithStatement>
|
<ReturnStatement>
|
<LabeledStatement>
|
<BreakStatement>
|
<ContinueStatement>
|
<IfStatement>
|
<SwitchStatement>
|
<ThrowStatement>
|
<TryStatement>
|
<WhileStatement>
|
<DoWhileStatement>
|
<ForStatement>
|
<ForInStatement>
|
<ForOfStatement>
|
<VariableDeclaration><"module">
|
<"auto">
|
<"script"><JavascriptParserState><object><Readonly>
<
<object>
>blockPreWalkClassDeclaration(statement): voidstatement<ClassDeclaration>|<MaybeNamedClassDeclaration>- Returns: {void}
Block pre walk class declaration.
blockPreWalkExportDefaultDeclaration(statement): voidstatement{ExportDefaultDeclaration}- Returns: {void}
Block pre walk export default declaration.
blockPreWalkExportNamedDeclaration(statement): voidstatement{ExportNamedDeclaration}- Returns: {void}
Block pre walk export named declaration.
blockPreWalkExpressionStatement(statement): voidstatement{ExpressionStatement}- Returns: {void}
Block pre walk expression statement.
blockPreWalkStatement(statement): voidstatement<ClassDeclaration>|<MaybeNamedClassDeclaration>|<FunctionDeclaration>|<MaybeNamedFunctionDeclaration>|<ImportDeclaration>|<ExportNamedDeclaration>|<ExportDefaultDeclaration>|<ExportAllDeclaration>|<ExpressionStatement>|<BlockStatement>|<StaticBlock>|<EmptyStatement>|<DebuggerStatement>|<WithStatement>|<ReturnStatement>|<LabeledStatement>|<BreakStatement>|<ContinueStatement>|<IfStatement>|<SwitchStatement>|<ThrowStatement>|<TryStatement>|<WhileStatement>|<DoWhileStatement>|<ForStatement>|<ForInStatement>|<ForOfStatement>|<VariableDeclaration>- Returns: {void}
Block pre walk statement.
blockPreWalkStatements(statements): voidstatements<ClassDeclaration>|<FunctionDeclaration>|<ImportDeclaration>|<ExportNamedDeclaration>|<ExportDefaultDeclaration>|<ExportAllDeclaration>|<ExpressionStatement>|<BlockStatement>|<StaticBlock>|<EmptyStatement>|<DebuggerStatement>|<WithStatement>|<ReturnStatement>|<LabeledStatement>|<BreakStatement>|<ContinueStatement>|<IfStatement>|<SwitchStatement>|<ThrowStatement>|<TryStatement>|<WhileStatement>|<DoWhileStatement>|<ForStatement>|<ForInStatement>|<ForOfStatement>|<VariableDeclaration[]>- Returns: {void}
Block pre walking iterates the scope for block variable declarations
blockPreWalkVariableDeclaration(statement): voidstatement{VariableDeclaration}- Returns: {void}
Block pre walk variable declaration.
callHooksForExpression(hookMap, expr, ...args?): voidhookMap<HookMap><<SyncBailHook><<T>,<R>,<UnsetAdditionalOptions>>>expr<ClassExpression>|<Identifier>|<SimpleLiteral>|<RegExpLiteral>|<BigIntLiteral>|<ArrayExpression>|<ArrowFunctionExpression>|<AssignmentExpression>|<AwaitExpression>|<BinaryExpression>|<SimpleCallExpression>|<NewExpression>|<ChainExpression>|<ConditionalExpression>|<FunctionExpression>|<ImportExpression>|<LogicalExpression>|<MemberExpression>|<MetaProperty>|<ObjectExpression>|<SequenceExpression>|<TaggedTemplateExpression>|<TemplateLiteral>|<ThisExpression>|<UnaryExpression>|<UpdateExpression>|<YieldExpression>|<Super>args<AsArray><<T>>- Returns:
<R>|<undefined>
Call hooks for expression.
callHooksForExpressionWithFallback(hookMap, expr, fallback, defined, ...args?): voidhookMap<HookMap><<SyncBailHook><<T>,<R>,<UnsetAdditionalOptions>>>expr<ClassExpression>|<Identifier>|<SimpleLiteral>|<RegExpLiteral>|<BigIntLiteral>|<ArrayExpression>|<ArrowFunctionExpression>|<AssignmentExpression>|<AwaitExpression>|<BinaryExpression>|<SimpleCallExpression>|<NewExpression>|<ChainExpression>|<ConditionalExpression>|<FunctionExpression>|<ImportExpression>|<LogicalExpression>|<MemberExpression>|<MetaProperty>|<ObjectExpression>|<SequenceExpression>|<TaggedTemplateExpression>|<TemplateLiteral>|<ThisExpression>|<UnaryExpression>|<UpdateExpression>|<YieldExpression>|<Super>fallback<object>|<undefined>defined<object>|<undefined>args<AsArray><<T>>- Returns:
<R>|<undefined>
Call hooks for expression with fallback.
callHooksForInfo(hookMap, info, ...args?): voidhookMap<HookMap><<SyncBailHook><<T>,<R>,<UnsetAdditionalOptions>>>info{ExportedVariableInfo}args<AsArray><<T>>- Returns:
<R>|<undefined>
Call hooks for info.
callHooksForInfoWithFallback(hookMap, info, fallback, defined, ...args?): voidhookMap<HookMap><<SyncBailHook><<T>,<R>,<UnsetAdditionalOptions>>>info{ExportedVariableInfo}fallback<object>|<undefined>defined<object>|<undefined>args<AsArray><<T>>- Returns:
<R>|<undefined>
Call hooks for info with fallback.
callHooksForName(hookMap, name, ...args?): voidhookMap<HookMap><<SyncBailHook><<T>,<R>,<UnsetAdditionalOptions>>>name<string>args<AsArray><<T>>- Returns:
<R>|<undefined>
Call hooks for name.
callHooksForNameWithFallback(hookMap, name, fallback, defined, ...args?): voidhookMap<HookMap><<SyncBailHook><<T>,<R>,<UnsetAdditionalOptions>>>name<string>fallback<object>|<undefined>defined<object>|<undefined>args<AsArray><<T>>- Returns:
<R>|<undefined>
Call hooks for name with fallback.
defineVariable(name): void<string>Processes the provided name.
destructuringAssignmentPropertiesFor(node): Set<Expression><Set>Destructuring assignment properties for.
detectMode(statements): voidstatements<ClassDeclaration>|<FunctionDeclaration>|<ImportDeclaration>|<ExportNamedDeclaration>|<ExportDefaultDeclaration>|<ExportAllDeclaration>|<ExpressionStatement>|<BlockStatement>|<StaticBlock>|<EmptyStatement>|<DebuggerStatement>|<WithStatement>|<ReturnStatement>|<LabeledStatement>|<BreakStatement>|<ContinueStatement>|<IfStatement>|<SwitchStatement>|<ThrowStatement>|<TryStatement>|<WhileStatement>|<DoWhileStatement>|<ForStatement>|<ForInStatement>|<ForOfStatement>|<VariableDeclaration>|<Directive[]>- Returns: {void}
Processes the provided statement.
enterArrayPattern(pattern, onIdent): voidpattern{ArrayPattern}onIdent<object>- Returns: {void}
Enter array pattern.
enterAssignmentPattern(pattern, onIdent): voidpattern{AssignmentPattern}onIdent<object>- Returns: {void}
Enter assignment pattern.
enterDeclaration(declaration, onIdent): void<Declaration><object>Processes the provided declaration.
enterDestructuringAssignment(pattern, expression): ClassExpression | Identifier | SimpleLiteral | RegExpLiteral | BigIntLiteral | ArrayExpression | ArrowFunctionExpression | AssignmentExpression | AwaitExpression | BinaryExpression | SimpleCallExpression | NewExpression | ChainExpression | ConditionalExpression | FunctionExpression | ImportExpression | LogicalExpression | MemberExpression | MetaProperty | ObjectExpression | SequenceExpression | TaggedTemplateExpression | TemplateLiteral | ThisExpression | UnaryExpression | UpdateExpression | YieldExpression | undefined<Pattern><Expression><ClassExpression>
|
<Identifier>
|
<SimpleLiteral>
|
<RegExpLiteral>
|
<BigIntLiteral>
|
<ArrayExpression>
|
<ArrowFunctionExpression>
|
<AssignmentExpression>
|
<AwaitExpression>
|
<BinaryExpression>
|
<SimpleCallExpression>
|
<NewExpression>
|
<ChainExpression>
|
<ConditionalExpression>
|
<FunctionExpression>
|
<ImportExpression>
|
<LogicalExpression>
|
<MemberExpression>
|
<MetaProperty>
|
<ObjectExpression>
|
<SequenceExpression>
|
<TaggedTemplateExpression>
|
<TemplateLiteral>
|
<ThisExpression>
|
<UnaryExpression>
|
<UpdateExpression>
|
<YieldExpression>
|
<undefined>Enter destructuring assignment.
enterIdentifier(pattern, onIdent): voidpattern{Identifier}onIdent<object>- Returns: {void}
Processes the provided pattern.
enterObjectPattern(pattern, onIdent): voidpattern{ObjectPattern}onIdent<object>- Returns: {void}
Enter object pattern.
enterPattern(pattern, onIdent): voidpattern<Property>|<Identifier>|<MemberExpression>|<ObjectPattern>|<ArrayPattern>|<RestElement>|<AssignmentPattern>onIdent<object>- Returns: {void}
Processes the provided pattern.
enterPatterns(patterns, onIdent): voidProcesses the provided pattern.
enterRestElement(pattern, onIdent): voidpattern{RestElement}onIdent<object>- Returns: {void}
Enter rest element.
evaluate(source): BasicEvaluatedExpression<string><BasicEvaluatedExpression>Returns evaluation result.
evaluatedVariable(tagInfo): voidtagInfo{TagInfo}- Returns: {VariableInfo}
Evaluated variable.
evaluateExpression(expression): voidexpression<ClassExpression>|<Identifier>|<SimpleLiteral>|<RegExpLiteral>|<BigIntLiteral>|<ArrayExpression>|<ArrowFunctionExpression>|<AssignmentExpression>|<AwaitExpression>|<BinaryExpression>|<SimpleCallExpression>|<NewExpression>|<ChainExpression>|<ConditionalExpression>|<FunctionExpression>|<ImportExpression>|<LogicalExpression>|<MemberExpression>|<MetaProperty>|<ObjectExpression>|<SequenceExpression>|<TaggedTemplateExpression>|<TemplateLiteral>|<ThisExpression>|<UnaryExpression>|<UpdateExpression>|<YieldExpression>|<PrivateIdentifier>|<SpreadElement>|<Super>- Returns:
<BasicEvaluatedExpression>
Evaluate expression.
extractMemberExpressionChain(expression): voidexpression<ClassExpression>|<Identifier>|<SimpleLiteral>|<RegExpLiteral>|<BigIntLiteral>|<ArrayExpression>|<ArrowFunctionExpression>|<AssignmentExpression>|<AwaitExpression>|<BinaryExpression>|<SimpleCallExpression>|<NewExpression>|<ChainExpression>|<ConditionalExpression>|<FunctionExpression>|<ImportExpression>|<LogicalExpression>|<MemberExpression>|<MetaProperty>|<ObjectExpression>|<SequenceExpression>|<TaggedTemplateExpression>|<TemplateLiteral>|<ThisExpression>|<UnaryExpression>|<UpdateExpression>|<YieldExpression>|<Super>- Returns:
<object>
Extract member expression chain.
getComments(range): voidrange<Tuple><<number>,<number>>- Returns:
<CommentJavascriptParser>[]
Returns comments in the range.
getFreeInfoFromVariable(varName): object | undefined<string><object>
|
<undefined>Gets free info from variable.
getMemberExpressionInfo(expression, allowedTypes): voidexpression<ClassExpression>|<Identifier>|<SimpleLiteral>|<RegExpLiteral>|<BigIntLiteral>|<ArrayExpression>|<ArrowFunctionExpression>|<AssignmentExpression>|<AwaitExpression>|<BinaryExpression>|<SimpleCallExpression>|<NewExpression>|<ChainExpression>|<ConditionalExpression>|<FunctionExpression>|<ImportExpression>|<LogicalExpression>|<MemberExpression>|<MetaProperty>|<ObjectExpression>|<SequenceExpression>|<TaggedTemplateExpression>|<TemplateLiteral>|<ThisExpression>|<UnaryExpression>|<UpdateExpression>|<YieldExpression>|<Super>allowedTypes<number>- Returns:
<CallExpressionInfo>|<ExpressionExpressionInfo>|<undefined>
Gets member expression info.
getNameForExpression(expression): object | undefined<Expression><object>
|
<undefined>Gets name for expression.
getNameInfoFromVariable(varName): object | undefined<string><object>
|
<undefined>Gets name info from variable.
getRenameIdentifier(expr): voidexpr<ClassExpression>|<Identifier>|<SimpleLiteral>|<RegExpLiteral>|<BigIntLiteral>|<ArrayExpression>|<ArrowFunctionExpression>|<AssignmentExpression>|<AwaitExpression>|<BinaryExpression>|<SimpleCallExpression>|<NewExpression>|<ChainExpression>|<ConditionalExpression>|<FunctionExpression>|<ImportExpression>|<LogicalExpression>|<MemberExpression>|<MetaProperty>|<ObjectExpression>|<SequenceExpression>|<TaggedTemplateExpression>|<TemplateLiteral>|<ThisExpression>|<UnaryExpression>|<UpdateExpression>|<YieldExpression>|<SpreadElement>- Returns:
<string>|<VariableInfo>|<undefined>
Gets rename identifier.
getTagData(name, tag): Record<Record>
<
<string>
,
<any>
> |
<TopLevelSymbol>
|
<HarmonySettings>
|
<ImportSettings>
|
<CommonJsImportSettings>
|
<CompatibilitySettings>
|
<HarmonySpecifierGuards>
|
<undefined>Returns tag data.
getVariableInfo(name): ExportedVariableInfo<string>Gets variable info.
inBlockScope(fn, inExecutedPath?): voidProcesses the provided fn.
inClassScope(hasThis, params, fn): voidProcesses the provided has thi.
inFunctionScope(hasThis, params, fn): voidProcesses the provided has thi.
inScope(params, fn): voidProcesses the provided param.
isAsiPosition(pos): boolean<number><boolean>Checks whether this javascript parser is asi position.
isPure(expr, commentsStartPos): voidexpr<ClassDeclaration>|<MaybeNamedClassDeclaration>|<ClassExpression>|<Identifier>|<SimpleLiteral>|<RegExpLiteral>|<BigIntLiteral>|<ArrayExpression>|<ArrowFunctionExpression>|<AssignmentExpression>|<AwaitExpression>|<BinaryExpression>|<SimpleCallExpression>|<NewExpression>|<ChainExpression>|<ConditionalExpression>|<FunctionExpression>|<ImportExpression>|<LogicalExpression>|<MemberExpression>|<MetaProperty>|<ObjectExpression>|<SequenceExpression>|<TaggedTemplateExpression>|<TemplateLiteral>|<ThisExpression>|<UnaryExpression>|<UpdateExpression>|<YieldExpression>|<FunctionDeclaration>|<MaybeNamedFunctionDeclaration>|<PrivateIdentifier>|<VariableDeclaration>|<null>|<undefined>commentsStartPos<number>- Returns:
<boolean>
Checks whether this javascript parser is pure.
isStatementLevelExpression(expr): boolean<Expression><boolean>Checks whether this javascript parser is statement level expression.
isVariableDefined(name): boolean<string><boolean>Checks whether this javascript parser is variable defined.
modulePreWalkExportAllDeclaration(statement): voidstatement{ExportAllDeclaration}- Returns: {void}
Module pre walk export all declaration.
modulePreWalkExportNamedDeclaration(statement): voidstatement{ExportNamedDeclaration}- Returns: {void}
Module pre walk export named declaration.
modulePreWalkImportDeclaration(statement): voidstatement{ImportDeclaration}- Returns: {void}
Module pre walk import declaration.
modulePreWalkStatements(statements): voidstatements<ClassDeclaration>|<FunctionDeclaration>|<ImportDeclaration>|<ExportNamedDeclaration>|<ExportDefaultDeclaration>|<ExportAllDeclaration>|<ExpressionStatement>|<BlockStatement>|<StaticBlock>|<EmptyStatement>|<DebuggerStatement>|<WithStatement>|<ReturnStatement>|<LabeledStatement>|<BreakStatement>|<ContinueStatement>|<IfStatement>|<SwitchStatement>|<ThrowStatement>|<TryStatement>|<WhileStatement>|<DoWhileStatement>|<ForStatement>|<ForInStatement>|<ForOfStatement>|<VariableDeclaration[]>- Returns: {void}
Module pre walking iterates the scope for import entries
parse(source, state): ParserState<string>
|
<Buffer><ArrayBufferLike>
> |
<PreparsedAst><ParserState><ParserState>Parses the provided source and updates the parser state.
parseCalculatedString(expression): CalculatedStringResult<Expression><CalculatedStringResult>Parses calculated string.
parseCommentOptions(range): voidParses comment options.
parseString(expression): string<Expression><string>Returns parsed string.
preWalkAssignmentExpression(expression): voidexpression{AssignmentExpression}- Returns: {void}
Pre walk assignment expression.
preWalkBlockStatement(statement): voidstatement{BlockStatement}- Returns: {void}
Pre walk block statement.
preWalkCatchClause(catchClause): voidcatchClause{CatchClause}- Returns: {void}
Pre walk catch clause.
preWalkDoWhileStatement(statement): voidstatement{DoWhileStatement}- Returns: {void}
Pre walk do while statement.
preWalkForInStatement(statement): voidstatement{ForInStatement}- Returns: {void}
Pre walk for in statement.
preWalkForOfStatement(statement): voidstatement{ForOfStatement}- Returns: {void}
Pre walk for of statement.
preWalkForStatement(statement): voidstatement{ForStatement}- Returns: {void}
Pre walk for statement.
preWalkFunctionDeclaration(statement): voidstatement<FunctionDeclaration>|<MaybeNamedFunctionDeclaration>- Returns: {void}
Pre walk function declaration.
preWalkIfStatement(statement): voidstatement{IfStatement}- Returns: {void}
Pre walk if statement.
preWalkLabeledStatement(statement): voidstatement{LabeledStatement}- Returns: {void}
Pre walk labeled statement.
preWalkStatement(statement): voidstatement<ClassDeclaration>|<MaybeNamedClassDeclaration>|<FunctionDeclaration>|<MaybeNamedFunctionDeclaration>|<ImportDeclaration>|<ExportNamedDeclaration>|<ExportDefaultDeclaration>|<ExportAllDeclaration>|<ExpressionStatement>|<BlockStatement>|<StaticBlock>|<EmptyStatement>|<DebuggerStatement>|<WithStatement>|<ReturnStatement>|<LabeledStatement>|<BreakStatement>|<ContinueStatement>|<IfStatement>|<SwitchStatement>|<ThrowStatement>|<TryStatement>|<WhileStatement>|<DoWhileStatement>|<ForStatement>|<ForInStatement>|<ForOfStatement>|<VariableDeclaration>- Returns: {void}
Walking iterates the statements and expressions and processes them
preWalkStatements(statements): voidstatements<ClassDeclaration>|<FunctionDeclaration>|<ImportDeclaration>|<ExportNamedDeclaration>|<ExportDefaultDeclaration>|<ExportAllDeclaration>|<ExpressionStatement>|<BlockStatement>|<StaticBlock>|<EmptyStatement>|<DebuggerStatement>|<WithStatement>|<ReturnStatement>|<LabeledStatement>|<BreakStatement>|<ContinueStatement>|<IfStatement>|<SwitchStatement>|<ThrowStatement>|<TryStatement>|<WhileStatement>|<DoWhileStatement>|<ForStatement>|<ForInStatement>|<ForOfStatement>|<VariableDeclaration[]>- Returns: {void}
Pre walking iterates the scope for variable declarations
preWalkSwitchCases(switchCases): voidswitchCases{SwitchCase[]}- Returns: {void}
Pre walk switch cases.
preWalkSwitchStatement(statement): voidstatement{SwitchStatement}- Returns: {void}
Pre walk switch statement.
preWalkTryStatement(statement): voidstatement{TryStatement}- Returns: {void}
Pre walk try statement.
preWalkVariableDeclaration(statement): voidstatement{VariableDeclaration}- Returns: {void}
Pre walk variable declaration.
preWalkVariableDeclarator(declarator): voiddeclarator{VariableDeclarator}- Returns: {void}
Pre walk variable declarator.
preWalkWhileStatement(statement): voidstatement{WhileStatement}- Returns: {void}
Pre walk while statement.
preWalkWithStatement(statement): voidstatement{WithStatement}- Returns: {void}
Pre walk with statement.
setAsiPosition(pos): void<number>Updates asi position using the provided po.
setVariable(name, variableInfo): void<string>Updates variable using the provided name.
tagVariable(name, tag, data?, flags?): void<string><symbol><Record>
<
<string>
,
<any>
> |
<TopLevelSymbol>
|
<HarmonySettings>
|
<ImportSettings>
|
<CommonJsImportSettings>
|
<CompatibilitySettings>
|
<HarmonySpecifierGuards><0>
|
<2>
|
<1>
|
<4>Processes the provided name.
undefineVariable(name): void<string>Processes the provided name.
unsetAsiPosition(pos): void<number>Unset asi position.
walkArrayExpression(expression): voidexpression{ArrayExpression}- Returns: {void}
Walk array expression.
walkArrayPattern(pattern): voidpattern{ArrayPattern}- Returns: {void}
Walk array pattern.
walkArrowFunctionExpression(expression): voidexpression{ArrowFunctionExpression}- Returns: {void}
Walk arrow function expression.
walkAssignmentExpression(expression): voidexpression{AssignmentExpression}- Returns: {void}
Walk assignment expression.
walkAssignmentPattern(pattern): voidpattern{AssignmentPattern}- Returns: {void}
Walk assignment pattern.
walkAwaitExpression(expression): voidexpression{AwaitExpression}- Returns: {void}
Walk await expression.
walkBinaryExpression(expression): voidexpression{BinaryExpression}- Returns: {void}
Walk binary expression.
walkBlockStatement(statement): voidstatement<BlockStatement>|<StaticBlock>- Returns: {void}
Walk block statement.
walkCallExpression(expression): voidexpression{CallExpression}- Returns: {void}
Walk call expression.
walkCatchClause(catchClause): voidcatchClause{CatchClause}- Returns: {void}
Processes the provided catch clause.
walkChainExpression(expression): voidexpression{ChainExpression}- Returns: {void}
Walk chain expression.
walkClass(classy): voidclassy<ClassDeclaration>|<MaybeNamedClassDeclaration>|<ClassExpression>- Returns: {void}
Processes the provided classy.
walkClassDeclaration(statement): voidstatement<ClassDeclaration>|<MaybeNamedClassDeclaration>- Returns: {void}
Walk class declaration.
walkClassExpression(expression): voidexpression{ClassExpression}- Returns: {void}
Walk class expression.
walkConditionalExpression(expression): voidexpression{ConditionalExpression}- Returns: {void}
Walk conditional expression.
walkDoWhileStatement(statement): voidstatement{DoWhileStatement}- Returns: {void}
Walk do while statement.
walkExportDefaultDeclaration(statement): voidstatement{ExportDefaultDeclaration}- Returns: {void}
Walk export default declaration.
walkExportNamedDeclaration(statement): voidstatement{ExportNamedDeclaration}- Returns: {void}
Walk export named declaration.
walkExpression(expression): voidexpression<ClassExpression>|<Identifier>|<SimpleLiteral>|<RegExpLiteral>|<BigIntLiteral>|<ArrayExpression>|<ArrowFunctionExpression>|<AssignmentExpression>|<AwaitExpression>|<BinaryExpression>|<SimpleCallExpression>|<NewExpression>|<ChainExpression>|<ConditionalExpression>|<FunctionExpression>|<ImportExpression>|<LogicalExpression>|<MemberExpression>|<MetaProperty>|<ObjectExpression>|<SequenceExpression>|<TaggedTemplateExpression>|<TemplateLiteral>|<ThisExpression>|<UnaryExpression>|<UpdateExpression>|<YieldExpression>|<PrivateIdentifier>|<SpreadElement>|<Super>- Returns: {void}
Processes the provided expression.
walkExpressions(expressions): voidexpressions<ClassExpression>|<Identifier>|<SimpleLiteral>|<RegExpLiteral>|<BigIntLiteral>|<ArrayExpression>|<ArrowFunctionExpression>|<AssignmentExpression>|<AwaitExpression>|<BinaryExpression>|<SimpleCallExpression>|<NewExpression>|<ChainExpression>|<ConditionalExpression>|<FunctionExpression>|<ImportExpression>|<LogicalExpression>|<MemberExpression>|<MetaProperty>|<ObjectExpression>|<SequenceExpression>|<TaggedTemplateExpression>|<TemplateLiteral>|<ThisExpression>|<UnaryExpression>|<UpdateExpression>|<YieldExpression>|<SpreadElement>|<null>[]- Returns: {void}
Processes the provided expression.
walkExpressionStatement(statement): voidstatement{ExpressionStatement}- Returns: {void}
Walk expression statement.
walkForInStatement(statement): voidstatement{ForInStatement}- Returns: {void}
Walk for in statement.
walkForOfStatement(statement): voidstatement{ForOfStatement}- Returns: {void}
Walk for of statement.
walkForStatement(statement): voidstatement{ForStatement}- Returns: {void}
Walk for statement.
walkFunctionDeclaration(statement): voidstatement<FunctionDeclaration>|<MaybeNamedFunctionDeclaration>- Returns: {void}
Walk function declaration.
walkFunctionExpression(expression): voidexpression{FunctionExpression}- Returns: {void}
Walk function expression.
walkIdentifier(expression): voidexpression{Identifier}- Returns: {void}
Processes the provided expression.
walkIfStatement(statement): voidstatement{IfStatement}- Returns: {void}
Processes the provided statement.
walkImportExpression(expression): void<ImportExpressionJavascriptParser>Walk import expression.
walkLabeledStatement(statement): voidstatement{LabeledStatement}- Returns: {void}
Walk labeled statement.
walkLeftRightExpression(expression): voidexpression<BinaryExpression>|<LogicalExpression>- Returns: {void}
Walk left right expression.
walkLogicalExpression(expression): voidexpression{LogicalExpression}- Returns: {void}
Walk logical expression.
walkMemberExpression(expression): voidexpression{MemberExpression}- Returns: {void}
Walk member expression.
walkMemberExpressionWithExpressionName(expression, name, rootInfo, members, onUnhandled): voidexpression{MemberExpression}name<string>rootInfo<string>|<VariableInfo>members<string>[]onUnhandled<object>- Returns: {void}
Walk member expression with expression name.
walkMetaProperty(metaProperty): voidmetaProperty{MetaProperty}- Returns: {void}
Walk meta property.
walkNestedStatement(statement): voidstatement{Statement}- 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.
walkNewExpression(expression): voidexpression{NewExpression}- Returns: {void}
Walk new expression.
walkObjectExpression(expression): voidexpression{ObjectExpression}- Returns: {void}
Walk object expression.
walkObjectPattern(pattern): voidpattern{ObjectPattern}- Returns: {void}
Walk object pattern.
walkPattern(pattern): void<Pattern>Processes the provided pattern.
walkProperty(prop): voidprop<Property>|<SpreadElement>- Returns: {void}
Processes the provided prop.
walkRestElement(pattern): voidpattern{RestElement}- Returns: {void}
Processes the provided pattern.
walkReturnStatement(statement): voidstatement{ReturnStatement}- Returns: {void}
Walk return statement.
walkSequenceExpression(expression): voidexpression{SequenceExpression}- Returns: {void}
Walk sequence expression.
walkSpreadElement(expression): voidexpression{SpreadElement}- Returns: {void}
Walk spread element.
walkStatement(statement): voidstatement<ClassDeclaration>|<MaybeNamedClassDeclaration>|<FunctionDeclaration>|<MaybeNamedFunctionDeclaration>|<ImportDeclaration>|<ExportNamedDeclaration>|<ExportDefaultDeclaration>|<ExportAllDeclaration>|<ExpressionStatement>|<BlockStatement>|<StaticBlock>|<EmptyStatement>|<DebuggerStatement>|<WithStatement>|<ReturnStatement>|<LabeledStatement>|<BreakStatement>|<ContinueStatement>|<IfStatement>|<SwitchStatement>|<ThrowStatement>|<TryStatement>|<WhileStatement>|<DoWhileStatement>|<ForStatement>|<ForInStatement>|<ForOfStatement>|<VariableDeclaration>- Returns: {void}
Processes the provided statement.
walkStatements(statements): voidstatements<ClassDeclaration>|<FunctionDeclaration>|<ImportDeclaration>|<ExportNamedDeclaration>|<ExportDefaultDeclaration>|<ExportAllDeclaration>|<ExpressionStatement>|<BlockStatement>|<StaticBlock>|<EmptyStatement>|<DebuggerStatement>|<WithStatement>|<ReturnStatement>|<LabeledStatement>|<BreakStatement>|<ContinueStatement>|<IfStatement>|<SwitchStatement>|<ThrowStatement>|<TryStatement>|<WhileStatement>|<DoWhileStatement>|<ForStatement>|<ForInStatement>|<ForOfStatement>|<VariableDeclaration[]>- Returns: {void}
Walking iterates the statements and expressions and processes them
walkSwitchCases(switchCases): voidswitchCases{SwitchCase[]}- Returns: {void}
Processes the provided switch case.
walkSwitchStatement(statement): voidstatement{SwitchStatement}- Returns: {void}
Walk switch statement.
walkTaggedTemplateExpression(expression): voidexpression{TaggedTemplateExpression}- Returns: {void}
Walk tagged template expression.
walkTemplateLiteral(expression): voidexpression{TemplateLiteral}- Returns: {void}
Walk template literal.
walkTerminatingStatement(statement): voidstatement<ReturnStatement>|<ThrowStatement>- Returns: {void}
Walk terminating statement.
walkThisExpression(expression): voidexpression{ThisExpression}- Returns: {void}
Walk this expression.
walkThrowStatement(statement): voidstatement{ThrowStatement}- Returns: {void}
Walk throw statement.
walkTryStatement(statement): voidstatement{TryStatement}- Returns: {void}
Walk try statement.
walkUnaryExpression(expression): voidexpression{UnaryExpression}- Returns: {void}
Walk unary expression.
walkUpdateExpression(expression): voidexpression{UpdateExpression}- Returns: {void}
Walk update expression.
walkVariableDeclaration(statement): voidstatement{VariableDeclaration}- Returns: {void}
Walk variable declaration.
walkWhileStatement(statement): voidstatement{WhileStatement}- Returns: {void}
Walk while statement.
walkWithStatement(statement): voidstatement{WithStatement}- Returns: {void}
Walk with statement.
walkYieldExpression(expression): voidexpression{YieldExpression}- Returns: {void}
Walk yield expression.
<object><JavascriptParser>Returns parser.