| | |
| | | }); |
| | | exports.AnyTypeAnnotation = AnyTypeAnnotation; |
| | | exports.ArrayTypeAnnotation = ArrayTypeAnnotation; |
| | | exports.BooleanTypeAnnotation = BooleanTypeAnnotation; |
| | | exports.BooleanLiteralTypeAnnotation = BooleanLiteralTypeAnnotation; |
| | | exports.NullLiteralTypeAnnotation = NullLiteralTypeAnnotation; |
| | | exports.BooleanTypeAnnotation = BooleanTypeAnnotation; |
| | | 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.DeclareTypeAlias = DeclareTypeAlias; |
| | | exports.DeclareOpaqueType = DeclareOpaqueType; |
| | | exports.DeclareTypeAlias = DeclareTypeAlias; |
| | | exports.DeclareVariable = DeclareVariable; |
| | | exports.DeclareExportDeclaration = DeclareExportDeclaration; |
| | | exports.DeclareExportAllDeclaration = DeclareExportAllDeclaration; |
| | | exports.EnumDeclaration = EnumDeclaration; |
| | | exports.DeclaredPredicate = DeclaredPredicate; |
| | | exports.EmptyTypeAnnotation = EmptyTypeAnnotation; |
| | | exports.EnumBooleanBody = EnumBooleanBody; |
| | | exports.EnumNumberBody = EnumNumberBody; |
| | | exports.EnumStringBody = EnumStringBody; |
| | | exports.EnumSymbolBody = EnumSymbolBody; |
| | | exports.EnumDefaultedMember = EnumDefaultedMember; |
| | | exports.EnumBooleanMember = EnumBooleanMember; |
| | | exports.EnumDeclaration = EnumDeclaration; |
| | | exports.EnumDefaultedMember = EnumDefaultedMember; |
| | | exports.EnumNumberBody = EnumNumberBody; |
| | | exports.EnumNumberMember = EnumNumberMember; |
| | | exports.EnumStringBody = EnumStringBody; |
| | | exports.EnumStringMember = EnumStringMember; |
| | | exports.EnumSymbolBody = EnumSymbolBody; |
| | | exports.ExistsTypeAnnotation = ExistsTypeAnnotation; |
| | | exports.FunctionTypeAnnotation = FunctionTypeAnnotation; |
| | | exports.FunctionTypeParam = FunctionTypeParam; |
| | | exports.GenericTypeAnnotation = exports.ClassImplements = exports.InterfaceExtends = InterfaceExtends; |
| | | exports._interfaceish = _interfaceish; |
| | | exports._variance = _variance; |
| | | exports.IndexedAccessType = IndexedAccessType; |
| | | exports.InferredPredicate = InferredPredicate; |
| | | exports.InterfaceDeclaration = InterfaceDeclaration; |
| | | exports.GenericTypeAnnotation = exports.ClassImplements = exports.InterfaceExtends = InterfaceExtends; |
| | | exports.InterfaceTypeAnnotation = InterfaceTypeAnnotation; |
| | | exports.IntersectionTypeAnnotation = IntersectionTypeAnnotation; |
| | | exports.MixedTypeAnnotation = MixedTypeAnnotation; |
| | | exports.EmptyTypeAnnotation = EmptyTypeAnnotation; |
| | | exports.NullLiteralTypeAnnotation = NullLiteralTypeAnnotation; |
| | | exports.NullableTypeAnnotation = NullableTypeAnnotation; |
| | | 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.ObjectTypeProperty = ObjectTypeProperty; |
| | | exports.ObjectTypeSpreadProperty = ObjectTypeSpreadProperty; |
| | | 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; |
| | | } |
| | | }); |
| | | exports.NumberTypeAnnotation = NumberTypeAnnotation; |
| | | exports.ObjectTypeAnnotation = ObjectTypeAnnotation; |
| | | exports.ObjectTypeCallProperty = ObjectTypeCallProperty; |
| | | exports.ObjectTypeIndexer = ObjectTypeIndexer; |
| | | exports.ObjectTypeInternalSlot = ObjectTypeInternalSlot; |
| | | exports.ObjectTypeProperty = ObjectTypeProperty; |
| | | exports.ObjectTypeSpreadProperty = ObjectTypeSpreadProperty; |
| | | exports.OpaqueType = OpaqueType; |
| | | exports.OptionalIndexedAccessType = OptionalIndexedAccessType; |
| | | exports.QualifiedTypeIdentifier = QualifiedTypeIdentifier; |
| | | Object.defineProperty(exports, "StringLiteralTypeAnnotation", { |
| | | enumerable: true, |
| | | get: function () { |
| | | return _types2.StringLiteral; |
| | | } |
| | | }); |
| | | 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; |
| | | |
| | | var _t = require("@babel/types"); |
| | | |
| | |
| | | |
| | | this.token(")"); |
| | | |
| | | if (parent.type === "ObjectTypeCallProperty" || parent.type === "DeclareFunction" || parent.type === "ObjectTypeProperty" && parent.method) { |
| | | if (parent && (parent.type === "ObjectTypeCallProperty" || parent.type === "DeclareFunction" || parent.type === "ObjectTypeProperty" && parent.method)) { |
| | | this.token(":"); |
| | | } else { |
| | | this.space(); |