Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HtmlParseError"/> class.
 /// </summary>
 /// <param name="code">The code.</param>
 /// <param name="line">The line.</param>
 /// <param name="linePosition">The line position.</param>
 /// <param name="streamPosition">The stream position.</param>
 /// <param name="sourceText">The source text.</param>
 /// <param name="reason">The reason.</param>
 internal HtmlParseError(HtmlParseErrorCode code, int line, int linePosition, int streamPosition, string sourceText, string reason)
 {
     this.Code = code;
     this.Line = line;
     this.LinePosition = linePosition;
     this.StreamPosition = streamPosition;
     this.SourceText = sourceText;
     this.Reason = reason;
 }
Beispiel #2
0
 internal HtmlParseError(HtmlParseErrorCode code, int line, int linePosition, int streamPosition, string sourceText, string reason)
 {
     this._code           = code;
     this._line           = line;
     this._linePosition   = linePosition;
     this._streamPosition = streamPosition;
     this._sourceText     = sourceText;
     this._reason         = reason;
 }
 internal HtmlParseError(HtmlParseErrorCode code, int line, int linePosition,
                         int streamPosition, string sourceText, string reason)
 {
     Code           = code;
     Line           = line;
     LinePosition   = linePosition;
     StreamPosition = streamPosition;
     SourceText     = sourceText;
     Reason         = reason;
 }
 internal HtmlParseError(HtmlParseErrorCode code, int line, int linePosition,
     int streamPosition, string sourceText, string reason)
 {
     Code = code;
     Line = line;
     LinePosition = linePosition;
     StreamPosition = streamPosition;
     SourceText = sourceText;
     Reason = reason;
 }
 internal HtmlParseError(
     HtmlParseErrorCode code,
     int line,
     int linePosition,
     int streamPosition,
     string sourceText,
     string reason)
 {
     _code = code;
     _line = line;
     _linePosition = linePosition;
     _streamPosition = streamPosition;
     _sourceText = sourceText;
     _reason = reason;
 }
 internal HtmlParseError(
     HtmlParseErrorCode code,
     int line,
     int linePosition,
     int streamPosition,
     ReadOnlyMemory <char> sourceText,
     string reason)
 {
     _code           = code;
     _line           = line;
     _linePosition   = linePosition;
     _streamPosition = streamPosition;
     _sourceText     = sourceText;
     _reason         = reason;
 }
 internal HtmlParseError(
     HtmlParseErrorCode code,
     Int32 line,
     Int32 linePosition,
     Int32 streamPosition,
     String sourceText,
     String reason)
 {
     _code           = code;
     _line           = line;
     _linePosition   = linePosition;
     _streamPosition = streamPosition;
     _sourceText     = sourceText;
     _reason         = reason;
 }
 private void AddError(HtmlParseErrorCode code, int line, int linePosition, int streamPosition, string sourceText, string reason)
 {
     HtmlParseError err = new HtmlParseError(code, line, linePosition, streamPosition, sourceText, reason);
     _parseerrors.Add(err);
     return;
 }
 private void AddError(HtmlParseErrorCode code, int line, int linePosition, int streamPosition, string sourceText, string reason)
 {
   this._parseerrors.Add(new HtmlParseError(code, line, linePosition, streamPosition, sourceText, reason));
 }
Beispiel #10
0
 /// <summary>
 /// The add error.
 /// </summary>
 /// <param name="code">The code.</param>
 /// <param name="errorline">The error line.</param>
 /// <param name="linePosition">The line position.</param>
 /// <param name="streamPosition">The stream position.</param>
 /// <param name="sourceText">The source text.</param>
 /// <param name="reason">The reason.</param>
 private void AddError(HtmlParseErrorCode code, int errorline, int linePosition, int streamPosition, string sourceText, string reason)
 {
     var err = new HtmlParseError(code, errorline, linePosition, streamPosition, sourceText, reason);
     this.parseerrors.Add(err);
 }