From 5117b1f4177b3f1f9640a18a522ef54513dae6f4 Mon Sep 17 00:00:00 2001 From: HoshinoTented Date: Mon, 22 Jul 2024 13:17:54 +0800 Subject: [PATCH] class: remove useless thing --- base/src/main/java/org/aya/tyck/ClassResolver.java | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/base/src/main/java/org/aya/tyck/ClassResolver.java b/base/src/main/java/org/aya/tyck/ClassResolver.java index 3ad606f5b..8d1a1d475 100644 --- a/base/src/main/java/org/aya/tyck/ClassResolver.java +++ b/base/src/main/java/org/aya/tyck/ClassResolver.java @@ -49,6 +49,15 @@ public ClassResolver(@NotNull ModuleContext env) { // return envCache; } + public void resolve( + @NotNull MemberDefLike field, + @NotNull ImmutableSeq args, + @NotNull LocalCtx ctx, + @NotNull Stateful normalizerProvider + ) { + var candies = findCandidates(field, ctx, normalizerProvider); + } + /** * Find the candidate for the invocation of {@code field args} * @@ -57,12 +66,9 @@ public ClassResolver(@NotNull ModuleContext env) { public @NotNull ImmutableSeq findCandidates( @NotNull MemberDefLike field, @NotNull LocalCtx ctx, - @NotNull ClassDefLike thisTy, - @NotNull LocalVar thisTm, @NotNull Stateful normalizerProvider ) { var candies = MutableList.create(); - if (field.classRef().equals(thisTy)) candies.append(thisTm); // find from localCtx // can be improved by forEach and extractLocal (if there is) ctx.extract().forEach(v -> {