summaryrefslogtreecommitdiff
path: root/plugins/kotlin/uast/uast-kotlin/tests/testData/Delegate.values.txt
blob: 1e2d5bdd84454777009a89529a63bddbcf1ae241 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
UFile (package = ) [public final class MyColor {...]
    UClass (name = MyColor) [public final class MyColor {...}]
        UField (name = x) [@org.jetbrains.annotations.NotNull private final var x: int]
            UAnnotation (fqName = org.jetbrains.annotations.NotNull) [@org.jetbrains.annotations.NotNull]
        UField (name = y) [@org.jetbrains.annotations.NotNull private final var y: int]
            UAnnotation (fqName = org.jetbrains.annotations.NotNull) [@org.jetbrains.annotations.NotNull]
        UField (name = z) [@org.jetbrains.annotations.NotNull private final var z: int]
            UAnnotation (fqName = org.jetbrains.annotations.NotNull) [@org.jetbrains.annotations.NotNull]
        UMethod (name = getX) [public final fun getX() : int = UastEmptyExpression]
        UMethod (name = getY) [public final fun getY() : int = UastEmptyExpression]
        UMethod (name = getZ) [public final fun getZ() : int = UastEmptyExpression]
        UMethod (name = MyColor) [public fun MyColor(@org.jetbrains.annotations.NotNull x: int, @org.jetbrains.annotations.NotNull y: int, @org.jetbrains.annotations.NotNull z: int) = UastEmptyExpression]
            UParameter (name = x) [@org.jetbrains.annotations.NotNull var x: int]
                UAnnotation (fqName = org.jetbrains.annotations.NotNull) [@org.jetbrains.annotations.NotNull]
            UParameter (name = y) [@org.jetbrains.annotations.NotNull var y: int]
                UAnnotation (fqName = org.jetbrains.annotations.NotNull) [@org.jetbrains.annotations.NotNull]
            UParameter (name = z) [@org.jetbrains.annotations.NotNull var z: int]
                UAnnotation (fqName = org.jetbrains.annotations.NotNull) [@org.jetbrains.annotations.NotNull]
    UClass (name = Some) [public final class Some {...}]
        UField (name = delegate$delegate) [@org.jetbrains.annotations.NotNull private final var delegate$delegate: kotlin.Lazy]
            UAnnotation (fqName = org.jetbrains.annotations.NotNull) [@org.jetbrains.annotations.NotNull]
            UCallExpression (kind = UastCallKind(name='method_call'), argCount = 1)) [lazy({ ...})] = external lazy({
    return <init>(18, 2, 3)
})(Undetermined)
                UIdentifier (Identifier (lazy)) [UIdentifier (Identifier (lazy))]
                USimpleNameReferenceExpression (identifier = lazy, resolvesTo = null) [lazy] = external lazy({
    return <init>(18, 2, 3)
})(Undetermined)
                ULambdaExpression [{ ...}] = Undetermined
                    UBlockExpression [{...}] = Nothing
                        UReturnExpression [return <init>(18, 2, 3)] = Nothing
                            UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 3)) [<init>(18, 2, 3)] = external <init>(18, 2, 3)(18, 2, 3)
                                UIdentifier (Identifier (MyColor)) [UIdentifier (Identifier (MyColor))]
                                USimpleNameReferenceExpression (identifier = <init>, resolvesTo = PsiClass: MyColor) [<init>] = external <init>(18, 2, 3)(18, 2, 3)
                                ULiteralExpression (value = 18) [18] = 18
                                ULiteralExpression (value = 2) [2] = 2
                                ULiteralExpression (value = 3) [3] = 3
        UField (name = lambda) [@org.jetbrains.annotations.NotNull private final var lambda: kotlin.Lazy<MyColor> = lazy({ ...})]
            UAnnotation (fqName = org.jetbrains.annotations.NotNull) [@org.jetbrains.annotations.NotNull]
            UCallExpression (kind = UastCallKind(name='method_call'), argCount = 1)) [lazy({ ...})] = external lazy({
    return <init>(1, 2, 3)
})(Undetermined)
                UIdentifier (Identifier (lazy)) [UIdentifier (Identifier (lazy))]
                USimpleNameReferenceExpression (identifier = lazy, resolvesTo = null) [lazy] = external lazy({
    return <init>(1, 2, 3)
})(Undetermined)
                ULambdaExpression [{ ...}] = Undetermined
                    UBlockExpression [{...}] = Nothing
                        UReturnExpression [return <init>(1, 2, 3)] = Nothing
                            UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 3)) [<init>(1, 2, 3)] = external <init>(1, 2, 3)(1, 2, 3)
                                UIdentifier (Identifier (MyColor)) [UIdentifier (Identifier (MyColor))]
                                USimpleNameReferenceExpression (identifier = <init>, resolvesTo = PsiClass: MyColor) [<init>] = external <init>(1, 2, 3)(1, 2, 3)
                                ULiteralExpression (value = 1) [1] = 1
                                ULiteralExpression (value = 2) [2] = 2
                                ULiteralExpression (value = 3) [3] = 3
        UField (name = nonLazy) [@org.jetbrains.annotations.NotNull private final var nonLazy: MyColor = <init>(1, 2, 3)]
            UAnnotation (fqName = org.jetbrains.annotations.NotNull) [@org.jetbrains.annotations.NotNull]
            UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 3)) [<init>(1, 2, 3)] = external <init>(1, 2, 3)(1, 2, 3)
                UIdentifier (Identifier (MyColor)) [UIdentifier (Identifier (MyColor))]
                USimpleNameReferenceExpression (identifier = <init>, resolvesTo = PsiClass: MyColor) [<init>] = external <init>(1, 2, 3)(1, 2, 3)
                ULiteralExpression (value = 1) [1] = 1
                ULiteralExpression (value = 2) [2] = 2
                ULiteralExpression (value = 3) [3] = 3
        UMethod (name = getDelegate) [public final fun getDelegate() : MyColor = UastEmptyExpression]
        UMethod (name = getLambda) [public final fun getLambda() : kotlin.Lazy<MyColor> = UastEmptyExpression]
        UMethod (name = getNonLazy) [public final fun getNonLazy() : MyColor = UastEmptyExpression]
        UMethod (name = Some) [public fun Some() = UastEmptyExpression]