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

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

Issue 9317093: Remove DartDocumentationGenerator and related flags. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 | « no previous file | compiler/java/com/google/dart/compiler/CompilerConfiguration.java » ('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) 2011, the Dart project authors. Please see the AUTHORS file
zundel 2012/02/03 21:21:30 put me back, change to 2012
2 // for details. All rights reserved. Use of this source code is governed by a 1 // 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. 2 // BSD-style license that can be found in the LICENSE file.
4 3
5 package com.google.dart.compiler; 4 package com.google.dart.compiler;
6 5
7 import com.google.common.collect.Lists; 6 import com.google.common.collect.Lists;
8 import com.google.dart.compiler.CompilerConfiguration.ErrorFormat; 7 import com.google.dart.compiler.CompilerConfiguration.ErrorFormat;
9 import com.google.dart.runner.DartRunner; 8 import com.google.dart.runner.DartRunner;
10 import com.google.dart.runner.RunnerOptions; 9 import com.google.dart.runner.RunnerOptions;
11 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 private String errorFormat = ""; 46 private String errorFormat = "";
48 47
49 @Option(name = "--enable_type_checks", 48 @Option(name = "--enable_type_checks",
50 usage = "Generate runtime type checks") 49 usage = "Generate runtime type checks")
51 private boolean developerModeChecks = false; 50 private boolean developerModeChecks = false;
52 51
53 @Option(name = "--disable-type-optimizations", 52 @Option(name = "--disable-type-optimizations",
54 usage = "Turn off type optimizations\n (for debugging)") 53 usage = "Turn off type optimizations\n (for debugging)")
55 private boolean disableTypeOptimizations = false; 54 private boolean disableTypeOptimizations = false;
56 55
57 @Option(name = "--documentation-lib", aliases = { "-documentation-lib" },
58 usage = "Only generate docs for the\n given library")
59 private String documentationLibrary = null;
60
61 @Option(name = "--documentation-out", aliases = { "-documentation-out" },
62 usage = "Directory to write documentation")
63 private String documentationOutputDirectory = "out";
64
65 @Option(name = "--generate-documentation", aliases = { "-generate-documentat ion" },
66 usage = "Generate docs from source")
67 private boolean generateDocumentation = false;
68
69 @Option(name = "--generate-isolate-stubs", aliases = { "-generate-isolate-st ubs" }, 56 @Option(name = "--generate-isolate-stubs", aliases = { "-generate-isolate-st ubs" },
70 usage = "Classes to generate stubs\n (comma-separated list)") 57 usage = "Classes to generate stubs\n (comma-separated list)")
71 private String generateIsolateStubs = null; 58 private String generateIsolateStubs = null;
72 59
73 @Option(name = "--generate_source_maps", 60 @Option(name = "--generate_source_maps",
74 usage = "Generate source maps") 61 usage = "Generate source maps")
75 private boolean generateSourceMaps = false; 62 private boolean generateSourceMaps = false;
76 63
77 @Option(name = "--dump_ast_format", 64 @Option(name = "--dump_ast_format",
78 usage = "Dump parse tree. Supported formats include console, text or dot ") 65 usage = "Dump parse tree. Supported formats include console, text or dot ")
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 } 153 }
167 154
168 /** 155 /**
169 * @return <code>true</code> to automatically import dart:coreimpl 156 * @return <code>true</code> to automatically import dart:coreimpl
170 */ 157 */
171 public boolean shouldExposeCoreImpl() { 158 public boolean shouldExposeCoreImpl() {
172 return exposeCoreImpl; 159 return exposeCoreImpl;
173 } 160 }
174 161
175 /** 162 /**
176 * Returns whether the option -generate-documentation is provided.
177 */
178 public boolean generateDocumentation() {
179 return generateDocumentation;
180 }
181
182 /**
183 * Returns the library to document. If null is returned generate
184 * documentation for all libraries.
185 */
186 public String getDocumentationLibrary() {
187 return documentationLibrary;
188 }
189
190 /**
191 * Returns the documentation output directory.
192 */
193 public String getDocumentationOutputDirectory() {
194 return documentationOutputDirectory;
195 }
196
197 /**
198 * Returns the names of classes to generate stubs for. 163 * Returns the names of classes to generate stubs for.
199 */ 164 */
200 public Set<String> getIsolateStubClasses() { 165 public Set<String> getIsolateStubClasses() {
201 Set<String> set = new HashSet<String>(); 166 Set<String> set = new HashSet<String>();
202 if (generateIsolateStubs != null) { 167 if (generateIsolateStubs != null) {
203 set.addAll(Arrays.asList(generateIsolateStubs.split(","))); 168 set.addAll(Arrays.asList(generateIsolateStubs.split(",")));
204 } 169 }
205 return set; 170 return set;
206 } 171 }
207 172
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 args = newArgs.toArray(new String[newArgs.size()]); 391 args = newArgs.toArray(new String[newArgs.size()]);
427 cmdLineParser = new CmdLineParser(parsedOptions); 392 cmdLineParser = new CmdLineParser(parsedOptions);
428 continue; 393 continue;
429 } 394 }
430 } 395 }
431 break; 396 break;
432 } 397 }
433 return cmdLineParser; 398 return cmdLineParser;
434 } 399 }
435 } 400 }
OLDNEW
« no previous file with comments | « no previous file | compiler/java/com/google/dart/compiler/CompilerConfiguration.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698