예제 #1
0
  public void calcInternalTypes(Env env) {

    for (ParameterDec parameter : parameterList) {
      String parameterName = parameter.getName();
      if (parameterName != null) {
        if (env.searchLocalVariableParameter(parameterName) != null) {
          env.searchLocalVariableParameter(parameterName);
          env.error(
              parameter.getFirstSymbol(),
              "Parameter '" + parameterName + "' is being redeclared",
              true);
        }
      }
      parameter.calcInternalTypes(env);
    }
  }
예제 #2
0
 @Override
 public void calcInterfaceTypes(Env env) {
   for (ParameterDec parameterDec : parameterList) parameterDec.calcInternalTypes(env);
 }