use of org.spoofax.jsglr.client.imploder.AbstractTokenizer in project spoofax by metaborg.
the class JSGLRParseErrorHandler method reportErrorNearOffset.
private void reportErrorNearOffset(ITokens tokenizer, int offset, String message) {
final IToken errorToken = ((AbstractTokenizer) tokenizer).getErrorTokenOrAdjunct(offset);
final ISourceRegion region = JSGLRSourceRegionFactory.fromTokens(errorToken, errorToken);
reportErrorAtRegion(region, message);
}
Aggregations