diff --git a/packages/babel-generator/test/index.js b/packages/babel-generator/test/index.js index 54ff79c919d7..25a93045ddcc 100644 --- a/packages/babel-generator/test/index.js +++ b/packages/babel-generator/test/index.js @@ -463,32 +463,32 @@ describe("programmatic generation", function () { describe("typescript generate parentheses if necessary", function () { it("wraps around union for array", () => { - const typeStatement = t.TSArrayType( - t.TSUnionType([ - t.TSIntersectionType([t.TSNumberKeyword(), t.TSBooleanKeyword()]), - t.TSNullKeyword(), + const typeStatement = t.tsArrayType( + t.tsUnionType([ + t.tsIntersectionType([t.tsNumberKeyword(), t.tsBooleanKeyword()]), + t.tsNullKeyword(), ]), ); const output = generate(typeStatement).code; expect(output).toBe("((number & boolean) | null)[]"); }); it("wraps around intersection for array", () => { - const typeStatement = t.TSArrayType( - t.TSIntersectionType([t.TSNumberKeyword(), t.TSBooleanKeyword()]), + const typeStatement = t.tsArrayType( + t.tsIntersectionType([t.tsNumberKeyword(), t.tsBooleanKeyword()]), ); const output = generate(typeStatement).code; expect(output).toBe("(number & boolean)[]"); }); it("wraps around rest", () => { const typeStatement = t.tsRestType( - t.TSIntersectionType([t.TSNumberKeyword(), t.TSBooleanKeyword()]), + t.tsIntersectionType([t.tsNumberKeyword(), t.tsBooleanKeyword()]), ); const output = generate(typeStatement).code; expect(output).toBe("...(number & boolean)"); }); it("wraps around optional type", () => { const typeStatement = t.tsOptionalType( - t.TSIntersectionType([t.TSNumberKeyword(), t.TSBooleanKeyword()]), + t.tsIntersectionType([t.tsNumberKeyword(), t.tsBooleanKeyword()]), ); const output = generate(typeStatement).code; expect(output).toBe("(number & boolean)?"); diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/imports/parameter-decorators/plugin.js b/packages/babel-plugin-transform-typescript/test/fixtures/imports/parameter-decorators/plugin.js index a066043915fa..834f2517801f 100644 --- a/packages/babel-plugin-transform-typescript/test/fixtures/imports/parameter-decorators/plugin.js +++ b/packages/babel-plugin-transform-typescript/test/fixtures/imports/parameter-decorators/plugin.js @@ -25,7 +25,7 @@ exports.default = function(_ref) { .forEach(function(decorator) { resultantDecorator = types.callExpression( decorator.expression, - [resultantDecorator || types.Identifier(paramUidName)] + [resultantDecorator || types.identifier(paramUidName)] ); }); @@ -40,12 +40,12 @@ exports.default = function(_ref) { "body", types.variableDeclaration("var", [ types.variableDeclarator( - types.Identifier(decoratedParamUidName), + types.identifier(decoratedParamUidName), resultantDecorator ), ]) ); - param.replaceWith(types.Identifier(paramUidName)); + param.replaceWith(types.identifier(paramUidName)); } }); }, diff --git a/packages/babel-types/scripts/generators/generateBuilders.js b/packages/babel-types/scripts/generators/generateBuilders.js index 08a5b6fc6155..5ca9f74643aa 100644 --- a/packages/babel-types/scripts/generators/generateBuilders.js +++ b/packages/babel-types/scripts/generators/generateBuilders.js @@ -11,15 +11,29 @@ module.exports = function generateBuilders() { */ import builder from "../builder";\n\n`; + const reservedNames = new Set(["super", "import"]); Object.keys(definitions.BUILDER_KEYS).forEach(type => { - output += `export function ${type}(...args: Array): Object { return builder("${type}", ...args); } -export { ${type} as ${formatBuilderName(type)} };\n`; + const formatedBuilderName = formatBuilderName(type); + const formatedBuilderNameLocal = reservedNames.has(formatedBuilderName) + ? `_${formatedBuilderName}` + : formatedBuilderName; + output += `${ + formatedBuilderNameLocal === formatedBuilderName ? "export " : "" + }function ${formatedBuilderNameLocal}(...args: Array): Object { return builder("${type}", ...args); }\n`; + // This is needed for backwards compatibility. + // arrayExpression -> ArrayExpression + output += `export { ${formatedBuilderNameLocal} as ${type} };\n`; + if (formatedBuilderNameLocal !== formatedBuilderName) { + output += `export { ${formatedBuilderNameLocal} as ${formatedBuilderName} };\n`; + } // This is needed for backwards compatibility. // It should be removed in the next major version. // JSXIdentifier -> jSXIdentifier if (/^[A-Z]{2}/.test(type)) { - output += `export { ${type} as ${lowerFirst(type)} }\n`; + output += `export { ${formatedBuilderNameLocal} as ${lowerFirst( + type + )} }\n`; } }); @@ -27,7 +41,7 @@ export { ${type} as ${formatBuilderName(type)} };\n`; const newType = definitions.DEPRECATED_KEYS[type]; output += `export function ${type}(...args: Array): Object { console.trace("The node type ${type} has been renamed to ${newType}"); - return ${type}("${type}", ...args); + return builder("${type}", ...args); } export { ${type} as ${formatBuilderName(type)} };\n`; diff --git a/packages/babel-types/src/builders/generated/index.js b/packages/babel-types/src/builders/generated/index.js index 676ff2c0d4dc..321a666787ef 100644 --- a/packages/babel-types/src/builders/generated/index.js +++ b/packages/babel-types/src/builders/generated/index.js @@ -5,1055 +5,1057 @@ */ import builder from "../builder"; -export function ArrayExpression(...args: Array): Object { +export function arrayExpression(...args: Array): Object { return builder("ArrayExpression", ...args); } -export { ArrayExpression as arrayExpression }; -export function AssignmentExpression(...args: Array): Object { +export { arrayExpression as ArrayExpression }; +export function assignmentExpression(...args: Array): Object { return builder("AssignmentExpression", ...args); } -export { AssignmentExpression as assignmentExpression }; -export function BinaryExpression(...args: Array): Object { +export { assignmentExpression as AssignmentExpression }; +export function binaryExpression(...args: Array): Object { return builder("BinaryExpression", ...args); } -export { BinaryExpression as binaryExpression }; -export function InterpreterDirective(...args: Array): Object { +export { binaryExpression as BinaryExpression }; +export function interpreterDirective(...args: Array): Object { return builder("InterpreterDirective", ...args); } -export { InterpreterDirective as interpreterDirective }; -export function Directive(...args: Array): Object { +export { interpreterDirective as InterpreterDirective }; +export function directive(...args: Array): Object { return builder("Directive", ...args); } -export { Directive as directive }; -export function DirectiveLiteral(...args: Array): Object { +export { directive as Directive }; +export function directiveLiteral(...args: Array): Object { return builder("DirectiveLiteral", ...args); } -export { DirectiveLiteral as directiveLiteral }; -export function BlockStatement(...args: Array): Object { +export { directiveLiteral as DirectiveLiteral }; +export function blockStatement(...args: Array): Object { return builder("BlockStatement", ...args); } -export { BlockStatement as blockStatement }; -export function BreakStatement(...args: Array): Object { +export { blockStatement as BlockStatement }; +export function breakStatement(...args: Array): Object { return builder("BreakStatement", ...args); } -export { BreakStatement as breakStatement }; -export function CallExpression(...args: Array): Object { +export { breakStatement as BreakStatement }; +export function callExpression(...args: Array): Object { return builder("CallExpression", ...args); } -export { CallExpression as callExpression }; -export function CatchClause(...args: Array): Object { +export { callExpression as CallExpression }; +export function catchClause(...args: Array): Object { return builder("CatchClause", ...args); } -export { CatchClause as catchClause }; -export function ConditionalExpression(...args: Array): Object { +export { catchClause as CatchClause }; +export function conditionalExpression(...args: Array): Object { return builder("ConditionalExpression", ...args); } -export { ConditionalExpression as conditionalExpression }; -export function ContinueStatement(...args: Array): Object { +export { conditionalExpression as ConditionalExpression }; +export function continueStatement(...args: Array): Object { return builder("ContinueStatement", ...args); } -export { ContinueStatement as continueStatement }; -export function DebuggerStatement(...args: Array): Object { +export { continueStatement as ContinueStatement }; +export function debuggerStatement(...args: Array): Object { return builder("DebuggerStatement", ...args); } -export { DebuggerStatement as debuggerStatement }; -export function DoWhileStatement(...args: Array): Object { +export { debuggerStatement as DebuggerStatement }; +export function doWhileStatement(...args: Array): Object { return builder("DoWhileStatement", ...args); } -export { DoWhileStatement as doWhileStatement }; -export function EmptyStatement(...args: Array): Object { +export { doWhileStatement as DoWhileStatement }; +export function emptyStatement(...args: Array): Object { return builder("EmptyStatement", ...args); } -export { EmptyStatement as emptyStatement }; -export function ExpressionStatement(...args: Array): Object { +export { emptyStatement as EmptyStatement }; +export function expressionStatement(...args: Array): Object { return builder("ExpressionStatement", ...args); } -export { ExpressionStatement as expressionStatement }; -export function File(...args: Array): Object { +export { expressionStatement as ExpressionStatement }; +export function file(...args: Array): Object { return builder("File", ...args); } -export { File as file }; -export function ForInStatement(...args: Array): Object { +export { file as File }; +export function forInStatement(...args: Array): Object { return builder("ForInStatement", ...args); } -export { ForInStatement as forInStatement }; -export function ForStatement(...args: Array): Object { +export { forInStatement as ForInStatement }; +export function forStatement(...args: Array): Object { return builder("ForStatement", ...args); } -export { ForStatement as forStatement }; -export function FunctionDeclaration(...args: Array): Object { +export { forStatement as ForStatement }; +export function functionDeclaration(...args: Array): Object { return builder("FunctionDeclaration", ...args); } -export { FunctionDeclaration as functionDeclaration }; -export function FunctionExpression(...args: Array): Object { +export { functionDeclaration as FunctionDeclaration }; +export function functionExpression(...args: Array): Object { return builder("FunctionExpression", ...args); } -export { FunctionExpression as functionExpression }; -export function Identifier(...args: Array): Object { +export { functionExpression as FunctionExpression }; +export function identifier(...args: Array): Object { return builder("Identifier", ...args); } -export { Identifier as identifier }; -export function IfStatement(...args: Array): Object { +export { identifier as Identifier }; +export function ifStatement(...args: Array): Object { return builder("IfStatement", ...args); } -export { IfStatement as ifStatement }; -export function LabeledStatement(...args: Array): Object { +export { ifStatement as IfStatement }; +export function labeledStatement(...args: Array): Object { return builder("LabeledStatement", ...args); } -export { LabeledStatement as labeledStatement }; -export function StringLiteral(...args: Array): Object { +export { labeledStatement as LabeledStatement }; +export function stringLiteral(...args: Array): Object { return builder("StringLiteral", ...args); } -export { StringLiteral as stringLiteral }; -export function NumericLiteral(...args: Array): Object { +export { stringLiteral as StringLiteral }; +export function numericLiteral(...args: Array): Object { return builder("NumericLiteral", ...args); } -export { NumericLiteral as numericLiteral }; -export function NullLiteral(...args: Array): Object { +export { numericLiteral as NumericLiteral }; +export function nullLiteral(...args: Array): Object { return builder("NullLiteral", ...args); } -export { NullLiteral as nullLiteral }; -export function BooleanLiteral(...args: Array): Object { +export { nullLiteral as NullLiteral }; +export function booleanLiteral(...args: Array): Object { return builder("BooleanLiteral", ...args); } -export { BooleanLiteral as booleanLiteral }; -export function RegExpLiteral(...args: Array): Object { +export { booleanLiteral as BooleanLiteral }; +export function regExpLiteral(...args: Array): Object { return builder("RegExpLiteral", ...args); } -export { RegExpLiteral as regExpLiteral }; -export function LogicalExpression(...args: Array): Object { +export { regExpLiteral as RegExpLiteral }; +export function logicalExpression(...args: Array): Object { return builder("LogicalExpression", ...args); } -export { LogicalExpression as logicalExpression }; -export function MemberExpression(...args: Array): Object { +export { logicalExpression as LogicalExpression }; +export function memberExpression(...args: Array): Object { return builder("MemberExpression", ...args); } -export { MemberExpression as memberExpression }; -export function NewExpression(...args: Array): Object { +export { memberExpression as MemberExpression }; +export function newExpression(...args: Array): Object { return builder("NewExpression", ...args); } -export { NewExpression as newExpression }; -export function Program(...args: Array): Object { +export { newExpression as NewExpression }; +export function program(...args: Array): Object { return builder("Program", ...args); } -export { Program as program }; -export function ObjectExpression(...args: Array): Object { +export { program as Program }; +export function objectExpression(...args: Array): Object { return builder("ObjectExpression", ...args); } -export { ObjectExpression as objectExpression }; -export function ObjectMethod(...args: Array): Object { +export { objectExpression as ObjectExpression }; +export function objectMethod(...args: Array): Object { return builder("ObjectMethod", ...args); } -export { ObjectMethod as objectMethod }; -export function ObjectProperty(...args: Array): Object { +export { objectMethod as ObjectMethod }; +export function objectProperty(...args: Array): Object { return builder("ObjectProperty", ...args); } -export { ObjectProperty as objectProperty }; -export function RestElement(...args: Array): Object { +export { objectProperty as ObjectProperty }; +export function restElement(...args: Array): Object { return builder("RestElement", ...args); } -export { RestElement as restElement }; -export function ReturnStatement(...args: Array): Object { +export { restElement as RestElement }; +export function returnStatement(...args: Array): Object { return builder("ReturnStatement", ...args); } -export { ReturnStatement as returnStatement }; -export function SequenceExpression(...args: Array): Object { +export { returnStatement as ReturnStatement }; +export function sequenceExpression(...args: Array): Object { return builder("SequenceExpression", ...args); } -export { SequenceExpression as sequenceExpression }; -export function ParenthesizedExpression(...args: Array): Object { +export { sequenceExpression as SequenceExpression }; +export function parenthesizedExpression(...args: Array): Object { return builder("ParenthesizedExpression", ...args); } -export { ParenthesizedExpression as parenthesizedExpression }; -export function SwitchCase(...args: Array): Object { +export { parenthesizedExpression as ParenthesizedExpression }; +export function switchCase(...args: Array): Object { return builder("SwitchCase", ...args); } -export { SwitchCase as switchCase }; -export function SwitchStatement(...args: Array): Object { +export { switchCase as SwitchCase }; +export function switchStatement(...args: Array): Object { return builder("SwitchStatement", ...args); } -export { SwitchStatement as switchStatement }; -export function ThisExpression(...args: Array): Object { +export { switchStatement as SwitchStatement }; +export function thisExpression(...args: Array): Object { return builder("ThisExpression", ...args); } -export { ThisExpression as thisExpression }; -export function ThrowStatement(...args: Array): Object { +export { thisExpression as ThisExpression }; +export function throwStatement(...args: Array): Object { return builder("ThrowStatement", ...args); } -export { ThrowStatement as throwStatement }; -export function TryStatement(...args: Array): Object { +export { throwStatement as ThrowStatement }; +export function tryStatement(...args: Array): Object { return builder("TryStatement", ...args); } -export { TryStatement as tryStatement }; -export function UnaryExpression(...args: Array): Object { +export { tryStatement as TryStatement }; +export function unaryExpression(...args: Array): Object { return builder("UnaryExpression", ...args); } -export { UnaryExpression as unaryExpression }; -export function UpdateExpression(...args: Array): Object { +export { unaryExpression as UnaryExpression }; +export function updateExpression(...args: Array): Object { return builder("UpdateExpression", ...args); } -export { UpdateExpression as updateExpression }; -export function VariableDeclaration(...args: Array): Object { +export { updateExpression as UpdateExpression }; +export function variableDeclaration(...args: Array): Object { return builder("VariableDeclaration", ...args); } -export { VariableDeclaration as variableDeclaration }; -export function VariableDeclarator(...args: Array): Object { +export { variableDeclaration as VariableDeclaration }; +export function variableDeclarator(...args: Array): Object { return builder("VariableDeclarator", ...args); } -export { VariableDeclarator as variableDeclarator }; -export function WhileStatement(...args: Array): Object { +export { variableDeclarator as VariableDeclarator }; +export function whileStatement(...args: Array): Object { return builder("WhileStatement", ...args); } -export { WhileStatement as whileStatement }; -export function WithStatement(...args: Array): Object { +export { whileStatement as WhileStatement }; +export function withStatement(...args: Array): Object { return builder("WithStatement", ...args); } -export { WithStatement as withStatement }; -export function AssignmentPattern(...args: Array): Object { +export { withStatement as WithStatement }; +export function assignmentPattern(...args: Array): Object { return builder("AssignmentPattern", ...args); } -export { AssignmentPattern as assignmentPattern }; -export function ArrayPattern(...args: Array): Object { +export { assignmentPattern as AssignmentPattern }; +export function arrayPattern(...args: Array): Object { return builder("ArrayPattern", ...args); } -export { ArrayPattern as arrayPattern }; -export function ArrowFunctionExpression(...args: Array): Object { +export { arrayPattern as ArrayPattern }; +export function arrowFunctionExpression(...args: Array): Object { return builder("ArrowFunctionExpression", ...args); } -export { ArrowFunctionExpression as arrowFunctionExpression }; -export function ClassBody(...args: Array): Object { +export { arrowFunctionExpression as ArrowFunctionExpression }; +export function classBody(...args: Array): Object { return builder("ClassBody", ...args); } -export { ClassBody as classBody }; -export function ClassExpression(...args: Array): Object { +export { classBody as ClassBody }; +export function classExpression(...args: Array): Object { return builder("ClassExpression", ...args); } -export { ClassExpression as classExpression }; -export function ClassDeclaration(...args: Array): Object { +export { classExpression as ClassExpression }; +export function classDeclaration(...args: Array): Object { return builder("ClassDeclaration", ...args); } -export { ClassDeclaration as classDeclaration }; -export function ExportAllDeclaration(...args: Array): Object { +export { classDeclaration as ClassDeclaration }; +export function exportAllDeclaration(...args: Array): Object { return builder("ExportAllDeclaration", ...args); } -export { ExportAllDeclaration as exportAllDeclaration }; -export function ExportDefaultDeclaration(...args: Array): Object { +export { exportAllDeclaration as ExportAllDeclaration }; +export function exportDefaultDeclaration(...args: Array): Object { return builder("ExportDefaultDeclaration", ...args); } -export { ExportDefaultDeclaration as exportDefaultDeclaration }; -export function ExportNamedDeclaration(...args: Array): Object { +export { exportDefaultDeclaration as ExportDefaultDeclaration }; +export function exportNamedDeclaration(...args: Array): Object { return builder("ExportNamedDeclaration", ...args); } -export { ExportNamedDeclaration as exportNamedDeclaration }; -export function ExportSpecifier(...args: Array): Object { +export { exportNamedDeclaration as ExportNamedDeclaration }; +export function exportSpecifier(...args: Array): Object { return builder("ExportSpecifier", ...args); } -export { ExportSpecifier as exportSpecifier }; -export function ForOfStatement(...args: Array): Object { +export { exportSpecifier as ExportSpecifier }; +export function forOfStatement(...args: Array): Object { return builder("ForOfStatement", ...args); } -export { ForOfStatement as forOfStatement }; -export function ImportDeclaration(...args: Array): Object { +export { forOfStatement as ForOfStatement }; +export function importDeclaration(...args: Array): Object { return builder("ImportDeclaration", ...args); } -export { ImportDeclaration as importDeclaration }; -export function ImportDefaultSpecifier(...args: Array): Object { +export { importDeclaration as ImportDeclaration }; +export function importDefaultSpecifier(...args: Array): Object { return builder("ImportDefaultSpecifier", ...args); } -export { ImportDefaultSpecifier as importDefaultSpecifier }; -export function ImportNamespaceSpecifier(...args: Array): Object { +export { importDefaultSpecifier as ImportDefaultSpecifier }; +export function importNamespaceSpecifier(...args: Array): Object { return builder("ImportNamespaceSpecifier", ...args); } -export { ImportNamespaceSpecifier as importNamespaceSpecifier }; -export function ImportSpecifier(...args: Array): Object { +export { importNamespaceSpecifier as ImportNamespaceSpecifier }; +export function importSpecifier(...args: Array): Object { return builder("ImportSpecifier", ...args); } -export { ImportSpecifier as importSpecifier }; -export function MetaProperty(...args: Array): Object { +export { importSpecifier as ImportSpecifier }; +export function metaProperty(...args: Array): Object { return builder("MetaProperty", ...args); } -export { MetaProperty as metaProperty }; -export function ClassMethod(...args: Array): Object { +export { metaProperty as MetaProperty }; +export function classMethod(...args: Array): Object { return builder("ClassMethod", ...args); } -export { ClassMethod as classMethod }; -export function ObjectPattern(...args: Array): Object { +export { classMethod as ClassMethod }; +export function objectPattern(...args: Array): Object { return builder("ObjectPattern", ...args); } -export { ObjectPattern as objectPattern }; -export function SpreadElement(...args: Array): Object { +export { objectPattern as ObjectPattern }; +export function spreadElement(...args: Array): Object { return builder("SpreadElement", ...args); } -export { SpreadElement as spreadElement }; -export function Super(...args: Array): Object { +export { spreadElement as SpreadElement }; +function _super(...args: Array): Object { return builder("Super", ...args); } -export { Super as super }; -export function TaggedTemplateExpression(...args: Array): Object { +export { _super as Super }; +export { _super as super }; +export function taggedTemplateExpression(...args: Array): Object { return builder("TaggedTemplateExpression", ...args); } -export { TaggedTemplateExpression as taggedTemplateExpression }; -export function TemplateElement(...args: Array): Object { +export { taggedTemplateExpression as TaggedTemplateExpression }; +export function templateElement(...args: Array): Object { return builder("TemplateElement", ...args); } -export { TemplateElement as templateElement }; -export function TemplateLiteral(...args: Array): Object { +export { templateElement as TemplateElement }; +export function templateLiteral(...args: Array): Object { return builder("TemplateLiteral", ...args); } -export { TemplateLiteral as templateLiteral }; -export function YieldExpression(...args: Array): Object { +export { templateLiteral as TemplateLiteral }; +export function yieldExpression(...args: Array): Object { return builder("YieldExpression", ...args); } -export { YieldExpression as yieldExpression }; -export function AnyTypeAnnotation(...args: Array): Object { +export { yieldExpression as YieldExpression }; +export function anyTypeAnnotation(...args: Array): Object { return builder("AnyTypeAnnotation", ...args); } -export { AnyTypeAnnotation as anyTypeAnnotation }; -export function ArrayTypeAnnotation(...args: Array): Object { +export { anyTypeAnnotation as AnyTypeAnnotation }; +export function arrayTypeAnnotation(...args: Array): Object { return builder("ArrayTypeAnnotation", ...args); } -export { ArrayTypeAnnotation as arrayTypeAnnotation }; -export function BooleanTypeAnnotation(...args: Array): Object { +export { arrayTypeAnnotation as ArrayTypeAnnotation }; +export function booleanTypeAnnotation(...args: Array): Object { return builder("BooleanTypeAnnotation", ...args); } -export { BooleanTypeAnnotation as booleanTypeAnnotation }; -export function BooleanLiteralTypeAnnotation(...args: Array): Object { +export { booleanTypeAnnotation as BooleanTypeAnnotation }; +export function booleanLiteralTypeAnnotation(...args: Array): Object { return builder("BooleanLiteralTypeAnnotation", ...args); } -export { BooleanLiteralTypeAnnotation as booleanLiteralTypeAnnotation }; -export function NullLiteralTypeAnnotation(...args: Array): Object { +export { booleanLiteralTypeAnnotation as BooleanLiteralTypeAnnotation }; +export function nullLiteralTypeAnnotation(...args: Array): Object { return builder("NullLiteralTypeAnnotation", ...args); } -export { NullLiteralTypeAnnotation as nullLiteralTypeAnnotation }; -export function ClassImplements(...args: Array): Object { +export { nullLiteralTypeAnnotation as NullLiteralTypeAnnotation }; +export function classImplements(...args: Array): Object { return builder("ClassImplements", ...args); } -export { ClassImplements as classImplements }; -export function DeclareClass(...args: Array): Object { +export { classImplements as ClassImplements }; +export function declareClass(...args: Array): Object { return builder("DeclareClass", ...args); } -export { DeclareClass as declareClass }; -export function DeclareFunction(...args: Array): Object { +export { declareClass as DeclareClass }; +export function declareFunction(...args: Array): Object { return builder("DeclareFunction", ...args); } -export { DeclareFunction as declareFunction }; -export function DeclareInterface(...args: Array): Object { +export { declareFunction as DeclareFunction }; +export function declareInterface(...args: Array): Object { return builder("DeclareInterface", ...args); } -export { DeclareInterface as declareInterface }; -export function DeclareModule(...args: Array): Object { +export { declareInterface as DeclareInterface }; +export function declareModule(...args: Array): Object { return builder("DeclareModule", ...args); } -export { DeclareModule as declareModule }; -export function DeclareModuleExports(...args: Array): Object { +export { declareModule as DeclareModule }; +export function declareModuleExports(...args: Array): Object { return builder("DeclareModuleExports", ...args); } -export { DeclareModuleExports as declareModuleExports }; -export function DeclareTypeAlias(...args: Array): Object { +export { declareModuleExports as DeclareModuleExports }; +export function declareTypeAlias(...args: Array): Object { return builder("DeclareTypeAlias", ...args); } -export { DeclareTypeAlias as declareTypeAlias }; -export function DeclareOpaqueType(...args: Array): Object { +export { declareTypeAlias as DeclareTypeAlias }; +export function declareOpaqueType(...args: Array): Object { return builder("DeclareOpaqueType", ...args); } -export { DeclareOpaqueType as declareOpaqueType }; -export function DeclareVariable(...args: Array): Object { +export { declareOpaqueType as DeclareOpaqueType }; +export function declareVariable(...args: Array): Object { return builder("DeclareVariable", ...args); } -export { DeclareVariable as declareVariable }; -export function DeclareExportDeclaration(...args: Array): Object { +export { declareVariable as DeclareVariable }; +export function declareExportDeclaration(...args: Array): Object { return builder("DeclareExportDeclaration", ...args); } -export { DeclareExportDeclaration as declareExportDeclaration }; -export function DeclareExportAllDeclaration(...args: Array): Object { +export { declareExportDeclaration as DeclareExportDeclaration }; +export function declareExportAllDeclaration(...args: Array): Object { return builder("DeclareExportAllDeclaration", ...args); } -export { DeclareExportAllDeclaration as declareExportAllDeclaration }; -export function DeclaredPredicate(...args: Array): Object { +export { declareExportAllDeclaration as DeclareExportAllDeclaration }; +export function declaredPredicate(...args: Array): Object { return builder("DeclaredPredicate", ...args); } -export { DeclaredPredicate as declaredPredicate }; -export function ExistsTypeAnnotation(...args: Array): Object { +export { declaredPredicate as DeclaredPredicate }; +export function existsTypeAnnotation(...args: Array): Object { return builder("ExistsTypeAnnotation", ...args); } -export { ExistsTypeAnnotation as existsTypeAnnotation }; -export function FunctionTypeAnnotation(...args: Array): Object { +export { existsTypeAnnotation as ExistsTypeAnnotation }; +export function functionTypeAnnotation(...args: Array): Object { return builder("FunctionTypeAnnotation", ...args); } -export { FunctionTypeAnnotation as functionTypeAnnotation }; -export function FunctionTypeParam(...args: Array): Object { +export { functionTypeAnnotation as FunctionTypeAnnotation }; +export function functionTypeParam(...args: Array): Object { return builder("FunctionTypeParam", ...args); } -export { FunctionTypeParam as functionTypeParam }; -export function GenericTypeAnnotation(...args: Array): Object { +export { functionTypeParam as FunctionTypeParam }; +export function genericTypeAnnotation(...args: Array): Object { return builder("GenericTypeAnnotation", ...args); } -export { GenericTypeAnnotation as genericTypeAnnotation }; -export function InferredPredicate(...args: Array): Object { +export { genericTypeAnnotation as GenericTypeAnnotation }; +export function inferredPredicate(...args: Array): Object { return builder("InferredPredicate", ...args); } -export { InferredPredicate as inferredPredicate }; -export function InterfaceExtends(...args: Array): Object { +export { inferredPredicate as InferredPredicate }; +export function interfaceExtends(...args: Array): Object { return builder("InterfaceExtends", ...args); } -export { InterfaceExtends as interfaceExtends }; -export function InterfaceDeclaration(...args: Array): Object { +export { interfaceExtends as InterfaceExtends }; +export function interfaceDeclaration(...args: Array): Object { return builder("InterfaceDeclaration", ...args); } -export { InterfaceDeclaration as interfaceDeclaration }; -export function InterfaceTypeAnnotation(...args: Array): Object { +export { interfaceDeclaration as InterfaceDeclaration }; +export function interfaceTypeAnnotation(...args: Array): Object { return builder("InterfaceTypeAnnotation", ...args); } -export { InterfaceTypeAnnotation as interfaceTypeAnnotation }; -export function IntersectionTypeAnnotation(...args: Array): Object { +export { interfaceTypeAnnotation as InterfaceTypeAnnotation }; +export function intersectionTypeAnnotation(...args: Array): Object { return builder("IntersectionTypeAnnotation", ...args); } -export { IntersectionTypeAnnotation as intersectionTypeAnnotation }; -export function MixedTypeAnnotation(...args: Array): Object { +export { intersectionTypeAnnotation as IntersectionTypeAnnotation }; +export function mixedTypeAnnotation(...args: Array): Object { return builder("MixedTypeAnnotation", ...args); } -export { MixedTypeAnnotation as mixedTypeAnnotation }; -export function EmptyTypeAnnotation(...args: Array): Object { +export { mixedTypeAnnotation as MixedTypeAnnotation }; +export function emptyTypeAnnotation(...args: Array): Object { return builder("EmptyTypeAnnotation", ...args); } -export { EmptyTypeAnnotation as emptyTypeAnnotation }; -export function NullableTypeAnnotation(...args: Array): Object { +export { emptyTypeAnnotation as EmptyTypeAnnotation }; +export function nullableTypeAnnotation(...args: Array): Object { return builder("NullableTypeAnnotation", ...args); } -export { NullableTypeAnnotation as nullableTypeAnnotation }; -export function NumberLiteralTypeAnnotation(...args: Array): Object { +export { nullableTypeAnnotation as NullableTypeAnnotation }; +export function numberLiteralTypeAnnotation(...args: Array): Object { return builder("NumberLiteralTypeAnnotation", ...args); } -export { NumberLiteralTypeAnnotation as numberLiteralTypeAnnotation }; -export function NumberTypeAnnotation(...args: Array): Object { +export { numberLiteralTypeAnnotation as NumberLiteralTypeAnnotation }; +export function numberTypeAnnotation(...args: Array): Object { return builder("NumberTypeAnnotation", ...args); } -export { NumberTypeAnnotation as numberTypeAnnotation }; -export function ObjectTypeAnnotation(...args: Array): Object { +export { numberTypeAnnotation as NumberTypeAnnotation }; +export function objectTypeAnnotation(...args: Array): Object { return builder("ObjectTypeAnnotation", ...args); } -export { ObjectTypeAnnotation as objectTypeAnnotation }; -export function ObjectTypeInternalSlot(...args: Array): Object { +export { objectTypeAnnotation as ObjectTypeAnnotation }; +export function objectTypeInternalSlot(...args: Array): Object { return builder("ObjectTypeInternalSlot", ...args); } -export { ObjectTypeInternalSlot as objectTypeInternalSlot }; -export function ObjectTypeCallProperty(...args: Array): Object { +export { objectTypeInternalSlot as ObjectTypeInternalSlot }; +export function objectTypeCallProperty(...args: Array): Object { return builder("ObjectTypeCallProperty", ...args); } -export { ObjectTypeCallProperty as objectTypeCallProperty }; -export function ObjectTypeIndexer(...args: Array): Object { +export { objectTypeCallProperty as ObjectTypeCallProperty }; +export function objectTypeIndexer(...args: Array): Object { return builder("ObjectTypeIndexer", ...args); } -export { ObjectTypeIndexer as objectTypeIndexer }; -export function ObjectTypeProperty(...args: Array): Object { +export { objectTypeIndexer as ObjectTypeIndexer }; +export function objectTypeProperty(...args: Array): Object { return builder("ObjectTypeProperty", ...args); } -export { ObjectTypeProperty as objectTypeProperty }; -export function ObjectTypeSpreadProperty(...args: Array): Object { +export { objectTypeProperty as ObjectTypeProperty }; +export function objectTypeSpreadProperty(...args: Array): Object { return builder("ObjectTypeSpreadProperty", ...args); } -export { ObjectTypeSpreadProperty as objectTypeSpreadProperty }; -export function OpaqueType(...args: Array): Object { +export { objectTypeSpreadProperty as ObjectTypeSpreadProperty }; +export function opaqueType(...args: Array): Object { return builder("OpaqueType", ...args); } -export { OpaqueType as opaqueType }; -export function QualifiedTypeIdentifier(...args: Array): Object { +export { opaqueType as OpaqueType }; +export function qualifiedTypeIdentifier(...args: Array): Object { return builder("QualifiedTypeIdentifier", ...args); } -export { QualifiedTypeIdentifier as qualifiedTypeIdentifier }; -export function StringLiteralTypeAnnotation(...args: Array): Object { +export { qualifiedTypeIdentifier as QualifiedTypeIdentifier }; +export function stringLiteralTypeAnnotation(...args: Array): Object { return builder("StringLiteralTypeAnnotation", ...args); } -export { StringLiteralTypeAnnotation as stringLiteralTypeAnnotation }; -export function StringTypeAnnotation(...args: Array): Object { +export { stringLiteralTypeAnnotation as StringLiteralTypeAnnotation }; +export function stringTypeAnnotation(...args: Array): Object { return builder("StringTypeAnnotation", ...args); } -export { StringTypeAnnotation as stringTypeAnnotation }; -export function SymbolTypeAnnotation(...args: Array): Object { +export { stringTypeAnnotation as StringTypeAnnotation }; +export function symbolTypeAnnotation(...args: Array): Object { return builder("SymbolTypeAnnotation", ...args); } -export { SymbolTypeAnnotation as symbolTypeAnnotation }; -export function ThisTypeAnnotation(...args: Array): Object { +export { symbolTypeAnnotation as SymbolTypeAnnotation }; +export function thisTypeAnnotation(...args: Array): Object { return builder("ThisTypeAnnotation", ...args); } -export { ThisTypeAnnotation as thisTypeAnnotation }; -export function TupleTypeAnnotation(...args: Array): Object { +export { thisTypeAnnotation as ThisTypeAnnotation }; +export function tupleTypeAnnotation(...args: Array): Object { return builder("TupleTypeAnnotation", ...args); } -export { TupleTypeAnnotation as tupleTypeAnnotation }; -export function TypeofTypeAnnotation(...args: Array): Object { +export { tupleTypeAnnotation as TupleTypeAnnotation }; +export function typeofTypeAnnotation(...args: Array): Object { return builder("TypeofTypeAnnotation", ...args); } -export { TypeofTypeAnnotation as typeofTypeAnnotation }; -export function TypeAlias(...args: Array): Object { +export { typeofTypeAnnotation as TypeofTypeAnnotation }; +export function typeAlias(...args: Array): Object { return builder("TypeAlias", ...args); } -export { TypeAlias as typeAlias }; -export function TypeAnnotation(...args: Array): Object { +export { typeAlias as TypeAlias }; +export function typeAnnotation(...args: Array): Object { return builder("TypeAnnotation", ...args); } -export { TypeAnnotation as typeAnnotation }; -export function TypeCastExpression(...args: Array): Object { +export { typeAnnotation as TypeAnnotation }; +export function typeCastExpression(...args: Array): Object { return builder("TypeCastExpression", ...args); } -export { TypeCastExpression as typeCastExpression }; -export function TypeParameter(...args: Array): Object { +export { typeCastExpression as TypeCastExpression }; +export function typeParameter(...args: Array): Object { return builder("TypeParameter", ...args); } -export { TypeParameter as typeParameter }; -export function TypeParameterDeclaration(...args: Array): Object { +export { typeParameter as TypeParameter }; +export function typeParameterDeclaration(...args: Array): Object { return builder("TypeParameterDeclaration", ...args); } -export { TypeParameterDeclaration as typeParameterDeclaration }; -export function TypeParameterInstantiation(...args: Array): Object { +export { typeParameterDeclaration as TypeParameterDeclaration }; +export function typeParameterInstantiation(...args: Array): Object { return builder("TypeParameterInstantiation", ...args); } -export { TypeParameterInstantiation as typeParameterInstantiation }; -export function UnionTypeAnnotation(...args: Array): Object { +export { typeParameterInstantiation as TypeParameterInstantiation }; +export function unionTypeAnnotation(...args: Array): Object { return builder("UnionTypeAnnotation", ...args); } -export { UnionTypeAnnotation as unionTypeAnnotation }; -export function Variance(...args: Array): Object { +export { unionTypeAnnotation as UnionTypeAnnotation }; +export function variance(...args: Array): Object { return builder("Variance", ...args); } -export { Variance as variance }; -export function VoidTypeAnnotation(...args: Array): Object { +export { variance as Variance }; +export function voidTypeAnnotation(...args: Array): Object { return builder("VoidTypeAnnotation", ...args); } -export { VoidTypeAnnotation as voidTypeAnnotation }; -export function EnumDeclaration(...args: Array): Object { +export { voidTypeAnnotation as VoidTypeAnnotation }; +export function enumDeclaration(...args: Array): Object { return builder("EnumDeclaration", ...args); } -export { EnumDeclaration as enumDeclaration }; -export function EnumBooleanBody(...args: Array): Object { +export { enumDeclaration as EnumDeclaration }; +export function enumBooleanBody(...args: Array): Object { return builder("EnumBooleanBody", ...args); } -export { EnumBooleanBody as enumBooleanBody }; -export function EnumNumberBody(...args: Array): Object { +export { enumBooleanBody as EnumBooleanBody }; +export function enumNumberBody(...args: Array): Object { return builder("EnumNumberBody", ...args); } -export { EnumNumberBody as enumNumberBody }; -export function EnumStringBody(...args: Array): Object { +export { enumNumberBody as EnumNumberBody }; +export function enumStringBody(...args: Array): Object { return builder("EnumStringBody", ...args); } -export { EnumStringBody as enumStringBody }; -export function EnumSymbolBody(...args: Array): Object { +export { enumStringBody as EnumStringBody }; +export function enumSymbolBody(...args: Array): Object { return builder("EnumSymbolBody", ...args); } -export { EnumSymbolBody as enumSymbolBody }; -export function EnumBooleanMember(...args: Array): Object { +export { enumSymbolBody as EnumSymbolBody }; +export function enumBooleanMember(...args: Array): Object { return builder("EnumBooleanMember", ...args); } -export { EnumBooleanMember as enumBooleanMember }; -export function EnumNumberMember(...args: Array): Object { +export { enumBooleanMember as EnumBooleanMember }; +export function enumNumberMember(...args: Array): Object { return builder("EnumNumberMember", ...args); } -export { EnumNumberMember as enumNumberMember }; -export function EnumStringMember(...args: Array): Object { +export { enumNumberMember as EnumNumberMember }; +export function enumStringMember(...args: Array): Object { return builder("EnumStringMember", ...args); } -export { EnumStringMember as enumStringMember }; -export function EnumDefaultedMember(...args: Array): Object { +export { enumStringMember as EnumStringMember }; +export function enumDefaultedMember(...args: Array): Object { return builder("EnumDefaultedMember", ...args); } -export { EnumDefaultedMember as enumDefaultedMember }; -export function JSXAttribute(...args: Array): Object { +export { enumDefaultedMember as EnumDefaultedMember }; +export function jsxAttribute(...args: Array): Object { return builder("JSXAttribute", ...args); } -export { JSXAttribute as jsxAttribute }; -export { JSXAttribute as jSXAttribute }; -export function JSXClosingElement(...args: Array): Object { +export { jsxAttribute as JSXAttribute }; +export { jsxAttribute as jSXAttribute }; +export function jsxClosingElement(...args: Array): Object { return builder("JSXClosingElement", ...args); } -export { JSXClosingElement as jsxClosingElement }; -export { JSXClosingElement as jSXClosingElement }; -export function JSXElement(...args: Array): Object { +export { jsxClosingElement as JSXClosingElement }; +export { jsxClosingElement as jSXClosingElement }; +export function jsxElement(...args: Array): Object { return builder("JSXElement", ...args); } -export { JSXElement as jsxElement }; -export { JSXElement as jSXElement }; -export function JSXEmptyExpression(...args: Array): Object { +export { jsxElement as JSXElement }; +export { jsxElement as jSXElement }; +export function jsxEmptyExpression(...args: Array): Object { return builder("JSXEmptyExpression", ...args); } -export { JSXEmptyExpression as jsxEmptyExpression }; -export { JSXEmptyExpression as jSXEmptyExpression }; -export function JSXExpressionContainer(...args: Array): Object { +export { jsxEmptyExpression as JSXEmptyExpression }; +export { jsxEmptyExpression as jSXEmptyExpression }; +export function jsxExpressionContainer(...args: Array): Object { return builder("JSXExpressionContainer", ...args); } -export { JSXExpressionContainer as jsxExpressionContainer }; -export { JSXExpressionContainer as jSXExpressionContainer }; -export function JSXSpreadChild(...args: Array): Object { +export { jsxExpressionContainer as JSXExpressionContainer }; +export { jsxExpressionContainer as jSXExpressionContainer }; +export function jsxSpreadChild(...args: Array): Object { return builder("JSXSpreadChild", ...args); } -export { JSXSpreadChild as jsxSpreadChild }; -export { JSXSpreadChild as jSXSpreadChild }; -export function JSXIdentifier(...args: Array): Object { +export { jsxSpreadChild as JSXSpreadChild }; +export { jsxSpreadChild as jSXSpreadChild }; +export function jsxIdentifier(...args: Array): Object { return builder("JSXIdentifier", ...args); } -export { JSXIdentifier as jsxIdentifier }; -export { JSXIdentifier as jSXIdentifier }; -export function JSXMemberExpression(...args: Array): Object { +export { jsxIdentifier as JSXIdentifier }; +export { jsxIdentifier as jSXIdentifier }; +export function jsxMemberExpression(...args: Array): Object { return builder("JSXMemberExpression", ...args); } -export { JSXMemberExpression as jsxMemberExpression }; -export { JSXMemberExpression as jSXMemberExpression }; -export function JSXNamespacedName(...args: Array): Object { +export { jsxMemberExpression as JSXMemberExpression }; +export { jsxMemberExpression as jSXMemberExpression }; +export function jsxNamespacedName(...args: Array): Object { return builder("JSXNamespacedName", ...args); } -export { JSXNamespacedName as jsxNamespacedName }; -export { JSXNamespacedName as jSXNamespacedName }; -export function JSXOpeningElement(...args: Array): Object { +export { jsxNamespacedName as JSXNamespacedName }; +export { jsxNamespacedName as jSXNamespacedName }; +export function jsxOpeningElement(...args: Array): Object { return builder("JSXOpeningElement", ...args); } -export { JSXOpeningElement as jsxOpeningElement }; -export { JSXOpeningElement as jSXOpeningElement }; -export function JSXSpreadAttribute(...args: Array): Object { +export { jsxOpeningElement as JSXOpeningElement }; +export { jsxOpeningElement as jSXOpeningElement }; +export function jsxSpreadAttribute(...args: Array): Object { return builder("JSXSpreadAttribute", ...args); } -export { JSXSpreadAttribute as jsxSpreadAttribute }; -export { JSXSpreadAttribute as jSXSpreadAttribute }; -export function JSXText(...args: Array): Object { +export { jsxSpreadAttribute as JSXSpreadAttribute }; +export { jsxSpreadAttribute as jSXSpreadAttribute }; +export function jsxText(...args: Array): Object { return builder("JSXText", ...args); } -export { JSXText as jsxText }; -export { JSXText as jSXText }; -export function JSXFragment(...args: Array): Object { +export { jsxText as JSXText }; +export { jsxText as jSXText }; +export function jsxFragment(...args: Array): Object { return builder("JSXFragment", ...args); } -export { JSXFragment as jsxFragment }; -export { JSXFragment as jSXFragment }; -export function JSXOpeningFragment(...args: Array): Object { +export { jsxFragment as JSXFragment }; +export { jsxFragment as jSXFragment }; +export function jsxOpeningFragment(...args: Array): Object { return builder("JSXOpeningFragment", ...args); } -export { JSXOpeningFragment as jsxOpeningFragment }; -export { JSXOpeningFragment as jSXOpeningFragment }; -export function JSXClosingFragment(...args: Array): Object { +export { jsxOpeningFragment as JSXOpeningFragment }; +export { jsxOpeningFragment as jSXOpeningFragment }; +export function jsxClosingFragment(...args: Array): Object { return builder("JSXClosingFragment", ...args); } -export { JSXClosingFragment as jsxClosingFragment }; -export { JSXClosingFragment as jSXClosingFragment }; -export function Noop(...args: Array): Object { +export { jsxClosingFragment as JSXClosingFragment }; +export { jsxClosingFragment as jSXClosingFragment }; +export function noop(...args: Array): Object { return builder("Noop", ...args); } -export { Noop as noop }; -export function Placeholder(...args: Array): Object { +export { noop as Noop }; +export function placeholder(...args: Array): Object { return builder("Placeholder", ...args); } -export { Placeholder as placeholder }; -export function V8IntrinsicIdentifier(...args: Array): Object { +export { placeholder as Placeholder }; +export function v8IntrinsicIdentifier(...args: Array): Object { return builder("V8IntrinsicIdentifier", ...args); } -export { V8IntrinsicIdentifier as v8IntrinsicIdentifier }; -export function ArgumentPlaceholder(...args: Array): Object { +export { v8IntrinsicIdentifier as V8IntrinsicIdentifier }; +export function argumentPlaceholder(...args: Array): Object { return builder("ArgumentPlaceholder", ...args); } -export { ArgumentPlaceholder as argumentPlaceholder }; -export function AwaitExpression(...args: Array): Object { +export { argumentPlaceholder as ArgumentPlaceholder }; +export function awaitExpression(...args: Array): Object { return builder("AwaitExpression", ...args); } -export { AwaitExpression as awaitExpression }; -export function BindExpression(...args: Array): Object { +export { awaitExpression as AwaitExpression }; +export function bindExpression(...args: Array): Object { return builder("BindExpression", ...args); } -export { BindExpression as bindExpression }; -export function ClassProperty(...args: Array): Object { +export { bindExpression as BindExpression }; +export function classProperty(...args: Array): Object { return builder("ClassProperty", ...args); } -export { ClassProperty as classProperty }; -export function OptionalMemberExpression(...args: Array): Object { +export { classProperty as ClassProperty }; +export function optionalMemberExpression(...args: Array): Object { return builder("OptionalMemberExpression", ...args); } -export { OptionalMemberExpression as optionalMemberExpression }; -export function PipelineTopicExpression(...args: Array): Object { +export { optionalMemberExpression as OptionalMemberExpression }; +export function pipelineTopicExpression(...args: Array): Object { return builder("PipelineTopicExpression", ...args); } -export { PipelineTopicExpression as pipelineTopicExpression }; -export function PipelineBareFunction(...args: Array): Object { +export { pipelineTopicExpression as PipelineTopicExpression }; +export function pipelineBareFunction(...args: Array): Object { return builder("PipelineBareFunction", ...args); } -export { PipelineBareFunction as pipelineBareFunction }; -export function PipelinePrimaryTopicReference(...args: Array): Object { +export { pipelineBareFunction as PipelineBareFunction }; +export function pipelinePrimaryTopicReference(...args: Array): Object { return builder("PipelinePrimaryTopicReference", ...args); } -export { PipelinePrimaryTopicReference as pipelinePrimaryTopicReference }; -export function OptionalCallExpression(...args: Array): Object { +export { pipelinePrimaryTopicReference as PipelinePrimaryTopicReference }; +export function optionalCallExpression(...args: Array): Object { return builder("OptionalCallExpression", ...args); } -export { OptionalCallExpression as optionalCallExpression }; -export function ClassPrivateProperty(...args: Array): Object { +export { optionalCallExpression as OptionalCallExpression }; +export function classPrivateProperty(...args: Array): Object { return builder("ClassPrivateProperty", ...args); } -export { ClassPrivateProperty as classPrivateProperty }; -export function ClassPrivateMethod(...args: Array): Object { +export { classPrivateProperty as ClassPrivateProperty }; +export function classPrivateMethod(...args: Array): Object { return builder("ClassPrivateMethod", ...args); } -export { ClassPrivateMethod as classPrivateMethod }; -export function Import(...args: Array): Object { +export { classPrivateMethod as ClassPrivateMethod }; +function _import(...args: Array): Object { return builder("Import", ...args); } -export { Import as import }; -export function ImportAttribute(...args: Array): Object { +export { _import as Import }; +export { _import as import }; +export function importAttribute(...args: Array): Object { return builder("ImportAttribute", ...args); } -export { ImportAttribute as importAttribute }; -export function Decorator(...args: Array): Object { +export { importAttribute as ImportAttribute }; +export function decorator(...args: Array): Object { return builder("Decorator", ...args); } -export { Decorator as decorator }; -export function DoExpression(...args: Array): Object { +export { decorator as Decorator }; +export function doExpression(...args: Array): Object { return builder("DoExpression", ...args); } -export { DoExpression as doExpression }; -export function ExportDefaultSpecifier(...args: Array): Object { +export { doExpression as DoExpression }; +export function exportDefaultSpecifier(...args: Array): Object { return builder("ExportDefaultSpecifier", ...args); } -export { ExportDefaultSpecifier as exportDefaultSpecifier }; -export function ExportNamespaceSpecifier(...args: Array): Object { +export { exportDefaultSpecifier as ExportDefaultSpecifier }; +export function exportNamespaceSpecifier(...args: Array): Object { return builder("ExportNamespaceSpecifier", ...args); } -export { ExportNamespaceSpecifier as exportNamespaceSpecifier }; -export function PrivateName(...args: Array): Object { +export { exportNamespaceSpecifier as ExportNamespaceSpecifier }; +export function privateName(...args: Array): Object { return builder("PrivateName", ...args); } -export { PrivateName as privateName }; -export function BigIntLiteral(...args: Array): Object { +export { privateName as PrivateName }; +export function bigIntLiteral(...args: Array): Object { return builder("BigIntLiteral", ...args); } -export { BigIntLiteral as bigIntLiteral }; -export function RecordExpression(...args: Array): Object { +export { bigIntLiteral as BigIntLiteral }; +export function recordExpression(...args: Array): Object { return builder("RecordExpression", ...args); } -export { RecordExpression as recordExpression }; -export function TupleExpression(...args: Array): Object { +export { recordExpression as RecordExpression }; +export function tupleExpression(...args: Array): Object { return builder("TupleExpression", ...args); } -export { TupleExpression as tupleExpression }; -export function TSParameterProperty(...args: Array): Object { +export { tupleExpression as TupleExpression }; +export function tsParameterProperty(...args: Array): Object { return builder("TSParameterProperty", ...args); } -export { TSParameterProperty as tsParameterProperty }; -export { TSParameterProperty as tSParameterProperty }; -export function TSDeclareFunction(...args: Array): Object { +export { tsParameterProperty as TSParameterProperty }; +export { tsParameterProperty as tSParameterProperty }; +export function tsDeclareFunction(...args: Array): Object { return builder("TSDeclareFunction", ...args); } -export { TSDeclareFunction as tsDeclareFunction }; -export { TSDeclareFunction as tSDeclareFunction }; -export function TSDeclareMethod(...args: Array): Object { +export { tsDeclareFunction as TSDeclareFunction }; +export { tsDeclareFunction as tSDeclareFunction }; +export function tsDeclareMethod(...args: Array): Object { return builder("TSDeclareMethod", ...args); } -export { TSDeclareMethod as tsDeclareMethod }; -export { TSDeclareMethod as tSDeclareMethod }; -export function TSQualifiedName(...args: Array): Object { +export { tsDeclareMethod as TSDeclareMethod }; +export { tsDeclareMethod as tSDeclareMethod }; +export function tsQualifiedName(...args: Array): Object { return builder("TSQualifiedName", ...args); } -export { TSQualifiedName as tsQualifiedName }; -export { TSQualifiedName as tSQualifiedName }; -export function TSCallSignatureDeclaration(...args: Array): Object { +export { tsQualifiedName as TSQualifiedName }; +export { tsQualifiedName as tSQualifiedName }; +export function tsCallSignatureDeclaration(...args: Array): Object { return builder("TSCallSignatureDeclaration", ...args); } -export { TSCallSignatureDeclaration as tsCallSignatureDeclaration }; -export { TSCallSignatureDeclaration as tSCallSignatureDeclaration }; -export function TSConstructSignatureDeclaration(...args: Array): Object { +export { tsCallSignatureDeclaration as TSCallSignatureDeclaration }; +export { tsCallSignatureDeclaration as tSCallSignatureDeclaration }; +export function tsConstructSignatureDeclaration(...args: Array): Object { return builder("TSConstructSignatureDeclaration", ...args); } -export { TSConstructSignatureDeclaration as tsConstructSignatureDeclaration }; -export { TSConstructSignatureDeclaration as tSConstructSignatureDeclaration }; -export function TSPropertySignature(...args: Array): Object { +export { tsConstructSignatureDeclaration as TSConstructSignatureDeclaration }; +export { tsConstructSignatureDeclaration as tSConstructSignatureDeclaration }; +export function tsPropertySignature(...args: Array): Object { return builder("TSPropertySignature", ...args); } -export { TSPropertySignature as tsPropertySignature }; -export { TSPropertySignature as tSPropertySignature }; -export function TSMethodSignature(...args: Array): Object { +export { tsPropertySignature as TSPropertySignature }; +export { tsPropertySignature as tSPropertySignature }; +export function tsMethodSignature(...args: Array): Object { return builder("TSMethodSignature", ...args); } -export { TSMethodSignature as tsMethodSignature }; -export { TSMethodSignature as tSMethodSignature }; -export function TSIndexSignature(...args: Array): Object { +export { tsMethodSignature as TSMethodSignature }; +export { tsMethodSignature as tSMethodSignature }; +export function tsIndexSignature(...args: Array): Object { return builder("TSIndexSignature", ...args); } -export { TSIndexSignature as tsIndexSignature }; -export { TSIndexSignature as tSIndexSignature }; -export function TSAnyKeyword(...args: Array): Object { +export { tsIndexSignature as TSIndexSignature }; +export { tsIndexSignature as tSIndexSignature }; +export function tsAnyKeyword(...args: Array): Object { return builder("TSAnyKeyword", ...args); } -export { TSAnyKeyword as tsAnyKeyword }; -export { TSAnyKeyword as tSAnyKeyword }; -export function TSBooleanKeyword(...args: Array): Object { +export { tsAnyKeyword as TSAnyKeyword }; +export { tsAnyKeyword as tSAnyKeyword }; +export function tsBooleanKeyword(...args: Array): Object { return builder("TSBooleanKeyword", ...args); } -export { TSBooleanKeyword as tsBooleanKeyword }; -export { TSBooleanKeyword as tSBooleanKeyword }; -export function TSBigIntKeyword(...args: Array): Object { +export { tsBooleanKeyword as TSBooleanKeyword }; +export { tsBooleanKeyword as tSBooleanKeyword }; +export function tsBigIntKeyword(...args: Array): Object { return builder("TSBigIntKeyword", ...args); } -export { TSBigIntKeyword as tsBigIntKeyword }; -export { TSBigIntKeyword as tSBigIntKeyword }; -export function TSNeverKeyword(...args: Array): Object { +export { tsBigIntKeyword as TSBigIntKeyword }; +export { tsBigIntKeyword as tSBigIntKeyword }; +export function tsNeverKeyword(...args: Array): Object { return builder("TSNeverKeyword", ...args); } -export { TSNeverKeyword as tsNeverKeyword }; -export { TSNeverKeyword as tSNeverKeyword }; -export function TSNullKeyword(...args: Array): Object { +export { tsNeverKeyword as TSNeverKeyword }; +export { tsNeverKeyword as tSNeverKeyword }; +export function tsNullKeyword(...args: Array): Object { return builder("TSNullKeyword", ...args); } -export { TSNullKeyword as tsNullKeyword }; -export { TSNullKeyword as tSNullKeyword }; -export function TSNumberKeyword(...args: Array): Object { +export { tsNullKeyword as TSNullKeyword }; +export { tsNullKeyword as tSNullKeyword }; +export function tsNumberKeyword(...args: Array): Object { return builder("TSNumberKeyword", ...args); } -export { TSNumberKeyword as tsNumberKeyword }; -export { TSNumberKeyword as tSNumberKeyword }; -export function TSObjectKeyword(...args: Array): Object { +export { tsNumberKeyword as TSNumberKeyword }; +export { tsNumberKeyword as tSNumberKeyword }; +export function tsObjectKeyword(...args: Array): Object { return builder("TSObjectKeyword", ...args); } -export { TSObjectKeyword as tsObjectKeyword }; -export { TSObjectKeyword as tSObjectKeyword }; -export function TSStringKeyword(...args: Array): Object { +export { tsObjectKeyword as TSObjectKeyword }; +export { tsObjectKeyword as tSObjectKeyword }; +export function tsStringKeyword(...args: Array): Object { return builder("TSStringKeyword", ...args); } -export { TSStringKeyword as tsStringKeyword }; -export { TSStringKeyword as tSStringKeyword }; -export function TSSymbolKeyword(...args: Array): Object { +export { tsStringKeyword as TSStringKeyword }; +export { tsStringKeyword as tSStringKeyword }; +export function tsSymbolKeyword(...args: Array): Object { return builder("TSSymbolKeyword", ...args); } -export { TSSymbolKeyword as tsSymbolKeyword }; -export { TSSymbolKeyword as tSSymbolKeyword }; -export function TSUndefinedKeyword(...args: Array): Object { +export { tsSymbolKeyword as TSSymbolKeyword }; +export { tsSymbolKeyword as tSSymbolKeyword }; +export function tsUndefinedKeyword(...args: Array): Object { return builder("TSUndefinedKeyword", ...args); } -export { TSUndefinedKeyword as tsUndefinedKeyword }; -export { TSUndefinedKeyword as tSUndefinedKeyword }; -export function TSUnknownKeyword(...args: Array): Object { +export { tsUndefinedKeyword as TSUndefinedKeyword }; +export { tsUndefinedKeyword as tSUndefinedKeyword }; +export function tsUnknownKeyword(...args: Array): Object { return builder("TSUnknownKeyword", ...args); } -export { TSUnknownKeyword as tsUnknownKeyword }; -export { TSUnknownKeyword as tSUnknownKeyword }; -export function TSVoidKeyword(...args: Array): Object { +export { tsUnknownKeyword as TSUnknownKeyword }; +export { tsUnknownKeyword as tSUnknownKeyword }; +export function tsVoidKeyword(...args: Array): Object { return builder("TSVoidKeyword", ...args); } -export { TSVoidKeyword as tsVoidKeyword }; -export { TSVoidKeyword as tSVoidKeyword }; -export function TSThisType(...args: Array): Object { +export { tsVoidKeyword as TSVoidKeyword }; +export { tsVoidKeyword as tSVoidKeyword }; +export function tsThisType(...args: Array): Object { return builder("TSThisType", ...args); } -export { TSThisType as tsThisType }; -export { TSThisType as tSThisType }; -export function TSFunctionType(...args: Array): Object { +export { tsThisType as TSThisType }; +export { tsThisType as tSThisType }; +export function tsFunctionType(...args: Array): Object { return builder("TSFunctionType", ...args); } -export { TSFunctionType as tsFunctionType }; -export { TSFunctionType as tSFunctionType }; -export function TSConstructorType(...args: Array): Object { +export { tsFunctionType as TSFunctionType }; +export { tsFunctionType as tSFunctionType }; +export function tsConstructorType(...args: Array): Object { return builder("TSConstructorType", ...args); } -export { TSConstructorType as tsConstructorType }; -export { TSConstructorType as tSConstructorType }; -export function TSTypeReference(...args: Array): Object { +export { tsConstructorType as TSConstructorType }; +export { tsConstructorType as tSConstructorType }; +export function tsTypeReference(...args: Array): Object { return builder("TSTypeReference", ...args); } -export { TSTypeReference as tsTypeReference }; -export { TSTypeReference as tSTypeReference }; -export function TSTypePredicate(...args: Array): Object { +export { tsTypeReference as TSTypeReference }; +export { tsTypeReference as tSTypeReference }; +export function tsTypePredicate(...args: Array): Object { return builder("TSTypePredicate", ...args); } -export { TSTypePredicate as tsTypePredicate }; -export { TSTypePredicate as tSTypePredicate }; -export function TSTypeQuery(...args: Array): Object { +export { tsTypePredicate as TSTypePredicate }; +export { tsTypePredicate as tSTypePredicate }; +export function tsTypeQuery(...args: Array): Object { return builder("TSTypeQuery", ...args); } -export { TSTypeQuery as tsTypeQuery }; -export { TSTypeQuery as tSTypeQuery }; -export function TSTypeLiteral(...args: Array): Object { +export { tsTypeQuery as TSTypeQuery }; +export { tsTypeQuery as tSTypeQuery }; +export function tsTypeLiteral(...args: Array): Object { return builder("TSTypeLiteral", ...args); } -export { TSTypeLiteral as tsTypeLiteral }; -export { TSTypeLiteral as tSTypeLiteral }; -export function TSArrayType(...args: Array): Object { +export { tsTypeLiteral as TSTypeLiteral }; +export { tsTypeLiteral as tSTypeLiteral }; +export function tsArrayType(...args: Array): Object { return builder("TSArrayType", ...args); } -export { TSArrayType as tsArrayType }; -export { TSArrayType as tSArrayType }; -export function TSTupleType(...args: Array): Object { +export { tsArrayType as TSArrayType }; +export { tsArrayType as tSArrayType }; +export function tsTupleType(...args: Array): Object { return builder("TSTupleType", ...args); } -export { TSTupleType as tsTupleType }; -export { TSTupleType as tSTupleType }; -export function TSOptionalType(...args: Array): Object { +export { tsTupleType as TSTupleType }; +export { tsTupleType as tSTupleType }; +export function tsOptionalType(...args: Array): Object { return builder("TSOptionalType", ...args); } -export { TSOptionalType as tsOptionalType }; -export { TSOptionalType as tSOptionalType }; -export function TSRestType(...args: Array): Object { +export { tsOptionalType as TSOptionalType }; +export { tsOptionalType as tSOptionalType }; +export function tsRestType(...args: Array): Object { return builder("TSRestType", ...args); } -export { TSRestType as tsRestType }; -export { TSRestType as tSRestType }; -export function TSUnionType(...args: Array): Object { +export { tsRestType as TSRestType }; +export { tsRestType as tSRestType }; +export function tsUnionType(...args: Array): Object { return builder("TSUnionType", ...args); } -export { TSUnionType as tsUnionType }; -export { TSUnionType as tSUnionType }; -export function TSIntersectionType(...args: Array): Object { +export { tsUnionType as TSUnionType }; +export { tsUnionType as tSUnionType }; +export function tsIntersectionType(...args: Array): Object { return builder("TSIntersectionType", ...args); } -export { TSIntersectionType as tsIntersectionType }; -export { TSIntersectionType as tSIntersectionType }; -export function TSConditionalType(...args: Array): Object { +export { tsIntersectionType as TSIntersectionType }; +export { tsIntersectionType as tSIntersectionType }; +export function tsConditionalType(...args: Array): Object { return builder("TSConditionalType", ...args); } -export { TSConditionalType as tsConditionalType }; -export { TSConditionalType as tSConditionalType }; -export function TSInferType(...args: Array): Object { +export { tsConditionalType as TSConditionalType }; +export { tsConditionalType as tSConditionalType }; +export function tsInferType(...args: Array): Object { return builder("TSInferType", ...args); } -export { TSInferType as tsInferType }; -export { TSInferType as tSInferType }; -export function TSParenthesizedType(...args: Array): Object { +export { tsInferType as TSInferType }; +export { tsInferType as tSInferType }; +export function tsParenthesizedType(...args: Array): Object { return builder("TSParenthesizedType", ...args); } -export { TSParenthesizedType as tsParenthesizedType }; -export { TSParenthesizedType as tSParenthesizedType }; -export function TSTypeOperator(...args: Array): Object { +export { tsParenthesizedType as TSParenthesizedType }; +export { tsParenthesizedType as tSParenthesizedType }; +export function tsTypeOperator(...args: Array): Object { return builder("TSTypeOperator", ...args); } -export { TSTypeOperator as tsTypeOperator }; -export { TSTypeOperator as tSTypeOperator }; -export function TSIndexedAccessType(...args: Array): Object { +export { tsTypeOperator as TSTypeOperator }; +export { tsTypeOperator as tSTypeOperator }; +export function tsIndexedAccessType(...args: Array): Object { return builder("TSIndexedAccessType", ...args); } -export { TSIndexedAccessType as tsIndexedAccessType }; -export { TSIndexedAccessType as tSIndexedAccessType }; -export function TSMappedType(...args: Array): Object { +export { tsIndexedAccessType as TSIndexedAccessType }; +export { tsIndexedAccessType as tSIndexedAccessType }; +export function tsMappedType(...args: Array): Object { return builder("TSMappedType", ...args); } -export { TSMappedType as tsMappedType }; -export { TSMappedType as tSMappedType }; -export function TSLiteralType(...args: Array): Object { +export { tsMappedType as TSMappedType }; +export { tsMappedType as tSMappedType }; +export function tsLiteralType(...args: Array): Object { return builder("TSLiteralType", ...args); } -export { TSLiteralType as tsLiteralType }; -export { TSLiteralType as tSLiteralType }; -export function TSExpressionWithTypeArguments(...args: Array): Object { +export { tsLiteralType as TSLiteralType }; +export { tsLiteralType as tSLiteralType }; +export function tsExpressionWithTypeArguments(...args: Array): Object { return builder("TSExpressionWithTypeArguments", ...args); } -export { TSExpressionWithTypeArguments as tsExpressionWithTypeArguments }; -export { TSExpressionWithTypeArguments as tSExpressionWithTypeArguments }; -export function TSInterfaceDeclaration(...args: Array): Object { +export { tsExpressionWithTypeArguments as TSExpressionWithTypeArguments }; +export { tsExpressionWithTypeArguments as tSExpressionWithTypeArguments }; +export function tsInterfaceDeclaration(...args: Array): Object { return builder("TSInterfaceDeclaration", ...args); } -export { TSInterfaceDeclaration as tsInterfaceDeclaration }; -export { TSInterfaceDeclaration as tSInterfaceDeclaration }; -export function TSInterfaceBody(...args: Array): Object { +export { tsInterfaceDeclaration as TSInterfaceDeclaration }; +export { tsInterfaceDeclaration as tSInterfaceDeclaration }; +export function tsInterfaceBody(...args: Array): Object { return builder("TSInterfaceBody", ...args); } -export { TSInterfaceBody as tsInterfaceBody }; -export { TSInterfaceBody as tSInterfaceBody }; -export function TSTypeAliasDeclaration(...args: Array): Object { +export { tsInterfaceBody as TSInterfaceBody }; +export { tsInterfaceBody as tSInterfaceBody }; +export function tsTypeAliasDeclaration(...args: Array): Object { return builder("TSTypeAliasDeclaration", ...args); } -export { TSTypeAliasDeclaration as tsTypeAliasDeclaration }; -export { TSTypeAliasDeclaration as tSTypeAliasDeclaration }; -export function TSAsExpression(...args: Array): Object { +export { tsTypeAliasDeclaration as TSTypeAliasDeclaration }; +export { tsTypeAliasDeclaration as tSTypeAliasDeclaration }; +export function tsAsExpression(...args: Array): Object { return builder("TSAsExpression", ...args); } -export { TSAsExpression as tsAsExpression }; -export { TSAsExpression as tSAsExpression }; -export function TSTypeAssertion(...args: Array): Object { +export { tsAsExpression as TSAsExpression }; +export { tsAsExpression as tSAsExpression }; +export function tsTypeAssertion(...args: Array): Object { return builder("TSTypeAssertion", ...args); } -export { TSTypeAssertion as tsTypeAssertion }; -export { TSTypeAssertion as tSTypeAssertion }; -export function TSEnumDeclaration(...args: Array): Object { +export { tsTypeAssertion as TSTypeAssertion }; +export { tsTypeAssertion as tSTypeAssertion }; +export function tsEnumDeclaration(...args: Array): Object { return builder("TSEnumDeclaration", ...args); } -export { TSEnumDeclaration as tsEnumDeclaration }; -export { TSEnumDeclaration as tSEnumDeclaration }; -export function TSEnumMember(...args: Array): Object { +export { tsEnumDeclaration as TSEnumDeclaration }; +export { tsEnumDeclaration as tSEnumDeclaration }; +export function tsEnumMember(...args: Array): Object { return builder("TSEnumMember", ...args); } -export { TSEnumMember as tsEnumMember }; -export { TSEnumMember as tSEnumMember }; -export function TSModuleDeclaration(...args: Array): Object { +export { tsEnumMember as TSEnumMember }; +export { tsEnumMember as tSEnumMember }; +export function tsModuleDeclaration(...args: Array): Object { return builder("TSModuleDeclaration", ...args); } -export { TSModuleDeclaration as tsModuleDeclaration }; -export { TSModuleDeclaration as tSModuleDeclaration }; -export function TSModuleBlock(...args: Array): Object { +export { tsModuleDeclaration as TSModuleDeclaration }; +export { tsModuleDeclaration as tSModuleDeclaration }; +export function tsModuleBlock(...args: Array): Object { return builder("TSModuleBlock", ...args); } -export { TSModuleBlock as tsModuleBlock }; -export { TSModuleBlock as tSModuleBlock }; -export function TSImportType(...args: Array): Object { +export { tsModuleBlock as TSModuleBlock }; +export { tsModuleBlock as tSModuleBlock }; +export function tsImportType(...args: Array): Object { return builder("TSImportType", ...args); } -export { TSImportType as tsImportType }; -export { TSImportType as tSImportType }; -export function TSImportEqualsDeclaration(...args: Array): Object { +export { tsImportType as TSImportType }; +export { tsImportType as tSImportType }; +export function tsImportEqualsDeclaration(...args: Array): Object { return builder("TSImportEqualsDeclaration", ...args); } -export { TSImportEqualsDeclaration as tsImportEqualsDeclaration }; -export { TSImportEqualsDeclaration as tSImportEqualsDeclaration }; -export function TSExternalModuleReference(...args: Array): Object { +export { tsImportEqualsDeclaration as TSImportEqualsDeclaration }; +export { tsImportEqualsDeclaration as tSImportEqualsDeclaration }; +export function tsExternalModuleReference(...args: Array): Object { return builder("TSExternalModuleReference", ...args); } -export { TSExternalModuleReference as tsExternalModuleReference }; -export { TSExternalModuleReference as tSExternalModuleReference }; -export function TSNonNullExpression(...args: Array): Object { +export { tsExternalModuleReference as TSExternalModuleReference }; +export { tsExternalModuleReference as tSExternalModuleReference }; +export function tsNonNullExpression(...args: Array): Object { return builder("TSNonNullExpression", ...args); } -export { TSNonNullExpression as tsNonNullExpression }; -export { TSNonNullExpression as tSNonNullExpression }; -export function TSExportAssignment(...args: Array): Object { +export { tsNonNullExpression as TSNonNullExpression }; +export { tsNonNullExpression as tSNonNullExpression }; +export function tsExportAssignment(...args: Array): Object { return builder("TSExportAssignment", ...args); } -export { TSExportAssignment as tsExportAssignment }; -export { TSExportAssignment as tSExportAssignment }; -export function TSNamespaceExportDeclaration(...args: Array): Object { +export { tsExportAssignment as TSExportAssignment }; +export { tsExportAssignment as tSExportAssignment }; +export function tsNamespaceExportDeclaration(...args: Array): Object { return builder("TSNamespaceExportDeclaration", ...args); } -export { TSNamespaceExportDeclaration as tsNamespaceExportDeclaration }; -export { TSNamespaceExportDeclaration as tSNamespaceExportDeclaration }; -export function TSTypeAnnotation(...args: Array): Object { +export { tsNamespaceExportDeclaration as TSNamespaceExportDeclaration }; +export { tsNamespaceExportDeclaration as tSNamespaceExportDeclaration }; +export function tsTypeAnnotation(...args: Array): Object { return builder("TSTypeAnnotation", ...args); } -export { TSTypeAnnotation as tsTypeAnnotation }; -export { TSTypeAnnotation as tSTypeAnnotation }; -export function TSTypeParameterInstantiation(...args: Array): Object { +export { tsTypeAnnotation as TSTypeAnnotation }; +export { tsTypeAnnotation as tSTypeAnnotation }; +export function tsTypeParameterInstantiation(...args: Array): Object { return builder("TSTypeParameterInstantiation", ...args); } -export { TSTypeParameterInstantiation as tsTypeParameterInstantiation }; -export { TSTypeParameterInstantiation as tSTypeParameterInstantiation }; -export function TSTypeParameterDeclaration(...args: Array): Object { +export { tsTypeParameterInstantiation as TSTypeParameterInstantiation }; +export { tsTypeParameterInstantiation as tSTypeParameterInstantiation }; +export function tsTypeParameterDeclaration(...args: Array): Object { return builder("TSTypeParameterDeclaration", ...args); } -export { TSTypeParameterDeclaration as tsTypeParameterDeclaration }; -export { TSTypeParameterDeclaration as tSTypeParameterDeclaration }; -export function TSTypeParameter(...args: Array): Object { +export { tsTypeParameterDeclaration as TSTypeParameterDeclaration }; +export { tsTypeParameterDeclaration as tSTypeParameterDeclaration }; +export function tsTypeParameter(...args: Array): Object { return builder("TSTypeParameter", ...args); } -export { TSTypeParameter as tsTypeParameter }; -export { TSTypeParameter as tSTypeParameter }; +export { tsTypeParameter as TSTypeParameter }; +export { tsTypeParameter as tSTypeParameter }; export function NumberLiteral(...args: Array): Object { console.trace( "The node type NumberLiteral has been renamed to NumericLiteral", ); - return NumberLiteral("NumberLiteral", ...args); + return builder("NumberLiteral", ...args); } export { NumberLiteral as numberLiteral }; export function RegexLiteral(...args: Array): Object { console.trace("The node type RegexLiteral has been renamed to RegExpLiteral"); - return RegexLiteral("RegexLiteral", ...args); + return builder("RegexLiteral", ...args); } export { RegexLiteral as regexLiteral }; export function RestProperty(...args: Array): Object { console.trace("The node type RestProperty has been renamed to RestElement"); - return RestProperty("RestProperty", ...args); + return builder("RestProperty", ...args); } export { RestProperty as restProperty }; export function SpreadProperty(...args: Array): Object { console.trace( "The node type SpreadProperty has been renamed to SpreadElement", ); - return SpreadProperty("SpreadProperty", ...args); + return builder("SpreadProperty", ...args); } export { SpreadProperty as spreadProperty }; diff --git a/packages/babel-types/src/builders/typescript/createTSUnionType.js b/packages/babel-types/src/builders/typescript/createTSUnionType.js index 49138ad029f3..93d52c113f06 100644 --- a/packages/babel-types/src/builders/typescript/createTSUnionType.js +++ b/packages/babel-types/src/builders/typescript/createTSUnionType.js @@ -1,4 +1,4 @@ -import { TSUnionType } from "../generated"; +import { tsUnionType } from "../generated"; import removeTypeDuplicates from "../../modifications/typescript/removeTypeDuplicates"; /** @@ -14,6 +14,6 @@ export default function createTSUnionType( if (flattened.length === 1) { return flattened[0]; } else { - return TSUnionType(flattened); + return tsUnionType(flattened); } }