Java 类org.eclipse.xtext.parser.antlr.SyntaxErrorMessageProvider 实例源码

项目:xtext-core    文件:ErrorMessagesTest.java   
@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);
}
项目:xtext-core    文件:XtextRuntimeModule.java   
/**
 * @since 2.9
 */
public Class<? extends SyntaxErrorMessageProvider> bindSyntaxErrorMessageProvider() {
    return CardinalityAwareSyntaxErrorMessageProvider.class;
}
项目:n4js    文件:N4JSRuntimeModule.java   
/**
 * Handle octal escapes without a leading zero in JS strings.
 *
 * @return Class<{@link BadEscapementAwareMessageProvider}>
 */
@Inject
public Class<? extends SyntaxErrorMessageProvider> bindSyntaxErrorMessageProvider() {
    return BadEscapementAwareMessageProvider.class;
}