[][src]Struct swc_ecma_dep_graph::DependencyDescriptor

pub struct DependencyDescriptor {
    pub kind: DependencyKind,
    pub is_dynamic: bool,
    pub leading_comments: Vec<Comment>,
    pub line: usize,
    pub col: usize,
    pub specifier: JsWord,
    pub specifier_line: usize,
    pub specifier_col: usize,
}

Fields

kind: DependencyKindis_dynamic: bool

A flag indicating if the import is dynamic or not.

leading_comments: Vec<Comment>

Any leading comments associated with the dependency. This is used for further processing of supported pragma that impact the dependency.

line: usize

The location of the import/export statement.

col: usizespecifier: JsWord

The text specifier associated with the import/export statement.

specifier_line: usize

The location of the specifier.

specifier_col: usize

Trait Implementations

impl Clone for DependencyDescriptor[src]

impl Debug for DependencyDescriptor[src]

impl Eq for DependencyDescriptor[src]

impl PartialEq<DependencyDescriptor> for DependencyDescriptor[src]

impl StructuralEq for DependencyDescriptor[src]

impl StructuralPartialEq for DependencyDescriptor[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.