pub struct ExtractedSimilarCodeFunction {
pub name: String,
pub kind: SimilarCodeFunctionKind,
pub location: SimilarCodeFunctionLocation,
pub source_sha256: SimilarCodeSourceDigest,
pub source: String,
pub param_count: u32,
pub is_async: bool,
pub is_generator: bool,
pub has_await: bool,
pub has_throw: bool,
pub side_effect_hint: SimilarCodeSideEffectHint,
}Expand description
One named top-level JS or TS function prepared for provider inference.
Fields§
§name: StringStable source-level name selected by the extraction semantics.
kind: SimilarCodeFunctionKindSupported syntactic function form.
location: SimilarCodeFunctionLocationFull UTF-8 source location.
source_sha256: SimilarCodeSourceDigestFull SHA-256 digest of source.
source: StringExact bounded source fragment, transient and never parse-cache data.
param_count: u32Number of declared parameters, excluding TypeScript’s this parameter.
is_async: boolWhether the function has an async modifier.
is_generator: boolWhether the function is a generator.
has_await: boolWhether the direct function body contains an await expression.
has_throw: boolWhether the direct function body contains a throw statement.
side_effect_hint: SimilarCodeSideEffectHintConservative closed syntactic side-effect classification.
Trait Implementations§
Source§impl Clone for ExtractedSimilarCodeFunction
impl Clone for ExtractedSimilarCodeFunction
Source§impl Debug for ExtractedSimilarCodeFunction
impl Debug for ExtractedSimilarCodeFunction
impl Eq for ExtractedSimilarCodeFunction
impl StructuralPartialEq for ExtractedSimilarCodeFunction
Auto Trait Implementations§
impl Freeze for ExtractedSimilarCodeFunction
impl RefUnwindSafe for ExtractedSimilarCodeFunction
impl Send for ExtractedSimilarCodeFunction
impl Sync for ExtractedSimilarCodeFunction
impl Unpin for ExtractedSimilarCodeFunction
impl UnsafeUnpin for ExtractedSimilarCodeFunction
impl UnwindSafe for ExtractedSimilarCodeFunction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.