Update lightclass tests renderer
+mute invalid old light classes tests
This commit is contained in:
+3
-3
@@ -10,7 +10,7 @@ UFile (package = )
|
||||
UClass (name = null)
|
||||
UMethod (name = run)
|
||||
UBlockExpression
|
||||
UMethod (name = AnonymousKt$foo$runnable$1)
|
||||
UMethod (name = )
|
||||
UQualifiedReferenceExpression
|
||||
USimpleNameReferenceExpression (identifier = runnable)
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))
|
||||
@@ -39,7 +39,7 @@ UFile (package = )
|
||||
UBlockExpression
|
||||
UMethod (name = run)
|
||||
UBlockExpression
|
||||
UMethod (name = AnonymousKt$foo$closeableRunnable$1)
|
||||
UMethod (name = )
|
||||
UDeclarationsExpression
|
||||
ULocalVariable (name = runnableIs)
|
||||
UObjectLiteralExpression
|
||||
@@ -50,7 +50,7 @@ UFile (package = )
|
||||
ULiteralExpression (value = 0)
|
||||
UMethod (name = run)
|
||||
UBlockExpression
|
||||
UMethod (name = AnonymousKt$foo$runnableIs$1)
|
||||
UMethod (name = )
|
||||
UMethod (name = withErr)
|
||||
UBlockExpression
|
||||
UDeclarationsExpression
|
||||
|
||||
+2
-2
@@ -10,9 +10,9 @@ UQualifiedReferenceExpression -> USimpleNameReferenceExpression (identifier = io
|
||||
UQualifiedReferenceExpression -> USimpleNameReferenceExpression (identifier = InputStream) -> PsiClass:InputStream: InputStream
|
||||
ULocalVariable (name = runnable) -> UObjectLiteralExpression -> null:
|
||||
UTypeReferenceExpression (name = java.lang.Runnable) -> USimpleNameReferenceExpression (identifier = Runnable) -> PsiClass:Runnable: Runnable
|
||||
UBlockExpression -> UQualifiedReferenceExpression -> KtLightMethodImpl:run: run
|
||||
UBlockExpression -> UQualifiedReferenceExpression -> KtUltraLightMethodForSourceDeclaration:run: run
|
||||
UQualifiedReferenceExpression -> USimpleNameReferenceExpression (identifier = runnable) -> LightVariableBuilder:runnable: runnable
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))(resolves to KtLightMethodImpl:run) -> USimpleNameReferenceExpression (identifier = run) -> KtLightMethodImpl:run: run
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))(resolves to KtUltraLightMethodForSourceDeclaration:run) -> USimpleNameReferenceExpression (identifier = run) -> KtUltraLightMethodForSourceDeclaration:run: run
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 1))(resolves to null) -> USimpleNameReferenceExpression (identifier = Runnable) -> PsiClass:Runnable: Runnable
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))(resolves to PsiMethod:println) -> USimpleNameReferenceExpression (identifier = println) -> PsiMethod:println: println
|
||||
UBlockExpression -> UQualifiedReferenceExpression -> PsiMethod:run: run
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
UTypeReferenceExpression (name = <ErrorType>) -> USimpleNameReferenceExpression (identifier = Test) -> null: null
|
||||
UTypeReferenceExpression (name = java.lang.String) -> USimpleNameReferenceExpression (identifier = String) -> PsiClass:String: String
|
||||
UTypeReferenceExpression (name = MyAnnotation) -> USimpleNameReferenceExpression (identifier = MyAnnotation) -> KtLightClassImpl:annotation class MyAnnotation(val text: String): MyAnnotation
|
||||
UTypeReferenceExpression (name = MyAnnotation) -> USimpleNameReferenceExpression (identifier = MyAnnotation) -> KtLightClassImpl:annotation class MyAnnotation(val text: String): MyAnnotation
|
||||
UTypeReferenceExpression (name = MyAnnotation) -> USimpleNameReferenceExpression (identifier = MyAnnotation) -> KtLightClassImpl:annotation class MyAnnotation(val text: String): MyAnnotation
|
||||
UTypeReferenceExpression (name = MyAnnotation) -> USimpleNameReferenceExpression (identifier = MyAnnotation) -> KtLightClassImpl:annotation class MyAnnotation(val text: String): MyAnnotation
|
||||
UTypeReferenceExpression (name = MyAnnotation) -> USimpleNameReferenceExpression (identifier = MyAnnotation) -> KtUltraLightClass:annotation class MyAnnotation(val text: String): MyAnnotation
|
||||
UTypeReferenceExpression (name = MyAnnotation) -> USimpleNameReferenceExpression (identifier = MyAnnotation) -> KtUltraLightClass:annotation class MyAnnotation(val text: String): MyAnnotation
|
||||
UTypeReferenceExpression (name = MyAnnotation) -> USimpleNameReferenceExpression (identifier = MyAnnotation) -> KtUltraLightClass:annotation class MyAnnotation(val text: String): MyAnnotation
|
||||
UTypeReferenceExpression (name = MyAnnotation) -> USimpleNameReferenceExpression (identifier = MyAnnotation) -> KtUltraLightClass:annotation class MyAnnotation(val text: String): MyAnnotation
|
||||
|
||||
@@ -37,13 +37,3 @@ UFile (package = )
|
||||
UMethod (name = Derived)
|
||||
UParameter (name = b)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UMethod (name = print)
|
||||
UMethod (name = getLength)
|
||||
UMethod (name = get)
|
||||
UParameter (name = index)
|
||||
UAnnotation (fqName = null)
|
||||
UMethod (name = subSequence)
|
||||
UParameter (name = startIndex)
|
||||
UAnnotation (fqName = null)
|
||||
UParameter (name = endIndex)
|
||||
UAnnotation (fqName = null)
|
||||
|
||||
@@ -37,12 +37,3 @@ UFile (package = )
|
||||
UMethod (name = Derived)
|
||||
UParameter (name = b)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UMethod (name = getLength)
|
||||
UMethod (name = get)
|
||||
UParameter (name = index)
|
||||
UAnnotation (fqName = null)
|
||||
UMethod (name = subSequence)
|
||||
UParameter (name = startIndex)
|
||||
UAnnotation (fqName = null)
|
||||
UParameter (name = endIndex)
|
||||
UAnnotation (fqName = null)
|
||||
|
||||
@@ -19,8 +19,4 @@ public final class BaseImpl : Base {
|
||||
|
||||
public final class Derived : Base, java.lang.CharSequence {
|
||||
public fun Derived(@org.jetbrains.annotations.NotNull b: Base) = UastEmptyExpression
|
||||
public fun print() : void = UastEmptyExpression
|
||||
public fun getLength() : int = UastEmptyExpression
|
||||
public fun get(@null index: int) : char = UastEmptyExpression
|
||||
public fun subSequence(@null startIndex: int, @null endIndex: int) : java.lang.CharSequence = UastEmptyExpression
|
||||
}
|
||||
|
||||
@@ -19,7 +19,4 @@ public final class BaseImpl : Base {
|
||||
|
||||
public final class Derived : Base, java.lang.CharSequence {
|
||||
public fun Derived(@org.jetbrains.annotations.NotNull b: Base) = UastEmptyExpression
|
||||
public fun getLength() : int = UastEmptyExpression
|
||||
public fun get(@null index: int) : char = UastEmptyExpression
|
||||
public fun subSequence(@null startIndex: int, @null endIndex: int) : java.lang.CharSequence = UastEmptyExpression
|
||||
}
|
||||
|
||||
+2
-2
@@ -90,7 +90,7 @@ UFile (package = )
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UMethod (name = getA)
|
||||
UMethod (name = setA)
|
||||
UParameter (name = p)
|
||||
UParameter (name = a)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UMethod (name = AWithSecondary)
|
||||
UParameter (name = i)
|
||||
@@ -121,7 +121,7 @@ UFile (package = )
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UMethod (name = getA)
|
||||
UMethod (name = setA)
|
||||
UParameter (name = p)
|
||||
UParameter (name = a)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UMethod (name = AWithSecondaryInit)
|
||||
UParameter (name = i)
|
||||
|
||||
+2
-2
@@ -50,7 +50,7 @@ public final class AOnlyInit {
|
||||
public final class AWithSecondary {
|
||||
@org.jetbrains.annotations.NotNull public var a: java.lang.String
|
||||
public final fun getA() : java.lang.String = UastEmptyExpression
|
||||
public final fun setA(@org.jetbrains.annotations.NotNull p: java.lang.String) : void = UastEmptyExpression
|
||||
public final fun setA(@org.jetbrains.annotations.NotNull a: java.lang.String) : void = UastEmptyExpression
|
||||
public fun AWithSecondary(@org.jetbrains.annotations.NotNull i: int) {
|
||||
<init>()
|
||||
a = i.toString()
|
||||
@@ -64,7 +64,7 @@ public final class AWithSecondary {
|
||||
public final class AWithSecondaryInit {
|
||||
@org.jetbrains.annotations.NotNull public var a: java.lang.String
|
||||
public final fun getA() : java.lang.String = UastEmptyExpression
|
||||
public final fun setA(@org.jetbrains.annotations.NotNull p: java.lang.String) : void = UastEmptyExpression
|
||||
public final fun setA(@org.jetbrains.annotations.NotNull a: java.lang.String) : void = UastEmptyExpression
|
||||
public fun AWithSecondaryInit(@org.jetbrains.annotations.NotNull i: int) {
|
||||
<init>()
|
||||
{
|
||||
|
||||
+11
-11
@@ -1,22 +1,22 @@
|
||||
UTypeReferenceExpression (name = java.lang.String) -> USimpleNameReferenceExpression (identifier = String) -> PsiClass:String: String
|
||||
UTypeReferenceExpression (name = int) -> USimpleNameReferenceExpression (identifier = Int) -> PsiClass:Integer: Integer
|
||||
UBlockExpression -> UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 1)) -> KtLightMethodImpl:A:
|
||||
UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 1))(resolves to KtLightMethodImpl:A) -> UQualifiedReferenceExpression -> null: null
|
||||
UBlockExpression -> UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 1)) -> KtUltraLightMethodForSourceDeclaration:A:
|
||||
UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 1))(resolves to KtUltraLightMethodForSourceDeclaration:A) -> UQualifiedReferenceExpression -> null: null
|
||||
UQualifiedReferenceExpression -> USimpleNameReferenceExpression (identifier = i) -> Light Parameter: i
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))(resolves to null) -> USimpleNameReferenceExpression (identifier = toString) -> null: null
|
||||
UTypeReferenceExpression (name = java.lang.String) -> USimpleNameReferenceExpression (identifier = String) -> PsiClass:String: String
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))(resolves to PsiMethod:println) -> USimpleNameReferenceExpression (identifier = println) -> PsiMethod:println: println
|
||||
UTypeReferenceExpression (name = int) -> USimpleNameReferenceExpression (identifier = Int) -> PsiClass:Integer: Integer
|
||||
UBlockExpression -> UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 1)) -> KtLightMethodImpl:AWithInit:
|
||||
UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 1))(resolves to KtLightMethodImpl:AWithInit) -> UQualifiedReferenceExpression -> null: null
|
||||
UBlockExpression -> UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 1)) -> KtUltraLightMethodForSourceDeclaration:AWithInit:
|
||||
UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 1))(resolves to KtUltraLightMethodForSourceDeclaration:AWithInit) -> UQualifiedReferenceExpression -> null: null
|
||||
UQualifiedReferenceExpression -> USimpleNameReferenceExpression (identifier = i) -> Light Parameter: i
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))(resolves to null) -> USimpleNameReferenceExpression (identifier = toString) -> null: null
|
||||
UTypeReferenceExpression (name = java.lang.String) -> USimpleNameReferenceExpression (identifier = String) -> PsiClass:String: String
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 1))(resolves to PsiMethod:println) -> USimpleNameReferenceExpression (identifier = println) -> PsiMethod:println: println
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 1))(resolves to PsiMethod:println) -> USimpleNameReferenceExpression (identifier = println) -> PsiMethod:println: println
|
||||
UTypeReferenceExpression (name = int) -> USimpleNameReferenceExpression (identifier = Int) -> PsiClass:Integer: Integer
|
||||
UBlockExpression -> UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 1)) -> KtLightMethodImpl:AWith2Init:
|
||||
UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 1))(resolves to KtLightMethodImpl:AWith2Init) -> UQualifiedReferenceExpression -> null: null
|
||||
UBlockExpression -> UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 1)) -> KtUltraLightMethodForSourceDeclaration:AWith2Init:
|
||||
UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 1))(resolves to KtUltraLightMethodForSourceDeclaration:AWith2Init) -> UQualifiedReferenceExpression -> null: null
|
||||
UQualifiedReferenceExpression -> USimpleNameReferenceExpression (identifier = i) -> Light Parameter: i
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))(resolves to null) -> USimpleNameReferenceExpression (identifier = toString) -> null: null
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 1))(resolves to PsiMethod:println) -> USimpleNameReferenceExpression (identifier = println) -> PsiMethod:println: println
|
||||
@@ -24,28 +24,28 @@ UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))(resolve
|
||||
UTypeReferenceExpression (name = java.lang.String) -> USimpleNameReferenceExpression (identifier = String) -> PsiClass:String: String
|
||||
UTypeReferenceExpression (name = int) -> USimpleNameReferenceExpression (identifier = Int) -> PsiClass:Integer: Integer
|
||||
UBlockExpression -> UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 0)) -> PsiMethod:Object:
|
||||
UBinaryExpression (operator = =) -> USimpleNameReferenceExpression (identifier = a) -> KtLightMethodImpl:setA: setA
|
||||
UBinaryExpression (operator = =) -> USimpleNameReferenceExpression (identifier = a) -> KtUltraLightMethodForSourceDeclaration:setA: setA
|
||||
UBinaryExpression (operator = =) -> USimpleNameReferenceExpression (identifier = =) -> null: null
|
||||
UBinaryExpression (operator = =) -> UQualifiedReferenceExpression -> null: null
|
||||
UQualifiedReferenceExpression -> USimpleNameReferenceExpression (identifier = i) -> Light Parameter: i
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))(resolves to null) -> USimpleNameReferenceExpression (identifier = toString) -> null: null
|
||||
UTypeReferenceExpression (name = java.lang.String) -> USimpleNameReferenceExpression (identifier = String) -> PsiClass:String: String
|
||||
UBlockExpression -> UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 0)) -> PsiMethod:Object:
|
||||
UBinaryExpression (operator = =) -> USimpleNameReferenceExpression (identifier = a) -> KtLightMethodImpl:setA: setA
|
||||
UBinaryExpression (operator = =) -> USimpleNameReferenceExpression (identifier = a) -> KtUltraLightMethodForSourceDeclaration:setA: setA
|
||||
UBinaryExpression (operator = =) -> USimpleNameReferenceExpression (identifier = =) -> null: null
|
||||
UBinaryExpression (operator = =) -> USimpleNameReferenceExpression (identifier = s) -> Light Parameter: s
|
||||
UTypeReferenceExpression (name = java.lang.String) -> USimpleNameReferenceExpression (identifier = String) -> PsiClass:String: String
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))(resolves to PsiMethod:println) -> USimpleNameReferenceExpression (identifier = println) -> PsiMethod:println: println
|
||||
UTypeReferenceExpression (name = int) -> USimpleNameReferenceExpression (identifier = Int) -> PsiClass:Integer: Integer
|
||||
UBlockExpression -> UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 0)) -> PsiMethod:Object:
|
||||
UBinaryExpression (operator = =) -> USimpleNameReferenceExpression (identifier = a) -> KtLightMethodImpl:setA: setA
|
||||
UBinaryExpression (operator = =) -> USimpleNameReferenceExpression (identifier = a) -> KtUltraLightMethodForSourceDeclaration:setA: setA
|
||||
UBinaryExpression (operator = =) -> USimpleNameReferenceExpression (identifier = =) -> null: null
|
||||
UBinaryExpression (operator = =) -> UQualifiedReferenceExpression -> null: null
|
||||
UQualifiedReferenceExpression -> USimpleNameReferenceExpression (identifier = i) -> Light Parameter: i
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))(resolves to null) -> USimpleNameReferenceExpression (identifier = toString) -> null: null
|
||||
UTypeReferenceExpression (name = java.lang.String) -> USimpleNameReferenceExpression (identifier = String) -> PsiClass:String: String
|
||||
UBlockExpression -> UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 0)) -> PsiMethod:Object:
|
||||
UBinaryExpression (operator = =) -> USimpleNameReferenceExpression (identifier = a) -> KtLightMethodImpl:setA: setA
|
||||
UBinaryExpression (operator = =) -> USimpleNameReferenceExpression (identifier = a) -> KtUltraLightMethodForSourceDeclaration:setA: setA
|
||||
UBinaryExpression (operator = =) -> USimpleNameReferenceExpression (identifier = =) -> null: null
|
||||
UBinaryExpression (operator = =) -> USimpleNameReferenceExpression (identifier = s) -> Light Parameter: s
|
||||
UTypeReferenceExpression (name = java.lang.String) -> USimpleNameReferenceExpression (identifier = String) -> PsiClass:String: String
|
||||
@@ -55,7 +55,7 @@ UBlockExpression -> UCallExpression (kind = UastCallKind(name='constructor_call'
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))(resolves to PsiMethod:toString) -> USimpleNameReferenceExpression (identifier = toString) -> PsiMethod:toString: toString
|
||||
UTypeReferenceExpression (name = int) -> USimpleNameReferenceExpression (identifier = Int) -> PsiClass:Integer: Integer
|
||||
UTypeReferenceExpression (name = java.lang.String) -> USimpleNameReferenceExpression (identifier = String) -> PsiClass:String: String
|
||||
UBinaryExpression (operator = =) -> USimpleNameReferenceExpression (identifier = a) -> KtLightFieldForSourceDeclaration:a: a
|
||||
UBinaryExpression (operator = =) -> USimpleNameReferenceExpression (identifier = a) -> LightVariableBuilder:a: a
|
||||
UBinaryExpression (operator = =) -> USimpleNameReferenceExpression (identifier = =) -> null: null
|
||||
UBinaryExpression (operator = =) -> UQualifiedReferenceExpression -> null: null
|
||||
UQualifiedReferenceExpression -> USimpleNameReferenceExpression (identifier = i) -> Light Parameter: i
|
||||
|
||||
+3
-3
@@ -1,17 +1,17 @@
|
||||
UFile (package = )
|
||||
UClass (name = Style)
|
||||
UField (name = value)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UEnumConstant (name = SHEET)
|
||||
UAnnotation (fqName = null)
|
||||
USimpleNameReferenceExpression (identifier = Style)
|
||||
ULiteralExpression (value = "foo")
|
||||
UClass (name = null)
|
||||
UClass (name = SHEET)
|
||||
UMethod (name = getExitAnimation)
|
||||
UBlockExpression
|
||||
UReturnExpression
|
||||
ULiteralExpression (value = "bar")
|
||||
UMethod (name = SHEET)
|
||||
UField (name = value)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UMethod (name = getExitAnimation)
|
||||
UMethod (name = getValue)
|
||||
UMethod (name = Style)
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
public enum Style {
|
||||
@org.jetbrains.annotations.NotNull private final var value: java.lang.String
|
||||
@null SHEET("foo") {
|
||||
public fun getExitAnimation() : java.lang.String {
|
||||
return "bar"
|
||||
}
|
||||
fun SHEET() = UastEmptyExpression
|
||||
}
|
||||
@org.jetbrains.annotations.NotNull private final var value: java.lang.String
|
||||
public abstract fun getExitAnimation() : java.lang.String = UastEmptyExpression
|
||||
public final fun getValue() : java.lang.String = UastEmptyExpression
|
||||
private fun Style(@org.jetbrains.annotations.NotNull value: java.lang.String) = UastEmptyExpression
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
UFile (package = )
|
||||
UClass (name = Style)
|
||||
UField (name = value)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.Nullable)
|
||||
UEnumConstant (name = SYSTEM)
|
||||
UAnnotation (fqName = null)
|
||||
USimpleNameReferenceExpression (identifier = Style)
|
||||
@@ -16,8 +18,6 @@ UFile (package = )
|
||||
UAnnotation (fqName = null)
|
||||
USimpleNameReferenceExpression (identifier = Style)
|
||||
ULiteralExpression (value = null)
|
||||
UField (name = value)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.Nullable)
|
||||
UMethod (name = getValue)
|
||||
UMethod (name = Style)
|
||||
UParameter (name = value)
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
public enum Style {
|
||||
@org.jetbrains.annotations.Nullable private final var value: java.lang.String
|
||||
@null SYSTEM("system")
|
||||
@null USER("user")
|
||||
@null INTERNAL("internal")
|
||||
@null UNKNOWN(null)
|
||||
@org.jetbrains.annotations.Nullable private final var value: java.lang.String
|
||||
public final fun getValue() : java.lang.String = UastEmptyExpression
|
||||
private fun Style(@org.jetbrains.annotations.Nullable value: java.lang.String) = UastEmptyExpression
|
||||
}
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ UFile (package = )
|
||||
UBlockExpression
|
||||
UDeclarationsExpression
|
||||
UClass (name = Local)
|
||||
UMethod (name = LocalDeclarationsKt$foo$Local)
|
||||
UMethod (name = Local)
|
||||
UDeclarationsExpression
|
||||
UVariable (name = bar)
|
||||
ULambdaExpression
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
public final class LocalDeclarationsKt {
|
||||
public static final fun foo() : boolean {
|
||||
public static final class Local {
|
||||
public fun LocalDeclarationsKt$foo$Local() = UastEmptyExpression
|
||||
public fun Local() = UastEmptyExpression
|
||||
}
|
||||
var bar: <ErrorType> = fun () {
|
||||
return <init>()
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
UTypeReferenceExpression (name = boolean) -> USimpleNameReferenceExpression (identifier = Boolean) -> PsiClass:Boolean: Boolean
|
||||
UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 0))(resolves to LightMethodBuilder:Local) -> USimpleNameReferenceExpression (identifier = Local) -> KtLightClassForLocalDeclaration:class Local: Local
|
||||
UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 0))(resolves to LightMethodBuilder:Local) -> USimpleNameReferenceExpression (identifier = Local) -> KtLightClassForLocalDeclaration:class Local: Local
|
||||
UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 0))(resolves to KtUltraLightMethodForSourceDeclaration:Local) -> USimpleNameReferenceExpression (identifier = Local) -> KtUltraLightClassForLocalDeclaration:class Local: Local
|
||||
UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 0))(resolves to KtUltraLightMethodForSourceDeclaration:Local) -> USimpleNameReferenceExpression (identifier = Local) -> KtUltraLightClassForLocalDeclaration:class Local: Local
|
||||
UTypeReferenceExpression (name = int) -> USimpleNameReferenceExpression (identifier = Int) -> PsiClass:Integer: Integer
|
||||
UTypeReferenceExpression (name = java.lang.String) -> USimpleNameReferenceExpression (identifier = String) -> PsiClass:String: String
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))(resolves to LightMethodBuilder:bar) -> USimpleNameReferenceExpression (identifier = bar) -> LightVariableBuilder:bar: bar
|
||||
UBinaryExpression (operator = ==) -> USimpleNameReferenceExpression (identifier = ==) -> null: null
|
||||
UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 0))(resolves to LightMethodBuilder:Local) -> USimpleNameReferenceExpression (identifier = Local) -> KtLightClassForLocalDeclaration:class Local: Local
|
||||
UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 0))(resolves to KtUltraLightMethodForSourceDeclaration:Local) -> USimpleNameReferenceExpression (identifier = Local) -> KtUltraLightClassForLocalDeclaration:class Local: Local
|
||||
|
||||
@@ -4,7 +4,7 @@ UFile (package = ) [public final class LocalDeclarationsKt {...]
|
||||
UBlockExpression [{...}] : PsiType:Void
|
||||
UDeclarationsExpression [public static final class Local {...}]
|
||||
UClass (name = Local) [public static final class Local {...}]
|
||||
UMethod (name = LocalDeclarationsKt$foo$Local) [public fun LocalDeclarationsKt$foo$Local() = UastEmptyExpression]
|
||||
UMethod (name = Local) [public fun Local() = UastEmptyExpression]
|
||||
UDeclarationsExpression [var bar: <ErrorType> = fun () {...}]
|
||||
UVariable (name = bar) [var bar: <ErrorType> = fun () {...}]
|
||||
ULambdaExpression [fun () {...}]
|
||||
|
||||
@@ -4,7 +4,7 @@ UFile (package = ) [public final class LocalDeclarationsKt {...]
|
||||
UBlockExpression [{...}] = Nothing
|
||||
UDeclarationsExpression [public static final class Local {...}] = Undetermined
|
||||
UClass (name = Local) [public static final class Local {...}]
|
||||
UMethod (name = LocalDeclarationsKt$foo$Local) [public fun LocalDeclarationsKt$foo$Local() = UastEmptyExpression]
|
||||
UMethod (name = Local) [public fun Local() = UastEmptyExpression]
|
||||
UDeclarationsExpression [var bar: <ErrorType> = fun () {...}] = Undetermined
|
||||
UVariable (name = bar) [var bar: <ErrorType> = fun () {...}]
|
||||
ULambdaExpression [fun () {...}] = Undetermined
|
||||
|
||||
+1
-1
@@ -6,4 +6,4 @@ class Foo {
|
||||
val x = Foo::bar
|
||||
|
||||
// REF:Foo::bar
|
||||
// RESULT:KtLightMethodImpl:bar
|
||||
// RESULT:KtUltraLightMethodForSourceDeclaration:bar
|
||||
|
||||
@@ -9,8 +9,8 @@ UFile (package = )
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UMethod (name = getBar)
|
||||
UMethod (name = setBar)
|
||||
UParameter (name = p)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UParameter (name = bar)
|
||||
UAnnotation (fqName = null)
|
||||
UMethod (name = Test1)
|
||||
UParameter (name = bar)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
@@ -23,9 +23,9 @@ UFile (package = )
|
||||
UAnnotation (fqName = MyAnnotation)
|
||||
UMethod (name = setBar)
|
||||
UAnnotation (fqName = MyAnnotation2)
|
||||
UParameter (name = p)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UParameter (name = bar)
|
||||
UAnnotation (fqName = MyAnnotation3)
|
||||
UAnnotation (fqName = null)
|
||||
UMethod (name = Test2)
|
||||
UParameter (name = bar)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
|
||||
@@ -16,7 +16,7 @@ public abstract annotation MyAnnotation5 {
|
||||
public final class Test1 {
|
||||
@org.jetbrains.annotations.NotNull private var bar: int
|
||||
public final fun getBar() : int = UastEmptyExpression
|
||||
public final fun setBar(@org.jetbrains.annotations.NotNull p: int) : void = UastEmptyExpression
|
||||
public final fun setBar(@null bar: int) : void = UastEmptyExpression
|
||||
public fun Test1(@org.jetbrains.annotations.NotNull @MyAnnotation bar: int) = UastEmptyExpression
|
||||
}
|
||||
|
||||
@@ -25,6 +25,6 @@ public final class Test2 {
|
||||
@MyAnnotation
|
||||
public final fun getBar() : int = UastEmptyExpression
|
||||
@MyAnnotation2
|
||||
public final fun setBar(@org.jetbrains.annotations.NotNull @MyAnnotation3 p: int) : void = UastEmptyExpression
|
||||
public final fun setBar(@MyAnnotation3 @null bar: int) : void = UastEmptyExpression
|
||||
public fun Test2(@org.jetbrains.annotations.NotNull bar: int) = UastEmptyExpression
|
||||
}
|
||||
|
||||
+1
-1
@@ -144,7 +144,7 @@ UFile (package = )
|
||||
ULiteralExpression (value = 1)
|
||||
ULiteralExpression (value = "foo")
|
||||
UClass (name = null)
|
||||
UMethod (name = ParametersDisorderKt$objectLiteral$1)
|
||||
UMethod (name = )
|
||||
UClass (name = A)
|
||||
UMethod (name = with2Receivers)
|
||||
UParameter (name = $this$with2Receivers)
|
||||
|
||||
@@ -8,5 +8,5 @@ UFile (package = )
|
||||
UReturnExpression
|
||||
USimpleNameReferenceExpression (identifier = field)
|
||||
UMethod (name = setWithoutSetter)
|
||||
UParameter (name = p)
|
||||
UParameter (name = withoutSetter)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
|
||||
@@ -3,5 +3,5 @@ public final class PropertyInitializerWithoutSetterKt {
|
||||
public static final fun getWithoutSetter() : java.lang.String {
|
||||
return field
|
||||
}
|
||||
public static final fun setWithoutSetter(@org.jetbrains.annotations.NotNull p: java.lang.String) : void = UastEmptyExpression
|
||||
public static final fun setWithoutSetter(@org.jetbrains.annotations.NotNull withoutSetter: java.lang.String) : void = UastEmptyExpression
|
||||
}
|
||||
|
||||
+21
-21
@@ -1,38 +1,38 @@
|
||||
UTypeReferenceExpression (name = int) -> USimpleNameReferenceExpression (identifier = Int) -> PsiClass:Integer: Integer
|
||||
UTypeReferenceExpression (name = int) -> USimpleNameReferenceExpression (identifier = Int) -> PsiClass:Integer: Integer
|
||||
UBinaryExpression (operator = =) -> USimpleNameReferenceExpression (identifier = mutableProp) -> KtLightMethodImpl:setMutableProp: setMutableProp
|
||||
UBinaryExpression (operator = =) -> USimpleNameReferenceExpression (identifier = mutableProp) -> KtUltraLightMethodForSourceDeclaration:setMutableProp: setMutableProp
|
||||
UBinaryExpression (operator = =) -> USimpleNameReferenceExpression (identifier = =) -> null: null
|
||||
UBinaryExpression (operator = =) -> USimpleNameReferenceExpression (identifier = init) -> Light Parameter: init
|
||||
UTypeReferenceExpression (name = int) -> USimpleNameReferenceExpression (identifier = Int) -> PsiClass:Integer: Integer
|
||||
UTypeReferenceExpression (name = int) -> USimpleNameReferenceExpression (identifier = Int) -> PsiClass:Integer: Integer
|
||||
ULocalVariable (name = result) -> USimpleNameReferenceExpression (identifier = privateProp) -> KtLightFieldForSourceDeclaration:privateProp: privateProp
|
||||
UBinaryExpression (operator = =) -> USimpleNameReferenceExpression (identifier = privateProp) -> KtLightFieldForSourceDeclaration:privateProp: privateProp
|
||||
ULocalVariable (name = result) -> USimpleNameReferenceExpression (identifier = privateProp) -> LightVariableBuilder:privateProp: privateProp
|
||||
UBinaryExpression (operator = =) -> USimpleNameReferenceExpression (identifier = privateProp) -> LightVariableBuilder:privateProp: privateProp
|
||||
UBinaryExpression (operator = =) -> USimpleNameReferenceExpression (identifier = =) -> null: null
|
||||
UBinaryExpression (operator = =) -> USimpleNameReferenceExpression (identifier = x) -> Light Parameter: x
|
||||
UReturnExpression -> USimpleNameReferenceExpression (identifier = privateProp) -> KtLightFieldForSourceDeclaration:privateProp: privateProp
|
||||
UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 1))(resolves to KtLightMethodImpl:A) -> USimpleNameReferenceExpression (identifier = A) -> KtLightMethodImpl:A: A
|
||||
UReturnExpression -> USimpleNameReferenceExpression (identifier = privateProp) -> LightVariableBuilder:privateProp: privateProp
|
||||
UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 1))(resolves to KtUltraLightMethodForSourceDeclaration:A) -> USimpleNameReferenceExpression (identifier = A) -> KtUltraLightMethodForSourceDeclaration:A: A
|
||||
UPrefixExpression (operator = -) -> USimpleNameReferenceExpression (identifier = -) -> null: null
|
||||
UPrefixExpression (operator = -) -> UQualifiedReferenceExpression -> KtLightMethodImpl:getMutableProp: getMutableProp
|
||||
UPrefixExpression (operator = -) -> UQualifiedReferenceExpression -> KtUltraLightMethodForSourceDeclaration:getMutableProp: getMutableProp
|
||||
UQualifiedReferenceExpression -> USimpleNameReferenceExpression (identifier = a) -> LightVariableBuilder:a: a
|
||||
UQualifiedReferenceExpression -> USimpleNameReferenceExpression (identifier = mutableProp) -> KtLightMethodImpl:getMutableProp: getMutableProp
|
||||
UBinaryExpression (operator = =) -> UQualifiedReferenceExpression -> KtLightMethodImpl:setMutableProp: setMutableProp
|
||||
UQualifiedReferenceExpression -> USimpleNameReferenceExpression (identifier = mutableProp) -> KtUltraLightMethodForSourceDeclaration:getMutableProp: getMutableProp
|
||||
UBinaryExpression (operator = =) -> UQualifiedReferenceExpression -> KtUltraLightMethodForSourceDeclaration:setMutableProp: setMutableProp
|
||||
UQualifiedReferenceExpression -> USimpleNameReferenceExpression (identifier = a) -> LightVariableBuilder:a: a
|
||||
UQualifiedReferenceExpression -> USimpleNameReferenceExpression (identifier = mutableProp) -> KtLightMethodImpl:setMutableProp: setMutableProp
|
||||
UQualifiedReferenceExpression -> USimpleNameReferenceExpression (identifier = mutableProp) -> KtUltraLightMethodForSourceDeclaration:setMutableProp: setMutableProp
|
||||
UBinaryExpression (operator = =) -> USimpleNameReferenceExpression (identifier = =) -> null: null
|
||||
UBinaryExpression (operator = +=) -> UQualifiedReferenceExpression -> KtLightMethodImpl:setMutableProp: setMutableProp
|
||||
UBinaryExpression (operator = +=) -> UQualifiedReferenceExpression -> KtUltraLightMethodForSourceDeclaration:setMutableProp: setMutableProp
|
||||
UQualifiedReferenceExpression -> USimpleNameReferenceExpression (identifier = a) -> LightVariableBuilder:a: a
|
||||
UQualifiedReferenceExpression -> USimpleNameReferenceExpression (identifier = mutableProp) -> KtLightMethodImpl:setMutableProp: setMutableProp
|
||||
UQualifiedReferenceExpression -> USimpleNameReferenceExpression (identifier = mutableProp) -> KtUltraLightMethodForSourceDeclaration:setMutableProp: setMutableProp
|
||||
UBinaryExpression (operator = +=) -> USimpleNameReferenceExpression (identifier = +=) -> null: null
|
||||
UBinaryExpression (operator = +=) -> USimpleNameReferenceExpression (identifier = x) -> LightVariableBuilder:x: x
|
||||
UPrefixExpression (operator = ++) -> USimpleNameReferenceExpression (identifier = ++) -> null: null
|
||||
UPrefixExpression (operator = ++) -> UQualifiedReferenceExpression -> KtLightMethodImpl:setMutableProp: setMutableProp
|
||||
UPrefixExpression (operator = ++) -> UQualifiedReferenceExpression -> KtUltraLightMethodForSourceDeclaration:setMutableProp: setMutableProp
|
||||
UQualifiedReferenceExpression -> USimpleNameReferenceExpression (identifier = a) -> LightVariableBuilder:a: a
|
||||
UQualifiedReferenceExpression -> USimpleNameReferenceExpression (identifier = mutableProp) -> KtLightMethodImpl:setMutableProp: setMutableProp
|
||||
UPostfixExpression (operator = --) -> UQualifiedReferenceExpression -> KtLightMethodImpl:setMutableProp: setMutableProp
|
||||
UQualifiedReferenceExpression -> USimpleNameReferenceExpression (identifier = mutableProp) -> KtUltraLightMethodForSourceDeclaration:setMutableProp: setMutableProp
|
||||
UPostfixExpression (operator = --) -> UQualifiedReferenceExpression -> KtUltraLightMethodForSourceDeclaration:setMutableProp: setMutableProp
|
||||
UQualifiedReferenceExpression -> USimpleNameReferenceExpression (identifier = a) -> LightVariableBuilder:a: a
|
||||
UQualifiedReferenceExpression -> USimpleNameReferenceExpression (identifier = mutableProp) -> KtLightMethodImpl:setMutableProp: setMutableProp
|
||||
UQualifiedReferenceExpression -> USimpleNameReferenceExpression (identifier = mutableProp) -> KtUltraLightMethodForSourceDeclaration:setMutableProp: setMutableProp
|
||||
UPostfixExpression (operator = --) -> USimpleNameReferenceExpression (identifier = --) -> null: null
|
||||
UTypeReferenceExpression (name = A) -> USimpleNameReferenceExpression (identifier = A) -> KtLightClassImpl:class A(init: Int) {
|
||||
UTypeReferenceExpression (name = A) -> USimpleNameReferenceExpression (identifier = A) -> KtUltraLightClass:class A(init: Int) {
|
||||
private var privateProp = 0 // accesses should be field accesses
|
||||
var mutableProp: Int
|
||||
init {
|
||||
@@ -46,13 +46,13 @@ UTypeReferenceExpression (name = A) -> USimpleNameReferenceExpression (identifie
|
||||
}
|
||||
}: A
|
||||
UPrefixExpression (operator = -) -> USimpleNameReferenceExpression (identifier = -) -> null: null
|
||||
UPrefixExpression (operator = -) -> USimpleNameReferenceExpression (identifier = mutableProp) -> KtLightMethodImpl:getMutableProp: getMutableProp
|
||||
UBinaryExpression (operator = =) -> USimpleNameReferenceExpression (identifier = mutableProp) -> KtLightMethodImpl:setMutableProp: setMutableProp
|
||||
UPrefixExpression (operator = -) -> USimpleNameReferenceExpression (identifier = mutableProp) -> KtUltraLightMethodForSourceDeclaration:getMutableProp: getMutableProp
|
||||
UBinaryExpression (operator = =) -> USimpleNameReferenceExpression (identifier = mutableProp) -> KtUltraLightMethodForSourceDeclaration:setMutableProp: setMutableProp
|
||||
UBinaryExpression (operator = =) -> USimpleNameReferenceExpression (identifier = =) -> null: null
|
||||
UBinaryExpression (operator = +=) -> USimpleNameReferenceExpression (identifier = mutableProp) -> KtLightMethodImpl:setMutableProp: setMutableProp
|
||||
UBinaryExpression (operator = +=) -> USimpleNameReferenceExpression (identifier = mutableProp) -> KtUltraLightMethodForSourceDeclaration:setMutableProp: setMutableProp
|
||||
UBinaryExpression (operator = +=) -> USimpleNameReferenceExpression (identifier = +=) -> null: null
|
||||
UBinaryExpression (operator = +=) -> USimpleNameReferenceExpression (identifier = x) -> LightVariableBuilder:x: x
|
||||
UPrefixExpression (operator = ++) -> USimpleNameReferenceExpression (identifier = ++) -> null: null
|
||||
UPrefixExpression (operator = ++) -> USimpleNameReferenceExpression (identifier = mutableProp) -> KtLightMethodImpl:setMutableProp: setMutableProp
|
||||
UPostfixExpression (operator = --) -> USimpleNameReferenceExpression (identifier = mutableProp) -> KtLightMethodImpl:setMutableProp: setMutableProp
|
||||
UPrefixExpression (operator = ++) -> USimpleNameReferenceExpression (identifier = mutableProp) -> KtUltraLightMethodForSourceDeclaration:setMutableProp: setMutableProp
|
||||
UPostfixExpression (operator = --) -> USimpleNameReferenceExpression (identifier = mutableProp) -> KtUltraLightMethodForSourceDeclaration:setMutableProp: setMutableProp
|
||||
UPostfixExpression (operator = --) -> USimpleNameReferenceExpression (identifier = --) -> null: null
|
||||
|
||||
+15
-15
@@ -1,22 +1,22 @@
|
||||
UBlockExpression -> UQualifiedReferenceExpression -> KtLightMethodImpl:foo: foo
|
||||
UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 0))(resolves to KtLightMethodImpl:A) -> USimpleNameReferenceExpression (identifier = A) -> KtLightClassImpl:open class A {
|
||||
UBlockExpression -> UQualifiedReferenceExpression -> KtUltraLightMethodForSourceDeclaration:foo: foo
|
||||
UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 0))(resolves to KtUltraLightMethodForSourceDeclaration:A) -> USimpleNameReferenceExpression (identifier = A) -> KtUltraLightClass:open class A {
|
||||
fun foo() {}
|
||||
inline fun inlineFoo() {
|
||||
|
||||
}
|
||||
}: A
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))(resolves to KtLightMethodImpl:foo) -> USimpleNameReferenceExpression (identifier = foo) -> KtLightMethodImpl:foo: foo
|
||||
UBlockExpression -> UQualifiedReferenceExpression -> KtLightMethodImpl:inlineFoo: inlineFoo
|
||||
UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 0))(resolves to KtLightMethodImpl:A) -> USimpleNameReferenceExpression (identifier = A) -> KtLightClassImpl:open class A {
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))(resolves to KtUltraLightMethodForSourceDeclaration:foo) -> USimpleNameReferenceExpression (identifier = foo) -> KtUltraLightMethodForSourceDeclaration:foo: foo
|
||||
UBlockExpression -> UQualifiedReferenceExpression -> KtUltraLightMethodForSourceDeclaration:inlineFoo: inlineFoo
|
||||
UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 0))(resolves to KtUltraLightMethodForSourceDeclaration:A) -> USimpleNameReferenceExpression (identifier = A) -> KtUltraLightClass:open class A {
|
||||
fun foo() {}
|
||||
inline fun inlineFoo() {
|
||||
|
||||
}
|
||||
}: A
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))(resolves to KtLightMethodImpl:inlineFoo) -> USimpleNameReferenceExpression (identifier = inlineFoo) -> KtLightMethodImpl:inlineFoo: inlineFoo
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))(resolves to KtUltraLightMethodForSourceDeclaration:inlineFoo) -> USimpleNameReferenceExpression (identifier = inlineFoo) -> KtUltraLightMethodForSourceDeclaration:inlineFoo: inlineFoo
|
||||
UBlockExpression -> UQualifiedReferenceExpression -> PsiMethod:forEach: forEach
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 1))(resolves to PsiMethod:listOf) -> USimpleNameReferenceExpression (identifier = listOf) -> PsiMethod:listOf: listOf
|
||||
UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 0))(resolves to KtLightMethodImpl:A) -> USimpleNameReferenceExpression (identifier = A) -> KtLightClassImpl:open class A {
|
||||
UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 0))(resolves to KtUltraLightMethodForSourceDeclaration:A) -> USimpleNameReferenceExpression (identifier = A) -> KtUltraLightClass:open class A {
|
||||
fun foo() {}
|
||||
inline fun inlineFoo() {
|
||||
|
||||
@@ -64,28 +64,28 @@ UBlockExpression -> UQualifiedReferenceExpression -> KtLightMethodImpl:foo: foo
|
||||
UBinaryExpressionWithType -> USimpleNameReferenceExpression (identifier = as) -> null: null
|
||||
UTypeReferenceExpression (name = int) -> USimpleNameReferenceExpression (identifier = Int) -> PsiClass:Integer: Integer
|
||||
UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 2))(resolves to PsiMethod:IntRange) -> USimpleNameReferenceExpression (identifier = IntRange) -> PsiClass:IntRange: IntRange
|
||||
UTypeReferenceExpression (name = A) -> USimpleNameReferenceExpression (identifier = A) -> KtLightClassImpl:open class A {
|
||||
UTypeReferenceExpression (name = A) -> USimpleNameReferenceExpression (identifier = A) -> KtUltraLightClass:open class A {
|
||||
fun foo() {}
|
||||
inline fun inlineFoo() {
|
||||
|
||||
}
|
||||
}: A
|
||||
UTypeReferenceExpression (name = T) -> USimpleNameReferenceExpression (identifier = T) -> KotlinLightTypeParameter:T: T
|
||||
UBlockExpression -> UQualifiedReferenceExpression -> KtLightMethodImpl:foo: foo
|
||||
UTypeReferenceExpression (name = T) -> USimpleNameReferenceExpression (identifier = T) -> Light PSI class: T: T
|
||||
UBlockExpression -> UQualifiedReferenceExpression -> KtUltraLightMethodForSourceDeclaration:foo: foo
|
||||
UQualifiedReferenceExpression -> USimpleNameReferenceExpression (identifier = t) -> Light Parameter: t
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))(resolves to KtLightMethodImpl:foo) -> USimpleNameReferenceExpression (identifier = foo) -> KtLightMethodImpl:foo: foo
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))(resolves to KtUltraLightMethodForSourceDeclaration:foo) -> USimpleNameReferenceExpression (identifier = foo) -> KtUltraLightMethodForSourceDeclaration:foo: foo
|
||||
UTypeReferenceExpression (name = java.util.List<? extends A>) -> USimpleNameReferenceExpression (identifier = List) -> PsiClass:List: List
|
||||
UTypeReferenceExpression (name = A) -> USimpleNameReferenceExpression (identifier = A) -> KtLightClassImpl:open class A {
|
||||
UTypeReferenceExpression (name = A) -> USimpleNameReferenceExpression (identifier = A) -> KtUltraLightClass:open class A {
|
||||
fun foo() {}
|
||||
inline fun inlineFoo() {
|
||||
|
||||
}
|
||||
}: A
|
||||
UTypeReferenceExpression (name = T) -> USimpleNameReferenceExpression (identifier = T) -> KotlinLightTypeParameter:T: T
|
||||
UTypeReferenceExpression (name = T) -> USimpleNameReferenceExpression (identifier = T) -> Light PSI class: T: T
|
||||
UBlockExpression -> UQualifiedReferenceExpression -> PsiMethod:isEmpty: isEmpty
|
||||
UQualifiedReferenceExpression -> USimpleNameReferenceExpression (identifier = listT) -> Light Parameter: listT
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))(resolves to PsiMethod:isEmpty) -> USimpleNameReferenceExpression (identifier = isEmpty) -> PsiMethod:isEmpty: isEmpty
|
||||
UForEachExpression -> USimpleNameReferenceExpression (identifier = listT) -> Light Parameter: listT
|
||||
UBlockExpression -> UQualifiedReferenceExpression -> KtLightMethodImpl:foo: foo
|
||||
UBlockExpression -> UQualifiedReferenceExpression -> KtUltraLightMethodForSourceDeclaration:foo: foo
|
||||
UQualifiedReferenceExpression -> USimpleNameReferenceExpression (identifier = a) -> VALUE_PARAMETER: a
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))(resolves to KtLightMethodImpl:foo) -> USimpleNameReferenceExpression (identifier = foo) -> KtLightMethodImpl:foo: foo
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))(resolves to KtUltraLightMethodForSourceDeclaration:foo) -> USimpleNameReferenceExpression (identifier = foo) -> KtUltraLightMethodForSourceDeclaration:foo: foo
|
||||
|
||||
+18
-18
@@ -1,22 +1,7 @@
|
||||
UFile (package = )
|
||||
UClass (name = SimpleScript)
|
||||
UMethod (name = getBarOrNull)
|
||||
UParameter (name = flag)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UBlockExpression
|
||||
UReturnExpression
|
||||
UIfExpression
|
||||
USimpleNameReferenceExpression (identifier = flag)
|
||||
UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 1))
|
||||
UIdentifier (Identifier (Bar))
|
||||
USimpleNameReferenceExpression (identifier = <init>, resolvesTo = PsiClass: Bar)
|
||||
ULiteralExpression (value = 42)
|
||||
ULiteralExpression (value = null)
|
||||
UMethod (name = main)
|
||||
UParameter (name = p)
|
||||
UAnnotation (fqName = null)
|
||||
UMethod (name = SimpleScript)
|
||||
UParameter (name = p)
|
||||
UParameter (name = args)
|
||||
UAnnotation (fqName = null)
|
||||
UBlockExpression
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 1))
|
||||
@@ -31,12 +16,27 @@ UFile (package = )
|
||||
UIdentifier (Identifier (println))
|
||||
USimpleNameReferenceExpression (identifier = println, resolvesTo = null)
|
||||
ULiteralExpression (value = "Goodbye World!")
|
||||
UMethod (name = main)
|
||||
UParameter (name = args)
|
||||
UAnnotation (fqName = null)
|
||||
UMethod (name = getBarOrNull)
|
||||
UParameter (name = flag)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UBlockExpression
|
||||
UReturnExpression
|
||||
UIfExpression
|
||||
USimpleNameReferenceExpression (identifier = flag)
|
||||
UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 1))
|
||||
UIdentifier (Identifier (Bar))
|
||||
USimpleNameReferenceExpression (identifier = <init>, resolvesTo = PsiClass: Bar)
|
||||
ULiteralExpression (value = 42)
|
||||
ULiteralExpression (value = null)
|
||||
UClass (name = Bar)
|
||||
UField (name = a)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UField (name = b)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
ULiteralExpression (value = 0)
|
||||
UField (name = a)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UMethod (name = getB)
|
||||
UMethod (name = getAPlusB)
|
||||
UBlockExpression
|
||||
|
||||
+6
-6
@@ -1,16 +1,16 @@
|
||||
public class SimpleScript {
|
||||
public final fun getBarOrNull(@org.jetbrains.annotations.NotNull flag: boolean) : SimpleScript.Bar {
|
||||
return if (flag) <init>(42) else null
|
||||
}
|
||||
public static final fun main(@null p: java.lang.String[]) : void = UastEmptyExpression
|
||||
public fun SimpleScript(@null p: java.lang.String[]) {
|
||||
public fun SimpleScript(@null args: java.lang.String[]) {
|
||||
println("Hello World!")
|
||||
getBarOrNull(true)
|
||||
println("Goodbye World!")
|
||||
}
|
||||
public static final fun main(@null args: java.lang.String[]) : void = UastEmptyExpression
|
||||
public final fun getBarOrNull(@org.jetbrains.annotations.NotNull flag: boolean) : SimpleScript.Bar {
|
||||
return if (flag) <init>(42) else null
|
||||
}
|
||||
public static final class Bar {
|
||||
@org.jetbrains.annotations.NotNull private final var b: int = 0
|
||||
@org.jetbrains.annotations.NotNull private final var a: int
|
||||
@org.jetbrains.annotations.NotNull private final var b: int = 0
|
||||
public final fun getB() : int = UastEmptyExpression
|
||||
public final fun getAPlusB() : int {
|
||||
return a + b
|
||||
|
||||
+2
-2
@@ -13,8 +13,8 @@ UFile (package = )
|
||||
UObjectLiteralExpression
|
||||
ULiteralExpression (value = "inner literal")
|
||||
UClass (name = null)
|
||||
UMethod (name = SuperCallsKt$anon$1$bar$1)
|
||||
UMethod (name = SuperCallsKt$anon$1)
|
||||
UMethod (name = )
|
||||
UMethod (name = )
|
||||
UClass (name = InnerClass)
|
||||
UMethod (name = InnerClass)
|
||||
UBlockExpression
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
UFile (package = test.pkg)
|
||||
UClass (name = SuspendKt)
|
||||
UMethod (name = top)
|
||||
UParameter (name = p)
|
||||
UParameter (name = $completion)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UBlockExpression
|
||||
UReturnExpression
|
||||
@@ -14,7 +14,7 @@ UFile (package = test.pkg)
|
||||
USimpleNameReferenceExpression (identifier = inner, resolvesTo = null)
|
||||
UClass (name = Context)
|
||||
UMethod (name = inner)
|
||||
UParameter (name = p)
|
||||
UParameter (name = $completion)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UBlockExpression
|
||||
UReturnExpression
|
||||
|
||||
+2
-2
@@ -1,13 +1,13 @@
|
||||
package test.pkg
|
||||
|
||||
public final class SuspendKt {
|
||||
public static final fun top(@org.jetbrains.annotations.NotNull p: kotlin.coroutines.Continuation<? super java.lang.Integer>) : java.lang.Object {
|
||||
public static final fun top(@org.jetbrains.annotations.NotNull $completion: kotlin.coroutines.Continuation<? super java.lang.Integer>) : java.lang.Object {
|
||||
return <init>().inner()
|
||||
}
|
||||
}
|
||||
|
||||
public final class Context {
|
||||
public final fun inner(@org.jetbrains.annotations.NotNull p: kotlin.coroutines.Continuation<? super java.lang.Integer>) : java.lang.Object {
|
||||
public final fun inner(@org.jetbrains.annotations.NotNull $completion: kotlin.coroutines.Continuation<? super java.lang.Integer>) : java.lang.Object {
|
||||
return suspendPrivate()
|
||||
}
|
||||
public fun Context() = UastEmptyExpression
|
||||
|
||||
@@ -8,13 +8,13 @@ UTypeReferenceExpression (name = java.lang.String) -> USimpleNameReferenceExpres
|
||||
UTypeReferenceExpression (name = <ErrorType>) -> USimpleNameReferenceExpression (identifier = List) -> PsiClass:List: List
|
||||
UTypeReferenceExpression (name = <ErrorType>) -> USimpleNameReferenceExpression (identifier = List) -> PsiClass:List: List
|
||||
UTypeReferenceExpression (name = <ErrorType>) -> USimpleNameReferenceExpression (identifier = String) -> PsiClass:String: String
|
||||
UTypeReferenceExpression (name = T) -> USimpleNameReferenceExpression (identifier = T) -> KotlinLightTypeParameter:T: T
|
||||
UTypeReferenceExpression (name = T) -> USimpleNameReferenceExpression (identifier = T) -> Light PSI class: T: T
|
||||
ULocalVariable (name = a) -> USimpleNameReferenceExpression (identifier = arg) -> Light Parameter: arg
|
||||
UTypeReferenceExpression (name = T) -> USimpleNameReferenceExpression (identifier = T) -> KotlinLightTypeParameter:T: T
|
||||
UTypeReferenceExpression (name = T) -> USimpleNameReferenceExpression (identifier = T) -> Light PSI class: T: T
|
||||
ULocalVariable (name = var708e23eb) -> USimpleNameReferenceExpression (identifier = arg) -> Light Parameter: arg
|
||||
UExpressionList (elvis) -> USimpleNameReferenceExpression (identifier = ?:) -> null: null
|
||||
UTypeReferenceExpression (name = java.util.List<? extends T>) -> USimpleNameReferenceExpression (identifier = List) -> PsiClass:List: List
|
||||
UTypeReferenceExpression (name = T) -> USimpleNameReferenceExpression (identifier = T) -> KotlinLightTypeParameter:T: T
|
||||
UTypeReferenceExpression (name = T) -> USimpleNameReferenceExpression (identifier = T) -> Light PSI class: T: T
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 1))(resolves to PsiMethod:listOf) -> USimpleNameReferenceExpression (identifier = listOf) -> PsiMethod:listOf: listOf
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 1))(resolves to PsiMethod:listOf) -> USimpleNameReferenceExpression (identifier = at) -> LightVariableBuilder:at: at
|
||||
UTypeReferenceExpression (name = java.util.List<? extends java.lang.String>) -> USimpleNameReferenceExpression (identifier = List) -> PsiClass:List: List
|
||||
@@ -31,8 +31,8 @@ UTypeReferenceExpression (name = T) -> USimpleNameReferenceExpression (identifie
|
||||
UTypeReferenceExpression (name = java.util.List<? extends java.util.List<? extends java.lang.String>>) -> USimpleNameReferenceExpression (identifier = ListOfLists) -> PsiClass:List: List
|
||||
UTypeReferenceExpression (name = java.util.List<? extends java.util.List<? extends T>>) -> USimpleNameReferenceExpression (identifier = List) -> PsiClass:List: List
|
||||
UTypeReferenceExpression (name = java.util.List<? extends T>) -> USimpleNameReferenceExpression (identifier = List) -> PsiClass:List: List
|
||||
UTypeReferenceExpression (name = T) -> USimpleNameReferenceExpression (identifier = T) -> KotlinLightTypeParameter:T: T
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 1))(resolves to KtLightMethodImpl:parameterizedFoo) -> USimpleNameReferenceExpression (identifier = parameterizedFoo) -> KtLightMethodImpl:parameterizedFoo: parameterizedFoo
|
||||
UTypeReferenceExpression (name = T) -> USimpleNameReferenceExpression (identifier = T) -> Light PSI class: T: T
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 1))(resolves to KtUltraLightMethodForSourceDeclaration:parameterizedFoo) -> USimpleNameReferenceExpression (identifier = parameterizedFoo) -> KtUltraLightMethodForSourceDeclaration:parameterizedFoo: parameterizedFoo
|
||||
UTypeReferenceExpression (name = java.util.List<? extends java.lang.String>) -> USimpleNameReferenceExpression (identifier = List) -> PsiClass:List: List
|
||||
UTypeReferenceExpression (name = java.lang.String) -> USimpleNameReferenceExpression (identifier = String) -> PsiClass:String: String
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))(resolves to PsiMethod:emptyList) -> USimpleNameReferenceExpression (identifier = emptyList) -> PsiMethod:emptyList: emptyList
|
||||
|
||||
@@ -37,4 +37,4 @@ UFile (package = )
|
||||
UIdentifier (Identifier (UnsupportedOperationException))
|
||||
USimpleNameReferenceExpression (identifier = <init>, resolvesTo = PsiClass: UnsupportedOperationException)
|
||||
ULiteralExpression (value = "")
|
||||
UMethod (name = Model$1$1)
|
||||
UMethod (name = )
|
||||
|
||||
@@ -37,4 +37,4 @@ UFile (package = ) [public abstract interface Callback {...]
|
||||
UIdentifier (Identifier (UnsupportedOperationException)) [UIdentifier (Identifier (UnsupportedOperationException))]
|
||||
USimpleNameReferenceExpression (identifier = <init>, resolvesTo = PsiClass: UnsupportedOperationException) [<init>] : PsiType:UnsupportedOperationException
|
||||
ULiteralExpression (value = "") [""] : PsiType:String
|
||||
UMethod (name = Model$1$1) [fun Model$1$1() = UastEmptyExpression]
|
||||
UMethod (name = ) [private fun () = UastEmptyExpression]
|
||||
|
||||
@@ -34,7 +34,7 @@ class KotlinUastAlternativesTest : AbstractKotlinUastTest() {
|
||||
plugin.convertToAlternatives<UElement>(ktProperty, arrayOf(UMethod::class.java, UField::class.java)).let {
|
||||
assertEquals(
|
||||
"public final fun getWritebleProp() : int = UastEmptyExpression, " +
|
||||
"public final fun setWritebleProp(@null p: int) : void = UastEmptyExpression, " +
|
||||
"public final fun setWritebleProp(@null writebleProp: int) : void = UastEmptyExpression, " +
|
||||
"@org.jetbrains.annotations.NotNull private var writebleProp: int = 0",
|
||||
it.joinToString(transform = UElement::asRenderString)
|
||||
)
|
||||
@@ -44,7 +44,7 @@ class KotlinUastAlternativesTest : AbstractKotlinUastTest() {
|
||||
assertEquals(
|
||||
"@org.jetbrains.annotations.NotNull private var writebleProp: int = 0, " +
|
||||
"public final fun getWritebleProp() : int = UastEmptyExpression, " +
|
||||
"public final fun setWritebleProp(@null p: int) : void = UastEmptyExpression",
|
||||
"public final fun setWritebleProp(@null writebleProp: int) : void = UastEmptyExpression",
|
||||
it.joinToString(transform = UElement::asRenderString)
|
||||
)
|
||||
}
|
||||
@@ -53,7 +53,7 @@ class KotlinUastAlternativesTest : AbstractKotlinUastTest() {
|
||||
assertEquals(
|
||||
"@org.jetbrains.annotations.NotNull private var writebleProp: int = 0, " +
|
||||
"public final fun getWritebleProp() : int = UastEmptyExpression, " +
|
||||
"public final fun setWritebleProp(@null p: int) : void = UastEmptyExpression",
|
||||
"public final fun setWritebleProp(@null writebleProp: int) : void = UastEmptyExpression",
|
||||
it.joinToString(transform = UElement::asRenderString)
|
||||
)
|
||||
}
|
||||
|
||||
@@ -600,10 +600,9 @@ class KotlinUastApiTest : AbstractKotlinUastTest() {
|
||||
assertEquals("USimpleNameReferenceExpression (identifier = <init>, resolvesTo = PsiClass: Local)", classReference.asLogString())
|
||||
val localClass = classReference.resolve().toUElement() ?: kfail("uelement expected")
|
||||
assertEquals("UClass (name = Local)", localClass.asLogString())
|
||||
assertEquals(localClass, localFunctionResolved.toUElement())
|
||||
val localPrimaryConstructor = localFunctionResolved.toUElementOfType<UMethod>() ?: kfail("constructor expected")
|
||||
assertTrue(localPrimaryConstructor.isConstructor)
|
||||
assertEquals(localClass, localPrimaryConstructor.uastParent)
|
||||
assertEquals(localClass.javaPsi, localPrimaryConstructor.javaPsi.cast<PsiMethod>().containingClass)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user