Skip to content

Commit

Permalink
Remove some overbroad aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagoarrais committed Dec 4, 2018
1 parent 87795ec commit f44bf89
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
6 changes: 1 addition & 5 deletions packages/babel-types/src/definitions/experimental.js
Expand Up @@ -92,7 +92,6 @@ defineType("OptionalMemberExpression", {
defineType("PipelineTopicExpression", {
builder: ["expression"],
visitor: ["expression"],
aliases: ["Expression"],
fields: {
expression: {
validate: assertNodeType("Expression"),
Expand All @@ -103,17 +102,14 @@ defineType("PipelineTopicExpression", {
defineType("PipelineBareFunction", {
builder: ["callee"],
visitor: ["callee"],
aliases: ["Expression"],
fields: {
callee: {
validate: assertNodeType("Expression"),
},
},
});

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

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

0 comments on commit f44bf89

Please sign in to comment.