/// <summary> /// Fires an error occurred event. /// </summary> /// <param name="error">The associated error code.</param> /// <param name="position">Position of the error.</param> public void RaiseErrorOccurred(CssParseError error, TextPosition position) { if (_events != null) { var errorEvent = new CssParseErrorEvent(error.GetCode(), error.GetMessage(), position); _events.Publish(errorEvent); } }
internal void RaiseErrorOccurred(CssParseError error, TextPosition position) { var handler = Error; if (handler != null) { var errorEvent = new CssErrorEvent(error, position); handler.Invoke(this, errorEvent); } }
public static Int32 GetCode(this CssParseError code) { return((Int32)code); }
void RaiseErrorOccurred(CssParseError code) { RaiseErrorOccurred(code, _base.GetCurrentPosition()); }
void RaiseErrorOccurred(CssParseError code, CssToken token) { _tokenizer.RaiseErrorOccurred(code, token.Position); }
private void RaiseErrorOccurred(CssParseError code, TextPosition position) { _tokenizer.RaiseErrorOccurred(code, position); }
/// <summary> /// Fires an error occurred event. /// </summary> /// <param name="code">The associated error code.</param> /// <param name="token">The associated token.</param> void RaiseErrorOccurred(CssParseError code, CssToken token) { _tokenizer.RaiseErrorOccurred(code, token.Position); }
/// <summary> /// Creates a new CssParseErrorEvent event. /// </summary> /// <param name="code">The provided error code.</param> /// <param name="position">The position in the source.</param> /// public CssErrorEvent(CssParseError code, TextPosition position) : base(EventNames.Error) { _code = code; _position = position; }
/// <summary> /// Fires an error occurred event at the current position. /// </summary> /// <param name="code">The associated error code.</param> public void RaiseErrorOccurred(CssParseError code) { RaiseErrorOccurred(code, GetCurrentPosition()); }
/// <summary> /// Creates a new CssParseErrorEvent event. /// </summary> /// <param name="code">The provided error code.</param> /// <param name="position">The position in the source.</param> /// public CssErrorEvent(CssParseError code, TextPosition position) : base(EventNames.ParseError) { _code = code; _position = position; }
internal void RaiseErrorOccurred(CssParseError error, TextPosition position) { Error?.Invoke(this, new CssErrorEvent(error, position)); }
/// <summary> /// Creates a new CssParseErrorEvent event. /// </summary> /// <param name="code">The provided error code.</param> /// <param name="position">The position in the source.</param> /// public CssErrorEvent(CssParseError code, TextPosition position) { _code = code; _position = position; }