Files
kotlin-fork/plugins/uast-kotlin/testData/LocalDeclarations.identifiers.txt
T
Nicolay Mitropolsky 54285d328f Uast: KotlinIDERenderLogTest for running UAST tests with ULC
In case of result difference the `-ide`-suffixed testdata is used.
Actually the difference in results is more likely to be a bug
but currently we are fixating at least some behaviour to protect from
 unexpected regressions in Ultra Light Classes.

`object Local` were removed because there is no local objects in actual
 Kotlin syntax
2020-01-14 19:48:40 +03:00

15 lines
840 B
Plaintext
Vendored

foo -> UMethod (name = foo)
Boolean -> USimpleNameReferenceExpression (identifier = Boolean)
Local -> UClass (name = Local)
bar -> ULambdaExpression
Local -> UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 0))
baz -> ULocalVariable (name = baz)
Local -> UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 0))
Int -> USimpleNameReferenceExpression (identifier = Int)
someLocalFun -> ULambdaExpression
text -> [!] UnknownKotlinExpression (VALUE_PARAMETER)
String -> USimpleNameReferenceExpression (identifier = String)
bar -> UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))
== -> USimpleNameReferenceExpression (identifier = ==)
Local -> UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 0))