Skip to content

Commit

Permalink
(feat) minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
killme2008 committed Sep 14, 2021
1 parent 956eac9 commit 55164ef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,7 @@ public void initConstants(final Set<Token<?>> constants) {
}

@Override
public void initMethods(final Map<String, Integer> methods) {
// TODO Auto-generated method stub

}
public void initMethods(final Map<String, Integer> methods) {}

@Override
public void genNewLambdaCode(final LambdaFunctionBootstrap bootstrap) {
Expand Down Expand Up @@ -497,9 +494,7 @@ public void onArray(final Token<?> lookhead) {
}

@Override
public void onArrayIndexStart(final Token<?> token) {
// TODO
}
public void onArrayIndexStart(final Token<?> token) {}

@Override
public void onArrayIndexEnd(final Token<?> lookhead) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,12 @@ public SendIR(final String name, final int arity, final boolean unpackArgs, fina

private AviatorObject callFn(final AviatorFunction fn, final AviatorObject[] args,
final int arity, final Env env) {

if (arity == 0) {
return fn.call(env);
}

switch (arity) {
case 0:
return fn.call(env);
case 1:
return fn.call(env, args[0]);
case 2:
Expand Down

0 comments on commit 55164ef

Please sign in to comment.