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

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

Issue 2343103003: ImportElement/ExportElement 'uri' should be the selected URI. (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
Index: pkg/analyzer/lib/src/dart/ast/utilities.dart
diff --git a/pkg/analyzer/lib/src/dart/ast/utilities.dart b/pkg/analyzer/lib/src/dart/ast/utilities.dart
index 57e0ce074dd8964ea516390153395a6cbc634da9..e6bc9d770724b43c3fd4e3b8a5f695afed304434 100644
--- a/pkg/analyzer/lib/src/dart/ast/utilities.dart
+++ b/pkg/analyzer/lib/src/dart/ast/utilities.dart
@@ -384,6 +384,7 @@ class AstCloner implements AstVisitor<AstNode> {
cloneNodeList(node.configurations),
cloneNodeList(node.combinators),
cloneToken(node.semicolon));
+ directive.selectedUri = node.selectedUri;
directive.selectedSource = node.selectedSource;
directive.uriSource = node.uriSource;
directive.uriContent = node.uriContent;
@@ -559,6 +560,7 @@ class AstCloner implements AstVisitor<AstNode> {
cloneNode(node.prefix),
cloneNodeList(node.combinators),
cloneToken(node.semicolon));
+ directive.selectedUri = node.selectedUri;
directive.selectedSource = node.selectedSource;
directive.uriSource = node.uriSource;
directive.uriContent = node.uriContent;

Powered by Google App Engine
This is Rietveld 408576698