OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 // VM-specific implementation of the dart:mirrors library. | 5 // VM-specific implementation of the dart:mirrors library. |
6 | 6 |
7 import "dart:collection" show UnmodifiableListView, UnmodifiableMapView; | 7 import "dart:collection" show UnmodifiableListView, UnmodifiableMapView; |
8 | 8 |
9 final emptyList = new UnmodifiableListView([]); | 9 final emptyList = new UnmodifiableListView([]); |
10 final emptyMap = new UnmodifiableMapView({}); | 10 final emptyMap = new UnmodifiableMapView({}); |
(...skipping 1309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1320 native "LibraryMirror_members"; | 1320 native "LibraryMirror_members"; |
1321 } | 1321 } |
1322 | 1322 |
1323 class _LocalLibraryDependencyMirror | 1323 class _LocalLibraryDependencyMirror |
1324 extends _LocalMirror implements LibraryDependencyMirror { | 1324 extends _LocalMirror implements LibraryDependencyMirror { |
1325 final LibraryMirror sourceLibrary; | 1325 final LibraryMirror sourceLibrary; |
1326 final LibraryMirror targetLibrary; | 1326 final LibraryMirror targetLibrary; |
1327 final List<CombinatorMirror> combinators; | 1327 final List<CombinatorMirror> combinators; |
1328 final Symbol prefix; | 1328 final Symbol prefix; |
1329 final bool isImport; | 1329 final bool isImport; |
| 1330 final bool isDeferred; |
1330 final List<InstanceMirror> metadata; | 1331 final List<InstanceMirror> metadata; |
1331 | 1332 |
1332 _LocalLibraryDependencyMirror(this.sourceLibrary, | 1333 _LocalLibraryDependencyMirror(this.sourceLibrary, |
1333 this.targetLibrary, | 1334 this.targetLibrary, |
1334 this.combinators, | 1335 this.combinators, |
1335 prefixString, | 1336 prefixString, |
1336 this.isImport, | 1337 this.isImport, |
| 1338 this.isDeferred, |
1337 unwrappedMetadata) | 1339 unwrappedMetadata) |
1338 : prefix = _s(prefixString), | 1340 : prefix = _s(prefixString), |
1339 metadata = new UnmodifiableListView(unwrappedMetadata.map(reflect)); | 1341 metadata = new UnmodifiableListView(unwrappedMetadata.map(reflect)); |
1340 | 1342 |
1341 bool get isExport => !isImport; | 1343 bool get isExport => !isImport; |
1342 } | 1344 } |
1343 | 1345 |
1344 class _LocalCombinatorMirror extends _LocalMirror implements CombinatorMirror { | 1346 class _LocalCombinatorMirror extends _LocalMirror implements CombinatorMirror { |
1345 final List<Symbol> identifiers; | 1347 final List<Symbol> identifiers; |
1346 final bool isShow; | 1348 final bool isShow; |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1684 if (typeMirror == null) { | 1686 if (typeMirror == null) { |
1685 typeMirror = makeLocalTypeMirror(key); | 1687 typeMirror = makeLocalTypeMirror(key); |
1686 _instanitationCache[key] = typeMirror; | 1688 _instanitationCache[key] = typeMirror; |
1687 if (typeMirror is ClassMirror && !typeMirror._isGeneric) { | 1689 if (typeMirror is ClassMirror && !typeMirror._isGeneric) { |
1688 _declarationCache[key] = typeMirror; | 1690 _declarationCache[key] = typeMirror; |
1689 } | 1691 } |
1690 } | 1692 } |
1691 return typeMirror; | 1693 return typeMirror; |
1692 } | 1694 } |
1693 } | 1695 } |
OLD | NEW |