| OLD | NEW |
| 1 // Copyright (c) 2011, 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('template'); | 5 #library('template'); |
| 6 | 6 |
| 7 #import('dart:math', prefix: 'Math'); |
| 7 #import('../css/css.dart', prefix:'css'); | 8 #import('../css/css.dart', prefix:'css'); |
| 8 #import('../lib/file_system_memory.dart'); | 9 #import('../lib/file_system_memory.dart'); |
| 9 | 10 |
| 10 #source('tokenkind.dart'); | 11 #source('tokenkind.dart'); |
| 11 #source('token.dart'); | 12 #source('token.dart'); |
| 12 #source('source.dart'); | 13 #source('source.dart'); |
| 13 #source('tokenizer_base.dart'); | 14 #source('tokenizer_base.dart'); |
| 14 #source('tokenizer.dart'); | 15 #source('tokenizer.dart'); |
| 15 #source('parser.dart'); | 16 #source('parser.dart'); |
| 16 #source('codegen.dart'); | 17 #source('codegen.dart'); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 37 // TODO(terry): Add obfuscation mapping file. | 38 // TODO(terry): Add obfuscation mapping file. |
| 38 List<Template> templateParseAndValidate(String template) { | 39 List<Template> templateParseAndValidate(String template) { |
| 39 Parser parser = new Parser(new SourceFile(SourceFile.IN_MEMORY_FILE, | 40 Parser parser = new Parser(new SourceFile(SourceFile.IN_MEMORY_FILE, |
| 40 template)); | 41 template)); |
| 41 | 42 |
| 42 return parser.parse(); | 43 return parser.parse(); |
| 43 // if (tree != null) { | 44 // if (tree != null) { |
| 44 // Validate.template(tree.selectors, world); | 45 // Validate.template(tree.selectors, world); |
| 45 // } | 46 // } |
| 46 } | 47 } |
| OLD | NEW |