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

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

Issue 965753003: fix invocation completion with trailing stmt (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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/invocation_computer_test.dart
diff --git a/pkg/analysis_server/test/services/completion/invocation_computer_test.dart b/pkg/analysis_server/test/services/completion/invocation_computer_test.dart
index 4025bdbc2f93e7a858a7a302c6413b9167643bc8..f2be3fd1a198e4f9823f1ae2887585f7464cf2f8 100644
--- a/pkg/analysis_server/test/services/completion/invocation_computer_test.dart
+++ b/pkg/analysis_server/test/services/completion/invocation_computer_test.dart
@@ -64,6 +64,15 @@ void f(Derived d) {
});
}
+ fail_test_PrefixedIdentifier_trailingStmt_const_untyped() {
+ // SimpleIdentifier PrefixedIdentifier ExpressionStatement
+ addTestSource('const g = "hello"; f() {g.^ int y = 0;}');
+ computeFast();
+ return computeFull((bool result) {
+ assertSuggestInvocationGetter('length', 'int');
+ });
+ }
+
@override
void setUpComputer() {
computer = new InvocationComputer();

Powered by Google App Engine
This is Rietveld 408576698