private SSTemplateLexer(LexerRestartInfo<SSTemplateTokenId> info) {

    tokenFactory = info.tokenFactory();
    input = info.input();
    state =
        info.state() == null
            ? new SSTemplateLexerState()
            : new SSTemplateLexerState((SSTemplateLexerState) info.state());

    initialize();
  }
 public CoffeeScriptRegexpLexer(LexerRestartInfo<CoffeeScriptRegexpTokenId> info) {
   super(info.input(), info.tokenFactory());
   inEmbedded = info.state() instanceof Boolean ? (Boolean) info.state() : false;
 }