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

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

Issue 11138013: Revert "dart2js_mirrors_test added" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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 | « lib/compiler/implementation/lib/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) 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 // The dart:mirrors library provides reflective access for Dart program. 5 // The dart:mirrors library provides reflective access for Dart program.
6 // 6 //
7 // For the purposes of the mirrors library, we adopt a naming 7 // For the purposes of the mirrors library, we adopt a naming
8 // convention with respect to getters and setters. Specifically, for 8 // convention with respect to getters and setters. Specifically, for
9 // some variable or field... 9 // some variable or field...
10 // 10 //
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 /** 49 /**
50 * A mirror on the [:void:] type. 50 * A mirror on the [:void:] type.
51 */ 51 */
52 TypeMirror get voidType; 52 TypeMirror get voidType;
53 } 53 }
54 54
55 /** 55 /**
56 * Returns a [MirrorSystem] for the current isolate. 56 * Returns a [MirrorSystem] for the current isolate.
57 */ 57 */
58 // TODO(johnniwinther): Implement this as an external function.
59 MirrorSystem currentMirrorSystem() { 58 MirrorSystem currentMirrorSystem() {
60 return _Mirrors.currentMirrorSystem(); 59 return _Mirrors.currentMirrorSystem();
61 } 60 }
62 61
63 /** 62 /**
64 * Creates a [MirrorSystem] for the isolate which is listening on 63 * Creates a [MirrorSystem] for the isolate which is listening on
65 * the [SendPort]. 64 * the [SendPort].
66 */ 65 */
67 // TODO(johnniwinther): Implement this as an external function.
68 Future<MirrorSystem> mirrorSystemOf(SendPort port) { 66 Future<MirrorSystem> mirrorSystemOf(SendPort port) {
69 return _Mirrors.mirrorSystemOf(port); 67 return _Mirrors.mirrorSystemOf(port);
70 } 68 }
71 69
72 /** 70 /**
73 * Returns an [InstanceMirror] for some Dart language object. 71 * Returns an [InstanceMirror] for some Dart language object.
74 * 72 *
75 * This only works if this mirror system is associated with the 73 * This only works if this mirror system is associated with the
76 * current running isolate. 74 * current running isolate.
77 */ 75 */
78 // TODO(johnniwinther): Implement this as an external function.
79 InstanceMirror reflect(Object reflectee) { 76 InstanceMirror reflect(Object reflectee) {
80 return _Mirrors.reflect(reflectee); 77 return _Mirrors.reflect(reflectee);
81 } 78 }
82 79
83 /** 80 /**
84 * A [Mirror] reflects some Dart language entity. 81 * A [Mirror] reflects some Dart language entity.
85 * 82 *
86 * Every [Mirror] originates from some [MirrorSystem]. 83 * Every [Mirror] originates from some [MirrorSystem].
87 */ 84 */
88 abstract class Mirror { 85 abstract class Mirror {
(...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 736
740 /** 737 /**
741 * A [MirrorException] is used to indicate errors within the mirrors 738 * A [MirrorException] is used to indicate errors within the mirrors
742 * framework. 739 * framework.
743 */ 740 */
744 class MirrorException implements Exception { 741 class MirrorException implements Exception {
745 const MirrorException(String this._message); 742 const MirrorException(String this._message);
746 String toString() => "MirrorException: '$_message'"; 743 String toString() => "MirrorException: '$_message'";
747 final String _message; 744 final String _message;
748 } 745 }
OLDNEW
« no previous file with comments | « lib/compiler/implementation/lib/mirrors.dart ('k') | tests/lib/lib.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698