Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for TypeReference (0.2 sec)

  1. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10ExpressionTypeProvider.kt

            // Handle callable declarations with explicit return type first
            if (declaration is KtCallableDeclaration) {
                val typeReference = declaration.typeReference
    
                if (typeReference != null) {
                    val bindingContext = analysisContext.analyze(typeReference, AnalysisMode.PARTIAL)
                    val kotlinType =
                        if (declaration is KtParameter && declaration.isVarArg) {
    Plain Text
    - Registered: Fri May 03 08:18:13 GMT 2024
    - Last Modified: Tue Oct 24 20:59:56 GMT 2023
    - 15.5K bytes
    - Viewed (0)
  2. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirTypeProvider.kt

                    parent.resolveToFirSymbolOfTypeSafe<FirValueParameterSymbol>(firResolveSession, FirResolvePhase.TYPES)?.fir?.returnTypeRef
    
                parent is KtCallableDeclaration && (parent is KtNamedFunction || parent is KtProperty)
                        && (parent.receiverTypeReference === this || parent.typeReference === this) -> {
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Feb 20 08:50:04 GMT 2024
    - 16.3K bytes
    - Viewed (0)
  3. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/sources/KotlinSourceQueries.kt

                    val sameParamCount = ktCtor.valueParameters.size == ctorParamTypes.size
                    val sameParamTypes = sameParamCount && ctorParamTypes.mapIndexed { idx, paramType -> paramType.endsWith(ktCtor.valueParameters[idx].typeReference!!.text) }.all { it }
                    sameName && sameParamCount && sameParamTypes
                }
                ?.isDocumentedAsSince(version) == true
        }
    
        private
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Wed Dec 20 20:38:19 GMT 2023
    - 11.1K bytes
    - Viewed (0)
  4. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirExpressionTypeProvider.kt

            // Expected type of `expression` is `T`
            val property = expression.unwrapQualified<KtProperty> { property, expr -> property.initializer == expr } ?: return null
            if (property.typeReference == null) return null
            return getReturnTypeForKtDeclaration(property).nonErrorTypeOrNull()
        }
    
        private fun getExpectedTypeByFunctionExpressionBody(expression: PsiElement): KtType? {
    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)
  5. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirReferenceShortener.kt

         * - `|foo|.Bar<...>` - false
         * - `foo.Bar|<...>|` - false
         */
        private val KtUserType.inSelection: Boolean
            get() {
                val typeReference = referenceExpression ?: return false
                return typeReference.textRange.intersects(selection)
            }
    
        /**
         * Checks whether callee reference of [this] qualified expression is considered to be in the [selection] text range.
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Apr 25 18:51:33 GMT 2024
    - 69.5K bytes
    - Viewed (0)
  6. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/FirReferenceResolveHelper.kt

            // call entry and if so we resolve the constructor callee expression.
            val userType = expression.parent as? KtUserType ?: return expression
            val typeReference = userType.parent as? KtTypeReference ?: return expression
            val constructorCalleeExpression = typeReference.parent as? KtConstructorCalleeExpression ?: return expression
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Mon Apr 15 10:59:01 GMT 2024
    - 37.5K bytes
    - Viewed (0)
  7. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10TypeProvider.kt

            val bindingContext = analysisContext.analyze(ktTypeReference, AnalysisMode.PARTIAL)
            val resolvedCall = call.getResolvedCall(bindingContext) ?: return null
            val typeProjection = call.typeArguments.find { it.typeReference == ktTypeReference } ?: return null
            val index = call.typeArguments.indexOf(typeProjection)
            val paramDescriptor = resolvedCall.candidateDescriptor.typeParameters.find { it.index == index } ?: return null
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Mon Jan 29 09:37:59 GMT 2024
    - 23.3K bytes
    - Viewed (0)
Back to top