Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for Named (0.14 sec)

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

    import org.jetbrains.kotlin.name.JvmStandardClassIds
    import org.jetbrains.kotlin.psi.KtCallElement
    import org.jetbrains.kotlin.util.OperatorNameConventions
    
    /**
     * Returns `true` if the symbol is for a function named `invoke`.
     */
    internal fun FirBasedSymbol<*>.isInvokeFunction() =
        (this as? FirNamedFunctionSymbol)?.fir?.name == OperatorNameConventions.INVOKE
    
    fun FirFunctionCall.getCalleeSymbol(): FirBasedSymbol<*>? =
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Apr 25 07:15:56 GMT 2024
    - 6K bytes
    - Viewed (0)
  2. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/diagnostics/KtFirDataClassConverters.kt

        add(FirErrors.ASSIGNING_SINGLE_ELEMENT_TO_VARARG_IN_NAMED_FORM_FUNCTION.errorFactory) { firDiagnostic ->
            AssigningSingleElementToVarargInNamedFormFunctionErrorImpl(
                firSymbolBuilder.typeBuilder.buildKtType(firDiagnostic.a),
                firDiagnostic as KtPsiDiagnostic,
                token,
            )
        }
        add(FirErrors.ASSIGNING_SINGLE_ELEMENT_TO_VARARG_IN_NAMED_FORM_FUNCTION.warningFactory) { firDiagnostic ->
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Wed Apr 24 09:49:26 GMT 2024
    - 208.3K bytes
    - Viewed (0)
  3. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirExpressionInfoProvider.kt

                is KtFunctionLiteral ->
                    doesParentUseChild(psiElement.parent, psiElement)
    
                // KtNamedFunction includes `fun() { ... }` lambda syntax. No other
                // "named" functions can be expressions.
                is KtNamedFunction ->
                    doesParentUseChild(psiElement.parent, psiElement)
    
                // No other declarations are considered expressions
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Mon Feb 12 20:38:23 GMT 2024
    - 17.6K bytes
    - Viewed (0)
  4. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10CallResolver.kt

                OperatorNameConventions.MOD,
            )
    
            private val callArgErrors = setOf(
                Errors.ARGUMENT_PASSED_TWICE,
                Errors.MIXING_NAMED_AND_POSITIONED_ARGUMENTS,
                Errors.NAMED_PARAMETER_NOT_FOUND,
                Errors.NAMED_ARGUMENTS_NOT_ALLOWED,
                Errors.VARARG_OUTSIDE_PARENTHESES,
                Errors.SPREAD_OF_NULLABLE,
                Errors.SPREAD_OF_LAMBDA_OR_CALLABLE_REFERENCE,
    Plain Text
    - Registered: Fri May 03 08:18:13 GMT 2024
    - Last Modified: Mon Apr 29 12:48:54 GMT 2024
    - 34.8K bytes
    - Viewed (0)
  5. ChangeLog.md

    - [`KT-58989`](https://youtrack.jetbrains.com/issue/KT-58989) K2: Forbid suspend operator get/setValue and provideDelegate
    - [`KT-59177`](https://youtrack.jetbrains.com/issue/KT-59177) K2: Report NAMED_ARGUMENTS_NOT_ALLOWED for named parameters in lambdas
    - [`KT-57028`](https://youtrack.jetbrains.com/issue/KT-57028) K2: "NSEE: Sequence contains no element matching the predicate" with stream related Java api
    Plain Text
    - Registered: Fri May 03 08:18:13 GMT 2024
    - Last Modified: Thu Dec 21 17:48:12 GMT 2023
    - 268.7K bytes
    - Viewed (1)
  6. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirCallResolver.kt

            }
        }
    
        private fun FirExpression.findSourceKtExpressionForCallArgument(): KtExpression? {
            // For smart-casted expression, refer to the source of the original expression
            // For spread, named, and lambda arguments, the source is the KtValueArgument.
            // For other arguments (including array indices), the source is the KtExpression.
            return when (this) {
                is FirSamConversionExpression ->
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Apr 25 18:05:58 GMT 2024
    - 70.8K bytes
    - Viewed (1)
  7. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirExpressionTypeProvider.kt

         * fun usage(action: String.(Int) -> String) {
         *   "hello".<expr>action</expr>(10)
         * }
         * ```
         *
         * The user might want to know the type of the `action` callback. If we always return null for the named references,
         * we won't be able to handle this request, and just return null. So the user will only be able to see the type
         * of the whole expression instead, and that is not what he wants.
         */
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Mar 26 18:13:17 GMT 2024
    - 24.4K bytes
    - Viewed (0)
Back to top