Ejemplo n.º 1
0
  // if you pass "null" for "function", don't forget to call "setFunction" later
  public Call(
      AbstractTacPlace functionNamePlace,
      TacFunction calledFunction,
      ParseNode node,
      TacFunction enclosingFunction,
      Variable retVar,
      AbstractTacPlace tempPlace,
      List<TacActualParameter> paramList,
      Variable object) {

    super(node);
    this.functionNamePlace = functionNamePlace;
    // this.callee = calledFunction;
    if (calledFunction != null) {
      calledFunction.addCalledFrom(this);
    }
    this.setEnclosingFunction(enclosingFunction);

    this.retVar = retVar;
    this.tempVar = (Variable) tempPlace; // must be a variable

    this.paramList = paramList;
    this.cbrParamList = null;

    this.calleeClassName = null;
    this.object = object;
  }
Ejemplo n.º 2
0
 public void setCallee(TacFunction function) {
   this.callee = function;
   function.addCalledFrom(this);
 }