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

Unified Diff: pkg/analysis_server/lib/src/services/completion/dart/uri_contributor.dart

Issue 2537513004: Read overlay content when computing completions (issue 27887) (Closed)
Patch Set: Created 4 years, 1 month 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/analysis_server/lib/src/services/completion/dart/local_reference_contributor.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/services/completion/dart/uri_contributor.dart
diff --git a/pkg/analysis_server/lib/src/services/completion/dart/uri_contributor.dart b/pkg/analysis_server/lib/src/services/completion/dart/uri_contributor.dart
index 802beae8e8ee756bde1f5e9df20cd8e1a9c9fa4f..b2b624df2ae4e1064e51b0ddcc5c039fefd38081 100644
--- a/pkg/analysis_server/lib/src/services/completion/dart/uri_contributor.dart
+++ b/pkg/analysis_server/lib/src/services/completion/dart/uri_contributor.dart
@@ -66,7 +66,7 @@ class _UriSuggestionBuilder extends SimpleAstVisitor {
// Quoted empty string
visitSimpleStringLiteral(uri);
} else {
- String data = request.source.contents.data;
+ String data = request.sourceContents;
if (end == data.length) {
String ch = data[end - 1];
if (ch != '"' && ch != "'") {
@@ -78,7 +78,7 @@ class _UriSuggestionBuilder extends SimpleAstVisitor {
}
}
} else if (offset == start && offset == end) {
- String data = request.source.contents.data;
+ String data = request.sourceContents;
if (end == data.length) {
String ch = data[end - 1];
if (ch == '"' || ch == "'") {
« no previous file with comments | « pkg/analysis_server/lib/src/services/completion/dart/local_reference_contributor.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698