Uast: KotlinUMethod and KotlinUAnnotationMethod are separated (KT-30489)
This commit is contained in:
@@ -176,10 +176,10 @@ open class KotlinUClass private constructor(
|
||||
}
|
||||
|
||||
open class KotlinConstructorUMethod(
|
||||
private val ktClass: KtClassOrObject?,
|
||||
override val psi: KtLightMethod,
|
||||
givenParent: UElement?
|
||||
) : KotlinUMethod(psi, givenParent) {
|
||||
private val ktClass: KtClassOrObject?,
|
||||
override val psi: KtLightMethod,
|
||||
givenParent: UElement?
|
||||
) : KotlinUMethod(psi, psi.kotlinOrigin, givenParent) {
|
||||
|
||||
val isPrimary: Boolean
|
||||
get() = psi.kotlinOrigin.let { it is KtPrimaryConstructor || it is KtClassOrObject }
|
||||
@@ -216,8 +216,6 @@ open class KotlinConstructorUMethod(
|
||||
|
||||
override val javaPsi = psi
|
||||
|
||||
override val sourcePsi = psi.kotlinOrigin
|
||||
|
||||
open protected fun getBodyExpressions(): List<KtExpression> {
|
||||
if (isPrimary) return getInitializers()
|
||||
val bodyExpression = (psi.kotlinOrigin as? KtFunction)?.bodyExpression ?: return emptyList()
|
||||
@@ -307,16 +305,15 @@ class KotlinScriptUClass(
|
||||
override fun getOriginalElement(): PsiElement? = psi.originalElement
|
||||
|
||||
class KotlinScriptConstructorUMethod(
|
||||
script: KtScript,
|
||||
override val psi: KtLightMethod,
|
||||
givenParent: UElement?
|
||||
) : KotlinUMethod(psi, givenParent) {
|
||||
script: KtScript,
|
||||
override val psi: KtLightMethod,
|
||||
givenParent: UElement?
|
||||
) : KotlinUMethod(psi, psi.kotlinOrigin, givenParent) {
|
||||
override val uastBody: UExpression? by lz {
|
||||
val initializers = script.declarations.filterIsInstance<KtScriptInitializer>()
|
||||
KotlinUBlockExpression.create(initializers, this)
|
||||
}
|
||||
override val javaPsi = psi
|
||||
override val sourcePsi = psi.kotlinOrigin
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -16,41 +16,39 @@
|
||||
|
||||
package org.jetbrains.uast.kotlin.declarations
|
||||
|
||||
import com.intellij.psi.*
|
||||
import com.intellij.psi.PsiFile
|
||||
import com.intellij.psi.PsiMethod
|
||||
import com.intellij.psi.PsiNameIdentifierOwner
|
||||
import org.jetbrains.kotlin.asJava.elements.KtLightElement
|
||||
import org.jetbrains.kotlin.asJava.elements.KtLightMethod
|
||||
import org.jetbrains.kotlin.asJava.elements.isGetter
|
||||
import org.jetbrains.kotlin.asJava.elements.isSetter
|
||||
import org.jetbrains.kotlin.lexer.KtTokens
|
||||
import org.jetbrains.kotlin.psi.*
|
||||
import org.jetbrains.kotlin.psi.psiUtil.containingClassOrObject
|
||||
import org.jetbrains.kotlin.psi.psiUtil.getParentOfType
|
||||
import org.jetbrains.kotlin.utils.SmartList
|
||||
import org.jetbrains.uast.*
|
||||
import org.jetbrains.uast.java.internal.JavaUElementWithComments
|
||||
import org.jetbrains.uast.kotlin.*
|
||||
|
||||
open class KotlinUMethod(
|
||||
psi: KtLightMethod,
|
||||
givenParent: UElement?
|
||||
) : KotlinAbstractUElement(givenParent), UAnnotationMethod, UMethodTypeSpecific, UAnchorOwner, JavaUElementWithComments, PsiMethod by psi {
|
||||
psi: PsiMethod,
|
||||
final override val sourcePsi: KtDeclaration?,
|
||||
givenParent: UElement?
|
||||
) : KotlinAbstractUElement(givenParent), UMethodTypeSpecific, UAnchorOwner, JavaUElementWithComments, PsiMethod by psi {
|
||||
|
||||
constructor(psi: KtLightMethod, givenParent: UElement?) : this(psi, psi.kotlinOrigin, givenParent)
|
||||
|
||||
override val comments: List<UComment>
|
||||
get() = super<KotlinAbstractUElement>.comments
|
||||
|
||||
override val psi: KtLightMethod = unwrap<UMethod, KtLightMethod>(psi)
|
||||
override val psi: PsiMethod = unwrap<UMethod, PsiMethod>(psi)
|
||||
|
||||
override val javaPsi = psi
|
||||
|
||||
override val sourcePsi = psi.kotlinOrigin
|
||||
|
||||
override fun getSourceElement() = sourcePsi ?: this
|
||||
|
||||
override val uastDefaultValue by lz {
|
||||
val annotationParameter = psi.kotlinOrigin as? KtParameter ?: return@lz null
|
||||
val defaultValue = annotationParameter.defaultValue ?: return@lz null
|
||||
getLanguagePlugin().convertElement(defaultValue, this) as? UExpression
|
||||
}
|
||||
|
||||
private val kotlinOrigin = (psi.originalElement as KtLightElement<*, *>).kotlinOrigin
|
||||
private val kotlinOrigin = (psi.originalElement as? KtLightElement<*, *>)?.kotlinOrigin ?: sourcePsi
|
||||
|
||||
override fun getContainingFile(): PsiFile? = unwrapFakeFileForLightClass(psi.containingFile)
|
||||
|
||||
@@ -95,8 +93,8 @@ open class KotlinUMethod(
|
||||
val bodyExpression = when (kotlinOrigin) {
|
||||
is KtFunction -> kotlinOrigin.bodyExpression
|
||||
is KtProperty -> when {
|
||||
psi.isGetter -> kotlinOrigin.getter?.bodyExpression
|
||||
psi.isSetter -> kotlinOrigin.setter?.bodyExpression
|
||||
psi is KtLightMethod && psi.isGetter -> kotlinOrigin.getter?.bodyExpression
|
||||
psi is KtLightMethod && psi.isSetter -> kotlinOrigin.setter?.bodyExpression
|
||||
else -> null
|
||||
}
|
||||
else -> null
|
||||
@@ -105,9 +103,6 @@ open class KotlinUMethod(
|
||||
wrapExpressionBody(this, bodyExpression)
|
||||
}
|
||||
|
||||
override fun getBody(): PsiCodeBlock? = super<UAnnotationMethod>.getBody()
|
||||
|
||||
override fun getOriginalElement(): PsiElement? = super<UAnnotationMethod>.getOriginalElement()
|
||||
|
||||
override val returnTypeReference: UTypeReferenceExpression? by lz {
|
||||
(sourcePsi as? KtCallableDeclaration)?.typeReference?.let {
|
||||
@@ -118,18 +113,38 @@ open class KotlinUMethod(
|
||||
override fun equals(other: Any?) = other is KotlinUMethod && psi == other.psi
|
||||
|
||||
companion object {
|
||||
fun create(psi: KtLightMethod, containingElement: UElement?) =
|
||||
if (psi.kotlinOrigin is KtConstructor<*>) {
|
||||
KotlinConstructorUMethod(
|
||||
psi.kotlinOrigin?.containingClassOrObject,
|
||||
psi, containingElement
|
||||
)
|
||||
}
|
||||
else
|
||||
KotlinUMethod(psi, containingElement)
|
||||
fun create(psi: KtLightMethod, containingElement: UElement?): KotlinUMethod {
|
||||
val kotlinOrigin = psi.kotlinOrigin
|
||||
return if (kotlinOrigin is KtConstructor<*>) {
|
||||
KotlinConstructorUMethod(
|
||||
kotlinOrigin.containingClassOrObject,
|
||||
psi,
|
||||
containingElement
|
||||
)
|
||||
} else if (kotlinOrigin is KtParameter && kotlinOrigin.getParentOfType<KtClass>(true)?.isAnnotation() == true)
|
||||
KotlinUAnnotationMethod(psi, containingElement)
|
||||
else
|
||||
KotlinUMethod(psi, containingElement)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
open class KotlinUAnnotationMethod(
|
||||
psi: KtLightMethod,
|
||||
givenParent: UElement?
|
||||
) : KotlinUMethod(psi, psi.kotlinOrigin, givenParent), UAnnotationMethod {
|
||||
|
||||
override val psi: KtLightMethod = unwrap<UMethod, KtLightMethod>(psi)
|
||||
|
||||
override val uastDefaultValue by lz {
|
||||
val annotationParameter = sourcePsi as? KtParameter ?: return@lz null
|
||||
val defaultValue = annotationParameter.defaultValue ?: return@lz null
|
||||
getLanguagePlugin().convertElement(defaultValue, this) as? UExpression
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
internal fun wrapExpressionBody(function: UElement, bodyExpression: KtExpression): UExpression? = when (bodyExpression) {
|
||||
!is KtBlockExpression -> {
|
||||
KotlinUBlockExpression.KotlinLazyUBlockExpression(function) { block ->
|
||||
|
||||
+40
-27
@@ -30,27 +30,23 @@ import org.jetbrains.uast.java.internal.JavaUElementWithComments
|
||||
import org.jetbrains.uast.kotlin.*
|
||||
|
||||
open class KotlinUMethod(
|
||||
psi: KtLightMethod,
|
||||
givenParent: UElement?
|
||||
) : KotlinAbstractUElement(givenParent), UAnnotationMethod, UMethodTypeSpecific, UAnchorOwner, JavaUElementWithComments, PsiMethod by psi {
|
||||
psi: PsiMethod,
|
||||
final override val sourcePsi: KtDeclaration?,
|
||||
givenParent: UElement?
|
||||
) : KotlinAbstractUElement(givenParent), UMethodTypeSpecific, UAnchorOwner, JavaUElementWithComments, PsiMethod by psi {
|
||||
|
||||
constructor(psi: KtLightMethod, givenParent: UElement?) : this(psi, psi.kotlinOrigin, givenParent)
|
||||
|
||||
override val comments: List<UComment>
|
||||
get() = super<KotlinAbstractUElement>.comments
|
||||
|
||||
override val psi: KtLightMethod = unwrap<UMethod, KtLightMethod>(psi)
|
||||
override val psi: PsiMethod = unwrap<UMethod, PsiMethod>(psi)
|
||||
|
||||
override val javaPsi = psi
|
||||
|
||||
override val sourcePsi = psi.kotlinOrigin
|
||||
|
||||
override fun getSourceElement() = sourcePsi ?: this
|
||||
|
||||
override val uastDefaultValue by lz {
|
||||
val annotationParameter = psi.kotlinOrigin as? KtParameter ?: return@lz null
|
||||
val defaultValue = annotationParameter.defaultValue ?: return@lz null
|
||||
getLanguagePlugin().convertElement(defaultValue, this) as? UExpression
|
||||
}
|
||||
|
||||
private val kotlinOrigin = (psi.originalElement as KtLightElement<*, *>).kotlinOrigin
|
||||
private val kotlinOrigin = (psi.originalElement as? KtLightElement<*, *>)?.kotlinOrigin ?: sourcePsi
|
||||
|
||||
override fun getContainingFile(): PsiFile? = unwrapFakeFileForLightClass(psi.containingFile)
|
||||
|
||||
@@ -95,8 +91,8 @@ open class KotlinUMethod(
|
||||
val bodyExpression = when (kotlinOrigin) {
|
||||
is KtFunction -> kotlinOrigin.bodyExpression
|
||||
is KtProperty -> when {
|
||||
psi.isGetter -> kotlinOrigin.getter?.bodyExpression
|
||||
psi.isSetter -> kotlinOrigin.setter?.bodyExpression
|
||||
psi is KtLightMethod && psi.isGetter -> kotlinOrigin.getter?.bodyExpression
|
||||
psi is KtLightMethod && psi.isSetter -> kotlinOrigin.setter?.bodyExpression
|
||||
else -> null
|
||||
}
|
||||
else -> null
|
||||
@@ -108,25 +104,42 @@ open class KotlinUMethod(
|
||||
override val isOverride: Boolean
|
||||
get() = (kotlinOrigin as? KtCallableDeclaration)?.hasModifier(KtTokens.OVERRIDE_KEYWORD) ?: false
|
||||
|
||||
override fun getBody(): PsiCodeBlock? = super<UAnnotationMethod>.getBody()
|
||||
|
||||
override fun getOriginalElement(): PsiElement? = super<UAnnotationMethod>.getOriginalElement()
|
||||
|
||||
override fun equals(other: Any?) = other is KotlinUMethod && psi == other.psi
|
||||
|
||||
companion object {
|
||||
fun create(psi: KtLightMethod, containingElement: UElement?) =
|
||||
if (psi.kotlinOrigin is KtConstructor<*>) {
|
||||
KotlinConstructorUMethod(
|
||||
psi.kotlinOrigin?.containingClassOrObject,
|
||||
psi, containingElement
|
||||
)
|
||||
}
|
||||
else
|
||||
KotlinUMethod(psi, containingElement)
|
||||
fun create(psi: KtLightMethod, containingElement: UElement?): KotlinUMethod {
|
||||
val kotlinOrigin = psi.kotlinOrigin
|
||||
return if (kotlinOrigin is KtConstructor<*>) {
|
||||
KotlinConstructorUMethod(
|
||||
kotlinOrigin.containingClassOrObject,
|
||||
psi,
|
||||
containingElement
|
||||
)
|
||||
} else if (kotlinOrigin is KtParameter && kotlinOrigin.getParentOfType<KtClass>(true)?.isAnnotation() == true)
|
||||
KotlinUAnnotationMethod(psi, containingElement)
|
||||
else
|
||||
KotlinUMethod(psi, containingElement)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
open class KotlinUAnnotationMethod(
|
||||
psi: KtLightMethod,
|
||||
givenParent: UElement?
|
||||
) : KotlinUMethod(psi, psi.kotlinOrigin, givenParent), UAnnotationMethod {
|
||||
|
||||
override val psi: KtLightMethod = unwrap<UMethod, KtLightMethod>(psi)
|
||||
|
||||
override val uastDefaultValue by lz {
|
||||
val annotationParameter = sourcePsi as? KtParameter ?: return@lz null
|
||||
val defaultValue = annotationParameter.defaultValue ?: return@lz null
|
||||
getLanguagePlugin().convertElement(defaultValue, this) as? UExpression
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
internal fun wrapExpressionBody(function: UElement, bodyExpression: KtExpression): UExpression? = when (bodyExpression) {
|
||||
!is KtBlockExpression -> {
|
||||
KotlinUBlockExpression.KotlinLazyUBlockExpression(function) { block ->
|
||||
|
||||
+40
-28
@@ -30,27 +30,23 @@ import org.jetbrains.uast.java.internal.JavaUElementWithComments
|
||||
import org.jetbrains.uast.kotlin.*
|
||||
|
||||
open class KotlinUMethod(
|
||||
psi: KtLightMethod,
|
||||
givenParent: UElement?
|
||||
) : KotlinAbstractUElement(givenParent), UAnnotationMethod, UMethodTypeSpecific, UAnchorOwner, JavaUElementWithComments, PsiMethod by psi {
|
||||
psi: PsiMethod,
|
||||
final override val sourcePsi: KtDeclaration?,
|
||||
givenParent: UElement?
|
||||
) : KotlinAbstractUElement(givenParent), UMethodTypeSpecific, UAnchorOwner, JavaUElementWithComments, PsiMethod by psi {
|
||||
|
||||
constructor(psi: KtLightMethod, givenParent: UElement?) : this(psi, psi.kotlinOrigin, givenParent)
|
||||
|
||||
override val comments: List<UComment>
|
||||
get() = super<KotlinAbstractUElement>.comments
|
||||
|
||||
override val psi: KtLightMethod = unwrap<UMethod, KtLightMethod>(psi)
|
||||
override val psi: PsiMethod = unwrap<UMethod, PsiMethod>(psi)
|
||||
|
||||
override val javaPsi = psi
|
||||
|
||||
override val sourcePsi = psi.kotlinOrigin
|
||||
|
||||
override fun getSourceElement() = sourcePsi ?: this
|
||||
|
||||
override val uastDefaultValue by lz {
|
||||
val annotationParameter = psi.kotlinOrigin as? KtParameter ?: return@lz null
|
||||
val defaultValue = annotationParameter.defaultValue ?: return@lz null
|
||||
getLanguagePlugin().convertElement(defaultValue, this) as? UExpression
|
||||
}
|
||||
|
||||
private val kotlinOrigin = (psi.originalElement as KtLightElement<*, *>).kotlinOrigin
|
||||
private val kotlinOrigin = (psi.originalElement as? KtLightElement<*, *>)?.kotlinOrigin ?: sourcePsi
|
||||
|
||||
override fun getContainingFile(): PsiFile? = unwrapFakeFileForLightClass(psi.containingFile)
|
||||
|
||||
@@ -95,8 +91,8 @@ open class KotlinUMethod(
|
||||
val bodyExpression = when (kotlinOrigin) {
|
||||
is KtFunction -> kotlinOrigin.bodyExpression
|
||||
is KtProperty -> when {
|
||||
psi.isGetter -> kotlinOrigin.getter?.bodyExpression
|
||||
psi.isSetter -> kotlinOrigin.setter?.bodyExpression
|
||||
psi is KtLightMethod && psi.isGetter -> kotlinOrigin.getter?.bodyExpression
|
||||
psi is KtLightMethod && psi.isSetter -> kotlinOrigin.setter?.bodyExpression
|
||||
else -> null
|
||||
}
|
||||
else -> null
|
||||
@@ -108,10 +104,6 @@ open class KotlinUMethod(
|
||||
override val isOverride: Boolean
|
||||
get() = (kotlinOrigin as? KtCallableDeclaration)?.hasModifier(KtTokens.OVERRIDE_KEYWORD) ?: false
|
||||
|
||||
override fun getBody(): PsiCodeBlock? = super<UAnnotationMethod>.getBody()
|
||||
|
||||
override fun getOriginalElement(): PsiElement? = super<UAnnotationMethod>.getOriginalElement()
|
||||
|
||||
override val returnTypeReference: UTypeReferenceExpression? by lz {
|
||||
(sourcePsi as? KtCallableDeclaration)?.typeReference?.let {
|
||||
LazyKotlinUTypeReferenceExpression(it, this) { javaPsi.returnType ?: UastErrorType }
|
||||
@@ -121,18 +113,38 @@ open class KotlinUMethod(
|
||||
override fun equals(other: Any?) = other is KotlinUMethod && psi == other.psi
|
||||
|
||||
companion object {
|
||||
fun create(psi: KtLightMethod, containingElement: UElement?) =
|
||||
if (psi.kotlinOrigin is KtConstructor<*>) {
|
||||
KotlinConstructorUMethod(
|
||||
psi.kotlinOrigin?.containingClassOrObject,
|
||||
psi, containingElement
|
||||
)
|
||||
}
|
||||
else
|
||||
KotlinUMethod(psi, containingElement)
|
||||
fun create(psi: KtLightMethod, containingElement: UElement?): KotlinUMethod {
|
||||
val kotlinOrigin = psi.kotlinOrigin
|
||||
return if (kotlinOrigin is KtConstructor<*>) {
|
||||
KotlinConstructorUMethod(
|
||||
kotlinOrigin.containingClassOrObject,
|
||||
psi,
|
||||
containingElement
|
||||
)
|
||||
} else if (kotlinOrigin is KtParameter && kotlinOrigin.getParentOfType<KtClass>(true)?.isAnnotation() == true)
|
||||
KotlinUAnnotationMethod(psi, containingElement)
|
||||
else
|
||||
KotlinUMethod(psi, containingElement)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
open class KotlinUAnnotationMethod(
|
||||
psi: KtLightMethod,
|
||||
givenParent: UElement?
|
||||
) : KotlinUMethod(psi, psi.kotlinOrigin, givenParent), UAnnotationMethod {
|
||||
|
||||
override val psi: KtLightMethod = unwrap<UMethod, KtLightMethod>(psi)
|
||||
|
||||
override val uastDefaultValue by lz {
|
||||
val annotationParameter = sourcePsi as? KtParameter ?: return@lz null
|
||||
val defaultValue = annotationParameter.defaultValue ?: return@lz null
|
||||
getLanguagePlugin().convertElement(defaultValue, this) as? UExpression
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
internal fun wrapExpressionBody(function: UElement, bodyExpression: KtExpression): UExpression? = when (bodyExpression) {
|
||||
!is KtBlockExpression -> {
|
||||
KotlinUBlockExpression.KotlinLazyUBlockExpression(function) { block ->
|
||||
|
||||
+5
-5
@@ -3,7 +3,7 @@ UFile (package = )
|
||||
UAnnotationMethod (name = strings)
|
||||
UClass (name = A)
|
||||
UAnnotation (fqName = Annotation)
|
||||
UAnnotationMethod (name = A)
|
||||
UMethod (name = A)
|
||||
UClass (name = AnnotationInner)
|
||||
UAnnotationMethod (name = value)
|
||||
UClass (name = B1)
|
||||
@@ -12,7 +12,7 @@ UFile (package = )
|
||||
UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 0))
|
||||
UIdentifier (Identifier (Annotation))
|
||||
USimpleNameReferenceExpression (identifier = <init>, resolvesTo = Annotation)
|
||||
UAnnotationMethod (name = B1)
|
||||
UMethod (name = B1)
|
||||
UClass (name = B2)
|
||||
UAnnotation (fqName = AnnotationArray)
|
||||
UNamedExpression (name = value)
|
||||
@@ -21,7 +21,7 @@ UFile (package = )
|
||||
USimpleNameReferenceExpression (identifier = <init>, resolvesTo = Annotation)
|
||||
ULiteralExpression (value = "sv1")
|
||||
ULiteralExpression (value = "sv2")
|
||||
UAnnotationMethod (name = B2)
|
||||
UMethod (name = B2)
|
||||
UClass (name = AnnotationArray)
|
||||
UAnnotationMethod (name = value)
|
||||
UClass (name = C)
|
||||
@@ -35,7 +35,7 @@ UFile (package = )
|
||||
USimpleNameReferenceExpression (identifier = arrayOf, resolvesTo = null)
|
||||
ULiteralExpression (value = "sar1")
|
||||
ULiteralExpression (value = "sar2")
|
||||
UAnnotationMethod (name = C)
|
||||
UMethod (name = C)
|
||||
UClass (name = C2)
|
||||
UAnnotation (fqName = AnnotationArray)
|
||||
UNamedExpression (name = value)
|
||||
@@ -46,4 +46,4 @@ UFile (package = )
|
||||
UIdentifier (Identifier ([))
|
||||
ULiteralExpression (value = "[sar]1")
|
||||
ULiteralExpression (value = "[sar]2")
|
||||
UAnnotationMethod (name = C2)
|
||||
UMethod (name = C2)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
UFile (package = )
|
||||
UClass (name = AnnotationParametersKt)
|
||||
UAnnotationMethod (name = foo)
|
||||
UMethod (name = foo)
|
||||
UAnnotation (fqName = RequiresPermission)
|
||||
UNamedExpression (name = anyOf)
|
||||
UCallExpression (kind = UastCallKind(name='array_initializer'), argCount = 3))
|
||||
@@ -21,7 +21,7 @@ UFile (package = )
|
||||
UBlockExpression
|
||||
UReturnExpression
|
||||
ULiteralExpression (value = 5)
|
||||
UAnnotationMethod (name = bar)
|
||||
UMethod (name = bar)
|
||||
UAnnotation (fqName = IntRange)
|
||||
UNamedExpression (name = from)
|
||||
ULiteralExpression (value = 0)
|
||||
@@ -36,7 +36,7 @@ UFile (package = )
|
||||
UBlockExpression
|
||||
UReturnExpression
|
||||
USimpleNameReferenceExpression (identifier = Unit)
|
||||
UAnnotationMethod (name = fooWithArrLiteral)
|
||||
UMethod (name = fooWithArrLiteral)
|
||||
UAnnotation (fqName = RequiresPermission)
|
||||
UNamedExpression (name = anyOf)
|
||||
UCallExpression (kind = UastCallKind(name='array_initializer'), argCount = 3))
|
||||
@@ -47,7 +47,7 @@ UFile (package = )
|
||||
UBlockExpression
|
||||
UReturnExpression
|
||||
ULiteralExpression (value = 5)
|
||||
UAnnotationMethod (name = fooWithStrArrLiteral)
|
||||
UMethod (name = fooWithStrArrLiteral)
|
||||
UAnnotation (fqName = RequiresStrPermission)
|
||||
UNamedExpression (name = strs)
|
||||
UCallExpression (kind = UastCallKind(name='array_initializer'), argCount = 3))
|
||||
|
||||
+7
-7
@@ -4,11 +4,11 @@ Closeable -> USimpleNameReferenceExpression (identifier = Closeable)
|
||||
java -> USimpleNameReferenceExpression (identifier = java)
|
||||
io -> USimpleNameReferenceExpression (identifier = io)
|
||||
InputStream -> USimpleNameReferenceExpression (identifier = InputStream)
|
||||
foo -> UAnnotationMethod (name = foo)
|
||||
foo -> UMethod (name = foo)
|
||||
runnable -> ULocalVariable (name = runnable)
|
||||
object -> UClass (name = null)
|
||||
Runnable -> USimpleNameReferenceExpression (identifier = Runnable)
|
||||
run -> UAnnotationMethod (name = run)
|
||||
run -> UMethod (name = run)
|
||||
runnable -> USimpleNameReferenceExpression (identifier = runnable)
|
||||
run -> UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))
|
||||
runnable2 -> ULocalVariable (name = runnable2)
|
||||
@@ -20,16 +20,16 @@ foo -> UAnnotationMethod (name = foo)
|
||||
object -> UClass (name = null)
|
||||
Runnable -> USimpleNameReferenceExpression (identifier = Runnable)
|
||||
Closeable -> USimpleNameReferenceExpression (identifier = Closeable)
|
||||
close -> UAnnotationMethod (name = close)
|
||||
run -> UAnnotationMethod (name = run)
|
||||
close -> UMethod (name = close)
|
||||
run -> UMethod (name = run)
|
||||
runnableIs -> ULocalVariable (name = runnableIs)
|
||||
object -> UClass (name = null)
|
||||
InputStream -> UObjectLiteralExpression
|
||||
Runnable -> USimpleNameReferenceExpression (identifier = Runnable)
|
||||
read -> UAnnotationMethod (name = read)
|
||||
read -> UMethod (name = read)
|
||||
Int -> USimpleNameReferenceExpression (identifier = Int)
|
||||
run -> UAnnotationMethod (name = run)
|
||||
withErr -> UAnnotationMethod (name = withErr)
|
||||
run -> UMethod (name = run)
|
||||
withErr -> UMethod (name = withErr)
|
||||
runnable -> ULocalVariable (name = runnable)
|
||||
object -> UastEmptyExpression
|
||||
Runnable -> null
|
||||
|
||||
+10
-10
@@ -2,15 +2,15 @@ UFile (package = )
|
||||
UImportStatement (isOnDemand = false)
|
||||
UImportStatement (isOnDemand = false)
|
||||
UClass (name = AnonymousKt)
|
||||
UAnnotationMethod (name = foo)
|
||||
UMethod (name = foo)
|
||||
UBlockExpression
|
||||
UDeclarationsExpression
|
||||
ULocalVariable (name = runnable)
|
||||
UObjectLiteralExpression
|
||||
UClass (name = null)
|
||||
UAnnotationMethod (name = run)
|
||||
UMethod (name = run)
|
||||
UBlockExpression
|
||||
UAnnotationMethod (name = AnonymousKt$foo$runnable$1)
|
||||
UMethod (name = AnonymousKt$foo$runnable$1)
|
||||
UQualifiedReferenceExpression
|
||||
USimpleNameReferenceExpression (identifier = runnable)
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))
|
||||
@@ -35,23 +35,23 @@ UFile (package = )
|
||||
ULocalVariable (name = closeableRunnable)
|
||||
UObjectLiteralExpression
|
||||
UClass (name = null)
|
||||
UAnnotationMethod (name = close)
|
||||
UMethod (name = close)
|
||||
UBlockExpression
|
||||
UAnnotationMethod (name = run)
|
||||
UMethod (name = run)
|
||||
UBlockExpression
|
||||
UAnnotationMethod (name = AnonymousKt$foo$closeableRunnable$1)
|
||||
UMethod (name = AnonymousKt$foo$closeableRunnable$1)
|
||||
UDeclarationsExpression
|
||||
ULocalVariable (name = runnableIs)
|
||||
UObjectLiteralExpression
|
||||
UClass (name = null)
|
||||
UAnnotationMethod (name = read)
|
||||
UMethod (name = read)
|
||||
UBlockExpression
|
||||
UReturnExpression
|
||||
ULiteralExpression (value = 0)
|
||||
UAnnotationMethod (name = run)
|
||||
UMethod (name = run)
|
||||
UBlockExpression
|
||||
UAnnotationMethod (name = AnonymousKt$foo$runnableIs$1)
|
||||
UAnnotationMethod (name = withErr)
|
||||
UMethod (name = AnonymousKt$foo$runnableIs$1)
|
||||
UMethod (name = withErr)
|
||||
UBlockExpression
|
||||
UDeclarationsExpression
|
||||
ULocalVariable (name = runnable)
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
UFile (package = ) [public final class AssertionKt {...]
|
||||
UClass (name = AssertionKt) [public final class AssertionKt {...}]
|
||||
UAnnotationMethod (name = foo) [public static final fun foo() : java.lang.String {...}]
|
||||
UMethod (name = foo) [public static final fun foo() : java.lang.String {...}]
|
||||
UBlockExpression [{...}] = Nothing
|
||||
UDeclarationsExpression [var s: java.lang.String = "Not Null"] = Undetermined
|
||||
ULocalVariable (name = s) [var s: java.lang.String = "Not Null"]
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
UFile (package = ) [public final class AssertionKt {...]
|
||||
UClass (name = AssertionKt) [public final class AssertionKt {...}]
|
||||
UAnnotationMethod (name = foo) [public static final fun foo() : java.lang.String {...}]
|
||||
UBlockExpression [{...}] = Nothing
|
||||
UDeclarationsExpression [var s: java.lang.String = "Not Null"] = Undetermined
|
||||
ULocalVariable (name = s) [var s: java.lang.String = "Not Null"]
|
||||
ULiteralExpression (value = "Not Null") ["Not Null"] = "Not Null"
|
||||
UReturnExpression [return s!!] = Nothing
|
||||
UPostfixExpression (operator = !!) [s!!] = (var s = "Not Null")
|
||||
USimpleNameReferenceExpression (identifier = s) [s] = (var s = "Not Null")
|
||||
+1
-1
@@ -8,7 +8,7 @@
|
||||
[1]:[UIdentifier (Identifier (A))]
|
||||
[1]:[UClass (name = MyAnnotation)]
|
||||
[1]:[UIdentifier (Identifier (MyAnnotation))]
|
||||
[1]:[UDeclarationsExpression]
|
||||
[1]:[UMethod (name = MyAnnotation)]
|
||||
[1]:[UDeclarationsExpression]
|
||||
[1]:[UAnnotationMethod (name = text)]
|
||||
[1]:[UIdentifier (Identifier (text))]
|
||||
|
||||
+5
-5
@@ -1,7 +1,7 @@
|
||||
UFile (package = )
|
||||
UClass (name = A)
|
||||
UAnnotation (fqName = null)
|
||||
UAnnotationMethod (name = A)
|
||||
UMethod (name = A)
|
||||
UClass (name = MyAnnotation)
|
||||
UAnnotationMethod (name = text)
|
||||
UClass (name = B)
|
||||
@@ -10,21 +10,21 @@ UFile (package = )
|
||||
ULiteralExpression (value = "class")
|
||||
UField (name = Companion)
|
||||
UAnnotation (fqName = null)
|
||||
UAnnotationMethod (name = B)
|
||||
UMethod (name = B)
|
||||
UClass (name = InB)
|
||||
UAnnotation (fqName = MyAnnotation)
|
||||
UNamedExpression (name = text)
|
||||
ULiteralExpression (value = "inB class")
|
||||
UAnnotationMethod (name = InB)
|
||||
UMethod (name = InB)
|
||||
UClass (name = Companion)
|
||||
UAnnotation (fqName = MyAnnotation)
|
||||
UNamedExpression (name = text)
|
||||
ULiteralExpression (value = "companion")
|
||||
UAnnotationMethod (name = Companion)
|
||||
UMethod (name = Companion)
|
||||
UClass (name = Obj)
|
||||
UAnnotation (fqName = MyAnnotation)
|
||||
UNamedExpression (name = text)
|
||||
ULiteralExpression (value = "object")
|
||||
UField (name = INSTANCE)
|
||||
UAnnotation (fqName = null)
|
||||
UAnnotationMethod (name = Obj)
|
||||
UMethod (name = Obj)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
UFile (package = )
|
||||
UClass (name = ConstructorDelegateKt)
|
||||
UAnnotationMethod (name = createBase)
|
||||
UMethod (name = createBase)
|
||||
UParameter (name = i)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UBlockExpression
|
||||
@@ -10,18 +10,18 @@ UFile (package = )
|
||||
USimpleNameReferenceExpression (identifier = <init>, resolvesTo = BaseImpl)
|
||||
USimpleNameReferenceExpression (identifier = i)
|
||||
UClass (name = Base)
|
||||
UAnnotationMethod (name = print)
|
||||
UMethod (name = print)
|
||||
UClass (name = BaseImpl)
|
||||
UField (name = x)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UAnnotationMethod (name = print)
|
||||
UMethod (name = print)
|
||||
UBlockExpression
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 1))
|
||||
UIdentifier (Identifier (print))
|
||||
USimpleNameReferenceExpression (identifier = print, resolvesTo = null)
|
||||
USimpleNameReferenceExpression (identifier = x)
|
||||
UAnnotationMethod (name = getX)
|
||||
UAnnotationMethod (name = BaseImpl)
|
||||
UMethod (name = getX)
|
||||
UMethod (name = BaseImpl)
|
||||
UParameter (name = x)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UClass (name = Derived)
|
||||
@@ -34,14 +34,14 @@ UFile (package = )
|
||||
UExpressionList (super_delegation)
|
||||
UTypeReferenceExpression (name = java.lang.CharSequence)
|
||||
ULiteralExpression (value = "abc")
|
||||
UAnnotationMethod (name = Derived)
|
||||
UMethod (name = Derived)
|
||||
UParameter (name = b)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UAnnotationMethod (name = getLength)
|
||||
UAnnotationMethod (name = get)
|
||||
UMethod (name = getLength)
|
||||
UMethod (name = get)
|
||||
UParameter (name = index)
|
||||
UAnnotation (fqName = null)
|
||||
UAnnotationMethod (name = subSequence)
|
||||
UMethod (name = subSequence)
|
||||
UParameter (name = startIndex)
|
||||
UAnnotation (fqName = null)
|
||||
UParameter (name = endIndex)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
A -> UClass (name = A)
|
||||
str -> UParameter (name = str)
|
||||
String -> USimpleNameReferenceExpression (identifier = String)
|
||||
constructor -> UAnnotationMethod (name = A)
|
||||
constructor -> UMethod (name = A)
|
||||
i -> UParameter (name = i)
|
||||
Int -> USimpleNameReferenceExpression (identifier = Int)
|
||||
this -> UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 1))
|
||||
@@ -11,7 +11,7 @@ AWithInit -> UClass (name = AWithInit)
|
||||
str -> UParameter (name = str)
|
||||
String -> USimpleNameReferenceExpression (identifier = String)
|
||||
println -> UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))
|
||||
constructor -> UAnnotationMethod (name = AWithInit)
|
||||
constructor -> UMethod (name = AWithInit)
|
||||
i -> UParameter (name = i)
|
||||
Int -> USimpleNameReferenceExpression (identifier = Int)
|
||||
this -> UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 1))
|
||||
@@ -22,7 +22,7 @@ str -> UParameter (name = str)
|
||||
String -> USimpleNameReferenceExpression (identifier = String)
|
||||
println -> UCallExpression (kind = UastCallKind(name='method_call'), argCount = 1))
|
||||
println -> UCallExpression (kind = UastCallKind(name='method_call'), argCount = 1))
|
||||
constructor -> UAnnotationMethod (name = AWith2Init)
|
||||
constructor -> UMethod (name = AWith2Init)
|
||||
i -> UParameter (name = i)
|
||||
Int -> USimpleNameReferenceExpression (identifier = Int)
|
||||
this -> UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 1))
|
||||
@@ -34,14 +34,14 @@ AOnlyInit -> UClass (name = AOnlyInit)
|
||||
AWithSecondary -> UClass (name = AWithSecondary)
|
||||
a -> UField (name = a)
|
||||
String -> USimpleNameReferenceExpression (identifier = String)
|
||||
constructor -> UAnnotationMethod (name = AWithSecondary)
|
||||
constructor -> UMethod (name = AWithSecondary)
|
||||
i -> UParameter (name = i)
|
||||
Int -> USimpleNameReferenceExpression (identifier = Int)
|
||||
a -> USimpleNameReferenceExpression (identifier = a)
|
||||
= -> USimpleNameReferenceExpression (identifier = =)
|
||||
i -> USimpleNameReferenceExpression (identifier = i)
|
||||
toString -> UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))
|
||||
constructor -> UAnnotationMethod (name = AWithSecondary)
|
||||
constructor -> UMethod (name = AWithSecondary)
|
||||
s -> UParameter (name = s)
|
||||
String -> USimpleNameReferenceExpression (identifier = String)
|
||||
a -> USimpleNameReferenceExpression (identifier = a)
|
||||
@@ -51,14 +51,14 @@ AWithSecondaryInit -> UClass (name = AWithSecondaryInit)
|
||||
a -> UField (name = a)
|
||||
String -> USimpleNameReferenceExpression (identifier = String)
|
||||
println -> UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))
|
||||
constructor -> UAnnotationMethod (name = AWithSecondaryInit)
|
||||
constructor -> UMethod (name = AWithSecondaryInit)
|
||||
i -> UParameter (name = i)
|
||||
Int -> USimpleNameReferenceExpression (identifier = Int)
|
||||
a -> USimpleNameReferenceExpression (identifier = a)
|
||||
= -> USimpleNameReferenceExpression (identifier = =)
|
||||
i -> USimpleNameReferenceExpression (identifier = i)
|
||||
toString -> UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))
|
||||
constructor -> UAnnotationMethod (name = AWithSecondaryInit)
|
||||
constructor -> UMethod (name = AWithSecondaryInit)
|
||||
s -> UParameter (name = s)
|
||||
String -> USimpleNameReferenceExpression (identifier = String)
|
||||
a -> USimpleNameReferenceExpression (identifier = a)
|
||||
|
||||
+18
-18
@@ -2,11 +2,11 @@ UFile (package = )
|
||||
UClass (name = A)
|
||||
UField (name = str)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UAnnotationMethod (name = getStr)
|
||||
UAnnotationMethod (name = A)
|
||||
UMethod (name = getStr)
|
||||
UMethod (name = A)
|
||||
UParameter (name = str)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UAnnotationMethod (name = A)
|
||||
UMethod (name = A)
|
||||
UParameter (name = i)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UBlockExpression
|
||||
@@ -21,8 +21,8 @@ UFile (package = )
|
||||
UClass (name = AWithInit)
|
||||
UField (name = str)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UAnnotationMethod (name = getStr)
|
||||
UAnnotationMethod (name = AWithInit)
|
||||
UMethod (name = getStr)
|
||||
UMethod (name = AWithInit)
|
||||
UParameter (name = str)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UBlockExpression
|
||||
@@ -30,7 +30,7 @@ UFile (package = )
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))
|
||||
UIdentifier (Identifier (println))
|
||||
USimpleNameReferenceExpression (identifier = println, resolvesTo = null)
|
||||
UAnnotationMethod (name = AWithInit)
|
||||
UMethod (name = AWithInit)
|
||||
UParameter (name = i)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UBlockExpression
|
||||
@@ -45,8 +45,8 @@ UFile (package = )
|
||||
UClass (name = AWith2Init)
|
||||
UField (name = str)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UAnnotationMethod (name = getStr)
|
||||
UAnnotationMethod (name = AWith2Init)
|
||||
UMethod (name = getStr)
|
||||
UMethod (name = AWith2Init)
|
||||
UParameter (name = str)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UBlockExpression
|
||||
@@ -60,7 +60,7 @@ UFile (package = )
|
||||
UIdentifier (Identifier (println))
|
||||
USimpleNameReferenceExpression (identifier = println, resolvesTo = null)
|
||||
ULiteralExpression (value = 2)
|
||||
UAnnotationMethod (name = AWith2Init)
|
||||
UMethod (name = AWith2Init)
|
||||
UParameter (name = i)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UBlockExpression
|
||||
@@ -73,7 +73,7 @@ UFile (package = )
|
||||
UIdentifier (Identifier (toString))
|
||||
USimpleNameReferenceExpression (identifier = toString, resolvesTo = null)
|
||||
UClass (name = AOnlyInit)
|
||||
UAnnotationMethod (name = AOnlyInit)
|
||||
UMethod (name = AOnlyInit)
|
||||
UBlockExpression
|
||||
UBlockExpression
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 1))
|
||||
@@ -88,11 +88,11 @@ UFile (package = )
|
||||
UClass (name = AWithSecondary)
|
||||
UField (name = a)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UAnnotationMethod (name = getA)
|
||||
UAnnotationMethod (name = setA)
|
||||
UMethod (name = getA)
|
||||
UMethod (name = setA)
|
||||
UParameter (name = p)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UAnnotationMethod (name = AWithSecondary)
|
||||
UMethod (name = AWithSecondary)
|
||||
UParameter (name = i)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UBlockExpression
|
||||
@@ -106,7 +106,7 @@ UFile (package = )
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))
|
||||
UIdentifier (Identifier (toString))
|
||||
USimpleNameReferenceExpression (identifier = toString, resolvesTo = null)
|
||||
UAnnotationMethod (name = AWithSecondary)
|
||||
UMethod (name = AWithSecondary)
|
||||
UParameter (name = s)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UBlockExpression
|
||||
@@ -119,11 +119,11 @@ UFile (package = )
|
||||
UClass (name = AWithSecondaryInit)
|
||||
UField (name = a)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UAnnotationMethod (name = getA)
|
||||
UAnnotationMethod (name = setA)
|
||||
UMethod (name = getA)
|
||||
UMethod (name = setA)
|
||||
UParameter (name = p)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UAnnotationMethod (name = AWithSecondaryInit)
|
||||
UMethod (name = AWithSecondaryInit)
|
||||
UParameter (name = i)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UBlockExpression
|
||||
@@ -141,7 +141,7 @@ UFile (package = )
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))
|
||||
UIdentifier (Identifier (toString))
|
||||
USimpleNameReferenceExpression (identifier = toString, resolvesTo = null)
|
||||
UAnnotationMethod (name = AWithSecondaryInit)
|
||||
UMethod (name = AWithSecondaryInit)
|
||||
UParameter (name = s)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UBlockExpression
|
||||
|
||||
@@ -5,6 +5,6 @@ UFile (package = ) [public final class CycleInTypeParametersKt {...]
|
||||
UBinaryExpressionWithType [null as? Device<?>] : PsiType:Device<?>
|
||||
ULiteralExpression (value = null) [null] : PsiType:Void
|
||||
UTypeReferenceExpression (name = Device<?>) [Device<?>]
|
||||
UAnnotationMethod (name = getA) [public static final fun getA() : Device<?> = UastEmptyExpression]
|
||||
UMethod (name = getA) [public static final fun getA() : Device<?> = UastEmptyExpression]
|
||||
UClass (name = Device) [public final class Device {...}]
|
||||
UAnnotationMethod (name = Device) [public fun Device() = UastEmptyExpression]
|
||||
UMethod (name = Device) [public fun Device() = UastEmptyExpression]
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
UFile (package = )
|
||||
UClass (name = Foo)
|
||||
UAnnotationMethod (name = bar)
|
||||
UMethod (name = bar)
|
||||
UBlockExpression
|
||||
UReturnExpression
|
||||
ULiteralExpression (value = "Hello!")
|
||||
UClass (name = Baz)
|
||||
UAnnotationMethod (name = Baz)
|
||||
UMethod (name = Baz)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
UFile (package = )
|
||||
UClass (name = DefaultParameterValuesKt)
|
||||
UAnnotationMethod (name = foo)
|
||||
UMethod (name = foo)
|
||||
UParameter (name = a)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
ULiteralExpression (value = 1)
|
||||
|
||||
+8
-8
@@ -6,10 +6,10 @@ UFile (package = )
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UField (name = z)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UAnnotationMethod (name = getX)
|
||||
UAnnotationMethod (name = getY)
|
||||
UAnnotationMethod (name = getZ)
|
||||
UAnnotationMethod (name = MyColor)
|
||||
UMethod (name = getX)
|
||||
UMethod (name = getY)
|
||||
UMethod (name = getZ)
|
||||
UMethod (name = MyColor)
|
||||
UParameter (name = x)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UParameter (name = y)
|
||||
@@ -53,7 +53,7 @@ UFile (package = )
|
||||
ULiteralExpression (value = 1)
|
||||
ULiteralExpression (value = 2)
|
||||
ULiteralExpression (value = 3)
|
||||
UAnnotationMethod (name = getDelegate)
|
||||
UAnnotationMethod (name = getLambda)
|
||||
UAnnotationMethod (name = getNonLazy)
|
||||
UAnnotationMethod (name = Some)
|
||||
UMethod (name = getDelegate)
|
||||
UMethod (name = getLambda)
|
||||
UMethod (name = getNonLazy)
|
||||
UMethod (name = Some)
|
||||
|
||||
+8
-8
@@ -6,10 +6,10 @@ UFile (package = ) [public final class MyColor {...]
|
||||
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]
|
||||
UAnnotationMethod (name = getX) [public final fun getX() : int = UastEmptyExpression]
|
||||
UAnnotationMethod (name = getY) [public final fun getY() : int = UastEmptyExpression]
|
||||
UAnnotationMethod (name = getZ) [public final fun getZ() : int = UastEmptyExpression]
|
||||
UAnnotationMethod (name = MyColor) [public fun MyColor(@org.jetbrains.annotations.NotNull x: int, @org.jetbrains.annotations.NotNull y: int, @org.jetbrains.annotations.NotNull z: int) = UastEmptyExpression]
|
||||
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]
|
||||
@@ -61,7 +61,7 @@ UFile (package = ) [public final class MyColor {...]
|
||||
ULiteralExpression (value = 1) [1] = 1
|
||||
ULiteralExpression (value = 2) [2] = 2
|
||||
ULiteralExpression (value = 3) [3] = 3
|
||||
UAnnotationMethod (name = getDelegate) [public final fun getDelegate() : MyColor = UastEmptyExpression]
|
||||
UAnnotationMethod (name = getLambda) [public final fun getLambda() : kotlin.Lazy<MyColor> = UastEmptyExpression]
|
||||
UAnnotationMethod (name = getNonLazy) [public final fun getNonLazy() : MyColor = UastEmptyExpression]
|
||||
UAnnotationMethod (name = Some) [public fun Some() = UastEmptyExpression]
|
||||
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]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
UFile (package = )
|
||||
UClass (name = DestructuringDeclarationKt)
|
||||
UAnnotationMethod (name = foo)
|
||||
UMethod (name = foo)
|
||||
UBlockExpression
|
||||
UDeclarationsExpression
|
||||
ULocalVariable (name = var268d4034)
|
||||
|
||||
+3
-3
@@ -1,16 +1,16 @@
|
||||
UFile (package = )
|
||||
UClass (name = ElvisKt)
|
||||
UAnnotationMethod (name = foo)
|
||||
UMethod (name = foo)
|
||||
UParameter (name = bar)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UBlockExpression
|
||||
UReturnExpression
|
||||
ULiteralExpression (value = null)
|
||||
UAnnotationMethod (name = bar)
|
||||
UMethod (name = bar)
|
||||
UBlockExpression
|
||||
UReturnExpression
|
||||
ULiteralExpression (value = 42)
|
||||
UAnnotationMethod (name = baz)
|
||||
UMethod (name = baz)
|
||||
UBlockExpression
|
||||
UReturnExpression
|
||||
UExpressionList (elvis)
|
||||
|
||||
+5
-5
@@ -5,15 +5,15 @@ UFile (package = )
|
||||
USimpleNameReferenceExpression (identifier = Style)
|
||||
ULiteralExpression (value = "foo")
|
||||
UClass (name = null)
|
||||
UAnnotationMethod (name = getExitAnimation)
|
||||
UMethod (name = getExitAnimation)
|
||||
UBlockExpression
|
||||
UReturnExpression
|
||||
ULiteralExpression (value = "bar")
|
||||
UAnnotationMethod (name = SHEET)
|
||||
UMethod (name = SHEET)
|
||||
UField (name = value)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UAnnotationMethod (name = getExitAnimation)
|
||||
UAnnotationMethod (name = getValue)
|
||||
UAnnotationMethod (name = Style)
|
||||
UMethod (name = getExitAnimation)
|
||||
UMethod (name = getValue)
|
||||
UMethod (name = Style)
|
||||
UParameter (name = value)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
UFile (package = )
|
||||
UClass (name = IfStatementKt)
|
||||
UAnnotationMethod (name = foo)
|
||||
UMethod (name = foo)
|
||||
UBlockExpression
|
||||
UDeclarationsExpression
|
||||
ULocalVariable (name = x)
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
UFile (package = ) [public final class InKt {...]
|
||||
UClass (name = InKt) [public final class InKt {...}]
|
||||
UAnnotationMethod (name = foo) [public static final fun foo() : boolean {...}]
|
||||
UMethod (name = foo) [public static final fun foo() : boolean {...}]
|
||||
UBlockExpression [{...}] = Nothing
|
||||
UDeclarationsExpression [var x: int = 1] = Undetermined
|
||||
ULocalVariable (name = x) [var x: int = 1]
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
UFile (package = ) [public final class InferenceInsideUnresolvedConstructorKt {...]
|
||||
UClass (name = InferenceInsideUnresolvedConstructorKt) [public final class InferenceInsideUnresolvedConstructorKt {...}]
|
||||
UAnnotationMethod (name = getBar) [public static final fun getBar() : java.lang.Object {...}]
|
||||
UMethod (name = getBar) [public static final fun getBar() : java.lang.Object {...}]
|
||||
UBlockExpression [{...}]
|
||||
UReturnExpression [return <anonymous class>(id(42))]
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 1)) [<anonymous class>(id(42))]
|
||||
@@ -10,7 +10,7 @@ UFile (package = ) [public final class InferenceInsideUnresolvedConstructorKt {.
|
||||
UIdentifier (Identifier (id)) [UIdentifier (Identifier (id))]
|
||||
USimpleNameReferenceExpression (identifier = id, resolvesTo = null) [id] : PsiType:<ErrorType>
|
||||
ULiteralExpression (value = 42) [42] : PsiType:int
|
||||
UAnnotationMethod (name = id) [public static final fun id(@org.jetbrains.annotations.Nullable x: T) : T {...}]
|
||||
UMethod (name = id) [public static final fun id(@org.jetbrains.annotations.Nullable x: T) : T {...}]
|
||||
UParameter (name = x) [@org.jetbrains.annotations.Nullable var x: T]
|
||||
UAnnotation (fqName = org.jetbrains.annotations.Nullable) [@org.jetbrains.annotations.Nullable]
|
||||
UBlockExpression [{...}]
|
||||
|
||||
+6
-6
@@ -2,22 +2,22 @@
|
||||
[1]:[UClass (name = Foo)]
|
||||
[1]:[UIdentifier (Identifier (Foo))]
|
||||
[1]:[UExpressionList (class_body)]
|
||||
[2]:[UClass (name = Bar), UAnnotationMethod (name = Bar)]
|
||||
[2]:[UClass (name = Bar), UMethod (name = Bar)]
|
||||
[1]:[UIdentifier (Identifier (Bar))]
|
||||
[1]:[UAnnotationMethod (name = Bar)]
|
||||
[1]:[UMethod (name = Bar)]
|
||||
[1]:[UDeclarationsExpression]
|
||||
[3]:[UParameter (name = a), UField (name = a), UAnnotationMethod (name = getA)]
|
||||
[3]:[UParameter (name = a), UField (name = a), UMethod (name = getA)]
|
||||
[1]:[UIdentifier (Identifier (a))]
|
||||
[1]:[UTypeReferenceExpression (name = int)]
|
||||
[1]:[USimpleNameReferenceExpression (identifier = Int)]
|
||||
[1]:[UIdentifier (Identifier (Int))]
|
||||
[3]:[UParameter (name = b), UField (name = b), UAnnotationMethod (name = getB)]
|
||||
[3]:[UParameter (name = b), UField (name = b), UMethod (name = getB)]
|
||||
[1]:[UIdentifier (Identifier (b))]
|
||||
[1]:[UTypeReferenceExpression (name = int)]
|
||||
[1]:[USimpleNameReferenceExpression (identifier = Int)]
|
||||
[1]:[UIdentifier (Identifier (Int))]
|
||||
[1]:[UExpressionList (class_body)]
|
||||
[1]:[UAnnotationMethod (name = getAPlusB)]
|
||||
[1]:[UMethod (name = getAPlusB)]
|
||||
[1]:[UIdentifier (Identifier (getAPlusB))]
|
||||
[1]:[UDeclarationsExpression]
|
||||
[1]:[UBinaryExpression (operator = +)]
|
||||
@@ -30,7 +30,7 @@
|
||||
[1]:[UClass (name = Baz)]
|
||||
[1]:[UIdentifier (Identifier (Baz))]
|
||||
[1]:[UExpressionList (class_body)]
|
||||
[1]:[UAnnotationMethod (name = doNothing)]
|
||||
[1]:[UMethod (name = doNothing)]
|
||||
[1]:[UIdentifier (Identifier (doNothing))]
|
||||
[1]:[UDeclarationsExpression]
|
||||
[1]:[USimpleNameReferenceExpression (identifier = Unit)]
|
||||
|
||||
+7
-7
@@ -1,27 +1,27 @@
|
||||
UFile (package = )
|
||||
UClass (name = Foo)
|
||||
UAnnotationMethod (name = Foo)
|
||||
UMethod (name = Foo)
|
||||
UClass (name = Bar)
|
||||
UField (name = a)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UField (name = b)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UAnnotationMethod (name = getAPlusB)
|
||||
UMethod (name = getAPlusB)
|
||||
UBlockExpression
|
||||
UReturnExpression
|
||||
UBinaryExpression (operator = +)
|
||||
USimpleNameReferenceExpression (identifier = a)
|
||||
USimpleNameReferenceExpression (identifier = b)
|
||||
UAnnotationMethod (name = getA)
|
||||
UAnnotationMethod (name = getB)
|
||||
UAnnotationMethod (name = Bar)
|
||||
UMethod (name = getA)
|
||||
UMethod (name = getB)
|
||||
UMethod (name = Bar)
|
||||
UParameter (name = a)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UParameter (name = b)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UClass (name = Baz)
|
||||
UAnnotationMethod (name = doNothing)
|
||||
UMethod (name = doNothing)
|
||||
UBlockExpression
|
||||
UReturnExpression
|
||||
USimpleNameReferenceExpression (identifier = Unit)
|
||||
UAnnotationMethod (name = Baz)
|
||||
UMethod (name = Baz)
|
||||
|
||||
+3
-3
@@ -1,9 +1,9 @@
|
||||
UFile (package = )
|
||||
UClass (name = Foo)
|
||||
UClass (name = Bar)
|
||||
UAnnotationMethod (name = Bar)
|
||||
UMethod (name = Bar)
|
||||
UField (name = a)
|
||||
UField (name = b)
|
||||
UAnnotationMethod (name = getAPlusB)
|
||||
UMethod (name = getAPlusB)
|
||||
UClass (name = Baz)
|
||||
UAnnotationMethod (name = doNothing)
|
||||
UMethod (name = doNothing)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
UFile (package = ) [public final class InnerNonFixedTypeVariableKt {...]
|
||||
UClass (name = InnerNonFixedTypeVariableKt) [public final class InnerNonFixedTypeVariableKt {...}]
|
||||
UAnnotationMethod (name = test) [public static final fun test(@org.jetbrains.annotations.NotNull list: java.util.List<? extends java.lang.Object>) : void {...}]
|
||||
UMethod (name = test) [public static final fun test(@org.jetbrains.annotations.NotNull list: java.util.List<? extends java.lang.Object>) : void {...}]
|
||||
UParameter (name = list) [@org.jetbrains.annotations.NotNull var list: java.util.List<? extends java.lang.Object>]
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull) [@org.jetbrains.annotations.NotNull]
|
||||
UBlockExpression [{...}] : PsiType:<ErrorType>
|
||||
@@ -19,4 +19,4 @@ UFile (package = ) [public final class InnerNonFixedTypeVariableKt {...]
|
||||
ULambdaExpression [{ ...}] : PsiType:Function0<? extends Unit>
|
||||
UBlockExpression [{...}]
|
||||
UClass (name = Some) [public final class Some {...}]
|
||||
UAnnotationMethod (name = Some) [public fun Some() = UastEmptyExpression]
|
||||
UMethod (name = Some) [public fun Some() = UastEmptyExpression]
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
UFile (package = org.jetbrains.uast.kotlin)
|
||||
UClass (name = LambdaReturnKt)
|
||||
UAnnotationMethod (name = foo)
|
||||
UMethod (name = foo)
|
||||
UBlockExpression
|
||||
UDeclarationsExpression
|
||||
ULocalVariable (name = lam1)
|
||||
@@ -130,7 +130,7 @@ UFile (package = org.jetbrains.uast.kotlin)
|
||||
UIdentifier (Identifier (listOf))
|
||||
USimpleNameReferenceExpression (identifier = listOf, resolvesTo = null)
|
||||
ULiteralExpression (value = 1)
|
||||
UAnnotationMethod (name = bar)
|
||||
UMethod (name = bar)
|
||||
UParameter (name = lmbd)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UBlockExpression
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
UFile (package = )
|
||||
UImportStatement (isOnDemand = false)
|
||||
UClass (name = LambdasKt)
|
||||
UAnnotationMethod (name = foo)
|
||||
UMethod (name = foo)
|
||||
UBlockExpression
|
||||
UQualifiedReferenceExpression
|
||||
UQualifiedReferenceExpression
|
||||
@@ -20,7 +20,7 @@ UFile (package = )
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))
|
||||
UIdentifier (Identifier (isEmpty))
|
||||
USimpleNameReferenceExpression (identifier = isEmpty, resolvesTo = null)
|
||||
UAnnotationMethod (name = doSelectItem)
|
||||
UMethod (name = doSelectItem)
|
||||
UParameter (name = selectItemFunction)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UBlockExpression
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[2]:[UFile (package = ), UClass (name = LocalDeclarationsKt)]
|
||||
[1]:[UAnnotationMethod (name = foo)]
|
||||
[1]:[UMethod (name = foo)]
|
||||
[1]:[UIdentifier (Identifier (foo))]
|
||||
[1]:[UDeclarationsExpression]
|
||||
[1]:[UTypeReferenceExpression (name = boolean)]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
foo -> UAnnotationMethod (name = foo)
|
||||
foo -> UMethod (name = foo)
|
||||
Boolean -> USimpleNameReferenceExpression (identifier = Boolean)
|
||||
Local -> UClass (name = Local)
|
||||
bar -> ULambdaExpression
|
||||
|
||||
+3
-3
@@ -1,10 +1,10 @@
|
||||
UFile (package = )
|
||||
UClass (name = LocalDeclarationsKt)
|
||||
UAnnotationMethod (name = foo)
|
||||
UMethod (name = foo)
|
||||
UBlockExpression
|
||||
UDeclarationsExpression
|
||||
UClass (name = Local)
|
||||
UAnnotationMethod (name = LocalDeclarationsKt$foo$Local)
|
||||
UMethod (name = LocalDeclarationsKt$foo$Local)
|
||||
UDeclarationsExpression
|
||||
UVariable (name = bar)
|
||||
ULambdaExpression
|
||||
@@ -32,7 +32,7 @@ UFile (package = )
|
||||
UClass (name = LocalObject)
|
||||
UField (name = INSTANCE)
|
||||
UAnnotation (fqName = null)
|
||||
UAnnotationMethod (name = LocalDeclarationsKt$foo$LocalObject)
|
||||
UMethod (name = LocalDeclarationsKt$foo$LocalObject)
|
||||
UReturnExpression
|
||||
UBinaryExpression (operator = ==)
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
UFile (package = ) [public final class LocalDeclarationsKt {...]
|
||||
UClass (name = LocalDeclarationsKt) [public final class LocalDeclarationsKt {...}]
|
||||
UAnnotationMethod (name = foo) [public static final fun foo() : boolean {...}]
|
||||
UMethod (name = foo) [public static final fun foo() : boolean {...}]
|
||||
UBlockExpression [{...}] : PsiType:Void
|
||||
UDeclarationsExpression [public static final class Local {...}]
|
||||
UClass (name = Local) [public static final class Local {...}]
|
||||
UAnnotationMethod (name = LocalDeclarationsKt$foo$Local) [public fun LocalDeclarationsKt$foo$Local() = UastEmptyExpression]
|
||||
UMethod (name = LocalDeclarationsKt$foo$Local) [public fun LocalDeclarationsKt$foo$Local() = UastEmptyExpression]
|
||||
UDeclarationsExpression [var bar: <ErrorType> = fun () {...}]
|
||||
UVariable (name = bar) [var bar: <ErrorType> = fun () {...}]
|
||||
ULambdaExpression [fun () {...}]
|
||||
@@ -32,7 +32,7 @@ UFile (package = ) [public final class LocalDeclarationsKt {...]
|
||||
UClass (name = LocalObject) [public static final class LocalObject {...}]
|
||||
UField (name = INSTANCE) [@null public static final var INSTANCE: LocalDeclarationsKt.foo.LocalObject]
|
||||
UAnnotation (fqName = null) [@null]
|
||||
UAnnotationMethod (name = LocalDeclarationsKt$foo$LocalObject) [private fun LocalDeclarationsKt$foo$LocalObject() = UastEmptyExpression]
|
||||
UMethod (name = LocalDeclarationsKt$foo$LocalObject) [private fun LocalDeclarationsKt$foo$LocalObject() = UastEmptyExpression]
|
||||
UReturnExpression [return bar() == <init>()] : PsiType:Void
|
||||
UBinaryExpression (operator = ==) [bar() == <init>()] : PsiType:boolean
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0)) [bar()] : PsiType:<ErrorType>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
UFile (package = ) [public final class LocalDeclarationsKt {...]
|
||||
UClass (name = LocalDeclarationsKt) [public final class LocalDeclarationsKt {...}]
|
||||
UAnnotationMethod (name = foo) [public static final fun foo() : boolean {...}]
|
||||
UMethod (name = foo) [public static final fun foo() : boolean {...}]
|
||||
UBlockExpression [{...}] = Nothing
|
||||
UDeclarationsExpression [public static final class Local {...}] = Undetermined
|
||||
UClass (name = Local) [public static final class Local {...}]
|
||||
UAnnotationMethod (name = LocalDeclarationsKt$foo$Local) [public fun LocalDeclarationsKt$foo$Local() = UastEmptyExpression]
|
||||
UMethod (name = LocalDeclarationsKt$foo$Local) [public fun LocalDeclarationsKt$foo$Local() = UastEmptyExpression]
|
||||
UDeclarationsExpression [var bar: <ErrorType> = fun () {...}] = Undetermined
|
||||
UVariable (name = bar) [var bar: <ErrorType> = fun () {...}]
|
||||
ULambdaExpression [fun () {...}] = Undetermined
|
||||
@@ -32,7 +32,7 @@ UFile (package = ) [public final class LocalDeclarationsKt {...]
|
||||
UClass (name = LocalObject) [public static final class LocalObject {...}]
|
||||
UField (name = INSTANCE) [@null public static final var INSTANCE: LocalDeclarationsKt.foo.LocalObject]
|
||||
UAnnotation (fqName = null) [@null]
|
||||
UAnnotationMethod (name = LocalDeclarationsKt$foo$LocalObject) [private fun LocalDeclarationsKt$foo$LocalObject() = UastEmptyExpression]
|
||||
UMethod (name = LocalDeclarationsKt$foo$LocalObject) [private fun LocalDeclarationsKt$foo$LocalObject() = UastEmptyExpression]
|
||||
UReturnExpression [return bar() == <init>()] = Nothing
|
||||
UBinaryExpression (operator = ==) [bar() == <init>()] = Undetermined
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0)) [bar()] = external bar()()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
UFile (package = )
|
||||
UClass (name = LocalVariableWithAnnotationKt)
|
||||
UAnnotationMethod (name = foo)
|
||||
UMethod (name = foo)
|
||||
UBlockExpression
|
||||
UDeclarationsExpression
|
||||
ULocalVariable (name = bar)
|
||||
|
||||
@@ -9,11 +9,11 @@
|
||||
[1]:[UIdentifier (Identifier (MyAnnotation4))]
|
||||
[1]:[UClass (name = MyAnnotation5)]
|
||||
[1]:[UIdentifier (Identifier (MyAnnotation5))]
|
||||
[2]:[UClass (name = Test1), UAnnotationMethod (name = Test1)]
|
||||
[2]:[UClass (name = Test1), UMethod (name = Test1)]
|
||||
[1]:[UIdentifier (Identifier (Test1))]
|
||||
[1]:[UAnnotationMethod (name = Test1)]
|
||||
[1]:[UMethod (name = Test1)]
|
||||
[1]:[UDeclarationsExpression]
|
||||
[4]:[UParameter (name = bar), UField (name = bar), UAnnotationMethod (name = getBar), UAnnotationMethod (name = setBar)]
|
||||
[4]:[UParameter (name = bar), UField (name = bar), UMethod (name = getBar), UMethod (name = setBar)]
|
||||
[1]:[UAnnotation (fqName = MyAnnotation)]
|
||||
[1]:[[!] UnknownKotlinExpression (CONSTRUCTOR_CALLEE)]
|
||||
[1]:[UTypeReferenceExpression (name = MyAnnotation)]
|
||||
@@ -23,11 +23,11 @@
|
||||
[1]:[UTypeReferenceExpression (name = int)]
|
||||
[1]:[USimpleNameReferenceExpression (identifier = Int)]
|
||||
[1]:[UIdentifier (Identifier (Int))]
|
||||
[2]:[UClass (name = Test2), UAnnotationMethod (name = Test2)]
|
||||
[2]:[UClass (name = Test2), UMethod (name = Test2)]
|
||||
[1]:[UIdentifier (Identifier (Test2))]
|
||||
[1]:[UAnnotationMethod (name = Test2)]
|
||||
[1]:[UMethod (name = Test2)]
|
||||
[1]:[UDeclarationsExpression]
|
||||
[4]:[UParameter (name = bar), UField (name = bar), UAnnotationMethod (name = getBar), UAnnotationMethod (name = setBar)]
|
||||
[4]:[UParameter (name = bar), UField (name = bar), UMethod (name = getBar), UMethod (name = setBar)]
|
||||
[1]:[UAnnotation (fqName = MyAnnotation)]
|
||||
[1]:[[!] UnknownKotlinExpression (CONSTRUCTOR_CALLEE)]
|
||||
[1]:[UTypeReferenceExpression (name = MyAnnotation)]
|
||||
|
||||
@@ -7,11 +7,11 @@ UFile (package = )
|
||||
UClass (name = Test1)
|
||||
UField (name = bar)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UAnnotationMethod (name = getBar)
|
||||
UAnnotationMethod (name = setBar)
|
||||
UMethod (name = getBar)
|
||||
UMethod (name = setBar)
|
||||
UParameter (name = p)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UAnnotationMethod (name = Test1)
|
||||
UMethod (name = Test1)
|
||||
UParameter (name = bar)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UAnnotation (fqName = MyAnnotation)
|
||||
@@ -19,13 +19,13 @@ UFile (package = )
|
||||
UField (name = bar)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UAnnotation (fqName = MyAnnotation5)
|
||||
UAnnotationMethod (name = getBar)
|
||||
UMethod (name = getBar)
|
||||
UAnnotation (fqName = MyAnnotation)
|
||||
UAnnotationMethod (name = setBar)
|
||||
UMethod (name = setBar)
|
||||
UAnnotation (fqName = MyAnnotation2)
|
||||
UParameter (name = p)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UAnnotation (fqName = MyAnnotation3)
|
||||
UAnnotationMethod (name = Test2)
|
||||
UMethod (name = Test2)
|
||||
UParameter (name = bar)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
|
||||
+9
-9
@@ -1,12 +1,12 @@
|
||||
UFile (package = )
|
||||
UClass (name = ParametersDisorderKt)
|
||||
UAnnotationMethod (name = global)
|
||||
UMethod (name = global)
|
||||
UParameter (name = a)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UParameter (name = b)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UBlockExpression
|
||||
UAnnotationMethod (name = withDefault)
|
||||
UMethod (name = withDefault)
|
||||
UParameter (name = c)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
ULiteralExpression (value = 1)
|
||||
@@ -14,7 +14,7 @@ UFile (package = )
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
ULiteralExpression (value = "aaa")
|
||||
UBlockExpression
|
||||
UAnnotationMethod (name = withReceiver)
|
||||
UMethod (name = withReceiver)
|
||||
UParameter (name = $this$withReceiver)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UParameter (name = a)
|
||||
@@ -22,7 +22,7 @@ UFile (package = )
|
||||
UParameter (name = b)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UBlockExpression
|
||||
UAnnotationMethod (name = call)
|
||||
UMethod (name = call)
|
||||
UBlockExpression
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 2))
|
||||
UIdentifier (Identifier (global))
|
||||
@@ -138,15 +138,15 @@ UFile (package = )
|
||||
USimpleNameReferenceExpression (identifier = with2Receivers, resolvesTo = null)
|
||||
ULiteralExpression (value = 8)
|
||||
ULiteralExpression (value = 7.0)
|
||||
UAnnotationMethod (name = objectLiteral)
|
||||
UMethod (name = objectLiteral)
|
||||
UBlockExpression
|
||||
UObjectLiteralExpression
|
||||
ULiteralExpression (value = 1)
|
||||
ULiteralExpression (value = "foo")
|
||||
UClass (name = null)
|
||||
UAnnotationMethod (name = ParametersDisorderKt$objectLiteral$1)
|
||||
UMethod (name = ParametersDisorderKt$objectLiteral$1)
|
||||
UClass (name = A)
|
||||
UAnnotationMethod (name = with2Receivers)
|
||||
UMethod (name = with2Receivers)
|
||||
UParameter (name = $this$with2Receivers)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UParameter (name = a)
|
||||
@@ -154,9 +154,9 @@ UFile (package = )
|
||||
UParameter (name = b)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UBlockExpression
|
||||
UAnnotationMethod (name = A)
|
||||
UMethod (name = A)
|
||||
UClass (name = Parent)
|
||||
UAnnotationMethod (name = Parent)
|
||||
UMethod (name = Parent)
|
||||
UParameter (name = a)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UParameter (name = b)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
UFile (package = )
|
||||
UClass (name = ParametersWithDefaultValuesKt)
|
||||
UAnnotationMethod (name = foo)
|
||||
UMethod (name = foo)
|
||||
UParameter (name = a)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UParameter (name = b)
|
||||
|
||||
+4
-4
@@ -1,6 +1,6 @@
|
||||
UFile (package = )
|
||||
UClass (name = PropertyTest)
|
||||
UAnnotationMethod (name = getStringRepresentation)
|
||||
UMethod (name = getStringRepresentation)
|
||||
UBlockExpression
|
||||
UReturnExpression
|
||||
UQualifiedReferenceExpression
|
||||
@@ -8,7 +8,7 @@ UFile (package = )
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))
|
||||
UIdentifier (Identifier (toString))
|
||||
USimpleNameReferenceExpression (identifier = toString, resolvesTo = null)
|
||||
UAnnotationMethod (name = setStringRepresentation)
|
||||
UMethod (name = setStringRepresentation)
|
||||
UParameter (name = value)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UBlockExpression
|
||||
@@ -16,8 +16,8 @@ UFile (package = )
|
||||
UIdentifier (Identifier (setDataFromString))
|
||||
USimpleNameReferenceExpression (identifier = setDataFromString, resolvesTo = null)
|
||||
USimpleNameReferenceExpression (identifier = value)
|
||||
UAnnotationMethod (name = setDataFromString)
|
||||
UMethod (name = setDataFromString)
|
||||
UParameter (name = data)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UBlockExpression
|
||||
UAnnotationMethod (name = PropertyTest)
|
||||
UMethod (name = PropertyTest)
|
||||
|
||||
+3
-3
@@ -21,8 +21,8 @@ UFile (package = )
|
||||
UBinaryExpression (operator = +)
|
||||
ULiteralExpression (value = 1)
|
||||
ULiteralExpression (value = 1)
|
||||
UAnnotationMethod (name = getSdCardPath)
|
||||
UAnnotationMethod (name = localPropertyTest)
|
||||
UMethod (name = getSdCardPath)
|
||||
UMethod (name = localPropertyTest)
|
||||
UBlockExpression
|
||||
UDeclarationsExpression
|
||||
ULocalVariable (name = sdCardPathLocal)
|
||||
@@ -33,4 +33,4 @@ UFile (package = )
|
||||
UBlockExpression
|
||||
UReturnExpression
|
||||
ULiteralExpression (value = "/sdcard")
|
||||
UAnnotationMethod (name = getAnnotatedDelegate)
|
||||
UMethod (name = getAnnotatedDelegate)
|
||||
|
||||
@@ -3,15 +3,15 @@ UFile (package = )
|
||||
UField (name = withSetter)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
ULiteralExpression (value = "/sdcard")
|
||||
UAnnotationMethod (name = getWithSetter)
|
||||
UMethod (name = getWithSetter)
|
||||
UBlockExpression
|
||||
UReturnExpression
|
||||
USimpleNameReferenceExpression (identifier = field)
|
||||
UAnnotationMethod (name = setWithSetter)
|
||||
UMethod (name = setWithSetter)
|
||||
UParameter (name = p)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UBlockExpression
|
||||
UBinaryExpression (operator = =)
|
||||
USimpleNameReferenceExpression (identifier = field)
|
||||
USimpleNameReferenceExpression (identifier = p)
|
||||
UAnnotationMethod (name = TestPropertyInitializer)
|
||||
UMethod (name = TestPropertyInitializer)
|
||||
|
||||
@@ -3,10 +3,10 @@ UFile (package = )
|
||||
UField (name = withoutSetter)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
ULiteralExpression (value = "/sdcard")
|
||||
UAnnotationMethod (name = getWithoutSetter)
|
||||
UMethod (name = getWithoutSetter)
|
||||
UBlockExpression
|
||||
UReturnExpression
|
||||
USimpleNameReferenceExpression (identifier = field)
|
||||
UAnnotationMethod (name = setWithoutSetter)
|
||||
UMethod (name = setWithoutSetter)
|
||||
UParameter (name = p)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
|
||||
@@ -7,17 +7,17 @@ UFile (package = )
|
||||
UField (name = prop3)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
ULiteralExpression (value = 0)
|
||||
UAnnotationMethod (name = getProp1)
|
||||
UAnnotationMethod (name = getProp2)
|
||||
UMethod (name = getProp1)
|
||||
UMethod (name = getProp2)
|
||||
UAnnotation (fqName = TestAnnotation)
|
||||
UBlockExpression
|
||||
UReturnExpression
|
||||
ULiteralExpression (value = 0)
|
||||
UAnnotationMethod (name = getProp3)
|
||||
UMethod (name = getProp3)
|
||||
UBlockExpression
|
||||
UReturnExpression
|
||||
ULiteralExpression (value = 0)
|
||||
UAnnotationMethod (name = setProp3)
|
||||
UMethod (name = setProp3)
|
||||
UAnnotation (fqName = TestAnnotation)
|
||||
UParameter (name = value)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
UFile (package = A.B.C)
|
||||
UClass (name = Foo)
|
||||
UAnnotationMethod (name = Foo)
|
||||
UMethod (name = Foo)
|
||||
UClass (name = Bar)
|
||||
UAnnotationMethod (name = getFoo)
|
||||
UMethod (name = getFoo)
|
||||
UBlockExpression
|
||||
UReturnExpression
|
||||
UQualifiedReferenceExpression
|
||||
@@ -14,4 +14,4 @@ UFile (package = A.B.C)
|
||||
UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 0))
|
||||
UIdentifier (Identifier (Foo))
|
||||
USimpleNameReferenceExpression (identifier = <init>, resolvesTo = Foo)
|
||||
UAnnotationMethod (name = Bar)
|
||||
UMethod (name = Bar)
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
UFile (package = )
|
||||
UClass (name = ReceiverFunKt)
|
||||
UAnnotationMethod (name = foo)
|
||||
UMethod (name = foo)
|
||||
UParameter (name = $this$foo)
|
||||
UAnnotation (fqName = MyReceiverAnnotation)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
|
||||
+3
-3
@@ -3,11 +3,11 @@ UFile (package = )
|
||||
UField (name = property)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
ULiteralExpression (value = "Mary")
|
||||
UAnnotationMethod (name = method)
|
||||
UMethod (name = method)
|
||||
UBlockExpression
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 1))
|
||||
UIdentifier (Identifier (println))
|
||||
USimpleNameReferenceExpression (identifier = println, resolvesTo = null)
|
||||
ULiteralExpression (value = "Hello, world!")
|
||||
UAnnotationMethod (name = getProperty)
|
||||
UAnnotationMethod (name = Simple)
|
||||
UMethod (name = getProperty)
|
||||
UMethod (name = Simple)
|
||||
|
||||
+3
-3
@@ -3,11 +3,11 @@ UFile (package = ) [public final class Simple {...]
|
||||
UField (name = property) [@org.jetbrains.annotations.NotNull private final var property: java.lang.String = "Mary"]
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull) [@org.jetbrains.annotations.NotNull]
|
||||
ULiteralExpression (value = "Mary") ["Mary"] = "Mary"
|
||||
UAnnotationMethod (name = method) [public final fun method() : void {...}]
|
||||
UMethod (name = method) [public final fun method() : void {...}]
|
||||
UBlockExpression [{...}] = external println("Hello, world!")("Hello, world!")
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 1)) [println("Hello, world!")] = external println("Hello, world!")("Hello, world!")
|
||||
UIdentifier (Identifier (println)) [UIdentifier (Identifier (println))]
|
||||
USimpleNameReferenceExpression (identifier = println, resolvesTo = null) [println] = external println("Hello, world!")("Hello, world!")
|
||||
ULiteralExpression (value = "Hello, world!") ["Hello, world!"] = "Hello, world!"
|
||||
UAnnotationMethod (name = getProperty) [public final fun getProperty() : java.lang.String = UastEmptyExpression]
|
||||
UAnnotationMethod (name = Simple) [public fun Simple() = UastEmptyExpression]
|
||||
UMethod (name = getProperty) [public final fun getProperty() : java.lang.String = UastEmptyExpression]
|
||||
UMethod (name = Simple) [public fun Simple() = UastEmptyExpression]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
SimpleAnnotated -> UClass (name = SimpleAnnotated)
|
||||
Suppress -> UAnnotation (fqName = kotlin.Suppress)
|
||||
method -> UAnnotationMethod (name = method)
|
||||
method -> UMethod (name = method)
|
||||
println -> UCallExpression (kind = UastCallKind(name='method_call'), argCount = 1))
|
||||
kotlin -> USimpleNameReferenceExpression (identifier = kotlin)
|
||||
SinceKotlin -> UAnnotation (fqName = kotlin.SinceKotlin)
|
||||
|
||||
+9
-9
@@ -1,6 +1,6 @@
|
||||
UFile (package = )
|
||||
UClass (name = SimpleScript)
|
||||
UAnnotationMethod (name = getBarOrNull)
|
||||
UMethod (name = getBarOrNull)
|
||||
UParameter (name = flag)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UBlockExpression
|
||||
@@ -12,10 +12,10 @@ UFile (package = )
|
||||
USimpleNameReferenceExpression (identifier = <init>, resolvesTo = Bar)
|
||||
ULiteralExpression (value = 42)
|
||||
ULiteralExpression (value = null)
|
||||
UAnnotationMethod (name = main)
|
||||
UMethod (name = main)
|
||||
UParameter (name = p)
|
||||
UAnnotation (fqName = null)
|
||||
UAnnotationMethod (name = SimpleScript)
|
||||
UMethod (name = SimpleScript)
|
||||
UParameter (name = p)
|
||||
UAnnotation (fqName = null)
|
||||
UBlockExpression
|
||||
@@ -37,18 +37,18 @@ UFile (package = )
|
||||
ULiteralExpression (value = 0)
|
||||
UField (name = a)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UAnnotationMethod (name = getB)
|
||||
UAnnotationMethod (name = getAPlusB)
|
||||
UMethod (name = getB)
|
||||
UMethod (name = getAPlusB)
|
||||
UBlockExpression
|
||||
UReturnExpression
|
||||
UBinaryExpression (operator = +)
|
||||
USimpleNameReferenceExpression (identifier = a)
|
||||
USimpleNameReferenceExpression (identifier = b)
|
||||
UAnnotationMethod (name = getA)
|
||||
UAnnotationMethod (name = Bar)
|
||||
UMethod (name = getA)
|
||||
UMethod (name = Bar)
|
||||
UParameter (name = a)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UClass (name = Baz)
|
||||
UAnnotationMethod (name = doSomething)
|
||||
UMethod (name = doSomething)
|
||||
UBlockExpression
|
||||
UAnnotationMethod (name = Baz)
|
||||
UMethod (name = Baz)
|
||||
|
||||
+4
-4
@@ -17,7 +17,7 @@ UFile (package = )
|
||||
USimpleNameReferenceExpression (identifier = bar)
|
||||
ULiteralExpression (value = " ")
|
||||
USimpleNameReferenceExpression (identifier = baz)
|
||||
UAnnotationMethod (name = getFoo)
|
||||
UAnnotationMethod (name = getBar)
|
||||
UAnnotationMethod (name = getBaz)
|
||||
UAnnotationMethod (name = getFoobarbaz)
|
||||
UMethod (name = getFoo)
|
||||
UMethod (name = getBar)
|
||||
UMethod (name = getBaz)
|
||||
UMethod (name = getFoobarbaz)
|
||||
|
||||
+4
-4
@@ -17,7 +17,7 @@ UFile (package = ) [public final class StringTemplateKt {...]
|
||||
USimpleNameReferenceExpression (identifier = bar) [bar] : PsiType:String
|
||||
ULiteralExpression (value = " ") [" "] : PsiType:String
|
||||
USimpleNameReferenceExpression (identifier = baz) [baz] : PsiType:String
|
||||
UAnnotationMethod (name = getFoo) [public static final fun getFoo() : java.lang.String = UastEmptyExpression]
|
||||
UAnnotationMethod (name = getBar) [public static final fun getBar() : java.lang.String = UastEmptyExpression]
|
||||
UAnnotationMethod (name = getBaz) [public static final fun getBaz() : java.lang.String = UastEmptyExpression]
|
||||
UAnnotationMethod (name = getFoobarbaz) [public static final fun getFoobarbaz() : java.lang.String = UastEmptyExpression]
|
||||
UMethod (name = getFoo) [public static final fun getFoo() : java.lang.String = UastEmptyExpression]
|
||||
UMethod (name = getBar) [public static final fun getBar() : java.lang.String = UastEmptyExpression]
|
||||
UMethod (name = getBaz) [public static final fun getBaz() : java.lang.String = UastEmptyExpression]
|
||||
UMethod (name = getFoobarbaz) [public static final fun getFoobarbaz() : java.lang.String = UastEmptyExpression]
|
||||
|
||||
@@ -38,19 +38,19 @@ UFile (package = )
|
||||
USimpleNameReferenceExpression (identifier = repeat, resolvesTo = null)
|
||||
ULiteralExpression (value = 4)
|
||||
ULiteralExpression (value = " z")
|
||||
UAnnotationMethod (name = getMuchRecur)
|
||||
UAnnotationMethod (name = getCase4)
|
||||
UAnnotationMethod (name = getCase5)
|
||||
UAnnotationMethod (name = getLiteralInLiteral)
|
||||
UAnnotationMethod (name = getLiteralInLiteral2)
|
||||
UAnnotationMethod (name = simpleForTemplate)
|
||||
UMethod (name = getMuchRecur)
|
||||
UMethod (name = getCase4)
|
||||
UMethod (name = getCase5)
|
||||
UMethod (name = getLiteralInLiteral)
|
||||
UMethod (name = getLiteralInLiteral2)
|
||||
UMethod (name = simpleForTemplate)
|
||||
UParameter (name = i)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
ULiteralExpression (value = 0)
|
||||
UBlockExpression
|
||||
UReturnExpression
|
||||
USimpleNameReferenceExpression (identifier = i)
|
||||
UAnnotationMethod (name = foo)
|
||||
UMethod (name = foo)
|
||||
UBlockExpression
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 1))
|
||||
UIdentifier (Identifier (println))
|
||||
|
||||
@@ -38,19 +38,19 @@ UFile (package = ) [public final class StringTemplateComplexKt {...]
|
||||
USimpleNameReferenceExpression (identifier = repeat, resolvesTo = null) [repeat] : PsiType:String
|
||||
ULiteralExpression (value = 4) [4] : PsiType:int
|
||||
ULiteralExpression (value = " z") [" z"] : PsiType:String
|
||||
UAnnotationMethod (name = getMuchRecur) [public static final fun getMuchRecur() : java.lang.String = UastEmptyExpression]
|
||||
UAnnotationMethod (name = getCase4) [public static final fun getCase4() : java.lang.String = UastEmptyExpression]
|
||||
UAnnotationMethod (name = getCase5) [public static final fun getCase5() : java.lang.String = UastEmptyExpression]
|
||||
UAnnotationMethod (name = getLiteralInLiteral) [public static final fun getLiteralInLiteral() : java.lang.String = UastEmptyExpression]
|
||||
UAnnotationMethod (name = getLiteralInLiteral2) [public static final fun getLiteralInLiteral2() : java.lang.String = UastEmptyExpression]
|
||||
UAnnotationMethod (name = simpleForTemplate) [public static final fun simpleForTemplate(@org.jetbrains.annotations.NotNull i: int) : java.lang.String {...}]
|
||||
UMethod (name = getMuchRecur) [public static final fun getMuchRecur() : java.lang.String = UastEmptyExpression]
|
||||
UMethod (name = getCase4) [public static final fun getCase4() : java.lang.String = UastEmptyExpression]
|
||||
UMethod (name = getCase5) [public static final fun getCase5() : java.lang.String = UastEmptyExpression]
|
||||
UMethod (name = getLiteralInLiteral) [public static final fun getLiteralInLiteral() : java.lang.String = UastEmptyExpression]
|
||||
UMethod (name = getLiteralInLiteral2) [public static final fun getLiteralInLiteral2() : java.lang.String = UastEmptyExpression]
|
||||
UMethod (name = simpleForTemplate) [public static final fun simpleForTemplate(@org.jetbrains.annotations.NotNull i: int) : java.lang.String {...}]
|
||||
UParameter (name = i) [@org.jetbrains.annotations.NotNull var i: int = 0]
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull) [@org.jetbrains.annotations.NotNull]
|
||||
ULiteralExpression (value = 0) [0] : PsiType:int
|
||||
UBlockExpression [{...}]
|
||||
UReturnExpression [return i]
|
||||
USimpleNameReferenceExpression (identifier = i) [i] : PsiType:int
|
||||
UAnnotationMethod (name = foo) [public static final fun foo() : void {...}]
|
||||
UMethod (name = foo) [public static final fun foo() : void {...}]
|
||||
UBlockExpression [{...}] : PsiType:void
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 1)) [println(baz)] : PsiType:void
|
||||
UIdentifier (Identifier (println)) [UIdentifier (Identifier (println))]
|
||||
|
||||
+7
-7
@@ -45,12 +45,12 @@ UFile (package = )
|
||||
USimpleNameReferenceExpression (identifier = repeat, resolvesTo = null)
|
||||
ULiteralExpression (value = 4)
|
||||
ULiteralExpression (value = " z")
|
||||
UAnnotationMethod (name = getMuchRecur)
|
||||
UAnnotationMethod (name = getCase4)
|
||||
UAnnotationMethod (name = getCase5)
|
||||
UAnnotationMethod (name = getLiteralInLiteral)
|
||||
UAnnotationMethod (name = getLiteralInLiteral2)
|
||||
UAnnotationMethod (name = simpleForTemplate)
|
||||
UMethod (name = getMuchRecur)
|
||||
UMethod (name = getCase4)
|
||||
UMethod (name = getCase5)
|
||||
UMethod (name = getLiteralInLiteral)
|
||||
UMethod (name = getLiteralInLiteral2)
|
||||
UMethod (name = simpleForTemplate)
|
||||
UParameter (name = i)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
ULiteralExpression (value = 0)
|
||||
@@ -58,7 +58,7 @@ UFile (package = )
|
||||
UReturnExpression
|
||||
UPolyadicExpression (operator = +)
|
||||
USimpleNameReferenceExpression (identifier = i)
|
||||
UAnnotationMethod (name = foo)
|
||||
UMethod (name = foo)
|
||||
UBlockExpression
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 1))
|
||||
UIdentifier (Identifier (println))
|
||||
|
||||
+7
-7
@@ -1,13 +1,13 @@
|
||||
A -> UClass (name = A)
|
||||
str -> UParameter (name = str)
|
||||
String -> USimpleNameReferenceExpression (identifier = String)
|
||||
constructor -> UAnnotationMethod (name = A)
|
||||
constructor -> UMethod (name = A)
|
||||
i -> UParameter (name = i)
|
||||
Int -> USimpleNameReferenceExpression (identifier = Int)
|
||||
this -> UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 1))
|
||||
i -> USimpleNameReferenceExpression (identifier = i)
|
||||
toString -> UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))
|
||||
foo -> UAnnotationMethod (name = foo)
|
||||
foo -> UMethod (name = foo)
|
||||
a -> UParameter (name = a)
|
||||
Long -> USimpleNameReferenceExpression (identifier = Long)
|
||||
B -> UClass (name = B)
|
||||
@@ -17,18 +17,18 @@ A -> UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 1
|
||||
param -> USimpleNameReferenceExpression (identifier = param)
|
||||
C -> UClass (name = C)
|
||||
A -> USimpleNameReferenceExpression (identifier = A)
|
||||
constructor -> UAnnotationMethod (name = C)
|
||||
constructor -> UMethod (name = C)
|
||||
p -> UParameter (name = p)
|
||||
String -> USimpleNameReferenceExpression (identifier = String)
|
||||
super -> UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 1))
|
||||
p -> USimpleNameReferenceExpression (identifier = p)
|
||||
constructor -> UAnnotationMethod (name = C)
|
||||
constructor -> UMethod (name = C)
|
||||
i -> UParameter (name = i)
|
||||
Int -> USimpleNameReferenceExpression (identifier = Int)
|
||||
super -> UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 1))
|
||||
i -> USimpleNameReferenceExpression (identifier = i)
|
||||
println -> UCallExpression (kind = UastCallKind(name='method_call'), argCount = 0))
|
||||
foo -> UAnnotationMethod (name = foo)
|
||||
foo -> UMethod (name = foo)
|
||||
a -> UParameter (name = a)
|
||||
Long -> USimpleNameReferenceExpression (identifier = Long)
|
||||
super -> USimpleNameReferenceExpression (identifier = super)
|
||||
@@ -39,7 +39,7 @@ A -> UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 1
|
||||
anon -> UField (name = anon)
|
||||
object -> UClass (name = null)
|
||||
A -> UObjectLiteralExpression
|
||||
bar -> UAnnotationMethod (name = bar)
|
||||
bar -> UMethod (name = bar)
|
||||
cons -> UCallExpression (kind = UastCallKind(name='method_call'), argCount = 1))
|
||||
object -> UClass (name = null)
|
||||
A -> UObjectLiteralExpression
|
||||
@@ -47,6 +47,6 @@ innerObject -> UClass (name = innerObject)
|
||||
A -> UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 1))
|
||||
InnerClass -> UClass (name = InnerClass)
|
||||
A -> UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 1))
|
||||
cons -> UAnnotationMethod (name = cons)
|
||||
cons -> UMethod (name = cons)
|
||||
a -> UParameter (name = a)
|
||||
A -> USimpleNameReferenceExpression (identifier = A)
|
||||
|
||||
+16
-16
@@ -5,7 +5,7 @@ UFile (package = )
|
||||
UObjectLiteralExpression
|
||||
ULiteralExpression (value = "textForAnon")
|
||||
UClass (name = null)
|
||||
UAnnotationMethod (name = bar)
|
||||
UMethod (name = bar)
|
||||
UBlockExpression
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 1))
|
||||
UIdentifier (Identifier (cons))
|
||||
@@ -13,41 +13,41 @@ UFile (package = )
|
||||
UObjectLiteralExpression
|
||||
ULiteralExpression (value = "inner literal")
|
||||
UClass (name = null)
|
||||
UAnnotationMethod (name = SuperCallsKt$anon$1$bar$1)
|
||||
UAnnotationMethod (name = SuperCallsKt$anon$1)
|
||||
UMethod (name = SuperCallsKt$anon$1$bar$1)
|
||||
UMethod (name = SuperCallsKt$anon$1)
|
||||
UClass (name = innerObject)
|
||||
UField (name = INSTANCE)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UAnnotationMethod (name = innerObject)
|
||||
UMethod (name = innerObject)
|
||||
UBlockExpression
|
||||
UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 1))
|
||||
UIdentifier (Identifier (A))
|
||||
USimpleNameReferenceExpression (identifier = <init>, resolvesTo = A)
|
||||
ULiteralExpression (value = "inner object")
|
||||
UClass (name = InnerClass)
|
||||
UAnnotationMethod (name = InnerClass)
|
||||
UMethod (name = InnerClass)
|
||||
UBlockExpression
|
||||
UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 1))
|
||||
UIdentifier (Identifier (A))
|
||||
USimpleNameReferenceExpression (identifier = <init>, resolvesTo = A)
|
||||
ULiteralExpression (value = "inner class")
|
||||
UAnnotationMethod (name = getAnon)
|
||||
UAnnotationMethod (name = cons)
|
||||
UMethod (name = getAnon)
|
||||
UMethod (name = cons)
|
||||
UParameter (name = a)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UBlockExpression
|
||||
UClass (name = A)
|
||||
UField (name = str)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UAnnotationMethod (name = foo)
|
||||
UMethod (name = foo)
|
||||
UParameter (name = a)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UBlockExpression
|
||||
UAnnotationMethod (name = getStr)
|
||||
UAnnotationMethod (name = A)
|
||||
UMethod (name = getStr)
|
||||
UMethod (name = A)
|
||||
UParameter (name = str)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UAnnotationMethod (name = A)
|
||||
UMethod (name = A)
|
||||
UParameter (name = i)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UBlockExpression
|
||||
@@ -60,7 +60,7 @@ UFile (package = )
|
||||
UIdentifier (Identifier (toString))
|
||||
USimpleNameReferenceExpression (identifier = toString, resolvesTo = null)
|
||||
UClass (name = B)
|
||||
UAnnotationMethod (name = B)
|
||||
UMethod (name = B)
|
||||
UParameter (name = param)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UBlockExpression
|
||||
@@ -69,7 +69,7 @@ UFile (package = )
|
||||
USimpleNameReferenceExpression (identifier = <init>, resolvesTo = A)
|
||||
USimpleNameReferenceExpression (identifier = param)
|
||||
UClass (name = C)
|
||||
UAnnotationMethod (name = foo)
|
||||
UMethod (name = foo)
|
||||
UParameter (name = a)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UBlockExpression
|
||||
@@ -79,7 +79,7 @@ UFile (package = )
|
||||
UIdentifier (Identifier (foo))
|
||||
USimpleNameReferenceExpression (identifier = foo, resolvesTo = null)
|
||||
USimpleNameReferenceExpression (identifier = a)
|
||||
UAnnotationMethod (name = C)
|
||||
UMethod (name = C)
|
||||
UParameter (name = p)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UBlockExpression
|
||||
@@ -87,7 +87,7 @@ UFile (package = )
|
||||
UIdentifier (Identifier (super))
|
||||
USimpleNameReferenceExpression (identifier = <init>, resolvesTo = A)
|
||||
USimpleNameReferenceExpression (identifier = p)
|
||||
UAnnotationMethod (name = C)
|
||||
UMethod (name = C)
|
||||
UParameter (name = i)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UBlockExpression
|
||||
@@ -101,7 +101,7 @@ UFile (package = )
|
||||
UClass (name = O)
|
||||
UField (name = INSTANCE)
|
||||
UAnnotation (fqName = null)
|
||||
UAnnotationMethod (name = O)
|
||||
UMethod (name = O)
|
||||
UBlockExpression
|
||||
UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 1))
|
||||
UIdentifier (Identifier (A))
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
UFile (package = )
|
||||
UClass (name = TypeReferencesKt)
|
||||
UAnnotationMethod (name = foo)
|
||||
UMethod (name = foo)
|
||||
UParameter (name = parameter)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UBlockExpression
|
||||
@@ -17,7 +17,7 @@ UFile (package = )
|
||||
USimpleNameReferenceExpression (identifier = varWithoutType)
|
||||
UReturnExpression
|
||||
USimpleNameReferenceExpression (identifier = result)
|
||||
UAnnotationMethod (name = parameterizedFoo)
|
||||
UMethod (name = parameterizedFoo)
|
||||
UParameter (name = arg)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.Nullable)
|
||||
UBlockExpression
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
UFile (package = )
|
||||
UClass (name = Callback)
|
||||
UAnnotationMethod (name = onError)
|
||||
UMethod (name = onError)
|
||||
UParameter (name = throwable)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UClass (name = Model)
|
||||
UAnnotationMethod (name = crashMe)
|
||||
UMethod (name = crashMe)
|
||||
UParameter (name = clazz)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UParameter (name = factory)
|
||||
@@ -14,7 +14,7 @@ UFile (package = )
|
||||
UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 0))
|
||||
UIdentifier (Identifier (UnsupportedOperationException))
|
||||
USimpleNameReferenceExpression (identifier = <init>, resolvesTo = UnsupportedOperationException)
|
||||
UAnnotationMethod (name = Model)
|
||||
UMethod (name = Model)
|
||||
UBlockExpression
|
||||
UBlockExpression
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 2))
|
||||
@@ -28,7 +28,7 @@ UFile (package = )
|
||||
UReturnExpression
|
||||
UObjectLiteralExpression
|
||||
UClass (name = null)
|
||||
UAnnotationMethod (name = onError)
|
||||
UMethod (name = onError)
|
||||
UParameter (name = throwable)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UBlockExpression
|
||||
@@ -37,4 +37,4 @@ UFile (package = )
|
||||
UIdentifier (Identifier (UnsupportedOperationException))
|
||||
USimpleNameReferenceExpression (identifier = <init>, resolvesTo = UnsupportedOperationException)
|
||||
ULiteralExpression (value = "")
|
||||
UAnnotationMethod (name = Model$1$1)
|
||||
UMethod (name = Model$1$1)
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
UFile (package = ) [public abstract interface Callback {...]
|
||||
UClass (name = Callback) [public abstract interface Callback {...}]
|
||||
UAnnotationMethod (name = onError) [public abstract fun onError(@org.jetbrains.annotations.NotNull throwable: java.lang.Throwable) : void = UastEmptyExpression]
|
||||
UMethod (name = onError) [public abstract fun onError(@org.jetbrains.annotations.NotNull throwable: java.lang.Throwable) : void = UastEmptyExpression]
|
||||
UParameter (name = throwable) [@org.jetbrains.annotations.NotNull var throwable: java.lang.Throwable]
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull) [@org.jetbrains.annotations.NotNull]
|
||||
UClass (name = Model) [public final class Model {...}]
|
||||
UAnnotationMethod (name = crashMe) [public final fun crashMe(@org.jetbrains.annotations.NotNull clazz: java.lang.Class<T>, @org.jetbrains.annotations.NotNull factory: kotlin.jvm.functions.Function0<? extends T>) : void {...}]
|
||||
UMethod (name = crashMe) [public final fun crashMe(@org.jetbrains.annotations.NotNull clazz: java.lang.Class<T>, @org.jetbrains.annotations.NotNull factory: kotlin.jvm.functions.Function0<? extends T>) : void {...}]
|
||||
UParameter (name = clazz) [@org.jetbrains.annotations.NotNull var clazz: java.lang.Class<T>]
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull) [@org.jetbrains.annotations.NotNull]
|
||||
UParameter (name = factory) [@org.jetbrains.annotations.NotNull var factory: kotlin.jvm.functions.Function0<? extends T>]
|
||||
@@ -14,7 +14,7 @@ UFile (package = ) [public abstract interface Callback {...]
|
||||
UCallExpression (kind = UastCallKind(name='constructor_call'), argCount = 0)) [<init>()] : PsiType:UnsupportedOperationException
|
||||
UIdentifier (Identifier (UnsupportedOperationException)) [UIdentifier (Identifier (UnsupportedOperationException))]
|
||||
USimpleNameReferenceExpression (identifier = <init>, resolvesTo = UnsupportedOperationException) [<init>] : PsiType:UnsupportedOperationException
|
||||
UAnnotationMethod (name = Model) [public fun Model() {...}]
|
||||
UMethod (name = Model) [public fun Model() {...}]
|
||||
UBlockExpression [{...}]
|
||||
UBlockExpression [{...}] : PsiType:void
|
||||
UCallExpression (kind = UastCallKind(name='method_call'), argCount = 2)) [crashMe(Callback.java, { ...})] : PsiType:void
|
||||
@@ -28,7 +28,7 @@ UFile (package = ) [public abstract interface Callback {...]
|
||||
UReturnExpression [return anonymous object : Callback {... }]
|
||||
UObjectLiteralExpression [anonymous object : Callback {... }] : PsiType:Callback
|
||||
UClass (name = null) [final class null : Callback {...}]
|
||||
UAnnotationMethod (name = onError) [public fun onError(@org.jetbrains.annotations.NotNull throwable: java.lang.Throwable) : void {...}]
|
||||
UMethod (name = onError) [public fun onError(@org.jetbrains.annotations.NotNull throwable: java.lang.Throwable) : void {...}]
|
||||
UParameter (name = throwable) [@org.jetbrains.annotations.NotNull var throwable: java.lang.Throwable]
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull) [@org.jetbrains.annotations.NotNull]
|
||||
UBlockExpression [{...}] : PsiType:Void
|
||||
@@ -37,4 +37,4 @@ UFile (package = ) [public abstract interface Callback {...]
|
||||
UIdentifier (Identifier (UnsupportedOperationException)) [UIdentifier (Identifier (UnsupportedOperationException))]
|
||||
USimpleNameReferenceExpression (identifier = <init>, resolvesTo = UnsupportedOperationException) [<init>] : PsiType:UnsupportedOperationException
|
||||
ULiteralExpression (value = "") [""] : PsiType:String
|
||||
UAnnotationMethod (name = Model$1$1) [fun Model$1$1() = UastEmptyExpression]
|
||||
UMethod (name = Model$1$1) [fun Model$1$1() = UastEmptyExpression]
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
UFile (package = )
|
||||
UClass (name = WhenAndDestructingKt)
|
||||
UAnnotationMethod (name = getElementsAdditionalResolve)
|
||||
UMethod (name = getElementsAdditionalResolve)
|
||||
UParameter (name = string)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UBlockExpression
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
UFile (package = )
|
||||
UClass (name = WhenIsKt)
|
||||
UAnnotationMethod (name = foo)
|
||||
UMethod (name = foo)
|
||||
UParameter (name = bar)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UBlockExpression
|
||||
|
||||
+3
-3
@@ -25,9 +25,9 @@ UFile (package = )
|
||||
UExpressionList (when_entry)
|
||||
ULiteralExpression (value = 3)
|
||||
UBreakExpression (label = null)
|
||||
UAnnotationMethod (name = getA)
|
||||
UAnnotationMethod (name = getB)
|
||||
UAnnotationMethod (name = <no name provided>)
|
||||
UMethod (name = getA)
|
||||
UMethod (name = getB)
|
||||
UMethod (name = <no name provided>)
|
||||
UBlockExpression
|
||||
ULiteralExpression (value = "abc1")
|
||||
ULiteralExpression (value = "def1")
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
UFile (package = ) [public final class Ea101715Kt {...]
|
||||
UClass (name = Ea101715Kt) [public final class Ea101715Kt {...}]
|
||||
UAnnotationMethod (name = a) [public static final fun a() : void {...}]
|
||||
UMethod (name = a) [public static final fun a() : void {...}]
|
||||
UBlockExpression [{...}] : PsiType:void
|
||||
UDeclarationsExpression [var a: <ErrorType> = Obj(555)]
|
||||
ULocalVariable (name = a) [var a: <ErrorType> = Obj(555)]
|
||||
@@ -11,4 +11,4 @@ UFile (package = ) [public final class Ea101715Kt {...]
|
||||
UClass (name = Obj) [public final class Obj {...}]
|
||||
UField (name = INSTANCE) [@null public static final var INSTANCE: Obj]
|
||||
UAnnotation (fqName = null) [@null]
|
||||
UAnnotationMethod (name = Obj) [private fun Obj() = UastEmptyExpression]
|
||||
UMethod (name = Obj) [private fun Obj() = UastEmptyExpression]
|
||||
|
||||
Reference in New Issue
Block a user