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

Side by Side Diff: lib/src/files.dart

Issue 12225039: Support for observable models, fixes #259 (Closed) Base URL: https://github.com/dart-lang/web-ui.git@master
Patch Set: Created 7 years, 10 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 unified diff | Download patch
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 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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698