[][src]Struct swc_ecma_ast::Ident

pub struct Ident {
    pub span: Span,
    pub sym: JsWord,
    pub type_ann: Option<TsTypeAnn>,
    pub optional: bool,
}

Ident with span.

Fields

span: Spansym: JsWordtype_ann: Option<TsTypeAnn>optional: bool

TypeScript only. Used in case of an optional parameter.

Methods

impl Ident[src]

pub const fn new(sym: JsWord, span: Span) -> Self[src]

Trait Implementations

impl IdentExt for Ident[src]

impl PartialEq<Ident> for Ident[src]

impl AsRef<str> for Ident[src]

impl Clone for Ident[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl From<Ident> for Expr[src]

impl From<Ident> for JSXObject[src]

impl From<Ident> for JSXElementName[src]

impl From<Ident> for JSXAttrName[src]

impl From<Ident> for Pat[src]

impl From<Ident> for Prop[src]

impl From<Ident> for PropName[src]

impl From<Ident> for TsParamPropParam[src]

impl From<Ident> for TsEntityName[src]

impl From<Ident> for TsFnParam[src]

impl From<Ident> for TsThisTypeOrIdent[src]

impl From<Ident> for TsEnumMemberId[src]

impl From<Ident> for TsModuleName[src]

impl Debug for Ident[src]

impl Serialize for Ident[src]

impl<'de> Deserialize<'de> for Ident[src]

impl AstNode for Ident[src]

impl Spanned for Ident[src]

Auto Trait Implementations

impl Send for Ident

impl Sync for Ident

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T