Struct swc_ecma_dep_graph::DependencyDescriptor[][src]

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,
    pub import_assertions: HashMap<String, String>,


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: usizeimport_assertions: HashMap<String, String>

Import assertions for this dependency. NOTE: it’s filled only for static imports and exports.

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

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

impl<T> Send for T where
    T: ?Sized

impl<T> Sync for T where
    T: ?Sized

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.