pub struct NodeMetadata {
pub loc: u32,
pub visibility: Visibility,
pub is_async: bool,
pub is_unsafe: bool,
pub is_static: bool,
pub is_abstract: bool,
pub is_final: bool,
pub is_property: bool,
pub is_generator: bool,
pub is_const: bool,
pub generic_bounds: Vec<String>,
pub lld: LldLabels,
}Expand description
Per-node metadata collected during pass-1 (structural) indexing.
Fields§
§loc: u32Lines of code for this node’s body.
visibility: Visibility§is_async: bool§is_unsafe: bool§is_static: boolJava static, Python @staticmethod, Go package-level functions.
is_abstract: boolJava/TypeScript abstract, Python NotImplemented stubs, sealed traits.
is_final: boolJava final class/method, Rust sealed types, TypeScript readonly.
is_property: boolPython @property, TypeScript getter/setter, Rust associated const.
is_generator: boolPython generators (yield), TypeScript function*, async generators.
is_const: boolRust const fn, TypeScript const assertion, Java static final fields.
generic_bounds: Vec<String>Captured generic constraints, e.g. ["T: Send", "T: 'static"] or
["T extends Base", "K extends keyof T"].
lld: LldLabelsPass-2 LLD annotations. Empty until pass 2 runs.
Trait Implementations§
Source§impl Clone for NodeMetadata
impl Clone for NodeMetadata
Source§fn clone(&self) -> NodeMetadata
fn clone(&self) -> NodeMetadata
Returns a duplicate of the value. Read more
1.0.0 · 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 NodeMetadata
impl Debug for NodeMetadata
Source§impl Default for NodeMetadata
impl Default for NodeMetadata
Source§fn default() -> NodeMetadata
fn default() -> NodeMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NodeMetadata
impl<'de> Deserialize<'de> for NodeMetadata
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
Source§impl PartialEq for NodeMetadata
impl PartialEq for NodeMetadata
Source§impl Serialize for NodeMetadata
impl Serialize for NodeMetadata
impl Eq for NodeMetadata
impl StructuralPartialEq for NodeMetadata
Auto Trait Implementations§
impl Freeze for NodeMetadata
impl RefUnwindSafe for NodeMetadata
impl Send for NodeMetadata
impl Sync for NodeMetadata
impl Unpin for NodeMetadata
impl UnsafeUnpin for NodeMetadata
impl UnwindSafe for NodeMetadata
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