Alexander Shustanov
- Total activity 70
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 7
- Subscriptions 22
-
Created Backward compatibility problem with UAST
AnsweredEncapsulation does not work in inline function, so such code is dangerous: inline fun <reified T : UElement> PsiElement?.toUElementOfType(): T? = this?.let { UastFacade.convertElementWithParent(th... -
Created TransactionGuard#submitTransactionLater vs Application#invokeLater
AnsweredHi! Could you describe the difference between these methods? When I should use one, and when another. -
Created TypeMigration refactoring for kotlin
AnsweredIs there any alternative for type migration refactoring for kotlin? -
Edited Kotlin-Java type conversion
Hi! Is there any instrument to get Kotlin types from Java PsiType? For example, I have java type: java.util.Set<entitypack.Entity> it kotlin it should be kotlin.collections.Set<entitypack.Entity<*>... -
Created How to get kotlin class from UParameter type?
AnsweredI have some code, that searches for usages of some method first parameter type. The code (uMethod.uastParameters[0] as UVariable).type returns `PsiClassType`, that resolves to some `ClsClassImpl`. ... -
Created Line Markers are suddenly disappearing in kotlin file (UAST).
AnsweredAs I know, line markers should be placed only on special psi elements, for example, on class name identifier. Placing the marker on the wrong element may lead to its disappearing while file editing... -
Created Default attributes for UAnnotations
Why org.jetbrains.uast.UAnnotation#findAttributeValue do not return default attribute value if it is not provided on the usage side? It returns null. -
Created Inheritors search for UAST
Hello, when I use InheritanceUtil.isInheritor(uClass, true, someClassFqn) Idea highlights the uClass with the message `Usage of UElement as PsiElement is not recommended`. But when I use supposed ... -
Created JVMElementFactory for Kotlin
AnsweredHello! Is there any class, that can create Kotlin psi elements? JVMElementFactory has implementations for Java and Groovy, but I cannot find an implementation for Kotlin. Also, for some reason, whe... -
Edited Why did you remove UAST classes without deprecation and ScheduledForRemoval annotation?
AnsweredHi! We use UAST in our plugin. Last three or two releases you break UAST API without warning. How long are you going to do that? We used class UastLiteralReferenceProvider and you removed it in 201...