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

Issue 2800443002: Build elements for FieldFormalParameter(s) even for local functions. (Closed)

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

Description

Build elements for FieldFormalParameter(s) even for local functions. This is invalid code, we report an error, but we cannot leave it as null, because this causes exceptions down the stream. R=paulberry@google.com, brianwilkerson@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/16e96415836e76fd4883a2f5d78e4be133619dcf

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -29 lines) Patch
M pkg/analyzer/lib/src/dart/element/builder.dart View 2 chunks +29 lines, -29 lines 3 comments Download
M pkg/analyzer/test/dart/element/builder_test.dart View 2 chunks +38 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (1 generated)
scheglov
3 years, 8 months ago (2017-04-04 19:05:06 UTC) #1
Paul Berry
lgtm
3 years, 8 months ago (2017-04-04 19:12:24 UTC) #2
scheglov
Committed patchset #1 (id:1) manually as 16e96415836e76fd4883a2f5d78e4be133619dcf (presubmit successful).
3 years, 8 months ago (2017-04-04 19:45:18 UTC) #4
Brian Wilkerson
I know I'm tired, but I honestly can't see what changed between the two versions ...
3 years, 8 months ago (2017-04-04 20:00:34 UTC) #5
scheglov
https://codereview.chromium.org/2800443002/diff/1/pkg/analyzer/lib/src/dart/element/builder.dart File pkg/analyzer/lib/src/dart/element/builder.dart (right): https://codereview.chromium.org/2800443002/diff/1/pkg/analyzer/lib/src/dart/element/builder.dart#newcode1426 pkg/analyzer/lib/src/dart/element/builder.dart:1426: Object visitFieldFormalParameter(FieldFormalParameter node) { On 2017/04/04 20:00:34, Brian Wilkerson ...
3 years, 8 months ago (2017-04-04 20:02:29 UTC) #6
Brian Wilkerson
3 years, 8 months ago (2017-04-04 20:11:56 UTC) #7
Message was sent while issue was closed.
lgtm

https://codereview.chromium.org/2800443002/diff/1/pkg/analyzer/lib/src/dart/e...
File pkg/analyzer/lib/src/dart/element/builder.dart (right):

https://codereview.chromium.org/2800443002/diff/1/pkg/analyzer/lib/src/dart/e...
pkg/analyzer/lib/src/dart/element/builder.dart:1426: Object
visitFieldFormalParameter(FieldFormalParameter node) {
And unlike 'git diff', this tool doesn't provide that context. I guess I should
have noticed that 1174 lines were skipped. :-) Thanks!

Powered by Google App Engine
This is Rietveld 408576698