[Babel 8] Remove optional field from MemberExpression (#13407)
This commit is contained in:
parent
92bca21011
commit
176bc24312
@ -99,8 +99,6 @@ export default declare(api => {
|
|||||||
t.memberExpression(
|
t.memberExpression(
|
||||||
t.cloneNode(receiverLVal),
|
t.cloneNode(receiverLVal),
|
||||||
node.callee.property,
|
node.callee.property,
|
||||||
false,
|
|
||||||
false,
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
...argsInitializers,
|
...argsInitializers,
|
||||||
@ -114,8 +112,6 @@ export default declare(api => {
|
|||||||
t.memberExpression(
|
t.memberExpression(
|
||||||
t.cloneNode(functionLVal),
|
t.cloneNode(functionLVal),
|
||||||
t.identifier("call"),
|
t.identifier("call"),
|
||||||
false,
|
|
||||||
false,
|
|
||||||
),
|
),
|
||||||
[t.cloneNode(receiverLVal), ...args],
|
[t.cloneNode(receiverLVal), ...args],
|
||||||
),
|
),
|
||||||
|
|||||||
@ -641,7 +641,12 @@ defineType("LogicalExpression", {
|
|||||||
});
|
});
|
||||||
|
|
||||||
defineType("MemberExpression", {
|
defineType("MemberExpression", {
|
||||||
builder: ["object", "property", "computed", "optional"],
|
builder: [
|
||||||
|
"object",
|
||||||
|
"property",
|
||||||
|
"computed",
|
||||||
|
...(!process.env.BABEL_TYPES_8_BREAKING ? ["optional"] : []),
|
||||||
|
],
|
||||||
visitor: ["object", "property"],
|
visitor: ["object", "property"],
|
||||||
aliases: ["Expression", "LVal"],
|
aliases: ["Expression", "LVal"],
|
||||||
fields: {
|
fields: {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user