| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |