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

Commit

Permalink
rename: Lam |-> Lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
HoshinoTented committed Jan 5, 2024
1 parent 609f7f3 commit 24b95f2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions base/src/main/java/org/aya/syntax/concrete/Expr.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ record Ref(@NotNull LocalVar var) implements Expr {
}
}

record Lam(@NotNull Param param, @NotNull WithPos<Expr> body) implements Expr {
public @NotNull Lam update(@NotNull Param param, @NotNull WithPos<Expr> body) {
return param == param() && body == body() ? this : new Lam(param, body);
record Lambda(@NotNull Param param, @NotNull WithPos<Expr> body) implements Expr {
public @NotNull Expr.Lambda update(@NotNull Param param, @NotNull WithPos<Expr> body) {
return param == param() && body == body() ? this : new Lambda(param, body);
}

@Override public @NotNull Lam descent(@NotNull UnaryOperator<@NotNull Expr> f) {
@Override public @NotNull Expr.Lambda descent(@NotNull UnaryOperator<@NotNull Expr> f) {
return update(param.descent(f), body.descent(f));
}
}
Expand Down Expand Up @@ -438,7 +438,7 @@ record LetBind(
}

static @NotNull WithPos<Expr> buildLam(@NotNull SourcePos sourcePos, @NotNull SeqView<Param> params, @NotNull WithPos<Expr> body) {
return buildNested(sourcePos, params, body, Lam::new);
return buildNested(sourcePos, params, body, Lambda::new);
}

static @NotNull WithPos<Expr> buildLet(@NotNull SourcePos sourcePos, @NotNull SeqView<LetBind> binds, @NotNull WithPos<Expr> body) {
Expand Down

0 comments on commit 24b95f2

Please sign in to comment.