pub fn parse_rust_file(
path: &Path,
source: &str,
) -> Result<ParseResult, ParseError>Expand description
Parse a Rust source file into CodeNodes.
Returns nodes for the file and all top-level and nested items: functions, structs, enums, traits, impl blocks (with methods), macros, use declarations, const/static items, type aliases, and modules.