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

Unified Diff: pkg/polymer/lib/src/files.dart

Issue 23898009: Switch polymer's build.dart to use the new linter. This CL does the following (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: addressing john comments (part 2) - renamed files Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/polymer/lib/src/file_system/console.dart ('k') | pkg/polymer/lib/src/info.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/lib/src/files.dart
diff --git a/pkg/polymer/lib/src/files.dart b/pkg/polymer/lib/src/files.dart
deleted file mode 100644
index 9fea763be29c28c25adb3b6b0e138bfb389ae157..0000000000000000000000000000000000000000
--- a/pkg/polymer/lib/src/files.dart
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-library files;
-
-import 'package:html5lib/dom.dart';
-
-/** An input file to process by the template compiler. */
-class SourceFile {
- static const int HTML = 1;
- static const int DART = 2;
- static const int STYLESHEET = 3;
-
- final String path;
- final int type;
-
- Document document;
-
- /** Dart code or contents of a linked style sheet. */
- String code;
-
- SourceFile(this.path, {this.type: HTML});
-
- bool get isDart => type == DART;
- bool get isHtml => type == HTML;
- bool get isStyleSheet => type == STYLESHEET;
-
- String toString() => "#<SourceFile $path>";
-}
-
-/** An output file to generated by the template compiler. */
-class OutputFile {
- final String path;
- final String contents;
-
- /**
- * Path to the source file that was transformed into this OutputFile, `null`
- * for files that are generated and do not correspond to an input
- * [SourceFile].
- */
- final String source;
-
- OutputFile(this.path, this.contents, {this.source});
-
- String toString() => "#<OutputFile $path>";
-}
« no previous file with comments | « pkg/polymer/lib/src/file_system/console.dart ('k') | pkg/polymer/lib/src/info.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698