pub struct RawCodeUnit {Show 17 fields
pub temp_id: u64,
pub unit_type: CodeUnitType,
pub language: Language,
pub name: String,
pub qualified_name: String,
pub file_path: PathBuf,
pub span: Span,
pub signature: Option<String>,
pub doc: Option<String>,
pub visibility: Visibility,
pub is_async: bool,
pub is_generator: bool,
pub complexity: u32,
pub references: Vec<RawReference>,
pub children: Vec<u64>,
pub parent: Option<u64>,
pub metadata: HashMap<String, String>,
}Expand description
A code unit extracted from parsing, before semantic analysis.
Fields§
§temp_id: u64Temporary ID (reassigned during graph building).
unit_type: CodeUnitTypeType of code unit.
language: LanguageProgramming language.
name: StringSimple name.
qualified_name: StringQualified name (may be partial, completed by semantic).
file_path: PathBufSource file path.
span: SpanLocation in source.
signature: Option<String>Type signature (raw, may need resolution).
doc: Option<String>Documentation.
visibility: VisibilityVisibility.
is_async: boolIs async.
is_generator: boolIs generator.
complexity: u32Cyclomatic complexity.
references: Vec<RawReference>Raw references found (names, not resolved IDs).
children: Vec<u64>Children temp_ids (for containers like modules, classes).
parent: Option<u64>Parent temp_id (for nested items).
metadata: HashMap<String, String>Language-specific metadata.
Implementations§
Source§impl RawCodeUnit
impl RawCodeUnit
Trait Implementations§
Source§impl Clone for RawCodeUnit
impl Clone for RawCodeUnit
Source§fn clone(&self) -> RawCodeUnit
fn clone(&self) -> RawCodeUnit
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 moreAuto Trait Implementations§
impl Freeze for RawCodeUnit
impl RefUnwindSafe for RawCodeUnit
impl Send for RawCodeUnit
impl Sync for RawCodeUnit
impl Unpin for RawCodeUnit
impl UnsafeUnpin for RawCodeUnit
impl UnwindSafe for RawCodeUnit
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