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

Side by Side Diff: pkg/front_end/lib/src/fasta/testing/kernel_chain.dart

Issue 2756593004: Start unraveling circularities between analyzer and front_end/kernel. (Closed)
Patch Set: Created 3 years, 9 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) 2016, the Dart project authors. Please see the AUTHORS file 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 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 // TODO(ahe): Copied from closure_conversion branch of kernel, remove this file 5 // TODO(ahe): Copied from closure_conversion branch of kernel, remove this file
6 // when closure_conversion is merged with master. 6 // when closure_conversion is merged with master.
7 7
8 library kernel.testing.kernel_chain; 8 library kernel.testing.kernel_chain;
9 9
10 import 'dart:async' show Future; 10 import 'dart:async' show Future;
(...skipping 11 matching lines...) Expand all
22 import 'package:kernel/ast.dart' show Library, Program; 22 import 'package:kernel/ast.dart' show Library, Program;
23 23
24 import '../kernel/verifier.dart' show verifyProgram; 24 import '../kernel/verifier.dart' show verifyProgram;
25 25
26 import 'package:kernel/binary/ast_to_binary.dart' show BinaryPrinter; 26 import 'package:kernel/binary/ast_to_binary.dart' show BinaryPrinter;
27 27
28 import 'package:kernel/binary/ast_from_binary.dart' show BinaryBuilder; 28 import 'package:kernel/binary/ast_from_binary.dart' show BinaryBuilder;
29 29
30 import 'package:analyzer/src/generated/sdk.dart' show DartSdk; 30 import 'package:analyzer/src/generated/sdk.dart' show DartSdk;
31 31
32 import 'package:kernel/analyzer/loader.dart' 32 import 'package:analyzer/src/kernel/loader.dart'
33 show DartLoader, DartOptions, createDartSdk; 33 show DartLoader, DartOptions, createDartSdk;
34 34
35 import 'package:kernel/target/targets.dart' show Target, TargetFlags, getTarget; 35 import 'package:kernel/target/targets.dart' show Target, TargetFlags, getTarget;
36 36
37 import 'package:testing/testing.dart' 37 import 'package:testing/testing.dart'
38 show Chain, ChainContext, Result, StdioProcess, Step, TestDescription; 38 show Chain, ChainContext, Result, StdioProcess, Step, TestDescription;
39 39
40 import 'package:kernel/ast.dart' show Program; 40 import 'package:kernel/ast.dart' show Program;
41 41
42 import 'package:package_config/discovery.dart' show loadPackagesFile; 42 import 'package:package_config/discovery.dart' show loadPackagesFile;
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 356
357 Future openWrite(Uri uri, f(IOSink sink)) async { 357 Future openWrite(Uri uri, f(IOSink sink)) async {
358 IOSink sink = new File.fromUri(uri).openWrite(); 358 IOSink sink = new File.fromUri(uri).openWrite();
359 try { 359 try {
360 await f(sink); 360 await f(sink);
361 } finally { 361 } finally {
362 await sink.close(); 362 await sink.close();
363 } 363 }
364 print("Wrote $uri"); 364 print("Wrote $uri");
365 } 365 }
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/fasta/analyzer/token_utils.dart ('k') | pkg/front_end/lib/src/fasta/testing/suite.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698