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

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

Issue 2970273004: Deprecate all diagnostics methods that use strings. (Closed)
Patch Set: Merged with 4df146dd9a465d63344330bf3e45524b927c92ec 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
« no previous file with comments | « pkg/front_end/tool/_fasta/log_collector.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) 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:front_end/physical_file_system.dart' show PhysicalFileSystem; 9 import 'package:front_end/physical_file_system.dart' show PhysicalFileSystem;
10 10
(...skipping 18 matching lines...) Expand all
29 29
30 import 'package:front_end/src/fasta/ticker.dart' show Ticker; 30 import 'package:front_end/src/fasta/ticker.dart' show Ticker;
31 31
32 import 'package:front_end/src/fasta/dill/dill_target.dart' show DillTarget; 32 import 'package:front_end/src/fasta/dill/dill_target.dart' show DillTarget;
33 33
34 import 'package:front_end/src/fasta/kernel/kernel_target.dart' 34 import 'package:front_end/src/fasta/kernel/kernel_target.dart'
35 show KernelTarget; 35 show KernelTarget;
36 36
37 import 'package:front_end/src/fasta/translate_uri.dart' show TranslateUri; 37 import 'package:front_end/src/fasta/translate_uri.dart' show TranslateUri;
38 38
39 import 'package:front_end/src/fasta/errors.dart' show InputError; 39 import 'package:front_end/src/fasta/deprecated_problems.dart'
40 show deprecated_InputError;
40 41
41 import 'package:front_end/src/fasta/testing/patched_sdk_location.dart'; 42 import 'package:front_end/src/fasta/testing/patched_sdk_location.dart';
42 43
43 import 'package:kernel/kernel.dart' show loadProgramFromBinary; 44 import 'package:kernel/kernel.dart' show loadProgramFromBinary;
44 45
45 import 'package:kernel/target/targets.dart' show TargetFlags; 46 import 'package:kernel/target/targets.dart' show TargetFlags;
46 47
47 import 'package:kernel/target/vm_fasta.dart' show VmFastaTarget; 48 import 'package:kernel/target/vm_fasta.dart' show VmFastaTarget;
48 49
49 const String STRONG_MODE = " strong mode "; 50 const String STRONG_MODE = " strong mode ";
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 dillTarget.loader.appendLibraries(platform); 116 dillTarget.loader.appendLibraries(platform);
116 KernelTarget sourceTarget = new KernelTarget( 117 KernelTarget sourceTarget = new KernelTarget(
117 PhysicalFileSystem.instance, dillTarget, context.uriTranslator); 118 PhysicalFileSystem.instance, dillTarget, context.uriTranslator);
118 119
119 Program p; 120 Program p;
120 try { 121 try {
121 sourceTarget.read(description.uri); 122 sourceTarget.read(description.uri);
122 await dillTarget.buildOutlines(); 123 await dillTarget.buildOutlines();
123 await sourceTarget.buildOutlines(); 124 await sourceTarget.buildOutlines();
124 p = await sourceTarget.buildProgram(); 125 p = await sourceTarget.buildProgram();
125 } on InputError catch (e, s) { 126 } on deprecated_InputError catch (e, s) {
126 return fail(null, e.error, s); 127 return fail(null, e.error, s);
127 } 128 }
128 return pass(p); 129 return pass(p);
129 } 130 }
130 } 131 }
131 132
132 class ArgumentExtraction 133 class ArgumentExtraction
133 extends Step<Program, Program, ClosureConversionContext> { 134 extends Step<Program, Program, ClosureConversionContext> {
134 const ArgumentExtraction(); 135 const ArgumentExtraction();
135 136
(...skipping 27 matching lines...) Expand all
163 .firstWhere((Library library) => library.importUri.scheme != "dart"); 164 .firstWhere((Library library) => library.importUri.scheme != "dart");
164 closure_conversion.transformLibraries(coreTypes, <Library>[library]); 165 closure_conversion.transformLibraries(coreTypes, <Library>[library]);
165 return pass(program); 166 return pass(program);
166 } catch (e, s) { 167 } catch (e, s) {
167 return crash(e, s); 168 return crash(e, s);
168 } 169 }
169 } 170 }
170 } 171 }
171 172
172 main(List<String> arguments) => runMe(arguments, createContext, "testing.json"); 173 main(List<String> arguments) => runMe(arguments, createContext, "testing.json");
OLDNEW
« no previous file with comments | « pkg/front_end/tool/_fasta/log_collector.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698