congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Lexer.advance
Code IndexAdd Tabnine to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew ArrayList()
  • Codota Iconnew LinkedList()
  • Smart code suggestions by Tabnine
}
origin: KronicDeth/intellij-elixir

  @Override
  public IElementType merge(final IElementType type, final Lexer originalLexer) {
    IElementType mergedTokenType;
    if (type != DATA) {
      while (true) {
        IElementType originalTokenType = originalLexer.getTokenType();
        if (originalTokenType != null && originalTokenType != DATA) {
          originalLexer.advance();
        } else {
          break;
        }
      }
      mergedTokenType = EEX;
    } else {
      mergedTokenType = type;
    }
    return mergedTokenType;
  }
}
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 void advance() {
  if (afterPrefix) {
    myDelegate.advance();
  }
  afterPrefix = true;
  afterEOF |= delegateEOF;
  delegateEOF |= myDelegate.getTokenType() == null;
}
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

lexer.advance();
origin: BashSupport/BashSupport

  @Override
  public IElementType merge(IElementType type, Lexer lexer) {
    for (MergeTuple currentTuple : mergeTuples) {
      TokenSet tokensToMerge = currentTuple.getTokensToMerge();
      if (tokensToMerge.contains(type)) {
        IElementType current = lexer.getTokenType();
        //merge all upcoming tokens into the target token type
        while (tokensToMerge.contains(current)) {
          lexer.advance();
          current = lexer.getTokenType();
        }
        return currentTuple.getTargetType();
      }
    }
    return type;
  }
}
origin: BashSupport/BashSupport

  @Override
  public void advance() {
    IElementType tokenType = myDelegate.getTokenType();

    if (tokenType == BashTokenTypes.COMMENT) {
      scanWordsInToken(UsageSearchContext.IN_COMMENTS, false, false);
      advanceTodoItemCountsInToken();
    } else if (tokenType == BashTokenTypes.STRING2) {
      addOccurrenceInToken(UsageSearchContext.IN_CODE | UsageSearchContext.IN_STRINGS | UsageSearchContext.IN_FOREIGN_LANGUAGES);
      scanWordsInToken(UsageSearchContext.IN_CODE | UsageSearchContext.IN_STRINGS, true, true);
    } else {
      addOccurrenceInToken(UsageSearchContext.IN_CODE | UsageSearchContext.IN_STRINGS);
      scanWordsInToken(UsageSearchContext.IN_CODE | UsageSearchContext.IN_STRINGS, true, false);
    }

    myDelegate.advance();
  }
}
com.intellij.lexerLexeradvance

Popular methods of Lexer

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

Popular in Java

  • Finding current android device location
  • getContentResolver (Context)
  • onCreateOptionsMenu (Activity)
  • findViewById (Activity)
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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