| 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 dart2js.serialization_test; | 5 library dart2js.serialization_test; |
| 6 | 6 |
| 7 import 'dart:io'; | 7 import 'dart:io'; |
| 8 import '../memory_compiler.dart'; | 8 import '../memory_compiler.dart'; |
| 9 import 'package:async_helper/async_helper.dart'; | 9 import 'package:async_helper/async_helper.dart'; |
| 10 import 'package:compiler/src/commandline_options.dart'; | 10 import 'package:compiler/src/commandline_options.dart'; |
| 11 import 'package:compiler/src/common.dart'; | 11 import 'package:compiler/src/common.dart'; |
| 12 import 'package:compiler/src/common/resolution.dart'; | 12 import 'package:compiler/src/common/resolution.dart'; |
| 13 import 'package:compiler/src/constants/constructors.dart'; | 13 import 'package:compiler/src/constants/constructors.dart'; |
| 14 import 'package:compiler/src/compiler.dart'; | 14 import 'package:compiler/src/compiler.dart'; |
| 15 import 'package:compiler/src/diagnostics/invariant.dart'; | 15 import 'package:compiler/src/diagnostics/invariant.dart'; |
| 16 import 'package:compiler/src/elements/elements.dart'; | 16 import 'package:compiler/src/elements/elements.dart'; |
| 17 import 'package:compiler/src/elements/resolution_types.dart'; | 17 import 'package:compiler/src/elements/resolution_types.dart'; |
| 18 import 'package:compiler/src/elements/visitor.dart'; | 18 import 'package:compiler/src/elements/visitor.dart'; |
| 19 import 'package:compiler/src/filenames.dart'; | 19 import 'package:compiler/src/filenames.dart'; |
| 20 import 'package:compiler/src/library_loader.dart'; | 20 import 'package:compiler/src/library_loader.dart'; |
| 21 import 'package:compiler/src/ordered_typeset.dart'; | 21 import 'package:compiler/src/ordered_typeset.dart'; |
| 22 import 'package:compiler/src/serialization/element_serialization.dart'; | 22 import 'package:compiler/src/serialization/element_serialization.dart'; |
| 23 import 'package:compiler/src/serialization/equivalence.dart'; | 23 import 'package:compiler/src/serialization/equivalence.dart'; |
| 24 import 'package:compiler/src/serialization/json_serializer.dart'; | 24 import 'package:compiler/src/serialization/json_serializer.dart'; |
| 25 import 'package:compiler/src/serialization/serialization.dart'; | 25 import 'package:compiler/src/serialization/serialization.dart'; |
| 26 import 'package:expect/expect.dart'; | 26 import 'package:expect/expect.dart'; |
| 27 import 'test_helper.dart'; | 27 import '../equivalence/check_helpers.dart'; |
| 28 | 28 |
| 29 const TEST_SOURCES = const <String, String>{ | 29 const TEST_SOURCES = const <String, String>{ |
| 30 'main.dart': ''' | 30 'main.dart': ''' |
| 31 import 'library.dart'; | 31 import 'library.dart'; |
| 32 import 'deferred_library.dart' deferred as prefix; | 32 import 'deferred_library.dart' deferred as prefix; |
| 33 | 33 |
| 34 asyncMethod() async {} | 34 asyncMethod() async {} |
| 35 asyncStarMethod() async* {} | 35 asyncStarMethod() async* {} |
| 36 syncStarMethod() sync* {} | 36 syncStarMethod() sync* {} |
| 37 get asyncGetter async {} | 37 get asyncGetter async {} |
| (...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 836 }); | 836 }); |
| 837 } | 837 } |
| 838 | 838 |
| 839 @override | 839 @override |
| 840 void visitErroneousElement( | 840 void visitErroneousElement( |
| 841 ErroneousElement element1, ErroneousElement element2) { | 841 ErroneousElement element1, ErroneousElement element2) { |
| 842 check(element1, element2, 'messageKind', element1.messageKind, | 842 check(element1, element2, 'messageKind', element1.messageKind, |
| 843 element2.messageKind); | 843 element2.messageKind); |
| 844 } | 844 } |
| 845 } | 845 } |
| OLD | NEW |