Package-level declarations

Properties

Link copied to clipboard
Link copied to clipboard
val KtThrowExpression.arguments: List<KtValueArgument>
Link copied to clipboard
const val IT_LITERAL: String

This file contains common literals of keywords, library functions and other idioms of Kotlin language

Link copied to clipboard
const val LET_LITERAL: String

Functions

Link copied to clipboard
fun KtClass.companionObject(): KtObjectDeclaration?
Link copied to clipboard
fun KtLambdaExpression.firstParameter(bindingContext: BindingContext): ValueParameterDescriptor?
Link copied to clipboard
fun KotlinType.fqNameOrNull(): FqName?
Link copied to clipboard
fun KtExpression.getDataFlowAwareTypes(bindingContext: BindingContext, languageVersionSettings: LanguageVersionSettings, dataFlowValueFactory: DataFlowValueFactory, originalType: KotlinType? = bindingContext.getType(this)): Set<KotlinType>

Returns types considering data flow.

Link copied to clipboard
fun getIntValueForPsiElement(element: PsiElement): Int?
Link copied to clipboard
fun PsiElement.getParentExpressionAfterParenthesis(strict: Boolean = true): PsiElement?
Link copied to clipboard
fun KtAnnotated.hasAnnotation(vararg annotationNames: String): Boolean
Link copied to clipboard
fun PsiElement.hasCommentInside(): Boolean
fun KtClassOrObject.hasCommentInside(): Boolean
Link copied to clipboard
Link copied to clipboard
fun KtLambdaExpression.hasImplicitParameterReference(implicitParameter: ValueParameterDescriptor, bindingContext: BindingContext): Boolean
Link copied to clipboard
fun KtNamedFunction.hasImplicitUnitReturnType(bindingContext: BindingContext): Boolean
Link copied to clipboard
fun KtNamedDeclaration.identifierName(): String
Link copied to clipboard
fun KtLambdaExpression.implicitParameter(bindingContext: BindingContext): ValueParameterDescriptor?
Link copied to clipboard
fun KtModifierListOwner.isAbstract(): Boolean
Link copied to clipboard
fun KtModifierListOwner.isActual(): Boolean
Link copied to clipboard
fun KtCatchClause.isAllowedExceptionName(regex: Regex): Boolean
Link copied to clipboard
fun ResolvedCall<out CallableDescriptor>.isCalling(fqName: FqName): Boolean
fun KtCallExpression.isCalling(fqNames: List<FqName>, bindingContext: BindingContext): Boolean
fun KtCallExpression.isCalling(fqName: FqName, bindingContext: BindingContext): Boolean
Link copied to clipboard
fun KtCallExpression.isCallingWithNonNullCheckArgument(fqName: FqName, bindingContext: BindingContext): Boolean
Link copied to clipboard
fun KtModifierListOwner.isConstant(): Boolean
Link copied to clipboard
fun KtIfExpression.isElseIf(): Boolean
Link copied to clipboard
fun <T : KtExpression> KtExpression.isElvisOperatorGuardClause(descendantExpr: T): Boolean
Link copied to clipboard
fun List<KtValueArgument>.isEmptyOrSingleStringArgument(bindingContext: BindingContext): Boolean
Link copied to clipboard
fun KtThrowExpression.isEnclosedByConditionalStatement(): Boolean
Link copied to clipboard
fun KtFunction.isEqualsFunction(): Boolean
Link copied to clipboard
inline fun <T : Exception> KtThrowExpression.isExceptionOfType(): Boolean
Link copied to clipboard
fun KtModifierListOwner.isExpect(): Boolean
Link copied to clipboard
fun KtModifierListOwner.isExternal(): Boolean
Link copied to clipboard
inline fun <T : KtExpression> KtExpression.isGuardClause(): Boolean
Link copied to clipboard
fun KtFunction.isHashCodeFunction(): Boolean
Link copied to clipboard
fun <T : KtExpression> KtExpression.isIfConditionGuardClause(descendantExpr: T): Boolean
Link copied to clipboard
fun KtThrowExpression.isIllegalArgumentException(): Boolean
Link copied to clipboard
fun KtThrowExpression.isIllegalStateException(): Boolean
Link copied to clipboard
fun KtModifierListOwner.isInline(): Boolean
Link copied to clipboard
fun KtModifierListOwner.isInternal(): Boolean
Link copied to clipboard
Link copied to clipboard
fun KtModifierListOwner.isLateinit(): Boolean
Link copied to clipboard
fun KtNamedFunction.isMainFunction(): Boolean
Link copied to clipboard
fun KtBinaryExpression.isNonNullCheck(): Boolean
Link copied to clipboard
fun KtExpression.isNullable(bindingContext: BindingContext, languageVersionSettings: LanguageVersionSettings, dataFlowValueFactory: DataFlowValueFactory, shouldConsiderPlatformTypeAsNullable: Boolean): Boolean

Return if overall expression is nullable or not nullable

Link copied to clipboard
fun KtBinaryExpression.isNullCheck(): Boolean
Link copied to clipboard
fun KtModifierListOwner.isOpen(): Boolean
Link copied to clipboard
fun KtModifierListOwner.isOperator(): Boolean
Link copied to clipboard
fun KtModifierListOwner.isOverride(): Boolean
Link copied to clipboard
inline fun <T : PsiElement> PsiElement.isPartOf(): Boolean

Tests if this element is part of given PsiElement.

Link copied to clipboard
fun PsiElement.isPartOfString(): Boolean

Tests if this element is part of a kotlin string.

Link copied to clipboard
fun KtModifierListOwner.isProtected(): Boolean
Link copied to clipboard
fun KtNamedDeclaration.isPublicInherited(): Boolean
fun KtNamedDeclaration.isPublicInherited(considerProtectedAsPublic: Boolean): Boolean
Link copied to clipboard
fun KtModifierListOwner.isPublicNotOverridden(): Boolean
fun KtModifierListOwner.isPublicNotOverridden(considerProtectedAsPublic: Boolean): Boolean
Link copied to clipboard
fun KtValueArgument.isString(bindingContext: BindingContext): Boolean
Link copied to clipboard
fun KtExpression.isSuperCall(): Boolean
Link copied to clipboard
fun KtExpression.isUnitExpression(): Boolean
Link copied to clipboard
fun KtCallExpression.isUsedForNesting(): Boolean
Link copied to clipboard
fun KtCallExpression.receiverIsUsed(context: BindingContext): Boolean
Link copied to clipboard
inline fun <T : KtExpression> KtNamedFunction.yieldStatementsSkippingGuardClauses(): Sequence<KtExpression>