fix(di): do not use exceptions to detect if reflection is enabled

This commit is contained in:
vsavkin
2015-07-10 08:54:53 -07:00
parent 71c65b47f9
commit a6210466c7
7 changed files with 23 additions and 9 deletions
@@ -10,6 +10,8 @@ class NullReflectionCapabilities implements ReflectionCapabilities {
_notImplemented(String name) => throw 'Not implemented: $name';
bool isReflectionEnabled() { return false; }
Function factory(Type type) => _notImplemented('factory');
List<List> parameters(typeOrFunc) => _notImplemented('parameters');