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

Side by Side Diff: tests/language/async_await_syntax_test.dart

Issue 996443002: Fix async getter with => syntax (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/parser.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 // Test async/await syntax. 5 // Test async/await syntax.
6 6
7 import 'dart:async' show Stream; 7 import 'dart:async' show Stream;
8 8
9 var yield = 0; 9 var yield = 0;
10 var await = 0; 10 var await = 0;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 get sync sync {} /// a11a: compile-time error 52 get sync sync {} /// a11a: compile-time error
53 get sync sync* {} /// a11b: ok 53 get sync sync* {} /// a11b: ok
54 get async async {} /// a11c: ok 54 get async async {} /// a11c: ok
55 get async async* {} /// a11d: ok 55 get async async* {} /// a11d: ok
56 56
57 get sync {} /// a12a: ok 57 get sync {} /// a12a: ok
58 get sync* {} /// a12b: compile-time error 58 get sync* {} /// a12b: compile-time error
59 get async {} /// a12c: ok 59 get async {} /// a12c: ok
60 get async* {} /// a12d: compile-time error 60 get async* {} /// a12d: compile-time error
61 get a12e sync* => null; /// a12e: compile-time error
62 get a12f async* => null; /// a12f: compile-time error
63 get a12g async => null; /// a12g: ok
61 64
62 int sync; /// a13a: ok 65 int sync; /// a13a: ok
63 int sync*; /// a13b: compile-time error 66 int sync*; /// a13b: compile-time error
64 int async; /// a13c: ok 67 int async; /// a13c: ok
65 int async*; /// a13d: compile-time error 68 int async*; /// a13d: compile-time error
66 69
67 var sync; /// a14a: ok 70 var sync; /// a14a: ok
68 var sync*; /// a14b: compile-time error 71 var sync*; /// a14b: compile-time error
69 var async; /// a14c: ok 72 var async; /// a14c: ok
70 var async*; /// a14d: compile-time error 73 var async*; /// a14d: compile-time error
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 119
117 get sync sync {} /// b11a: compile-time error 120 get sync sync {} /// b11a: compile-time error
118 get sync sync* {} /// b11b: ok 121 get sync sync* {} /// b11b: ok
119 get async async {} /// b11c: ok 122 get async async {} /// b11c: ok
120 get async async* {} /// b11d: ok 123 get async async* {} /// b11d: ok
121 124
122 get sync {} /// b12a: ok 125 get sync {} /// b12a: ok
123 get sync* {} /// b12b: compile-time error 126 get sync* {} /// b12b: compile-time error
124 get async {} /// b12c: ok 127 get async {} /// b12c: ok
125 get async* {} /// b12d: compile-time error 128 get async* {} /// b12d: compile-time error
129 get b12e sync* => null; /// b12e: compile-time error
130 get b12f async* => null; /// b12f: compile-time error
131 get b12g async => null; /// b12g: ok
126 132
127 int sync; /// b13a: ok 133 int sync; /// b13a: ok
128 int sync*; /// b13b: compile-time error 134 int sync*; /// b13b: compile-time error
129 int async; /// b13c: ok 135 int async; /// b13c: ok
130 int async*; /// b13d: compile-time error 136 int async*; /// b13d: compile-time error
131 137
132 var sync; /// b14a: ok 138 var sync; /// b14a: ok
133 var sync*; /// b14b: compile-time error 139 var sync*; /// b14b: compile-time error
134 var async; /// b14c: ok 140 var async; /// b14c: ok
135 var async*; /// b14d: compile-time error 141 var async*; /// b14d: compile-time error
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 a09a(); /// a09a: continued 218 a09a(); /// a09a: continued
213 a10a(); /// a10a: continued 219 a10a(); /// a10a: continued
214 a = sync; /// a11a: continued 220 a = sync; /// a11a: continued
215 a = sync; /// a11b: continued 221 a = sync; /// a11b: continued
216 a = async; /// a11c: continued 222 a = async; /// a11c: continued
217 a = async; /// a11d: continued 223 a = async; /// a11d: continued
218 a = sync; /// a12a: continued 224 a = sync; /// a12a: continued
219 a = sync; /// a12b: continued 225 a = sync; /// a12b: continued
220 a = async; /// a12c: continued 226 a = async; /// a12c: continued
221 a = async; /// a12d: continued 227 a = async; /// a12d: continued
228 a = a12e; /// a12e: continued
229 a = a12f; /// a12f: continued
230 a = a12g; /// a12g: continued
222 a = sync; /// a13a: continued 231 a = sync; /// a13a: continued
223 a = sync; /// a13b: continued 232 a = sync; /// a13b: continued
224 a = async; /// a13c: continued 233 a = async; /// a13c: continued
225 a = async; /// a13d: continued 234 a = async; /// a13d: continued
226 a = sync; /// a14a: continued 235 a = sync; /// a14a: continued
227 a = sync; /// a14b: continued 236 a = sync; /// a14b: continued
228 a = async; /// a14c: continued 237 a = async; /// a14c: continued
229 a = async; /// a14d: continued 238 a = async; /// a14d: continued
230 sync(); /// a15a: continued 239 sync(); /// a15a: continued
231 sync(); /// a15b: continued 240 sync(); /// a15b: continued
(...skipping 19 matching lines...) Expand all
251 c.b09a(); /// b09a: continued 260 c.b09a(); /// b09a: continued
252 c.b10a(); /// b10a: continued 261 c.b10a(); /// b10a: continued
253 a = c.sync; /// b11a: continued 262 a = c.sync; /// b11a: continued
254 a = c.sync; /// b11b: continued 263 a = c.sync; /// b11b: continued
255 a = c.async; /// b11c: continued 264 a = c.async; /// b11c: continued
256 a = c.async; /// b11d: continued 265 a = c.async; /// b11d: continued
257 a = c.sync; /// b12a: continued 266 a = c.sync; /// b12a: continued
258 a = c.sync; /// b12b: continued 267 a = c.sync; /// b12b: continued
259 a = c.async; /// b12c: continued 268 a = c.async; /// b12c: continued
260 a = c.async; /// b12d: continued 269 a = c.async; /// b12d: continued
270 a = c.b12e; /// b12e: continued
271 a = c.b12f; /// b12f: continued
272 a = c.b12g; /// b12g: continued
261 a = c.sync; /// b13a: continued 273 a = c.sync; /// b13a: continued
262 a = c.sync; /// b13b: continued 274 a = c.sync; /// b13b: continued
263 a = c.async; /// b13c: continued 275 a = c.async; /// b13c: continued
264 a = c.async; /// b13d: continued 276 a = c.async; /// b13d: continued
265 a = c.sync; /// b14a: continued 277 a = c.sync; /// b14a: continued
266 a = c.sync; /// b14b: continued 278 a = c.sync; /// b14b: continued
267 a = c.async; /// b14c: continued 279 a = c.async; /// b14c: continued
268 a = c.async; /// b14d: continued 280 a = c.async; /// b14d: continued
269 c.sync(); /// b15a: continued 281 c.sync(); /// b15a: continued
270 c.sync(); /// b15b: continued 282 c.sync(); /// b15b: continued
271 c.async(); /// b15c: continued 283 c.async(); /// b15c: continued
272 c.async(); /// b15d: continued 284 c.async(); /// b15d: continued
273 285
274 method1(); 286 method1();
275 method2(); 287 method2();
276 } 288 }
OLDNEW
« no previous file with comments | « runtime/vm/parser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698