feat(reflector): added a method to get type's interfaces
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import {Type, isPresent, global, stringify} from 'angular2/src/facade/lang';
|
||||
import {Type, isPresent, global, stringify, BaseException} from 'angular2/src/facade/lang';
|
||||
import {List, ListWrapper} from 'angular2/src/facade/collection';
|
||||
import {GetterFn, SetterFn, MethodFn} from './types';
|
||||
|
||||
@@ -97,6 +97,10 @@ export class ReflectionCapabilities {
|
||||
return [];
|
||||
}
|
||||
|
||||
interfaces(type): List<any> {
|
||||
throw new BaseException("JavaScript does not support interfaces");
|
||||
}
|
||||
|
||||
getter(name: string): GetterFn { return new Function('o', 'return o.' + name + ';'); }
|
||||
|
||||
setter(name: string): SetterFn { return new Function('o', 'v', 'return o.' + name + ' = v;'); }
|
||||
|
||||
Reference in New Issue
Block a user