예제 #1
0
 public void Error(string errorMsg)
 {
     errors.Add(reader.Position, errorMsg);
 }
예제 #2
0
 public static void UnexpectedChar(HtmlParseErrorCollection errors, CharacterReader reader, TokeniserState state)
 {
     errors.Add(reader.Position, "Unexpected char '{0}' in input state [{1}]", reader.Current, state);
 }
예제 #3
0
 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);
 }
예제 #4
0
 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);
 }