executeCodeForExecutable function

String executeCodeForExecutable(
  1. ExecutableElement elem
)

Implementation

String executeCodeForExecutable(ExecutableElement elem) {
  final parent = elem.enclosingElement;
  final prefix =
      elem.isStatic && parent is ClassElement ? '${parent.name}.' : '';
  return '$prefix${elem.name}()';
}