Uast: KotlinUMethod and KotlinUAnnotationMethod are separated (KT-30489)

This commit is contained in:
Nicolay Mitropolsky
2019-10-21 15:17:02 +03:00
parent 9fec2c78d1
commit 9c18df61ca
67 changed files with 396 additions and 369 deletions
+6 -6
View File
@@ -2,22 +2,22 @@
[1]:[UClass (name = Foo)]
[1]:[UIdentifier (Identifier (Foo))]
[1]:[UExpressionList (class_body)]
[2]:[UClass (name = Bar), UAnnotationMethod (name = Bar)]
[2]:[UClass (name = Bar), UMethod (name = Bar)]
[1]:[UIdentifier (Identifier (Bar))]
[1]:[UAnnotationMethod (name = Bar)]
[1]:[UMethod (name = Bar)]
[1]:[UDeclarationsExpression]
[3]:[UParameter (name = a), UField (name = a), UAnnotationMethod (name = getA)]
[3]:[UParameter (name = a), UField (name = a), UMethod (name = getA)]
[1]:[UIdentifier (Identifier (a))]
[1]:[UTypeReferenceExpression (name = int)]
[1]:[USimpleNameReferenceExpression (identifier = Int)]
[1]:[UIdentifier (Identifier (Int))]
[3]:[UParameter (name = b), UField (name = b), UAnnotationMethod (name = getB)]
[3]:[UParameter (name = b), UField (name = b), UMethod (name = getB)]
[1]:[UIdentifier (Identifier (b))]
[1]:[UTypeReferenceExpression (name = int)]
[1]:[USimpleNameReferenceExpression (identifier = Int)]
[1]:[UIdentifier (Identifier (Int))]
[1]:[UExpressionList (class_body)]
[1]:[UAnnotationMethod (name = getAPlusB)]
[1]:[UMethod (name = getAPlusB)]
[1]:[UIdentifier (Identifier (getAPlusB))]
[1]:[UDeclarationsExpression]
[1]:[UBinaryExpression (operator = +)]
@@ -30,7 +30,7 @@
[1]:[UClass (name = Baz)]
[1]:[UIdentifier (Identifier (Baz))]
[1]:[UExpressionList (class_body)]
[1]:[UAnnotationMethod (name = doNothing)]
[1]:[UMethod (name = doNothing)]
[1]:[UIdentifier (Identifier (doNothing))]
[1]:[UDeclarationsExpression]
[1]:[USimpleNameReferenceExpression (identifier = Unit)]