OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 library dart._js_mirrors; | 5 library dart._js_mirrors; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 import 'dart:collection' show | 9 import 'dart:collection' show |
10 UnmodifiableListView; | 10 UnmodifiableListView; |
(...skipping 1988 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1999 return reflect( | 1999 return reflect( |
2000 Function.apply(reflectee, positionalArguments, namedArguments)); | 2000 Function.apply(reflectee, positionalArguments, namedArguments)); |
2001 } | 2001 } |
2002 | 2002 |
2003 String toString() => "ClosureMirror on '${Error.safeToString(reflectee)}'"; | 2003 String toString() => "ClosureMirror on '${Error.safeToString(reflectee)}'"; |
2004 | 2004 |
2005 // TODO(ahe): Implement this method. | 2005 // TODO(ahe): Implement this method. |
2006 String get source => throw new UnimplementedError(); | 2006 String get source => throw new UnimplementedError(); |
2007 | 2007 |
2008 // TODO(ahe): Implement this method. | 2008 // TODO(ahe): Implement this method. |
2009 InstanceMirror findInContext(Symbol name) { | 2009 InstanceMirror findInContext(Symbol name, {ifAbsent: null}) { |
2010 throw new UnsupportedError("ClosureMirror.findInContext not yet supported"); | 2010 throw new UnsupportedError("ClosureMirror.findInContext not yet supported"); |
2011 } | 2011 } |
2012 | 2012 |
2013 // TODO(ahe): Implement this method. | 2013 // TODO(ahe): Implement this method. |
2014 Function operator [](Symbol name) => throw new UnimplementedError(); | 2014 Function operator [](Symbol name) => throw new UnimplementedError(); |
2015 } | 2015 } |
2016 | 2016 |
2017 class JsMethodMirror extends JsDeclarationMirror implements MethodMirror { | 2017 class JsMethodMirror extends JsDeclarationMirror implements MethodMirror { |
2018 final _jsFunction; | 2018 final _jsFunction; |
2019 final int _parameterCount; | 2019 final int _parameterCount; |
(...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2666 void operator []=(K key, V value) => _throw(); | 2666 void operator []=(K key, V value) => _throw(); |
2667 | 2667 |
2668 V putIfAbsent(K key, V ifAbsent()) { _throw(); } | 2668 V putIfAbsent(K key, V ifAbsent()) { _throw(); } |
2669 | 2669 |
2670 void addAll(Map<K, V> other) => _throw(); | 2670 void addAll(Map<K, V> other) => _throw(); |
2671 | 2671 |
2672 V remove(K key) { _throw(); } | 2672 V remove(K key) { _throw(); } |
2673 | 2673 |
2674 void clear() => _throw(); | 2674 void clear() => _throw(); |
2675 } | 2675 } |
OLD | NEW |