use of org.eclipse.titanium.refactoring.scope.nodes.Environment in project titan.EclipsePlug-ins by eclipse.
the class ChangeCreator method analyzeFunction.
/**
* Analyze a function or testcase
*/
private List<Edit> analyzeFunction(final Definition def) {
if (!(def instanceof Def_Function || def instanceof Def_Testcase)) {
ErrorReporter.logError("ChangeCreator.analyzeFunction(): def must be a Def_Function or a Def_Testcase! def type: " + def.getClass());
return null;
}
final FunctionAnalyzer vis = new FunctionAnalyzer();
def.accept(vis);
final Environment env = vis.getResult();
final List<Edit> eds = env.refactor();
return eds;
}
Aggregations