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

Unified Diff: compiler/java/com/google/dart/compiler/DefaultLibrarySource.java

Issue 10825346: Fix bugs in parser and update tests to use new directive syntax (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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
Index: compiler/java/com/google/dart/compiler/DefaultLibrarySource.java
===================================================================
--- compiler/java/com/google/dart/compiler/DefaultLibrarySource.java (revision 10652)
+++ compiler/java/com/google/dart/compiler/DefaultLibrarySource.java (working copy)
@@ -135,7 +135,7 @@
List<File> sourceFiles, String entryPoint) {
StringWriter sw = new StringWriter(200);
PrintWriter pw = new PrintWriter(sw);
- pw.println("#library(\"" + name + "\");");
+ pw.println("library " + name + ";");
if (importFiles != null) {
for (File file : importFiles) {
String relPath = file.getPath();
@@ -143,7 +143,7 @@
relPath = Paths.relativePathFor(baseFile, file);
}
if (relPath != null) {
- pw.println("#import(\"" + relPath + "\");");
+ pw.println("import '" + relPath + "';");
}
}
}
@@ -151,7 +151,7 @@
for (File file : sourceFiles) {
String relPath = Paths.relativePathFor(baseFile, file);
if (relPath != null) {
- pw.println("#source(\"" + relPath + "\");");
+ pw.println("part '" + relPath + "';");
}
}
}

Powered by Google App Engine
This is Rietveld 408576698