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

Unified Diff: pkg/analysis_server/lib/src/status/ast_writer.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
Index: pkg/analysis_server/lib/src/status/ast_writer.dart
diff --git a/pkg/analysis_server/lib/src/status/ast_writer.dart b/pkg/analysis_server/lib/src/status/ast_writer.dart
index 424132e18d6bd2d1b492267da159174378d29cab..1b292d64d6b765cbe5e6c58f3d40bed55d0c15d9 100644
--- a/pkg/analysis_server/lib/src/status/ast_writer.dart
+++ b/pkg/analysis_server/lib/src/status/ast_writer.dart
@@ -62,6 +62,8 @@ class AstWriter extends UnifyingAstVisitor with TreeWriter {
properties['abstract keyword'] = node.abstractKeyword;
} else if (node is CompilationUnit) {
properties['element'] = node.element;
+ } else if (node is Configuration) {
+ properties['uriSource'] = node.uriSource;
} else if (node is ConstructorName) {
properties['static element'] = node.staticElement;
} else if (node is DeclaredIdentifier) {
@@ -69,7 +71,8 @@ class AstWriter extends UnifyingAstVisitor with TreeWriter {
properties['keyword'] = node.keyword;
} else if (node is ExportDirective) {
properties['element'] = node.element;
- properties['source'] = node.source;
+ properties['selectedSource'] = node.selectedSource;
+ properties['uriSource'] = node.uriSource;
} else if (node is FieldDeclaration) {
properties['static keyword'] = node.staticKeyword;
} else if (node is FormalParameter) {
@@ -88,7 +91,8 @@ class AstWriter extends UnifyingAstVisitor with TreeWriter {
properties['propagated type'] = node.propagatedType;
} else if (node is ImportDirective) {
properties['element'] = node.element;
- properties['source'] = node.source;
+ properties['selectedSource'] = node.selectedSource;
+ properties['uriSource'] = node.uriSource;
} else if (node is IndexExpression) {
properties['static element'] = node.staticElement;
properties['static type'] = node.staticType;
@@ -113,7 +117,7 @@ class AstWriter extends UnifyingAstVisitor with TreeWriter {
properties['propagated type'] = node.propagatedType;
} else if (node is PartDirective) {
properties['element'] = node.element;
- properties['source'] = node.source;
+ properties['uriSource'] = node.uriSource;
} else if (node is PartOfDirective) {
properties['element'] = node.element;
} else if (node is PostfixExpression) {
« no previous file with comments | « pkg/analysis_server/lib/src/services/correction/fix_internal.dart ('k') | pkg/analyzer/lib/context/declared_variables.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698