reflectFunction method
Implementation
@override
ReflectedFunction reflectFunction(Function function) {
if (!reflectable.canReflect(function)) {
throw new UnsupportedError('Cannot reflect $function.');
}
var mirror = reflectable.reflect(function);
if (mirror is ClosureMirror) {
return new _GeneratedReflectedFunction(mirror.function, this, mirror);
} else {
throw new ArgumentError('$function is not a Function.');
}
}