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

Unified Diff: lib/dartdoc/dartdoc.dart

Issue 10454112: Remove frog from the SDK and stop running it from the editor. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Never map to .js_. Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/config/import_frog.config ('k') | tools/create_sdk.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dartdoc/dartdoc.dart
diff --git a/lib/dartdoc/dartdoc.dart b/lib/dartdoc/dartdoc.dart
index d336b5dc9c63dfbccaa650027bdd37f46606031f..8e893fef39fc99b2c2977c08bddcd3d6d69f28e3 100644
--- a/lib/dartdoc/dartdoc.dart
+++ b/lib/dartdoc/dartdoc.dart
@@ -118,7 +118,7 @@ void main() {
// Compile the client-side code to JS.
final clientScript = (dartdoc.mode == MODE_STATIC) ? 'static' : 'live-nav';
- final Future scriptCompiled = compileScript(compilerPath, libDir,
+ final Future scriptCompiled = compileScript(compilerPath,
'$scriptDir/client-$clientScript.dart',
'${dartdoc.outputDir}/client-$clientScript.js');
@@ -187,8 +187,7 @@ Future copyFiles(String from, String to) {
* Compiles the given Dart script to a JavaScript file at [jsPath] using the
* Dart-to-JS compiler located at [compilerPath].
*/
-Future compileScript(String compilerPath, String libDir,
- String dartPath, String jsPath) {
+Future compileScript(String compilerPath, String dartPath, String jsPath) {
final completer = new Completer();
onExit(ProcessResult result) {
if (result.exitCode != 0) {
@@ -208,11 +207,7 @@ Future compileScript(String compilerPath, String libDir,
}
print('Compiling $dartPath to $jsPath');
- var processFuture = Process.run(compilerPath, [
- '--libdir=$libDir', '--out=$jsPath',
- '--compile-only', '--enable-type-checks', '--warnings-as-errors',
- dartPath]);
-
+ var processFuture = Process.run(compilerPath, ['--out=$jsPath', dartPath]);
processFuture.handleException(onError);
processFuture.then(onExit);
« no previous file with comments | « lib/config/import_frog.config ('k') | tools/create_sdk.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698