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

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

Issue 2439573003: Experiment with new function-type syntax.
Patch Set: Change a few more typedefs. Created 4 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/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..ec1d8344b5fde73ae75e28bd1ff754b682ab6129 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 ConstantValue->jsAst.Expression constantReferenceGenerator;
+ final (jsAst.Expression array) -> jsAst.Expression 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),
+ ConstantValue->jsAst.Expression this.constantReferenceGenerator,
this.makeConstantList);
DiagnosticReporter get reporter => compiler.reporter;

Powered by Google App Engine
This is Rietveld 408576698