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

Unified Diff: pkg/analyzer/lib/src/summary/idl.dart

Issue 2342893002: Issue 27044. Summarize configurations of imports and exports, AST based. (Closed)
Patch Set: No equality test means '== true'. Created 4 years, 3 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/src/summary/idl.dart
diff --git a/pkg/analyzer/lib/src/summary/idl.dart b/pkg/analyzer/lib/src/summary/idl.dart
index 3cd65626fcc405d53ee3580ef1fbb6a269ac0726..51737b27f4aada27157d59f0d19645c32ab96c5d 100644
--- a/pkg/analyzer/lib/src/summary/idl.dart
+++ b/pkg/analyzer/lib/src/summary/idl.dart
@@ -1130,6 +1130,31 @@ abstract class UnlinkedCombinator extends base.SummaryClass {
}
/**
+ * Unlinked summary information about a single import or export configuration.
+ */
+abstract class UnlinkedConfiguration extends base.SummaryClass {
+ /**
+ * The name of the declared variable whose value is being used in the
+ * condition.
+ */
+ @Id(0)
+ String get name;
+
+ /**
+ * The URI of the implementation library to be used if the condition is true.
+ */
+ @Id(2)
+ String get uri;
+
+ /**
+ * The value to which the value of the declared variable will be compared,
+ * or `true` if the condition does not include an equality test.
+ */
+ @Id(1)
+ String get value;
+}
+
+/**
* Unlinked summary information about a compile-time constant expression, or a
* potentially constant expression.
*
@@ -2063,12 +2088,19 @@ abstract class UnlinkedExportNonPublic extends base.SummaryClass {
*/
abstract class UnlinkedExportPublic extends base.SummaryClass {
/**
- * Combinators contained in this import declaration.
+ * Combinators contained in this export declaration.
*/
@Id(1)
List<UnlinkedCombinator> get combinators;
/**
+ * Configurations used to control which library will actually be loaded at
+ * run-time.
+ */
+ @Id(2)
+ List<UnlinkedConfiguration> get configurations;
+
+ /**
* URI used in the source code to reference the exported library.
*/
@Id(0)
@@ -2186,6 +2218,13 @@ abstract class UnlinkedImport extends base.SummaryClass {
List<UnlinkedCombinator> get combinators;
/**
+ * Configurations used to control which library will actually be loaded at
+ * run-time.
+ */
+ @Id(10)
+ List<UnlinkedConfiguration> get configurations;
+
+ /**
* Indicates whether the import declaration uses the `deferred` keyword.
*/
@Id(9)
« no previous file with comments | « pkg/analyzer/lib/src/summary/format.fbs ('k') | pkg/analyzer/lib/src/summary/public_namespace_computer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698