Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit be79942

Browse files
committed
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.
1 parent 1beaf81 commit be79942

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/angular2/src/reflection/debug_reflection_capabilities.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
library reflection.debug_reflection_capabilities;
22

3+
import 'dart:mirrors';
34
import 'package:logging/logging.dart' as log;
45
import 'package:stack_trace/stack_trace.dart';
56
import 'types.dart';
@@ -25,7 +26,8 @@ class ReflectionCapabilities extends standard.ReflectionCapabilities {
2526
}
2627

2728
Function factory(Type type) {
28-
_notify('factory', type);
29+
ClassMirror classMirror = reflectType(type);
30+
_notify('factory', '${classMirror.qualifiedName}');
2931
return super.factory(type);
3032
}
3133

0 commit comments

Comments
 (0)