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

Side by Side Diff: utils/css/css.dart

Issue 11358145: Update utils to new library syntax. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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 | « utils/archive/utils.dart ('k') | utils/css/tool.dart » ('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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 #library('css'); 5 library css;
6 6
7 #import('dart:math', prefix: 'Math'); 7 import 'dart:math' as Math;
8 #import("../lib/file_system.dart"); 8 import '../lib/file_system.dart';
9 #import('../lib/file_system_memory.dart'); 9 import '../lib/file_system_memory.dart';
10 10
11 #source('cssoptions.dart'); 11 part 'cssoptions.dart';
12 #source('source.dart'); 12 part 'source.dart';
13 #source('tokenkind.dart'); 13 part 'tokenkind.dart';
14 #source('token.dart'); 14 part 'token.dart';
15 #source('tokenizer_base.dart'); 15 part 'tokenizer_base.dart';
16 #source('tokenizer.dart'); 16 part 'tokenizer.dart';
17 #source('treebase.dart'); 17 part 'treebase.dart';
18 #source('tree.dart'); 18 part 'tree.dart';
19 #source('cssselectorexception.dart'); 19 part 'cssselectorexception.dart';
20 #source('cssworld.dart'); 20 part 'cssworld.dart';
21 #source('parser.dart'); 21 part 'parser.dart';
22 #source('validate.dart'); 22 part 'validate.dart';
23 #source('generate.dart'); 23 part 'generate.dart';
24 #source('world.dart'); 24 part 'world.dart';
25 25
26 26
27 void initCssWorld([bool commandLine = true]) { 27 void initCssWorld([bool commandLine = true]) {
28 FileSystem fs = new MemoryFileSystem(); 28 FileSystem fs = new MemoryFileSystem();
29 parseOptions([], fs); 29 parseOptions([], fs);
30 initializeWorld(fs); 30 initializeWorld(fs);
31 31
32 // TODO(terry): Should be set by arguments. When run as a tool these aren't 32 // TODO(terry): Should be set by arguments. When run as a tool these aren't
33 // set when run internaly set these so we can compile CSS and catch any 33 // set when run internaly set these so we can compile CSS and catch any
34 // problems programmatically. 34 // problems programmatically.
(...skipping 28 matching lines...) Expand all
63 output = prettyTree; 63 output = prettyTree;
64 } 64 }
65 } catch (e) { 65 } catch (e) {
66 String error = e.toString(); 66 String error = e.toString();
67 output = "$error\n$prettyTree"; 67 output = "$error\n$prettyTree";
68 throw e; 68 throw e;
69 } 69 }
70 70
71 return output; 71 return output;
72 } 72 }
OLDNEW
« no previous file with comments | « utils/archive/utils.dart ('k') | utils/css/tool.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698