code-red
Advanced tools
Comparing version 0.1.7 to 0.2.0
# code-red changelog | ||
## 0.2.0 | ||
* Rewrite in JavaScript | ||
## 0.1.7 | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "code-red", | ||
"description": "code-red", | ||
"version": "0.1.7", | ||
"version": "0.2.0", | ||
"repository": "Rich-Harris/code-red", | ||
"main": "dist/code-red.js", | ||
"module": "dist/code-red.mjs", | ||
"main": "dist/code-red.cjs", | ||
"module": "src/index.js", | ||
"exports": { | ||
"import": "./src/index.js", | ||
"require": "./dist/code-red.cjs" | ||
}, | ||
"type": "module", | ||
"types": "types/index.d.ts", | ||
"files": [ | ||
"src", | ||
"dist", | ||
@@ -14,22 +20,13 @@ "types" | ||
"devDependencies": { | ||
"@rollup/plugin-node-resolve": "^11.1.1", | ||
"@rollup/plugin-sucrase": "^3.1.0", | ||
"@types/astring": "^1.3.0", | ||
"@types/mocha": "^5.2.7", | ||
"@types/node": "^12.12.7", | ||
"esbuild": "^0.11.16", | ||
"eslump": "^2.0.0", | ||
"mocha": "^6.2.2", | ||
"rollup": "^2.38.1", | ||
"sander": "^0.6.0", | ||
"sucrase": "^3.17.0", | ||
"tiny-glob": "^0.2.6", | ||
"typescript": "^3.7.2" | ||
"typescript": "^3.7.2", | ||
"uvu": "^0.5.1" | ||
}, | ||
"scripts": { | ||
"build-declarations": "tsc -d && node scripts/move-type-declarations.js", | ||
"build": "npm run build-declarations && rollup -c", | ||
"dev": "rollup -cw", | ||
"test": "mocha --opts mocha.opts", | ||
"build": "tsc && esbuild --bundle --external:acorn --external:estree-walker --external:is-reference --external:periscopic --external:sourcemap-codec --format=cjs --outfile=dist/code-red.cjs src/index.js", | ||
"test": "uvu test test.js", | ||
"prepublishOnly": "npm test && npm run build", | ||
"repl": "node -e \"const { x, b, print } = require('./')\" -i" | ||
"repl": "node -e \"const { x, b, print } = require('./dist/code-red.cjs')\" -i" | ||
}, | ||
@@ -36,0 +33,0 @@ "license": "MIT", |
@@ -1,7 +0,118 @@ | ||
import { Property, Node, Expression, SpreadElement } from 'estree'; | ||
export declare function b(strings: TemplateStringsArray, ...values: any[]): Node[]; | ||
export declare function x(strings: TemplateStringsArray, ...values: any[]): Expression; | ||
export declare function p(strings: TemplateStringsArray, ...values: any[]): Property | SpreadElement; | ||
export { print } from './print/index'; | ||
export declare const parse: (source: string, opts: any) => any; | ||
export declare const parseExpressionAt: (source: string, index: number, opts: any) => any; | ||
/** | ||
* | ||
* @param {TemplateStringsArray} strings | ||
* @param {any[]} values | ||
* @returns {Node[]} | ||
*/ | ||
export function b(strings: TemplateStringsArray, ...values: any[]): import("estree").Node[]; | ||
/** | ||
* | ||
* @param {TemplateStringsArray} strings | ||
* @param {any[]} values | ||
* @returns {Expression & { start: Number, end: number }} | ||
*/ | ||
export function x(strings: TemplateStringsArray, ...values: any[]): (import("estree").Identifier & { | ||
start: number; | ||
end: number; | ||
}) | (import("estree").SimpleLiteral & { | ||
start: number; | ||
end: number; | ||
}) | (import("estree").RegExpLiteral & { | ||
start: number; | ||
end: number; | ||
}) | (import("estree").FunctionExpression & { | ||
start: number; | ||
end: number; | ||
}) | (import("estree").ArrowFunctionExpression & { | ||
start: number; | ||
end: number; | ||
}) | (import("estree").ThisExpression & { | ||
start: number; | ||
end: number; | ||
}) | (import("estree").ArrayExpression & { | ||
start: number; | ||
end: number; | ||
}) | (import("estree").ObjectExpression & { | ||
start: number; | ||
end: number; | ||
}) | (import("estree").YieldExpression & { | ||
start: number; | ||
end: number; | ||
}) | (import("estree").UnaryExpression & { | ||
start: number; | ||
end: number; | ||
}) | (import("estree").UpdateExpression & { | ||
start: number; | ||
end: number; | ||
}) | (import("estree").BinaryExpression & { | ||
start: number; | ||
end: number; | ||
}) | (import("estree").AssignmentExpression & { | ||
start: number; | ||
end: number; | ||
}) | (import("estree").LogicalExpression & { | ||
start: number; | ||
end: number; | ||
}) | (import("estree").MemberExpression & { | ||
start: number; | ||
end: number; | ||
}) | (import("estree").ConditionalExpression & { | ||
start: number; | ||
end: number; | ||
}) | (import("estree").SimpleCallExpression & { | ||
start: number; | ||
end: number; | ||
}) | (import("estree").NewExpression & { | ||
start: number; | ||
end: number; | ||
}) | (import("estree").SequenceExpression & { | ||
start: number; | ||
end: number; | ||
}) | (import("estree").TemplateLiteral & { | ||
start: number; | ||
end: number; | ||
}) | (import("estree").TaggedTemplateExpression & { | ||
start: number; | ||
end: number; | ||
}) | (import("estree").ClassExpression & { | ||
start: number; | ||
end: number; | ||
}) | (import("estree").MetaProperty & { | ||
start: number; | ||
end: number; | ||
}) | (import("estree").AwaitExpression & { | ||
start: number; | ||
end: number; | ||
}) | (import("estree").ImportExpression & { | ||
start: number; | ||
end: number; | ||
}) | (import("estree").ChainExpression & { | ||
start: number; | ||
end: number; | ||
}); | ||
/** | ||
* | ||
* @param {TemplateStringsArray} strings | ||
* @param {any[]} values | ||
* @returns {(Property | SpreadElement) & { start: Number, end: number }} | ||
*/ | ||
export function p(strings: TemplateStringsArray, ...values: any[]): (import("estree").Property & { | ||
start: number; | ||
end: number; | ||
}) | (import("estree").SpreadElement & { | ||
start: number; | ||
end: number; | ||
}); | ||
export { print } from "./print/index.js"; | ||
export function parse(source: string, opts: any): any; | ||
export function parseExpressionAt(source: string, index: number, opts: any): any; | ||
export type Expression = import("estree").Identifier | import("estree").SimpleLiteral | import("estree").RegExpLiteral | import("estree").FunctionExpression | import("estree").ArrowFunctionExpression | import("estree").ThisExpression | import("estree").ArrayExpression | import("estree").ObjectExpression | import("estree").YieldExpression | import("estree").UnaryExpression | import("estree").UpdateExpression | import("estree").BinaryExpression | import("estree").AssignmentExpression | import("estree").LogicalExpression | import("estree").MemberExpression | import("estree").ConditionalExpression | import("estree").SimpleCallExpression | import("estree").NewExpression | import("estree").SequenceExpression | import("estree").TemplateLiteral | import("estree").TaggedTemplateExpression | import("estree").ClassExpression | import("estree").MetaProperty | import("estree").AwaitExpression | import("estree").ImportExpression | import("estree").ChainExpression; | ||
export type Node = import("estree").Identifier | import("estree").SimpleLiteral | import("estree").RegExpLiteral | import("estree").Program | import("estree").FunctionDeclaration | import("estree").FunctionExpression | import("estree").ArrowFunctionExpression | import("estree").SwitchCase | import("estree").CatchClause | import("estree").VariableDeclarator | import("estree").ExpressionStatement | import("estree").BlockStatement | import("estree").EmptyStatement | import("estree").DebuggerStatement | import("estree").WithStatement | import("estree").ReturnStatement | import("estree").LabeledStatement | import("estree").BreakStatement | import("estree").ContinueStatement | import("estree").IfStatement | import("estree").SwitchStatement | import("estree").ThrowStatement | import("estree").TryStatement | import("estree").WhileStatement | import("estree").DoWhileStatement | import("estree").ForStatement | import("estree").ForInStatement | import("estree").ForOfStatement | import("estree").VariableDeclaration | import("estree").ClassDeclaration | import("estree").ThisExpression | import("estree").ArrayExpression | import("estree").ObjectExpression | import("estree").YieldExpression | import("estree").UnaryExpression | import("estree").UpdateExpression | import("estree").BinaryExpression | import("estree").AssignmentExpression | import("estree").LogicalExpression | import("estree").MemberExpression | import("estree").ConditionalExpression | import("estree").SimpleCallExpression | import("estree").NewExpression | import("estree").SequenceExpression | import("estree").TemplateLiteral | import("estree").TaggedTemplateExpression | import("estree").ClassExpression | import("estree").MetaProperty | import("estree").AwaitExpression | import("estree").ImportExpression | import("estree").ChainExpression | import("estree").Property | import("estree").AssignmentProperty | import("estree").Super | import("estree").TemplateElement | import("estree").SpreadElement | import("estree").ObjectPattern | import("estree").ArrayPattern | import("estree").RestElement | import("estree").AssignmentPattern | import("estree").ClassBody | import("estree").MethodDefinition | import("estree").ImportDeclaration | import("estree").ExportNamedDeclaration | import("estree").ExportDefaultDeclaration | import("estree").ExportAllDeclaration | import("estree").ImportSpecifier | import("estree").ImportDefaultSpecifier | import("estree").ImportNamespaceSpecifier | import("estree").ExportSpecifier; | ||
export type ObjectExpression = import("estree").ObjectExpression; | ||
export type Property = import("estree").Property; | ||
export type SpreadElement = import("estree").SpreadElement; | ||
export type CommentWithLocation = import("estree").Comment & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}; |
@@ -1,3 +0,56 @@ | ||
import { Comment, Node } from 'estree'; | ||
declare type Chunk = { | ||
/** @typedef {import('estree').ArrowFunctionExpression} ArrowFunctionExpression */ | ||
/** @typedef {import('estree').BinaryExpression} BinaryExpression */ | ||
/** @typedef {import('estree').CallExpression} CallExpression */ | ||
/** @typedef {import('estree').Comment} Comment */ | ||
/** @typedef {import('estree').ExportSpecifier} ExportSpecifier */ | ||
/** @typedef {import('estree').Expression} Expression */ | ||
/** @typedef {import('estree').FunctionDeclaration} FunctionDeclaration */ | ||
/** @typedef {import('estree').ImportDeclaration} ImportDeclaration */ | ||
/** @typedef {import('estree').ImportSpecifier} ImportSpecifier */ | ||
/** @typedef {import('estree').Literal} Literal */ | ||
/** @typedef {import('estree').LogicalExpression} LogicalExpression */ | ||
/** @typedef {import('estree').NewExpression} NewExpression */ | ||
/** @typedef {import('estree').Node} Node */ | ||
/** @typedef {import('estree').ObjectExpression} ObjectExpression */ | ||
/** @typedef {import('estree').Pattern} Pattern */ | ||
/** @typedef {import('estree').SequenceExpression} SequenceExpression */ | ||
/** @typedef {import('estree').SimpleCallExpression} SimpleCallExpression */ | ||
/** @typedef {import('estree').SwitchStatement} SwitchStatement */ | ||
/** @typedef {import('estree').VariableDeclaration} VariableDeclaration */ | ||
/** | ||
* @typedef {{ | ||
* content: string; | ||
* loc?: { | ||
* start: { line: number; column: number; }; | ||
* end: { line: number; column: number; }; | ||
* }; | ||
* has_newline: boolean; | ||
* }} Chunk | ||
*/ | ||
/** | ||
* @typedef {(node: any, state: State) => Chunk[]} Handler | ||
*/ | ||
/** | ||
* @typedef {{ | ||
* indent: string; | ||
* scope: any; // TODO import from periscopic | ||
* scope_map: WeakMap<Node, any>; | ||
* getName: (name: string) => string; | ||
* deconflicted: WeakMap<Node, Map<string, string>>; | ||
* comments: Comment[]; | ||
* }} State | ||
*/ | ||
/** | ||
* @param {Node} node | ||
* @param {State} state | ||
* @returns {Chunk[]} | ||
*/ | ||
export function handle(node: import("estree").Node, state: { | ||
indent: string; | ||
scope: any; | ||
scope_map: WeakMap<import("estree").Node, any>; | ||
getName: (name: string) => string; | ||
deconflicted: WeakMap<import("estree").Node, Map<string, string>>; | ||
comments: import("estree").Comment[]; | ||
}): { | ||
content: string; | ||
@@ -15,12 +68,64 @@ loc?: { | ||
has_newline: boolean; | ||
}[]; | ||
export type ArrowFunctionExpression = import("estree").ArrowFunctionExpression; | ||
export type BinaryExpression = import("estree").BinaryExpression; | ||
export type CallExpression = import("estree").SimpleCallExpression | import("estree").NewExpression; | ||
export type Comment = import("estree").Comment; | ||
export type ExportSpecifier = import("estree").ExportSpecifier; | ||
export type Expression = import("estree").Identifier | import("estree").SimpleLiteral | import("estree").RegExpLiteral | import("estree").FunctionExpression | import("estree").ArrowFunctionExpression | import("estree").ThisExpression | import("estree").ArrayExpression | import("estree").ObjectExpression | import("estree").YieldExpression | import("estree").UnaryExpression | import("estree").UpdateExpression | import("estree").BinaryExpression | import("estree").AssignmentExpression | import("estree").LogicalExpression | import("estree").MemberExpression | import("estree").ConditionalExpression | import("estree").SimpleCallExpression | import("estree").NewExpression | import("estree").SequenceExpression | import("estree").TemplateLiteral | import("estree").TaggedTemplateExpression | import("estree").ClassExpression | import("estree").MetaProperty | import("estree").AwaitExpression | import("estree").ImportExpression | import("estree").ChainExpression; | ||
export type FunctionDeclaration = import("estree").FunctionDeclaration; | ||
export type ImportDeclaration = import("estree").ImportDeclaration; | ||
export type ImportSpecifier = import("estree").ImportSpecifier; | ||
export type Literal = import("estree").SimpleLiteral | import("estree").RegExpLiteral; | ||
export type LogicalExpression = import("estree").LogicalExpression; | ||
export type NewExpression = import("estree").NewExpression; | ||
export type Node = import("estree").Identifier | import("estree").SimpleLiteral | import("estree").RegExpLiteral | import("estree").Program | import("estree").FunctionDeclaration | import("estree").FunctionExpression | import("estree").ArrowFunctionExpression | import("estree").SwitchCase | import("estree").CatchClause | import("estree").VariableDeclarator | import("estree").ExpressionStatement | import("estree").BlockStatement | import("estree").EmptyStatement | import("estree").DebuggerStatement | import("estree").WithStatement | import("estree").ReturnStatement | import("estree").LabeledStatement | import("estree").BreakStatement | import("estree").ContinueStatement | import("estree").IfStatement | import("estree").SwitchStatement | import("estree").ThrowStatement | import("estree").TryStatement | import("estree").WhileStatement | import("estree").DoWhileStatement | import("estree").ForStatement | import("estree").ForInStatement | import("estree").ForOfStatement | import("estree").VariableDeclaration | import("estree").ClassDeclaration | import("estree").ThisExpression | import("estree").ArrayExpression | import("estree").ObjectExpression | import("estree").YieldExpression | import("estree").UnaryExpression | import("estree").UpdateExpression | import("estree").BinaryExpression | import("estree").AssignmentExpression | import("estree").LogicalExpression | import("estree").MemberExpression | import("estree").ConditionalExpression | import("estree").SimpleCallExpression | import("estree").NewExpression | import("estree").SequenceExpression | import("estree").TemplateLiteral | import("estree").TaggedTemplateExpression | import("estree").ClassExpression | import("estree").MetaProperty | import("estree").AwaitExpression | import("estree").ImportExpression | import("estree").ChainExpression | import("estree").Property | import("estree").AssignmentProperty | import("estree").Super | import("estree").TemplateElement | import("estree").SpreadElement | import("estree").ObjectPattern | import("estree").ArrayPattern | import("estree").RestElement | import("estree").AssignmentPattern | import("estree").ClassBody | import("estree").MethodDefinition | import("estree").ImportDeclaration | import("estree").ExportNamedDeclaration | import("estree").ExportDefaultDeclaration | import("estree").ExportAllDeclaration | import("estree").ImportSpecifier | import("estree").ImportDefaultSpecifier | import("estree").ImportNamespaceSpecifier | import("estree").ExportSpecifier; | ||
export type ObjectExpression = import("estree").ObjectExpression; | ||
export type Pattern = import("estree").Identifier | import("estree").MemberExpression | import("estree").ObjectPattern | import("estree").ArrayPattern | import("estree").RestElement | import("estree").AssignmentPattern; | ||
export type SequenceExpression = import("estree").SequenceExpression; | ||
export type SimpleCallExpression = import("estree").SimpleCallExpression; | ||
export type SwitchStatement = import("estree").SwitchStatement; | ||
export type VariableDeclaration = import("estree").VariableDeclaration; | ||
export type Chunk = { | ||
content: string; | ||
loc?: { | ||
start: { | ||
line: number; | ||
column: number; | ||
}; | ||
end: { | ||
line: number; | ||
column: number; | ||
}; | ||
}; | ||
has_newline: boolean; | ||
}; | ||
declare type State = { | ||
export type Handler = (node: any, state: { | ||
indent: string; | ||
scope: any; | ||
scope_map: WeakMap<Node, any>; | ||
scope_map: WeakMap<import("estree").Node, any>; | ||
getName: (name: string) => string; | ||
deconflicted: WeakMap<Node, Map<string, string>>; | ||
comments: Comment[]; | ||
deconflicted: WeakMap<import("estree").Node, Map<string, string>>; | ||
comments: import("estree").Comment[]; | ||
}) => { | ||
content: string; | ||
loc?: { | ||
start: { | ||
line: number; | ||
column: number; | ||
}; | ||
end: { | ||
line: number; | ||
column: number; | ||
}; | ||
}; | ||
has_newline: boolean; | ||
}[]; | ||
export type State = { | ||
indent: string; | ||
scope: any; | ||
scope_map: WeakMap<import("estree").Node, any>; | ||
getName: (name: string) => string; | ||
deconflicted: WeakMap<import("estree").Node, Map<string, string>>; | ||
comments: import("estree").Comment[]; | ||
}; | ||
export declare function handle(node: Node, state: State): Chunk[]; | ||
export {}; |
@@ -1,3 +0,17 @@ | ||
import { Node } from 'estree'; | ||
declare type PrintOptions = { | ||
/** @typedef {import('estree').Node} Node */ | ||
/** | ||
* @typedef {{ | ||
* file?: string; | ||
* sourceMapSource?: string; | ||
* sourceMapContent?: string; | ||
* sourceMapEncodeMappings?: boolean; // default true | ||
* getName?: (name: string) => string; | ||
* }} PrintOptions | ||
*/ | ||
/** | ||
* @param {Node} node | ||
* @param {PrintOptions} opts | ||
* @returns {{ code: string, map: any }} // TODO | ||
*/ | ||
export function print(node: import("estree").Node, opts?: { | ||
file?: string; | ||
@@ -8,7 +22,13 @@ sourceMapSource?: string; | ||
getName?: (name: string) => string; | ||
}; | ||
export declare function print(node: Node, opts?: PrintOptions): { | ||
}): { | ||
code: string; | ||
map: any; | ||
}; | ||
export {}; | ||
export type Node = import("estree").Identifier | import("estree").SimpleLiteral | import("estree").RegExpLiteral | import("estree").Program | import("estree").FunctionDeclaration | import("estree").FunctionExpression | import("estree").ArrowFunctionExpression | import("estree").SwitchCase | import("estree").CatchClause | import("estree").VariableDeclarator | import("estree").ExpressionStatement | import("estree").BlockStatement | import("estree").EmptyStatement | import("estree").DebuggerStatement | import("estree").WithStatement | import("estree").ReturnStatement | import("estree").LabeledStatement | import("estree").BreakStatement | import("estree").ContinueStatement | import("estree").IfStatement | import("estree").SwitchStatement | import("estree").ThrowStatement | import("estree").TryStatement | import("estree").WhileStatement | import("estree").DoWhileStatement | import("estree").ForStatement | import("estree").ForInStatement | import("estree").ForOfStatement | import("estree").VariableDeclaration | import("estree").ClassDeclaration | import("estree").ThisExpression | import("estree").ArrayExpression | import("estree").ObjectExpression | import("estree").YieldExpression | import("estree").UnaryExpression | import("estree").UpdateExpression | import("estree").BinaryExpression | import("estree").AssignmentExpression | import("estree").LogicalExpression | import("estree").MemberExpression | import("estree").ConditionalExpression | import("estree").SimpleCallExpression | import("estree").NewExpression | import("estree").SequenceExpression | import("estree").TemplateLiteral | import("estree").TaggedTemplateExpression | import("estree").ClassExpression | import("estree").MetaProperty | import("estree").AwaitExpression | import("estree").ImportExpression | import("estree").ChainExpression | import("estree").Property | import("estree").AssignmentProperty | import("estree").Super | import("estree").TemplateElement | import("estree").SpreadElement | import("estree").ObjectPattern | import("estree").ArrayPattern | import("estree").RestElement | import("estree").AssignmentPattern | import("estree").ClassBody | import("estree").MethodDefinition | import("estree").ImportDeclaration | import("estree").ExportNamedDeclaration | import("estree").ExportDefaultDeclaration | import("estree").ExportAllDeclaration | import("estree").ImportSpecifier | import("estree").ImportDefaultSpecifier | import("estree").ImportNamespaceSpecifier | import("estree").ExportSpecifier; | ||
export type PrintOptions = { | ||
file?: string; | ||
sourceMapSource?: string; | ||
sourceMapContent?: string; | ||
sourceMapEncodeMappings?: boolean; | ||
getName?: (name: string) => string; | ||
}; |
@@ -1,10 +0,865 @@ | ||
import { Comment, Node } from 'estree'; | ||
export interface CommentWithLocation extends Comment { | ||
export function get_comment_handlers(comments: (import("estree").Comment & { | ||
start: number; | ||
end: number; | ||
} | ||
export declare const get_comment_handlers: (comments: CommentWithLocation[], raw: string) => { | ||
has_trailing_newline?: boolean; | ||
})[], raw: string): { | ||
/** | ||
* @param {boolean} block | ||
* @param {string} value | ||
* @param {number} start | ||
* @param {number} end | ||
*/ | ||
onComment: (block: boolean, value: string, start: number, end: number) => void; | ||
enter(node: Node): void; | ||
leave(node: Node): void; | ||
/** @param {NodeWithLocation} node */ | ||
enter(node: (import("estree").Identifier & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").SimpleLiteral & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").RegExpLiteral & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").Program & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").FunctionDeclaration & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").FunctionExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ArrowFunctionExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").SwitchCase & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").CatchClause & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").VariableDeclarator & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ExpressionStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").BlockStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").EmptyStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").DebuggerStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").WithStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ReturnStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").LabeledStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").BreakStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ContinueStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").IfStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").SwitchStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ThrowStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").TryStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").WhileStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").DoWhileStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ForStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ForInStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ForOfStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").VariableDeclaration & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ClassDeclaration & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ThisExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ArrayExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ObjectExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").YieldExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").UnaryExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").UpdateExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").BinaryExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").AssignmentExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").LogicalExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").MemberExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ConditionalExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").SimpleCallExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").NewExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").SequenceExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").TemplateLiteral & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").TaggedTemplateExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ClassExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").MetaProperty & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").AwaitExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ImportExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ChainExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").Property & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").AssignmentProperty & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").Super & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").TemplateElement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").SpreadElement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ObjectPattern & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ArrayPattern & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").RestElement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").AssignmentPattern & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ClassBody & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").MethodDefinition & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ImportDeclaration & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ExportNamedDeclaration & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ExportDefaultDeclaration & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ExportAllDeclaration & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ImportSpecifier & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ImportDefaultSpecifier & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ImportNamespaceSpecifier & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ExportSpecifier & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
})): void; | ||
/** @param {NodeWithLocation} node */ | ||
leave(node: (import("estree").Identifier & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").SimpleLiteral & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").RegExpLiteral & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").Program & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").FunctionDeclaration & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").FunctionExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ArrowFunctionExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").SwitchCase & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").CatchClause & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").VariableDeclarator & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ExpressionStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").BlockStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").EmptyStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").DebuggerStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").WithStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ReturnStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").LabeledStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").BreakStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ContinueStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").IfStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").SwitchStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ThrowStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").TryStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").WhileStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").DoWhileStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ForStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ForInStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ForOfStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").VariableDeclaration & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ClassDeclaration & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ThisExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ArrayExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ObjectExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").YieldExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").UnaryExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").UpdateExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").BinaryExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").AssignmentExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").LogicalExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").MemberExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ConditionalExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").SimpleCallExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").NewExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").SequenceExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").TemplateLiteral & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").TaggedTemplateExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ClassExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").MetaProperty & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").AwaitExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ImportExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ChainExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").Property & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").AssignmentProperty & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").Super & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").TemplateElement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").SpreadElement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ObjectPattern & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ArrayPattern & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").RestElement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").AssignmentPattern & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ClassBody & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").MethodDefinition & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ImportDeclaration & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ExportNamedDeclaration & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ExportDefaultDeclaration & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ExportAllDeclaration & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ImportSpecifier & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ImportDefaultSpecifier & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ImportNamespaceSpecifier & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ExportSpecifier & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
})): void; | ||
}; | ||
export type Comment = import("estree").Comment; | ||
export type Node = import("estree").Identifier | import("estree").SimpleLiteral | import("estree").RegExpLiteral | import("estree").Program | import("estree").FunctionDeclaration | import("estree").FunctionExpression | import("estree").ArrowFunctionExpression | import("estree").SwitchCase | import("estree").CatchClause | import("estree").VariableDeclarator | import("estree").ExpressionStatement | import("estree").BlockStatement | import("estree").EmptyStatement | import("estree").DebuggerStatement | import("estree").WithStatement | import("estree").ReturnStatement | import("estree").LabeledStatement | import("estree").BreakStatement | import("estree").ContinueStatement | import("estree").IfStatement | import("estree").SwitchStatement | import("estree").ThrowStatement | import("estree").TryStatement | import("estree").WhileStatement | import("estree").DoWhileStatement | import("estree").ForStatement | import("estree").ForInStatement | import("estree").ForOfStatement | import("estree").VariableDeclaration | import("estree").ClassDeclaration | import("estree").ThisExpression | import("estree").ArrayExpression | import("estree").ObjectExpression | import("estree").YieldExpression | import("estree").UnaryExpression | import("estree").UpdateExpression | import("estree").BinaryExpression | import("estree").AssignmentExpression | import("estree").LogicalExpression | import("estree").MemberExpression | import("estree").ConditionalExpression | import("estree").SimpleCallExpression | import("estree").NewExpression | import("estree").SequenceExpression | import("estree").TemplateLiteral | import("estree").TaggedTemplateExpression | import("estree").ClassExpression | import("estree").MetaProperty | import("estree").AwaitExpression | import("estree").ImportExpression | import("estree").ChainExpression | import("estree").Property | import("estree").AssignmentProperty | import("estree").Super | import("estree").TemplateElement | import("estree").SpreadElement | import("estree").ObjectPattern | import("estree").ArrayPattern | import("estree").RestElement | import("estree").AssignmentPattern | import("estree").ClassBody | import("estree").MethodDefinition | import("estree").ImportDeclaration | import("estree").ExportNamedDeclaration | import("estree").ExportDefaultDeclaration | import("estree").ExportAllDeclaration | import("estree").ImportSpecifier | import("estree").ImportDefaultSpecifier | import("estree").ImportNamespaceSpecifier | import("estree").ExportSpecifier; | ||
export type NodeWithLocation = (import("estree").Identifier & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").SimpleLiteral & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").RegExpLiteral & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").Program & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").FunctionDeclaration & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").FunctionExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ArrowFunctionExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").SwitchCase & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").CatchClause & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").VariableDeclarator & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ExpressionStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").BlockStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").EmptyStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").DebuggerStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").WithStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ReturnStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").LabeledStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").BreakStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ContinueStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").IfStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").SwitchStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ThrowStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").TryStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").WhileStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").DoWhileStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ForStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ForInStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ForOfStatement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").VariableDeclaration & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ClassDeclaration & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ThisExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ArrayExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ObjectExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").YieldExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").UnaryExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").UpdateExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").BinaryExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").AssignmentExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").LogicalExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").MemberExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ConditionalExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").SimpleCallExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").NewExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").SequenceExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").TemplateLiteral & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").TaggedTemplateExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ClassExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").MetaProperty & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").AwaitExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ImportExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ChainExpression & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").Property & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").AssignmentProperty & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").Super & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").TemplateElement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").SpreadElement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ObjectPattern & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ArrayPattern & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").RestElement & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").AssignmentPattern & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ClassBody & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").MethodDefinition & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ImportDeclaration & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ExportNamedDeclaration & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ExportDefaultDeclaration & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ExportAllDeclaration & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ImportSpecifier & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ImportDefaultSpecifier & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ImportNamespaceSpecifier & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}) | (import("estree").ExportSpecifier & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}); | ||
export type CommentWithLocation = import("estree").Comment & { | ||
start: number; | ||
end: number; | ||
has_trailing_newline?: boolean; | ||
}; |
@@ -1,2 +0,2 @@ | ||
export declare const id: string; | ||
export declare const re: RegExp; | ||
export const id: string; | ||
export const re: RegExp; |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
139891
5
15
4118
Yes
1