Example #1
0
 /// <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);
     }
 }
Example #2
0
 /// <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);
     }
 }
Example #3
0
        internal void RaiseErrorOccurred(CssParseError error, TextPosition position)
        {
            var handler = Error;

            if (handler != null)
            {
                var errorEvent = new CssErrorEvent(error, position);
                handler.Invoke(this, errorEvent);
            }
        }
Example #4
0
        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);
 }
Example #6
0
 void RaiseErrorOccurred(CssParseError code)
 {
     RaiseErrorOccurred(code, _base.GetCurrentPosition());
 }
Example #7
0
 void RaiseErrorOccurred(CssParseError code, CssToken token)
 {
     _tokenizer.RaiseErrorOccurred(code, token.Position);
 }
 private void RaiseErrorOccurred(CssParseError code, TextPosition position)
 {
     _tokenizer.RaiseErrorOccurred(code, position);
 }
Example #9
0
 /// <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);
 }
Example #10
0
 private void RaiseErrorOccurred(CssParseError code, TextPosition position)
 {
     _tokenizer.RaiseErrorOccurred(code, 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;
 }
Example #12
0
 /// <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());
 }
Example #13
0
 /// <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());
 }
Example #14
0
 /// <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;
 }
Example #15
0
 internal void RaiseErrorOccurred(CssParseError error, TextPosition position)
 {
     Error?.Invoke(this, new CssErrorEvent(error, position));
 }
Example #16
0
 /// <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;
 }