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

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

Issue 1879373004: Implement modular compilation (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 8 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/js/nodes.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/precedence.dart
diff --git a/lib/src/js/precedence.dart b/lib/src/js/precedence.dart
deleted file mode 100644
index b10bac6cb4ec1ada4c4f6003bfa6fd08b7116a46..0000000000000000000000000000000000000000
--- a/lib/src/js/precedence.dart
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// 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.
-
-const EXPRESSION = 0;
-const SPREAD = EXPRESSION + 1;
-const YIELD = SPREAD + 1;
-
-// Note that some primary expressions (in the parser) must be emitted with lower
-// precedence, because it's not normally legal for them to be followed by
-// other postfix expressions, like ACCESS and CALL. For example:
-// `function foo(){}` needs parens to call or access properties or
-// compare with equality. Same thing with `class Foo {}` and `(x) => x`.
-// However, prefix unary expressions will work in these cases. Unfortunately our
-// current precedence tracking doesn't capture this distinction.
-const PRIMARY_LOW_PRECEDENCE = ASSIGNMENT;
-
-const ASSIGNMENT = YIELD + 1;
-const LOGICAL_OR = ASSIGNMENT + 1;
-const LOGICAL_AND = LOGICAL_OR + 1;
-const BIT_OR = LOGICAL_AND + 1;
-const BIT_XOR = BIT_OR + 1;
-const BIT_AND = BIT_XOR + 1;
-const EQUALITY = BIT_AND + 1;
-const RELATIONAL = EQUALITY + 1;
-const SHIFT = RELATIONAL + 1;
-const ADDITIVE = SHIFT + 1;
-const MULTIPLICATIVE = ADDITIVE + 1;
-const UNARY = MULTIPLICATIVE + 1;
-const LEFT_HAND_SIDE = UNARY + 1;
-const CALL = LEFT_HAND_SIDE;
-// We always emit `new` with parenthesis, so it uses ACCESS as its precedence.
-const ACCESS = CALL + 1;
-const PRIMARY = ACCESS + 1;
« no previous file with comments | « lib/src/js/nodes.dart ('k') | lib/src/js/printer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698