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

Unified Diff: pkg/compiler/lib/src/kernel/kernel.dart

Issue 2466393002: Change to <- for types.
Patch Set: Fixes. Created 4 years, 1 month 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/compiler/lib/src/kernel/kernel.dart
diff --git a/pkg/compiler/lib/src/kernel/kernel.dart b/pkg/compiler/lib/src/kernel/kernel.dart
index 35ff9ea49490cf6ea642f34166ab4706265ddc42..d82486f0619505d43f9be37b0d4381ae3a9225ac 100644
--- a/pkg/compiler/lib/src/kernel/kernel.dart
+++ b/pkg/compiler/lib/src/kernel/kernel.dart
@@ -33,11 +33,9 @@ import '../elements/modelx.dart' show ErroneousFieldElementX;
import '../tree/tree.dart' show FunctionExpression, Node;
import 'kernel_visitor.dart' show IrFunction, KernelVisitor;
-typedef void WorkAction();
-
class WorkItem {
final Element element;
- final WorkAction action;
+ final void <- () action;
WorkItem(this.element, this.action);
}
@@ -78,7 +76,7 @@ class Kernel {
Kernel(this.compiler);
- void addWork(Element element, WorkAction action) {
+ void addWork(Element element, void <- () action) {
workQueue.addLast(new WorkItem(element, action));
}
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/runtime_type_generator.dart ('k') | pkg/compiler/lib/src/library_loader.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698