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

Issue 1477953002: Fix propagated argument element bug. This fixes #25040. (Closed)

Created:
5 years ago by Leaf
Modified:
5 years ago
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fix propagated argument element bug. This fixes #25040. BUG= R=brianwilkerson@google.com Committed: https://github.com/dart-lang/sdk/commit/77bd51c2dc4b9c5d3d761f90fab6713198b1b827

Patch Set 1 #

Total comments: 4

Patch Set 2 : Add failing test for static/propagated elements #

Patch Set 3 : Alternate fix #

Patch Set 4 : Alternate fix 2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -20 lines) Patch
M pkg/analyzer/lib/src/generated/element_resolver.dart View 1 2 3 1 chunk +8 lines, -4 lines 0 comments Download
M pkg/analyzer/test/generated/resolver_test.dart View 1 2 5 chunks +70 lines, -16 lines 0 comments Download

Messages

Total messages: 18 (2 generated)
Leaf
Invocations of prefixed identifiers have propagated parameter elements, whereas invocations of non-prefixed identifiers don't (see ...
5 years ago (2015-11-25 20:42:52 UTC) #2
Brian Wilkerson
https://codereview.chromium.org/1477953002/diff/1/pkg/analyzer/lib/src/generated/static_type_analyzer.dart File pkg/analyzer/lib/src/generated/static_type_analyzer.dart (right): https://codereview.chromium.org/1477953002/diff/1/pkg/analyzer/lib/src/generated/static_type_analyzer.dart#newcode1727 pkg/analyzer/lib/src/generated/static_type_analyzer.dart:1727: correspondingPropagatedParams; I don't understand why we would need to ...
5 years ago (2015-11-25 21:39:40 UTC) #3
Jennifer Messerly
https://codereview.chromium.org/1477953002/diff/1/pkg/analyzer/lib/src/generated/static_type_analyzer.dart File pkg/analyzer/lib/src/generated/static_type_analyzer.dart (right): https://codereview.chromium.org/1477953002/diff/1/pkg/analyzer/lib/src/generated/static_type_analyzer.dart#newcode1727 pkg/analyzer/lib/src/generated/static_type_analyzer.dart:1727: correspondingPropagatedParams; On 2015/11/25 21:39:40, Brian Wilkerson wrote: > I ...
5 years ago (2015-11-25 22:07:00 UTC) #4
Jennifer Messerly
https://codereview.chromium.org/1477953002/diff/1/pkg/analyzer/lib/src/generated/static_type_analyzer.dart File pkg/analyzer/lib/src/generated/static_type_analyzer.dart (right): https://codereview.chromium.org/1477953002/diff/1/pkg/analyzer/lib/src/generated/static_type_analyzer.dart#newcode1727 pkg/analyzer/lib/src/generated/static_type_analyzer.dart:1727: correspondingPropagatedParams; On 2015/11/25 22:06:59, John Messerly wrote: > On ...
5 years ago (2015-11-25 22:08:52 UTC) #5
Leaf
On 2015/11/25 21:39:40, Brian Wilkerson wrote: > https://codereview.chromium.org/1477953002/diff/1/pkg/analyzer/lib/src/generated/static_type_analyzer.dart > File pkg/analyzer/lib/src/generated/static_type_analyzer.dart (right): > > https://codereview.chromium.org/1477953002/diff/1/pkg/analyzer/lib/src/generated/static_type_analyzer.dart#newcode1727 ...
5 years ago (2015-11-25 22:18:40 UTC) #6
Leaf
I just added a (failing) test that shows the issue. With a regular library (no ...
5 years ago (2015-11-25 22:31:45 UTC) #7
Brian Wilkerson
https://codereview.chromium.org/1477953002/diff/1/pkg/analyzer/lib/src/generated/static_type_analyzer.dart File pkg/analyzer/lib/src/generated/static_type_analyzer.dart (right): https://codereview.chromium.org/1477953002/diff/1/pkg/analyzer/lib/src/generated/static_type_analyzer.dart#newcode1727 pkg/analyzer/lib/src/generated/static_type_analyzer.dart:1727: correspondingPropagatedParams; That still doesn't make sense to me, but ...
5 years ago (2015-11-25 22:46:37 UTC) #8
Brian Wilkerson
> I just added a (failing) test that shows the issue. The test looks valid ...
5 years ago (2015-11-25 22:53:02 UTC) #9
Leaf
I think we got far afield here. There may or may not be an issue ...
5 years ago (2015-11-25 22:58:45 UTC) #10
Brian Wilkerson
> > The invocation of a top-level or static method can never have propagated > ...
5 years ago (2015-11-25 23:12:10 UTC) #11
Leaf
Ok, patch set 3 has the simple "check if they're equal after the fact" fix. ...
5 years ago (2015-11-25 23:21:45 UTC) #12
Brian Wilkerson
LGTM
5 years ago (2015-11-25 23:25:18 UTC) #13
Leaf
Hmm... there's another path just above the _resolveInvokedElementWithTarget path in which getTypeReference returns non-null, which ...
5 years ago (2015-11-25 23:26:19 UTC) #14
Leaf
Patch set 4 has an alternative early cut off version. Thoughts, preferences between the two?
5 years ago (2015-11-25 23:34:09 UTC) #15
Brian Wilkerson
The most recent version looks best to me. The sooner we can detect that type ...
5 years ago (2015-11-25 23:40:57 UTC) #16
Leaf
5 years ago (2015-11-25 23:50:27 UTC) #18
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
77bd51c2dc4b9c5d3d761f90fab6713198b1b827 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698