feat(transformers): add more information to factory debug reflection

Add the symbol information to debug_reflection_capabilities when asking
for a factory to make finding the type easier in large codebases.
This commit is contained in:
Ted Sander 2015-08-01 22:47:04 -07:00
parent 1beaf81e98
commit be79942ebd
1 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,6 @@
library reflection.debug_reflection_capabilities; library reflection.debug_reflection_capabilities;
import 'dart:mirrors';
import 'package:logging/logging.dart' as log; import 'package:logging/logging.dart' as log;
import 'package:stack_trace/stack_trace.dart'; import 'package:stack_trace/stack_trace.dart';
import 'types.dart'; import 'types.dart';
@ -25,7 +26,8 @@ class ReflectionCapabilities extends standard.ReflectionCapabilities {
} }
Function factory(Type type) { Function factory(Type type) {
_notify('factory', type); ClassMirror classMirror = reflectType(type);
_notify('factory', '${classMirror.qualifiedName}');
return super.factory(type); return super.factory(type);
} }