use of auxiliaryGrammar.Locator in project L42 by ElvisResearchGroup.
the class CollectedLocatorsMap method from.
public static CollectedLocatorsMap from(Path src, Member m, MethodSelector ms2) {
Locator result = new Locator();
result.addCsAndMember(src.getCBar(), m);
result.setAnnotation(ms2);
CollectedLocatorsMap maps = new CollectedLocatorsMap();
maps.selectors.add(result);
return maps;
}
use of auxiliaryGrammar.Locator in project L42 by ElvisResearchGroup.
the class CollectedLocatorsMap method pathPathToLocator.
private static Locator pathPathToLocator(Path src, Path dest) {
Locator result = new Locator();
result.addCs(src.getCBar());
assert src.outerNumber() == 0;
result.setAnnotation(dest);
return result;
}
use of auxiliaryGrammar.Locator in project L42 by ElvisResearchGroup.
the class CollectedLocatorsMap method from.
public static CollectedLocatorsMap from(List<PathPath> pp) {
CollectedLocatorsMap maps = new CollectedLocatorsMap();
for (PathPath ppi : pp) {
Locator nl = pathPathToLocator(ppi.getPath1(), ppi.getPath2());
maps.nesteds.add(nl);
}
return maps;
}
use of auxiliaryGrammar.Locator 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];
}
Aggregations