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

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

Issue 1403033002: State-carrying context API. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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 | no next file » | 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 7ec28c5793280c0b899a70607590afc5c110eea5..9c37c3646f495da987dc541b77f89bc1f52b0b2f 100644
--- a/pkg/analyzer/lib/src/generated/engine.dart
+++ b/pkg/analyzer/lib/src/generated/engine.dart
@@ -470,6 +470,12 @@ abstract class AnalysisContext {
String computeDocumentationComment(Element element);
/**
+ * Return the stored state associated with the given object key. In case no
+ * state has been associated with the given [key], returns `null`.
+ */
+ Object getState(Object key);
+
+ /**
* Return a list containing all of the errors associated with the given
* [source]. If the errors are not already known then the source will be
* analyzed in order to determine the errors associated with it.
@@ -894,6 +900,11 @@ abstract class AnalysisContext {
void setContents(Source source, String contents);
/**
+ * Associate this [state] object with the given state [key].
Brian Wilkerson 2015/10/13 20:50:58 "state [key]" --> "[key]" Perhaps a Dart-like @se
+ */
+ void setState(Object key, Object state);
+
+ /**
* Check the cache for any invalid entries (entries whose modification time
* does not match the modification time of the source associated with the
* entry). Invalid entries will be marked as invalid so that the source will
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698