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

Side by Side Diff: compiler/java/com/google/dart/compiler/CommandLineOptions.java

Issue 8287001: Add a command-line option for generating source maps. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 2 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
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 package com.google.dart.compiler; 5 package com.google.dart.compiler;
6 6
7 import com.google.common.collect.Lists; 7 import com.google.common.collect.Lists;
8 import com.google.dart.runner.DartRunner; 8 import com.google.dart.runner.DartRunner;
9 import com.google.dart.runner.RunnerOptions; 9 import com.google.dart.runner.RunnerOptions;
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 private String documentationOutputDirectory = null; 59 private String documentationOutputDirectory = null;
60 60
61 @Option(name = "--generate-documentation", aliases = { "-generate-documentat ion" }, 61 @Option(name = "--generate-documentation", aliases = { "-generate-documentat ion" },
62 usage = "Generate docs from source") 62 usage = "Generate docs from source")
63 private boolean generateDocumentation = false; 63 private boolean generateDocumentation = false;
64 64
65 @Option(name = "--generate-isolate-stubs", aliases = { "-generate-isolate-st ubs" }, 65 @Option(name = "--generate-isolate-stubs", aliases = { "-generate-isolate-st ubs" },
66 usage = "Classes to generate stubs\n (comma-separated list)") 66 usage = "Classes to generate stubs\n (comma-separated list)")
67 private String generateIsolateStubs = null; 67 private String generateIsolateStubs = null;
68 68
69 @Option(name = "--generate-source-maps",
zundel 2011/10/17 17:28:46 vm uses underscores instead of dashes to separate
John Lenz 2011/10/17 18:38:35 Done.
70 usage = "Generate source maps")
71 private boolean generateSourceMaps = false;
72
69 @Option(name = "--human-readable-output", 73 @Option(name = "--human-readable-output",
70 usage = "Write human readable javascript") 74 usage = "Write human readable javascript")
71 private boolean generateHumanReadableOutput = false; 75 private boolean generateHumanReadableOutput = false;
72 76
73 @Option(name = "--ignore-unrecognized-flags", 77 @Option(name = "--ignore-unrecognized-flags",
74 usage = "Ignore unrecognized command line flags") 78 usage = "Ignore unrecognized command line flags")
75 private boolean ignoreUnrecognizedFlags = false; 79 private boolean ignoreUnrecognizedFlags = false;
76 80
77 @Option(name = "--isolate-stub-out", aliases = { "-isolate-stub-out" }, 81 @Option(name = "--isolate-stub-out", aliases = { "-isolate-stub-out" },
78 usage = "File to receive generated stub output") 82 usage = "File to receive generated stub output")
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 } 222 }
219 223
220 public boolean shouldBatch() { 224 public boolean shouldBatch() {
221 return batch; 225 return batch;
222 } 226 }
223 227
224 public boolean disableTypeOptimizations() { 228 public boolean disableTypeOptimizations() {
225 return disableTypeOptimizations; 229 return disableTypeOptimizations;
226 } 230 }
227 231
232 public boolean generateSourceMaps() {
233 return generateSourceMaps;
234 }
235
228 public boolean generateHumanReadableOutput() { 236 public boolean generateHumanReadableOutput() {
229 return generateHumanReadableOutput; 237 return generateHumanReadableOutput;
230 } 238 }
231 239
232 /** 240 /**
233 * @return the path to receive compiler output. 241 * @return the path to receive compiler output.
234 */ 242 */
235 public File getOutputFilename() { 243 public File getOutputFilename() {
236 return outputFilename; 244 return outputFilename;
237 } 245 }
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 args = newArgs.toArray(new String[newArgs.size()]); 405 args = newArgs.toArray(new String[newArgs.size()]);
398 cmdLineParser = new CmdLineParser(parsedOptions); 406 cmdLineParser = new CmdLineParser(parsedOptions);
399 continue; 407 continue;
400 } 408 }
401 } 409 }
402 break; 410 break;
403 } 411 }
404 return cmdLineParser; 412 return cmdLineParser;
405 } 413 }
406 } 414 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698