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

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

Issue 1097973002: suggest types in var declaration when partial type name supplied (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merge Created 5 years, 8 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
« no previous file with comments | « pkg/analysis_server/test/services/completion/completion_test_util.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/test/services/completion/optype_test.dart
diff --git a/pkg/analysis_server/test/services/completion/optype_test.dart b/pkg/analysis_server/test/services/completion/optype_test.dart
index 3e487c871d88b38a2c900b0d4b91df971b5677eb..5c2149f756d5272f14db7cb8989beb28778a7eef 100644
--- a/pkg/analysis_server/test/services/completion/optype_test.dart
+++ b/pkg/analysis_server/test/services/completion/optype_test.dart
@@ -207,6 +207,31 @@ class OpTypeTest {
assertOpType(returnValue: true, typeNames: true, voidReturn: true);
}
+ test_Block_final() {
+ addTestSource('main() {final ^}');
+ assertOpType(typeNames: true);
+ }
+
+ test_Block_final2() {
+ addTestSource('main() {final S^ v;}');
+ assertOpType(typeNames: true);
+ }
+
+ test_Block_final3() {
+ addTestSource('main() {final ^ v;}');
+ assertOpType(typeNames: true);
+ }
+
+ test_Block_final_final() {
+ addTestSource('main() {final ^ final S x;}');
+ assertOpType(typeNames: true);
+ }
+
+ test_Block_final_final2() {
+ addTestSource('main() {final S^ final S x;}');
+ assertOpType(typeNames: true);
+ }
+
test_Block_identifier_partial() {
addTestSource('class X {a() {var f; {var x;} D^ var r;} void b() { }}');
assertOpType(returnValue: true, typeNames: true, voidReturn: true);
« no previous file with comments | « pkg/analysis_server/test/services/completion/completion_test_util.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698