location = toLocation(op);
Statement stmt = flowPeek();
DefinitionStatement parent = stmt.getScopeStatement();
context = stmt.getFunctionStatement();
String name = "thunk$" + parent.getNextInlined();
if (parent.typeOf() == Statement.ST_CLASS) {
thunk = new MethodStatement(location, parent, context, false, name, null, ParameterListDeclaration.EMPTY);
} else {
thunk = new FunctionStatement(location, parent, context, false, name, null, ParameterListDeclaration.EMPTY);
}
thunk.setParentStatement(flowPeek());