Uast: KT-40578: resolve Kotlin property writes to setters (#3597)

* KT-40578: resolve Kotlin property writes to setters

* limit to non-constructor properties

* Uast: `KotlinIDERenderLogTest.testConstructors` fix

Co-authored-by: Nicolay Mitropolsky <nicolay.mitropolsky@jetbrains.com>
This commit is contained in:
Kevin Bierhoff
2020-07-28 00:03:22 -07:00
committed by GitHub
parent 5851a7dea0
commit fa8c6e7fb6
12 changed files with 187 additions and 13 deletions
@@ -69,3 +69,12 @@ String -> USimpleNameReferenceExpression (identifier = String)
s -> USimpleNameReferenceExpression (identifier = s)
local -> USimpleNameReferenceExpression (identifier = local)
toString -> UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))
AWithFieldInit -> UClass (name = AWithFieldInit)
i -> UParameter (name = i)
Int -> USimpleNameReferenceExpression (identifier = Int)
a -> UField (name = a)
String -> USimpleNameReferenceExpression (identifier = String)
a -> USimpleNameReferenceExpression (identifier = a)
= -> USimpleNameReferenceExpression (identifier = =)
i -> USimpleNameReferenceExpression (identifier = i)
toString -> UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))