Skip to content

Commit

Permalink
Add field to Matchless to show package source (#1372)
Browse files Browse the repository at this point in the history
* Add field to Matchless to show package source

* fix build

* minor update
  • Loading branch information
johnynek authored Feb 3, 2025
1 parent 3d1196b commit 4d4de44
Show file tree
Hide file tree
Showing 8 changed files with 237 additions and 193 deletions.
4 changes: 2 additions & 2 deletions core/src/main/scala/org/bykn/bosatsu/Evaluation.scala
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ case class Evaluation[T](pm: PackageMap.Typed[T], externals: Externals) {
thisPack: PackageName,
lets: List[(Bindable, RecursionKind, TypedExpr[T])]
): List[(Bindable, Eval[Value])] = {
val exprs: List[(Bindable, Matchless.Expr)] =
val exprs: List[(Bindable, Matchless.Expr[Unit])] =
rankn.RefSpace.allocCounter
.flatMap { c =>
lets
.traverse { case (name, rec, te) =>
Matchless
.fromLet(name, rec, te, gdr, c)
.fromLet((), name, rec, te, gdr, c)
.map((name, _))
}
}
Expand Down
Loading

0 comments on commit 4d4de44

Please sign in to comment.