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

Side by Side Diff: test/codegen/destructuring.dart

Issue 1701583003: Introduce _emitParameterReferences to avoid mixing params with param references. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « lib/src/codegen/js_codegen.dart ('k') | test/codegen/expect/destructuring.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 import 'dart-ext:foo';
2 import 'package:js/src/varargs.dart';
3
1 f(int a, b, [c = 1]) { 4 f(int a, b, [c = 1]) {
2 f(a, b, c); 5 f(a, b, c);
3 } 6 }
7 external f_ext(int a, b, [c = 1]);
8 f_nat(int a, b, [c = 1]) native "f_nat";
9 f_sync(int a, b, [c = 1]) sync* {}
10 f_async(int a, b, [c = 1]) async* {}
11
4 g(int a, b, {c : 1}) { 12 g(int a, b, {c : 1}) {
5 f(a, b, c); 13 f(a, b, c);
6 } 14 }
15 external g_ext(int a, b, {c : 1});
16 g_nat(int a, b, {c : 1}) native "g_nat";
17 g_sync(int a, b, {c : 1}) sync* {}
18 g_async(int a, b, {c : 1}) async* {}
19
20 r(int a, @rest others) {
21 r(a, spread(others));
22 }
23 external r_ext(int a, @rest others);
24 r_nat(int a, @rest others) native "r_nat";
25 r_sync(int a, @rest others) sync* {}
26 r_async(int a, @rest others) async* {}
7 27
8 invalid_names1(int let, function, arguments) { 28 invalid_names1(int let, function, arguments) {
9 f(let, function, arguments); 29 f(let, function, arguments);
10 } 30 }
11 invalid_names2([int let, function = 1, arguments]) { 31 invalid_names2([int let, function = 1, arguments]) {
12 f(let, function, arguments); 32 f(let, function, arguments);
13 } 33 }
14 invalid_names3({int let, function, arguments : 2}) { 34 invalid_names3({int let, function, arguments : 2}) {
15 f(let, function, arguments); 35 f(let, function, arguments);
16 } 36 }
17 37
18 names_clashing_with_object_props({int constructor, valueOf, hasOwnProperty : 2}) { 38 names_clashing_with_object_props({int constructor, valueOf, hasOwnProperty : 2}) {
19 f(constructor, valueOf, hasOwnProperty); 39 f(constructor, valueOf, hasOwnProperty);
20 } 40 }
OLDNEW
« no previous file with comments | « lib/src/codegen/js_codegen.dart ('k') | test/codegen/expect/destructuring.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698