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

Unified Diff: pkg/analysis_server/test/services/completion/completion_test_util.dart

Issue 1303233008: improve keyword suggestions - fixes #24016 (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: merge Created 5 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_server/test/services/completion/completion_test_util.dart
diff --git a/pkg/analysis_server/test/services/completion/completion_test_util.dart b/pkg/analysis_server/test/services/completion/completion_test_util.dart
index 453cdd3e317198d12baf7fb84162004302d39620..2e357d67c5cd217867e3d623b7ddaed7915cd0f7 100644
--- a/pkg/analysis_server/test/services/completion/completion_test_util.dart
+++ b/pkg/analysis_server/test/services/completion/completion_test_util.dart
@@ -4291,11 +4291,12 @@ abstract class AbstractSelectorSuggestionTest extends AbstractCompletionTest {
test_SwitchStatement_case() {
// SwitchStatement Block BlockFunctionBody MethodDeclaration
- addTestSource('class A {String g(int x) {switch(x) {case 0: ^}}}');
+ addTestSource('class A {String g(int x) {var t; switch(x) {case 0: ^}}}');
computeFast();
return computeFull((bool result) {
assertSuggestLocalClass('A');
assertSuggestLocalMethod('g', 'A', 'String');
+ assertSuggestLocalVariable('t', null);
assertSuggestImportedClass('String');
});
}

Powered by Google App Engine
This is Rietveld 408576698