[−][src]Struct swc_ecma_transforms::compat::es3::PropertyLiteral
babel: transform-property-literals
Input
var foo = {
// changed
"bar": function () {},
"1": function () {},
// not changed
"default": 1,
[a]: 2,
foo: 1
};
Output
var foo = {
bar: function () {},
1: function () {},
"default": 1,
[a]: 2,
foo: 1
};
Trait Implementations
impl Clone for PropertyLiteral
[src]
fn clone(&self) -> PropertyLiteral
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for PropertyLiteral
[src]
impl Default for PropertyLiteral
[src]
fn default() -> PropertyLiteral
[src]
impl Fold<Accessibility> for PropertyLiteral
[src]
fn fold(&mut self, node: Accessibility) -> Accessibility
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<Module> for PropertyLiteral
[src]
fn fold(&mut self, node: Module) -> Module
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<PropName> for PropertyLiteral
[src]
fn fold(&mut self, n: PropName) -> PropName
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TruePlusMinus> for PropertyLiteral
[src]
fn fold(&mut self, node: TruePlusMinus) -> TruePlusMinus
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsArrayType> for PropertyLiteral
[src]
fn fold(&mut self, node: TsArrayType) -> TsArrayType
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsCallSignatureDecl> for PropertyLiteral
[src]
fn fold(&mut self, node: TsCallSignatureDecl) -> TsCallSignatureDecl
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsConditionalType> for PropertyLiteral
[src]
fn fold(&mut self, node: TsConditionalType) -> TsConditionalType
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsConstructSignatureDecl> for PropertyLiteral
[src]
fn fold(&mut self, node: TsConstructSignatureDecl) -> TsConstructSignatureDecl
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsConstructorType> for PropertyLiteral
[src]
fn fold(&mut self, node: TsConstructorType) -> TsConstructorType
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsEntityName> for PropertyLiteral
[src]
fn fold(&mut self, node: TsEntityName) -> TsEntityName
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsEnumDecl> for PropertyLiteral
[src]
fn fold(&mut self, node: TsEnumDecl) -> TsEnumDecl
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsEnumMember> for PropertyLiteral
[src]
fn fold(&mut self, node: TsEnumMember) -> TsEnumMember
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsEnumMemberId> for PropertyLiteral
[src]
fn fold(&mut self, node: TsEnumMemberId) -> TsEnumMemberId
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsExternalModuleRef> for PropertyLiteral
[src]
fn fold(&mut self, node: TsExternalModuleRef) -> TsExternalModuleRef
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsFnOrConstructorType> for PropertyLiteral
[src]
fn fold(&mut self, node: TsFnOrConstructorType) -> TsFnOrConstructorType
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsFnParam> for PropertyLiteral
[src]
fn fold(&mut self, node: TsFnParam) -> TsFnParam
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsFnType> for PropertyLiteral
[src]
fn fold(&mut self, node: TsFnType) -> TsFnType
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsImportEqualsDecl> for PropertyLiteral
[src]
fn fold(&mut self, node: TsImportEqualsDecl) -> TsImportEqualsDecl
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsImportType> for PropertyLiteral
[src]
fn fold(&mut self, node: TsImportType) -> TsImportType
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsIndexSignature> for PropertyLiteral
[src]
fn fold(&mut self, node: TsIndexSignature) -> TsIndexSignature
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsIndexedAccessType> for PropertyLiteral
[src]
fn fold(&mut self, node: TsIndexedAccessType) -> TsIndexedAccessType
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsInferType> for PropertyLiteral
[src]
fn fold(&mut self, node: TsInferType) -> TsInferType
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsInterfaceBody> for PropertyLiteral
[src]
fn fold(&mut self, node: TsInterfaceBody) -> TsInterfaceBody
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsInterfaceDecl> for PropertyLiteral
[src]
fn fold(&mut self, node: TsInterfaceDecl) -> TsInterfaceDecl
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsIntersectionType> for PropertyLiteral
[src]
fn fold(&mut self, node: TsIntersectionType) -> TsIntersectionType
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsKeywordType> for PropertyLiteral
[src]
fn fold(&mut self, node: TsKeywordType) -> TsKeywordType
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsKeywordTypeKind> for PropertyLiteral
[src]
fn fold(&mut self, node: TsKeywordTypeKind) -> TsKeywordTypeKind
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsMappedType> for PropertyLiteral
[src]
fn fold(&mut self, node: TsMappedType) -> TsMappedType
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsMethodSignature> for PropertyLiteral
[src]
fn fold(&mut self, node: TsMethodSignature) -> TsMethodSignature
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsModuleBlock> for PropertyLiteral
[src]
fn fold(&mut self, node: TsModuleBlock) -> TsModuleBlock
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsModuleDecl> for PropertyLiteral
[src]
fn fold(&mut self, node: TsModuleDecl) -> TsModuleDecl
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsModuleName> for PropertyLiteral
[src]
fn fold(&mut self, node: TsModuleName) -> TsModuleName
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsModuleRef> for PropertyLiteral
[src]
fn fold(&mut self, node: TsModuleRef) -> TsModuleRef
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsNamespaceBody> for PropertyLiteral
[src]
fn fold(&mut self, node: TsNamespaceBody) -> TsNamespaceBody
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsNamespaceDecl> for PropertyLiteral
[src]
fn fold(&mut self, node: TsNamespaceDecl) -> TsNamespaceDecl
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsNamespaceExportDecl> for PropertyLiteral
[src]
fn fold(&mut self, node: TsNamespaceExportDecl) -> TsNamespaceExportDecl
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsOptionalType> for PropertyLiteral
[src]
fn fold(&mut self, node: TsOptionalType) -> TsOptionalType
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsParamProp> for PropertyLiteral
[src]
fn fold(&mut self, node: TsParamProp) -> TsParamProp
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsParamPropParam> for PropertyLiteral
[src]
fn fold(&mut self, node: TsParamPropParam) -> TsParamPropParam
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsParenthesizedType> for PropertyLiteral
[src]
fn fold(&mut self, node: TsParenthesizedType) -> TsParenthesizedType
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsPropertySignature> for PropertyLiteral
[src]
fn fold(&mut self, node: TsPropertySignature) -> TsPropertySignature
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsQualifiedName> for PropertyLiteral
[src]
fn fold(&mut self, node: TsQualifiedName) -> TsQualifiedName
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsRestType> for PropertyLiteral
[src]
fn fold(&mut self, node: TsRestType) -> TsRestType
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsSignatureDecl> for PropertyLiteral
[src]
fn fold(&mut self, node: TsSignatureDecl) -> TsSignatureDecl
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsThisType> for PropertyLiteral
[src]
fn fold(&mut self, node: TsThisType) -> TsThisType
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsThisTypeOrIdent> for PropertyLiteral
[src]
fn fold(&mut self, node: TsThisTypeOrIdent) -> TsThisTypeOrIdent
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsTupleType> for PropertyLiteral
[src]
fn fold(&mut self, node: TsTupleType) -> TsTupleType
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsType> for PropertyLiteral
[src]
fn fold(&mut self, node: TsType) -> TsType
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsTypeAliasDecl> for PropertyLiteral
[src]
fn fold(&mut self, node: TsTypeAliasDecl) -> TsTypeAliasDecl
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsTypeAnn> for PropertyLiteral
[src]
fn fold(&mut self, node: TsTypeAnn) -> TsTypeAnn
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsTypeAssertion> for PropertyLiteral
[src]
fn fold(&mut self, node: TsTypeAssertion) -> TsTypeAssertion
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsTypeCastExpr> for PropertyLiteral
[src]
fn fold(&mut self, node: TsTypeCastExpr) -> TsTypeCastExpr
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsTypeElement> for PropertyLiteral
[src]
fn fold(&mut self, node: TsTypeElement) -> TsTypeElement
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsTypeLit> for PropertyLiteral
[src]
fn fold(&mut self, node: TsTypeLit) -> TsTypeLit
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsTypeOperator> for PropertyLiteral
[src]
fn fold(&mut self, node: TsTypeOperator) -> TsTypeOperator
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsTypeOperatorOp> for PropertyLiteral
[src]
fn fold(&mut self, node: TsTypeOperatorOp) -> TsTypeOperatorOp
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsTypeParam> for PropertyLiteral
[src]
fn fold(&mut self, node: TsTypeParam) -> TsTypeParam
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsTypeParamDecl> for PropertyLiteral
[src]
fn fold(&mut self, node: TsTypeParamDecl) -> TsTypeParamDecl
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsTypeParamInstantiation> for PropertyLiteral
[src]
fn fold(&mut self, node: TsTypeParamInstantiation) -> TsTypeParamInstantiation
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsTypePredicate> for PropertyLiteral
[src]
fn fold(&mut self, node: TsTypePredicate) -> TsTypePredicate
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsTypeQuery> for PropertyLiteral
[src]
fn fold(&mut self, node: TsTypeQuery) -> TsTypeQuery
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsTypeQueryExpr> for PropertyLiteral
[src]
fn fold(&mut self, node: TsTypeQueryExpr) -> TsTypeQueryExpr
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsTypeRef> for PropertyLiteral
[src]
fn fold(&mut self, node: TsTypeRef) -> TsTypeRef
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsUnionOrIntersectionType> for PropertyLiteral
[src]
fn fold(&mut self, node: TsUnionOrIntersectionType) -> TsUnionOrIntersectionType
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TsUnionType> for PropertyLiteral
[src]
fn fold(&mut self, node: TsUnionType) -> TsUnionType
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
Auto Trait Implementations
impl RefUnwindSafe for PropertyLiteral
impl Send for PropertyLiteral
impl Sync for PropertyLiteral
impl Unpin for PropertyLiteral
impl UnwindSafe for PropertyLiteral
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
impl<T, F> Fold<T> for F where
T: FoldWith<F>,
[src]
T: FoldWith<F>,
default fn fold(&mut self, t: T) -> T
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<P> Pass for P where
P: Fold<Module> + ?Sized,
[src]
P: Fold<Module> + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, F> Visit<T> for F where
T: VisitWith<F> + ?Sized,
[src]
T: VisitWith<F> + ?Sized,
default fn visit(&mut self, t: &T)
[src]
fn then<F>(self, visitor: F) -> AndThen<Self, F> where
F: Visit<T>,
[src]
F: Visit<T>,
impl<T, F> VisitMut<T> for F where
T: VisitMutWith<F> + ?Sized,
[src]
T: VisitMutWith<F> + ?Sized,