Search in sources :

Example 1 with CloneWithPath

use of coreVisitors.CloneWithPath in project L42 by ElvisResearchGroup.

the class IsValidCompleteCode method isComplete.

boolean isComplete(ClassB cb) {
    boolean[] found = { false };
    cb.accept(new CloneWithPath() {

        @Override
        protected Path liftP(Path p) {
            Locator l = this.getLocator().copy();
            if (p.outerNumber() > l.size()) {
                found[0] = true;
            }
            return super.liftP(p);
        }
    });
    return found[0];
}
Also used : CloneWithPath(coreVisitors.CloneWithPath) Path(ast.Ast.Path) CloneWithPath(coreVisitors.CloneWithPath) Locator(auxiliaryGrammar.Locator)

Aggregations

Path (ast.Ast.Path)1 Locator (auxiliaryGrammar.Locator)1 CloneWithPath (coreVisitors.CloneWithPath)1