[−][src]Struct swc_ecma_transforms::compat::es2015::Shorthand
Compile ES2015 shorthand properties to ES5
Example
In
var o = { a, b, c };
Out
var o = { a: a, b: b, c: c };
In
var cat = {
getName() {
return name;
}
};
Out
var cat = {
getName: function () {
return name;
}
};
Trait Implementations
impl Clone for Shorthand
[src]
impl Copy for Shorthand
[src]
impl Default for Shorthand
[src]
impl Fold<Accessibility> for Shorthand
[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<Prop> for Shorthand
[src]
fn fold(&mut self, prop: Prop) -> Prop
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl Fold<TruePlusMinus> for Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
[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 Shorthand
impl Send for Shorthand
impl Sync for Shorthand
impl Unpin for Shorthand
impl UnwindSafe for Shorthand
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,