congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Lexer.getTokenEnd
Code IndexAdd Tabnine to your IDE (free)

How to use
getTokenEnd
method
in
com.intellij.lexer.Lexer

Best Java code snippets using com.intellij.lexer.Lexer.getTokenEnd (Showing top 6 results out of 315)

origin: KronicDeth/intellij-elixir

public int getTokenEnd() {
  return lexer().getTokenEnd();
}
origin: KronicDeth/intellij-elixir

private void restoreElixirPosition(@Nullable LexerPosition elixirPosition) {
  if (elixirPosition != null) {
    elixirLexer.start(getBufferSequence(), eexLexer.getTokenStart(), eexLexer.getTokenEnd());
    elixirLexer.restore(elixirPosition);
  }
}
origin: KronicDeth/intellij-elixir

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());
    }
  }
}
origin: BashSupport/BashSupport

@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;
}
origin: Camelcade/Perl5-IDEA

 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();
 }
}
origin: BashSupport/BashSupport

int tokenEnd = lexer.getTokenEnd();
int realLength = tokenEnd - tokenStart;
com.intellij.lexerLexergetTokenEnd

Popular methods of Lexer

  • getTokenStart
  • start
  • advance
  • getBufferEnd
  • getTokenType
  • getBufferSequence
  • getState
  • restore
  • getCurrentPosition
  • getTokenSequence
  • getTokenText
  • getTokenText

Popular in Java

  • Finding current android device location
  • onCreateOptionsMenu (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • JFileChooser (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now