#[non_exhaustive]pub enum SimilarCodeExtractionSkipReason {
Show 13 variants
NonUtf8Path,
UnsupportedFileType,
DeclarationFile,
GeneratedSource,
SyntaxDiagnostic,
NestingLimit,
DeclarationWithoutBody,
NestedFunction,
UnsupportedFunctionForm,
InvalidSourceSpan,
SourceBytesPerFunctionLimit,
FunctionLimit,
TotalSourceBytesLimit,
}Expand description
Stable reason source work was omitted or recovered during extraction.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NonUtf8Path
The input path is not valid UTF-8.
UnsupportedFileType
The input is not a supported standalone JS or TS source file.
DeclarationFile
TypeScript declaration files contain no runtime function bodies.
GeneratedSource
A closed path or header rule classified the source as generated.
SyntaxDiagnostic
Oxc recovered from one or more syntax diagnostics.
NestingLimit
The source nests brackets too deep to parse without a stack overflow.
DeclarationWithoutBody
A declaration or overload had no function body.
NestedFunction
Nested functions and callbacks are outside the first extraction semantics.
UnsupportedFunctionForm
A method, computed binding, or other unsupported function form was omitted.
InvalidSourceSpan
The AST span could not be sliced safely from the source.
SourceBytesPerFunctionLimit
A function source fragment exceeded its per-function byte limit.
FunctionLimit
The retained function limit was reached.
TotalSourceBytesLimit
The combined source-payload byte limit was reached.
Trait Implementations§
impl Copy for SimilarCodeExtractionSkipReason
impl Eq for SimilarCodeExtractionSkipReason
Source§impl Ord for SimilarCodeExtractionSkipReason
impl Ord for SimilarCodeExtractionSkipReason
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for SimilarCodeExtractionSkipReason
impl PartialOrd for SimilarCodeExtractionSkipReason
impl StructuralPartialEq for SimilarCodeExtractionSkipReason
Auto Trait Implementations§
impl Freeze for SimilarCodeExtractionSkipReason
impl RefUnwindSafe for SimilarCodeExtractionSkipReason
impl Send for SimilarCodeExtractionSkipReason
impl Sync for SimilarCodeExtractionSkipReason
impl Unpin for SimilarCodeExtractionSkipReason
impl UnsafeUnpin for SimilarCodeExtractionSkipReason
impl UnwindSafe for SimilarCodeExtractionSkipReason
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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
key and return true if they are equal.