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

Unified Diff: tests/compiler/dart2js/closure/data/captured_variable.dart

Issue 3007903002: Support annotations on assignment and postfix operations (Closed)
Patch Set: Updated cf. comments Created 3 years, 3 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
« no previous file with comments | « tests/compiler/dart2js/closure/closure_test.dart ('k') | tests/compiler/dart2js/closure/data/mixed.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/closure/data/captured_variable.dart
diff --git a/tests/compiler/dart2js/closure/data/captured_variable.dart b/tests/compiler/dart2js/closure/data/captured_variable.dart
index 871af5fbdb54025822559263686aa6b1fba9b6fe..0602f3c1360b7914bca8ea3cb3a51aae3548f7f8 100644
--- a/tests/compiler/dart2js/closure/data/captured_variable.dart
+++ b/tests/compiler/dart2js/closure/data/captured_variable.dart
@@ -2,25 +2,25 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-/*readParameterInAnonymousClosure:*/
+/*element: readParameterInAnonymousClosure:*/
readParameterInAnonymousClosure(/**/ parameter) {
return /*free=[parameter]*/ () => parameter;
}
-/*readParameterInClosure:*/
+/*element: readParameterInClosure:*/
readParameterInClosure(/**/ parameter) {
/*free=[parameter]*/ func() => parameter;
return func;
}
-/*writeParameterInAnonymousClosure:box=(box0 which holds [parameter])*/
+/*element: writeParameterInAnonymousClosure:box=(box0 which holds [parameter])*/
writeParameterInAnonymousClosure(/*boxed*/ parameter) {
return /*free=[box0,parameter]*/ () {
parameter = 42;
};
}
-/*writeParameterInClosure:box=(box0 which holds [parameter])*/
+/*element: writeParameterInClosure:box=(box0 which holds [parameter])*/
writeParameterInClosure(/*boxed*/ parameter) {
/*free=[box0,parameter]*/ func() {
parameter = 43;
@@ -29,20 +29,20 @@ writeParameterInClosure(/*boxed*/ parameter) {
return func;
}
-/*readLocalInAnonymousClosure:*/
+/*element: readLocalInAnonymousClosure:*/
readLocalInAnonymousClosure(/**/ parameter) {
var /**/ local = parameter;
return /*free=[local]*/ () => local;
}
-/*readLocalInClosure:*/
+/*element: readLocalInClosure:*/
readLocalInClosure(/**/ parameter) {
var /**/ local = parameter;
/*free=[local]*/ func() => local;
return func;
}
-/*writeLocalInAnonymousClosure:box=(box0 which holds [local])*/
+/*element: writeLocalInAnonymousClosure:box=(box0 which holds [local])*/
writeLocalInAnonymousClosure(/**/ parameter) {
// ignore: UNUSED_LOCAL_VARIABLE
var /*boxed*/ local = parameter;
@@ -51,7 +51,7 @@ writeLocalInAnonymousClosure(/**/ parameter) {
};
}
-/*writeLocalInClosure:box=(box0 which holds [local])*/
+/*element: writeLocalInClosure:box=(box0 which holds [local])*/
writeLocalInClosure(/**/ parameter) {
// ignore: UNUSED_LOCAL_VARIABLE
var /*boxed*/ local = parameter;
« no previous file with comments | « tests/compiler/dart2js/closure/closure_test.dart ('k') | tests/compiler/dart2js/closure/data/mixed.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698