Skip to main content

Module similar_code

Module similar_code 

Source
Expand description

On-demand, transient function extraction for local similar-code inference.

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.

Functions§

extract
Extract bounded named functions without touching the normal parse cache.