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

Unified Diff: pkg/glob/lib/src/ast.dart

Issue 603713002: Fix analyzer warnings in pkg/glob. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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
« no previous file with comments | « pkg/glob/CHANGELOG.md ('k') | pkg/glob/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/glob/lib/src/ast.dart
diff --git a/pkg/glob/lib/src/ast.dart b/pkg/glob/lib/src/ast.dart
index 380aa5164b4e08c22b4001c6aecb580ffac203dc..dbb76e664c746009168c74fc78ebe50d75329aef 100644
--- a/pkg/glob/lib/src/ast.dart
+++ b/pkg/glob/lib/src/ast.dart
@@ -298,8 +298,8 @@ class RangeNode extends AstNode {
bool operator==(Object other) {
if (other is! RangeNode) return false;
- if (other.negated != negated) return false;
- return const SetEquality().equals(ranges, other.ranges);
+ if ((other as RangeNode).negated != negated) return false;
+ return const SetEquality().equals(ranges, (other as RangeNode).ranges);
}
int get hashCode => (negated ? 1 : 3) * const SetEquality().hash(ranges);
« no previous file with comments | « pkg/glob/CHANGELOG.md ('k') | pkg/glob/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698