@Override public void setUp() throws Exception { super.setUp(); with(new SimpleUnorderedGroupsTestLanguageStandaloneSetup() { @Override public Injector createInjector() { return Guice.createInjector(new SimpleUnorderedGroupsTestLanguageRuntimeModule() { @SuppressWarnings("unused") public ISyntaxErrorMessageProvider bindSyntaxErrorMessageProvider() { return ErrorMessagesTest.this; } }); } }); delegate = get(SyntaxErrorMessageProvider.class); grammarAccess = get(SimpleUnorderedGroupsTestLanguageGrammarAccess.class); }
/** * @since 2.9 */ public Class<? extends SyntaxErrorMessageProvider> bindSyntaxErrorMessageProvider() { return CardinalityAwareSyntaxErrorMessageProvider.class; }
/** * Handle octal escapes without a leading zero in JS strings. * * @return Class<{@link BadEscapementAwareMessageProvider}> */ @Inject public Class<? extends SyntaxErrorMessageProvider> bindSyntaxErrorMessageProvider() { return BadEscapementAwareMessageProvider.class; }