Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 65 for function (0.27 sec)

  1. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/FirSyntheticFunctionInterfaceSourceProvider.kt

                else -> null
            }
        }
    
        private fun provideSourceForInvokeFunction(function: FirSimpleFunction): PsiElement? {
            val classId = function.containingClassLookupTag()?.classId ?: return null
            val classOrObject = classByClassId(classId, function.llFirSession.ktModule) ?: return null
            return classOrObject.declarations.singleOrNull()
        }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Thu Jun 06 17:44:50 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  2. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/components/KtExpressionTypeProvider.kt

        /**
         * Returns the functional type of the given [KtFunction].
         *
         * For a regular function, it would be kotlin.FunctionN<Ps, R> where
         *   N is the number of value parameters in the function;
         *   Ps are types of value parameters;
         *   R is the return type of the function.
         * Depending on the function's attributes, such as `suspend` or reflective access, different functional type,
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:35 UTC 2024
    - 5K bytes
    - Viewed (0)
  3. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/permissions/permissions.kt

     * fun foo(): Int = 0
     *
     * // use case code
     * fun useCase() {
     *   analyse(function) {
     *    // 'getConstantFromExpressionBody' is an imaginary function
     *    val valueBefore = function.getConstantFromExpressionBody() // valueBefore is 0
     *
     *    changeExpressionBodyTo(1) // now function will looks like `fun foo(): Int = 1`
     *    val valueAfter = function.getConstantFromExpressionBody() // Wrong way: valueAfter is not guarantied to be '1'
     *   }
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon May 27 17:22:24 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  4. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/annnotations.kt

     */
    
    package org.jetbrains.kotlin.analysis.api
    
    @Target(
        AnnotationTarget.CLASS,
        AnnotationTarget.PROPERTY,
        AnnotationTarget.CONSTRUCTOR,
        AnnotationTarget.FUNCTION,
        AnnotationTarget.TYPEALIAS
    )
    @RequiresOptIn("Internal Analysis API component which should not be used outside the Analysis API implementation modules as it does not have any compatibility guarantees")
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon May 27 17:22:24 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  5. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/symbols/KtCallableSymbol.kt

    /**
     * Symbol for a receiver parameter of a function or property. For example, consider code `fun String.foo() {...}`, the declaration of
     * `String` receiver parameter is such a symbol.
     */
    public abstract class KaReceiverParameterSymbol : KaAnnotatedSymbol, KaParameterSymbol {
        public abstract val type: KaType
    
        /**
         * Link to the corresponding function or property.
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon May 27 09:59:11 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  6. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/resolution/KaCompoundAccess.kt

        override val token: KaLifetimeToken get() = backingOperationPartiallyAppliedSymbol.token
    
        /**
         * The function that compute the value for this compound access. For example, if the access is `+=`, this is the resolved `plus`
         * function. If the access is `++`, this is the resolved `inc` function.
         */
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed Jun 05 16:16:39 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  7. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/symbols/pointers/KtFirValueParameterSymbolPointer.kt

            val ownerSymbol = with(analysisSession) {
                ownerPointer.restoreSymbol() ?: return null
            }
    
            val function = ownerSymbol.firSymbol.fir as? FirFunction ?: return null
            val firValueParameterSymbol = function.valueParameters.getOrNull(index)?.symbol?.takeIf { it.name == name } ?: return null
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  8. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/lifetime/KtLifetimeOwner.kt

        token.assertIsValidAndAccessible()
    }
    
    public inline fun <R> KaLifetimeOwner.withValidityAssertion(action: () -> R): R {
        assertIsValidAndAccessible()
        return action()
    }
    
    /**
     * This is a helper function to properly expose parameters in some [KaLifetimeOwner] implementation.
     *
     * An example:
     * ```kotlin
     * public class KaCall(symbol: KaSymbol) : KaLifetimeTokenOwner {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  9. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/signatures/KtFunctionLikeSignature.kt

    import org.jetbrains.kotlin.analysis.api.symbols.KaValueParameterSymbol
    import org.jetbrains.kotlin.analysis.api.types.KaSubstitutor
    
    /**
     * A signature of a function-like symbol. This includes functions, getters, setters, lambdas, etc.
     */
    public abstract class KaFunctionLikeSignature<out S : KaFunctionLikeSymbol> : KaCallableSignature<S>() {
        /**
         * The use-site-substituted value parameters.
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 1010 bytes
    - Viewed (0)
  10. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/symbols/KtFunctionLikeSymbol.kt

        /**
         * This variable represents whether a function symbol is tail-recursive or not.
         *
         * @return true if the function is tail-recursive, false otherwise
         */
        public abstract val isTailRec: Boolean
        public abstract val contractEffects: List<KaContractEffectDeclaration>
    
        /**
         * Whether this symbol is the `invoke` method defined on the Kotlin builtin functional type.
         */
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon May 27 09:59:11 UTC 2024
    - 4.5K bytes
    - Viewed (0)
Back to top