UAST Kotlin: update test data
Addition of directive IGNORE_FIR alters synthetic local variable names.
This commit is contained in:
committed by
Ilya Kirillov
parent
dad198cb67
commit
291cd842b9
@@ -29,14 +29,14 @@ UFile (package = )
|
||||
ULocalVariable (name = c)
|
||||
UExpressionList (elvis)
|
||||
UDeclarationsExpression
|
||||
ULocalVariable (name = varae507364)
|
||||
ULocalVariable (name = varae5075f4)
|
||||
USimpleNameReferenceExpression (identifier = a)
|
||||
UAnnotation (fqName = kotlin.Suppress)
|
||||
UIfExpression
|
||||
UBinaryExpression (operator = !=)
|
||||
USimpleNameReferenceExpression (identifier = varae507364)
|
||||
USimpleNameReferenceExpression (identifier = varae5075f4)
|
||||
ULiteralExpression (value = null)
|
||||
USimpleNameReferenceExpression (identifier = varae507364)
|
||||
USimpleNameReferenceExpression (identifier = varae5075f4)
|
||||
USimpleNameReferenceExpression (identifier = b)
|
||||
UMethod (name = annotatedSwitch)
|
||||
UParameter (name = str)
|
||||
|
||||
@@ -6,8 +6,8 @@ public final class AnnotatedExpressionsKt {
|
||||
b = a
|
||||
if (a > 2) a else b
|
||||
var c: int = elvis {
|
||||
var varae507364: int = a
|
||||
if (varae507364 != null) varae507364 else b
|
||||
var varae5075f4: int = a
|
||||
if (varae5075f4 != null) varae5075f4 else b
|
||||
}
|
||||
}
|
||||
public static final fun annotatedSwitch(@org.jetbrains.annotations.NotNull str: java.lang.String) : java.lang.Integer {
|
||||
|
||||
@@ -5,7 +5,7 @@ UFile (package = )
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UBlockExpression
|
||||
UDeclarationsExpression
|
||||
ULocalVariable (name = var268d41a5)
|
||||
ULocalVariable (name = var268d4435)
|
||||
UAnnotation (fqName = null)
|
||||
UBinaryExpression (operator = <other>)
|
||||
ULiteralExpression (value = "foo")
|
||||
@@ -13,19 +13,19 @@ UFile (package = )
|
||||
ULocalVariable (name = a)
|
||||
UAnnotation (fqName = null)
|
||||
UQualifiedReferenceExpression
|
||||
USimpleNameReferenceExpression (identifier = var268d41a5)
|
||||
USimpleNameReferenceExpression (identifier = var268d4435)
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))
|
||||
UIdentifier (Identifier (component1))
|
||||
USimpleNameReferenceExpression (identifier = <anonymous class>, resolvesTo = null)
|
||||
ULocalVariable (name = b)
|
||||
UAnnotation (fqName = null)
|
||||
UQualifiedReferenceExpression
|
||||
USimpleNameReferenceExpression (identifier = var268d41a5)
|
||||
USimpleNameReferenceExpression (identifier = var268d4435)
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))
|
||||
UIdentifier (Identifier (component2))
|
||||
USimpleNameReferenceExpression (identifier = <anonymous class>, resolvesTo = null)
|
||||
UDeclarationsExpression
|
||||
ULocalVariable (name = var465978a0)
|
||||
ULocalVariable (name = var46597b30)
|
||||
UAnnotation (fqName = null)
|
||||
UAnnotation (fqName = kotlin.Suppress)
|
||||
UNamedExpression (name = names)
|
||||
@@ -36,14 +36,14 @@ UFile (package = )
|
||||
ULocalVariable (name = k)
|
||||
UAnnotation (fqName = null)
|
||||
UQualifiedReferenceExpression
|
||||
USimpleNameReferenceExpression (identifier = var465978a0)
|
||||
USimpleNameReferenceExpression (identifier = var46597b30)
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))
|
||||
UIdentifier (Identifier (component1))
|
||||
USimpleNameReferenceExpression (identifier = <anonymous class>, resolvesTo = null)
|
||||
ULocalVariable (name = v)
|
||||
UAnnotation (fqName = null)
|
||||
UQualifiedReferenceExpression
|
||||
USimpleNameReferenceExpression (identifier = var465978a0)
|
||||
USimpleNameReferenceExpression (identifier = var46597b30)
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))
|
||||
UIdentifier (Identifier (component2))
|
||||
USimpleNameReferenceExpression (identifier = <anonymous class>, resolvesTo = null)
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
public final class DestructuringDeclarationKt {
|
||||
public static final fun foo(@org.jetbrains.annotations.NotNull data: java.lang.Object) : void {
|
||||
@null var var268d41a5: <ErrorType> = "foo" <other> 1
|
||||
@null var a: java.lang.String = var268d41a5.<anonymous class>()
|
||||
@null var b: int = var268d41a5.<anonymous class>()
|
||||
@null @kotlin.Suppress(names = "UNCHECKED_CAST") var var465978a0: <ErrorType> = data as kotlin.Pair<? extends java.lang.String,? extends java.lang.String>
|
||||
@null var k: java.lang.String = var465978a0.<anonymous class>()
|
||||
@null var v: java.lang.String = var465978a0.<anonymous class>()
|
||||
@null var var268d4435: <ErrorType> = "foo" <other> 1
|
||||
@null var a: java.lang.String = var268d4435.<anonymous class>()
|
||||
@null var b: int = var268d4435.<anonymous class>()
|
||||
@null @kotlin.Suppress(names = "UNCHECKED_CAST") var var46597b30: <ErrorType> = data as kotlin.Pair<? extends java.lang.String,? extends java.lang.String>
|
||||
@null var k: java.lang.String = var46597b30.<anonymous class>()
|
||||
@null var v: java.lang.String = var46597b30.<anonymous class>()
|
||||
}
|
||||
}
|
||||
|
||||
+6
-6
@@ -15,28 +15,28 @@ UFile (package = )
|
||||
UReturnExpression
|
||||
UExpressionList (elvis)
|
||||
UDeclarationsExpression
|
||||
ULocalVariable (name = var243c51a0)
|
||||
ULocalVariable (name = var243c5407)
|
||||
UExpressionList (elvis)
|
||||
UDeclarationsExpression
|
||||
ULocalVariable (name = varc4aef569)
|
||||
ULocalVariable (name = varc4aef7d0)
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 1))
|
||||
UIdentifier (Identifier (foo))
|
||||
USimpleNameReferenceExpression (identifier = foo, resolvesTo = null)
|
||||
ULiteralExpression (value = "Lorem ipsum")
|
||||
UIfExpression
|
||||
UBinaryExpression (operator = !=)
|
||||
USimpleNameReferenceExpression (identifier = varc4aef569)
|
||||
USimpleNameReferenceExpression (identifier = varc4aef7d0)
|
||||
ULiteralExpression (value = null)
|
||||
USimpleNameReferenceExpression (identifier = varc4aef569)
|
||||
USimpleNameReferenceExpression (identifier = varc4aef7d0)
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 1))
|
||||
UIdentifier (Identifier (foo))
|
||||
USimpleNameReferenceExpression (identifier = foo, resolvesTo = null)
|
||||
ULiteralExpression (value = "dolor sit amet")
|
||||
UIfExpression
|
||||
UBinaryExpression (operator = !=)
|
||||
USimpleNameReferenceExpression (identifier = var243c51a0)
|
||||
USimpleNameReferenceExpression (identifier = var243c5407)
|
||||
ULiteralExpression (value = null)
|
||||
USimpleNameReferenceExpression (identifier = var243c51a0)
|
||||
USimpleNameReferenceExpression (identifier = var243c5407)
|
||||
UQualifiedReferenceExpression
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))
|
||||
UIdentifier (Identifier (bar))
|
||||
|
||||
+4
-4
@@ -7,11 +7,11 @@ public final class ElvisKt {
|
||||
}
|
||||
public static final fun baz() : java.lang.String {
|
||||
return elvis {
|
||||
var var243c51a0: java.lang.String = elvis {
|
||||
var varc4aef569: java.lang.String = foo("Lorem ipsum")
|
||||
if (varc4aef569 != null) varc4aef569 else foo("dolor sit amet")
|
||||
var var243c5407: java.lang.String = elvis {
|
||||
var varc4aef7d0: java.lang.String = foo("Lorem ipsum")
|
||||
if (varc4aef7d0 != null) varc4aef7d0 else foo("dolor sit amet")
|
||||
}
|
||||
if (var243c51a0 != null) var243c51a0 else bar().toString()
|
||||
if (var243c5407 != null) var243c5407 else bar().toString()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+3
-3
@@ -102,7 +102,7 @@ UFile (package = org.jetbrains.uast.kotlin)
|
||||
ULambdaExpression
|
||||
UBlockExpression
|
||||
UDeclarationsExpression
|
||||
ULocalVariable (name = vardbcd0724)
|
||||
ULocalVariable (name = vardbcd09b4)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 2))
|
||||
UIdentifier (Identifier (listOf))
|
||||
@@ -112,14 +112,14 @@ UFile (package = org.jetbrains.uast.kotlin)
|
||||
ULocalVariable (name = a)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UQualifiedReferenceExpression
|
||||
USimpleNameReferenceExpression (identifier = vardbcd0724)
|
||||
USimpleNameReferenceExpression (identifier = vardbcd09b4)
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))
|
||||
UIdentifier (Identifier (component1))
|
||||
USimpleNameReferenceExpression (identifier = <anonymous class>, resolvesTo = null)
|
||||
ULocalVariable (name = b)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UQualifiedReferenceExpression
|
||||
USimpleNameReferenceExpression (identifier = vardbcd0724)
|
||||
USimpleNameReferenceExpression (identifier = vardbcd09b4)
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))
|
||||
UIdentifier (Identifier (component2))
|
||||
USimpleNameReferenceExpression (identifier = <anonymous class>, resolvesTo = null)
|
||||
|
||||
+3
-3
@@ -31,9 +31,9 @@ public final class LambdaReturnKt {
|
||||
return it + b
|
||||
})
|
||||
var x: kotlin.jvm.functions.Function0<? extends kotlin.Unit> = {
|
||||
@org.jetbrains.annotations.NotNull var vardbcd0724: <ErrorType> = listOf(1, 2)
|
||||
@org.jetbrains.annotations.NotNull var a: int = vardbcd0724.<anonymous class>()
|
||||
@org.jetbrains.annotations.NotNull var b: int = vardbcd0724.<anonymous class>()
|
||||
@org.jetbrains.annotations.NotNull var vardbcd09b4: <ErrorType> = listOf(1, 2)
|
||||
@org.jetbrains.annotations.NotNull var a: int = vardbcd09b4.<anonymous class>()
|
||||
@org.jetbrains.annotations.NotNull var b: int = vardbcd09b4.<anonymous class>()
|
||||
}
|
||||
var y: kotlin.jvm.functions.Function0<? extends kotlin.Unit> = {
|
||||
listOf(1)
|
||||
|
||||
+3
-3
@@ -28,13 +28,13 @@ UFile (package = )
|
||||
ULocalVariable (name = at)
|
||||
UExpressionList (elvis)
|
||||
UDeclarationsExpression
|
||||
ULocalVariable (name = var708e23eb)
|
||||
ULocalVariable (name = var708e267b)
|
||||
USimpleNameReferenceExpression (identifier = arg)
|
||||
UIfExpression
|
||||
UBinaryExpression (operator = !=)
|
||||
USimpleNameReferenceExpression (identifier = var708e23eb)
|
||||
USimpleNameReferenceExpression (identifier = var708e267b)
|
||||
ULiteralExpression (value = null)
|
||||
USimpleNameReferenceExpression (identifier = var708e23eb)
|
||||
USimpleNameReferenceExpression (identifier = var708e267b)
|
||||
UReturnExpression
|
||||
UDeclarationsExpression
|
||||
ULocalVariable (name = tl)
|
||||
|
||||
+2
-2
@@ -8,8 +8,8 @@ public final class TypeReferencesKt {
|
||||
public static final fun parameterizedFoo(@org.jetbrains.annotations.Nullable arg: T) : void {
|
||||
var a: T = arg
|
||||
var at: T = elvis {
|
||||
var var708e23eb: T = arg
|
||||
if (var708e23eb != null) var708e23eb else return
|
||||
var var708e267b: T = arg
|
||||
if (var708e267b != null) var708e267b else return
|
||||
}
|
||||
var tl: java.util.List<? extends T> = listOf(at)
|
||||
var tsl: java.util.List<? extends java.lang.String> = tl.map({ var it: T ->
|
||||
|
||||
@@ -11,7 +11,7 @@ UTypeReferenceExpression (name = <ErrorType>) -> USimpleNameReferenceExpression
|
||||
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) -> Light PSI class: T: T
|
||||
ULocalVariable (name = var708e23eb) -> USimpleNameReferenceExpression (identifier = arg) -> Light Parameter: arg
|
||||
ULocalVariable (name = var708e267b) -> 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) -> Light PSI class: T: T
|
||||
|
||||
+3
-3
@@ -26,20 +26,20 @@ UFile (package = )
|
||||
USwitchClauseExpressionWithBody
|
||||
UExpressionList (when_entry)
|
||||
UDeclarationsExpression
|
||||
ULocalVariable (name = var837f2350)
|
||||
ULocalVariable (name = var837f25e0)
|
||||
UAnnotation (fqName = null)
|
||||
USimpleNameReferenceExpression (identifier = arr)
|
||||
ULocalVariable (name = bindingContext)
|
||||
UAnnotation (fqName = null)
|
||||
UQualifiedReferenceExpression
|
||||
USimpleNameReferenceExpression (identifier = var837f2350)
|
||||
USimpleNameReferenceExpression (identifier = var837f25e0)
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))
|
||||
UIdentifier (Identifier (component1))
|
||||
USimpleNameReferenceExpression (identifier = <anonymous class>, resolvesTo = null)
|
||||
ULocalVariable (name = statementFilter)
|
||||
UAnnotation (fqName = null)
|
||||
UQualifiedReferenceExpression
|
||||
USimpleNameReferenceExpression (identifier = var837f2350)
|
||||
USimpleNameReferenceExpression (identifier = var837f25e0)
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))
|
||||
UIdentifier (Identifier (component2))
|
||||
USimpleNameReferenceExpression (identifier = <anonymous class>, resolvesTo = null)
|
||||
|
||||
@@ -10,9 +10,9 @@ public final class WhenAndDestructingKt {
|
||||
}
|
||||
|
||||
-> {
|
||||
@null var var837f2350: <ErrorType> = arr
|
||||
@null var bindingContext: java.lang.String = var837f2350.<anonymous class>()
|
||||
@null var statementFilter: java.lang.String = var837f2350.<anonymous class>()
|
||||
@null var var837f25e0: <ErrorType> = arr
|
||||
@null var bindingContext: java.lang.String = var837f25e0.<anonymous class>()
|
||||
@null var statementFilter: java.lang.String = var837f25e0.<anonymous class>()
|
||||
yield return bindingContext
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user