createApp function
Implementation
Expression createApp(ServerApp app) {
final (:positioned, :named) = getParams(app.params);
final expression = refer(app.className);
if (app.constructor.isEmpty) {
return expression.newInstance(positioned, named);
} else {
return expression.newInstanceNamed(app.constructor, positioned, named);
}
}