| 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 import '../mirrors.dart'; | 5 import '../mirrors.dart'; |
| 6 import 'encoding_constants.dart' as constants; | 6 import 'encoding_constants.dart' as constants; |
| 7 import '../capability.dart'; | 7 import '../capability.dart'; |
| 8 export 'dart:collection' show UnmodifiableMapView, UnmodifiableListView; | 8 export 'dart:collection' show UnmodifiableMapView, UnmodifiableListView; |
| 9 export '../capability.dart'; | 9 export '../capability.dart'; |
| 10 export '../static_reflectable.dart'; | 10 export '../static_reflectable.dart'; |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 @override | 173 @override |
| 174 final DeclarationMirror owner; | 174 final DeclarationMirror owner; |
| 175 | 175 |
| 176 const MethodMirrorImpl(this.name, this.descriptor, this.owner); | 176 const MethodMirrorImpl(this.name, this.descriptor, this.owner); |
| 177 | 177 |
| 178 int get kind => constants.kindFromEncoding(descriptor); | 178 int get kind => constants.kindFromEncoding(descriptor); |
| 179 | 179 |
| 180 @override | 180 @override |
| 181 String get constructorName => name; | 181 String get constructorName => name; |
| 182 | 182 |
| 183 // We do not support reflection on abstract methods. |
| 183 @override | 184 @override |
| 184 bool get isAbstract => 0 != descriptor & constants.abstractAttribute; | 185 bool get isAbstract => 0 != descriptor & constants.abstractAttribute; |
| 185 | 186 |
| 186 @override | 187 @override |
| 187 bool get isConstConstructor => 0 != descriptor & constants.constAttribute; | 188 bool get isConstConstructor => 0 != descriptor & constants.constAttribute; |
| 188 | 189 |
| 189 @override | 190 @override |
| 190 bool get isConstructor => isFactoryConstructor || isGenerativeConstructor; | 191 bool get isConstructor => isFactoryConstructor || isGenerativeConstructor; |
| 191 | 192 |
| 192 @override | 193 @override |
| 193 bool get isFactoryConstructor => kind == constants.factoryConstructor; | 194 bool get isFactoryConstructor => kind == constants.factoryConstructor; |
| 194 | 195 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 bool get isNamed => _unsupported(); | 270 bool get isNamed => _unsupported(); |
| 270 bool get hasDefaultValue => _unsupported(); | 271 bool get hasDefaultValue => _unsupported(); |
| 271 Object get defaultValue => _unsupported(); | 272 Object get defaultValue => _unsupported(); |
| 272 } | 273 } |
| 273 | 274 |
| 274 abstract class SourceLocationUnimpl { | 275 abstract class SourceLocationUnimpl { |
| 275 int get line => _unsupported(); | 276 int get line => _unsupported(); |
| 276 int get column => _unsupported(); | 277 int get column => _unsupported(); |
| 277 Uri get sourceUri => _unsupported(); | 278 Uri get sourceUri => _unsupported(); |
| 278 } | 279 } |
| OLD | NEW |