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 c1283439cf37fcb0135cd1742c262768cf8583a2..5dd530212869082ee77d581a7e6091a5c0271023 100644 |
--- a/pkg/analyzer/lib/src/dart/ast/utilities.dart |
+++ b/pkg/analyzer/lib/src/dart/ast/utilities.dart |
@@ -11,6 +11,7 @@ import 'package:analyzer/dart/ast/token.dart'; |
import 'package:analyzer/dart/ast/visitor.dart'; |
import 'package:analyzer/dart/element/element.dart'; |
import 'package:analyzer/exception/exception.dart'; |
+import 'package:analyzer/src/dart/ast/ast.dart'; |
import 'package:analyzer/src/dart/ast/token.dart'; |
import 'package:analyzer/src/generated/engine.dart' show AnalysisEngine; |
import 'package:analyzer/src/generated/utilities_collection.dart' show TokenMap; |
@@ -374,7 +375,7 @@ class AstCloner implements AstVisitor<AstNode> { |
@override |
ExportDirective visitExportDirective(ExportDirective node) { |
- ExportDirective directive = new ExportDirective( |
+ ExportDirectiveImpl directive = new ExportDirective( |
cloneNode(node.documentationComment), |
cloneNodeList(node.metadata), |
cloneToken(node.keyword), |
@@ -382,7 +383,8 @@ class AstCloner implements AstVisitor<AstNode> { |
cloneNodeList(node.configurations), |
cloneNodeList(node.combinators), |
cloneToken(node.semicolon)); |
- directive.source = node.source; |
+ directive.selectedSource = node.selectedSource; |
+ directive.uriSource = node.uriSource; |
directive.uriContent = node.uriContent; |
return directive; |
} |
@@ -545,7 +547,7 @@ class AstCloner implements AstVisitor<AstNode> { |
@override |
ImportDirective visitImportDirective(ImportDirective node) { |
- ImportDirective directive = new ImportDirective( |
+ ImportDirectiveImpl directive = new ImportDirective( |
cloneNode(node.documentationComment), |
cloneNodeList(node.metadata), |
cloneToken(node.keyword), |
@@ -556,7 +558,8 @@ class AstCloner implements AstVisitor<AstNode> { |
cloneNode(node.prefix), |
cloneNodeList(node.combinators), |
cloneToken(node.semicolon)); |
- directive.source = node.source; |
+ directive.selectedSource = node.selectedSource; |
+ directive.uriSource = node.uriSource; |
directive.uriContent = node.uriContent; |
return directive; |
} |
@@ -704,7 +707,7 @@ class AstCloner implements AstVisitor<AstNode> { |
cloneToken(node.partKeyword), |
cloneNode(node.uri), |
cloneToken(node.semicolon)); |
- directive.source = node.source; |
+ directive.uriSource = node.uriSource; |
directive.uriContent = node.uriContent; |
return directive; |
} |