OLD | NEW |
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 library rewrite_async; | 5 library rewrite_async; |
6 | 6 |
7 import "dart:math" show max; | 7 import "dart:math" show max; |
8 import 'dart:collection'; | 8 import 'dart:collection'; |
9 | 9 |
10 import 'package:js_runtime/shared/async_await_error_codes.dart' | 10 import 'package:js_runtime/shared/async_await_error_codes.dart' |
(...skipping 2427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2438 return unsupported(node); | 2438 return unsupported(node); |
2439 } | 2439 } |
2440 | 2440 |
2441 @override | 2441 @override |
2442 bool visitLiteralString(js.LiteralString node) { | 2442 bool visitLiteralString(js.LiteralString node) { |
2443 return false; | 2443 return false; |
2444 } | 2444 } |
2445 | 2445 |
2446 @override | 2446 @override |
2447 bool visitStringConcatenation(js.StringConcatenation node) { | 2447 bool visitStringConcatenation(js.StringConcatenation node) { |
2448 return true; | 2448 return false; |
2449 } | 2449 } |
2450 | 2450 |
2451 @override | 2451 @override |
2452 bool visitName(js.Name node) { | 2452 bool visitName(js.Name node) { |
2453 return true; | 2453 return false; |
2454 } | 2454 } |
2455 | 2455 |
2456 @override | 2456 @override |
2457 bool visitNamedFunction(js.NamedFunction node) { | 2457 bool visitNamedFunction(js.NamedFunction node) { |
2458 return false; | 2458 return false; |
2459 } | 2459 } |
2460 | 2460 |
2461 @override | 2461 @override |
2462 bool visitNew(js.New node) { | 2462 bool visitNew(js.New node) { |
2463 return visitCall(node); | 2463 return visitCall(node); |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2581 return condition || body; | 2581 return condition || body; |
2582 } | 2582 } |
2583 | 2583 |
2584 @override | 2584 @override |
2585 bool visitDartYield(js.DartYield node) { | 2585 bool visitDartYield(js.DartYield node) { |
2586 hasYield = true; | 2586 hasYield = true; |
2587 visit(node.expression); | 2587 visit(node.expression); |
2588 return true; | 2588 return true; |
2589 } | 2589 } |
2590 } | 2590 } |
OLD | NEW |