Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
mio-19 committed Oct 27, 2024
1 parent 62a4c7e commit f8616ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions syntax/src/main/scala/chester/syntax/core/Term.scala
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,11 @@ case class FCallTerm(
object FCallTerm {}

sealed trait Pat extends SpecialTerm derives ReadWriter {
override type ThisTree <: Pat
}

case class Bind(bind: LocalV, ty: Term, meta: OptionTermMeta) extends Pat {
override type ThisTree = Bind
override def toDoc(using options: PrettierOptions): Doc = bind.toDoc <+> Docs.`:` <+> ty.toDoc
override def descent(f: Term => Term, g: TreeMap[Term]): Term = thisOr(copy(bind=g(bind), ty = f(ty)))
}
Expand Down

0 comments on commit f8616ad

Please sign in to comment.