Example usage for org.eclipse.jdt.core.compiler ITerminalSymbols TokenNamedo

List of usage examples for org.eclipse.jdt.core.compiler ITerminalSymbols TokenNamedo

Introduction

In this page you can find the example usage for org.eclipse.jdt.core.compiler ITerminalSymbols TokenNamedo.

Prototype

int TokenNamedo

To view the source code for org.eclipse.jdt.core.compiler ITerminalSymbols TokenNamedo.

Click Source Link

Usage

From source file:edu.illinois.jflow.core.transformations.code.ExtractClosureAnalyzer.java

License:Open Source License

@Override
public boolean visit(DoStatement node) {
    boolean result = super.visit(node);

    try {// ww  w.j  av  a  2  s.c o m
        int actionStart = getTokenScanner().getTokenEndOffset(ITerminalSymbols.TokenNamedo,
                node.getStartPosition());
        if (getSelection().getOffset() == actionStart) {
            invalidSelection(JFlowRefactoringCoreMessages.ExtractClosureAnalyzer_after_do_keyword,
                    JavaStatusContext.create(fCUnit, getSelection()));
            return false;
        }
    } catch (CoreException e) {
        // ignore
    }

    return result;
}