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

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

Issue 23190003: ClassMirror.mixin (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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
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 // 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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 * library 'library' is 'library.Class.method'. 211 * library 'library' is 'library.Class.method'.
212 * 212 *
213 * Returns a [Symbol] constructed from a string representing the 213 * Returns a [Symbol] constructed from a string representing the
214 * fully qualified name of the reflectee. 214 * fully qualified name of the reflectee.
215 * Let *o* be the [owner] of this mirror, let *r* be the reflectee of 215 * Let *o* be the [owner] of this mirror, let *r* be the reflectee of
216 * this mirror, let *p* be the fully qualified 216 * this mirror, let *p* be the fully qualified
217 * name of the reflectee of *o*, and let *s* be the simple name of *r* 217 * name of the reflectee of *o*, and let *s* be the simple name of *r*
218 * computed by [simpleName]. 218 * computed by [simpleName].
219 * The fully qualified name of *r* is the 219 * The fully qualified name of *r* is the
220 * concatenation of *p*, '.', and *s*. 220 * concatenation of *p*, '.', and *s*.
221 *
222 * Because an isolate can contain more than one library with the same name (at
223 * different URIs), a fully-qualified name does not uniquely identify any
224 * language entity.
221 */ 225 */
222 Symbol get qualifiedName; 226 Symbol get qualifiedName;
223 227
224 /** 228 /**
225 * A mirror on the owner of this function. This is the declaration 229 * A mirror on the owner of this Dart language entity. This is the declaration
226 * immediately surrounding the reflectee. 230 * immediately surrounding the reflectee.
227 * 231 *
228 * For a library, the owner is [:null:]. 232 * For a library, the owner is [:null:].
229 * For a class declaration, typedef or top level function 233 * For a class declaration, typedef or top level function
230 * or variable, the owner is the enclosing library. 234 * or variable, the owner is the enclosing library.
231 * For a mixin application *S with M*, the owner is the owner 235 * For a mixin application *S with M*, the owner is the owner
232 * of *M*. 236 * of *M*.
233 * For class Null, the owner is the dart:core library. 237 * For class Null, the owner is the dart:core library.
234 * For a constructor, the owner is the immediately enclosing class. 238 * For a constructor, the owner is the immediately enclosing class.
235 * For a method, instance variable or 239 * For a method, instance variable or
(...skipping 1070 matching lines...) Expand 10 before | Expand all | Expand 10 after
1306 * 1310 *
1307 * When used as metadata on an import of "dart:mirrors", this metadata does 1311 * When used as metadata on an import of "dart:mirrors", this metadata does
1308 * not apply to the library in which the annotation is used, but instead 1312 * not apply to the library in which the annotation is used, but instead
1309 * applies to the other libraries (all libraries if "*" is used). 1313 * applies to the other libraries (all libraries if "*" is used).
1310 */ 1314 */
1311 final override; 1315 final override;
1312 1316
1313 const MirrorsUsed( 1317 const MirrorsUsed(
1314 {this.symbols, this.targets, this.metaTargets, this.override}); 1318 {this.symbols, this.targets, this.metaTargets, this.override});
1315 } 1319 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698