EA-214662: Support property accessors in UastLightIdentifier
This commit is contained in:
@@ -29,11 +29,13 @@
|
||||
[1]:[UDeclarationsExpression]
|
||||
[4]:[UParameter (name = bar), UField (name = bar), UMethod (name = getBar), UMethod (name = setBar)]
|
||||
[1]:[UAnnotation (fqName = MyAnnotation)]
|
||||
[1]:[UIdentifier (Identifier (get))]
|
||||
[1]:[[!] UnknownKotlinExpression (CONSTRUCTOR_CALLEE)]
|
||||
[1]:[UTypeReferenceExpression (name = MyAnnotation)]
|
||||
[1]:[USimpleNameReferenceExpression (identifier = MyAnnotation)]
|
||||
[1]:[UIdentifier (Identifier (MyAnnotation))]
|
||||
[1]:[UAnnotation (fqName = MyAnnotation2)]
|
||||
[1]:[UIdentifier (Identifier (set))]
|
||||
[1]:[[!] UnknownKotlinExpression (CONSTRUCTOR_CALLEE)]
|
||||
[1]:[UTypeReferenceExpression (name = MyAnnotation2)]
|
||||
[1]:[USimpleNameReferenceExpression (identifier = MyAnnotation2)]
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
TestPropertyInitializer -> UClass (name = TestPropertyInitializer)
|
||||
withSetter -> UField (name = withSetter)
|
||||
get -> UMethod (name = getWithSetter)
|
||||
field -> USimpleNameReferenceExpression (identifier = field)
|
||||
set -> UMethod (name = setWithSetter)
|
||||
p -> UParameter (name = p)
|
||||
field -> USimpleNameReferenceExpression (identifier = field)
|
||||
= -> USimpleNameReferenceExpression (identifier = =)
|
||||
p -> USimpleNameReferenceExpression (identifier = p)
|
||||
@@ -0,0 +1,3 @@
|
||||
field -> USimpleNameReferenceExpression (identifier = field) from KtNameReferenceExpression
|
||||
field -> USimpleNameReferenceExpression (identifier = field) from KtNameReferenceExpression
|
||||
p -> USimpleNameReferenceExpression (identifier = p) from KtNameReferenceExpression
|
||||
Reference in New Issue
Block a user