/// <inheritdoc />
        void IParsingContextStreamParent.SetError(IParsingError code, int idx)
        {
            if (idx < _errorPos)
            {
                return;
            }

            _errorPos = idx;
            _error    = code;
        }
Example #2
0
 public ParsedSourceError(IParsingError error, ISourceCodeFragment parsedFragment, ISourceCodeFragment notParsedFragment)
 {
     Error             = error;
     NotParsedFragment = notParsedFragment;
     ParsedFragment    = parsedFragment;
 }
Example #3
0
 public void SetError(IParsingError code, int idx)
 {
     throw new ObjectDisposedException(DisposedObjectName);
 }