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

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

Issue 1273773005: fix completion after dot-keyword - fixes #23882 (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_target_test.dart
diff --git a/pkg/analysis_server/test/services/completion/completion_target_test.dart b/pkg/analysis_server/test/services/completion/completion_target_test.dart
index f563dfdb96c6dd4822930efec3c62421a0c7fdc6..35bd5dafbc21d4139bc50a86963c309e9ae73cda 100644
--- a/pkg/analysis_server/test/services/completion/completion_target_test.dart
+++ b/pkg/analysis_server/test/services/completion/completion_target_test.dart
@@ -139,6 +139,16 @@ class CompletionTargetTest extends AbstractContextTest {
assertTarget('}', '{}');
}
+ test_Block_keyword() {
+ addTestSource('class C { static C get instance => null; } main() {C.in^}');
+ assertTarget('in', 'C.in');
+ }
+
+ test_Block_keyword2() {
+ addTestSource('class C { static C get instance => null; } main() {C.i^n}');
+ assertTarget('in', 'C.in');
+ }
+
test_FormalParameter_partialType() {
// SimpleIdentifier PrefixedIdentifier TypeName
addTestSource('foo(b.^ f) { }');

Powered by Google App Engine
This is Rietveld 408576698