OLD | NEW |
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 files; | 5 library files; |
6 | 6 |
7 import 'package:html5lib/dom.dart'; | 7 import 'package:html5lib/dom.dart'; |
8 import 'info.dart'; | |
9 | 8 |
10 /** An input file to process by the template compiler. */ | 9 /** An input file to process by the template compiler. */ |
11 class SourceFile { | 10 class SourceFile { |
12 static const int HTML = 1; | 11 static const int HTML = 1; |
13 static const int DART = 2; | 12 static const int DART = 2; |
14 static const int STYLESHEET = 3; | 13 static const int STYLESHEET = 3; |
15 | 14 |
16 final String path; | 15 final String path; |
17 final int type; | 16 final int type; |
18 | 17 |
(...skipping 20 matching lines...) Expand all Loading... |
39 * Path to the source file that was transformed into this OutputFile, `null` | 38 * Path to the source file that was transformed into this OutputFile, `null` |
40 * for files that are generated and do not correspond to an input | 39 * for files that are generated and do not correspond to an input |
41 * [SourceFile]. | 40 * [SourceFile]. |
42 */ | 41 */ |
43 final String source; | 42 final String source; |
44 | 43 |
45 OutputFile(this.path, this.contents, {this.source}); | 44 OutputFile(this.path, this.contents, {this.source}); |
46 | 45 |
47 String toString() => "#<OutputFile $path>"; | 46 String toString() => "#<OutputFile $path>"; |
48 } | 47 } |
OLD | NEW |