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

Issue 56083004: Added hint to report invocations of members (methods, getters, setters, operators, ...) that are de… (Closed)

Created:
7 years, 1 month ago by jwren
Modified:
7 years, 1 month ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Added hint to report invocations of members (methods, getters, setters, operators, ...) that are declared as @deprecated or @Deprecated('...'). R=brianwilkerson@google.com, scheglov@google.com Committed: https://code.google.com/p/dart/source/detail?r=29828

Patch Set 1 #

Total comments: 10

Patch Set 2 : Addressed comments #

Patch Set 3 : Rebase with bleeding_edge #

Total comments: 4

Patch Set 4 : Rebase with bleeding_edge #

Patch Set 5 : Changes from comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+461 lines, -43 lines) Patch
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/element/Element.java View 1 1 chunk +8 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/HintCode.java View 1 1 chunk +7 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/ElementImpl.java View 1 2 3 4 2 chunks +24 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/MultiplyDefinedElementImpl.java View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/handle/ElementHandle.java View 1 1 chunk +5 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/member/Member.java View 1 1 chunk +5 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/hint/BestPracticesVerifier.java View 1 5 chunks +127 lines, -1 line 0 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/TypeProvider.java View 1 2 chunks +32 lines, -25 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/TypeProviderImpl.java View 1 7 chunks +18 lines, -7 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/context/AnalysisContextFactory.java View 1 2 3 2 chunks +16 lines, -9 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/element/ElementFactory.java View 1 2 3 2 chunks +17 lines, -1 line 0 comments Download
M editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/resolver/TestTypeProvider.java View 1 2 chunks +19 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/HintCodeTest.java View 1 2 chunks +178 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
jwren
7 years, 1 month ago (2013-11-01 22:04:01 UTC) #1
scheglov
lgtm
7 years, 1 month ago (2013-11-01 22:38:00 UTC) #2
Brian Wilkerson
LGTM https://codereview.chromium.org/56083004/diff/1/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/HintCode.java File editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/HintCode.java (right): https://codereview.chromium.org/56083004/diff/1/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/HintCode.java#newcode45 editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/HintCode.java:45: * The {@code @deprecated} annotation should not be ...
7 years, 1 month ago (2013-11-01 22:40:12 UTC) #3
jwren
PTAL. Brian- I originally intended to land this CL on Friday and then follow up ...
7 years, 1 month ago (2013-11-04 07:58:31 UTC) #4
Brian Wilkerson
LGTM https://codereview.chromium.org/56083004/diff/110002/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/ElementImpl.java File editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/ElementImpl.java (left): https://codereview.chromium.org/56083004/diff/110002/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/ElementImpl.java#oldcode40 editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/ElementImpl.java:40: nit: Why did you get rid of the ...
7 years, 1 month ago (2013-11-04 15:09:43 UTC) #5
jwren
Committed patchset #5 manually as r29828 (presubmit successful).
7 years, 1 month ago (2013-11-04 18:05:14 UTC) #6
jwren
7 years, 1 month ago (2013-11-04 18:06:32 UTC) #7
Message was sent while issue was closed.
https://codereview.chromium.org/56083004/diff/110002/editor/tools/plugins/com...
File
editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/ElementImpl.java
(left):

https://codereview.chromium.org/56083004/diff/110002/editor/tools/plugins/com...
editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/ElementImpl.java:40:

Not intended- fixed.

On 2013/11/04 15:09:43, Brian Wilkerson wrote:
> nit: Why did you get rid of the blank lines?

https://codereview.chromium.org/56083004/diff/110002/editor/tools/plugins/com...
File
editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/MultiplyDefinedElementImpl.java
(right):

https://codereview.chromium.org/56083004/diff/110002/editor/tools/plugins/com...
editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/MultiplyDefinedElementImpl.java:203:
public boolean isDeprecated() {
Changed to just return false.

On 2013/11/04 15:09:43, Brian Wilkerson wrote:
> We might actually want to reverse the logic of this method in order to reduce
> the number of false positives (that is, a multiply defined element is only
> considered to be deprecated if all of the elements are deprecated).
> 
> Alternatively, just return false under the theory that there is already an
error
> marker for such references and a hint will never be useful until the error is
> resolved.

Powered by Google App Engine
This is Rietveld 408576698