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

Side by Side Diff: reflectable/lib/src/mirrors_unimpl.dart

Issue 1182083002: Implement `.instanceMembers`. (Closed) Base URL: https://github.com/dart-lang/reflectable.git@master
Patch Set: Rebase 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/transformer_implementation.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 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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | reflectable/lib/src/transformer_implementation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698