- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {}
public int getTokenEnd() { return lexer().getTokenEnd(); }
private void restoreElixirPosition(@Nullable LexerPosition elixirPosition) { if (elixirPosition != null) { elixirLexer.start(getBufferSequence(), eexLexer.getTokenStart(), eexLexer.getTokenEnd()); elixirLexer.restore(elixirPosition); } }
public void advance() { if (eexLexer.getTokenType() == ELIXIR) { elixirLexer.advance(); if (elixirLexer.getTokenType() == null) { eexLexer.advance(); } } else { eexLexer.advance(); if (eexLexer.getTokenType() == ELIXIR) { // start automatically does equivalent of `advance` since `elixirLexer` is also a look-ahead lexer elixirLexer.start(getBufferSequence(), eexLexer.getTokenStart(), eexLexer.getTokenEnd()); } } }
@Override public int getTokenEnd() { if (!afterPrefix) { return prefix.length(); } int tokenEnd = myDelegate.getTokenEnd(); if (delegateEOF) { return prefix.length() + suffix.length() + tokenEnd; } return prefix.length() + tokenEnd; }
private void lexToken(Lexer lexer) { myTokenType = lexer.getTokenType(); if (myTokenType == LEFT_BRACE_CODE_START) { myTokenType = LEFT_BRACE; } myTokenStart = lexer.getTokenStart(); myState = lexer.getState(); myTokenEnd = lexer.getTokenEnd(); lexer.advance(); } }
int tokenEnd = lexer.getTokenEnd(); int realLength = tokenEnd - tokenStart;