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

Issue 1127643003: suggest only superclass elements for "super." (Closed)

Created:
5 years, 7 months ago by danrubel
Modified:
5 years, 7 months ago
Reviewers:
Paul Berry
CC:
reviews_dartlang.org
Target Ref:
refs/remotes/git-svn
Visibility:
Public.

Description

suggest only superclass elements for "super." BUG=dartbug.com/23208 R=paulberry@google.com Committed: https://code.google.com/p/dart/source/detail?r=45535

Patch Set 1 #

Patch Set 2 : fix test #

Total comments: 2

Patch Set 3 : suggest only superclass elements for "super." #

Patch Set 4 : merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -6 lines) Patch
M pkg/analysis_server/lib/src/services/completion/prefixed_element_contributor.dart View 1 chunk +2 lines, -1 line 0 comments Download
M pkg/analysis_server/lib/src/services/completion/suggestion_builder.dart View 1 2 3 chunks +12 lines, -3 lines 0 comments Download
M pkg/analysis_server/test/completion_test.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/test/services/completion/completion_test_util.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/test/services/completion/prefixed_element_contributor_test.dart View 1 2 1 chunk +41 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
danrubel
5 years, 7 months ago (2015-05-05 01:46:46 UTC) #2
Paul Berry
lgtm assuming issue below is addressed. Also, consider rephrasing the commit message, since what we're ...
5 years, 7 months ago (2015-05-05 02:41:28 UTC) #3
danrubel
Committed patchset #4 (id:60001) manually as 45535 (presubmit successful).
5 years, 7 months ago (2015-05-05 19:10:03 UTC) #4
danrubel
5 years, 7 months ago (2015-05-05 20:03:18 UTC) #5
Message was sent while issue was closed.
https://codereview.chromium.org/1127643003/diff/20001/pkg/analysis_server/lib...
File pkg/analysis_server/lib/src/services/completion/suggestion_builder.dart
(right):

https://codereview.chromium.org/1127643003/diff/20001/pkg/analysis_server/lib...
pkg/analysis_server/lib/src/services/completion/suggestion_builder.dart:356: //
Do not suggest members from the target type if the target is "super"
On 2015/05/05 02:41:27, Paul Berry wrote:
> If the target is "super", then members from interfaces shouldn't be suggested
> either, e.g.:
> 
> class B {
>   foo() {}
> }
> class I {
>   bar() {}
> }
> class C extends B implements I {
>   baz() {
>     super.^
>   }
> }
> 
> should not show bar() as a suggestion, since super can't be used to call
methods
> defined in interfaces.  (Note that the analyzer's resolution engine currently
> gets this wrong--see dartbug.com/23380)

Great point. Fixed.

Powered by Google App Engine
This is Rietveld 408576698