/// <summary> /// Adds a new <see cref="Instr.Call"/> to an <see cref="IUserProc"/>. /// </summary> /// <param name="userProc">The <see cref="IUserProc"/> to call.</param> /// <param name="arguments">The arguments to call the procedure with.</param> /// <returns>The return <see cref="Value"/> of the call.</returns> public Value Call(IUserProc userProc, IList <Value> arguments) { var resultReg = AllocateRegister(userProc.ReturnType); AddInstr(new Instr.Call(resultReg, new Value.User(userProc), arguments)); return(resultReg); }
public AccountController() { _repo = new UserRepo(); }