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

Issue 2947703002: Fix ParameterElementImpl.hasImplicitType for function-typed parameters. (Closed)

Created:
3 years, 6 months ago by Paul Berry
Modified:
3 years, 5 months ago
CC:
reviews_dartlang.org, scheglov
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fix ParameterElementImpl.hasImplicitType for function-typed parameters. UnlinkedParam.type serves a dual role: for ordinary parameters it is the declared type; for function-typed parameters it is the declared return type. So to determine whether a parameter has an implicit type it is not sufficient to check whether UnlinkedParam.type is `null`. We also need to check whether the parameter is function-typed. R=brianwilkerson@google.com Committed: https://github.com/dart-lang/sdk/commit/e8131d6f1a4d75155e017c67bb7615d1ae87561b

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -1 line) Patch
M pkg/analyzer/lib/src/dart/element/element.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/analyzer/test/src/summary/resynthesize_common.dart View 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (3 generated)
Paul Berry
3 years, 6 months ago (2017-06-19 19:47:13 UTC) #2
Brian Wilkerson
lgtm
3 years, 6 months ago (2017-06-19 19:50:08 UTC) #3
Paul Berry
Committed patchset #1 (id:1) manually as e8131d6f1a4d75155e017c67bb7615d1ae87561b (presubmit successful).
3 years, 6 months ago (2017-06-19 20:13:58 UTC) #5
scheglov
3 years, 5 months ago (2017-06-26 16:21:02 UTC) #7
Message was sent while issue was closed.
LGTM

Powered by Google App Engine
This is Rietveld 408576698