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); } }
@Override public void calcInterfaceTypes(Env env) { for (ParameterDec parameterDec : parameterList) parameterDec.calcInternalTypes(env); }