pub enum StatementKind {
Show 21 variants
Basic,
Declarations,
ObjectOriented,
Qw,
QuoteLike,
Heredoc,
Whitespace,
ControlFlow,
Format,
Glob,
Tie,
Io,
Filetest,
Builtins,
ListOps,
Expressions,
Regex,
Ambiguity,
Sigils,
Phasers,
SpecialVars,
}Expand description
Statement categories for randomized code generation.
Variants§
Basic
Minimal valid statements (assignments, conditionals, subs).
Declarations
Package/subroutine declarations and method calls.
ObjectOriented
Object-oriented constructs (bless, inheritance, overload).
Qw
qw(…) and related list constructs.
QuoteLike
Quote-like operators (q/qq/qx/qr).
Heredoc
Heredoc syntax in common contexts.
Whitespace
Whitespace and comment stress cases.
ControlFlow
Loop control flow statements.
Format
Format statements and sections.
Glob
Glob expressions and patterns.
Tie
Tie/untie statements.
Io
I/O and filehandle statements.
Filetest
Filetest operators and stacked checks.
Builtins
Built-in function calls (pack/unpack, split/join, etc).
ListOps
Map/grep/sort list operators.
Expressions
Operator-focused expressions.
Regex
Regex match/substitution/transliteration.
Ambiguity
Parser ambiguity and stress cases.
Sigils
Sigil-heavy variable and dereference patterns.
Phasers
Compile-time phase blocks (BEGIN/CHECK/UNITCHECK/INIT/END).
SpecialVars
Special variables and punctuation variables.
Implementations§
Source§impl StatementKind
impl StatementKind
Sourcepub fn all() -> &'static [StatementKind]
pub fn all() -> &'static [StatementKind]
Return all available statement kinds.
Trait Implementations§
Source§impl Clone for StatementKind
impl Clone for StatementKind
Source§fn clone(&self) -> StatementKind
fn clone(&self) -> StatementKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more