fix(di): do not use exceptions to detect if reflection is enabled
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user