pub struct BindingData {
pub id: BindingId,
pub name: String,
pub kind: BindingKind,
pub scope: ScopeId,
pub declaration_type: String,
pub declaration_start: Option<u32>,
pub declaration_node_id: Option<u32>,
pub import: Option<ImportBindingData>,
}Fields§
§id: BindingId§name: String§kind: BindingKind§scope: ScopeIdThe scope this binding is declared in.
declaration_type: StringThe type of the declaration AST node (e.g., “FunctionDeclaration”, “VariableDeclarator”). Used by the compiler to distinguish function declarations from variable declarations during hoisting.
declaration_start: Option<u32>The start offset of the binding’s declaration identifier.
Used to distinguish declaration sites from references in reference_to_binding.
declaration_node_id: Option<u32>The node-ID of the binding’s declaration identifier.
Preferred over declaration_start for distinguishing declarations from
references, as positions can collide for synthetic nodes at position 0.
import: Option<ImportBindingData>For import bindings: the source module and import details.
Trait Implementations§
Source§impl Clone for BindingData
impl Clone for BindingData
Source§fn clone(&self) -> BindingData
fn clone(&self) -> BindingData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BindingData
impl Debug for BindingData
Source§impl<'de> Deserialize<'de> for BindingData
impl<'de> Deserialize<'de> for BindingData
Source§fn 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
Auto Trait Implementations§
impl Freeze for BindingData
impl RefUnwindSafe for BindingData
impl Send for BindingData
impl Sync for BindingData
impl Unpin for BindingData
impl UnsafeUnpin for BindingData
impl UnwindSafe for BindingData
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