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

Side by Side Diff: sdk/lib/mirrors/mirrors.dart

Issue 164823006: Remove LibraryMirror.topLevelMembers. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: sync Created 6 years, 9 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 | « sdk/lib/_internal/lib/js_mirrors.dart ('k') | tests/lib/lib.status » ('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) 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 // For the purposes of the mirrors library, we adopt a naming 5 // For the purposes of the mirrors library, we adopt a naming
6 // convention with respect to getters and setters. Specifically, for 6 // convention with respect to getters and setters. Specifically, for
7 // some variable or field... 7 // some variable or field...
8 // 8 //
9 // var myField; 9 // var myField;
10 // 10 //
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 /** 566 /**
567 * Returns an immutable map of the declarations actually given in the library. 567 * Returns an immutable map of the declarations actually given in the library.
568 * 568 *
569 * This map includes all regular methods, getters, setters, fields, classes 569 * This map includes all regular methods, getters, setters, fields, classes
570 * and typedefs actually declared in the library. The map is keyed by the 570 * and typedefs actually declared in the library. The map is keyed by the
571 * simple names of the declarations. 571 * simple names of the declarations.
572 */ 572 */
573 Map<Symbol, DeclarationMirror> get declarations; 573 Map<Symbol, DeclarationMirror> get declarations;
574 574
575 /** 575 /**
576 * Returns a map of the top-level methods, getters and setters of the library.
577 *
578 * The intent is to capture those members that constitute the API of a
579 * library. Hence fields are not included, but the getters and setters
580 * implicitly introduced by fields are included. Synthetic getters for the
581 * types exported by the library are also included.
582 *
583 * The map is keyed by the simple names of the members.
584 */
585 Map<Symbol, MethodMirror> get topLevelMembers;
586
587 /**
588 * Returns [:true:] if this mirror is equal to [other]. 576 * Returns [:true:] if this mirror is equal to [other].
589 * Otherwise returns [:false:]. 577 * Otherwise returns [:false:].
590 * 578 *
591 * The equality holds if and only if 579 * The equality holds if and only if
592 * (1) [other] is a mirror of the same kind 580 * (1) [other] is a mirror of the same kind
593 * and 581 * and
594 * (2) The library being reflected by this mirror 582 * (2) The library being reflected by this mirror
595 * and the library being reflected by [other] 583 * and the library being reflected by [other]
596 * are 584 * are
597 * the same library in the same isolate. 585 * the same library in the same isolate.
(...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after
1230 * 1218 *
1231 * When used as metadata on an import of "dart:mirrors", this metadata does 1219 * When used as metadata on an import of "dart:mirrors", this metadata does
1232 * not apply to the library in which the annotation is used, but instead 1220 * not apply to the library in which the annotation is used, but instead
1233 * applies to the other libraries (all libraries if "*" is used). 1221 * applies to the other libraries (all libraries if "*" is used).
1234 */ 1222 */
1235 final override; 1223 final override;
1236 1224
1237 const MirrorsUsed( 1225 const MirrorsUsed(
1238 {this.symbols, this.targets, this.metaTargets, this.override}); 1226 {this.symbols, this.targets, this.metaTargets, this.override});
1239 } 1227 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/lib/js_mirrors.dart ('k') | tests/lib/lib.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698