/// <summary> /// Fires an error occurred event (usually originated by another tokenizer). /// </summary> /// <param name="sender">The original sender.</param> /// <param name="eventArgs">The arguments of the event.</param> protected void RaiseErrorOccurred(Object sender, ParseErrorEventArgs eventArgs) { if (ErrorOccurred != null) { ErrorOccurred(sender, eventArgs); } }
/// <summary> /// Fires an error occurred event. /// </summary> /// <param name="code">The associated error code.</param> protected void RaiseErrorOccurred(ErrorCode code) { if (ErrorOccurred != null) { var pck = new ParseErrorEventArgs((int)code, Errors.GetError(code)); pck.Line = _src.Line; pck.Column = _src.Column; ErrorOccurred(this, pck); } }
/// <summary> /// Fires an error occurred event. /// </summary> /// <param name="code">The associated error code.</param> protected void RaiseErrorOccurred(ErrorCode code) { if (ErrorOccurred != null) { var pck = new ParseErrorEventArgs((int)code, Errors.GetError(code)); pck.Line = src.Line; pck.Column = src.Column; ErrorOccurred(this, pck); } }
/// <summary> /// Reports an error by writing to the debug console. /// </summary> /// <param name="e">The parse error event arguments.</param> public virtual void ReportError(ParseErrorEventArgs e) { Debug.WriteLine(e.ToString()); }
/// <summary> /// Called once a helper class finds a parse error. /// </summary> /// <param name="sender">The helper that encountered the error.</param> /// <param name="e">The arguments passed from the helper instance.</param> void ParseErrorOccurred(object sender, ParseErrorEventArgs e) { Debug.WriteLine(e); }
/// <summary> /// Fires an error occurred event (usually originated by another tokenizer). /// </summary> /// <param name="sender">The original sender.</param> /// <param name="eventArgs">The arguments of the event.</param> protected void RaiseErrorOccurred(Object sender, ParseErrorEventArgs eventArgs) { if (ErrorOccurred != null) ErrorOccurred(sender, eventArgs); }
public void ReportError(ParseErrorEventArgs e) { _original.ReportError(e); }