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

Unified Diff: pkg/analyzer/lib/dart/ast/ast.dart

Issue 2345773003: Use declared variables to select the correct configuration for resolution (Closed)
Patch Set: 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
« no previous file with comments | « pkg/analyzer/lib/context/declared_variables.dart ('k') | pkg/analyzer/lib/src/dart/ast/ast.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/dart/ast/ast.dart
diff --git a/pkg/analyzer/lib/dart/ast/ast.dart b/pkg/analyzer/lib/dart/ast/ast.dart
index 6754062f23e5797a7f10c5cd53045affb4a2f27b..5132c1ef5cc9f6fca272690a7bd30c53144b304e 100644
--- a/pkg/analyzer/lib/dart/ast/ast.dart
+++ b/pkg/analyzer/lib/dart/ast/ast.dart
@@ -2070,6 +2070,16 @@ abstract class Configuration extends AstNode {
void set rightParenthesis(Token token);
/**
+ * Return the source to which the [libraryUri] was resolved.
+ */
+ Source get uriSource;
+
+ /**
+ * Set the source to which the [libraryUri] was resolved to the given [source].
+ */
+ void set uriSource(Source source);
+
+ /**
* Return the value to which the value of the declared variable will be
* compared, or `null` if the condition does not include an equality test.
*/
@@ -5928,6 +5938,14 @@ abstract class NamespaceDirective extends UriBasedDirective {
void set keyword(Token token);
/**
+ * Return the source that was selected based on the declared variables. This
+ * will be the source from the first configuration whose condition is true, or
+ * the [uriSource] if either there are no configurations or if there are no
+ * configurations whose condition is true.
+ */
+ Source get selectedSource;
+
+ /**
* Return the semicolon terminating the directive.
*/
Token get semicolon;
@@ -7851,11 +7869,13 @@ abstract class UriBasedDirective extends Directive {
/**
* Return the source to which the URI was resolved.
*/
+ @deprecated
Source get source;
/**
* Set the source to which the URI was resolved to the given [source].
*/
+ @deprecated
void set source(Source source);
/**
@@ -7869,24 +7889,34 @@ abstract class UriBasedDirective extends Directive {
void set uri(StringLiteral uri);
/**
- * Return the content of the URI.
+ * Return the content of the [uri].
*/
String get uriContent;
/**
- * Set the content of the URI to the given [content].
+ * Set the content of the [uri] to the given [content].
*/
void set uriContent(String content);
/**
- * Return the element associated with the URI of this directive, or `null` if
- * the AST structure has not been resolved or if the URI could not be
+ * Return the element associated with the [uri] of this directive, or `null`
+ * if the AST structure has not been resolved or if the URI could not be
* resolved. Examples of the latter case include a directive that contains an
* invalid URL or a URL that does not exist.
*/
Element get uriElement;
/**
+ * Return the source to which the [uri] was resolved.
+ */
+ Source get uriSource;
+
+ /**
+ * Set the source to which the [uri] was resolved to the given [source].
+ */
+ void set uriSource(Source source);
+
+ /**
* Validate this directive, but do not check for existence. Return a code
* indicating the problem if there is one, or `null` no problem
*/
« no previous file with comments | « pkg/analyzer/lib/context/declared_variables.dart ('k') | pkg/analyzer/lib/src/dart/ast/ast.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698