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

Unified Diff: pkg/compiler/lib/src/js_backend/constant_emitter.dart

Issue 2482923002: Use `Function` as function type syntax.
Patch Set: 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/js_backend/constant_emitter.dart
diff --git a/pkg/compiler/lib/src/js_backend/constant_emitter.dart b/pkg/compiler/lib/src/js_backend/constant_emitter.dart
index 31bcccb9c0971aedf79d8526944f2af21ce27a68..531a376e111dc0c153b23062d4ae2b14a43a8e5f 100644
--- a/pkg/compiler/lib/src/js_backend/constant_emitter.dart
+++ b/pkg/compiler/lib/src/js_backend/constant_emitter.dart
@@ -33,8 +33,8 @@ class ConstantEmitter implements ConstantValueVisitor<jsAst.Expression, Null> {
final Compiler compiler;
final Namer namer;
- final _ConstantReferenceGenerator constantReferenceGenerator;
- final _ConstantListGenerator makeConstantList;
+ final jsAst.Expression Function(ConstantValue) constantReferenceGenerator;
+ final jsAst.Expression Function(jsAst.Expression array) makeConstantList;
/**
* The given [constantReferenceGenerator] function must, when invoked with a
@@ -44,7 +44,7 @@ class ConstantEmitter implements ConstantValueVisitor<jsAst.Expression, Null> {
ConstantEmitter(
this.compiler,
this.namer,
- jsAst.Expression this.constantReferenceGenerator(ConstantValue constant),
+ jsAst.Expression Function(ConstantValue) this.constantReferenceGenerator,
this.makeConstantList);
DiagnosticReporter get reporter => compiler.reporter;
« no previous file with comments | « pkg/compiler/lib/src/helpers/trace.dart ('k') | pkg/compiler/lib/src/js_emitter/full_emitter/declarations.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698