Uast: keeping annotations from sources in non-light-methods backed UMethods (KT-27806)

This commit is contained in:
Nicolay Mitropolsky
2019-11-22 18:17:47 +03:00
parent 833571d8b2
commit e4d0d450ab
7 changed files with 64 additions and 27 deletions
+7
View File
@@ -4,4 +4,11 @@ UFile (package = test.pkg)
UBlockExpression
UMethod (name = Test)
UMethod (name = test2)
UAnnotation (fqName = kotlin.Deprecated)
UNamedExpression (name = level)
UQualifiedReferenceExpression
USimpleNameReferenceExpression (identifier = DeprecationLevel)
USimpleNameReferenceExpression (identifier = HIDDEN)
UNamedExpression (name = message)
ULiteralExpression (value = "nothing")
UBlockExpression
@@ -4,6 +4,7 @@ public final class Test {
public final fun test1() : void {
}
public fun Test() = UastEmptyExpression
@kotlin.Deprecated(level = DeprecationLevel.HIDDEN, message = "nothing")
fun test2() {
}
}