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

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

Issue 2981813002: Move `reify` to use fasta instead of dartk (Closed)
Patch Set: 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
(...skipping 12 matching lines...) Expand all
23 WriteDill, 23 WriteDill,
24 ReadDill, 24 ReadDill,
25 Verify, 25 Verify,
26 Compile, 26 Compile,
27 CompileContext; 27 CompileContext;
28 28
29 const String STRONG_MODE = " strong mode "; 29 const String STRONG_MODE = " strong mode ";
30 30
31 class ClosureConversionContext extends ChainContext implements CompileContext { 31 class ClosureConversionContext extends ChainContext implements CompileContext {
32 final bool strongMode; 32 final bool strongMode;
33 Target get target => null;
33 34
34 final List<Step> steps; 35 final List<Step> steps;
35 36
36 ClosureConversionContext(this.strongMode, bool updateExpectations) 37 ClosureConversionContext(this.strongMode, bool updateExpectations)
37 : steps = <Step>[ 38 : steps = <Step>[
38 const Compile(), 39 const Compile(),
39 const Print(), 40 const Print(),
40 const Verify(true), 41 const Verify(true),
41 const ClosureConversion(), 42 const ClosureConversion(),
42 const Print(), 43 const Print(),
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 .firstWhere((Library library) => library.importUri.scheme != "dart"); 78 .firstWhere((Library library) => library.importUri.scheme != "dart");
78 closure_conversion.transformLibraries(coreTypes, <Library>[library]); 79 closure_conversion.transformLibraries(coreTypes, <Library>[library]);
79 return pass(program); 80 return pass(program);
80 } catch (e, s) { 81 } catch (e, s) {
81 return crash(e, s); 82 return crash(e, s);
82 } 83 }
83 } 84 }
84 } 85 }
85 86
86 main(List<String> arguments) => runMe(arguments, createContext, "testing.json"); 87 main(List<String> arguments) => runMe(arguments, createContext, "testing.json");
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698