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

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

Issue 392983006: Specifiy MethodMirror.isStatic is terms of whether 'this' is permitted. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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') | tests/lib/mirrors/local_function_is_static_test.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) 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 882 matching lines...) Expand 10 before | Expand all | Expand 10 after
893 * The source code for the reflectee, if available. Otherwise null. 893 * The source code for the reflectee, if available. Otherwise null.
894 */ 894 */
895 String get source; 895 String get source;
896 896
897 /** 897 /**
898 * A list of mirrors on the parameters for the reflectee. 898 * A list of mirrors on the parameters for the reflectee.
899 */ 899 */
900 List<ParameterMirror> get parameters; 900 List<ParameterMirror> get parameters;
901 901
902 /** 902 /**
903 * Is the reflectee static? 903 * A method is that is top-level or a static member of a class is considered
904 * static. All other methods are considered non-static.
904 * 905 *
905 * For the purposes of the mirrors library, a top-level function is 906 * Note that generative constructors are non-static, whereas factory
906 * considered static. 907 * constructors are static.
gbracha 2014/07/16 21:01:33 "A function" rather than a "A method" would be bet
907 */ 908 */
908 bool get isStatic; 909 bool get isStatic;
909 910
910 /** 911 /**
911 * Is the reflectee abstract? 912 * Is the reflectee abstract?
912 */ 913 */
913 bool get isAbstract; 914 bool get isAbstract;
914 915
915 /** 916 /**
916 * Returns true if the reflectee is synthetic, and returns false otherwise. 917 * Returns true if the reflectee is synthetic, and returns false otherwise.
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
1214 * 1215 *
1215 * When used as metadata on an import of "dart:mirrors", this metadata does 1216 * When used as metadata on an import of "dart:mirrors", this metadata does
1216 * not apply to the library in which the annotation is used, but instead 1217 * not apply to the library in which the annotation is used, but instead
1217 * applies to the other libraries (all libraries if "*" is used). 1218 * applies to the other libraries (all libraries if "*" is used).
1218 */ 1219 */
1219 final override; 1220 final override;
1220 1221
1221 const MirrorsUsed( 1222 const MirrorsUsed(
1222 {this.symbols, this.targets, this.metaTargets, this.override}); 1223 {this.symbols, this.targets, this.metaTargets, this.override});
1223 } 1224 }
OLDNEW
« no previous file with comments | « runtime/lib/mirrors.cc ('k') | tests/lib/mirrors/local_function_is_static_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698