protected void ErrorAndThrow(DiagMsg diagMsg, TextSpan textSpan) { Error(diagMsg, textSpan); Throw(); }
protected void ErrorAndThrow(DiagMsg diagMsg) { ErrorAndThrow(diagMsg, GetToken().TextSpan); }
protected void Error(DiagMsg diagMsg, TextSpan textSpan) { Error((int)diagMsg.Code, diagMsg.GetMessage(), textSpan); }