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

Side by Side Diff: pkg/kernel/lib/transformations/closure_conversion.dart

Issue 2561723003: Merge kernel closure conversion into the Dart SDK (Closed)
Patch Set: Also restrict the test to linux for now Created 4 years 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
(Empty)
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
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.
4
5 library kernel.transformations.closure_conversion;
6
7 import '../ast.dart' show
8 Class,
9 Program;
10
11 import '../core_types.dart' show
12 CoreTypes;
13
14 import 'closure/converter.dart' show
15 ClosureConverter;
16
17 import 'closure/info.dart' show
18 ClosureInfo;
19
20 import 'closure/mock.dart' show
21 mockUpContext;
22
23 Program transformProgram(Program program) {
24 var info = new ClosureInfo();
25 info.visitProgram(program);
26
27 CoreTypes coreTypes = new CoreTypes(program);
28 Class contextClass = mockUpContext(coreTypes, program);
29 var convert = new ClosureConverter(coreTypes, info, contextClass);
30 return convert.visitProgram(program);
31 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698