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

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

Issue 23065007: Implement ParameterMirror.{isFinal,hasDefaultValue,defaultValue}. (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
« no previous file with comments | « runtime/vm/parser.cc ('k') | no next file » | 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 // 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 1077 matching lines...) Expand 10 before | Expand all | Expand 10 after
1088 1088
1089 /** 1089 /**
1090 * Returns [:true:] if the reflectee has a default value. 1090 * Returns [:true:] if the reflectee has a default value.
1091 * Otherwise returns [:false:]. 1091 * Otherwise returns [:false:].
1092 */ 1092 */
1093 bool get hasDefaultValue; 1093 bool get hasDefaultValue;
1094 1094
1095 /** 1095 /**
1096 * A mirror on the default value for this parameter, if it exists. 1096 * A mirror on the default value for this parameter, if it exists.
1097 */ 1097 */
1098 // TODO(ahe): This should return an InstanceMirror. 1098 InstanceMirror get defaultValue;
1099 String get defaultValue;
1100 } 1099 }
1101 1100
1102 /** 1101 /**
1103 * A [SourceLocation] describes the span of an entity in Dart source code. 1102 * A [SourceLocation] describes the span of an entity in Dart source code.
1104 */ 1103 */
1105 abstract class SourceLocation { 1104 abstract class SourceLocation {
1106 } 1105 }
1107 1106
1108 /** 1107 /**
1109 * When an error occurs during the mirrored execution of code, a 1108 * When an error occurs during the mirrored execution of code, a
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
1306 * 1305 *
1307 * When used as metadata on an import of "dart:mirrors", this metadata does 1306 * 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 1307 * not apply to the library in which the annotation is used, but instead
1309 * applies to the other libraries (all libraries if "*" is used). 1308 * applies to the other libraries (all libraries if "*" is used).
1310 */ 1309 */
1311 final override; 1310 final override;
1312 1311
1313 const MirrorsUsed( 1312 const MirrorsUsed(
1314 {this.symbols, this.targets, this.metaTargets, this.override}); 1313 {this.symbols, this.targets, this.metaTargets, this.override});
1315 } 1314 }
OLDNEW
« no previous file with comments | « runtime/vm/parser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698