UAST: Properly handle annotations on local variables

This commit is contained in:
Vyacheslav Gerasimov
2017-07-13 22:42:49 +03:00
committed by Nikolay Krasko
parent 35fa8efbf3
commit 8eddb10870
16 changed files with 50 additions and 25 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
UFile (package = ) [public final class Simple {...]
UClass (name = Simple) [public final class Simple {...}]
UField (name = property) [private final var property: java.lang.String = "Mary"]
UField (name = property) [@org.jetbrains.annotations.NotNull private final var property: java.lang.String = "Mary"]
UAnnotation (fqName = org.jetbrains.annotations.NotNull) [@org.jetbrains.annotations.NotNull]
ULiteralExpression (value = "Mary") ["Mary"] = "Mary"
UAnnotationMethod (name = method) [public final fun method() : void {...}]