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

Side by Side Diff: tests/compiler/dart2js/serialization/equivalence_test.dart

Issue 2120923002: Serialize async marker on getters. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 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 | « pkg/compiler/lib/src/serialization/modelz.dart ('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 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';
(...skipping 10 matching lines...) Expand all
21 import 'package:compiler/src/serialization/element_serialization.dart'; 21 import 'package:compiler/src/serialization/element_serialization.dart';
22 import 'package:compiler/src/serialization/equivalence.dart'; 22 import 'package:compiler/src/serialization/equivalence.dart';
23 import 'package:compiler/src/serialization/json_serializer.dart'; 23 import 'package:compiler/src/serialization/json_serializer.dart';
24 import 'package:compiler/src/serialization/serialization.dart'; 24 import 'package:compiler/src/serialization/serialization.dart';
25 import 'package:expect/expect.dart'; 25 import 'package:expect/expect.dart';
26 import 'test_helper.dart'; 26 import 'test_helper.dart';
27 27
28 const TEST_SOURCES = const <String, String>{ 28 const TEST_SOURCES = const <String, String>{
29 'main.dart': ''' 29 'main.dart': '''
30 import 'a.dart' deferred as a; 30 import 'a.dart' deferred as a;
31
32 asyncMethod() async {}
33 asyncStarMethod() async* {}
34 syncStarMethod() sync* {}
35 get asyncGetter async {}
36 get asyncStarGetter async* {}
37 get syncStarGetter sync* {}
38
31 ''', 39 ''',
32 'a.dart': ''' 40 'a.dart': '''
33 ''', 41 ''',
34 }; 42 };
35 43
36 main(List<String> arguments) { 44 main(List<String> arguments) {
37 // Ensure that we can print out constant expressions. 45 // Ensure that we can print out constant expressions.
38 DEBUG_MODE = true; 46 DEBUG_MODE = true;
39 47
40 Uri entryPoint; 48 Uri entryPoint;
(...skipping 772 matching lines...) Expand 10 before | Expand all | Expand 10 after
813 checkElementIdentities( 821 checkElementIdentities(
814 element1, element2, 'deferredImport', 822 element1, element2, 'deferredImport',
815 element1.deferredImport, element2.deferredImport); 823 element1.deferredImport, element2.deferredImport);
816 if (element1.isDeferred) { 824 if (element1.isDeferred) {
817 checkElementProperties(element1, element2, 825 checkElementProperties(element1, element2,
818 'loadLibrary', element1.loadLibrary, element2.loadLibrary); 826 'loadLibrary', element1.loadLibrary, element2.loadLibrary);
819 } 827 }
820 // TODO(johnniwinther): Check members. 828 // TODO(johnniwinther): Check members.
821 } 829 }
822 } 830 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/serialization/modelz.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698