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

Issue 9699033: Introduce FieldParameterElement. (Closed)

Created:
8 years, 9 months ago by floitsch
Modified:
8 years, 9 months ago
Reviewers:
ngeoffray
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Introduce FieldParameterElement. Committed: https://code.google.com/p/dart/source/detail?r=5523

Patch Set 1 #

Patch Set 2 : Add tests. #

Patch Set 3 : Fix resolution of field-parameters inside the body. #

Patch Set 4 : Update status files #

Patch Set 5 : Fix typo. #

Total comments: 16

Patch Set 6 : Address comments and create a separate map for the fields. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+208 lines, -43 lines) Patch
M frog/leg/compile_time_constants.dart View 1 2 3 4 5 6 chunks +27 lines, -17 lines 4 comments Download
M frog/leg/compiler.dart View 1 chunk +2 lines, -1 line 0 comments Download
M frog/leg/elements/elements.dart View 1 2 3 4 5 2 chunks +19 lines, -0 lines 0 comments Download
M frog/leg/resolver.dart View 1 2 3 4 5 5 chunks +21 lines, -11 lines 0 comments Download
M frog/leg/ssa/builder.dart View 1 2 3 4 5 7 chunks +34 lines, -14 lines 0 comments Download
M tests/language/language.status View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M tests/language/language-leg.status View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A tests/language/src/CompileTimeConstantFTest.dart View 1 1 chunk +28 lines, -0 lines 0 comments Download
A tests/language/src/CompileTimeConstantGTest.dart View 1 1 chunk +37 lines, -0 lines 0 comments Download
A tests/language/src/FieldParameterTest.dart View 1 1 chunk +37 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
floitsch
8 years, 9 months ago (2012-03-14 17:48:50 UTC) #1
ngeoffray
https://chromiumcodereview.appspot.com/9699033/diff/1016/frog/leg/elements/elements.dart File frog/leg/elements/elements.dart (right): https://chromiumcodereview.appspot.com/9699033/diff/1016/frog/leg/elements/elements.dart#newcode369 frog/leg/elements/elements.dart:369: [Node node]) I believe the node should not be ...
8 years, 9 months ago (2012-03-15 10:06:01 UTC) #2
floitsch
PTAL. https://chromiumcodereview.appspot.com/9699033/diff/1016/frog/leg/elements/elements.dart File frog/leg/elements/elements.dart (right): https://chromiumcodereview.appspot.com/9699033/diff/1016/frog/leg/elements/elements.dart#newcode369 frog/leg/elements/elements.dart:369: [Node node]) On 2012/03/15 10:06:01, ngeoffray wrote: > ...
8 years, 9 months ago (2012-03-15 14:11:04 UTC) #3
ngeoffray
LGTM! https://chromiumcodereview.appspot.com/9699033/diff/3014/frog/leg/compile_time_constants.dart File frog/leg/compile_time_constants.dart (right): https://chromiumcodereview.appspot.com/9699033/diff/3014/frog/leg/compile_time_constants.dart#newcode924 frog/leg/compile_time_constants.dart:924: Map<Element, Constant> constructorDefinitions, constructorDefinitions -> parameterValues ? https://chromiumcodereview.appspot.com/9699033/diff/3014/frog/leg/compile_time_constants.dart#newcode1005 ...
8 years, 9 months ago (2012-03-15 15:16:24 UTC) #4
floitsch
8 years, 9 months ago (2012-03-15 15:37:24 UTC) #5
https://chromiumcodereview.appspot.com/9699033/diff/3014/frog/leg/compile_tim...
File frog/leg/compile_time_constants.dart (right):

https://chromiumcodereview.appspot.com/9699033/diff/3014/frog/leg/compile_tim...
frog/leg/compile_time_constants.dart:924: Map<Element, Constant>
constructorDefinitions,
On 2012/03/15 15:16:25, ngeoffray wrote:
> constructorDefinitions -> parameterValues ?

I want to rename some elements in this file anyways. I will see if this makes
sense then.

https://chromiumcodereview.appspot.com/9699033/diff/3014/frog/leg/compile_tim...
frog/leg/compile_time_constants.dart:1005: constructorDefinitions, fieldValues);
On 2012/03/15 15:16:25, ngeoffray wrote:
> This is all happening in the same function, so you should not need to pass
them
> all as parameters.

I think I will need separate arguments when implementing super calls. Maybe I'm
wrong in which case I will change it then.

Powered by Google App Engine
This is Rietveld 408576698