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

Commit

Permalink
pretty: recover some files from TODO due to BasePrettier
Browse files Browse the repository at this point in the history
  • Loading branch information
ice1000 committed Mar 9, 2024
1 parent 9efd60f commit 54e1623
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by the MIT license that can be found in the LICENSE.md file.
package org.aya.tyck.error;

import org.aya.prettier.BasePrettier;
import org.aya.pretty.doc.Doc;
import org.aya.syntax.ref.AnyVar;
import org.aya.util.error.SourcePos;
Expand All @@ -12,8 +13,7 @@ public record CounterexampleError(@Override @NotNull SourcePos sourcePos, @NotNu
@Override public @NotNull Doc describe(@NotNull PrettierOptions options) {
return Doc.sep(
Doc.english("The counterexample"),
// TODO
// BasePrettier.varDoc(var),
BasePrettier.varDoc(var),
Doc.english("does not raise any type error"));
}
}
13 changes: 11 additions & 2 deletions base/src/main/java/org/aya/tyck/error/NobodyError.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,16 @@
// Use of this source code is governed by the MIT license that can be found in the LICENSE.md file.
package org.aya.tyck.error;

/*public record NobodyError(
import org.aya.prettier.BasePrettier;
import org.aya.pretty.doc.Doc;
import org.aya.syntax.concrete.stmt.decl.TeleDecl;
import org.aya.syntax.core.def.FnDef;
import org.aya.syntax.ref.DefVar;
import org.aya.util.error.SourcePos;
import org.aya.util.prettier.PrettierOptions;
import org.jetbrains.annotations.NotNull;

public record NobodyError(
@Override @NotNull SourcePos sourcePos,
@NotNull DefVar<FnDef, TeleDecl.FnDecl> var
) implements TyckError {
Expand All @@ -12,4 +21,4 @@
BasePrettier.defVar(var),
Doc.english("does not have a telescope"));
}
}*/
}
1 change: 1 addition & 0 deletions syntax/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
requires static org.jetbrains.annotations;

exports org.aya.generic;
exports org.aya.prettier;
exports org.aya.syntax.concrete.stmt.decl;
exports org.aya.syntax.concrete.stmt;
exports org.aya.syntax.concrete;
Expand Down

0 comments on commit 54e1623

Please sign in to comment.