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

Unified Diff: pkg/analyzer/lib/src/dart/ast/utilities.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/src/dart/ast/ast.dart ('k') | pkg/analyzer/lib/src/dart/element/builder.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « pkg/analyzer/lib/src/dart/ast/ast.dart ('k') | pkg/analyzer/lib/src/dart/element/builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698