Skip to content

Commit

Permalink
class: remove useless thing
Browse files Browse the repository at this point in the history
  • Loading branch information
HoshinoTented committed Jul 22, 2024
1 parent 5cc4320 commit 5117b1f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions base/src/main/java/org/aya/tyck/ClassResolver.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,15 @@ public ClassResolver(@NotNull ModuleContext env) {
// return envCache;
}

public void resolve(
@NotNull MemberDefLike field,
@NotNull ImmutableSeq<Jdg> args,
@NotNull LocalCtx ctx,
@NotNull Stateful normalizerProvider
) {
var candies = findCandidates(field, ctx, normalizerProvider);
}

Check warning on line 59 in base/src/main/java/org/aya/tyck/ClassResolver.java

View check run for this annotation

Codecov / codecov/patch

base/src/main/java/org/aya/tyck/ClassResolver.java#L58-L59

Added lines #L58 - L59 were not covered by tests

/**
* Find the candidate for the invocation of {@code field args}
*
Expand All @@ -57,12 +66,9 @@ public ClassResolver(@NotNull ModuleContext env) {
public @NotNull ImmutableSeq<AnyVar> findCandidates(
@NotNull MemberDefLike field,
@NotNull LocalCtx ctx,
@NotNull ClassDefLike thisTy,
@NotNull LocalVar thisTm,
@NotNull Stateful normalizerProvider
) {
var candies = MutableList.<AnyVar>create();

Check warning on line 71 in base/src/main/java/org/aya/tyck/ClassResolver.java

View check run for this annotation

Codecov / codecov/patch

base/src/main/java/org/aya/tyck/ClassResolver.java#L71

Added line #L71 was not covered by tests
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 -> {

Check warning on line 74 in base/src/main/java/org/aya/tyck/ClassResolver.java

View check run for this annotation

Codecov / codecov/patch

base/src/main/java/org/aya/tyck/ClassResolver.java#L74

Added line #L74 was not covered by tests
Expand Down

0 comments on commit 5117b1f

Please sign in to comment.