fix generation tests to reflect acorn update
This commit is contained in:
@@ -126,6 +126,12 @@ export function ExpressionStatement(node, print) {
|
||||
this.semicolon();
|
||||
}
|
||||
|
||||
export function AssignmentPattern(node, print) {
|
||||
print.plain(node.left);
|
||||
this.push(" = ");
|
||||
print.plain(node.right);
|
||||
}
|
||||
|
||||
export function AssignmentExpression(node, print) {
|
||||
// todo: add cases where the spaces can be dropped when in compact mode
|
||||
print.plain(node.left);
|
||||
@@ -143,8 +149,7 @@ export function BindExpression(node, print) {
|
||||
|
||||
export {
|
||||
AssignmentExpression as BinaryExpression,
|
||||
AssignmentExpression as LogicalExpression,
|
||||
AssignmentExpression as AssignmentPattern
|
||||
AssignmentExpression as LogicalExpression
|
||||
};
|
||||
|
||||
export function MemberExpression(node, print) {
|
||||
|
||||
@@ -3,11 +3,11 @@ class Foo {
|
||||
foo() {}
|
||||
["foo"]() {}
|
||||
get foo() {}
|
||||
set foo() {}
|
||||
set foo(bar) {}
|
||||
|
||||
static async foo() {}
|
||||
static foo() {}
|
||||
static ["foo"]() {}
|
||||
static get foo() {}
|
||||
static set foo() {}
|
||||
static set foo(bar) {}
|
||||
}
|
||||
|
||||
@@ -3,11 +3,11 @@ class Foo {
|
||||
foo() {}
|
||||
["foo"]() {}
|
||||
get foo() {}
|
||||
set foo() {}
|
||||
set foo(bar) {}
|
||||
|
||||
static async foo() {}
|
||||
static foo() {}
|
||||
static ["foo"]() {}
|
||||
static get foo() {}
|
||||
static set foo() {}
|
||||
static set foo(bar) {}
|
||||
}
|
||||
|
||||
@@ -16,5 +16,5 @@ var foo = {
|
||||
async foo() {},
|
||||
*foo() {},
|
||||
get foo() {},
|
||||
set foo() {}
|
||||
set foo(foo) {}
|
||||
};
|
||||
|
||||
@@ -16,5 +16,5 @@ var foo = {
|
||||
async foo() {},
|
||||
*foo() {},
|
||||
get foo() {},
|
||||
set foo() {}
|
||||
set foo(foo) {}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user