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

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

Issue 1182303006: Re-enable and add new HTML support (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Move a private constant 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
index f03e0f9d56369e2bdbf0f9aa8af6a5d43ec160c0..f63d72eba0037f3cf6a59a4172f94d10c7640304 100644
--- a/pkg/analyzer/lib/task/html.dart
+++ b/pkg/analyzer/lib/task/html.dart
@@ -4,18 +4,26 @@
library analyzer.task.html;
-//import 'package:analyzer/task/model.dart';
-//import 'package:html/dom.dart';
-//import 'package:html/parser.dart';
+import 'package:analyzer/src/generated/error.dart';
+import 'package:analyzer/src/generated/source.dart';
+import 'package:analyzer/task/model.dart';
+import 'package:html/dom.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 ListResultDescriptor<ParseError> DOCUMENT_ERRORS =
-// new ListResultDescriptor<ParseError>('DOCUMENT_ERRORS', <ParseError>[]);
+/**
+ * The result of parsing an HTML file.
+ */
+final ResultDescriptor<Document> DOCUMENT =
+ new ResultDescriptor<Document>('DOCUMENT', null);
+
+/**
+ * The analysis errors associated with a [Source] representing an HTML file.
+ */
+final ListResultDescriptor<AnalysisError> HTML_ERRORS =
+ new ListResultDescriptor<AnalysisError>(
+ 'HTML_ERRORS', AnalysisError.NO_ERRORS);
+
+/**
+ * The sources of the Dart libraries referenced by an HTML file.
+ */
+final ListResultDescriptor<Source> REFERENCED_LIBRARIES =
+ new ListResultDescriptor<Source>('REFERENCED_LIBRARIES', Source.EMPTY_LIST);

Powered by Google App Engine
This is Rietveld 408576698