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

Unified Diff: pkg/analysis_services/test/completion/completion_test_util.dart

Issue 465843002: respect show/hide combinators when generating suggestions (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: address comments Created 6 years, 4 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_services/test/completion/completion_test_util.dart
diff --git a/pkg/analysis_services/test/completion/completion_test_util.dart b/pkg/analysis_services/test/completion/completion_test_util.dart
index d732b6ff6de88022c43bb4f5a5fed7e61d5910a4..91439e8f3a17a2ca54bf29ba62fe47f8860f8516 100644
--- a/pkg/analysis_services/test/completion/completion_test_util.dart
+++ b/pkg/analysis_services/test/completion/completion_test_util.dart
@@ -132,7 +132,8 @@ class AbstractCompletionTest extends AbstractContextTest {
..offset = completionOffset;
suggestions = [];
CompilationUnit unit = context.parseCompilationUnit(testSource);
- return computer.computeFast(unit, suggestions);
+ AstNode node = new NodeLocator.con1(completionOffset).searchWithin(unit);
+ return computer.computeFast(unit, node, suggestions);
}
Future<bool> computeFull() {
@@ -153,7 +154,8 @@ class AbstractCompletionTest extends AbstractContextTest {
expect(library, isNotNull);
var unit = context.getResolvedCompilationUnit(testSource, library);
expect(unit, isNotNull);
- return computer.computeFull(unit, suggestions);
+ AstNode node = new NodeLocator.con1(completionOffset).searchWithin(unit);
+ return computer.computeFull(unit, node, suggestions);
}
@override

Powered by Google App Engine
This is Rietveld 408576698