Package modulecheck.parsing.psi.internal

Types

Link copied to clipboard
class PsiElementResolver(val project: McProject, val sourceSetName: SourceSetName)

Functions

Link copied to clipboard
private fun KtAnnotated.annotatedJvmNameOrNull(): String?
Link copied to clipboard
fun File.asKotlinScriptFileOrNull(): KtFile?
Link copied to clipboard
fun File.asKtFile(): KtFile
Link copied to clipboard
fun File.asKtFileOrNull(): KtFile?
Link copied to clipboard
fun PsiElement.callSiteName(): String

This poorly-named function will return the most-qualified name available for a given PsiElement from the snippet of code where it's being called, without looking at imports.

Link copied to clipboard
suspend fun McProject.canResolveFqName(declaredName: FqName, sourceSetName: SourceSetName): Boolean
Link copied to clipboard
fun PsiElement.file(): File
Link copied to clipboard
suspend fun PsiElement.fqNameOrNull(project: McProject, sourceSetName: SourceSetName): FqName?
Link copied to clipboard
fun KtValueArgumentList.getByNameOrIndex(index: Int, name: String): KtValueArgument?
Link copied to clipboard
inline fun <T : PsiElement> PsiElement.getChildrenOfTypeRecursive(): List<T>
Link copied to clipboard
fun KtAnnotated.hasAnnotation(annotationFqName: FqName): Boolean
Link copied to clipboard
internal fun KtImportDirective.identifier(): String?
Link copied to clipboard
internal fun KtModifierListOwner.isAbstract(): Boolean
Link copied to clipboard
fun KtDeclaration.isCompanionObject(): Boolean
Link copied to clipboard
internal fun KtNamedDeclaration.isConst(): Boolean
Link copied to clipboard
internal fun KtModifierListOwner.isConstant(): Boolean
Link copied to clipboard
internal fun KtModifierListOwner.isExpect(): Boolean
Link copied to clipboard
internal fun KtModifierListOwner.isExternal(): Boolean
Link copied to clipboard
fun KtDeclaration.isInCompanionObject(): Boolean
Link copied to clipboard
internal fun KtModifierListOwner.isInline(): Boolean
Link copied to clipboard
fun KtDeclaration.isInObject(): Boolean
Link copied to clipboard
fun KtDeclaration.isInObjectOrCompanionObject(): Boolean
Link copied to clipboard
internal fun KtModifierListOwner.isInternal(): Boolean
Link copied to clipboard
fun KtProperty.isJvmField(): Boolean
Link copied to clipboard
fun KtCallableDeclaration.isJvmStatic(): Boolean
Link copied to clipboard
fun File.isKotlinFile(): Boolean
Link copied to clipboard
fun File.isKotlinScriptFile(): Boolean
Link copied to clipboard
fun File.isKtFile(): Boolean
Link copied to clipboard
internal fun KtModifierListOwner.isLateinit(): Boolean
Link copied to clipboard
internal fun KtModifierListOwner.isOpen(): Boolean
Link copied to clipboard
internal fun KtModifierListOwner.isOperator(): Boolean
Link copied to clipboard
internal fun KtModifierListOwner.isOverride(): Boolean
Link copied to clipboard
inline fun <T : PsiElement> PsiElement.isPartOf(): Boolean
Link copied to clipboard
internal fun KtModifierListOwner.isPrivateOrInternal(): Boolean
Link copied to clipboard
internal fun KtModifierListOwner.isPublicNotOverridden(): Boolean
Link copied to clipboard
fun PsiElement.isQualifiedPropertyOrCallExpression(): Boolean
Link copied to clipboard
fun KtFunction.jvmNameOrNull(): String?
fun KtPropertyAccessor.jvmNameOrNull(): String?
Link copied to clipboard
internal fun KtNamedDeclaration.jvmSimpleNames(): Set<String>

Returns any custom names defined by @JvmName(...), the default setter/getter names if it's a property, or the same names as used by Kotlin for anything else.

Link copied to clipboard
fun KtFile(content: String): KtFile
fun KtFile(name: String, content: String): KtFile
Link copied to clipboard
fun Collection<File>.ktFiles(): List<KtFile>
Link copied to clipboard
fun KtBlockExpression.nameSafe(): String?
fun KtCallExpression.nameSafe(): String?

Properties

Link copied to clipboard
val configuration: CompilerConfiguration
Link copied to clipboard
val psiFileFactory: PsiFileFactory
Link copied to clipboard
private val psiProject: Project