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

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

Issue 925943002: Refactor SourceFile, SourceFileProvider and SourceLocation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 5 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « pkg/compiler/lib/src/apiimpl.dart ('k') | pkg/compiler/lib/src/io/code_output.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' 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 } 168 }
169 passThrough(argument); 169 passThrough(argument);
170 } 170 }
171 171
172 String getDepsOutput(Map<String, SourceFile> sourceFiles) { 172 String getDepsOutput(Map<Uri, SourceFile> sourceFiles) {
173 var filenames = new List.from(sourceFiles.keys); 173 var filenames = sourceFiles.keys.map((uri) => '$uri').toList();
174 filenames.sort(); 174 filenames.sort();
175 return filenames.join("\n"); 175 return filenames.join("\n");
176 } 176 }
177 177
178 setStrip(String argument) { 178 setStrip(String argument) {
179 optionsImplyCompilation.add(argument); 179 optionsImplyCompilation.add(argument);
180 stripArgumentSet = true; 180 stripArgumentSet = true;
181 passThrough(argument); 181 passThrough(argument);
182 } 182 }
183 183
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 } else if (exitCode == 253) { 717 } else if (exitCode == 253) {
718 print(">>> TEST CRASH"); 718 print(">>> TEST CRASH");
719 } else { 719 } else {
720 print(">>> TEST FAIL"); 720 print(">>> TEST FAIL");
721 } 721 }
722 stderr.writeln(">>> EOF STDERR"); 722 stderr.writeln(">>> EOF STDERR");
723 subscription.resume(); 723 subscription.resume();
724 }); 724 });
725 }); 725 });
726 } 726 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/apiimpl.dart ('k') | pkg/compiler/lib/src/io/code_output.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698