Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
mio-19 committed Oct 24, 2024
1 parent 0a7ef3c commit 4c0048c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions syntax/src/main/scala/chester/syntax/core/Term.scala
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,6 @@ sealed trait UnevalT[+Rec <: TermT[Rec]] extends TermT[Rec] {
sealed trait Uneval extends Term with UnevalT[Term] derives ReadWriter {
override type ThisTree <: Uneval
}
/*
sealed trait SpecialTermT[+Rec <: TermT[Rec]] extends TermT[Rec] {
override type ThisTree <: SpecialTermT[Rec]
override def whnf: Trilean = Unknown
Expand All @@ -246,7 +245,6 @@ sealed trait SpecialTermT[+Rec <: TermT[Rec]] extends TermT[Rec] {
sealed trait SpecialTerm extends Term with SpecialTermT[Term] derives ReadWriter {
override type ThisTree <: SpecialTerm
}
*/
sealed trait TermWithUniqidT[+Rec <: TermT[Rec]] extends TermT[Rec] with HasUniqid {
override type ThisTree <: TermWithUniqidT[Rec]
override def uniqId: UniqidOf[Rec]
Expand All @@ -266,13 +264,13 @@ sealed trait EffectsM extends Term with EffectsMT[Term] derives ReadWriter {
override type ThisTree <: EffectsM
}

trait MetaTermC[+Rec <: TermT[Rec]] extends TermT[Rec] with EffectsMT[Rec] {
trait MetaTermC[+Rec <: TermT[Rec]] extends TermT[Rec] with EffectsMT[Rec] with SpecialTermT[Rec] {
override type ThisTree <: MetaTermC[Rec]
def impl: HoldNotReadable[?]
override def toTerm: MetaTerm = MetaTerm(impl, meta)
}

case class MetaTerm(impl: HoldNotReadable[?], meta: OptionTermMeta) extends Term with MetaTermC[Term] with EffectsM {
case class MetaTerm(impl: HoldNotReadable[?], meta: OptionTermMeta) extends Term with MetaTermC[Term] with EffectsM with SpecialTerm {
override type ThisTree = MetaTerm
def unsafeRead[T]: T = impl.inner.asInstanceOf[T]

Expand Down

0 comments on commit 4c0048c

Please sign in to comment.