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

Issue 587323004: Classify method and property accesses semantically. (Closed)

Created:
6 years, 3 months ago by Paul Berry
Modified:
6 years, 2 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Classify method and property accesses semantically. R=brianwilkerson@google.com Committed: https://code.google.com/p/dart/source/detail?r=40597

Patch Set 1 #

Total comments: 16

Patch Set 2 : Address review comments #

Patch Set 3 : Comment fix #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+2625 lines, -113 lines) Patch
A pkg/analyzer2dart/lib/src/identifier_semantics.dart View 1 2 1 chunk +406 lines, -0 lines 8 comments Download
M pkg/analyzer2dart/lib/src/tree_shaker.dart View 1 4 chunks +77 lines, -113 lines 2 comments Download
A pkg/analyzer2dart/test/identifier_semantics_test.dart View 1 1 chunk +2142 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (1 generated)
Paul Berry
This is in response to Johnni's request on Wednesday for a visitor class that can ...
6 years, 3 months ago (2014-09-22 18:41:28 UTC) #2
Brian Wilkerson
I didn't read all of the tests. https://codereview.chromium.org/587323004/diff/1/pkg/analyzer2dart/lib/src/identifier_semantics.dart File pkg/analyzer2dart/lib/src/identifier_semantics.dart (right): https://codereview.chromium.org/587323004/diff/1/pkg/analyzer2dart/lib/src/identifier_semantics.dart#newcode213 pkg/analyzer2dart/lib/src/identifier_semantics.dart:213: } It's ...
6 years, 3 months ago (2014-09-22 19:44:48 UTC) #3
Paul Berry
PTAL. Thanks for the comments, Brian. Adding method tear-offs (which can be thought of as ...
6 years, 3 months ago (2014-09-23 16:32:49 UTC) #4
Brian Wilkerson
https://codereview.chromium.org/587323004/diff/1/pkg/analyzer2dart/lib/src/identifier_semantics.dart File pkg/analyzer2dart/lib/src/identifier_semantics.dart (right): https://codereview.chromium.org/587323004/diff/1/pkg/analyzer2dart/lib/src/identifier_semantics.dart#newcode296 pkg/analyzer2dart/lib/src/identifier_semantics.dart:296: // TODO(paulberry): handle this case. It looks like you're ...
6 years, 3 months ago (2014-09-23 17:03:59 UTC) #5
Paul Berry
https://codereview.chromium.org/587323004/diff/1/pkg/analyzer2dart/lib/src/identifier_semantics.dart File pkg/analyzer2dart/lib/src/identifier_semantics.dart (right): https://codereview.chromium.org/587323004/diff/1/pkg/analyzer2dart/lib/src/identifier_semantics.dart#newcode296 pkg/analyzer2dart/lib/src/identifier_semantics.dart:296: // TODO(paulberry): handle this case. On 2014/09/23 17:03:58, Brian ...
6 years, 3 months ago (2014-09-23 17:45:56 UTC) #6
Brian Wilkerson
LGTM
6 years, 3 months ago (2014-09-23 17:46:46 UTC) #7
Paul Berry
Committed patchset #3 (id:40001) manually as 40597 (presubmit successful).
6 years, 3 months ago (2014-09-23 17:52:08 UTC) #8
Johnni Winther
https://codereview.chromium.org/587323004/diff/40001/pkg/analyzer2dart/lib/src/tree_shaker.dart File pkg/analyzer2dart/lib/src/tree_shaker.dart (right): https://codereview.chromium.org/587323004/diff/40001/pkg/analyzer2dart/lib/src/tree_shaker.dart#newcode14 pkg/analyzer2dart/lib/src/tree_shaker.dart:14: import 'package:analyzer2dart/src/identifier_semantics.dart'; What is the motivation for using a ...
6 years, 2 months ago (2014-09-25 12:09:36 UTC) #9
Paul Berry
6 years, 2 months ago (2014-09-25 18:22:48 UTC) #10
Message was sent while issue was closed.
https://codereview.chromium.org/587323004/diff/40001/pkg/analyzer2dart/lib/sr...
File pkg/analyzer2dart/lib/src/tree_shaker.dart (right):

https://codereview.chromium.org/587323004/diff/40001/pkg/analyzer2dart/lib/sr...
pkg/analyzer2dart/lib/src/tree_shaker.dart:14: import
'package:analyzer2dart/src/identifier_semantics.dart';
On 2014/09/25 12:09:36, Johnni Winther wrote:
> What is the motivation for using a package and not relative import here?
> 
> Because of http://dartbug.com/19579 the (unnecessary) use of package imports
> using symbolic links disrupts the workflow in the Dart Editor (on Windows); I
> end up in unanalyzed/read-only territory all the time, and have to manually
find
> and open the actual file to inspect declarations transitively :(

Hmm, I hadn't actually given it much thought.  This line was automatically
generated by the analyzer's "Import library" quick fix.  After some discussion
with Brian, we're not really sure why the analyzer inserts "package:" imports
rather than relative imports in this case (Brian's recollection was that it was
dictated by the style guide, but we double checked and couldn't substantiate
that).

Personally, I would prefer to standardize on always using relative imports when
referring to files within the same package.  But I'm not confident that I
understand all the consequences of that.  I'll start an email discussion with
Bob about this to see if he has any insight, and I'll include you.

Powered by Google App Engine
This is Rietveld 408576698