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 import 'dart:collection' show UnmodifiableListView; | 8 import 'dart:collection' show UnmodifiableListView; |
9 import 'dart:mirrors'; | 9 import 'dart:mirrors'; |
10 | 10 |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 new JsLibraryMirror( | 97 new JsLibraryMirror( |
98 s(name), uri, classes, functions, metadata, fields, isRoot)); | 98 s(name), uri, classes, functions, metadata, fields, isRoot)); |
99 } | 99 } |
100 return result; | 100 return result; |
101 } | 101 } |
102 } | 102 } |
103 | 103 |
104 abstract class JsMirror implements Mirror { | 104 abstract class JsMirror implements Mirror { |
105 const JsMirror(); | 105 const JsMirror(); |
106 | 106 |
107 abstract String get _prettyName; | 107 String get _prettyName; |
108 | 108 |
109 String toString() => _prettyName; | 109 String toString() => _prettyName; |
110 | 110 |
111 // TODO(ahe): Remove this method from the API. | 111 // TODO(ahe): Remove this method from the API. |
112 MirrorSystem get mirrors => currentJsMirrorSystem; | 112 MirrorSystem get mirrors => currentJsMirrorSystem; |
113 | 113 |
114 _getField(JsMirror receiver) { | 114 _getField(JsMirror receiver) { |
115 throw new UnimplementedError(); | 115 throw new UnimplementedError(); |
116 } | 116 } |
117 | 117 |
(...skipping 1401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1519 void operator []=(K key, V value) => _throw(); | 1519 void operator []=(K key, V value) => _throw(); |
1520 | 1520 |
1521 V putIfAbsent(K key, V ifAbsent()) { _throw(); } | 1521 V putIfAbsent(K key, V ifAbsent()) { _throw(); } |
1522 | 1522 |
1523 void addAll(Map<K, V> other) => _throw(); | 1523 void addAll(Map<K, V> other) => _throw(); |
1524 | 1524 |
1525 V remove(K key) { _throw(); } | 1525 V remove(K key) { _throw(); } |
1526 | 1526 |
1527 void clear() => _throw(); | 1527 void clear() => _throw(); |
1528 } | 1528 } |
OLD | NEW |