angular-cn/tools/transpiler/spec/fixtures/annotations.dart

8 lines
207 B
Dart

import 'dart:mirrors';
// TODO: this api does not yet return an array as we don't have
// a nice array wrapper for Dart
readFirstAnnotation(clazz) {
return reflectClass(clazz).metadata.first.reflectee;
}