mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Clean-up: move annotaitons out of fixtures/annotations, since we have the @CONST annotation in the transpiler already.
7 lines
207 B
Dart
7 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;
|
|
}
|