Skip to content

Commit

Permalink
remove some line wrappings
Browse files Browse the repository at this point in the history
  • Loading branch information
butterunderflow committed Oct 18, 2024
1 parent 044da0b commit 9b6e23c
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions src/main/scala/wasm/AST.scala
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,11 @@ case object Alloc extends Instr
case object Free extends Instr
case class Select(ty: Option[List[ValueType]]) extends Instr
case class Block(ty: BlockType, instrs: List[Instr]) extends Instr
case class IdBlock(id: Int, ty: BlockType, instrs: List[Instr])
extends Instr
case class IdBlock(id: Int, ty: BlockType, instrs: List[Instr]) extends Instr
case class Loop(ty: BlockType, instrs: List[Instr]) extends Instr
case class IdLoop(id: Int, ty: BlockType, instrs: List[Instr])
extends Instr
case class If(ty: BlockType,
thenInstrs: List[Instr],
elseInstrs: List[Instr])
extends Instr
case class IdIf(ty: BlockType, thenInstrs: IdBlock, elseInstrs: IdBlock)
extends Instr
case class IdLoop(id: Int, ty: BlockType, instrs: List[Instr]) extends Instr
case class If(ty: BlockType, thenInstrs: List[Instr], elseInstrs: List[Instr]) extends Instr
case class IdIf(ty: BlockType, thenInstrs: IdBlock, elseInstrs: IdBlock) extends Instr
// FIXME: labelId can be string?
case class Br(labelId: Int) extends Instr
case class BrIf(labelId: Int) extends Instr
Expand Down

0 comments on commit 9b6e23c

Please sign in to comment.