Examples of FuncCall


Examples of org.luaj.vm2.ast.Exp.FuncCall

    public void tailCall( Exp e ) {
      if ( e instanceof MethodCall ) {
        MethodCall mc = (MethodCall) e;
        outl("return new TailcallVarargs("+evalLuaValue(mc.lhs)+","+evalStringConstant(mc.name)+","+evalListAsVarargs(mc.args.exps)+");");
      } else if ( e instanceof FuncCall ) {
        FuncCall fc = (FuncCall) e;
        outl("return new TailcallVarargs("+evalLuaValue(fc.lhs)+","+evalListAsVarargs(fc.args.exps)+");");
      } else {
        throw new IllegalArgumentException("can't tail call "+e);
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.