Skip to main content

Module similar_code

Module similar_code 

Source
Expand description

Transient source-extraction contracts for provider-backed similar-code analysis. Shared transient extraction types for similar-code candidate generation.

These types carry source fragments only between extraction and a provider orchestration layer. They are intentionally not part of ModuleInfo or the persisted parse cache.

Structs§

ExtractedSimilarCodeFunction
One named top-level JS or TS function prepared for provider inference.
SimilarCodeExtraction
Transient result of one bounded source-to-functions extraction call.
SimilarCodeExtractionLimits
Hard source-payload limits for one on-demand extraction call.
SimilarCodeExtractionSkip
Counted omission or recovery evidence for one stable extraction reason.
SimilarCodeFunctionLocation
Complete location of one function in UTF-8 source text.
SimilarCodeSourceDigest
Full SHA-256 digest of one exact extracted function source fragment.

Enums§

SimilarCodeExtractionSkipReason
Stable reason source work was omitted or recovered during extraction.
SimilarCodeFunctionKind
Supported source form for an extracted similar-code function.
SimilarCodeSideEffectHint
Conservative syntactic hint about possible function side effects.

Constants§

SIMILAR_CODE_EXTRACTION_SEMANTICS_VERSION
Extraction semantics understood by the first similar-code source contract.