Crate gather_all_code_from_crates

Crate gather_all_code_from_crates 

Source

Structs§

AstFilterCriteria
AstFilterCriteriaBuilder
Builder for AstFilterCriteria.
Cli
CliBuilder
Builder for Cli.
EffectiveConfig
EffectiveConfigBuilder
Builder for EffectiveConfig.
FunctionInfo
Represents a function extracted from the AST.
FunctionInfoBuilder
Builder for FunctionInfo.
GlobalConfig
GlobalConfigBuilder
Builder for GlobalConfig.

Enums§

AppError
AstFilterCriteriaBuilderError
Error type for AstFilterCriteriaBuilder
CliBuilderError
Error type for CliBuilder
EffectiveConfigBuilderError
Error type for EffectiveConfigBuilder
ErrorReason
FunctionInfoBuilderError
Error type for FunctionInfoBuilder
GlobalConfigBuilderError
Error type for GlobalConfigBuilder
ItemInfo

Functions§

build_effective_config_from_cli
Attempts to load global configuration and merge it with CLI arguments to produce an EffectiveConfig. Returns Result<EffectiveConfig, AppError> if successful, or AppError if something goes wrong.
deduplicate_items
extract_attributes
Extracts attributes from an iterator of ast::Attr. Returns (attributes, is_test). is_test is true if any attribute is #[test].
extract_doc_comments
extract_functions_from_ast
Extracts functions from a syntax node, returning a list of FunctionInfo.
extract_items_from_ast
Extracts items from the AST node, returning a list of ItemInfo.
extract_signature
filter_doc_attrs
filter_doc_comments
Filters out doc comments (/// and //!) if remove_doc_comments is true. Otherwise, leaves them intact. Does not remove or modify any other lines. Keeps all attributes, normal comments, indentation, whitespace, etc.
filter_lines
gather_all_code_from_crates_main
is_doc_attr
is_pub
load_global_config
new_filter_lines
Removes doc comment lines (/// or //!) if remove_doc_comments = true. Keeps all other lines intact, including attributes (#[...]), normal // comments, indentation, and whitespace. No inline truncation or other modifications are made.
parse_enum_item
Parses an enum item from the AST node.
parse_function_item
parse_impl_block_item
parse_source
parse_struct_item
Parses a struct item from the AST node.
parse_type_alias_item
Parses a type alias item from the AST node.
process_crate_directory
process_file
reconstruct_code_from_filtered_items
reconstruct_function
remove_unwanted_lines
Removes all doc comments (///, //!), attribute lines (#[...]), and normal // comments when remove_doc_comments = true. Also handles inline // in code lines by truncation, preserving whitespace.
remove_unwanted_lines_keep_docs
Removes attribute lines (#[...]) and normal // comment lines, but keeps doc lines (///, //!) when remove_doc_comments = false. Also handles inline // in code lines by truncation, preserving whitespace.

Type Aliases§

AppResult