protected void assertParamCount( int nParamsCount, String strFunctionName, List<Expression> listArgs) { if (listArgs.size() != nParamsCount) errors.SemErr( la.line, la.col, StringUtil.concat( strFunctionName, " expects ", nParamsCount, " parameters, but ", listArgs.size(), " were provided.")); }
public void SemErr(String msg) { if (errDist >= minErrDist) errors.SemErr(t.line, t.col, msg); errDist = 0; }
void SynErr(int n) { if (errDist >= minErrDist) errors.SynErr(la.line, la.col, n); errDist = 0; }