| 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 'file_system/path.dart'; | 8 import 'file_system/path.dart'; |
| 9 import 'info.dart'; | 9 import 'info.dart'; |
| 10 | 10 |
| 11 /** An input file to process by the template compiler. */ | 11 /** An input file to process by the template compiler. */ |
| 12 class SourceFile { | 12 class SourceFile { |
| 13 final Path path; | 13 final Path path; |
| 14 | 14 |
| 15 final bool isDart; | 15 final bool isDart; |
| 16 Document document; | 16 Document document; |
| 17 String code; | 17 String code; |
| 18 | 18 |
| 19 SourceFile(this.path, {this.isDart: false}); | 19 SourceFile(this.path, {this.isDart: false}); |
| 20 | 20 |
| 21 String toString() => "<#SourceFile $path>"; | 21 String toString() => "<#SourceFile $path>"; |
| 22 } | 22 } |
| 23 | 23 |
| 24 /** An output file to generated by the template compiler. */ | 24 /** An output file to generated by the template compiler. */ |
| 25 class OutputFile { | 25 class OutputFile { |
| 26 final Path path; | 26 final Path path; |
| 27 final String contents; | 27 final String contents; |
| 28 | 28 |
| 29 /** | 29 /** |
| 30 * Path to the source file that was transformed into this OutputFile, `null` | 30 * Path to the source file that was transformed into this OutputFile, `null` |
| 31 * for files that are generated and do not correspond to an input | 31 * for files that are generated and do not correspond to an input |
| 32 * [SourceFile]. | 32 * [SourceFile]. |
| 33 */ | 33 */ |
| 34 final Path source; | 34 final Path source; |
| 35 | 35 |
| 36 OutputFile(this.path, this.contents, {Path source}) | 36 OutputFile(this.path, this.contents, {Path source}) |
| 37 : source = source; | 37 : source = source; |
| 38 } | 38 } |
| OLD | NEW |