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

Side by Side Diff: pkg/compiler/lib/src/common/work.dart

Issue 2647043002: Fix hints reported by analyzer. (Closed)
Patch Set: Created 3 years, 11 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
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 dart2js.common.work; 5 library dart2js.common.work;
6 6
7 import '../common.dart'; 7 import '../common.dart';
8 import '../compiler.dart' show Compiler;
9 import '../elements/elements.dart' show AstElement; 8 import '../elements/elements.dart' show AstElement;
10 import '../enqueue.dart' show Enqueuer;
11 import '../universe/world_impact.dart' show WorldImpact; 9 import '../universe/world_impact.dart' show WorldImpact;
12 10
13 abstract class WorkItem { 11 abstract class WorkItem {
14 /// Element on which the work will be done. 12 /// Element on which the work will be done.
15 final AstElement element; 13 final AstElement element;
16 14
17 WorkItem(this.element) { 15 WorkItem(this.element) {
18 assert(invariant(element, element.isDeclaration)); 16 assert(invariant(element, element.isDeclaration));
19 } 17 }
20 18
21 WorldImpact run(); 19 WorldImpact run();
22 } 20 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698