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

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

Issue 1177983003: (TBR) Attempt to fix the build by backing out HTML support (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
« no previous file with comments | « no previous file | pkg/analyzer/lib/task/html.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/task/html.dart
diff --git a/pkg/analyzer/lib/src/task/html.dart b/pkg/analyzer/lib/src/task/html.dart
index 91f5db7f86bd563ef4f92c0c470e76c8de8a6748..ab0b9b53b1f800d16e56ec5e2e1d82358f5fa85c 100644
--- a/pkg/analyzer/lib/src/task/html.dart
+++ b/pkg/analyzer/lib/src/task/html.dart
@@ -10,8 +10,8 @@ import 'package:analyzer/src/task/general.dart';
import 'package:analyzer/task/general.dart';
import 'package:analyzer/task/html.dart';
import 'package:analyzer/task/model.dart';
-import 'package:html/dom.dart';
-import 'package:html/parser.dart';
+//import 'package:html/dom.dart';
+//import 'package:html/parser.dart';
/**
* A task that scans the content of a file, producing a set of Dart tokens.
@@ -26,7 +26,8 @@ class ParseHtmlTask extends SourceBasedAnalysisTask {
* The task descriptor describing this kind of task.
*/
static final TaskDescriptor DESCRIPTOR = new TaskDescriptor('ParseHtmlTask',
- createTask, buildInputs, <ResultDescriptor>[DOCUMENT, DOCUMENT_ERRORS]);
+ createTask, buildInputs,
+ <ResultDescriptor>[/*DOCUMENT, DOCUMENT_ERRORS*/]);
/**
* Initialize a newly created task to access the content of the source
@@ -40,14 +41,14 @@ class ParseHtmlTask extends SourceBasedAnalysisTask {
@override
void internalPerform() {
- String content = getRequiredInput(CONTENT_INPUT_NAME);
-
- HtmlParser parser = new HtmlParser(content);
- Document document = parser.parse();
- List<ParseError> errors = parser.errors;
-
- outputs[DOCUMENT] = document;
- outputs[DOCUMENT_ERRORS] = errors;
+// String content = getRequiredInput(CONTENT_INPUT_NAME);
+//
+// HtmlParser parser = new HtmlParser(content);
+// Document document = parser.parse();
+// List<ParseError> errors = parser.errors;
+//
+// outputs[DOCUMENT] = document;
+// outputs[DOCUMENT_ERRORS] = errors;
}
/**
« no previous file with comments | « no previous file | pkg/analyzer/lib/task/html.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698