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

Side by Side Diff: pkg/polymer_expressions/lib/src/mirrors.dart

Issue 23874018: add enumerate to the default filter set (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 library polymer_expressions.mirrors; 5 library polymer_expressions.src.mirrors;
6 6
7 import 'dart:mirrors'; 7 import 'dart:mirrors';
8 8
9 /** 9 /**
10 * Walks up the class hierarchy to find a method declaration with the given 10 * Walks up the class hierarchy to find a method declaration with the given
11 * [name]. 11 * [name].
12 * 12 *
13 * Note that it's not possible to tell if there's an implementation via 13 * Note that it's not possible to tell if there's an implementation via
14 * noSuchMethod(). 14 * noSuchMethod().
15 */ 15 */
(...skipping 17 matching lines...) Expand all
33 } 33 }
34 34
35 /** 35 /**
36 * Work-around for http://dartbug.com/5794 36 * Work-around for http://dartbug.com/5794
37 */ 37 */
38 bool hasSuperclass(ClassMirror classMirror) { 38 bool hasSuperclass(ClassMirror classMirror) {
39 var superclass = classMirror.superclass; 39 var superclass = classMirror.superclass;
40 return (superclass != null) && 40 return (superclass != null) &&
41 (superclass.qualifiedName != const Symbol('dart.core.Object')); 41 (superclass.qualifiedName != const Symbol('dart.core.Object'));
42 } 42 }
OLDNEW
« no previous file with comments | « pkg/polymer_expressions/lib/src/globals.dart ('k') | pkg/polymer_expressions/test/globals_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698