DeprecatedSymbolUsageFix: initial implementation

This commit is contained in:
Valentin Kipyatkov
2015-05-15 15:21:13 +03:00
parent 0a886320ca
commit df850d7035
73 changed files with 1314 additions and 40 deletions
+4 -1
View File
@@ -28,7 +28,10 @@ public annotation class data
* Marks the annotated class, function or property as deprecated.
* @property value the message explaining the deprecation and recommending an alternative API to use.
*/
public annotation class deprecated(val value: String)
public annotation class deprecated(val value: String, val replaceWith: ReplaceWith = ReplaceWith(""))
//TODO: doc-comment
public annotation class ReplaceWith(val expression: String, vararg val imports: String)
/**
* Signifies that the annotated functional type represents an extension function.