Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: reorganize babel types definitions structure #11843

Merged
merged 2 commits into from Jul 15, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
54 changes: 27 additions & 27 deletions packages/babel-types/src/asserts/generated/index.js
Expand Up @@ -305,6 +305,33 @@ export function assertTemplateLiteral(node: Object, opts?: Object = {}): void {
export function assertYieldExpression(node: Object, opts?: Object = {}): void {
assert("YieldExpression", node, opts);
}
export function assertAwaitExpression(node: Object, opts?: Object = {}): void {
assert("AwaitExpression", node, opts);
}
export function assertImport(node: Object, opts?: Object = {}): void {
assert("Import", node, opts);
}
export function assertBigIntLiteral(node: Object, opts?: Object = {}): void {
assert("BigIntLiteral", node, opts);
}
export function assertExportNamespaceSpecifier(
node: Object,
opts?: Object = {},
): void {
assert("ExportNamespaceSpecifier", node, opts);
}
export function assertOptionalMemberExpression(
node: Object,
opts?: Object = {},
): void {
assert("OptionalMemberExpression", node, opts);
}
export function assertOptionalCallExpression(
node: Object,
opts?: Object = {},
): void {
assert("OptionalCallExpression", node, opts);
}
export function assertAnyTypeAnnotation(
node: Object,
opts?: Object = {},
Expand Down Expand Up @@ -713,21 +740,12 @@ export function assertArgumentPlaceholder(
): void {
assert("ArgumentPlaceholder", node, opts);
}
export function assertAwaitExpression(node: Object, opts?: Object = {}): void {
assert("AwaitExpression", node, opts);
}
export function assertBindExpression(node: Object, opts?: Object = {}): void {
assert("BindExpression", node, opts);
}
export function assertClassProperty(node: Object, opts?: Object = {}): void {
assert("ClassProperty", node, opts);
}
export function assertOptionalMemberExpression(
node: Object,
opts?: Object = {},
): void {
assert("OptionalMemberExpression", node, opts);
}
export function assertPipelineTopicExpression(
node: Object,
opts?: Object = {},
Expand All @@ -746,12 +764,6 @@ export function assertPipelinePrimaryTopicReference(
): void {
assert("PipelinePrimaryTopicReference", node, opts);
}
export function assertOptionalCallExpression(
node: Object,
opts?: Object = {},
): void {
assert("OptionalCallExpression", node, opts);
}
export function assertClassPrivateProperty(
node: Object,
opts?: Object = {},
Expand All @@ -764,9 +776,6 @@ export function assertClassPrivateMethod(
): void {
assert("ClassPrivateMethod", node, opts);
}
export function assertImport(node: Object, opts?: Object = {}): void {
assert("Import", node, opts);
}
export function assertImportAttribute(node: Object, opts?: Object = {}): void {
assert("ImportAttribute", node, opts);
}
Expand All @@ -782,18 +791,9 @@ export function assertExportDefaultSpecifier(
): void {
assert("ExportDefaultSpecifier", node, opts);
}
export function assertExportNamespaceSpecifier(
node: Object,
opts?: Object = {},
): void {
assert("ExportNamespaceSpecifier", node, opts);
}
export function assertPrivateName(node: Object, opts?: Object = {}): void {
assert("PrivateName", node, opts);
}
export function assertBigIntLiteral(node: Object, opts?: Object = {}): void {
assert("BigIntLiteral", node, opts);
}
export function assertRecordExpression(node: Object, opts?: Object = {}): void {
assert("RecordExpression", node, opts);
}
Expand Down
50 changes: 25 additions & 25 deletions packages/babel-types/src/builders/generated/index.js
Expand Up @@ -306,6 +306,31 @@ export function yieldExpression(...args: Array<any>): Object {
return builder("YieldExpression", ...args);
}
export { yieldExpression as YieldExpression };
export function awaitExpression(...args: Array<any>): Object {
return builder("AwaitExpression", ...args);
}
export { awaitExpression as AwaitExpression };
function _import(...args: Array<any>): Object {
return builder("Import", ...args);
}
export { _import as Import };
export { _import as import };
export function bigIntLiteral(...args: Array<any>): Object {
return builder("BigIntLiteral", ...args);
}
export { bigIntLiteral as BigIntLiteral };
export function exportNamespaceSpecifier(...args: Array<any>): Object {
return builder("ExportNamespaceSpecifier", ...args);
}
export { exportNamespaceSpecifier as ExportNamespaceSpecifier };
export function optionalMemberExpression(...args: Array<any>): Object {
return builder("OptionalMemberExpression", ...args);
}
export { optionalMemberExpression as OptionalMemberExpression };
export function optionalCallExpression(...args: Array<any>): Object {
return builder("OptionalCallExpression", ...args);
}
export { optionalCallExpression as OptionalCallExpression };
export function anyTypeAnnotation(...args: Array<any>): Object {
return builder("AnyTypeAnnotation", ...args);
}
Expand Down Expand Up @@ -649,10 +674,6 @@ export function argumentPlaceholder(...args: Array<any>): Object {
return builder("ArgumentPlaceholder", ...args);
}
export { argumentPlaceholder as ArgumentPlaceholder };
export function awaitExpression(...args: Array<any>): Object {
return builder("AwaitExpression", ...args);
}
export { awaitExpression as AwaitExpression };
export function bindExpression(...args: Array<any>): Object {
return builder("BindExpression", ...args);
}
Expand All @@ -661,10 +682,6 @@ export function classProperty(...args: Array<any>): Object {
return builder("ClassProperty", ...args);
}
export { classProperty as ClassProperty };
export function optionalMemberExpression(...args: Array<any>): Object {
return builder("OptionalMemberExpression", ...args);
}
export { optionalMemberExpression as OptionalMemberExpression };
export function pipelineTopicExpression(...args: Array<any>): Object {
return builder("PipelineTopicExpression", ...args);
}
Expand All @@ -677,10 +694,6 @@ export function pipelinePrimaryTopicReference(...args: Array<any>): Object {
return builder("PipelinePrimaryTopicReference", ...args);
}
export { pipelinePrimaryTopicReference as PipelinePrimaryTopicReference };
export function optionalCallExpression(...args: Array<any>): Object {
return builder("OptionalCallExpression", ...args);
}
export { optionalCallExpression as OptionalCallExpression };
export function classPrivateProperty(...args: Array<any>): Object {
return builder("ClassPrivateProperty", ...args);
}
Expand All @@ -689,11 +702,6 @@ export function classPrivateMethod(...args: Array<any>): Object {
return builder("ClassPrivateMethod", ...args);
}
export { classPrivateMethod as ClassPrivateMethod };
function _import(...args: Array<any>): Object {
return builder("Import", ...args);
}
export { _import as Import };
export { _import as import };
export function importAttribute(...args: Array<any>): Object {
return builder("ImportAttribute", ...args);
}
Expand All @@ -710,18 +718,10 @@ export function exportDefaultSpecifier(...args: Array<any>): Object {
return builder("ExportDefaultSpecifier", ...args);
}
export { exportDefaultSpecifier as ExportDefaultSpecifier };
export function exportNamespaceSpecifier(...args: Array<any>): Object {
return builder("ExportNamespaceSpecifier", ...args);
}
export { exportNamespaceSpecifier as ExportNamespaceSpecifier };
export function privateName(...args: Array<any>): Object {
return builder("PrivateName", ...args);
}
export { privateName as PrivateName };
export function bigIntLiteral(...args: Array<any>): Object {
return builder("BigIntLiteral", ...args);
}
export { bigIntLiteral as BigIntLiteral };
export function recordExpression(...args: Array<any>): Object {
return builder("RecordExpression", ...args);
}
Expand Down