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

Unified Diff: pkg/analyzer/lib/src/generated/engine.dart

Issue 1200913002: Deprecate old 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 | « pkg/analyzer/lib/src/context/context.dart ('k') | pkg/analyzer/test/generated/engine_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/engine.dart
diff --git a/pkg/analyzer/lib/src/generated/engine.dart b/pkg/analyzer/lib/src/generated/engine.dart
index 259c4d8fb25af8e44c8eca4db0de2c3a1888728c..27e3f9a7e76fc8de8d03d404868291159a73d640 100644
--- a/pkg/analyzer/lib/src/generated/engine.dart
+++ b/pkg/analyzer/lib/src/generated/engine.dart
@@ -488,6 +488,7 @@ abstract class AnalysisContext {
*
* See [getHtmlElement].
*/
+ @deprecated
HtmlElement computeHtmlElement(Source source);
/**
@@ -608,6 +609,7 @@ abstract class AnalysisContext {
*
* See [computeHtmlElement].
*/
+ @deprecated
HtmlElement getHtmlElement(Source source);
/**
@@ -708,6 +710,7 @@ abstract class AnalysisContext {
*
* See [resolveHtmlUnit].
*/
+ @deprecated
ht.HtmlUnit getResolvedHtmlUnit(Source htmlSource);
/**
@@ -1692,6 +1695,7 @@ class AnalysisContextImpl implements InternalAnalysisContext {
source, DartEntry.EXPORTED_LIBRARIES, Source.EMPTY_LIST);
@override
+ @deprecated
HtmlElement computeHtmlElement(Source source) =>
_getHtmlResolutionData(source, HtmlEntry.ELEMENT, null);
@@ -1937,6 +1941,7 @@ class AnalysisContextImpl implements InternalAnalysisContext {
}
@override
+ @deprecated
HtmlElement getHtmlElement(Source source) {
SourceEntry sourceEntry = getReadableSourceEntryOrNull(source);
if (sourceEntry is HtmlEntry) {
@@ -2135,6 +2140,7 @@ class AnalysisContextImpl implements InternalAnalysisContext {
}
@override
+ @deprecated
ht.HtmlUnit getResolvedHtmlUnit(Source htmlSource) {
SourceEntry sourceEntry = getReadableSourceEntryOrNull(htmlSource);
if (sourceEntry is HtmlEntry) {
@@ -2540,6 +2546,7 @@ class AnalysisContextImpl implements InternalAnalysisContext {
unitSource, librarySource, DartEntry.RESOLVED_UNIT, null);
@override
+ @deprecated
ht.HtmlUnit resolveHtmlUnit(Source htmlSource) {
computeHtmlElement(htmlSource);
return parseHtmlUnit(htmlSource);
« no previous file with comments | « pkg/analyzer/lib/src/context/context.dart ('k') | pkg/analyzer/test/generated/engine_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698