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

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

Issue 1143183003: add deprecation message for output=dart (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 7 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 | 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) 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' 7 import 'dart:async'
8 show Future, EventSink; 8 show Future, EventSink;
9 import 'dart:convert' show UTF8, LineSplitter; 9 import 'dart:convert' show UTF8, LineSplitter;
10 import 'dart:io' 10 import 'dart:io'
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 158
159 setOutputType(String argument) { 159 setOutputType(String argument) {
160 optionsImplyCompilation.add(argument); 160 optionsImplyCompilation.add(argument);
161 if (argument == '--output-type=dart' || 161 if (argument == '--output-type=dart' ||
162 argument == '--output-type=dart-multi') { 162 argument == '--output-type=dart-multi') {
163 outputLanguage = OUTPUT_LANGUAGE_DART; 163 outputLanguage = OUTPUT_LANGUAGE_DART;
164 if (!explicitOut) { 164 if (!explicitOut) {
165 out = currentDirectory.resolve('out.dart'); 165 out = currentDirectory.resolve('out.dart');
166 sourceMapOut = currentDirectory.resolve('out.dart.map'); 166 sourceMapOut = currentDirectory.resolve('out.dart.map');
167 } 167 }
168 diagnosticHandler(null, null, null,
169 "--output-type=dart is deprecated. It will remain available "
170 "in Dart 1.11, but will be removed in Dart 1.12.",
171 api.Diagnostic.WARNING);
168 } 172 }
169 passThrough(argument); 173 passThrough(argument);
170 } 174 }
171 175
172 String getDepsOutput(Map<Uri, SourceFile> sourceFiles) { 176 String getDepsOutput(Map<Uri, SourceFile> sourceFiles) {
173 var filenames = sourceFiles.keys.map((uri) => '$uri').toList(); 177 var filenames = sourceFiles.keys.map((uri) => '$uri').toList();
174 filenames.sort(); 178 filenames.sort();
175 return filenames.join("\n"); 179 return filenames.join("\n");
176 } 180 }
177 181
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 } else if (exitCode == 253) { 743 } else if (exitCode == 253) {
740 print(">>> TEST CRASH"); 744 print(">>> TEST CRASH");
741 } else { 745 } else {
742 print(">>> TEST FAIL"); 746 print(">>> TEST FAIL");
743 } 747 }
744 stderr.writeln(">>> EOF STDERR"); 748 stderr.writeln(">>> EOF STDERR");
745 subscription.resume(); 749 subscription.resume();
746 }); 750 });
747 }); 751 });
748 } 752 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698