pub struct ParseResult {
pub nodes: Vec<Node>,
pub edges: Vec<Edge>,
pub deferred_calls: Vec<(NodeId, String, u32)>,
pub deferred_uses: Vec<(NodeId, String)>,
pub deferred_implements: Vec<(NodeId, String)>,
pub deferred_inherits: Vec<(NodeId, String)>,
pub deferred_throws: Vec<(NodeId, String)>,
pub deferred_annotated: Vec<(NodeId, String)>,
pub deferred_imports: Vec<(NodeId, String)>,
pub deferred_doc_refs: Vec<(NodeId, String)>,
}Expand description
Result of parsing a single source file.
Fields§
§nodes: Vec<Node>§edges: Vec<Edge>§deferred_calls: Vec<(NodeId, String, u32)>Unresolved call sites — resolved cross-file by the indexer.
deferred_uses: Vec<(NodeId, String)>Unresolved parameter/return-type references: (fn_id, type_name).
deferred_implements: Vec<(NodeId, String)>Unresolved trait implementations: (struct_id, trait_name).
deferred_inherits: Vec<(NodeId, String)>Unresolved class extends / structural inheritance: (subtype_id, supertype_name).
deferred_throws: Vec<(NodeId, String)>Unresolved exception throws: (method_id, exception_type_name).
deferred_annotated: Vec<(NodeId, String)>Unresolved decorator/annotation references: (target_id, annotation_name).
deferred_imports: Vec<(NodeId, String)>Unresolved use-declaration imports: (src_node_id, imported_leaf_name).
deferred_doc_refs: Vec<(NodeId, String)>Unresolved Markdown doc→code symbol references: (section_or_file_id, symbol_name).
Intentionally cross-language — see EdgeKind::References.
Auto Trait Implementations§
impl Freeze for ParseResult
impl RefUnwindSafe for ParseResult
impl Send for ParseResult
impl Sync for ParseResult
impl Unpin for ParseResult
impl UnsafeUnpin for ParseResult
impl UnwindSafe for ParseResult
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more