Unify parens printing for postfix-like expressions (#11382)

* Unify parens printing for postfix exprs: (), [...], !

* Also move template tags handling

* Add tagged template test

* isPostfixExpression -> hasPostfixPart
This commit is contained in:
Nicolò Ribaudo
2020-04-07 21:36:35 +02:00
committed by GitHub
parent b04ddff853
commit ce6cc4eb55
11 changed files with 64 additions and 52 deletions

View File

@@ -15,5 +15,5 @@ async function g() {
F: A,
d: []
};
}, (await B));
}, await B);
}

View File

@@ -15,5 +15,5 @@ function* g() {
F: A,
d: []
};
}, (yield B));
}, yield B);
}