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

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

Issue 1311613005: Add ParameterMirror.isInitializingFormal to dart:mirrors Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « sdk/lib/_internal/js_runtime/lib/js_mirrors.dart ('k') | tests/lib/mirrors/parameter_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 1091 matching lines...) Expand 10 before | Expand all | Expand 10 after
1102 /** 1102 /**
1103 * A [ParameterMirror] reflects a Dart formal parameter declaration. 1103 * A [ParameterMirror] reflects a Dart formal parameter declaration.
1104 */ 1104 */
1105 abstract class ParameterMirror implements VariableMirror { 1105 abstract class ParameterMirror implements VariableMirror {
1106 /** 1106 /**
1107 * A mirror on the type of this parameter. 1107 * A mirror on the type of this parameter.
1108 */ 1108 */
1109 TypeMirror get type; 1109 TypeMirror get type;
1110 1110
1111 /** 1111 /**
1112 * Returns [:true:] if the reflectee is an parameter of a constructor
1113 * that instantiates a field. Otherwise returns [:false:].
1114 */
1115 bool get isInitializingFormal;
1116
1117 /**
1112 * Returns [:true:] if the reflectee is an optional parameter. 1118 * Returns [:true:] if the reflectee is an optional parameter.
1113 * Otherwise returns [:false:]. 1119 * Otherwise returns [:false:].
1114 */ 1120 */
1115 bool get isOptional; 1121 bool get isOptional;
1116 1122
1117 /** 1123 /**
1118 * Returns [:true:] if the reflectee is a named parameter. 1124 * Returns [:true:] if the reflectee is a named parameter.
1119 * Otherwise returns [:false:]. 1125 * Otherwise returns [:false:].
1120 */ 1126 */
1121 bool get isNamed; 1127 bool get isNamed;
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
1430 final override; 1436 final override;
1431 1437
1432 /** 1438 /**
1433 * See the documentation for [MirrorsUsed.symbols], [MirrorsUsed.targets], 1439 * See the documentation for [MirrorsUsed.symbols], [MirrorsUsed.targets],
1434 * [MirrorsUsed.metaTargets] and [MirrorsUsed.override] for documentation 1440 * [MirrorsUsed.metaTargets] and [MirrorsUsed.override] for documentation
1435 * of the parameters. 1441 * of the parameters.
1436 */ 1442 */
1437 const MirrorsUsed( 1443 const MirrorsUsed(
1438 {this.symbols, this.targets, this.metaTargets, this.override}); 1444 {this.symbols, this.targets, this.metaTargets, this.override});
1439 } 1445 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/js_runtime/lib/js_mirrors.dart ('k') | tests/lib/mirrors/parameter_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698