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

Unified Diff: pkg/dartdoc/lib/mirrors_util.dart

Issue 11339056: Cleanup run on DartDoc from Dart Editor. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
Index: pkg/dartdoc/lib/mirrors_util.dart
diff --git a/pkg/dartdoc/lib/mirrors_util.dart b/pkg/dartdoc/lib/mirrors_util.dart
index 69f71087b8f78cd6b081571a77ce274ea0801ca1..1c2f53afb4a6fffc93a056de747e7e8e1128cf2c 100644
--- a/pkg/dartdoc/lib/mirrors_util.dart
+++ b/pkg/dartdoc/lib/mirrors_util.dart
@@ -2,11 +2,11 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-#library('mirrors.util');
+library mirrors_util;
// TODO(rnystrom): Use "package:" URL (#4968).
-#import('mirrors.dart');
-#import('../../../lib/compiler/implementation/util/characters.dart');
+import 'mirrors.dart';
+import '../../../lib/compiler/implementation/util/characters.dart';
//------------------------------------------------------------------------------
// Utility functions for using the Mirror API
@@ -22,9 +22,9 @@ Iterable<ClassMirror> computeSubdeclarations(ClassMirror type) {
type.system.libraries.forEach((_, library) {
for (ClassMirror otherType in library.classes.values) {
var superClass = otherType.superclass;
- if (superClass !== null) {
+ if (superClass != null) {
superClass = superClass.originalDeclaration;
- if (type.library === superClass.library) {
+ if (type.library == superClass.library) {
if (superClass == type) {
subtypes.add(otherType);
}
@@ -33,7 +33,7 @@ Iterable<ClassMirror> computeSubdeclarations(ClassMirror type) {
final superInterfaces = otherType.superinterfaces;
for (ClassMirror superInterface in superInterfaces) {
superInterface = superInterface.originalDeclaration;
- if (type.library === superInterface.library) {
+ if (type.library == superInterface.library) {
if (superInterface == type) {
subtypes.add(otherType);
}
@@ -106,7 +106,7 @@ class HierarchyIterator implements Iterator<ClassMirror> {
}
ClassMirror push(ClassMirror type) {
- if (type.superclass !== null) {
+ if (type.superclass != null) {
if (type.superclass.isObject) {
object = type.superclass;
} else {
@@ -120,7 +120,7 @@ class HierarchyIterator implements Iterator<ClassMirror> {
ClassMirror next() {
ClassMirror type;
if (queue.isEmpty) {
- if (object === null) {
+ if (object == null) {
throw new StateError("No more elements");
}
type = object;
@@ -131,5 +131,5 @@ class HierarchyIterator implements Iterator<ClassMirror> {
}
}
- bool get hasNext => !queue.isEmpty || object !== null;
+ bool get hasNext => !queue.isEmpty || object != null;
}

Powered by Google App Engine
This is Rietveld 408576698