| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 import '../compiler_helper.dart'; | 5 import '../compiler_helper.dart'; |
| 6 import 'dart:async'; | 6 import 'dart:async'; |
| 7 import 'package:async_helper/async_helper.dart'; | 7 import 'package:async_helper/async_helper.dart'; |
| 8 import 'package:compiler/src/dart2jslib.dart'; | 8 import 'package:compiler/implementation/dart2jslib.dart'; |
| 9 import 'package:compiler/src/dart_backend/dart_backend.dart'; | 9 import 'package:compiler/implementation/dart_backend/dart_backend.dart'; |
| 10 import 'package:compiler/src/dart_backend/backend_ast_to_frontend_ast.dart' | 10 import 'package:compiler/implementation/dart_backend/backend_ast_to_frontend_ast
.dart' |
| 11 show INSERT_NEW_BACKEND_COMMENT; | 11 show INSERT_NEW_BACKEND_COMMENT; |
| 12 | 12 |
| 13 const String TestStaticField = """ | 13 const String TestStaticField = """ |
| 14 class Foo { | 14 class Foo { |
| 15 static int x = 1; | 15 static int x = 1; |
| 16 } | 16 } |
| 17 main() { | 17 main() { |
| 18 print(Foo.x); | 18 print(Foo.x); |
| 19 } | 19 } |
| 20 """; | 20 """; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 }); | 52 }); |
| 53 } | 53 } |
| 54 | 54 |
| 55 main() { | 55 main() { |
| 56 INSERT_NEW_BACKEND_COMMENT = true; | 56 INSERT_NEW_BACKEND_COMMENT = true; |
| 57 | 57 |
| 58 asyncTest(() => Future.forEach([ | 58 asyncTest(() => Future.forEach([ |
| 59 () => test(TestStaticField, 'static fields'), | 59 () => test(TestStaticField, 'static fields'), |
| 60 ], (f) => f())); | 60 ], (f) => f())); |
| 61 } | 61 } |
| OLD | NEW |