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

Unified Diff: editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/engine/MainEngine.java

Issue 12099004: Generated code README and headers. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 11 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 | « no previous file | pkg/analyzer-experimental/README » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/engine/MainEngine.java
===================================================================
--- editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/engine/MainEngine.java (revision 17788)
+++ editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/engine/MainEngine.java (working copy)
@@ -50,6 +50,9 @@
PropertySemanticProcessor.INSTANCE,
EngineSemanticProcessor.INSTANCE);
+ private static final String HEADER = "// This code was auto-generated, is not intended to be edited, and is subject to\n"
+ + "// significant change. Please see the README file for more information.\n\n";
+
public static void main(String[] args) throws Exception {
if (args.length == 0) {
System.out.println("Usage: java2dart <target-folder>");
@@ -236,6 +239,7 @@
*/
private static String getFormattedSource(ASTNode node) {
PrintStringWriter writer = new PrintStringWriter();
+ writer.append(HEADER);
node.accept(new ToFormattedSourceVisitor(writer));
return writer.toString();
}
« no previous file with comments | « no previous file | pkg/analyzer-experimental/README » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698