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

Side by Side Diff: pkg/kernel/test/closures_initializers/suite.dart

Issue 2981603002: Convert closures in all initializers, and share the context between them. (Closed)
Patch Set: Change name of the argument extraction pass. Created 3 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
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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.md file. 3 // BSD-style license that can be found in the LICENSE.md file.
4 4
5 library test.kernel.closures.suite; 5 library test.kernel.closures.suite;
6 6
7 import 'dart:async' show Future; 7 import 'dart:async' show Future;
8 8
9 import 'package:kernel/core_types.dart' show CoreTypes; 9 import 'package:kernel/core_types.dart' show CoreTypes;
10 10
11 import 'package:testing/testing.dart' 11 import 'package:testing/testing.dart'
12 show Chain, ChainContext, Result, Step, runMe; 12 show Chain, ChainContext, Result, Step, runMe;
13 13
14 import 'package:kernel/ast.dart' show Program, Library; 14 import 'package:kernel/ast.dart' show Program, Library;
15 15
16 import 'package:kernel/transformations/argument_extraction_for_redirecting.dart' 16 import 'package:kernel/transformations/argument_extraction.dart'
17 as argument_extraction; 17 as argument_extraction;
18 18
19 import 'package:kernel/transformations/closure_conversion.dart' 19 import 'package:kernel/transformations/closure_conversion.dart'
20 as closure_conversion; 20 as closure_conversion;
21 21
22 import 'package:front_end/src/fasta/testing/kernel_chain.dart' 22 import 'package:front_end/src/fasta/testing/kernel_chain.dart'
23 show 23 show
24 Compile, 24 Compile,
25 CompileContext, 25 CompileContext,
26 Print, 26 Print,
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 .firstWhere((Library library) => library.importUri.scheme != "dart"); 103 .firstWhere((Library library) => library.importUri.scheme != "dart");
104 closure_conversion.transformLibraries(coreTypes, <Library>[library]); 104 closure_conversion.transformLibraries(coreTypes, <Library>[library]);
105 return pass(program); 105 return pass(program);
106 } catch (e, s) { 106 } catch (e, s) {
107 return crash(e, s); 107 return crash(e, s);
108 } 108 }
109 } 109 }
110 } 110 }
111 111
112 main(List<String> arguments) => runMe(arguments, createContext, "testing.json"); 112 main(List<String> arguments) => runMe(arguments, createContext, "testing.json");
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698