pub fn extract_similar_code_functions(
path: &Path,
source: &str,
limits: SimilarCodeExtractionLimits,
) -> SimilarCodeExtractionExpand description
Extract supported named top-level functions from one standalone JS or TS source.
Supported forms are named function declarations, simple identifier bindings initialized with a function expression or arrow, and equivalent default exports. Statically named ordinary methods on top-level named classes and bound object literals are also supported. Nested functions, callbacks, constructors, accessors, computed methods, declaration files, and generated sources are omitted with typed skip evidence. Source fragments are exact post-BOM UTF-8 slices and are bounded before hashing or allocation.