Skip to main content

Module cg

Module cg 

Source

Re-exports§

pub use crate::filter::SolidityExtractionConfig;
pub use crate::filter::filter_analysis_source_files;
pub use crate::filter::normalize_relative_source_files;

Structs§

ExtractedCallable
A function-like Solidity item extracted by tree-sitter.
ExtractedContract
A contract/interface/library extracted from Solidity source.
SolidityExtractionResult
Contracts/functions extracted from a Solidity repository before any LLM callgraph analysis.
SoliditySourceInput
One Solidity source file plus its already-loaded content. The tree-sitter pass needs the source bytes; this struct lets callers that have already read the file (e.g. a crate::filter::SolidityExtractionConfig- driven CLI flow or a knowdit_project::ProjectScopeContent snapshot) pass the content straight through instead of forcing a second tokio::fs::read_to_string per file.

Enums§

SolidityCallableKind
Solidity callable kind represented as a callgraph function node.
SolidityContractKind
Solidity declaration kind for a contract-like source item.
SolidityFunctionNodeKind
Repository callgraph function node kind.

Functions§

extract_contracts_functions
Extract Solidity contracts and callables with tree-sitter from pre-loaded source content. Sync: tree-sitter parsing is CPU-bound and the caller has already taken care of disk I/O. The previous (repo_root, &[PathBuf]) signature is preserved at the outer extract_repo_contracts_functions entry point, which handles reading + then defers here.
extract_repo_contracts_functions
Extract Solidity contracts/functions without invoking the LLM.