use of org.eclipse.n4js.ui.contentassist.antlr.internal.InternalN4JSParser in project n4js by eclipse.
the class N4JSParser method createParser.
@Override
protected InternalN4JSParser createParser() {
InternalN4JSParser result = new InternalN4JSParser(null);
result.setGrammarAccess(grammarAccess);
return result;
}
use of org.eclipse.n4js.ui.contentassist.antlr.internal.InternalN4JSParser in project n4js by eclipse.
the class N4JSParser method getFollowElements.
@Override
protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) {
try {
InternalN4JSParser typedParser = (InternalN4JSParser) parser;
typedParser.entryRuleScript();
return typedParser.getFollowElements();
} catch (RecognitionException ex) {
throw new RuntimeException(ex);
}
}
Aggregations