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

Unified Diff: utils/css/tool.dart

Issue 9695048: Template parser (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix GIT mixup - ugh Created 8 years, 9 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: utils/css/tool.dart
diff --git a/utils/css/tool.dart b/utils/css/tool.dart
index 22c22c8a04d282c435854390691f9b9a90d56f6a..c59b300ef84a9f70e520d21e42a01f5ba3d71170 100644
--- a/utils/css/tool.dart
+++ b/utils/css/tool.dart
@@ -4,11 +4,11 @@
#library('csstool');
-#import('../../frog/lang.dart', prefix:'lang');
-#import('../../frog/file_system.dart');
-#import('../../frog/file_system_node.dart');
-#import('../../frog/lib/node/node.dart');
+#import('dart:io');
#import('css.dart');
+#import('../../frog/file_system.dart');
+#import('../../frog/file_system_vm.dart');
+
FileSystem files;
@@ -29,11 +29,11 @@ printStats(num elapsed, [String filename = '']) {
* Run from the `utils/css` directory.
*/
void main() {
- // process.argv[0] == node and process.argv[1] == minfrog
- assert(process.argv.length == 4);
+ var optionArgs = new Options().arguments;
+ assert(optionArgs.length == 2);
- String sourceFullFn = process.argv[2];
- String outputFullFn = process.argv[3];
+ String sourceFullFn = optionArgs[0];
+ String outputFullFn = optionArgs[1];
String sourcePath;
String sourceFilename;
@@ -51,7 +51,7 @@ void main() {
initCssWorld();
- files = new NodeFileSystem();
+ files = new VMFileSystem();
if (!files.fileExists(sourceFullFn)) {
// Display colored error message if file is missing.
print("\033[31mCSS source file missing - ${sourceFullFn}\033[0m");
@@ -62,7 +62,7 @@ void main() {
final elapsed = time(() {
Parser parser = new Parser(
- new lang.SourceFile(sourceFullFn, source), 0, files, sourcePath);
+ new SourceFile(sourceFullFn, source), 0, files, sourcePath);
stylesheet = parser.parse();
});

Powered by Google App Engine
This is Rietveld 408576698