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

Side by Side Diff: lib/src/js/precedence.dart

Issue 1484263002: Use destructuring assignments for named parameters (#180) (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Destructure function params directly (no more opts in most cases) Created 5 years 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library precedence; 5 library precedence;
6 6
7 const EXPRESSION = 0; 7 const EXPRESSION = 0;
8 const SPREAD = EXPRESSION + 1; 8 const SPREAD = EXPRESSION + 1;
9 const YIELD = SPREAD + 1; 9 const YIELD = SPREAD + 1;
10 10
(...skipping 16 matching lines...) Expand all
27 const RELATIONAL = EQUALITY + 1; 27 const RELATIONAL = EQUALITY + 1;
28 const SHIFT = RELATIONAL + 1; 28 const SHIFT = RELATIONAL + 1;
29 const ADDITIVE = SHIFT + 1; 29 const ADDITIVE = SHIFT + 1;
30 const MULTIPLICATIVE = ADDITIVE + 1; 30 const MULTIPLICATIVE = ADDITIVE + 1;
31 const UNARY = MULTIPLICATIVE + 1; 31 const UNARY = MULTIPLICATIVE + 1;
32 const LEFT_HAND_SIDE = UNARY + 1; 32 const LEFT_HAND_SIDE = UNARY + 1;
33 const CALL = LEFT_HAND_SIDE; 33 const CALL = LEFT_HAND_SIDE;
34 // We always emit `new` with parenthesis, so it uses ACCESS as its precedence. 34 // We always emit `new` with parenthesis, so it uses ACCESS as its precedence.
35 const ACCESS = CALL + 1; 35 const ACCESS = CALL + 1;
36 const PRIMARY = ACCESS + 1; 36 const PRIMARY = ACCESS + 1;
37 const DESTRUCTURING = PRIMARY + 1;
Jennifer Messerly 2015/12/01 02:10:27 hmm, not sure this really makes sense as a precede
ochafik 2015/12/02 20:05:46 Done.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698