Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Commit

Permalink
Remove redundant val keywords in case class definitions.
Browse files Browse the repository at this point in the history
  • Loading branch information
sjrd committed May 17, 2024
1 parent 3b7cbf8 commit bd84686
Showing 1 changed file with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ object Modules {

final case class Local(name: LocalName, typ: Type)

final case class Tag(val name: TagName, val typ: TypeName)
final case class Tag(name: TagName, typ: TypeName)

final case class Data(val name: DataName, val bytes: Array[Byte], mode: Data.Mode)
final case class Data(name: DataName, bytes: Array[Byte], mode: Data.Mode)

object Data {
sealed abstract class Mode
Expand All @@ -61,12 +61,7 @@ object Modules {
}
}

final case class Global(
val name: GlobalName,
val typ: Type,
val init: Expr,
val isMutable: Boolean
)
final case class Global(name: GlobalName, typ: Type, init: Expr, isMutable: Boolean)

final case class Element(typ: Type, init: List[Expr], mode: Element.Mode)

Expand Down

0 comments on commit bd84686

Please sign in to comment.