Пример #1
0
 private void ErrorAndThrow(DiagMsgEx diagMsg)
 {
     ErrorAndThrow(diagMsg, GetToken().TextSpan);
 }
Пример #2
0
 private static void Error(DiagMsgEx diagMsg, TextSpan textSpan)
 {
     Current.AddDiagnostic(DiagnosticSeverity.Error, (int)diagMsg.Code, diagMsg.GetMessage(), textSpan);
 }
Пример #3
0
 private void ErrorAndThrow(DiagMsgEx diagMsg, TextSpan textSpan)
 {
     Error((int)diagMsg.Code, diagMsg.GetMessage(), textSpan);
     Throw();
 }
Пример #4
0
 public static void ErrorAndThrow(DiagMsgEx diagMsg, TextSpan textSpan)
 {
     Error(diagMsg, textSpan);
     throw LoadingException.Instance;
 }