public void Error(string errorMsg) { errors.Add(reader.Position, errorMsg); }
public static void UnexpectedChar(HtmlParseErrorCollection errors, CharacterReader reader, TokeniserState state) { errors.Add(reader.Position, "Unexpected char '{0}' in input state [{1}]", reader.Current, state); }
public static void UnexpectedlyReachedEof(HtmlParseErrorCollection errors, CharacterReader reader, TokeniserState state) { errors.Add(reader.Position, "Unexpectedly reached end of file (EOF) in input state [{0}]", state); }
public static void UnexpectedToken(this HtmlParseErrorCollection errors, int readerPos, HtmlTreeBuilderState state, Token currentToken) { errors.Add(readerPos, "Unexpected token [{0}] when in state [{1}]", currentToken.TokenTypeName, state); }