meriyah 7.3.1 → 7.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/dist/meriyah.cjs +379 -2244
- package/dist/meriyah.min.mjs +1 -1
- package/dist/meriyah.mjs +379 -2244
- package/dist/meriyah.umd.js +379 -2244
- package/dist/meriyah.umd.min.js +1 -1
- package/dist/types/common.d.ts +2 -1
- package/dist/types/parser/parser.d.ts +1 -0
- package/dist/types/parser/scope.d.ts +5 -5
- package/dist/types/token.d.ts +2 -2
- package/package.json +1 -1
package/dist/types/common.d.ts
CHANGED
|
@@ -47,6 +47,7 @@ export declare class Parser {
|
|
|
47
47
|
getToken(): Token;
|
|
48
48
|
setToken(value: Token, replaceLast?: boolean): Token;
|
|
49
49
|
get tokenStart(): Location;
|
|
50
|
+
get startPosition(): Location;
|
|
50
51
|
get currentLocation(): Location;
|
|
51
52
|
finishNode<T extends ESTree.Node>(node: T, start: Location, end: Location | void): T;
|
|
52
53
|
addBindingToExports(name: string): void;
|
|
@@ -27,12 +27,12 @@ export declare class Scope {
|
|
|
27
27
|
variableBindings: Map<string, BindingKind>;
|
|
28
28
|
constructor(parser: Parser, type?: ScopeKind, parent?: Scope | undefined);
|
|
29
29
|
createChildScope(type?: ScopeKind): Scope;
|
|
30
|
-
addVarOrBlock(context: Context, name: string, kind: BindingKind, origin: Origin): void;
|
|
31
|
-
addVarName(context: Context, name: string, kind: BindingKind): void;
|
|
30
|
+
addVarOrBlock(context: Context, name: string, kind: BindingKind, tokenStart: Location, tokenEnd: Location, origin: Origin): void;
|
|
31
|
+
addVarName(context: Context, name: string, kind: BindingKind, tokenStart: Location, tokenEnd: Location): void;
|
|
32
32
|
hasVariable(name: string): boolean;
|
|
33
|
-
addBlockName(context: Context, name: string, kind: BindingKind, origin?: Origin): void;
|
|
34
|
-
recordScopeError(type: Errors, ...params: string[]): void;
|
|
33
|
+
addBlockName(context: Context, name: string, kind: BindingKind, tokenStart: Location, tokenEnd: Location, origin?: Origin): void;
|
|
34
|
+
recordScopeError(type: Errors, tokenStart: Location, tokenEnd: Location, ...params: string[]): void;
|
|
35
35
|
reportScopeError(): void;
|
|
36
36
|
}
|
|
37
|
-
export declare function createArrowHeadParsingScope(parser: Parser, context: Context, value: string): Scope;
|
|
37
|
+
export declare function createArrowHeadParsingScope(parser: Parser, context: Context, value: string, tokenStart: Location, tokenEnd: Location): Scope;
|
|
38
38
|
export {};
|
package/dist/types/token.d.ts
CHANGED
|
@@ -133,10 +133,10 @@ export declare const enum Token {
|
|
|
133
133
|
AsKeyword = 77932,
|
|
134
134
|
AsyncKeyword = 209005,
|
|
135
135
|
AwaitKeyword = 209006,
|
|
136
|
-
ConstructorKeyword =
|
|
136
|
+
ConstructorKeyword = 209007,
|
|
137
137
|
GetKeyword = 209008,
|
|
138
138
|
SetKeyword = 209009,
|
|
139
|
-
AccessorKeyword =
|
|
139
|
+
AccessorKeyword = 209010,
|
|
140
140
|
FromKeyword = 209011,
|
|
141
141
|
OfKeyword = 471156,
|
|
142
142
|
UsingKeyword = 209013,
|
package/package.json
CHANGED