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

Issue 2643073002: Deprecate the use of `Function` as a class. (Closed)

Created:
3 years, 11 months ago by floitsch
Modified:
3 years, 11 months ago
Reviewers:
Brian Wilkerson
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Deprecate the use of `Function` as a class. Shows a hint when `Function` is used: - as a class name, - in an extends clause, - in a with clause. The `Function` may or may not point to the core's `Function`. All uses of `Function` in these contexts are deprecated. R=brianwilkerson@google.com Committed: https://github.com/dart-lang/sdk/commit/4e6e72b0b0bc1558ea0ba695363c6dc8bf9433f5 Reverted: https://github.com/dart-lang/sdk/commit/3f871ae76f5269b50e531c61038727a074301990 Committed: https://github.com/dart-lang/sdk/commit/9a0ccfc0926a2df519c123b9d2792ee4d6674278

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address comments. #

Patch Set 3 : Don't deprecate "implements Function". #

Patch Set 4 : Remove actual warning message. #

Patch Set 5 : Upload after revert #

Patch Set 6 : Update type. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -0 lines) Patch
M pkg/analyzer/lib/error/error.dart View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M pkg/analyzer/lib/src/dart/error/hint_codes.dart View 1 2 3 1 chunk +24 lines, -0 lines 0 comments Download
M pkg/analyzer/lib/src/generated/error_verifier.dart View 1 2 3 4 5 2 chunks +35 lines, -0 lines 0 comments Download
M pkg/analyzer/test/generated/hint_code_test.dart View 1 2 1 chunk +59 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
floitsch
This CL works under the assumption, that we will make `Function` a built-in identifier (similar ...
3 years, 11 months ago (2017-01-19 18:02:25 UTC) #2
Brian Wilkerson
lgtm https://codereview.chromium.org/2643073002/diff/1/pkg/analyzer/lib/src/generated/error_verifier.dart File pkg/analyzer/lib/src/generated/error_verifier.dart (right): https://codereview.chromium.org/2643073002/diff/1/pkg/analyzer/lib/src/generated/error_verifier.dart#newcode2963 pkg/analyzer/lib/src/generated/error_verifier.dart:2963: HintCode.DEPRECATED_EXTENDS_FUNCTION, extendsClause); 'extendsClause' --> 'extendsClause.superclass' https://codereview.chromium.org/2643073002/diff/1/pkg/analyzer/test/generated/hint_code_test.dart File pkg/analyzer/test/generated/hint_code_test.dart ...
3 years, 11 months ago (2017-01-19 18:16:05 UTC) #3
floitsch
https://codereview.chromium.org/2643073002/diff/1/pkg/analyzer/lib/src/generated/error_verifier.dart File pkg/analyzer/lib/src/generated/error_verifier.dart (right): https://codereview.chromium.org/2643073002/diff/1/pkg/analyzer/lib/src/generated/error_verifier.dart#newcode2963 pkg/analyzer/lib/src/generated/error_verifier.dart:2963: HintCode.DEPRECATED_EXTENDS_FUNCTION, extendsClause); On 2017/01/19 18:16:05, Brian Wilkerson wrote: > ...
3 years, 11 months ago (2017-01-19 18:22:49 UTC) #4
floitsch
Removed the 'implements Function` part. It's used quite frequently and, if necessary, we can deprecate ...
3 years, 11 months ago (2017-01-23 14:43:32 UTC) #5
floitsch
Committed patchset #4 (id:60001) manually as 4e6e72b0b0bc1558ea0ba695363c6dc8bf9433f5 (presubmit successful).
3 years, 11 months ago (2017-01-23 15:39:11 UTC) #7
floitsch
Forgot to run the tests in host-checked mode. Ready to reapply this CL. PTAL if ...
3 years, 11 months ago (2017-01-23 16:22:24 UTC) #9
Brian Wilkerson
lgtm
3 years, 11 months ago (2017-01-23 16:25:39 UTC) #10
floitsch
3 years, 11 months ago (2017-01-23 16:34:16 UTC) #12
Message was sent while issue was closed.
Committed patchset #6 (id:100001) manually as
9a0ccfc0926a2df519c123b9d2792ee4d6674278 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698