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

Unified Diff: tests/compiler/dart2js/equivalence/id_equivalence.dart

Issue 2996053002: Test closure data on anonymous local functions (Closed)
Patch Set: Created 3 years, 4 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/data/captured_variable.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/equivalence/id_equivalence.dart
diff --git a/tests/compiler/dart2js/equivalence/id_equivalence.dart b/tests/compiler/dart2js/equivalence/id_equivalence.dart
index c746f6a3e7424e5896916b5ed01d5b09a641fe30..cc0421de795a4c97c0e6178190eabe0f1a3618b6 100644
--- a/tests/compiler/dart2js/equivalence/id_equivalence.dart
+++ b/tests/compiler/dart2js/equivalence/id_equivalence.dart
@@ -213,10 +213,9 @@ abstract class IrEnumeratorMixin {
} else if (node is ir.VariableDeclaration) {
assert(node.fileOffset != ir.TreeNode.noOffset);
return new NodeId(node.fileOffset);
- // TODO(johnniwinther): Enable when function expressions have offsets.
- /*} else if (node is ir.FunctionExpression) {
+ } else if (node is ir.FunctionExpression) {
assert(node.fileOffset != ir.TreeNode.noOffset);
- return new NodeId(node.fileOffset);*/
+ return new NodeId(node.fileOffset);
} else if (node is ir.FunctionDeclaration) {
assert(node.fileOffset != ir.TreeNode.noOffset);
return new NodeId(node.fileOffset);
« no previous file with comments | « tests/compiler/dart2js/closure/data/captured_variable.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698