Files
kotlin-fork/plugins/uast-kotlin/testData/LocalDeclarations.altlog.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

46 lines
2.7 KiB
Plaintext
Vendored

[2]:[UFile (package = ), UClass (name = LocalDeclarationsKt)]
[1]:[UMethod (name = foo)]
[1]:[UIdentifier (Identifier (foo))]
[1]:[UDeclarationsExpression]
[1]:[UTypeReferenceExpression (name = boolean)]
[1]:[USimpleNameReferenceExpression (identifier = Boolean)]
[1]:[UIdentifier (Identifier (Boolean))]
[1]:[UBlockExpression]
[1]:[UClass (name = Local)]
[1]:[UIdentifier (Identifier (Local))]
[1]:[ULambdaExpression]
[1]:[UIdentifier (Identifier (bar))]
[1]:[UDeclarationsExpression]
[1]:[UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 0))]
[1]:[USimpleNameReferenceExpression (identifier = Local)]
[1]:[UIdentifier (Identifier (Local))]
[1]:[ULocalVariable (name = baz)]
[1]:[UIdentifier (Identifier (baz))]
[1]:[ULambdaExpression]
[1]:[UDeclarationsExpression]
[1]:[UBlockExpression]
[1]:[UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 0))]
[1]:[USimpleNameReferenceExpression (identifier = Local)]
[1]:[UIdentifier (Identifier (Local))]
[1]:[ULambdaExpression]
[1]:[UTypeReferenceExpression (name = int)]
[1]:[USimpleNameReferenceExpression (identifier = Int)]
[1]:[UIdentifier (Identifier (Int))]
[1]:[UIdentifier (Identifier (someLocalFun))]
[1]:[UDeclarationsExpression]
[1]:[UIdentifier (Identifier (text))]
[1]:[UTypeReferenceExpression (name = java.lang.String)]
[1]:[USimpleNameReferenceExpression (identifier = String)]
[1]:[UIdentifier (Identifier (String))]
[1]:[ULiteralExpression (value = 42)]
[1]:[UReturnExpression]
[1]:[UBinaryExpression (operator = ==)]
[1]:[UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))]
[1]:[USimpleNameReferenceExpression (identifier = bar)]
[1]:[UIdentifier (Identifier (bar))]
[1]:[USimpleNameReferenceExpression (identifier = ==)]
[1]:[UIdentifier (Identifier (==))]
[1]:[UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 0))]
[1]:[USimpleNameReferenceExpression (identifier = Local)]
[1]:[UIdentifier (Identifier (Local))]