Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions crates/oxc_cfg/src/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use petgraph::stable_graph::NodeIndex;

pub type BasicBlockId = NodeIndex;

#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct BasicBlock {
pub instructions: Vec<Instruction>,
pub unreachable: bool,
Expand Down Expand Up @@ -31,7 +31,7 @@ impl Instruction {
}
}

#[derive(Debug, Clone)]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum InstructionKind {
Unreachable,
Statement,
Expand All @@ -43,19 +43,19 @@ pub enum InstructionKind {
Iteration(IterationInstructionKind),
}

#[derive(Debug, Clone)]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum ReturnInstructionKind {
ImplicitUndefined,
NotImplicitUndefined,
}

#[derive(Debug, Clone)]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum LabeledInstruction {
Labeled,
Unlabeled,
}

#[derive(Debug, Clone)]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum IterationInstructionKind {
Of,
In,
Expand Down