Skip to content

Commit

Permalink
proofsearch: fix #33
Browse files Browse the repository at this point in the history
  • Loading branch information
ice1000 committed Dec 25, 2024
1 parent 3eb79c9 commit b7748b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ private static boolean matches(@NotNull ProofShape ps, @NotNull Term term) {
}

static @NotNull Either<String, ProofShape> parse(@NotNull Project project, @NotNull String pattern) {
if (pattern.isBlank()) return Either.left("Pattern is empty");
var reporter = new BufferReporter();
try {
var parser = new AyaIJParserImpl(project, reporter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class AyaPsiFactory {

public static @NotNull PsiElement expr(@NotNull Project project, @NotNull String text) {
var fn = (AyaPsiFnDecl) file(project, "def a : " + text).getFirstChild();
return Objects.requireNonNull(Objects.requireNonNull(fn.getType()).getExpr());
return Objects.requireNonNull(Objects.requireNonNull(fn.getType()).getExpr(), text);
}

public static @NotNull AyaPsiQualifiedId qualifiedId(@NotNull Project project, @NotNull String text) {
Expand Down

0 comments on commit b7748b4

Please sign in to comment.