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

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

Issue 11624011: Mirrors implemented via patches. 2nd try. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased Created 8 years 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 | « no previous file | runtime/lib/mirrors_sources.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 /**
6 * Returns a [MirrorSystem] for the current isolate.
7 */
8 patch MirrorSystem currentMirrorSystem() {
9 return _Mirrors.currentMirrorSystem();
10 }
11
12 /**
13 * Creates a [MirrorSystem] for the isolate which is listening on
14 * the [SendPort].
15 */
16 patch Future<MirrorSystem> mirrorSystemOf(SendPort port) {
17 return _Mirrors.mirrorSystemOf(port);
18 }
19
20 /**
21 * Returns an [InstanceMirror] for some Dart language object.
22 *
23 * This only works if this mirror system is associated with the
24 * current running isolate.
25 */
26 patch InstanceMirror reflect(Object reflectee) {
27 return _Mirrors.reflect(reflectee);
28 }
OLDNEW
« no previous file with comments | « no previous file | runtime/lib/mirrors_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698