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

Side by Side Diff: pkg/compiler/lib/src/dart2js.dart

Issue 3004593002: Support enabling of type inference with useKernel (Closed)
Patch Set: Created 3 years, 3 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 | « no previous file | pkg/compiler/lib/src/options.dart » ('j') | 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library dart2js.cmdline; 5 library dart2js.cmdline;
6 6
7 import 'dart:async' show Future; 7 import 'dart:async' show Future;
8 import 'dart:convert' show UTF8, LineSplitter; 8 import 'dart:convert' show UTF8, LineSplitter;
9 import 'dart:io' show exit, File, FileMode, Platform, stdin, stderr; 9 import 'dart:io' show exit, File, FileMode, Platform, stdin, stderr;
10 10
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 for (String category in categories) { 271 for (String category in categories) {
272 if (!["Client", "Server"].contains(category)) { 272 if (!["Client", "Server"].contains(category)) {
273 fail('Unsupported library category "$category", ' 273 fail('Unsupported library category "$category", '
274 'supported categories are: Client, Server, all'); 274 'supported categories are: Client, Server, all');
275 } 275 }
276 } 276 }
277 } 277 }
278 passThrough('--categories=${categories.join(",")}'); 278 passThrough('--categories=${categories.join(",")}');
279 } 279 }
280 280
281 void setPreviewDart2(String argument) { 281 void setPreviewDart2(String argument) {
Siggi Cherem (dart-lang) 2017/08/25 14:45:46 my fault, when I renamed "--preview-dart-2" to "--
Johnni Winther 2017/08/25 16:50:41 Done.
282 useKernel = true; 282 useKernel = true;
283 // TODO(sigmund): remove once we support inlining and type-inference
284 // with `useKernel`.
285 options.add(Flags.disableInlining);
286 options.add(Flags.disableTypeInference);
283 passThrough(argument); 287 passThrough(argument);
284 } 288 }
285 289
286 void handleThrowOnError(String argument) { 290 void handleThrowOnError(String argument) {
287 throwOnError = true; 291 throwOnError = true;
288 String parameter = extractParameter(argument, isOptionalArgument: true); 292 String parameter = extractParameter(argument, isOptionalArgument: true);
289 if (parameter != null) { 293 if (parameter != null) {
290 var count = int.parse(parameter); 294 var count = int.parse(parameter);
291 throwOnErrorCount = count; 295 throwOnErrorCount = count;
292 } 296 }
(...skipping 819 matching lines...) Expand 10 before | Expand all | Expand 10 after
1112 @override 1116 @override
1113 void add(String event) { 1117 void add(String event) {
1114 sb.write(event); 1118 sb.write(event);
1115 } 1119 }
1116 1120
1117 @override 1121 @override
1118 void close() { 1122 void close() {
1119 // Do nothing. 1123 // Do nothing.
1120 } 1124 }
1121 } 1125 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698