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

Unified Diff: pkg/analyzer/lib/task/html.dart

Issue 1185443002: Support for parsing HTML in the new task model (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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
Index: pkg/analyzer/lib/task/html.dart
diff --git a/pkg/analyzer/lib/task/html.dart b/pkg/analyzer/lib/task/html.dart
new file mode 100644
index 0000000000000000000000000000000000000000..d7642a22d29cf6c9ce5b2afc8439214d0bf904f6
--- /dev/null
+++ b/pkg/analyzer/lib/task/html.dart
@@ -0,0 +1,21 @@
+// Copyright (c) 2015, 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 analyzer.task.html;
+
+import 'package:analyzer/task/model.dart';
+import 'package:html/dom.dart';
+import 'package:html/parser.dart';
+
+/**
+ * The result of parsing an HTML file.
+ */
+final ResultDescriptor<Document> DOCUMENT =
+ new ResultDescriptor<Document>('DOCUMENT', null);
+
+/**
+ * The errors found while parsing an HTML file.
+ */
+final ResultDescriptor<List<ParseError>> DOCUMENT_ERRORS =
scheglov 2015/06/11 20:17:30 ListResultDescriptor?
Brian Wilkerson 2015/06/11 20:23:29 Done
+ new ResultDescriptor<List<ParseError>>('DOCUMENT_ERRORS', null);

Powered by Google App Engine
This is Rietveld 408576698