Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(669)

Side by Side Diff: runtime/lib/mirrors_impl.dart

Issue 921163004: Add LibraryDependencyMirror.isDeferred. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: sync + year fix Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/lib/mirrors.cc ('k') | sdk/lib/mirrors/mirrors.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « runtime/lib/mirrors.cc ('k') | sdk/lib/mirrors/mirrors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698