Generate better builder names for JSX* and TS* (#6967)
e.g. JSXIdentifier -> jsxIdentifier. The jSXIdentifier alias isn't removed, so this commit doesn't introduce breaking changes.
This commit is contained in:
parent
fcfa987926
commit
a2aabbd33d
@ -18,10 +18,10 @@ const TRACE_ID = "__self";
|
|||||||
export default function() {
|
export default function() {
|
||||||
const visitor = {
|
const visitor = {
|
||||||
JSXOpeningElement({ node }) {
|
JSXOpeningElement({ node }) {
|
||||||
const id = t.jSXIdentifier(TRACE_ID);
|
const id = t.jsxIdentifier(TRACE_ID);
|
||||||
const trace = t.thisExpression();
|
const trace = t.thisExpression();
|
||||||
|
|
||||||
node.attributes.push(t.jSXAttribute(id, t.jSXExpressionContainer(trace)));
|
node.attributes.push(t.jsxAttribute(id, t.jsxExpressionContainer(trace)));
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -34,7 +34,7 @@ export default function() {
|
|||||||
|
|
||||||
const visitor = {
|
const visitor = {
|
||||||
JSXOpeningElement(path, state) {
|
JSXOpeningElement(path, state) {
|
||||||
const id = t.jSXIdentifier(TRACE_ID);
|
const id = t.jsxIdentifier(TRACE_ID);
|
||||||
const location = path.container.openingElement.loc;
|
const location = path.container.openingElement.loc;
|
||||||
if (!location) {
|
if (!location) {
|
||||||
// the element was generated and doesn't have location information
|
// the element was generated and doesn't have location information
|
||||||
@ -64,7 +64,7 @@ export default function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const trace = makeTrace(state.fileNameIdentifier, location.start.line);
|
const trace = makeTrace(state.fileNameIdentifier, location.start.line);
|
||||||
attributes.push(t.jSXAttribute(id, t.jSXExpressionContainer(trace)));
|
attributes.push(t.jsxAttribute(id, t.jsxExpressionContainer(trace)));
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -83,7 +83,7 @@ export default function(api, options) {
|
|||||||
|
|
||||||
visitor.JSXAttribute = function(path) {
|
visitor.JSXAttribute = function(path) {
|
||||||
if (t.isJSXElement(path.node.value)) {
|
if (t.isJSXElement(path.node.value)) {
|
||||||
path.node.value = t.jSXExpressionContainer(path.node.value);
|
path.node.value = t.jsxExpressionContainer(path.node.value);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -226,7 +226,7 @@ function hoistFunctionEnvironment(
|
|||||||
thisPaths.forEach(thisChild => {
|
thisPaths.forEach(thisChild => {
|
||||||
thisChild.replaceWith(
|
thisChild.replaceWith(
|
||||||
thisChild.isJSX()
|
thisChild.isJSX()
|
||||||
? t.jSXIdentifier(thisBinding)
|
? t.jsxIdentifier(thisBinding)
|
||||||
: t.identifier(thisBinding),
|
: t.identifier(thisBinding),
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
const definitions = require("../../lib/definitions");
|
const definitions = require("../../lib/definitions");
|
||||||
|
const formatBuilderName = require("../utils/formatBuilderName");
|
||||||
const lowerFirst = require("../utils/lowerFirst");
|
const lowerFirst = require("../utils/lowerFirst");
|
||||||
|
|
||||||
module.exports = function generateBuilders() {
|
module.exports = function generateBuilders() {
|
||||||
@ -12,7 +13,14 @@ import builder from "../builder";\n\n`;
|
|||||||
|
|
||||||
Object.keys(definitions.BUILDER_KEYS).forEach(type => {
|
Object.keys(definitions.BUILDER_KEYS).forEach(type => {
|
||||||
output += `export function ${type}(...args: Array<any>): Object { return builder("${type}", ...args); }
|
output += `export function ${type}(...args: Array<any>): Object { return builder("${type}", ...args); }
|
||||||
export { ${type} as ${lowerFirst(type)} };\n`;
|
export { ${type} as ${formatBuilderName(type)} };\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`;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
Object.keys(definitions.DEPRECATED_KEYS).forEach(type => {
|
Object.keys(definitions.DEPRECATED_KEYS).forEach(type => {
|
||||||
@ -21,7 +29,14 @@ export { ${type} as ${lowerFirst(type)} };\n`;
|
|||||||
console.trace("The node type ${type} has been renamed to ${newType}");
|
console.trace("The node type ${type} has been renamed to ${newType}");
|
||||||
return ${type}("${type}", ...args);
|
return ${type}("${type}", ...args);
|
||||||
}
|
}
|
||||||
export { ${type} as ${lowerFirst(type)} };\n`;
|
export { ${type} as ${formatBuilderName(type)} };\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`;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
return output;
|
return output;
|
||||||
|
|||||||
9
packages/babel-types/scripts/utils/formatBuilderName.js
Normal file
9
packages/babel-types/scripts/utils/formatBuilderName.js
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
"use strict";
|
||||||
|
|
||||||
|
const toLowerCase = Function.call.bind("".toLowerCase);
|
||||||
|
|
||||||
|
module.exports = function formatBuilderName(type) {
|
||||||
|
// FunctionExpression -> functionExpression
|
||||||
|
// JSXIdentifier -> jsxIdentifier
|
||||||
|
return type.replace(/^([A-Z](?=[a-z])|[A-Z]+(?=[A-Z]))/, toLowerCase);
|
||||||
|
};
|
||||||
@ -500,62 +500,77 @@ export { VoidTypeAnnotation as voidTypeAnnotation };
|
|||||||
export function JSXAttribute(...args: Array<any>): Object {
|
export function JSXAttribute(...args: Array<any>): Object {
|
||||||
return builder("JSXAttribute", ...args);
|
return builder("JSXAttribute", ...args);
|
||||||
}
|
}
|
||||||
|
export { JSXAttribute as jsxAttribute };
|
||||||
export { JSXAttribute as jSXAttribute };
|
export { JSXAttribute as jSXAttribute };
|
||||||
export function JSXClosingElement(...args: Array<any>): Object {
|
export function JSXClosingElement(...args: Array<any>): Object {
|
||||||
return builder("JSXClosingElement", ...args);
|
return builder("JSXClosingElement", ...args);
|
||||||
}
|
}
|
||||||
|
export { JSXClosingElement as jsxClosingElement };
|
||||||
export { JSXClosingElement as jSXClosingElement };
|
export { JSXClosingElement as jSXClosingElement };
|
||||||
export function JSXElement(...args: Array<any>): Object {
|
export function JSXElement(...args: Array<any>): Object {
|
||||||
return builder("JSXElement", ...args);
|
return builder("JSXElement", ...args);
|
||||||
}
|
}
|
||||||
|
export { JSXElement as jsxElement };
|
||||||
export { JSXElement as jSXElement };
|
export { JSXElement as jSXElement };
|
||||||
export function JSXEmptyExpression(...args: Array<any>): Object {
|
export function JSXEmptyExpression(...args: Array<any>): Object {
|
||||||
return builder("JSXEmptyExpression", ...args);
|
return builder("JSXEmptyExpression", ...args);
|
||||||
}
|
}
|
||||||
|
export { JSXEmptyExpression as jsxEmptyExpression };
|
||||||
export { JSXEmptyExpression as jSXEmptyExpression };
|
export { JSXEmptyExpression as jSXEmptyExpression };
|
||||||
export function JSXExpressionContainer(...args: Array<any>): Object {
|
export function JSXExpressionContainer(...args: Array<any>): Object {
|
||||||
return builder("JSXExpressionContainer", ...args);
|
return builder("JSXExpressionContainer", ...args);
|
||||||
}
|
}
|
||||||
|
export { JSXExpressionContainer as jsxExpressionContainer };
|
||||||
export { JSXExpressionContainer as jSXExpressionContainer };
|
export { JSXExpressionContainer as jSXExpressionContainer };
|
||||||
export function JSXSpreadChild(...args: Array<any>): Object {
|
export function JSXSpreadChild(...args: Array<any>): Object {
|
||||||
return builder("JSXSpreadChild", ...args);
|
return builder("JSXSpreadChild", ...args);
|
||||||
}
|
}
|
||||||
|
export { JSXSpreadChild as jsxSpreadChild };
|
||||||
export { JSXSpreadChild as jSXSpreadChild };
|
export { JSXSpreadChild as jSXSpreadChild };
|
||||||
export function JSXIdentifier(...args: Array<any>): Object {
|
export function JSXIdentifier(...args: Array<any>): Object {
|
||||||
return builder("JSXIdentifier", ...args);
|
return builder("JSXIdentifier", ...args);
|
||||||
}
|
}
|
||||||
|
export { JSXIdentifier as jsxIdentifier };
|
||||||
export { JSXIdentifier as jSXIdentifier };
|
export { JSXIdentifier as jSXIdentifier };
|
||||||
export function JSXMemberExpression(...args: Array<any>): Object {
|
export function JSXMemberExpression(...args: Array<any>): Object {
|
||||||
return builder("JSXMemberExpression", ...args);
|
return builder("JSXMemberExpression", ...args);
|
||||||
}
|
}
|
||||||
|
export { JSXMemberExpression as jsxMemberExpression };
|
||||||
export { JSXMemberExpression as jSXMemberExpression };
|
export { JSXMemberExpression as jSXMemberExpression };
|
||||||
export function JSXNamespacedName(...args: Array<any>): Object {
|
export function JSXNamespacedName(...args: Array<any>): Object {
|
||||||
return builder("JSXNamespacedName", ...args);
|
return builder("JSXNamespacedName", ...args);
|
||||||
}
|
}
|
||||||
|
export { JSXNamespacedName as jsxNamespacedName };
|
||||||
export { JSXNamespacedName as jSXNamespacedName };
|
export { JSXNamespacedName as jSXNamespacedName };
|
||||||
export function JSXOpeningElement(...args: Array<any>): Object {
|
export function JSXOpeningElement(...args: Array<any>): Object {
|
||||||
return builder("JSXOpeningElement", ...args);
|
return builder("JSXOpeningElement", ...args);
|
||||||
}
|
}
|
||||||
|
export { JSXOpeningElement as jsxOpeningElement };
|
||||||
export { JSXOpeningElement as jSXOpeningElement };
|
export { JSXOpeningElement as jSXOpeningElement };
|
||||||
export function JSXSpreadAttribute(...args: Array<any>): Object {
|
export function JSXSpreadAttribute(...args: Array<any>): Object {
|
||||||
return builder("JSXSpreadAttribute", ...args);
|
return builder("JSXSpreadAttribute", ...args);
|
||||||
}
|
}
|
||||||
|
export { JSXSpreadAttribute as jsxSpreadAttribute };
|
||||||
export { JSXSpreadAttribute as jSXSpreadAttribute };
|
export { JSXSpreadAttribute as jSXSpreadAttribute };
|
||||||
export function JSXText(...args: Array<any>): Object {
|
export function JSXText(...args: Array<any>): Object {
|
||||||
return builder("JSXText", ...args);
|
return builder("JSXText", ...args);
|
||||||
}
|
}
|
||||||
|
export { JSXText as jsxText };
|
||||||
export { JSXText as jSXText };
|
export { JSXText as jSXText };
|
||||||
export function JSXFragment(...args: Array<any>): Object {
|
export function JSXFragment(...args: Array<any>): Object {
|
||||||
return builder("JSXFragment", ...args);
|
return builder("JSXFragment", ...args);
|
||||||
}
|
}
|
||||||
|
export { JSXFragment as jsxFragment };
|
||||||
export { JSXFragment as jSXFragment };
|
export { JSXFragment as jSXFragment };
|
||||||
export function JSXOpeningFragment(...args: Array<any>): Object {
|
export function JSXOpeningFragment(...args: Array<any>): Object {
|
||||||
return builder("JSXOpeningFragment", ...args);
|
return builder("JSXOpeningFragment", ...args);
|
||||||
}
|
}
|
||||||
|
export { JSXOpeningFragment as jsxOpeningFragment };
|
||||||
export { JSXOpeningFragment as jSXOpeningFragment };
|
export { JSXOpeningFragment as jSXOpeningFragment };
|
||||||
export function JSXClosingFragment(...args: Array<any>): Object {
|
export function JSXClosingFragment(...args: Array<any>): Object {
|
||||||
return builder("JSXClosingFragment", ...args);
|
return builder("JSXClosingFragment", ...args);
|
||||||
}
|
}
|
||||||
|
export { JSXClosingFragment as jsxClosingFragment };
|
||||||
export { JSXClosingFragment as jSXClosingFragment };
|
export { JSXClosingFragment as jSXClosingFragment };
|
||||||
export function Noop(...args: Array<any>): Object {
|
export function Noop(...args: Array<any>): Object {
|
||||||
return builder("Noop", ...args);
|
return builder("Noop", ...args);
|
||||||
@ -600,218 +615,272 @@ export { ExportNamespaceSpecifier as exportNamespaceSpecifier };
|
|||||||
export function TSParameterProperty(...args: Array<any>): Object {
|
export function TSParameterProperty(...args: Array<any>): Object {
|
||||||
return builder("TSParameterProperty", ...args);
|
return builder("TSParameterProperty", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSParameterProperty as tsParameterProperty };
|
||||||
export { TSParameterProperty as tSParameterProperty };
|
export { TSParameterProperty as tSParameterProperty };
|
||||||
export function TSDeclareFunction(...args: Array<any>): Object {
|
export function TSDeclareFunction(...args: Array<any>): Object {
|
||||||
return builder("TSDeclareFunction", ...args);
|
return builder("TSDeclareFunction", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSDeclareFunction as tsDeclareFunction };
|
||||||
export { TSDeclareFunction as tSDeclareFunction };
|
export { TSDeclareFunction as tSDeclareFunction };
|
||||||
export function TSDeclareMethod(...args: Array<any>): Object {
|
export function TSDeclareMethod(...args: Array<any>): Object {
|
||||||
return builder("TSDeclareMethod", ...args);
|
return builder("TSDeclareMethod", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSDeclareMethod as tsDeclareMethod };
|
||||||
export { TSDeclareMethod as tSDeclareMethod };
|
export { TSDeclareMethod as tSDeclareMethod };
|
||||||
export function TSQualifiedName(...args: Array<any>): Object {
|
export function TSQualifiedName(...args: Array<any>): Object {
|
||||||
return builder("TSQualifiedName", ...args);
|
return builder("TSQualifiedName", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSQualifiedName as tsQualifiedName };
|
||||||
export { TSQualifiedName as tSQualifiedName };
|
export { TSQualifiedName as tSQualifiedName };
|
||||||
export function TSCallSignatureDeclaration(...args: Array<any>): Object {
|
export function TSCallSignatureDeclaration(...args: Array<any>): Object {
|
||||||
return builder("TSCallSignatureDeclaration", ...args);
|
return builder("TSCallSignatureDeclaration", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSCallSignatureDeclaration as tsCallSignatureDeclaration };
|
||||||
export { TSCallSignatureDeclaration as tSCallSignatureDeclaration };
|
export { TSCallSignatureDeclaration as tSCallSignatureDeclaration };
|
||||||
export function TSConstructSignatureDeclaration(...args: Array<any>): Object {
|
export function TSConstructSignatureDeclaration(...args: Array<any>): Object {
|
||||||
return builder("TSConstructSignatureDeclaration", ...args);
|
return builder("TSConstructSignatureDeclaration", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSConstructSignatureDeclaration as tsConstructSignatureDeclaration };
|
||||||
export { TSConstructSignatureDeclaration as tSConstructSignatureDeclaration };
|
export { TSConstructSignatureDeclaration as tSConstructSignatureDeclaration };
|
||||||
export function TSPropertySignature(...args: Array<any>): Object {
|
export function TSPropertySignature(...args: Array<any>): Object {
|
||||||
return builder("TSPropertySignature", ...args);
|
return builder("TSPropertySignature", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSPropertySignature as tsPropertySignature };
|
||||||
export { TSPropertySignature as tSPropertySignature };
|
export { TSPropertySignature as tSPropertySignature };
|
||||||
export function TSMethodSignature(...args: Array<any>): Object {
|
export function TSMethodSignature(...args: Array<any>): Object {
|
||||||
return builder("TSMethodSignature", ...args);
|
return builder("TSMethodSignature", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSMethodSignature as tsMethodSignature };
|
||||||
export { TSMethodSignature as tSMethodSignature };
|
export { TSMethodSignature as tSMethodSignature };
|
||||||
export function TSIndexSignature(...args: Array<any>): Object {
|
export function TSIndexSignature(...args: Array<any>): Object {
|
||||||
return builder("TSIndexSignature", ...args);
|
return builder("TSIndexSignature", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSIndexSignature as tsIndexSignature };
|
||||||
export { TSIndexSignature as tSIndexSignature };
|
export { TSIndexSignature as tSIndexSignature };
|
||||||
export function TSAnyKeyword(...args: Array<any>): Object {
|
export function TSAnyKeyword(...args: Array<any>): Object {
|
||||||
return builder("TSAnyKeyword", ...args);
|
return builder("TSAnyKeyword", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSAnyKeyword as tsAnyKeyword };
|
||||||
export { TSAnyKeyword as tSAnyKeyword };
|
export { TSAnyKeyword as tSAnyKeyword };
|
||||||
export function TSNumberKeyword(...args: Array<any>): Object {
|
export function TSNumberKeyword(...args: Array<any>): Object {
|
||||||
return builder("TSNumberKeyword", ...args);
|
return builder("TSNumberKeyword", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSNumberKeyword as tsNumberKeyword };
|
||||||
export { TSNumberKeyword as tSNumberKeyword };
|
export { TSNumberKeyword as tSNumberKeyword };
|
||||||
export function TSObjectKeyword(...args: Array<any>): Object {
|
export function TSObjectKeyword(...args: Array<any>): Object {
|
||||||
return builder("TSObjectKeyword", ...args);
|
return builder("TSObjectKeyword", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSObjectKeyword as tsObjectKeyword };
|
||||||
export { TSObjectKeyword as tSObjectKeyword };
|
export { TSObjectKeyword as tSObjectKeyword };
|
||||||
export function TSBooleanKeyword(...args: Array<any>): Object {
|
export function TSBooleanKeyword(...args: Array<any>): Object {
|
||||||
return builder("TSBooleanKeyword", ...args);
|
return builder("TSBooleanKeyword", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSBooleanKeyword as tsBooleanKeyword };
|
||||||
export { TSBooleanKeyword as tSBooleanKeyword };
|
export { TSBooleanKeyword as tSBooleanKeyword };
|
||||||
export function TSStringKeyword(...args: Array<any>): Object {
|
export function TSStringKeyword(...args: Array<any>): Object {
|
||||||
return builder("TSStringKeyword", ...args);
|
return builder("TSStringKeyword", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSStringKeyword as tsStringKeyword };
|
||||||
export { TSStringKeyword as tSStringKeyword };
|
export { TSStringKeyword as tSStringKeyword };
|
||||||
export function TSSymbolKeyword(...args: Array<any>): Object {
|
export function TSSymbolKeyword(...args: Array<any>): Object {
|
||||||
return builder("TSSymbolKeyword", ...args);
|
return builder("TSSymbolKeyword", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSSymbolKeyword as tsSymbolKeyword };
|
||||||
export { TSSymbolKeyword as tSSymbolKeyword };
|
export { TSSymbolKeyword as tSSymbolKeyword };
|
||||||
export function TSVoidKeyword(...args: Array<any>): Object {
|
export function TSVoidKeyword(...args: Array<any>): Object {
|
||||||
return builder("TSVoidKeyword", ...args);
|
return builder("TSVoidKeyword", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSVoidKeyword as tsVoidKeyword };
|
||||||
export { TSVoidKeyword as tSVoidKeyword };
|
export { TSVoidKeyword as tSVoidKeyword };
|
||||||
export function TSUndefinedKeyword(...args: Array<any>): Object {
|
export function TSUndefinedKeyword(...args: Array<any>): Object {
|
||||||
return builder("TSUndefinedKeyword", ...args);
|
return builder("TSUndefinedKeyword", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSUndefinedKeyword as tsUndefinedKeyword };
|
||||||
export { TSUndefinedKeyword as tSUndefinedKeyword };
|
export { TSUndefinedKeyword as tSUndefinedKeyword };
|
||||||
export function TSNullKeyword(...args: Array<any>): Object {
|
export function TSNullKeyword(...args: Array<any>): Object {
|
||||||
return builder("TSNullKeyword", ...args);
|
return builder("TSNullKeyword", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSNullKeyword as tsNullKeyword };
|
||||||
export { TSNullKeyword as tSNullKeyword };
|
export { TSNullKeyword as tSNullKeyword };
|
||||||
export function TSNeverKeyword(...args: Array<any>): Object {
|
export function TSNeverKeyword(...args: Array<any>): Object {
|
||||||
return builder("TSNeverKeyword", ...args);
|
return builder("TSNeverKeyword", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSNeverKeyword as tsNeverKeyword };
|
||||||
export { TSNeverKeyword as tSNeverKeyword };
|
export { TSNeverKeyword as tSNeverKeyword };
|
||||||
export function TSThisType(...args: Array<any>): Object {
|
export function TSThisType(...args: Array<any>): Object {
|
||||||
return builder("TSThisType", ...args);
|
return builder("TSThisType", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSThisType as tsThisType };
|
||||||
export { TSThisType as tSThisType };
|
export { TSThisType as tSThisType };
|
||||||
export function TSFunctionType(...args: Array<any>): Object {
|
export function TSFunctionType(...args: Array<any>): Object {
|
||||||
return builder("TSFunctionType", ...args);
|
return builder("TSFunctionType", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSFunctionType as tsFunctionType };
|
||||||
export { TSFunctionType as tSFunctionType };
|
export { TSFunctionType as tSFunctionType };
|
||||||
export function TSConstructorType(...args: Array<any>): Object {
|
export function TSConstructorType(...args: Array<any>): Object {
|
||||||
return builder("TSConstructorType", ...args);
|
return builder("TSConstructorType", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSConstructorType as tsConstructorType };
|
||||||
export { TSConstructorType as tSConstructorType };
|
export { TSConstructorType as tSConstructorType };
|
||||||
export function TSTypeReference(...args: Array<any>): Object {
|
export function TSTypeReference(...args: Array<any>): Object {
|
||||||
return builder("TSTypeReference", ...args);
|
return builder("TSTypeReference", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSTypeReference as tsTypeReference };
|
||||||
export { TSTypeReference as tSTypeReference };
|
export { TSTypeReference as tSTypeReference };
|
||||||
export function TSTypePredicate(...args: Array<any>): Object {
|
export function TSTypePredicate(...args: Array<any>): Object {
|
||||||
return builder("TSTypePredicate", ...args);
|
return builder("TSTypePredicate", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSTypePredicate as tsTypePredicate };
|
||||||
export { TSTypePredicate as tSTypePredicate };
|
export { TSTypePredicate as tSTypePredicate };
|
||||||
export function TSTypeQuery(...args: Array<any>): Object {
|
export function TSTypeQuery(...args: Array<any>): Object {
|
||||||
return builder("TSTypeQuery", ...args);
|
return builder("TSTypeQuery", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSTypeQuery as tsTypeQuery };
|
||||||
export { TSTypeQuery as tSTypeQuery };
|
export { TSTypeQuery as tSTypeQuery };
|
||||||
export function TSTypeLiteral(...args: Array<any>): Object {
|
export function TSTypeLiteral(...args: Array<any>): Object {
|
||||||
return builder("TSTypeLiteral", ...args);
|
return builder("TSTypeLiteral", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSTypeLiteral as tsTypeLiteral };
|
||||||
export { TSTypeLiteral as tSTypeLiteral };
|
export { TSTypeLiteral as tSTypeLiteral };
|
||||||
export function TSArrayType(...args: Array<any>): Object {
|
export function TSArrayType(...args: Array<any>): Object {
|
||||||
return builder("TSArrayType", ...args);
|
return builder("TSArrayType", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSArrayType as tsArrayType };
|
||||||
export { TSArrayType as tSArrayType };
|
export { TSArrayType as tSArrayType };
|
||||||
export function TSTupleType(...args: Array<any>): Object {
|
export function TSTupleType(...args: Array<any>): Object {
|
||||||
return builder("TSTupleType", ...args);
|
return builder("TSTupleType", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSTupleType as tsTupleType };
|
||||||
export { TSTupleType as tSTupleType };
|
export { TSTupleType as tSTupleType };
|
||||||
export function TSUnionType(...args: Array<any>): Object {
|
export function TSUnionType(...args: Array<any>): Object {
|
||||||
return builder("TSUnionType", ...args);
|
return builder("TSUnionType", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSUnionType as tsUnionType };
|
||||||
export { TSUnionType as tSUnionType };
|
export { TSUnionType as tSUnionType };
|
||||||
export function TSIntersectionType(...args: Array<any>): Object {
|
export function TSIntersectionType(...args: Array<any>): Object {
|
||||||
return builder("TSIntersectionType", ...args);
|
return builder("TSIntersectionType", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSIntersectionType as tsIntersectionType };
|
||||||
export { TSIntersectionType as tSIntersectionType };
|
export { TSIntersectionType as tSIntersectionType };
|
||||||
export function TSParenthesizedType(...args: Array<any>): Object {
|
export function TSParenthesizedType(...args: Array<any>): Object {
|
||||||
return builder("TSParenthesizedType", ...args);
|
return builder("TSParenthesizedType", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSParenthesizedType as tsParenthesizedType };
|
||||||
export { TSParenthesizedType as tSParenthesizedType };
|
export { TSParenthesizedType as tSParenthesizedType };
|
||||||
export function TSTypeOperator(...args: Array<any>): Object {
|
export function TSTypeOperator(...args: Array<any>): Object {
|
||||||
return builder("TSTypeOperator", ...args);
|
return builder("TSTypeOperator", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSTypeOperator as tsTypeOperator };
|
||||||
export { TSTypeOperator as tSTypeOperator };
|
export { TSTypeOperator as tSTypeOperator };
|
||||||
export function TSIndexedAccessType(...args: Array<any>): Object {
|
export function TSIndexedAccessType(...args: Array<any>): Object {
|
||||||
return builder("TSIndexedAccessType", ...args);
|
return builder("TSIndexedAccessType", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSIndexedAccessType as tsIndexedAccessType };
|
||||||
export { TSIndexedAccessType as tSIndexedAccessType };
|
export { TSIndexedAccessType as tSIndexedAccessType };
|
||||||
export function TSMappedType(...args: Array<any>): Object {
|
export function TSMappedType(...args: Array<any>): Object {
|
||||||
return builder("TSMappedType", ...args);
|
return builder("TSMappedType", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSMappedType as tsMappedType };
|
||||||
export { TSMappedType as tSMappedType };
|
export { TSMappedType as tSMappedType };
|
||||||
export function TSLiteralType(...args: Array<any>): Object {
|
export function TSLiteralType(...args: Array<any>): Object {
|
||||||
return builder("TSLiteralType", ...args);
|
return builder("TSLiteralType", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSLiteralType as tsLiteralType };
|
||||||
export { TSLiteralType as tSLiteralType };
|
export { TSLiteralType as tSLiteralType };
|
||||||
export function TSExpressionWithTypeArguments(...args: Array<any>): Object {
|
export function TSExpressionWithTypeArguments(...args: Array<any>): Object {
|
||||||
return builder("TSExpressionWithTypeArguments", ...args);
|
return builder("TSExpressionWithTypeArguments", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSExpressionWithTypeArguments as tsExpressionWithTypeArguments };
|
||||||
export { TSExpressionWithTypeArguments as tSExpressionWithTypeArguments };
|
export { TSExpressionWithTypeArguments as tSExpressionWithTypeArguments };
|
||||||
export function TSInterfaceDeclaration(...args: Array<any>): Object {
|
export function TSInterfaceDeclaration(...args: Array<any>): Object {
|
||||||
return builder("TSInterfaceDeclaration", ...args);
|
return builder("TSInterfaceDeclaration", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSInterfaceDeclaration as tsInterfaceDeclaration };
|
||||||
export { TSInterfaceDeclaration as tSInterfaceDeclaration };
|
export { TSInterfaceDeclaration as tSInterfaceDeclaration };
|
||||||
export function TSInterfaceBody(...args: Array<any>): Object {
|
export function TSInterfaceBody(...args: Array<any>): Object {
|
||||||
return builder("TSInterfaceBody", ...args);
|
return builder("TSInterfaceBody", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSInterfaceBody as tsInterfaceBody };
|
||||||
export { TSInterfaceBody as tSInterfaceBody };
|
export { TSInterfaceBody as tSInterfaceBody };
|
||||||
export function TSTypeAliasDeclaration(...args: Array<any>): Object {
|
export function TSTypeAliasDeclaration(...args: Array<any>): Object {
|
||||||
return builder("TSTypeAliasDeclaration", ...args);
|
return builder("TSTypeAliasDeclaration", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSTypeAliasDeclaration as tsTypeAliasDeclaration };
|
||||||
export { TSTypeAliasDeclaration as tSTypeAliasDeclaration };
|
export { TSTypeAliasDeclaration as tSTypeAliasDeclaration };
|
||||||
export function TSAsExpression(...args: Array<any>): Object {
|
export function TSAsExpression(...args: Array<any>): Object {
|
||||||
return builder("TSAsExpression", ...args);
|
return builder("TSAsExpression", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSAsExpression as tsAsExpression };
|
||||||
export { TSAsExpression as tSAsExpression };
|
export { TSAsExpression as tSAsExpression };
|
||||||
export function TSTypeAssertion(...args: Array<any>): Object {
|
export function TSTypeAssertion(...args: Array<any>): Object {
|
||||||
return builder("TSTypeAssertion", ...args);
|
return builder("TSTypeAssertion", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSTypeAssertion as tsTypeAssertion };
|
||||||
export { TSTypeAssertion as tSTypeAssertion };
|
export { TSTypeAssertion as tSTypeAssertion };
|
||||||
export function TSEnumDeclaration(...args: Array<any>): Object {
|
export function TSEnumDeclaration(...args: Array<any>): Object {
|
||||||
return builder("TSEnumDeclaration", ...args);
|
return builder("TSEnumDeclaration", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSEnumDeclaration as tsEnumDeclaration };
|
||||||
export { TSEnumDeclaration as tSEnumDeclaration };
|
export { TSEnumDeclaration as tSEnumDeclaration };
|
||||||
export function TSEnumMember(...args: Array<any>): Object {
|
export function TSEnumMember(...args: Array<any>): Object {
|
||||||
return builder("TSEnumMember", ...args);
|
return builder("TSEnumMember", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSEnumMember as tsEnumMember };
|
||||||
export { TSEnumMember as tSEnumMember };
|
export { TSEnumMember as tSEnumMember };
|
||||||
export function TSModuleDeclaration(...args: Array<any>): Object {
|
export function TSModuleDeclaration(...args: Array<any>): Object {
|
||||||
return builder("TSModuleDeclaration", ...args);
|
return builder("TSModuleDeclaration", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSModuleDeclaration as tsModuleDeclaration };
|
||||||
export { TSModuleDeclaration as tSModuleDeclaration };
|
export { TSModuleDeclaration as tSModuleDeclaration };
|
||||||
export function TSModuleBlock(...args: Array<any>): Object {
|
export function TSModuleBlock(...args: Array<any>): Object {
|
||||||
return builder("TSModuleBlock", ...args);
|
return builder("TSModuleBlock", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSModuleBlock as tsModuleBlock };
|
||||||
export { TSModuleBlock as tSModuleBlock };
|
export { TSModuleBlock as tSModuleBlock };
|
||||||
export function TSImportEqualsDeclaration(...args: Array<any>): Object {
|
export function TSImportEqualsDeclaration(...args: Array<any>): Object {
|
||||||
return builder("TSImportEqualsDeclaration", ...args);
|
return builder("TSImportEqualsDeclaration", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSImportEqualsDeclaration as tsImportEqualsDeclaration };
|
||||||
export { TSImportEqualsDeclaration as tSImportEqualsDeclaration };
|
export { TSImportEqualsDeclaration as tSImportEqualsDeclaration };
|
||||||
export function TSExternalModuleReference(...args: Array<any>): Object {
|
export function TSExternalModuleReference(...args: Array<any>): Object {
|
||||||
return builder("TSExternalModuleReference", ...args);
|
return builder("TSExternalModuleReference", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSExternalModuleReference as tsExternalModuleReference };
|
||||||
export { TSExternalModuleReference as tSExternalModuleReference };
|
export { TSExternalModuleReference as tSExternalModuleReference };
|
||||||
export function TSNonNullExpression(...args: Array<any>): Object {
|
export function TSNonNullExpression(...args: Array<any>): Object {
|
||||||
return builder("TSNonNullExpression", ...args);
|
return builder("TSNonNullExpression", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSNonNullExpression as tsNonNullExpression };
|
||||||
export { TSNonNullExpression as tSNonNullExpression };
|
export { TSNonNullExpression as tSNonNullExpression };
|
||||||
export function TSExportAssignment(...args: Array<any>): Object {
|
export function TSExportAssignment(...args: Array<any>): Object {
|
||||||
return builder("TSExportAssignment", ...args);
|
return builder("TSExportAssignment", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSExportAssignment as tsExportAssignment };
|
||||||
export { TSExportAssignment as tSExportAssignment };
|
export { TSExportAssignment as tSExportAssignment };
|
||||||
export function TSNamespaceExportDeclaration(...args: Array<any>): Object {
|
export function TSNamespaceExportDeclaration(...args: Array<any>): Object {
|
||||||
return builder("TSNamespaceExportDeclaration", ...args);
|
return builder("TSNamespaceExportDeclaration", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSNamespaceExportDeclaration as tsNamespaceExportDeclaration };
|
||||||
export { TSNamespaceExportDeclaration as tSNamespaceExportDeclaration };
|
export { TSNamespaceExportDeclaration as tSNamespaceExportDeclaration };
|
||||||
export function TSTypeAnnotation(...args: Array<any>): Object {
|
export function TSTypeAnnotation(...args: Array<any>): Object {
|
||||||
return builder("TSTypeAnnotation", ...args);
|
return builder("TSTypeAnnotation", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSTypeAnnotation as tsTypeAnnotation };
|
||||||
export { TSTypeAnnotation as tSTypeAnnotation };
|
export { TSTypeAnnotation as tSTypeAnnotation };
|
||||||
export function TSTypeParameterInstantiation(...args: Array<any>): Object {
|
export function TSTypeParameterInstantiation(...args: Array<any>): Object {
|
||||||
return builder("TSTypeParameterInstantiation", ...args);
|
return builder("TSTypeParameterInstantiation", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSTypeParameterInstantiation as tsTypeParameterInstantiation };
|
||||||
export { TSTypeParameterInstantiation as tSTypeParameterInstantiation };
|
export { TSTypeParameterInstantiation as tSTypeParameterInstantiation };
|
||||||
export function TSTypeParameterDeclaration(...args: Array<any>): Object {
|
export function TSTypeParameterDeclaration(...args: Array<any>): Object {
|
||||||
return builder("TSTypeParameterDeclaration", ...args);
|
return builder("TSTypeParameterDeclaration", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSTypeParameterDeclaration as tsTypeParameterDeclaration };
|
||||||
export { TSTypeParameterDeclaration as tSTypeParameterDeclaration };
|
export { TSTypeParameterDeclaration as tSTypeParameterDeclaration };
|
||||||
export function TSTypeParameter(...args: Array<any>): Object {
|
export function TSTypeParameter(...args: Array<any>): Object {
|
||||||
return builder("TSTypeParameter", ...args);
|
return builder("TSTypeParameter", ...args);
|
||||||
}
|
}
|
||||||
|
export { TSTypeParameter as tsTypeParameter };
|
||||||
export { TSTypeParameter as tSTypeParameter };
|
export { TSTypeParameter as tSTypeParameter };
|
||||||
export function NumberLiteral(...args: Array<any>): Object {
|
export function NumberLiteral(...args: Array<any>): Object {
|
||||||
console.trace(
|
console.trace(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user