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

Issue 1090313002: fixes #52, fields shadowing getters/setters or other fields (Closed)

Created:
5 years, 8 months ago by Jennifer Messerly
Modified:
5 years, 7 months ago
Reviewers:
Leaf, Jacob
CC:
dev-compiler+reviews_dartlang.org
Base URL:
git@github.com:dart-lang/dev_compiler.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

fixes #52, fields shadowing getters/setters or other fields

Patch Set 1 #

Total comments: 9

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1466 lines, -294 lines) Patch
M lib/runtime/dart/_foreign_helper.js View 1 chunk +5 lines, -1 line 0 comments Download
M lib/runtime/dart/_isolate_helper.js View 1 chunk +1 line, -1 line 0 comments Download
M lib/runtime/dart/_js_helper.js View 18 chunks +220 lines, -40 lines 0 comments Download
M lib/runtime/dart/_native_typed_data.js View 9 chunks +93 lines, -33 lines 0 comments Download
M lib/runtime/dart/async.js View 12 chunks +196 lines, -37 lines 0 comments Download
M lib/runtime/dart/collection.js View 1 chunk +1 line, -1 line 0 comments Download
M lib/runtime/dart/convert.js View 5 chunks +42 lines, -10 lines 0 comments Download
M lib/runtime/dart/core.js View 28 chunks +139 lines, -43 lines 0 comments Download
M lib/runtime/dart/isolate.js View 2 chunks +25 lines, -5 lines 0 comments Download
M lib/runtime/dart/math.js View 3 chunks +46 lines, -8 lines 0 comments Download
M lib/src/codegen/js_codegen.dart View 1 18 chunks +105 lines, -64 lines 0 comments Download
A lib/src/codegen/js_field_storage.dart View 1 1 chunk +90 lines, -0 lines 0 comments Download
M test/codegen/expect/BenchmarkBase.js View 1 chunk +5 lines, -1 line 0 comments Download
M test/codegen/expect/DeltaBlue.js View 8 chunks +131 lines, -19 lines 0 comments Download
M test/codegen/expect/cascade.js View 2 chunks +13 lines, -2 lines 0 comments Download
M test/codegen/expect/constructors.js View 2 chunks +50 lines, -8 lines 0 comments Download
A test/codegen/expect/fields.js View 1 chunk +115 lines, -0 lines 0 comments Download
A test/codegen/expect/fields.txt View 1 chunk +1 line, -0 lines 0 comments Download
M test/codegen/expect/fieldtest.js View 1 chunk +32 lines, -4 lines 0 comments Download
M test/codegen/expect/methods.js View 1 chunk +5 lines, -1 line 0 comments Download
M test/codegen/expect/names.js View 1 chunk +6 lines, -2 lines 0 comments Download
M test/codegen/expect/opassign.js View 1 chunk +8 lines, -1 line 0 comments Download
M test/codegen/expect/sunflower/dom.js View 2 chunks +69 lines, -9 lines 0 comments Download
M test/codegen/expect/sunflower/sunflower.js View 1 chunk +23 lines, -4 lines 0 comments Download
A test/codegen/fields.dart View 1 chunk +45 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
Jennifer Messerly
This is the "just fix it" option. Thoughts? I'm happy to add an option to ...
5 years, 8 months ago (2015-04-17 18:35:33 UTC) #2
Jennifer Messerly
BTW, the reason to address this now: it was blocking Angular code like: class SomeType ...
5 years, 8 months ago (2015-04-17 18:37:09 UTC) #3
Jennifer Messerly
https://codereview.chromium.org/1090313002/diff/1/test/codegen/expect/DeltaBlue.js File test/codegen/expect/DeltaBlue.js (right): https://codereview.chromium.org/1090313002/diff/1/test/codegen/expect/DeltaBlue.js#newcode105 test/codegen/expect/DeltaBlue.js:105: UnaryConstraint(myOutput, strength) { This parameter name is why the ...
5 years, 8 months ago (2015-04-17 18:38:55 UTC) #4
Leaf
This lgtm. It's definitely more verbose in places, but it's good that the use sites ...
5 years, 8 months ago (2015-04-17 20:21:50 UTC) #5
Jacob
lgtm https://codereview.chromium.org/1090313002/diff/1/lib/runtime/dart/core.js File lib/runtime/dart/core.js (right): https://codereview.chromium.org/1090313002/diff/1/lib/runtime/dart/core.js#newcode39 lib/runtime/dart/core.js:39: let name$0 = dart.JsSymbol('name'); high level question. why ...
5 years, 8 months ago (2015-04-17 20:28:53 UTC) #6
Jennifer Messerly
Thanks! comments to your comments. I haven't uploaded the tweaks (add TODO, change `superclasses` method), ...
5 years, 8 months ago (2015-04-20 17:44:34 UTC) #7
Brian Wilkerson
https://codereview.chromium.org/1090313002/diff/1/lib/src/codegen/js_field_storage.dart File lib/src/codegen/js_field_storage.dart (right): https://codereview.chromium.org/1090313002/diff/1/lib/src/codegen/js_field_storage.dart#newcode73 lib/src/codegen/js_field_storage.dart:73: Iterable<ClassElement> superclasses(ClassElement cls) sync* { DBC: This looks like ...
5 years, 8 months ago (2015-04-20 17:59:19 UTC) #9
Jacob
lgtm
5 years, 8 months ago (2015-04-20 18:00:02 UTC) #10
Jennifer Messerly
Chatted offline, realized we need to treat private fields on public types as unsealed ...
5 years, 8 months ago (2015-04-20 18:06:13 UTC) #12
Jennifer Messerly
5 years, 8 months ago (2015-04-20 18:30:40 UTC) #13
https://codereview.chromium.org/1090313002/diff/1/lib/src/codegen/js_field_st...
File lib/src/codegen/js_field_storage.dart (right):

https://codereview.chromium.org/1090313002/diff/1/lib/src/codegen/js_field_st...
lib/src/codegen/js_field_storage.dart:73: Iterable<ClassElement>
superclasses(ClassElement cls) sync* {
On 2015/04/20 17:59:19, Brian Wilkerson wrote:
> DBC: This looks like information that other clients might also want to be able
> to get from the element model. It would be a shame if they were forced to
> re-implement it. I'd encourage you to consider making this a getter on
> ClassElement rather than a utility method that takes a ClassElement as a
> parameter.

Good point. What's the best workflow there? I'm guessing we still need a utility
method until we can release a new package:analyzer and roll forward our dep?

Powered by Google App Engine
This is Rietveld 408576698