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

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

Issue 2107313002: Make SDK contexts visible on status page (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 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/analysis_server/lib/src/status/get_handler.dart ('k') | pkg/analyzer/lib/src/generated/sdk.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 706541ab2a3ec91a3b88907769e77d6efdef413a..abded102cd39d6c882b87c6d5933019ca80d878d 100644
--- a/pkg/analyzer/lib/src/generated/engine.dart
+++ b/pkg/analyzer/lib/src/generated/engine.dart
@@ -86,6 +86,12 @@ abstract class AnalysisContext {
static const List<AnalysisContext> EMPTY_LIST = const <AnalysisContext>[];
/**
+ * The file resolver provider used to override the way file URI's are
+ * resolved in some contexts.
+ */
+ ResolverProvider fileResolverProvider;
+
+ /**
* Return the set of analysis options controlling the behavior of this
* context. Clients should not modify the returned set of options. The options
* should only be set by invoking the method [setAnalysisOptions].
@@ -333,12 +339,6 @@ abstract class AnalysisContext {
bool exists(Source source);
/**
- * The file resolver provider used to override the way file URI's are
- * resolved in some contexts.
- */
- ResolverProvider fileResolverProvider;
-
- /**
* Return the element model corresponding to the compilation unit defined by
* the given [unitSource] in the library defined by the given [librarySource],
* or `null` if the element model does not currently exist or if the library
@@ -1095,6 +1095,14 @@ abstract class AnalysisOptions {
bool get enableTiming;
/**
+ * A flag indicating whether finer grained dependencies should be used
+ * instead of just source level dependencies.
+ *
+ * This option is experimental and subject to change.
+ */
+ bool get finerGrainedInvalidation;
+
+ /**
* Return `true` if errors, warnings and hints should be generated for sources
* that are implicitly being analyzed. The default value is `true`.
*/
@@ -1153,14 +1161,6 @@ abstract class AnalysisOptions {
bool get trackCacheDependencies;
/**
- * A flag indicating whether finer grained dependencies should be used
- * instead of just source level dependencies.
- *
- * This option is experimental and subject to change.
- */
- bool get finerGrainedInvalidation;
-
- /**
* Return an integer encoding of the values of the options that need to be the
* same across all of the contexts associated with partitions that are to be
* shared by a single analysis context.
@@ -1426,6 +1426,48 @@ class AnalysisOptionsImpl implements AnalysisOptions {
}
/**
+ * Produce a human readable list of option names corresponding to the options
+ * encoded in the given [encoding], presumably from invoking the method
+ * [encodeCrossContextOptions].
+ */
+ static String decodeCrossContextOptions(int encoding) {
+ if (encoding == 0) {
+ return 'none';
+ }
+ StringBuffer buffer = new StringBuffer();
+ bool needsSeparator = false;
+ void add(String optionName) {
+ if (needsSeparator) {
+ buffer.write(', ');
+ }
+ buffer.write(optionName);
+ needsSeparator = true;
+ }
+ if (encoding & ENABLE_ASSERT_FLAG > 0) {
+ add('assert');
+ }
+ if (encoding & ENABLE_ASYNC_FLAG > 0) {
+ add('async');
+ }
+ if (encoding & ENABLE_GENERIC_METHODS_FLAG > 0) {
+ add('genericMethods');
+ }
+ if (encoding & ENABLE_STRICT_CALL_CHECKS_FLAG > 0) {
+ add('strictCallChecks');
+ }
+ if (encoding & ENABLE_STRONG_MODE_FLAG > 0) {
+ add('strongMode');
+ }
+ if (encoding & ENABLE_STRONG_MODE_HINTS_FLAG > 0) {
+ add('strongModeHints');
+ }
+ if (encoding & ENABLE_SUPER_MIXINS_FLAG > 0) {
+ add('superMixins');
+ }
+ return buffer.toString();
+ }
+
+ /**
* Predicate used for [analyzeFunctionBodiesPredicate] when
* [analyzeFunctionBodies] is set to `true`.
*/
« no previous file with comments | « pkg/analysis_server/lib/src/status/get_handler.dart ('k') | pkg/analyzer/lib/src/generated/sdk.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698