/** * Produce an Antlr token for the prefix of the given leaf that overlaps the requested region * * @see #endOffset */ private Token toPrefixToken(ILeafNode leaf) { Lexer lexer = new InternalN4JSLexer(); String text = leaf.getText(); String prefix = text.substring(0, endOffset - leaf.getTotalOffset()); ANTLRStringStream stream = new ANTLRStringStream(prefix); lexer.setCharStream(stream); Token nextToken = lexer.nextToken(); // copy to get rid of the reference to the stream again return new CommonToken(nextToken.getType(), nextToken.getText()); }
public void configureContentAssistLexer(Binder binder) { binder.bind(Lexer.class) .annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST)) .to(InternalPkmntcgoLexer.class); }
public void configureHighlightingLexer(Binder binder) { binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class) .annotatedWith(Names.named(LexerIdeBindings.HIGHLIGHTING)) .to(de.baernreuther.dsls.parser.antlr.internal.InternalPkmntcgoLexer.class); }
public void configureContentAssistLexer(Binder binder) { binder.bind(Lexer.class) .annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST)) .to(InternalN4JSLexer.class); }
public void configureHighlightingLexer(Binder binder) { binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class) .annotatedWith(Names.named(LexerIdeBindings.HIGHLIGHTING)) .to(org.eclipse.n4js.parser.antlr.lexer.InternalN4JSLexer.class); }
public void configureContentAssistLexer(Binder binder) { binder.bind(Lexer.class) .annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST)) .to(InternalRegularExpressionLexer.class); }
public void configureHighlightingLexer(Binder binder) { binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class) .annotatedWith(Names.named(LexerIdeBindings.HIGHLIGHTING)) .to(org.eclipse.n4js.regex.parser.antlr.lexer.InternalRegularExpressionLexer.class); }
public void configureContentAssistLexer(Binder binder) { binder.bind(Lexer.class) .annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST)) .to(InternalN4MFLexer.class); }
public void configureHighlightingLexer(Binder binder) { binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class) .annotatedWith(Names.named(LexerIdeBindings.HIGHLIGHTING)) .to(org.eclipse.n4js.n4mf.parser.antlr.lexer.InternalN4MFLexer.class); }
public void configureContentAssistLexer(Binder binder) { binder.bind(Lexer.class) .annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST)) .to(InternalTypesLexer.class); }
public void configureHighlightingLexer(Binder binder) { binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class) .annotatedWith(Names.named(LexerIdeBindings.HIGHLIGHTING)) .to(org.eclipse.n4js.ts.parser.antlr.lexer.InternalTypesLexer.class); }
public void configureContentAssistLexer(Binder binder) { binder.bind(Lexer.class) .annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST)) .to(InternalMyDslLexer.class); }
public void configureHighlightingLexer(Binder binder) { binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class) .annotatedWith(Names.named(LexerIdeBindings.HIGHLIGHTING)) .to(org.xtext.example.mydsl.parser.antlr.internal.InternalMyDslLexer.class); }
public void configureContentAssistLexer(Binder binder) { binder.bind(Lexer.class) .annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST)) .to(InternalBromiumLexer.class); }
public void configureHighlightingLexer(Binder binder) { binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class) .annotatedWith(Names.named(LexerIdeBindings.HIGHLIGHTING)) .to(com.hribol.bromium.dsl.parser.antlr.internal.InternalBromiumLexer.class); }
public void configureContentAssistLexer(Binder binder) { binder.bind(Lexer.class) .annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST)) .to(InternalDSLPoliciesLexer.class); }
public void configureHighlightingLexer(Binder binder) { binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class) .annotatedWith(Names.named(LexerIdeBindings.HIGHLIGHTING)) .to(gw4e.eclipse.dsl.parser.antlr.internal.InternalDSLPoliciesLexer.class); }
public void configureContentAssistLexer(Binder binder) { binder.bind(Lexer.class) .annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST)) .to(InternalLcDslLexer.class); }
public void configureHighlightingLexer(Binder binder) { binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class) .annotatedWith(Names.named(LexerIdeBindings.HIGHLIGHTING)) .to(com.wamas.ide.launching.parser.antlr.internal.InternalLcDslLexer.class); }
public void configureContentAssistLexer(Binder binder) { binder.bind(Lexer.class) .annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST)) .to(InternalDslLexer.class); }
public void configureHighlightingLexer(Binder binder) { binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class) .annotatedWith(Names.named(LexerIdeBindings.HIGHLIGHTING)) .to(org.eclipse.gemoc.parser.antlr.internal.InternalDslLexer.class); }
public void configureContentAssistLexer(Binder binder) { binder.bind(Lexer.class) .annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST)) .to(InternalRestauranteLexer.class); }
public void configureHighlightingLexer(Binder binder) { binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class) .annotatedWith(Names.named(LexerIdeBindings.HIGHLIGHTING)) .to(org.xtext.dsl.restaurante.parser.antlr.internal.InternalRestauranteLexer.class); }
public void configureContentAssistLexer(Binder binder) { binder.bind(Lexer.class) .annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST)) .to(InternalOCCILexer.class); }
public void configureHighlightingLexer(Binder binder) { binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class) .annotatedWith(Names.named(LexerIdeBindings.HIGHLIGHTING)) .to(org.eclipse.cmf.occi.core.xtext.parser.antlr.internal.InternalOCCILexer.class); }
public void configureContentAssistLexer(Binder binder) { binder.bind(Lexer.class) .annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST)) .to(InternalXbaseWithAnnotationsLexer.class); }
public void configureContentAssistLexer(Binder binder) { binder.bind(Lexer.class) .annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST)) .to(InternalXbaseLexer.class); }
public void configureContentAssistLexer(Binder binder) { binder.bind(Lexer.class) .annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST)) .to(InternalXtypeLexer.class); }
public void configureContentAssistLexer(Binder binder) { binder.bind(Lexer.class) .annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST)) .to(InternalBug462047LangLexer.class); }