@ibyar/expressions 3.1.1 → 5.0.0
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/LICENSE +1 -1
- package/api/index.d.ts +1 -0
- package/api/index.d.ts.map +1 -1
- package/api/index.js +1 -0
- package/api/index.js.map +1 -1
- package/api/module/export.d.ts +6 -6
- package/api/module/export.js +28 -28
- package/api/module/export.js.map +1 -1
- package/api/module/import.d.ts +3 -3
- package/api/module/import.js +14 -14
- package/api/module/import.js.map +1 -1
- package/api/statement/declarations/declares.d.ts +3 -3
- package/api/statement/declarations/declares.d.ts.map +1 -1
- package/api/statement/declarations/declares.js.map +1 -1
- package/package.json +7 -6
- package/scope/scope.d.ts +4 -0
- package/scope/scope.d.ts.map +1 -1
- package/scope/scope.js +12 -1
- package/scope/scope.js.map +1 -1
- package/scope/stack.d.ts.map +1 -1
- package/scope/stack.js +2 -2
- package/scope/stack.js.map +1 -1
- package/v8/factory.d.ts +5 -5
- package/v8/factory.d.ts.map +1 -1
- package/v8/factory.js +7 -7
- package/v8/factory.js.map +1 -1
- package/v8/inline.d.ts +6 -6
- package/v8/inline.d.ts.map +1 -1
- package/v8/inline.js +23 -3
- package/v8/inline.js.map +1 -1
- package/v8/node.d.ts +5 -5
- package/v8/node.d.ts.map +1 -1
- package/v8/node.js.map +1 -1
- package/v8/parser.d.ts +1 -1
- package/v8/parser.d.ts.map +1 -1
- package/v8/parser.js +33 -41
- package/v8/parser.js.map +1 -1
- package/v8/stream.d.ts.map +1 -1
- package/v8/stream.js +6 -0
- package/v8/stream.js.map +1 -1
- package/v8/token.d.ts +1 -0
- package/v8/token.d.ts.map +1 -1
- package/v8/token.js +2 -1
- package/v8/token.js.map +1 -1
package/v8/node.d.ts
CHANGED
|
@@ -72,7 +72,7 @@ export interface NodeFactory {
|
|
|
72
72
|
createForAwaitOfStatement(left: ForDeclaration, right: ExpressionNode, body: ExpressionNode, range?: [number, number]): ForAwaitOfNode;
|
|
73
73
|
createForInStatement(initializer: ForDeclaration, enumerable: ExpressionNode, body: ExpressionNode, range?: [number, number]): ForInNode;
|
|
74
74
|
createVariableDeclaration(id: DeclarationExpression, init?: ExpressionNode, range?: [number, number]): VariableDeclarator;
|
|
75
|
-
createVariableStatement(variables: VariableDeclarator[], kind: 'let' | 'var' | 'const', range?: [number, number]): VariableDeclarationNode;
|
|
75
|
+
createVariableStatement(variables: VariableDeclarator[], kind: 'let' | 'var' | 'const' | 'using' | 'await using', range?: [number, number]): VariableDeclarationNode;
|
|
76
76
|
createContinueStatement(label?: Identifier, range?: [number, number]): ContinueStatement;
|
|
77
77
|
createBreakStatement(label?: Identifier, range?: [number, number]): BreakStatement;
|
|
78
78
|
createReturnStatement(argument?: ExpressionNode, range?: [number, number]): ReturnStatement;
|
|
@@ -107,16 +107,16 @@ export interface NodeFactory {
|
|
|
107
107
|
createMethodSignature(kind: MethodDefinitionKind, key: ExpressionNode | PrivateIdentifier, value: FunctionExpression, decorators: Decorator[], computed: boolean, isStatic: boolean, range?: [number, number]): MethodDefinition;
|
|
108
108
|
createPropertySignature(key: ExpressionNode | PrivateIdentifier, decorators: Decorator[], computed: boolean, isStatic: boolean, value?: ExpressionNode, range?: [number, number]): PropertyDefinition;
|
|
109
109
|
createClassBody(body: (MethodDefinition | PropertyDefinition | AccessorProperty | StaticBlock)[], range?: [number, number]): ClassBody;
|
|
110
|
-
createNamespaceExportDeclaration(specifiers: ExportSpecifier[], declaration?: DeclarationExpression, source?: Literal<string>,
|
|
110
|
+
createNamespaceExportDeclaration(specifiers: ExportSpecifier[], declaration?: DeclarationExpression, source?: Literal<string>, attributes?: ImportAttribute[], range?: [number, number]): ExportNamedDeclaration;
|
|
111
111
|
createExportSpecifier(local: Identifier, exported: Identifier, range?: [number, number]): ExportSpecifier;
|
|
112
112
|
createImportSpecifier(local: Identifier, imported: Identifier, range?: [number, number]): ImportSpecifier;
|
|
113
|
-
createImportDeclaration(source: Literal<string>, specifiers?: (ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier)[],
|
|
113
|
+
createImportDeclaration(source: Literal<string>, specifiers?: (ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier)[], attributes?: ImportAttribute[], range?: [number, number]): ImportDeclaration;
|
|
114
114
|
createImportNamespaceSpecifier(local: Identifier, range?: [number, number]): ImportNamespaceSpecifier;
|
|
115
115
|
createImportDefaultSpecifier(local: Identifier, range?: [number, number]): ImportDefaultSpecifier;
|
|
116
116
|
createImportExpression(source: Literal<string>, attributes?: ExpressionNode, range?: [number, number]): ImportExpression;
|
|
117
|
-
|
|
117
|
+
createImportWithEntry(key: Identifier | Literal<string>, value: Literal<string>, range?: [number, number]): ImportAttribute;
|
|
118
118
|
createExportDefault(declaration: FunctionDeclaration | ClassDeclaration | ExpressionNode, range?: [number, number]): ExportDefaultDeclaration;
|
|
119
|
-
createExportAllDeclaration(source: Literal<string>, exported?: Identifier,
|
|
119
|
+
createExportAllDeclaration(source: Literal<string>, exported?: Identifier, attributes?: ImportAttribute[], range?: [number, number]): ExportAllDeclaration;
|
|
120
120
|
createInfixExpression(operator: AssignmentOperator | LogicalOperator | BinaryOperator, left: ExpressionNode, right: ExpressionNode, range?: [number, number]): AssignmentExpression | LogicalExpression | BinaryExpression;
|
|
121
121
|
createUnaryExpression(operator: UpdateOperator | UnaryOperator | 'await', expression: ExpressionNode, range?: [number, number]): UpdateExpression | UnaryExpression | AwaitExpression;
|
|
122
122
|
createUpdateExpression(operator: UpdateOperator, argument: ExpressionNode, prefix: boolean, range?: [number, number]): UpdateExpression;
|
package/v8/node.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../src/expressions/v8/node.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,gBAAgB,EAAE,SAAS,EAAE,gBAAgB,EAAE,eAAe,EAC9D,YAAY,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,iBAAiB,EACvE,kB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,eAAe,CAAC;IAClE,eAAe,CAAC,IAAI,CAAC,EAAE,cAAc,GAAG,IAAI,IAAI,aAAa,CAAC;IAC9D,cAAc,CAAC,IAAI,CAAC,EAAE,cAAc,GAAG,IAAI,IAAI,YAAY,CAAC;IAC5D,mBAAmB,CAAC,IAAI,CAAC,EAAE,cAAc,GAAG,IAAI,IAAI,iBAAiB,CAAC;IACtE,SAAS,CAAC,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC;IAC1C,YAAY,CAAC,IAAI,CAAC,EAAE,cAAc,GAAG,IAAI,IAAI,CAAC,gBAAgB,GAAG,eAAe,CAAC,CAAC;IAClF,UAAU,CAAC,IAAI,CAAC,EAAE,cAAc,GAAG,IAAI,IAAI,QAAQ,CAAC;IACpD,kBAAkB,CAAC,IAAI,CAAC,EAAE,cAAc,GAAG,IAAI,IAAI,gBAAgB,CAAC;IACpE,4BAA4B,CAAC,IAAI,CAAC,EAAE,cAAc,GAAG,IAAI,IAAI,CAAC,QAAQ,GAAG,gBAAgB,CAAC,CAAC;IAC3F,gBAAgB,CAAC,UAAU,EAAE,cAAc,GAAG,UAAU,IAAI,cAAc,CAAC;IAC3E,oBAAoB,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI,IAAI,kBAAkB,CAAC;IACvE,OAAO,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI,IAAI,KAAK,CAAC;IAC7C,sBAAsB,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI,IAAI,oBAAoB,CAAC;IAC3E,oBAAoB,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI,IAAI,kBAAkB,CAAC;IACvE,eAAe,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI,IAAI,aAAa,CAAC;CAC7D"}
|
package/v8/node.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.js","sourceRoot":"","sources":["../../../src/expressions/v8/node.ts"],"names":[],"mappings":"","sourcesContent":["import {\n\tAccessorProperty, ClassBody, ClassDeclaration, ClassExpression,\n\tMetaProperty, MethodDefinition, MethodDefinitionKind, PrivateIdentifier,\n\tPropertyDefinition, StaticBlock, Super\n} from '../api/class/class.js';\nimport { Decorator } from '../api/class/decorator.js';\nimport { CallExpression } from '../api/computing/call.js';\nimport { DebuggerStatement } from '../api/computing/debugger.js';\nimport { NewExpression } from '../api/computing/new.js';\nimport { RestElement } from '../api/computing/rest.js';\nimport { ReturnStatement } from '../api/computing/return.js';\nimport { SpreadElement } from '../api/computing/spread.js';\nimport {\n\tCatchClauseNode, ThrowStatement, TryCatchNode\n} from '../api/computing/throw.js';\nimport { YieldExpression } from '../api/computing/yield.js';\nimport { ArrayExpression, ArrayPattern } from '../api/definition/array.js';\nimport { BindExpression } from '../api/definition/bind.js';\nimport {\n\tArrowFunctionExpression, AssignmentPattern, FunctionDeclaration, FunctionExpression\n} from '../api/definition/function.js';\nimport { MemberExpression } from '../api/definition/member.js';\nimport {\n\tObjectExpression, ObjectPattern, Property\n} from '../api/definition/object.js';\nimport {\n\tIdentifier, Literal, TaggedTemplateExpression, TemplateLiteral, ThisExpression\n} from '../api/definition/values.js';\nimport type { ExpressionNode, SourceLocation } from '../api/expression.js';\nimport { DeclarationExpression } from '../api/expression.js';\nimport { ImportAttribute } from '../api/module/common.js';\nimport {\n\tExportAllDeclaration, ExportDefaultDeclaration,\n\tExportNamedDeclaration, ExportSpecifier\n} from '../api/module/export.js';\nimport {\n\tImportDeclaration, ImportDefaultSpecifier, ImportExpression,\n\tImportNamespaceSpecifier, ImportSpecifier\n} from '../api/module/import.js';\nimport {\n\tAssignmentExpression, AssignmentOperator\n} from '../api/operators/assignment.js';\nimport { AwaitExpression } from '../api/operators/await.js';\nimport { BinaryExpression, BinaryOperator } from '../api/operators/binary.js';\nimport { ChainExpression } from '../api/operators/chaining.js';\nimport { SequenceExpression } from '../api/operators/comma.js';\nimport { GroupingExpression } from '../api/operators/grouping.js';\nimport { LogicalExpression, LogicalOperator } from '../api/operators/logical.js';\nimport { PipelineExpression } from '../api/operators/pipeline.js';\nimport { ConditionalExpression } from '../api/operators/ternary.js';\nimport { UnaryExpression, UnaryOperator } from '../api/operators/unary.js';\nimport { UpdateExpression, UpdateOperator } from '../api/operators/update.js';\nimport { Program, ProgramSourceType } from '../api/program.js';\nimport { BlockStatement } from '../api/statement/control/block.js';\nimport { EmptyStatement } from '../api/statement/control/empty.js';\nimport { IfStatement } from '../api/statement/control/if.js';\nimport {\n\tDefaultExpression, SwitchCase, SwitchStatement\n} from '../api/statement/control/switch.js';\nimport {\n\tBreakStatement, ContinueStatement, LabeledStatement\n} from '../api/statement/control/terminate.js';\nimport { WithStatement } from '../api/statement/control/with.js';\nimport {\n\tVariableDeclarationNode, VariableDeclarator\n} from '../api/statement/declarations/declares.js';\nimport {\n\tForAwaitOfNode, ForDeclaration, ForInNode, ForNode, ForOfNode\n} from '../api/statement/iterations/for.js';\nimport { DoWhileNode, WhileNode } from '../api/statement/iterations/while.js';\n\n\nexport interface SourcePositionFactory {\n\tcreateSourcePosition(range?: [number, number]): SourceLocation | undefined;\n}\n\nexport interface NodeFactory {\n\tcreateDebuggerStatement(range?: [number, number]): DebuggerStatement;\n\tcreateSuper(range?: [number, number]): Super;\n\tcreateThis(range?: [number, number]): ThisExpression;\n\tcreateNull(range?: [number, number]): Literal<null>;\n\tcreateTrue(range?: [number, number]): Literal<true>;\n\tcreateFalse(range?: [number, number]): Literal<false>;\n\tcreateVoidZero(argument: ExpressionNode, range?: [number, number]): UnaryExpression;\n\tcreateEmptyStatement(range?: [number, number]): EmptyStatement;\n\tcreateExpressionStatement(list: ExpressionNode[], range?: [number, number]): ExpressionNode;\n\tcreateCatchClause(block: BlockStatement, identifier?: ExpressionNode, range?: [number, number]): CatchClauseNode;\n\tcreateTryStatement(tryBlock: BlockStatement, catchBlock?: ExpressionNode, finallyBlock?: ExpressionNode, range?: [number, number]): TryCatchNode;\n\tcreateThrowStatement(exception: ExpressionNode, range?: [number, number]): ThrowStatement;\n\tcreateBlock(statements: ExpressionNode[], range?: [number, number]): BlockStatement;\n\tcreateIfStatement(condition: ExpressionNode, thenStatement: ExpressionNode, elseStatement?: ExpressionNode, range?: [number, number]): IfStatement;\n\tcreateDoStatement(condition: ExpressionNode, body: ExpressionNode, range?: [number, number]): DoWhileNode;\n\tcreateClassDeclaration(body: ClassBody, decorators: Decorator[], id: Identifier, superClass?: ExpressionNode, range?: [number, number]): ClassDeclaration;\n\tcreateFunctionDeclaration(formals: DeclarationExpression[], bodyBlock: BlockStatement, isAsync: boolean, isGenerator: boolean, name: Identifier, range?: [number, number]): FunctionDeclaration;\n\tcreateFunctionExpression(formals: DeclarationExpression[], bodyBlock: BlockStatement, isAsync: boolean, isGenerator: boolean, range?: [number, number]): FunctionExpression;\n\tcreateWhileStatement(condition: ExpressionNode, body: ExpressionNode, range?: [number, number]): WhileNode;\n\tcreateSwitchStatement(tag: ExpressionNode, cases: SwitchCase[], range?: [number, number]): SwitchStatement;\n\tcreateCaseBlock(test: ExpressionNode, block: BlockStatement, range?: [number, number]): SwitchCase;\n\tcreateDefaultClause(block: BlockStatement, range?: [number, number]): DefaultExpression;\n\tcreateWithStatement(object: ExpressionNode, body: ExpressionNode, range?: [number, number]): WithStatement;\n\tcreateForStatement(body: ExpressionNode, initializer: ExpressionNode, cond: ExpressionNode, next: ExpressionNode, range?: [number, number]): ForNode;\n\tcreateForOfStatement(initializer: ForDeclaration, enumerable: ExpressionNode, body: ExpressionNode, range?: [number, number]): ForOfNode;\n\tcreateForAwaitOfStatement(left: ForDeclaration, right: ExpressionNode, body: ExpressionNode, range?: [number, number]): ForAwaitOfNode;\n\tcreateForInStatement(initializer: ForDeclaration, enumerable: ExpressionNode, body: ExpressionNode, range?: [number, number]): ForInNode;\n\tcreateVariableDeclaration(id: DeclarationExpression, init?: ExpressionNode, range?: [number, number]): VariableDeclarator;\n\tcreateVariableStatement(variables: VariableDeclarator[], kind: 'let' | 'var' | 'const', range?: [number, number]): VariableDeclarationNode;\n\tcreateContinueStatement(label?: Identifier, range?: [number, number]): ContinueStatement;\n\tcreateBreakStatement(label?: Identifier, range?: [number, number]): BreakStatement;\n\tcreateReturnStatement(argument?: ExpressionNode, range?: [number, number]): ReturnStatement;\n\tcreateLabeledStatement(expression: Identifier, result: ExpressionNode, range?: [number, number]): LabeledStatement;\n\tcreateAssignmentPattern(left: DeclarationExpression, right: ExpressionNode, range?: [number, number]): AssignmentPattern;\n\tcreateSpreadElement(argument: ExpressionNode, range?: [number, number]): SpreadElement;\n\tcreateCommaListExpression(expressions: ExpressionNode[], range?: [number, number]): SequenceExpression;\n\tcreateTemplateExpression(quasis: string[], expressions: ExpressionNode[], range?: [number, number]): TemplateLiteral;\n\tcreateTaggedTemplateExpression(tag: ExpressionNode, quasis: string[], expressions: ExpressionNode[], range?: [number, number]): TaggedTemplateExpression;\n\tcreateNewExpression(className: ExpressionNode, parameters?: ExpressionNode[], range?: [number, number]): NewExpression;\n\tcreateObjectBindingPattern(properties: (Property | RestElement)[], range?: [number, number]): ObjectPattern;\n\tcreateObjectLiteralExpression(properties: Property[], range?: [number, number]): ObjectExpression;\n\tcreateArrayBindingPattern(elements: (DeclarationExpression | null)[], range?: [number, number]): ArrayPattern;\n\tcreateArrayLiteralExpression(elements: (ExpressionNode | SpreadElement | null)[], range?: [number, number]): ArrayExpression;\n\tcreateAssignment(operator: AssignmentOperator, left: ExpressionNode, right: ExpressionNode, range?: [number, number]): AssignmentExpression;\n\tcreateRestElement(argument: DeclarationExpression, range?: [number, number]): RestElement;\n\tcreateArrowFunction(params: DeclarationExpression[], body: ExpressionNode | ExpressionNode[], expression: boolean, async: boolean, range?: [number, number]): ArrowFunctionExpression;\n\tcreatePropertyDeclaration(key: ExpressionNode, value: DeclarationExpression | ExpressionNode, kind: 'init' | 'get' | 'set', method: boolean, shorthand: boolean, computed: boolean, range?: [number, number]): Property;\n\tcreateIdentifier(name: string, range?: [number, number]): Identifier;\n\tcreatePropertyAssignment(object: ExpressionNode, property: ExpressionNode, computed: boolean, optional?: boolean, range?: [number, number]): MemberExpression;\n\tcreatePipelineExpression(left: ExpressionNode, right: ExpressionNode, params?: (ExpressionNode | '?' | '...?')[], range?: [number, number]): PipelineExpression;\n\tcreateCallExpression(callee: ExpressionNode, params: ExpressionNode[], optional?: boolean, range?: [number, number]): CallExpression;\n\tcreateBindExpression(object: ExpressionNode, property: ExpressionNode, computed: boolean, optional?: boolean, range?: [number, number]): BindExpression;\n\tcreateChainExpression(expression: ExpressionNode, range?: [number, number]): ChainExpression;\n\tcreateLogicalExpression(operator: LogicalOperator, left: ExpressionNode, right: ExpressionNode, range?: [number, number],): LogicalExpression;\n\tcreateConditionalExpression(test: ExpressionNode, alternate: ExpressionNode, consequent: ExpressionNode, range?: [number, number]): ConditionalExpression;\n\tcreateYieldExpression(delegate: boolean, argument?: ExpressionNode, range?: [number, number]): YieldExpression;\n\tcreateMetaProperty(meta: Identifier, property: Identifier, range?: [number, number]): MetaProperty;\n\tcreateProgram(sourceType: ProgramSourceType, body: ExpressionNode[], range?: [number, number]): Program;\n\tcreateClassExpression(body: ClassBody, decorators: Decorator[], id?: Identifier, superClass?: ExpressionNode, range?: [number, number]): ClassExpression;\n\tcreateClassStaticBlockDeclaration(body: ExpressionNode[], range?: [number, number]): StaticBlock;\n\tcreateMethodSignature(kind: MethodDefinitionKind, key: ExpressionNode | PrivateIdentifier, value: FunctionExpression, decorators: Decorator[], computed: boolean, isStatic: boolean, range?: [number, number]): MethodDefinition;\n\tcreatePropertySignature(key: ExpressionNode | PrivateIdentifier, decorators: Decorator[], computed: boolean, isStatic: boolean, value?: ExpressionNode, range?: [number, number]): PropertyDefinition;\n\tcreateClassBody(body: (MethodDefinition | PropertyDefinition | AccessorProperty | StaticBlock)[], range?: [number, number]): ClassBody;\n\tcreateNamespaceExportDeclaration(specifiers: ExportSpecifier[], declaration?: DeclarationExpression, source?: Literal<string>, assertions?: ImportAttribute[], range?: [number, number]): ExportNamedDeclaration;\n\tcreateExportSpecifier(local: Identifier, exported: Identifier, range?: [number, number]): ExportSpecifier;\n\tcreateImportSpecifier(local: Identifier, imported: Identifier, range?: [number, number]): ImportSpecifier;\n\tcreateImportDeclaration(source: Literal<string>, specifiers?: (ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier)[], assertions?: ImportAttribute[], range?: [number, number]): ImportDeclaration;\n\tcreateImportNamespaceSpecifier(local: Identifier, range?: [number, number]): ImportNamespaceSpecifier;\n\tcreateImportDefaultSpecifier(local: Identifier, range?: [number, number]): ImportDefaultSpecifier;\n\tcreateImportExpression(source: Literal<string>, attributes?: ExpressionNode, range?: [number, number]): ImportExpression;\n\tcreateAssertEntry(key: Identifier | Literal<string>, value: Literal<string>, range?: [number, number]): ImportAttribute;\n\tcreateExportDefault(declaration: FunctionDeclaration | ClassDeclaration | ExpressionNode, range?: [number, number],): ExportDefaultDeclaration;\n\tcreateExportAllDeclaration(source: Literal<string>, exported?: Identifier, assertions?: ImportAttribute[], range?: [number, number]): ExportAllDeclaration;\n\tcreateInfixExpression(operator: AssignmentOperator | LogicalOperator | BinaryOperator, left: ExpressionNode, right: ExpressionNode, range?: [number, number]): AssignmentExpression | LogicalExpression | BinaryExpression;\n\tcreateUnaryExpression(operator: UpdateOperator | UnaryOperator | 'await', expression: ExpressionNode, range?: [number, number]): UpdateExpression | UnaryExpression | AwaitExpression;\n\tcreateUpdateExpression(operator: UpdateOperator, argument: ExpressionNode, prefix: boolean, range?: [number, number]): UpdateExpression;\n\tcreateAwaitExpression(argument: ExpressionNode, range?: [number, number]): AwaitExpression;\n\tisIdentifier(node?: ExpressionNode): node is Identifier;\n\tisObjectExpression(node?: ExpressionNode): node is ObjectExpression;\n\tisArrayExpression(node?: ExpressionNode): node is ArrayExpression;\n\tisObjectPattern(node?: ExpressionNode): node is ObjectPattern;\n\tisArrayPattern(node?: ExpressionNode): node is ArrayPattern;\n\tisAssignmentPattern(node?: ExpressionNode): node is AssignmentPattern;\n\tisPattern(node?: ExpressionNode): boolean;\n\tcanBePattern(node?: ExpressionNode): node is (ObjectExpression | ArrayExpression);\n\tisProperty(node?: ExpressionNode): node is Property;\n\tisMemberExpression(node?: ExpressionNode): node is MemberExpression;\n\tisPropertyOrMemberExpression(node?: ExpressionNode): node is (Property | MemberExpression);\n\tisEmptyStatement(expression: ExpressionNode): expression is EmptyStatement;\n\tisSequenceExpression(node: ExpressionNode): node is SequenceExpression;\n\tisSuper(node: ExpressionNode): node is Super;\n\tisAssignmentExpression(node: ExpressionNode): node is AssignmentExpression;\n\tisGroupingExpression(node: ExpressionNode): node is GroupingExpression;\n\tisSpreadElement(node: ExpressionNode): node is SpreadElement;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"node.js","sourceRoot":"","sources":["../../../src/expressions/v8/node.ts"],"names":[],"mappings":"","sourcesContent":["import {\n\tAccessorProperty, ClassBody, ClassDeclaration, ClassExpression,\n\tMetaProperty, MethodDefinition, MethodDefinitionKind, PrivateIdentifier,\n\tPropertyDefinition, StaticBlock, Super\n} from '../api/class/class.js';\nimport { Decorator } from '../api/class/decorator.js';\nimport { CallExpression } from '../api/computing/call.js';\nimport { DebuggerStatement } from '../api/computing/debugger.js';\nimport { NewExpression } from '../api/computing/new.js';\nimport { RestElement } from '../api/computing/rest.js';\nimport { ReturnStatement } from '../api/computing/return.js';\nimport { SpreadElement } from '../api/computing/spread.js';\nimport {\n\tCatchClauseNode, ThrowStatement, TryCatchNode\n} from '../api/computing/throw.js';\nimport { YieldExpression } from '../api/computing/yield.js';\nimport { ArrayExpression, ArrayPattern } from '../api/definition/array.js';\nimport { BindExpression } from '../api/definition/bind.js';\nimport {\n\tArrowFunctionExpression, AssignmentPattern, FunctionDeclaration, FunctionExpression\n} from '../api/definition/function.js';\nimport { MemberExpression } from '../api/definition/member.js';\nimport {\n\tObjectExpression, ObjectPattern, Property\n} from '../api/definition/object.js';\nimport {\n\tIdentifier, Literal, TaggedTemplateExpression, TemplateLiteral, ThisExpression\n} from '../api/definition/values.js';\nimport type { ExpressionNode, SourceLocation } from '../api/expression.js';\nimport { DeclarationExpression } from '../api/expression.js';\nimport { ImportAttribute } from '../api/module/common.js';\nimport {\n\tExportAllDeclaration, ExportDefaultDeclaration,\n\tExportNamedDeclaration, ExportSpecifier\n} from '../api/module/export.js';\nimport {\n\tImportDeclaration, ImportDefaultSpecifier, ImportExpression,\n\tImportNamespaceSpecifier, ImportSpecifier\n} from '../api/module/import.js';\nimport {\n\tAssignmentExpression, AssignmentOperator\n} from '../api/operators/assignment.js';\nimport { AwaitExpression } from '../api/operators/await.js';\nimport { BinaryExpression, BinaryOperator } from '../api/operators/binary.js';\nimport { ChainExpression } from '../api/operators/chaining.js';\nimport { SequenceExpression } from '../api/operators/comma.js';\nimport { GroupingExpression } from '../api/operators/grouping.js';\nimport { LogicalExpression, LogicalOperator } from '../api/operators/logical.js';\nimport { PipelineExpression } from '../api/operators/pipeline.js';\nimport { ConditionalExpression } from '../api/operators/ternary.js';\nimport { UnaryExpression, UnaryOperator } from '../api/operators/unary.js';\nimport { UpdateExpression, UpdateOperator } from '../api/operators/update.js';\nimport { Program, ProgramSourceType } from '../api/program.js';\nimport { BlockStatement } from '../api/statement/control/block.js';\nimport { EmptyStatement } from '../api/statement/control/empty.js';\nimport { IfStatement } from '../api/statement/control/if.js';\nimport {\n\tDefaultExpression, SwitchCase, SwitchStatement\n} from '../api/statement/control/switch.js';\nimport {\n\tBreakStatement, ContinueStatement, LabeledStatement\n} from '../api/statement/control/terminate.js';\nimport { WithStatement } from '../api/statement/control/with.js';\nimport {\n\tVariableDeclarationNode, VariableDeclarator\n} from '../api/statement/declarations/declares.js';\nimport {\n\tForAwaitOfNode, ForDeclaration, ForInNode, ForNode, ForOfNode\n} from '../api/statement/iterations/for.js';\nimport { DoWhileNode, WhileNode } from '../api/statement/iterations/while.js';\n\n\nexport interface SourcePositionFactory {\n\tcreateSourcePosition(range?: [number, number]): SourceLocation | undefined;\n}\n\nexport interface NodeFactory {\n\tcreateDebuggerStatement(range?: [number, number]): DebuggerStatement;\n\tcreateSuper(range?: [number, number]): Super;\n\tcreateThis(range?: [number, number]): ThisExpression;\n\tcreateNull(range?: [number, number]): Literal<null>;\n\tcreateTrue(range?: [number, number]): Literal<true>;\n\tcreateFalse(range?: [number, number]): Literal<false>;\n\tcreateVoidZero(argument: ExpressionNode, range?: [number, number]): UnaryExpression;\n\tcreateEmptyStatement(range?: [number, number]): EmptyStatement;\n\tcreateExpressionStatement(list: ExpressionNode[], range?: [number, number]): ExpressionNode;\n\tcreateCatchClause(block: BlockStatement, identifier?: ExpressionNode, range?: [number, number]): CatchClauseNode;\n\tcreateTryStatement(tryBlock: BlockStatement, catchBlock?: ExpressionNode, finallyBlock?: ExpressionNode, range?: [number, number]): TryCatchNode;\n\tcreateThrowStatement(exception: ExpressionNode, range?: [number, number]): ThrowStatement;\n\tcreateBlock(statements: ExpressionNode[], range?: [number, number]): BlockStatement;\n\tcreateIfStatement(condition: ExpressionNode, thenStatement: ExpressionNode, elseStatement?: ExpressionNode, range?: [number, number]): IfStatement;\n\tcreateDoStatement(condition: ExpressionNode, body: ExpressionNode, range?: [number, number]): DoWhileNode;\n\tcreateClassDeclaration(body: ClassBody, decorators: Decorator[], id: Identifier, superClass?: ExpressionNode, range?: [number, number]): ClassDeclaration;\n\tcreateFunctionDeclaration(formals: DeclarationExpression[], bodyBlock: BlockStatement, isAsync: boolean, isGenerator: boolean, name: Identifier, range?: [number, number]): FunctionDeclaration;\n\tcreateFunctionExpression(formals: DeclarationExpression[], bodyBlock: BlockStatement, isAsync: boolean, isGenerator: boolean, range?: [number, number]): FunctionExpression;\n\tcreateWhileStatement(condition: ExpressionNode, body: ExpressionNode, range?: [number, number]): WhileNode;\n\tcreateSwitchStatement(tag: ExpressionNode, cases: SwitchCase[], range?: [number, number]): SwitchStatement;\n\tcreateCaseBlock(test: ExpressionNode, block: BlockStatement, range?: [number, number]): SwitchCase;\n\tcreateDefaultClause(block: BlockStatement, range?: [number, number]): DefaultExpression;\n\tcreateWithStatement(object: ExpressionNode, body: ExpressionNode, range?: [number, number]): WithStatement;\n\tcreateForStatement(body: ExpressionNode, initializer: ExpressionNode, cond: ExpressionNode, next: ExpressionNode, range?: [number, number]): ForNode;\n\tcreateForOfStatement(initializer: ForDeclaration, enumerable: ExpressionNode, body: ExpressionNode, range?: [number, number]): ForOfNode;\n\tcreateForAwaitOfStatement(left: ForDeclaration, right: ExpressionNode, body: ExpressionNode, range?: [number, number]): ForAwaitOfNode;\n\tcreateForInStatement(initializer: ForDeclaration, enumerable: ExpressionNode, body: ExpressionNode, range?: [number, number]): ForInNode;\n\tcreateVariableDeclaration(id: DeclarationExpression, init?: ExpressionNode, range?: [number, number]): VariableDeclarator;\n\tcreateVariableStatement(variables: VariableDeclarator[], kind: 'let' | 'var' | 'const' | 'using' | 'await using', range?: [number, number]): VariableDeclarationNode;\n\tcreateContinueStatement(label?: Identifier, range?: [number, number]): ContinueStatement;\n\tcreateBreakStatement(label?: Identifier, range?: [number, number]): BreakStatement;\n\tcreateReturnStatement(argument?: ExpressionNode, range?: [number, number]): ReturnStatement;\n\tcreateLabeledStatement(expression: Identifier, result: ExpressionNode, range?: [number, number]): LabeledStatement;\n\tcreateAssignmentPattern(left: DeclarationExpression, right: ExpressionNode, range?: [number, number]): AssignmentPattern;\n\tcreateSpreadElement(argument: ExpressionNode, range?: [number, number]): SpreadElement;\n\tcreateCommaListExpression(expressions: ExpressionNode[], range?: [number, number]): SequenceExpression;\n\tcreateTemplateExpression(quasis: string[], expressions: ExpressionNode[], range?: [number, number]): TemplateLiteral;\n\tcreateTaggedTemplateExpression(tag: ExpressionNode, quasis: string[], expressions: ExpressionNode[], range?: [number, number]): TaggedTemplateExpression;\n\tcreateNewExpression(className: ExpressionNode, parameters?: ExpressionNode[], range?: [number, number]): NewExpression;\n\tcreateObjectBindingPattern(properties: (Property | RestElement)[], range?: [number, number]): ObjectPattern;\n\tcreateObjectLiteralExpression(properties: Property[], range?: [number, number]): ObjectExpression;\n\tcreateArrayBindingPattern(elements: (DeclarationExpression | null)[], range?: [number, number]): ArrayPattern;\n\tcreateArrayLiteralExpression(elements: (ExpressionNode | SpreadElement | null)[], range?: [number, number]): ArrayExpression;\n\tcreateAssignment(operator: AssignmentOperator, left: ExpressionNode, right: ExpressionNode, range?: [number, number]): AssignmentExpression;\n\tcreateRestElement(argument: DeclarationExpression, range?: [number, number]): RestElement;\n\tcreateArrowFunction(params: DeclarationExpression[], body: ExpressionNode | ExpressionNode[], expression: boolean, async: boolean, range?: [number, number]): ArrowFunctionExpression;\n\tcreatePropertyDeclaration(key: ExpressionNode, value: DeclarationExpression | ExpressionNode, kind: 'init' | 'get' | 'set', method: boolean, shorthand: boolean, computed: boolean, range?: [number, number]): Property;\n\tcreateIdentifier(name: string, range?: [number, number]): Identifier;\n\tcreatePropertyAssignment(object: ExpressionNode, property: ExpressionNode, computed: boolean, optional?: boolean, range?: [number, number]): MemberExpression;\n\tcreatePipelineExpression(left: ExpressionNode, right: ExpressionNode, params?: (ExpressionNode | '?' | '...?')[], range?: [number, number]): PipelineExpression;\n\tcreateCallExpression(callee: ExpressionNode, params: ExpressionNode[], optional?: boolean, range?: [number, number]): CallExpression;\n\tcreateBindExpression(object: ExpressionNode, property: ExpressionNode, computed: boolean, optional?: boolean, range?: [number, number]): BindExpression;\n\tcreateChainExpression(expression: ExpressionNode, range?: [number, number]): ChainExpression;\n\tcreateLogicalExpression(operator: LogicalOperator, left: ExpressionNode, right: ExpressionNode, range?: [number, number],): LogicalExpression;\n\tcreateConditionalExpression(test: ExpressionNode, alternate: ExpressionNode, consequent: ExpressionNode, range?: [number, number]): ConditionalExpression;\n\tcreateYieldExpression(delegate: boolean, argument?: ExpressionNode, range?: [number, number]): YieldExpression;\n\tcreateMetaProperty(meta: Identifier, property: Identifier, range?: [number, number]): MetaProperty;\n\tcreateProgram(sourceType: ProgramSourceType, body: ExpressionNode[], range?: [number, number]): Program;\n\tcreateClassExpression(body: ClassBody, decorators: Decorator[], id?: Identifier, superClass?: ExpressionNode, range?: [number, number]): ClassExpression;\n\tcreateClassStaticBlockDeclaration(body: ExpressionNode[], range?: [number, number]): StaticBlock;\n\tcreateMethodSignature(kind: MethodDefinitionKind, key: ExpressionNode | PrivateIdentifier, value: FunctionExpression, decorators: Decorator[], computed: boolean, isStatic: boolean, range?: [number, number]): MethodDefinition;\n\tcreatePropertySignature(key: ExpressionNode | PrivateIdentifier, decorators: Decorator[], computed: boolean, isStatic: boolean, value?: ExpressionNode, range?: [number, number]): PropertyDefinition;\n\tcreateClassBody(body: (MethodDefinition | PropertyDefinition | AccessorProperty | StaticBlock)[], range?: [number, number]): ClassBody;\n\tcreateNamespaceExportDeclaration(specifiers: ExportSpecifier[], declaration?: DeclarationExpression, source?: Literal<string>, attributes?: ImportAttribute[], range?: [number, number]): ExportNamedDeclaration;\n\tcreateExportSpecifier(local: Identifier, exported: Identifier, range?: [number, number]): ExportSpecifier;\n\tcreateImportSpecifier(local: Identifier, imported: Identifier, range?: [number, number]): ImportSpecifier;\n\tcreateImportDeclaration(source: Literal<string>, specifiers?: (ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier)[], attributes?: ImportAttribute[], range?: [number, number]): ImportDeclaration;\n\tcreateImportNamespaceSpecifier(local: Identifier, range?: [number, number]): ImportNamespaceSpecifier;\n\tcreateImportDefaultSpecifier(local: Identifier, range?: [number, number]): ImportDefaultSpecifier;\n\tcreateImportExpression(source: Literal<string>, attributes?: ExpressionNode, range?: [number, number]): ImportExpression;\n\tcreateImportWithEntry(key: Identifier | Literal<string>, value: Literal<string>, range?: [number, number]): ImportAttribute;\n\tcreateExportDefault(declaration: FunctionDeclaration | ClassDeclaration | ExpressionNode, range?: [number, number],): ExportDefaultDeclaration;\n\tcreateExportAllDeclaration(source: Literal<string>, exported?: Identifier, attributes?: ImportAttribute[], range?: [number, number]): ExportAllDeclaration;\n\tcreateInfixExpression(operator: AssignmentOperator | LogicalOperator | BinaryOperator, left: ExpressionNode, right: ExpressionNode, range?: [number, number]): AssignmentExpression | LogicalExpression | BinaryExpression;\n\tcreateUnaryExpression(operator: UpdateOperator | UnaryOperator | 'await', expression: ExpressionNode, range?: [number, number]): UpdateExpression | UnaryExpression | AwaitExpression;\n\tcreateUpdateExpression(operator: UpdateOperator, argument: ExpressionNode, prefix: boolean, range?: [number, number]): UpdateExpression;\n\tcreateAwaitExpression(argument: ExpressionNode, range?: [number, number]): AwaitExpression;\n\tisIdentifier(node?: ExpressionNode): node is Identifier;\n\tisObjectExpression(node?: ExpressionNode): node is ObjectExpression;\n\tisArrayExpression(node?: ExpressionNode): node is ArrayExpression;\n\tisObjectPattern(node?: ExpressionNode): node is ObjectPattern;\n\tisArrayPattern(node?: ExpressionNode): node is ArrayPattern;\n\tisAssignmentPattern(node?: ExpressionNode): node is AssignmentPattern;\n\tisPattern(node?: ExpressionNode): boolean;\n\tcanBePattern(node?: ExpressionNode): node is (ObjectExpression | ArrayExpression);\n\tisProperty(node?: ExpressionNode): node is Property;\n\tisMemberExpression(node?: ExpressionNode): node is MemberExpression;\n\tisPropertyOrMemberExpression(node?: ExpressionNode): node is (Property | MemberExpression);\n\tisEmptyStatement(expression: ExpressionNode): expression is EmptyStatement;\n\tisSequenceExpression(node: ExpressionNode): node is SequenceExpression;\n\tisSuper(node: ExpressionNode): node is Super;\n\tisAssignmentExpression(node: ExpressionNode): node is AssignmentExpression;\n\tisGroupingExpression(node: ExpressionNode): node is GroupingExpression;\n\tisSpreadElement(node: ExpressionNode): node is SpreadElement;\n}\n"]}
|
package/v8/parser.d.ts
CHANGED
|
@@ -50,7 +50,7 @@ export declare class JavaScriptParser extends JavaScriptInlineParser {
|
|
|
50
50
|
protected parseImportDeclaration(): ExpressionNode | undefined;
|
|
51
51
|
protected parseImportExpressions(): ExpressionNode;
|
|
52
52
|
protected parseVariableStatement(varContext: VariableDeclarationContext, names: string[]): import("../index.js").VariableDeclarationNode;
|
|
53
|
-
protected
|
|
53
|
+
protected parseImportWithOrAssertClause(): ImportAttribute[] | undefined;
|
|
54
54
|
protected parseModuleSpecifier(): Literal<string>;
|
|
55
55
|
protected parseExportClause(): ExportSpecifier[];
|
|
56
56
|
protected parseExportSpecifierName(): Identifier | Literal<string>;
|
package/v8/parser.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../../src/expressions/v8/parser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAEN,KAAK,EACL,SAAS,EACT,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,WAAW,EACX,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,eAAe,EAAmB,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,wBAAwB,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AACpF,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EACN,SAAS,EAET,wBAAwB,EAQxB,gBAAgB,EAEhB,0BAA0B,EAC1B,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AACxF,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAS,eAAe,EAAE,MAAM,YAAY,CAAC;AAEpD,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAEjE,OAAO,EAAY,YAAY,EAAE,MAAM,eAAe,CAAC;AAEvD,MAAM,MAAM,aAAa,GAAG;IAAE,IAAI,CAAC,EAAE,YAAY,CAAC;IAAC,OAAO,CAAC,EAAE,WAAW,CAAC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ser {
|
|
|
452
452
|
// ExportDeclaration:
|
|
453
453
|
// 'export' '*' 'from' ModuleSpecifier ';'
|
|
454
454
|
// 'export' '*' 'from' ModuleSpecifier [no LineTerminator here]
|
|
455
|
-
//
|
|
455
|
+
// WithClause ';'
|
|
456
456
|
// 'export' '*' 'as' IdentifierName 'from' ModuleSpecifier ';'
|
|
457
457
|
// 'export' '*' 'as' IdentifierName 'from' ModuleSpecifier
|
|
458
|
-
// [no LineTerminator here]
|
|
458
|
+
// [no LineTerminator here] WithClause ';'
|
|
459
459
|
// 'export' '*' 'as' ModuleExportName 'from' ModuleSpecifier ';'
|
|
460
460
|
// 'export' '*' 'as' ModuleExportName 'from' ModuleSpecifier ';'
|
|
461
|
-
// [no LineTerminator here]
|
|
461
|
+
// [no LineTerminator here] WithClause ';'
|
|
462
462
|
// 'export' ExportClause ('from' ModuleSpecifier)? ';'
|
|
463
463
|
// 'export' ExportClause ('from' ModuleSpecifier [no LineTerminator here]
|
|
464
|
-
//
|
|
464
|
+
// WithClause)? ';'
|
|
465
465
|
// 'export' VariableStatement
|
|
466
466
|
// 'export' Declaration
|
|
467
467
|
// 'export' 'default' ... (handled in ParseExportDefault)
|
|
@@ -498,11 +498,11 @@ export class JavaScriptParser extends JavaScriptInlineParser {
|
|
|
498
498
|
// ParseExportClause(& reserved_loc, & string_literal_local_name_loc);
|
|
499
499
|
const exportData = this.parseExportClause();
|
|
500
500
|
let moduleSpecifier;
|
|
501
|
-
let
|
|
501
|
+
let importAttributes;
|
|
502
502
|
if (this.checkContextualKeyword('from')) {
|
|
503
503
|
// Scanner::Location specifier_loc = scanner() -> peek_location();
|
|
504
504
|
moduleSpecifier = this.parseModuleSpecifier();
|
|
505
|
-
|
|
505
|
+
importAttributes = this.parseImportWithOrAssertClause();
|
|
506
506
|
this.expectSemicolon();
|
|
507
507
|
// if (exportData.isEmpty()) {
|
|
508
508
|
// // module() -> AddEmptyImport(module_specifier, import_assertions, specifier_loc, zone());
|
|
@@ -530,8 +530,7 @@ export class JavaScriptParser extends JavaScriptInlineParser {
|
|
|
530
530
|
// zone());
|
|
531
531
|
// }
|
|
532
532
|
}
|
|
533
|
-
return this.factory.createNamespaceExportDeclaration(exportData, undefined, moduleSpecifier,
|
|
534
|
-
// return factory() -> EmptyStatement();
|
|
533
|
+
return this.factory.createNamespaceExportDeclaration(exportData, undefined, moduleSpecifier, importAttributes, this.createRange(start));
|
|
535
534
|
}
|
|
536
535
|
case Token.FUNCTION: {
|
|
537
536
|
const declaration = this.parseFunctionDeclaration();
|
|
@@ -580,8 +579,8 @@ export class JavaScriptParser extends JavaScriptInlineParser {
|
|
|
580
579
|
// 'import' ImportClause 'from' ModuleSpecifier ';'
|
|
581
580
|
// 'import' ModuleSpecifier ';'
|
|
582
581
|
// 'import' ImportClause 'from' ModuleSpecifier [no LineTerminator here]
|
|
583
|
-
//
|
|
584
|
-
// 'import' ModuleSpecifier [no LineTerminator here]
|
|
582
|
+
// WithClause ';'
|
|
583
|
+
// 'import' ModuleSpecifier [no LineTerminator here] WithClause';'
|
|
585
584
|
//
|
|
586
585
|
// ImportClause :
|
|
587
586
|
// ImportedDefaultBinding
|
|
@@ -598,10 +597,10 @@ export class JavaScriptParser extends JavaScriptInlineParser {
|
|
|
598
597
|
if (tok.isType(Token.STRING)) {
|
|
599
598
|
// Scanner::Location specifier_loc = scanner() -> peek_location();
|
|
600
599
|
const moduleSpecifier = this.parseModuleSpecifier();
|
|
601
|
-
const
|
|
600
|
+
const importAttributes = this.parseImportWithOrAssertClause();
|
|
602
601
|
this.expectSemicolon();
|
|
603
602
|
// module() -> AddEmptyImport(module_specifier, import_assertions, specifier_loc,zone());
|
|
604
|
-
return this.factory.createImportDeclaration(moduleSpecifier, undefined,
|
|
603
|
+
return this.factory.createImportDeclaration(moduleSpecifier, undefined, importAttributes, this.createRange(start));
|
|
605
604
|
}
|
|
606
605
|
// Parse ImportedDefaultBinding if present.
|
|
607
606
|
let importDefaultBinding;
|
|
@@ -638,7 +637,7 @@ export class JavaScriptParser extends JavaScriptInlineParser {
|
|
|
638
637
|
// ExpectContextualKeyword(ast_value_factory() -> from_string());
|
|
639
638
|
// Scanner::Location specifier_loc = scanner() -> peek_location();
|
|
640
639
|
const moduleSpecifier = this.parseModuleSpecifier();
|
|
641
|
-
const
|
|
640
|
+
const importAttributes = this.parseImportWithOrAssertClause();
|
|
642
641
|
this.expectSemicolon();
|
|
643
642
|
// Now that we have all the information, we can make the appropriate
|
|
644
643
|
// declarations.
|
|
@@ -656,7 +655,7 @@ export class JavaScriptParser extends JavaScriptInlineParser {
|
|
|
656
655
|
if (namedImports?.length) {
|
|
657
656
|
specifiers.push(...namedImports);
|
|
658
657
|
}
|
|
659
|
-
return this.factory.createImportDeclaration(moduleSpecifier, specifiers.length ? specifiers : undefined,
|
|
658
|
+
return this.factory.createImportDeclaration(moduleSpecifier, specifiers.length ? specifiers : undefined, importAttributes, this.createRange(start));
|
|
660
659
|
}
|
|
661
660
|
parseImportExpressions() {
|
|
662
661
|
const start = this.consume(Token.IMPORT);
|
|
@@ -680,11 +679,11 @@ export class JavaScriptParser extends JavaScriptInlineParser {
|
|
|
680
679
|
return this.factory.createImportExpression(specifier, undefined, this.createRange(start));
|
|
681
680
|
}
|
|
682
681
|
else {
|
|
683
|
-
const
|
|
682
|
+
const importAttributes = this.parseAssignmentExpressionCoverGrammar();
|
|
684
683
|
this.check(Token.COMMA); // A trailing comma is allowed after the import
|
|
685
684
|
// assertions.
|
|
686
685
|
this.expect(Token.RPAREN);
|
|
687
|
-
return this.factory.createImportExpression(specifier,
|
|
686
|
+
return this.factory.createImportExpression(specifier, importAttributes, this.createRange(start));
|
|
688
687
|
}
|
|
689
688
|
}
|
|
690
689
|
this.expect(Token.RPAREN);
|
|
@@ -710,27 +709,20 @@ export class JavaScriptParser extends JavaScriptInlineParser {
|
|
|
710
709
|
names.push(...declarations.getDeclarations().map(d => d.getId().toString()));
|
|
711
710
|
return declarations;
|
|
712
711
|
}
|
|
713
|
-
|
|
714
|
-
//
|
|
715
|
-
//
|
|
716
|
-
//
|
|
717
|
-
//
|
|
718
|
-
//
|
|
719
|
-
//
|
|
720
|
-
//
|
|
721
|
-
|
|
722
|
-
// StringLiteral
|
|
723
|
-
// auto import_assertions = zone() -> New<ImportAssertions>(zone());
|
|
724
|
-
// if (!FLAG_harmony_import_assertions) {
|
|
725
|
-
// return import_assertions;
|
|
726
|
-
// }
|
|
727
|
-
// Assert clause is optional, and cannot be preceded by a LineTerminator.
|
|
728
|
-
if (this.scanner.hasLineTerminatorBeforeNext() || !this.checkContextualKeyword('assert')) {
|
|
712
|
+
parseImportWithOrAssertClause() {
|
|
713
|
+
// WithClause :
|
|
714
|
+
// with '{' '}'
|
|
715
|
+
// with '{' WithEntries ','? '}'
|
|
716
|
+
// WithEntries :
|
|
717
|
+
// LiteralPropertyName
|
|
718
|
+
// LiteralPropertyName ':' StringLiteral , WithEntries
|
|
719
|
+
// with clause is optional, and cannot be preceded by a LineTerminator.
|
|
720
|
+
if (this.scanner.hasLineTerminatorBeforeNext() || !this.expect(Token.WITH)) {
|
|
729
721
|
return undefined;
|
|
730
722
|
}
|
|
731
723
|
this.expect(Token.LBRACE);
|
|
732
724
|
const counts = {};
|
|
733
|
-
const
|
|
725
|
+
const importAttributes = [];
|
|
734
726
|
while (this.peek().isNotType(Token.RBRACE)) {
|
|
735
727
|
let attributeKey = this.checkAndGetValue(Token.STRING);
|
|
736
728
|
if (!attributeKey) {
|
|
@@ -738,11 +730,11 @@ export class JavaScriptParser extends JavaScriptInlineParser {
|
|
|
738
730
|
}
|
|
739
731
|
this.expect(Token.COLON);
|
|
740
732
|
const attributeValue = this.expectAndGetValue(Token.STRING);
|
|
741
|
-
|
|
733
|
+
importAttributes.push(this.factory.createImportWithEntry(attributeKey, attributeValue, this.createRange(attributeKey)));
|
|
742
734
|
counts[attributeKey.toString()] = (counts[attributeKey.toString()] ?? 0) + 1;
|
|
743
735
|
if (counts[attributeKey.toString()] > 1) {
|
|
744
|
-
// // It is a syntax error if two
|
|
745
|
-
throw new SyntaxError(this.errorMessage('Import
|
|
736
|
+
// // It is a syntax error if two ImportWithEntry have the same key.
|
|
737
|
+
throw new SyntaxError(this.errorMessage('Import With Duplicate Key'));
|
|
746
738
|
}
|
|
747
739
|
if (this.peek().isType(Token.RBRACE))
|
|
748
740
|
break;
|
|
@@ -751,7 +743,7 @@ export class JavaScriptParser extends JavaScriptInlineParser {
|
|
|
751
743
|
}
|
|
752
744
|
}
|
|
753
745
|
this.expect(Token.RBRACE);
|
|
754
|
-
return
|
|
746
|
+
return importAttributes;
|
|
755
747
|
}
|
|
756
748
|
parseModuleSpecifier() {
|
|
757
749
|
// ModuleSpecifier :
|
|
@@ -913,10 +905,10 @@ export class JavaScriptParser extends JavaScriptInlineParser {
|
|
|
913
905
|
this.expectContextualKeyword('from');
|
|
914
906
|
// Scanner::Location specifier_loc = scanner() -> peek_location();
|
|
915
907
|
const moduleSpecifier = this.parseModuleSpecifier();
|
|
916
|
-
const
|
|
908
|
+
const importAttributes = this.parseImportWithOrAssertClause();
|
|
917
909
|
this.expectSemicolon();
|
|
918
910
|
// module() -> AddStarExport(module_specifier, import_assertions, loc,specifier_loc, zone());
|
|
919
|
-
return this.factory.createExportAllDeclaration(moduleSpecifier, undefined,
|
|
911
|
+
return this.factory.createExportAllDeclaration(moduleSpecifier, undefined, importAttributes, this.createRange(start));
|
|
920
912
|
}
|
|
921
913
|
// 'export' '*' 'as' IdentifierName 'from' ModuleSpecifier ';'
|
|
922
914
|
//
|
|
@@ -937,12 +929,12 @@ export class JavaScriptParser extends JavaScriptInlineParser {
|
|
|
937
929
|
// DeclareUnboundVariable(local_name, VariableMode:: kConst, kCreatedInitialized,pos);
|
|
938
930
|
this.expectContextualKeyword('from');
|
|
939
931
|
const moduleSpecifier = this.parseModuleSpecifier();
|
|
940
|
-
const
|
|
932
|
+
const importAttributes = this.parseImportWithOrAssertClause();
|
|
941
933
|
this.expectSemicolon();
|
|
942
934
|
// const specifiers = [new ExportSpecifier(exportName as Identifier, exportName as Identifier)];
|
|
943
935
|
// module() -> AddStarImport(local_name, module_specifier, import_assertions,local_name_loc, specifier_loc, zone());
|
|
944
936
|
// module() -> AddExport(local_name, export_name, export_name_loc, zone());
|
|
945
|
-
return this.factory.createExportAllDeclaration(moduleSpecifier, exportName,
|
|
937
|
+
return this.factory.createExportAllDeclaration(moduleSpecifier, exportName, importAttributes, this.createRange(start));
|
|
946
938
|
}
|
|
947
939
|
parseWithStatement() {
|
|
948
940
|
// WithStatement ::
|