pub struct NodeMetadata {Show 14 fields
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 annotations: Vec<String>,
pub lld: LldLabels,
pub definition: DefinitionText,
}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"].
annotations: Vec<String>Decorator / annotation names applied to this symbol, e.g.
["dataclass"], ["Override"], ["derive", "Serialize"]. Captured
regardless of whether the decorator is defined in-repo, so framework
decorators (@app.route, @Test) remain queryable even though their
Annotated edge target is external and dropped.
lld: LldLabelsPass-2 LLD annotations. Empty until pass 2 runs.
definition: DefinitionTextRaw source-text capture — signature, body, doc-comment, byte range.
Trait Implementations§
Source§impl Clone for NodeMetadata
impl Clone for NodeMetadata
Source§fn clone(&self) -> NodeMetadata
fn clone(&self) -> NodeMetadata
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
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>,
impl Eq for NodeMetadata
Source§impl PartialEq for NodeMetadata
impl PartialEq for NodeMetadata
Source§fn eq(&self, other: &NodeMetadata) -> bool
fn eq(&self, other: &NodeMetadata) -> bool
self and other values to be equal, and is used by ==.