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

Unified Diff: pkg/js_ast/lib/src/nodes.dart

Issue 1681863003: dart2js: Distinguish precedence levels for left-hand side and call. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Update status file Created 4 years, 10 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 | « no previous file | pkg/js_ast/lib/src/precedence.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/js_ast/lib/src/nodes.dart
diff --git a/pkg/js_ast/lib/src/nodes.dart b/pkg/js_ast/lib/src/nodes.dart
index 27511cafcdd83703620e470d87eccf8f1ce4cda1..94371a0e688c3ae61dcc7f8bd8fd7b314e02b575 100644
--- a/pkg/js_ast/lib/src/nodes.dart
+++ b/pkg/js_ast/lib/src/nodes.dart
@@ -904,7 +904,7 @@ class NamedFunction extends Expression {
}
NamedFunction _clone() => new NamedFunction(name, function);
- int get precedenceLevel => CALL;
+ int get precedenceLevel => LEFT_HAND_SIDE;
}
class Fun extends Expression {
@@ -923,7 +923,7 @@ class Fun extends Expression {
Fun _clone() => new Fun(params, body, asyncModifier: asyncModifier);
- int get precedenceLevel => CALL;
+ int get precedenceLevel => LEFT_HAND_SIDE;
}
class AsyncModifier {
@@ -969,7 +969,7 @@ class PropertyAccess extends Expression {
PropertyAccess _clone() => new PropertyAccess(receiver, selector);
- int get precedenceLevel => CALL;
+ int get precedenceLevel => LEFT_HAND_SIDE;
}
/// A [DeferredToken] is a placeholder for some [Expression] that is not known
« no previous file with comments | « no previous file | pkg/js_ast/lib/src/precedence.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698