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

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

Issue 1181993003: Add support for getters, setters and constructors in declarations of classMirrors. (Closed) Base URL: https://github.com/dart-lang/reflectable.git@master
Patch Set: Reintroduce abstract members in declarations Created 5 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
« no previous file with comments | « no previous file | reflectable/lib/src/encoding_constants.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) 2015, the Dart Team. All rights reserved. Use of this 1 // Copyright (c) 2015, the Dart Team. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in 2 // source code is governed by a BSD-style license that can be found in
3 // the LICENSE file. 3 // the LICENSE file.
4 4
5 // This file defines the same types as sdk/lib/mirrors/mirrors.dart, in 5 // This file defines the same types as sdk/lib/mirrors/mirrors.dart, in
6 // order to enable code using [dart:mirrors] to switch to using 6 // order to enable code using [dart:mirrors] to switch to using
7 // [Reflectable] based mirrors with the smallest possible change. 7 // [Reflectable] based mirrors with the smallest possible change.
8 // The changes are discussed below, under headings on the form 8 // The changes are discussed below, under headings on the form
9 // 'API Change: ..'. 9 // 'API Change: ..'.
10 10
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 286
287 // Possible ARG: Type. 287 // Possible ARG: Type.
288 // Input from Gilad on isSubtypeOf is also relevant for this case. 288 // Input from Gilad on isSubtypeOf is also relevant for this case.
289 bool isAssignableTo(TypeMirror other); 289 bool isAssignableTo(TypeMirror other);
290 } 290 }
291 291
292 abstract class ClassMirror implements TypeMirror, ObjectMirror { 292 abstract class ClassMirror implements TypeMirror, ObjectMirror {
293 ClassMirror get superclass; 293 ClassMirror get superclass;
294 List<ClassMirror> get superinterfaces; 294 List<ClassMirror> get superinterfaces;
295 bool get isAbstract; 295 bool get isAbstract;
296 // The non-abstract members declared in this class.
296 Map<String, DeclarationMirror> get declarations; 297 Map<String, DeclarationMirror> get declarations;
297 Map<String, MethodMirror> get instanceMembers; 298 Map<String, MethodMirror> get instanceMembers;
298 Map<String, MethodMirror> get staticMembers; 299 Map<String, MethodMirror> get staticMembers;
299 ClassMirror get mixin; 300 ClassMirror get mixin;
300 301
301 /** 302 /**
302 * Invokes the named constructor and returns a mirror on the result. 303 * Invokes the named constructor and returns a mirror on the result.
303 * 304 *
304 * Let *c* be the class reflected by this mirror 305 * Let *c* be the class reflected by this mirror
305 * let *a1, ..., an* be the elements of [positionalArguments] 306 * let *a1, ..., an* be the elements of [positionalArguments]
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 int get column; 402 int get column;
402 Uri get sourceUri; 403 Uri get sourceUri;
403 } 404 }
404 405
405 class Comment { 406 class Comment {
406 final String text; 407 final String text;
407 final String trimmedText; 408 final String trimmedText;
408 final bool isDocComment; 409 final bool isDocComment;
409 const Comment(this.text, this.trimmedText, this.isDocComment); 410 const Comment(this.text, this.trimmedText, this.isDocComment);
410 } 411 }
OLDNEW
« no previous file with comments | « no previous file | reflectable/lib/src/encoding_constants.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698