mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-15 08:18:55 +00:00
extended error handling interface
This commit is contained in:
parent
09edb8e3e1
commit
57af128c08
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ public class ParseErrorHandlingTest extends AbstractGeneratorTest {
|
|||
public void testLexError() throws Exception {
|
||||
final List<String> errors = new ArrayList<String>();
|
||||
parse("import 'holla' % as foo", new IParseErrorHandler() {
|
||||
public void handleParserError(int offset, int length, String text, String message) {
|
||||
public void handleParserError(int line, int offset, int length, int token, String text, String message, Object context) {
|
||||
System.out.println(message + ":'" + text + "' (" + offset + "," + length + ")");
|
||||
errors.add(text);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue