@babel/generator
Advanced tools
Comparing version 7.15.8 to 7.16.0
@@ -6,9 +6,9 @@ "use strict"; | ||
}); | ||
exports.File = File; | ||
exports.Program = Program; | ||
exports.BlockStatement = BlockStatement; | ||
exports.Directive = Directive; | ||
exports.DirectiveLiteral = DirectiveLiteral; | ||
exports.File = File; | ||
exports.InterpreterDirective = InterpreterDirective; | ||
exports.Placeholder = Placeholder; | ||
exports.Program = Program; | ||
@@ -15,0 +15,0 @@ function File(node) { |
@@ -6,10 +6,10 @@ "use strict"; | ||
}); | ||
exports.ClassBody = ClassBody; | ||
exports.ClassExpression = exports.ClassDeclaration = ClassDeclaration; | ||
exports.ClassBody = ClassBody; | ||
exports.ClassProperty = ClassProperty; | ||
exports.ClassPrivateProperty = ClassPrivateProperty; | ||
exports.ClassMethod = ClassMethod; | ||
exports.ClassPrivateMethod = ClassPrivateMethod; | ||
exports.ClassPrivateProperty = ClassPrivateProperty; | ||
exports.ClassProperty = ClassProperty; | ||
exports.StaticBlock = StaticBlock; | ||
exports._classMethodHead = _classMethodHead; | ||
exports.StaticBlock = StaticBlock; | ||
@@ -16,0 +16,0 @@ var _t = require("@babel/types"); |
@@ -6,27 +6,28 @@ "use strict"; | ||
}); | ||
exports.UnaryExpression = UnaryExpression; | ||
exports.DoExpression = DoExpression; | ||
exports.ParenthesizedExpression = ParenthesizedExpression; | ||
exports.UpdateExpression = UpdateExpression; | ||
exports.LogicalExpression = exports.BinaryExpression = exports.AssignmentExpression = AssignmentExpression; | ||
exports.AssignmentPattern = AssignmentPattern; | ||
exports.AwaitExpression = void 0; | ||
exports.BindExpression = BindExpression; | ||
exports.CallExpression = CallExpression; | ||
exports.ConditionalExpression = ConditionalExpression; | ||
exports.NewExpression = NewExpression; | ||
exports.SequenceExpression = SequenceExpression; | ||
exports.ThisExpression = ThisExpression; | ||
exports.Super = Super; | ||
exports.Decorator = Decorator; | ||
exports.OptionalMemberExpression = OptionalMemberExpression; | ||
exports.OptionalCallExpression = OptionalCallExpression; | ||
exports.CallExpression = CallExpression; | ||
exports.Import = Import; | ||
exports.DoExpression = DoExpression; | ||
exports.EmptyStatement = EmptyStatement; | ||
exports.ExpressionStatement = ExpressionStatement; | ||
exports.AssignmentPattern = AssignmentPattern; | ||
exports.LogicalExpression = exports.BinaryExpression = exports.AssignmentExpression = AssignmentExpression; | ||
exports.BindExpression = BindExpression; | ||
exports.Import = Import; | ||
exports.MemberExpression = MemberExpression; | ||
exports.MetaProperty = MetaProperty; | ||
exports.ModuleExpression = ModuleExpression; | ||
exports.NewExpression = NewExpression; | ||
exports.OptionalCallExpression = OptionalCallExpression; | ||
exports.OptionalMemberExpression = OptionalMemberExpression; | ||
exports.ParenthesizedExpression = ParenthesizedExpression; | ||
exports.PrivateName = PrivateName; | ||
exports.SequenceExpression = SequenceExpression; | ||
exports.Super = Super; | ||
exports.ThisExpression = ThisExpression; | ||
exports.UnaryExpression = UnaryExpression; | ||
exports.UpdateExpression = UpdateExpression; | ||
exports.V8IntrinsicIdentifier = V8IntrinsicIdentifier; | ||
exports.ModuleExpression = ModuleExpression; | ||
exports.AwaitExpression = exports.YieldExpression = void 0; | ||
exports.YieldExpression = void 0; | ||
@@ -33,0 +34,0 @@ var _t = require("@babel/types"); |
@@ -8,68 +8,53 @@ "use strict"; | ||
exports.ArrayTypeAnnotation = ArrayTypeAnnotation; | ||
exports.BooleanLiteralTypeAnnotation = BooleanLiteralTypeAnnotation; | ||
exports.BooleanTypeAnnotation = BooleanTypeAnnotation; | ||
exports.BooleanLiteralTypeAnnotation = BooleanLiteralTypeAnnotation; | ||
exports.NullLiteralTypeAnnotation = NullLiteralTypeAnnotation; | ||
exports.DeclareClass = DeclareClass; | ||
exports.DeclareExportAllDeclaration = DeclareExportAllDeclaration; | ||
exports.DeclareExportDeclaration = DeclareExportDeclaration; | ||
exports.DeclareFunction = DeclareFunction; | ||
exports.InferredPredicate = InferredPredicate; | ||
exports.DeclaredPredicate = DeclaredPredicate; | ||
exports.DeclareInterface = DeclareInterface; | ||
exports.DeclareModule = DeclareModule; | ||
exports.DeclareModuleExports = DeclareModuleExports; | ||
exports.DeclareOpaqueType = DeclareOpaqueType; | ||
exports.DeclareTypeAlias = DeclareTypeAlias; | ||
exports.DeclareOpaqueType = DeclareOpaqueType; | ||
exports.DeclareVariable = DeclareVariable; | ||
exports.DeclareExportDeclaration = DeclareExportDeclaration; | ||
exports.DeclareExportAllDeclaration = DeclareExportAllDeclaration; | ||
exports.DeclaredPredicate = DeclaredPredicate; | ||
exports.EmptyTypeAnnotation = EmptyTypeAnnotation; | ||
exports.EnumBooleanBody = EnumBooleanBody; | ||
exports.EnumBooleanMember = EnumBooleanMember; | ||
exports.EnumDeclaration = EnumDeclaration; | ||
exports.EnumBooleanBody = EnumBooleanBody; | ||
exports.EnumDefaultedMember = EnumDefaultedMember; | ||
exports.EnumNumberBody = EnumNumberBody; | ||
exports.EnumNumberMember = EnumNumberMember; | ||
exports.EnumStringBody = EnumStringBody; | ||
exports.EnumStringMember = EnumStringMember; | ||
exports.EnumSymbolBody = EnumSymbolBody; | ||
exports.EnumDefaultedMember = EnumDefaultedMember; | ||
exports.EnumBooleanMember = EnumBooleanMember; | ||
exports.EnumNumberMember = EnumNumberMember; | ||
exports.EnumStringMember = EnumStringMember; | ||
exports.ExistsTypeAnnotation = ExistsTypeAnnotation; | ||
exports.FunctionTypeAnnotation = FunctionTypeAnnotation; | ||
exports.FunctionTypeParam = FunctionTypeParam; | ||
exports.IndexedAccessType = IndexedAccessType; | ||
exports.InferredPredicate = InferredPredicate; | ||
exports.InterfaceDeclaration = InterfaceDeclaration; | ||
exports.GenericTypeAnnotation = exports.ClassImplements = exports.InterfaceExtends = InterfaceExtends; | ||
exports._interfaceish = _interfaceish; | ||
exports._variance = _variance; | ||
exports.InterfaceDeclaration = InterfaceDeclaration; | ||
exports.InterfaceTypeAnnotation = InterfaceTypeAnnotation; | ||
exports.IntersectionTypeAnnotation = IntersectionTypeAnnotation; | ||
exports.MixedTypeAnnotation = MixedTypeAnnotation; | ||
exports.EmptyTypeAnnotation = EmptyTypeAnnotation; | ||
exports.NullLiteralTypeAnnotation = NullLiteralTypeAnnotation; | ||
exports.NullableTypeAnnotation = NullableTypeAnnotation; | ||
Object.defineProperty(exports, "NumberLiteralTypeAnnotation", { | ||
enumerable: true, | ||
get: function () { | ||
return _types2.NumericLiteral; | ||
} | ||
}); | ||
exports.NumberTypeAnnotation = NumberTypeAnnotation; | ||
exports.StringTypeAnnotation = StringTypeAnnotation; | ||
exports.ThisTypeAnnotation = ThisTypeAnnotation; | ||
exports.TupleTypeAnnotation = TupleTypeAnnotation; | ||
exports.TypeofTypeAnnotation = TypeofTypeAnnotation; | ||
exports.TypeAlias = TypeAlias; | ||
exports.TypeAnnotation = TypeAnnotation; | ||
exports.TypeParameterDeclaration = exports.TypeParameterInstantiation = TypeParameterInstantiation; | ||
exports.TypeParameter = TypeParameter; | ||
exports.OpaqueType = OpaqueType; | ||
exports.ObjectTypeAnnotation = ObjectTypeAnnotation; | ||
exports.ObjectTypeInternalSlot = ObjectTypeInternalSlot; | ||
exports.ObjectTypeCallProperty = ObjectTypeCallProperty; | ||
exports.ObjectTypeIndexer = ObjectTypeIndexer; | ||
exports.ObjectTypeInternalSlot = ObjectTypeInternalSlot; | ||
exports.ObjectTypeProperty = ObjectTypeProperty; | ||
exports.ObjectTypeSpreadProperty = ObjectTypeSpreadProperty; | ||
exports.OpaqueType = OpaqueType; | ||
exports.OptionalIndexedAccessType = OptionalIndexedAccessType; | ||
exports.QualifiedTypeIdentifier = QualifiedTypeIdentifier; | ||
exports.SymbolTypeAnnotation = SymbolTypeAnnotation; | ||
exports.UnionTypeAnnotation = UnionTypeAnnotation; | ||
exports.TypeCastExpression = TypeCastExpression; | ||
exports.Variance = Variance; | ||
exports.VoidTypeAnnotation = VoidTypeAnnotation; | ||
exports.IndexedAccessType = IndexedAccessType; | ||
exports.OptionalIndexedAccessType = OptionalIndexedAccessType; | ||
Object.defineProperty(exports, "NumberLiteralTypeAnnotation", { | ||
enumerable: true, | ||
get: function () { | ||
return _types2.NumericLiteral; | ||
} | ||
}); | ||
Object.defineProperty(exports, "StringLiteralTypeAnnotation", { | ||
@@ -81,2 +66,17 @@ enumerable: true, | ||
}); | ||
exports.StringTypeAnnotation = StringTypeAnnotation; | ||
exports.SymbolTypeAnnotation = SymbolTypeAnnotation; | ||
exports.ThisTypeAnnotation = ThisTypeAnnotation; | ||
exports.TupleTypeAnnotation = TupleTypeAnnotation; | ||
exports.TypeAlias = TypeAlias; | ||
exports.TypeAnnotation = TypeAnnotation; | ||
exports.TypeCastExpression = TypeCastExpression; | ||
exports.TypeParameter = TypeParameter; | ||
exports.TypeParameterDeclaration = exports.TypeParameterInstantiation = TypeParameterInstantiation; | ||
exports.TypeofTypeAnnotation = TypeofTypeAnnotation; | ||
exports.UnionTypeAnnotation = UnionTypeAnnotation; | ||
exports.Variance = Variance; | ||
exports.VoidTypeAnnotation = VoidTypeAnnotation; | ||
exports._interfaceish = _interfaceish; | ||
exports._variance = _variance; | ||
@@ -83,0 +83,0 @@ var _t = require("@babel/types"); |
@@ -7,16 +7,16 @@ "use strict"; | ||
exports.JSXAttribute = JSXAttribute; | ||
exports.JSXClosingElement = JSXClosingElement; | ||
exports.JSXClosingFragment = JSXClosingFragment; | ||
exports.JSXElement = JSXElement; | ||
exports.JSXEmptyExpression = JSXEmptyExpression; | ||
exports.JSXExpressionContainer = JSXExpressionContainer; | ||
exports.JSXFragment = JSXFragment; | ||
exports.JSXIdentifier = JSXIdentifier; | ||
exports.JSXMemberExpression = JSXMemberExpression; | ||
exports.JSXNamespacedName = JSXNamespacedName; | ||
exports.JSXMemberExpression = JSXMemberExpression; | ||
exports.JSXOpeningElement = JSXOpeningElement; | ||
exports.JSXOpeningFragment = JSXOpeningFragment; | ||
exports.JSXSpreadAttribute = JSXSpreadAttribute; | ||
exports.JSXExpressionContainer = JSXExpressionContainer; | ||
exports.JSXSpreadChild = JSXSpreadChild; | ||
exports.JSXText = JSXText; | ||
exports.JSXElement = JSXElement; | ||
exports.JSXOpeningElement = JSXOpeningElement; | ||
exports.JSXClosingElement = JSXClosingElement; | ||
exports.JSXEmptyExpression = JSXEmptyExpression; | ||
exports.JSXFragment = JSXFragment; | ||
exports.JSXOpeningFragment = JSXOpeningFragment; | ||
exports.JSXClosingFragment = JSXClosingFragment; | ||
@@ -23,0 +23,0 @@ function JSXAttribute(node) { |
@@ -6,10 +6,10 @@ "use strict"; | ||
}); | ||
exports.ArrowFunctionExpression = ArrowFunctionExpression; | ||
exports.FunctionDeclaration = exports.FunctionExpression = FunctionExpression; | ||
exports._functionHead = _functionHead; | ||
exports._methodHead = _methodHead; | ||
exports._param = _param; | ||
exports._parameters = _parameters; | ||
exports._params = _params; | ||
exports._parameters = _parameters; | ||
exports._param = _param; | ||
exports._methodHead = _methodHead; | ||
exports._predicate = _predicate; | ||
exports._functionHead = _functionHead; | ||
exports.FunctionDeclaration = exports.FunctionExpression = FunctionExpression; | ||
exports.ArrowFunctionExpression = ArrowFunctionExpression; | ||
@@ -106,2 +106,3 @@ var _t = require("@babel/types"); | ||
if (node.generator) this.token("*"); | ||
this.printInnerComments(node); | ||
this.space(); | ||
@@ -108,0 +109,0 @@ |
@@ -6,13 +6,13 @@ "use strict"; | ||
}); | ||
exports.ImportSpecifier = ImportSpecifier; | ||
exports.ImportDefaultSpecifier = ImportDefaultSpecifier; | ||
exports.ExportAllDeclaration = ExportAllDeclaration; | ||
exports.ExportDefaultDeclaration = ExportDefaultDeclaration; | ||
exports.ExportDefaultSpecifier = ExportDefaultSpecifier; | ||
exports.ExportNamedDeclaration = ExportNamedDeclaration; | ||
exports.ExportNamespaceSpecifier = ExportNamespaceSpecifier; | ||
exports.ExportSpecifier = ExportSpecifier; | ||
exports.ExportNamespaceSpecifier = ExportNamespaceSpecifier; | ||
exports.ExportAllDeclaration = ExportAllDeclaration; | ||
exports.ExportNamedDeclaration = ExportNamedDeclaration; | ||
exports.ExportDefaultDeclaration = ExportDefaultDeclaration; | ||
exports.ImportAttribute = ImportAttribute; | ||
exports.ImportDeclaration = ImportDeclaration; | ||
exports.ImportAttribute = ImportAttribute; | ||
exports.ImportDefaultSpecifier = ImportDefaultSpecifier; | ||
exports.ImportNamespaceSpecifier = ImportNamespaceSpecifier; | ||
exports.ImportSpecifier = ImportSpecifier; | ||
@@ -55,2 +55,7 @@ var _t = require("@babel/types"); | ||
function ExportSpecifier(node) { | ||
if (node.exportKind === "type") { | ||
this.word("type"); | ||
this.space(); | ||
} | ||
this.print(node.local, node); | ||
@@ -57,0 +62,0 @@ |
@@ -6,16 +6,20 @@ "use strict"; | ||
}); | ||
exports.WithStatement = WithStatement; | ||
exports.BreakStatement = void 0; | ||
exports.CatchClause = CatchClause; | ||
exports.ContinueStatement = void 0; | ||
exports.DebuggerStatement = DebuggerStatement; | ||
exports.DoWhileStatement = DoWhileStatement; | ||
exports.ForOfStatement = exports.ForInStatement = void 0; | ||
exports.ForStatement = ForStatement; | ||
exports.IfStatement = IfStatement; | ||
exports.ForStatement = ForStatement; | ||
exports.WhileStatement = WhileStatement; | ||
exports.DoWhileStatement = DoWhileStatement; | ||
exports.LabeledStatement = LabeledStatement; | ||
exports.ReturnStatement = void 0; | ||
exports.SwitchCase = SwitchCase; | ||
exports.SwitchStatement = SwitchStatement; | ||
exports.ThrowStatement = void 0; | ||
exports.TryStatement = TryStatement; | ||
exports.CatchClause = CatchClause; | ||
exports.SwitchStatement = SwitchStatement; | ||
exports.SwitchCase = SwitchCase; | ||
exports.DebuggerStatement = DebuggerStatement; | ||
exports.VariableDeclaration = VariableDeclaration; | ||
exports.VariableDeclarator = VariableDeclarator; | ||
exports.ThrowStatement = exports.BreakStatement = exports.ReturnStatement = exports.ContinueStatement = exports.ForOfStatement = exports.ForInStatement = void 0; | ||
exports.WhileStatement = WhileStatement; | ||
exports.WithStatement = WithStatement; | ||
@@ -22,0 +26,0 @@ var _t = require("@babel/types"); |
@@ -6,22 +6,22 @@ "use strict"; | ||
}); | ||
exports.ArgumentPlaceholder = ArgumentPlaceholder; | ||
exports.ArrayPattern = exports.ArrayExpression = ArrayExpression; | ||
exports.BigIntLiteral = BigIntLiteral; | ||
exports.BooleanLiteral = BooleanLiteral; | ||
exports.DecimalLiteral = DecimalLiteral; | ||
exports.Identifier = Identifier; | ||
exports.ArgumentPlaceholder = ArgumentPlaceholder; | ||
exports.SpreadElement = exports.RestElement = RestElement; | ||
exports.NullLiteral = NullLiteral; | ||
exports.NumericLiteral = NumericLiteral; | ||
exports.ObjectPattern = exports.ObjectExpression = ObjectExpression; | ||
exports.ObjectMethod = ObjectMethod; | ||
exports.ObjectProperty = ObjectProperty; | ||
exports.ArrayPattern = exports.ArrayExpression = ArrayExpression; | ||
exports.PipelineBareFunction = PipelineBareFunction; | ||
exports.PipelinePrimaryTopicReference = PipelinePrimaryTopicReference; | ||
exports.PipelineTopicExpression = PipelineTopicExpression; | ||
exports.RecordExpression = RecordExpression; | ||
exports.TupleExpression = TupleExpression; | ||
exports.RegExpLiteral = RegExpLiteral; | ||
exports.BooleanLiteral = BooleanLiteral; | ||
exports.NullLiteral = NullLiteral; | ||
exports.NumericLiteral = NumericLiteral; | ||
exports.SpreadElement = exports.RestElement = RestElement; | ||
exports.StringLiteral = StringLiteral; | ||
exports.BigIntLiteral = BigIntLiteral; | ||
exports.DecimalLiteral = DecimalLiteral; | ||
exports.TopicReference = TopicReference; | ||
exports.PipelineTopicExpression = PipelineTopicExpression; | ||
exports.PipelineBareFunction = PipelineBareFunction; | ||
exports.PipelinePrimaryTopicReference = PipelinePrimaryTopicReference; | ||
exports.TupleExpression = TupleExpression; | ||
@@ -251,2 +251,4 @@ var _t = require("@babel/types"); | ||
const validTopicTokenSet = new Set(["^", "%", "#"]); | ||
function TopicReference() { | ||
@@ -257,13 +259,8 @@ const { | ||
switch (topicToken) { | ||
case "#": | ||
this.token("#"); | ||
break; | ||
default: | ||
{ | ||
const givenTopicTokenJSON = JSON.stringify(topicToken); | ||
const message = `The "topicToken" generator option must be "#" (${givenTopicTokenJSON} received instead).`; | ||
throw new Error(message); | ||
} | ||
if (validTopicTokenSet.has(topicToken)) { | ||
this.token(topicToken); | ||
} else { | ||
const givenTopicTokenJSON = JSON.stringify(topicToken); | ||
const validTopics = Array.from(validTopicTokenSet, v => JSON.stringify(v)); | ||
throw new Error(`The "topicToken" generator option must be one of ` + `${validTopics.join(", ")} (${givenTopicTokenJSON} received instead).`); | ||
} | ||
@@ -270,0 +267,0 @@ } |
@@ -6,71 +6,71 @@ "use strict"; | ||
}); | ||
exports.TSTypeAnnotation = TSTypeAnnotation; | ||
exports.TSTypeParameterDeclaration = exports.TSTypeParameterInstantiation = TSTypeParameterInstantiation; | ||
exports.TSTypeParameter = TSTypeParameter; | ||
exports.TSParameterProperty = TSParameterProperty; | ||
exports.TSAnyKeyword = TSAnyKeyword; | ||
exports.TSArrayType = TSArrayType; | ||
exports.TSAsExpression = TSAsExpression; | ||
exports.TSBigIntKeyword = TSBigIntKeyword; | ||
exports.TSBooleanKeyword = TSBooleanKeyword; | ||
exports.TSCallSignatureDeclaration = TSCallSignatureDeclaration; | ||
exports.TSConditionalType = TSConditionalType; | ||
exports.TSConstructSignatureDeclaration = TSConstructSignatureDeclaration; | ||
exports.TSConstructorType = TSConstructorType; | ||
exports.TSDeclareFunction = TSDeclareFunction; | ||
exports.TSDeclareMethod = TSDeclareMethod; | ||
exports.TSQualifiedName = TSQualifiedName; | ||
exports.TSCallSignatureDeclaration = TSCallSignatureDeclaration; | ||
exports.TSConstructSignatureDeclaration = TSConstructSignatureDeclaration; | ||
exports.TSPropertySignature = TSPropertySignature; | ||
exports.tsPrintPropertyOrMethodName = tsPrintPropertyOrMethodName; | ||
exports.TSEnumDeclaration = TSEnumDeclaration; | ||
exports.TSEnumMember = TSEnumMember; | ||
exports.TSExportAssignment = TSExportAssignment; | ||
exports.TSExpressionWithTypeArguments = TSExpressionWithTypeArguments; | ||
exports.TSExternalModuleReference = TSExternalModuleReference; | ||
exports.TSFunctionType = TSFunctionType; | ||
exports.TSImportEqualsDeclaration = TSImportEqualsDeclaration; | ||
exports.TSImportType = TSImportType; | ||
exports.TSIndexSignature = TSIndexSignature; | ||
exports.TSIndexedAccessType = TSIndexedAccessType; | ||
exports.TSInferType = TSInferType; | ||
exports.TSInterfaceBody = TSInterfaceBody; | ||
exports.TSInterfaceDeclaration = TSInterfaceDeclaration; | ||
exports.TSIntersectionType = TSIntersectionType; | ||
exports.TSIntrinsicKeyword = TSIntrinsicKeyword; | ||
exports.TSLiteralType = TSLiteralType; | ||
exports.TSMappedType = TSMappedType; | ||
exports.TSMethodSignature = TSMethodSignature; | ||
exports.TSIndexSignature = TSIndexSignature; | ||
exports.TSAnyKeyword = TSAnyKeyword; | ||
exports.TSBigIntKeyword = TSBigIntKeyword; | ||
exports.TSUnknownKeyword = TSUnknownKeyword; | ||
exports.TSModuleBlock = TSModuleBlock; | ||
exports.TSModuleDeclaration = TSModuleDeclaration; | ||
exports.TSNamedTupleMember = TSNamedTupleMember; | ||
exports.TSNamespaceExportDeclaration = TSNamespaceExportDeclaration; | ||
exports.TSNeverKeyword = TSNeverKeyword; | ||
exports.TSNonNullExpression = TSNonNullExpression; | ||
exports.TSNullKeyword = TSNullKeyword; | ||
exports.TSNumberKeyword = TSNumberKeyword; | ||
exports.TSObjectKeyword = TSObjectKeyword; | ||
exports.TSBooleanKeyword = TSBooleanKeyword; | ||
exports.TSOptionalType = TSOptionalType; | ||
exports.TSParameterProperty = TSParameterProperty; | ||
exports.TSParenthesizedType = TSParenthesizedType; | ||
exports.TSPropertySignature = TSPropertySignature; | ||
exports.TSQualifiedName = TSQualifiedName; | ||
exports.TSRestType = TSRestType; | ||
exports.TSStringKeyword = TSStringKeyword; | ||
exports.TSSymbolKeyword = TSSymbolKeyword; | ||
exports.TSVoidKeyword = TSVoidKeyword; | ||
exports.TSUndefinedKeyword = TSUndefinedKeyword; | ||
exports.TSNullKeyword = TSNullKeyword; | ||
exports.TSNeverKeyword = TSNeverKeyword; | ||
exports.TSIntrinsicKeyword = TSIntrinsicKeyword; | ||
exports.TSThisType = TSThisType; | ||
exports.TSFunctionType = TSFunctionType; | ||
exports.TSConstructorType = TSConstructorType; | ||
exports.tsPrintFunctionOrConstructorType = tsPrintFunctionOrConstructorType; | ||
exports.TSTypeReference = TSTypeReference; | ||
exports.TSTupleType = TSTupleType; | ||
exports.TSTypeAliasDeclaration = TSTypeAliasDeclaration; | ||
exports.TSTypeAnnotation = TSTypeAnnotation; | ||
exports.TSTypeAssertion = TSTypeAssertion; | ||
exports.TSTypeLiteral = TSTypeLiteral; | ||
exports.TSTypeOperator = TSTypeOperator; | ||
exports.TSTypeParameter = TSTypeParameter; | ||
exports.TSTypeParameterDeclaration = exports.TSTypeParameterInstantiation = TSTypeParameterInstantiation; | ||
exports.TSTypePredicate = TSTypePredicate; | ||
exports.TSTypeQuery = TSTypeQuery; | ||
exports.TSTypeLiteral = TSTypeLiteral; | ||
exports.TSTypeReference = TSTypeReference; | ||
exports.TSUndefinedKeyword = TSUndefinedKeyword; | ||
exports.TSUnionType = TSUnionType; | ||
exports.TSUnknownKeyword = TSUnknownKeyword; | ||
exports.TSVoidKeyword = TSVoidKeyword; | ||
exports.tsPrintBraced = tsPrintBraced; | ||
exports.tsPrintClassMemberModifiers = tsPrintClassMemberModifiers; | ||
exports.tsPrintFunctionOrConstructorType = tsPrintFunctionOrConstructorType; | ||
exports.tsPrintPropertyOrMethodName = tsPrintPropertyOrMethodName; | ||
exports.tsPrintSignatureDeclarationBase = tsPrintSignatureDeclarationBase; | ||
exports.tsPrintTypeLiteralOrInterfaceBody = tsPrintTypeLiteralOrInterfaceBody; | ||
exports.tsPrintBraced = tsPrintBraced; | ||
exports.TSArrayType = TSArrayType; | ||
exports.TSTupleType = TSTupleType; | ||
exports.TSOptionalType = TSOptionalType; | ||
exports.TSRestType = TSRestType; | ||
exports.TSNamedTupleMember = TSNamedTupleMember; | ||
exports.TSUnionType = TSUnionType; | ||
exports.TSIntersectionType = TSIntersectionType; | ||
exports.tsPrintUnionOrIntersectionType = tsPrintUnionOrIntersectionType; | ||
exports.TSConditionalType = TSConditionalType; | ||
exports.TSInferType = TSInferType; | ||
exports.TSParenthesizedType = TSParenthesizedType; | ||
exports.TSTypeOperator = TSTypeOperator; | ||
exports.TSIndexedAccessType = TSIndexedAccessType; | ||
exports.TSMappedType = TSMappedType; | ||
exports.TSLiteralType = TSLiteralType; | ||
exports.TSExpressionWithTypeArguments = TSExpressionWithTypeArguments; | ||
exports.TSInterfaceDeclaration = TSInterfaceDeclaration; | ||
exports.TSInterfaceBody = TSInterfaceBody; | ||
exports.TSTypeAliasDeclaration = TSTypeAliasDeclaration; | ||
exports.TSAsExpression = TSAsExpression; | ||
exports.TSTypeAssertion = TSTypeAssertion; | ||
exports.TSEnumDeclaration = TSEnumDeclaration; | ||
exports.TSEnumMember = TSEnumMember; | ||
exports.TSModuleDeclaration = TSModuleDeclaration; | ||
exports.TSModuleBlock = TSModuleBlock; | ||
exports.TSImportType = TSImportType; | ||
exports.TSImportEqualsDeclaration = TSImportEqualsDeclaration; | ||
exports.TSExternalModuleReference = TSExternalModuleReference; | ||
exports.TSNonNullExpression = TSNonNullExpression; | ||
exports.TSExportAssignment = TSExportAssignment; | ||
exports.TSNamespaceExportDeclaration = TSNamespaceExportDeclaration; | ||
exports.tsPrintSignatureDeclarationBase = tsPrintSignatureDeclarationBase; | ||
exports.tsPrintClassMemberModifiers = tsPrintClassMemberModifiers; | ||
@@ -77,0 +77,0 @@ function TSTypeAnnotation(node) { |
@@ -6,4 +6,4 @@ "use strict"; | ||
}); | ||
exports.CodeGenerator = void 0; | ||
exports.default = generate; | ||
exports.CodeGenerator = void 0; | ||
@@ -10,0 +10,0 @@ var _sourceMap = require("./source-map"); |
@@ -6,6 +6,6 @@ "use strict"; | ||
}); | ||
exports.needsParens = needsParens; | ||
exports.needsWhitespace = needsWhitespace; | ||
exports.needsWhitespaceAfter = needsWhitespaceAfter; | ||
exports.needsWhitespaceBefore = needsWhitespaceBefore; | ||
exports.needsWhitespaceAfter = needsWhitespaceAfter; | ||
exports.needsParens = needsParens; | ||
@@ -12,0 +12,0 @@ var whitespace = require("./whitespace"); |
@@ -6,26 +6,26 @@ "use strict"; | ||
}); | ||
exports.ArrowFunctionExpression = ArrowFunctionExpression; | ||
exports.AssignmentExpression = AssignmentExpression; | ||
exports.Binary = Binary; | ||
exports.BinaryExpression = BinaryExpression; | ||
exports.ClassExpression = ClassExpression; | ||
exports.ConditionalExpression = ConditionalExpression; | ||
exports.DoExpression = DoExpression; | ||
exports.FunctionExpression = FunctionExpression; | ||
exports.FunctionTypeAnnotation = FunctionTypeAnnotation; | ||
exports.Identifier = Identifier; | ||
exports.LogicalExpression = LogicalExpression; | ||
exports.NullableTypeAnnotation = NullableTypeAnnotation; | ||
exports.FunctionTypeAnnotation = FunctionTypeAnnotation; | ||
exports.UpdateExpression = UpdateExpression; | ||
exports.ObjectExpression = ObjectExpression; | ||
exports.DoExpression = DoExpression; | ||
exports.Binary = Binary; | ||
exports.IntersectionTypeAnnotation = exports.UnionTypeAnnotation = UnionTypeAnnotation; | ||
exports.OptionalIndexedAccessType = OptionalIndexedAccessType; | ||
exports.OptionalCallExpression = exports.OptionalMemberExpression = OptionalMemberExpression; | ||
exports.SequenceExpression = SequenceExpression; | ||
exports.TSAsExpression = TSAsExpression; | ||
exports.TSInferType = TSInferType; | ||
exports.TSTypeAssertion = TSTypeAssertion; | ||
exports.TSIntersectionType = exports.TSUnionType = TSUnionType; | ||
exports.TSInferType = TSInferType; | ||
exports.BinaryExpression = BinaryExpression; | ||
exports.SequenceExpression = SequenceExpression; | ||
exports.UnaryLike = UnaryLike; | ||
exports.IntersectionTypeAnnotation = exports.UnionTypeAnnotation = UnionTypeAnnotation; | ||
exports.UpdateExpression = UpdateExpression; | ||
exports.AwaitExpression = exports.YieldExpression = YieldExpression; | ||
exports.ClassExpression = ClassExpression; | ||
exports.UnaryLike = UnaryLike; | ||
exports.FunctionExpression = FunctionExpression; | ||
exports.ArrowFunctionExpression = ArrowFunctionExpression; | ||
exports.ConditionalExpression = ConditionalExpression; | ||
exports.OptionalCallExpression = exports.OptionalMemberExpression = OptionalMemberExpression; | ||
exports.AssignmentExpression = AssignmentExpression; | ||
exports.LogicalExpression = LogicalExpression; | ||
exports.Identifier = Identifier; | ||
@@ -32,0 +32,0 @@ var _t = require("@babel/types"); |
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.list = exports.nodes = void 0; | ||
exports.nodes = exports.list = void 0; | ||
@@ -9,0 +9,0 @@ var _t = require("@babel/types"); |
{ | ||
"name": "@babel/generator", | ||
"version": "7.15.8", | ||
"version": "7.16.0", | ||
"description": "Turns an AST into code.", | ||
@@ -22,3 +22,3 @@ "author": "The Babel Team (https://babel.dev/team)", | ||
"dependencies": { | ||
"@babel/types": "^7.15.6", | ||
"@babel/types": "^7.16.0", | ||
"jsesc": "^2.5.1", | ||
@@ -28,4 +28,4 @@ "source-map": "^0.5.0" | ||
"devDependencies": { | ||
"@babel/helper-fixtures": "7.14.5", | ||
"@babel/parser": "7.15.8", | ||
"@babel/helper-fixtures": "^7.16.0", | ||
"@babel/parser": "^7.16.0", | ||
"@types/jsesc": "^2.5.0", | ||
@@ -32,0 +32,0 @@ "@types/source-map": "^0.5.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
118194
4214
Updated@babel/types@^7.16.0