use of spoon.reflect.cu.position.NoSourcePosition in project spoon by INRIA.
the class VariableReferencesTest method getPosition.
private SourcePosition getPosition(CtElement e) {
SourcePosition sp = e.getPosition();
while (sp instanceof NoSourcePosition) {
e = e.getParent();
if (e == null) {
break;
}
sp = e.getPosition();
}
return sp;
}
Aggregations