private void ErrorAndThrow(DiagMsgEx diagMsg) { ErrorAndThrow(diagMsg, GetToken().TextSpan); }
private static void Error(DiagMsgEx diagMsg, TextSpan textSpan) { Current.AddDiagnostic(DiagnosticSeverity.Error, (int)diagMsg.Code, diagMsg.GetMessage(), textSpan); }
private void ErrorAndThrow(DiagMsgEx diagMsg, TextSpan textSpan) { Error((int)diagMsg.Code, diagMsg.GetMessage(), textSpan); Throw(); }
public static void ErrorAndThrow(DiagMsgEx diagMsg, TextSpan textSpan) { Error(diagMsg, textSpan); throw LoadingException.Instance; }