Description@deprecated should work on 'called' objects
BUG=https://github.com/dart-lang/sdk/issues/9470
Example output:
$ cat -n a.dart
1 class Foo {
2 Foo foo;
3
4 @deprecated
5 call(String name) {
6 print("hello $name");
7 }
8 }
9
10 void main() {
11 Foo f = new Foo();
12 f("Thomas");
13 f.foo = new Foo();
14 f.foo("Timmy");
15 }
$ xcodebuild/ReleaseX64/dart-sdk/bin/dartanalyzer a.dart
Analyzing [a.dart]...
[hint] 'Foo.call' is deprecated (/Users/srawlins/code/dart-repo3/sdk/a.dart, line 12, col 3)
[hint] 'Foo.call' is deprecated (/Users/srawlins/code/dart-repo3/sdk/a.dart, line 14, col 3)
2 hints found.
R=brianwilkerson@google.com, scheglov@google.com
Committed: https://github.com/dart-lang/sdk/commit/2cfa9c4665d1565bb762671c628d7ee2edf5fccc
Patch Set 1 #
Total comments: 6
Patch Set 2 : Addressing feedback #
Messages
Total messages: 10 (3 generated)
|