Enum stc_ts_ast_rnode::RExpr
source · [−]pub enum RExpr {
Show 38 variants
This(RThisExpr),
Array(RArrayLit),
Object(RObjectLit),
Fn(RFnExpr),
Unary(RUnaryExpr),
Update(RUpdateExpr),
Bin(RBinExpr),
Assign(RAssignExpr),
Member(RMemberExpr),
SuperProp(RSuperPropExpr),
Cond(RCondExpr),
Call(RCallExpr),
New(RNewExpr),
Seq(RSeqExpr),
Ident(RIdent),
Lit(RLit),
Tpl(RTpl),
TaggedTpl(RTaggedTpl),
Arrow(RArrowExpr),
Class(RClassExpr),
Yield(RYieldExpr),
MetaProp(RMetaPropExpr),
Await(RAwaitExpr),
Paren(RParenExpr),
JSXMember(RJSXMemberExpr),
JSXNamespacedName(RJSXNamespacedName),
JSXEmpty(RJSXEmptyExpr),
JSXElement(Box<RJSXElement>),
JSXFragment(RJSXFragment),
TsTypeAssertion(RTsTypeAssertion),
TsConstAssertion(RTsConstAssertion),
TsNonNull(RTsNonNullExpr),
TsAs(RTsAsExpr),
TsInstantiation(RTsInstantiation),
TsSatisfies(RTsSatisfiesExpr),
PrivateName(RPrivateName),
OptChain(ROptChainExpr),
Invalid(RInvalid),
}
Variants
This(RThisExpr)
Array(RArrayLit)
Object(RObjectLit)
Fn(RFnExpr)
Unary(RUnaryExpr)
Update(RUpdateExpr)
Bin(RBinExpr)
Assign(RAssignExpr)
Member(RMemberExpr)
SuperProp(RSuperPropExpr)
Cond(RCondExpr)
Call(RCallExpr)
New(RNewExpr)
Seq(RSeqExpr)
Ident(RIdent)
Lit(RLit)
Tpl(RTpl)
TaggedTpl(RTaggedTpl)
Arrow(RArrowExpr)
Class(RClassExpr)
Yield(RYieldExpr)
MetaProp(RMetaPropExpr)
Await(RAwaitExpr)
Paren(RParenExpr)
JSXMember(RJSXMemberExpr)
JSXNamespacedName(RJSXNamespacedName)
JSXEmpty(RJSXEmptyExpr)
JSXElement(Box<RJSXElement>)
JSXFragment(RJSXFragment)
TsTypeAssertion(RTsTypeAssertion)
TsConstAssertion(RTsConstAssertion)
TsNonNull(RTsNonNullExpr)
TsAs(RTsAsExpr)
TsInstantiation(RTsInstantiation)
TsSatisfies(RTsSatisfiesExpr)
PrivateName(RPrivateName)
OptChain(ROptChainExpr)
Invalid(RInvalid)
Implementations
sourceimpl RExpr
impl RExpr
pub fn is_new_target(&self) -> bool
pub fn is_arrow_expr(&self) -> bool
Trait Implementations
sourceimpl<'de> Deserialize<'de> for RExpr
impl<'de> Deserialize<'de> for RExpr
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl EqIgnoreSpan for RExpr
impl EqIgnoreSpan for RExpr
fn eq_ignore_span(&self, other: &Self) -> bool
sourceimpl From<Box<RJSXElement, Global>> for RExpr
impl From<Box<RJSXElement, Global>> for RExpr
sourcefn from(v: Box<RJSXElement>) -> Self
fn from(v: Box<RJSXElement>) -> Self
Converts to this type from the input type.
sourceimpl From<RArrowExpr> for RExpr
impl From<RArrowExpr> for RExpr
sourcefn from(v: RArrowExpr) -> Self
fn from(v: RArrowExpr) -> Self
Converts to this type from the input type.
sourceimpl From<RAssignExpr> for RExpr
impl From<RAssignExpr> for RExpr
sourcefn from(v: RAssignExpr) -> Self
fn from(v: RAssignExpr) -> Self
Converts to this type from the input type.
sourceimpl From<RAwaitExpr> for RExpr
impl From<RAwaitExpr> for RExpr
sourcefn from(v: RAwaitExpr) -> Self
fn from(v: RAwaitExpr) -> Self
Converts to this type from the input type.
sourceimpl From<RClassExpr> for RExpr
impl From<RClassExpr> for RExpr
sourcefn from(v: RClassExpr) -> Self
fn from(v: RClassExpr) -> Self
Converts to this type from the input type.
sourceimpl From<RJSXEmptyExpr> for RExpr
impl From<RJSXEmptyExpr> for RExpr
sourcefn from(v: RJSXEmptyExpr) -> Self
fn from(v: RJSXEmptyExpr) -> Self
Converts to this type from the input type.
sourceimpl From<RJSXFragment> for RExpr
impl From<RJSXFragment> for RExpr
sourcefn from(v: RJSXFragment) -> Self
fn from(v: RJSXFragment) -> Self
Converts to this type from the input type.
sourceimpl From<RJSXMemberExpr> for RExpr
impl From<RJSXMemberExpr> for RExpr
sourcefn from(v: RJSXMemberExpr) -> Self
fn from(v: RJSXMemberExpr) -> Self
Converts to this type from the input type.
sourceimpl From<RJSXNamespacedName> for RExpr
impl From<RJSXNamespacedName> for RExpr
sourcefn from(v: RJSXNamespacedName) -> Self
fn from(v: RJSXNamespacedName) -> Self
Converts to this type from the input type.
sourceimpl From<RMemberExpr> for RExpr
impl From<RMemberExpr> for RExpr
sourcefn from(v: RMemberExpr) -> Self
fn from(v: RMemberExpr) -> Self
Converts to this type from the input type.
sourceimpl From<RMetaPropExpr> for RExpr
impl From<RMetaPropExpr> for RExpr
sourcefn from(v: RMetaPropExpr) -> Self
fn from(v: RMetaPropExpr) -> Self
Converts to this type from the input type.
sourceimpl From<RObjectLit> for RExpr
impl From<RObjectLit> for RExpr
sourcefn from(v: RObjectLit) -> Self
fn from(v: RObjectLit) -> Self
Converts to this type from the input type.
sourceimpl From<ROptChainExpr> for RExpr
impl From<ROptChainExpr> for RExpr
sourcefn from(v: ROptChainExpr) -> Self
fn from(v: ROptChainExpr) -> Self
Converts to this type from the input type.
sourceimpl From<RParenExpr> for RExpr
impl From<RParenExpr> for RExpr
sourcefn from(v: RParenExpr) -> Self
fn from(v: RParenExpr) -> Self
Converts to this type from the input type.
sourceimpl From<RPrivateName> for RExpr
impl From<RPrivateName> for RExpr
sourcefn from(v: RPrivateName) -> Self
fn from(v: RPrivateName) -> Self
Converts to this type from the input type.
sourceimpl From<RSuperPropExpr> for RExpr
impl From<RSuperPropExpr> for RExpr
sourcefn from(v: RSuperPropExpr) -> Self
fn from(v: RSuperPropExpr) -> Self
Converts to this type from the input type.
sourceimpl From<RTaggedTpl> for RExpr
impl From<RTaggedTpl> for RExpr
sourcefn from(v: RTaggedTpl) -> Self
fn from(v: RTaggedTpl) -> Self
Converts to this type from the input type.
sourceimpl From<RTsConstAssertion> for RExpr
impl From<RTsConstAssertion> for RExpr
sourcefn from(v: RTsConstAssertion) -> Self
fn from(v: RTsConstAssertion) -> Self
Converts to this type from the input type.
sourceimpl From<RTsEntityName> for RExpr
impl From<RTsEntityName> for RExpr
sourcefn from(v: RTsEntityName) -> Self
fn from(v: RTsEntityName) -> Self
Converts to this type from the input type.
sourceimpl From<RTsInstantiation> for RExpr
impl From<RTsInstantiation> for RExpr
sourcefn from(v: RTsInstantiation) -> Self
fn from(v: RTsInstantiation) -> Self
Converts to this type from the input type.
sourceimpl From<RTsNonNullExpr> for RExpr
impl From<RTsNonNullExpr> for RExpr
sourcefn from(v: RTsNonNullExpr) -> Self
fn from(v: RTsNonNullExpr) -> Self
Converts to this type from the input type.
sourceimpl From<RTsSatisfiesExpr> for RExpr
impl From<RTsSatisfiesExpr> for RExpr
sourcefn from(v: RTsSatisfiesExpr) -> Self
fn from(v: RTsSatisfiesExpr) -> Self
Converts to this type from the input type.
sourceimpl From<RTsTypeAssertion> for RExpr
impl From<RTsTypeAssertion> for RExpr
sourcefn from(v: RTsTypeAssertion) -> Self
fn from(v: RTsTypeAssertion) -> Self
Converts to this type from the input type.
sourceimpl From<RUnaryExpr> for RExpr
impl From<RUnaryExpr> for RExpr
sourcefn from(v: RUnaryExpr) -> Self
fn from(v: RUnaryExpr) -> Self
Converts to this type from the input type.
sourceimpl From<RUpdateExpr> for RExpr
impl From<RUpdateExpr> for RExpr
sourcefn from(v: RUpdateExpr) -> Self
fn from(v: RUpdateExpr) -> Self
Converts to this type from the input type.
sourceimpl From<RYieldExpr> for RExpr
impl From<RYieldExpr> for RExpr
sourcefn from(v: RYieldExpr) -> Self
fn from(v: RYieldExpr) -> Self
Converts to this type from the input type.
sourceimpl<V> VisitMutWith<V> for RExprwhere
V: ?Sized,
impl<V> VisitMutWith<V> for RExprwhere
V: ?Sized,
fn visit_mut_children_with(&mut self, _visitor: &mut V)
fn visit_mut_with(&mut self, visitor: &mut V)where
V: VisitMut<Self>,
sourceimpl<V> VisitWith<V> for RExprwhere
V: ?Sized,
impl<V> VisitWith<V> for RExprwhere
V: ?Sized,
fn visit_children_with(&self, _visitor: &mut V)
fn visit_with(&self, visitor: &mut V)where
V: Visit<Self>,
impl StructuralPartialEq for RExpr
impl Visitable for RExpr
Auto Trait Implementations
impl RefUnwindSafe for RExpr
impl Send for RExpr
impl Sync for RExpr
impl Unpin for RExpr
impl UnwindSafe for RExpr
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<R, N> IntoRNode<R> for Nwhere
R: RNode<Orig = N>,
impl<R, N> IntoRNode<R> for Nwhere
R: RNode<Orig = N>,
fn into_rnode(self, g: &mut NodeIdGenerator) -> R
sourceimpl<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
sourcefn comment_range(&self) -> Span
fn comment_range(&self) -> Span
Gets a custom text range to use when emitting comments.