Skip to content

Commit

Permalink
put expression alias back
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagoarrais committed Dec 10, 2018
1 parent f44bf89 commit 48b880d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/babel-types/src/definitions/experimental.js
Expand Up @@ -109,7 +109,9 @@ defineType("PipelineBareFunction", {
},
});

defineType("PipelinePrimaryTopicReference", {});
defineType("PipelinePrimaryTopicReference", {
aliases: ["Expression"],
});

defineType("OptionalCallExpression", {
visitor: ["callee", "arguments", "typeParameters", "typeArguments"],
Expand Down
1 change: 1 addition & 0 deletions packages/babel-types/src/validators/generated/index.js
Expand Up @@ -3212,6 +3212,7 @@ export function isExpression(node: Object, opts?: Object): boolean {
"AwaitExpression" === nodeType ||
"BindExpression" === nodeType ||
"OptionalMemberExpression" === nodeType ||
"PipelinePrimaryTopicReference" === nodeType ||
"OptionalCallExpression" === nodeType ||
"Import" === nodeType ||
"DoExpression" === nodeType ||
Expand Down

0 comments on commit 48b880d

Please sign in to comment.