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

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

Issue 16101007: Implement LibraryMirror.metadata. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix issues found during testing. Created 7 years, 6 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 * 169 *
170 * This is defined to be equivalent to: 170 * This is defined to be equivalent to:
171 * [:mirror.owner != null && mirror.owner is LibraryMirror:] 171 * [:mirror.owner != null && mirror.owner is LibraryMirror:]
172 */ 172 */
173 bool get isTopLevel; 173 bool get isTopLevel;
174 174
175 /** 175 /**
176 * The source location of this Dart language entity. 176 * The source location of this Dart language entity.
177 */ 177 */
178 SourceLocation get location; 178 SourceLocation get location;
179
180 /**
181 * A list of the metadata associated with this declaration.
182 */
183 List<InstanceMirror> get metadata;
179 } 184 }
180 185
181 /** 186 /**
182 * An [ObjectMirror] is a common superinterface of [InstanceMirror], 187 * An [ObjectMirror] is a common superinterface of [InstanceMirror],
183 * [ClassMirror], and [LibraryMirror] that represents their shared 188 * [ClassMirror], and [LibraryMirror] that represents their shared
184 * functionality. 189 * functionality.
185 * 190 *
186 * For the purposes of the mirrors library, these types are all 191 * For the purposes of the mirrors library, these types are all
187 * object-like, in that they support method invocation and field 192 * object-like, in that they support method invocation and field
188 * access. Real Dart objects are represented by the [InstanceMirror] 193 * access. Real Dart objects are represented by the [InstanceMirror]
(...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after
826 /** 831 /**
827 * Is [:true:] if this comment is a documentation comment. 832 * Is [:true:] if this comment is a documentation comment.
828 * 833 *
829 * That is, that the comment is either enclosed in [: /** ... */ :] or starts 834 * That is, that the comment is either enclosed in [: /** ... */ :] or starts
830 * with [: /// :]. 835 * with [: /// :].
831 */ 836 */
832 final bool isDocComment; 837 final bool isDocComment;
833 838
834 const Comment(this.text, this.trimmedText, this.isDocComment); 839 const Comment(this.text, this.trimmedText, this.isDocComment);
835 } 840 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698