Chromium Code Reviews

Unified Diff: lib/src/closure/closure_annotator.dart

Issue 1484263002: Use destructuring assignments for named parameters (#180) (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Rebased + squashed in 1 commit Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: lib/src/closure/closure_annotator.dart
diff --git a/lib/src/closure/closure_annotator.dart b/lib/src/closure/closure_annotator.dart
index f0a71754c9c9e1f6130e4e4037a7fe05230d2033..104ed14c45baa340fb69a0820eea221bf6e2cee9 100644
--- a/lib/src/closure/closure_annotator.dart
+++ b/lib/src/closure/closure_annotator.dart
@@ -36,6 +36,7 @@ abstract class ClosureAnnotator {
superType: _closureTypeForDartType(e.supertype),
interfaces: e.interfaces.map(_closureTypeForDartType).toList());
+ // TODO(ochafik): Handle destructured params when Closure supports it.
ClosureAnnotation closureAnnotationFor(
ExecutableElement e, String namedArgsMapName) {
var paramTypes = <String, ClosureType>{};

Powered by Google App Engine