Package-level declarations

Properties

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

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 KtAnnotated.hasAnnotation(vararg annotationNames: String): 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 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 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 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
fun KtFunction.isHashCodeFunction(): 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 KtModifierListOwner.isPublicNotOverridden(): Boolean
fun KtModifierListOwner.isPublicNotOverridden(considerProtectedAsPublic: Boolean): Boolean
Link copied to clipboard
fun KtValueArgument.isString(bindingContext: BindingContext): Boolean
Link copied to clipboard
fun KtCallExpression.receiverIsUsed(context: BindingContext): Boolean