pub struct TsExportAssignment {
pub span: Span,
pub expr: Box<Expr>,
}Expand description
TypeScript’s own parser uses ExportAssignment for both export default and
export =. But for @babel/parser, export default is an ExportDefaultDecl,
so a TsExportAssignment is always export =.
Fields§
§span: Span§expr: Box<Expr>Trait Implementations§
Source§impl Clone for TsExportAssignment
impl Clone for TsExportAssignment
Source§fn clone(&self) -> TsExportAssignment
fn clone(&self) -> TsExportAssignment
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TsExportAssignment
impl Debug for TsExportAssignment
Source§impl EqIgnoreSpan for TsExportAssignment
impl EqIgnoreSpan for TsExportAssignment
fn eq_ignore_span(&self, other: &TsExportAssignment) -> bool
Source§impl<V> FoldWith<V> for TsExportAssignment
impl<V> FoldWith<V> for TsExportAssignment
Source§fn fold_with(self, visitor: &mut V) -> TsExportAssignment
fn fold_with(self, visitor: &mut V) -> TsExportAssignment
Calls Fold::fold_ts_export_assignment with self.
Source§fn fold_children_with(self, visitor: &mut V) -> TsExportAssignment
fn fold_children_with(self, visitor: &mut V) -> TsExportAssignment
Visit children nodes of
self`` with visitor`.Source§impl From<TsExportAssignment> for ModuleDecl
impl From<TsExportAssignment> for ModuleDecl
Source§fn from(v: TsExportAssignment) -> ModuleDecl
fn from(v: TsExportAssignment) -> ModuleDecl
Converts to this type from the input type.
Source§impl From<TsExportAssignment> for ModuleItem
impl From<TsExportAssignment> for ModuleItem
Source§fn from(src: TsExportAssignment) -> ModuleItem
fn from(src: TsExportAssignment) -> ModuleItem
Converts to this type from the input type.
Source§impl Hash for TsExportAssignment
impl Hash for TsExportAssignment
Source§impl Node for TsExportAssignment
impl Node for TsExportAssignment
Source§impl PartialEq for TsExportAssignment
impl PartialEq for TsExportAssignment
Source§impl Spanned for TsExportAssignment
impl Spanned for TsExportAssignment
Source§impl<V> VisitMutWith<V> for TsExportAssignment
impl<V> VisitMutWith<V> for TsExportAssignment
Source§fn visit_mut_with(&mut self, visitor: &mut V)
fn visit_mut_with(&mut self, visitor: &mut V)
Calls VisitMut::visit_mut_ts_export_assignment with self.
Source§fn visit_mut_children_with(&mut self, visitor: &mut V)
fn visit_mut_children_with(&mut self, visitor: &mut V)
Visit children nodes of
self`` with visitor`.Source§impl<V> VisitWith<V> for TsExportAssignment
impl<V> VisitWith<V> for TsExportAssignment
Source§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_ts_export_assignment with self.
Source§fn visit_children_with(&self, visitor: &mut V)
fn visit_children_with(&self, visitor: &mut V)
Visit children nodes of
self`` with visitor`.impl Eq for TsExportAssignment
impl StructuralPartialEq for TsExportAssignment
Auto Trait Implementations§
impl Freeze for TsExportAssignment
impl RefUnwindSafe for TsExportAssignment
impl Send for TsExportAssignment
impl Sync for TsExportAssignment
impl Unpin for TsExportAssignment
impl UnsafeUnpin for TsExportAssignment
impl UnwindSafe for TsExportAssignment
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> ImplicitClone for Twhere
T: Clone,
impl<T> ImplicitClone for Twhere
T: Clone,
fn clone_quote_var(&self) -> Self
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> SpanExt for Twhere
T: Spanned,
impl<T> SpanExt for Twhere
T: Spanned,
fn is_synthesized(&self) -> bool
fn starts_on_new_line(&self, format: ListFormat) -> bool
Source§fn comment_range(&self) -> Span
fn comment_range(&self) -> Span
Gets a custom text range to use when emitting comments.