Package org.eclipse.php.internal.core.documentModel.parser.Scanner

Examples of org.eclipse.php.internal.core.documentModel.parser.Scanner.LexerState


      throws BadLocationException {
    Iterator<LexerStateChange> iter = lexerStateChanges.iterator();
    assert iter.hasNext();

    LexerStateChange element = iter.next();
    LexerState lastState = null;

    while (offset >= element.getOffset()) {
      lastState = element.state;
      if (!iter.hasNext()) {
        return lastState;
View Full Code Here


  /**
   * @see IPhpScriptRegion#isLineComment(int)
   */
  public boolean isLineComment(int offset) throws BadLocationException {
    final LexerState lexState = tokensContaier.getState(offset);
    return lexState != null
        && lexState.getTopState() == ST_PHP_LINE_COMMENT;
  }
View Full Code Here

        if (isHereDoc(tokenStart)) {
          return null;
        }

        // get start and end states
        final LexerState startState = tokensContaier
            .getState(newTokenOffset);
        final LexerState endState = tokensContaier.getState(tokenEnd
            .getEnd() + 1);

        final PhpTokenContainer newContainer = new PhpTokenContainer();
        final AbstractPhpLexer phpLexer = getPhpLexer(
            new DocumentReader(flatnode, changes, requestStart,
View Full Code Here

        Iterator<LexerStateChange> iter = lexerStateChanges.iterator();
        assert iter.hasNext();

        LexerStateChange element = iter.next();
        LexerState lastState = null;

        while (offset >= element.getOffset()) {
            lastState = element.state;
            if (!iter.hasNext()) {
                return lastState;
View Full Code Here

            }

            int newTokenOffset = tokenStart.getStart();

            // get start and end states
            final LexerState startState = tokensContainer
                    .getState(newTokenOffset);
            final LexerState endState = tokensContainer.getState(tokenEnd
                    .getEnd() + 1);

            final TwigTokenContainer newContainer = new TwigTokenContainer();
            final TwigLexer twigLexer = getTwigLexer(new DocumentReader(
                    flatnode, changes, requestStart, lengthToReplace,
View Full Code Here

TOP

Related Classes of org.eclipse.php.internal.core.documentModel.parser.Scanner.LexerState

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.