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

Unified Diff: lib/src/js/nodes.dart

Issue 1643523008: fix #43, remove => workaround (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 11 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 | « lib/src/codegen/js_printer.dart ('k') | lib/src/js/printer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/js/nodes.dart
diff --git a/lib/src/js/nodes.dart b/lib/src/js/nodes.dart
index 4b3f1942f8c0fd6599bd8def0ef523596a95f061..0ba181426578b19f97656189834b4847ce9d161d 100644
--- a/lib/src/js/nodes.dart
+++ b/lib/src/js/nodes.dart
@@ -1138,8 +1138,6 @@ class ArrowFun extends FunctionExpression {
final List<Parameter> params;
final body; // Expression or Block
- bool _closesOverThis; // lazy initialized
-
ArrowFun(this.params, this.body);
accept(NodeVisitor visitor) => visitor.visitArrowFun(this);
@@ -1148,12 +1146,6 @@ class ArrowFun extends FunctionExpression {
for (Parameter param in params) param.accept(visitor);
body.accept(visitor);
}
- /// True if this function actually closes of `this`. We use this in some
- /// situations to generate different code.
- bool get closesOverThis {
- if (_closesOverThis == null) _closesOverThis = This.foundIn(this);
- return _closesOverThis;
- }
int get precedenceLevel => PRIMARY_LOW_PRECEDENCE;
« no previous file with comments | « lib/src/codegen/js_printer.dart ('k') | lib/src/js/printer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698