Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 41 for substitution (0.2 sec)

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

    import org.jetbrains.kotlin.analysis.api.fir.utils.firSymbol
    import org.jetbrains.kotlin.analysis.api.symbols.KtClassOrObjectSymbol
    import org.jetbrains.kotlin.analysis.api.types.KtSubstitutor
    import org.jetbrains.kotlin.fir.resolve.substitution.chain
    import org.jetbrains.kotlin.fir.scopes.substitutorForSuperType
    import org.jetbrains.kotlin.fir.symbols.impl.FirClassSymbol
    import org.jetbrains.kotlin.fir.symbols.impl.FirRegularClassSymbol
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Fri Oct 06 11:39:33 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  2. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/scopes/FirNonStaticMembersScope.kt

        processClassifiersByNameWithSubstitution(name) { classifier, substitutor ->
            val firDeclaration = classifier.fir
            if (firDeclaration is FirMemberDeclaration && firDeclaration.isInner) {
                processor(classifier, substitutor)
            }
        }
    Plain Text
    - Registered: Fri Mar 22 08:18:09 GMT 2024
    - Last Modified: Tue Oct 10 13:38:00 GMT 2023
    - 2.4K bytes
    - Viewed (0)
  3. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirAnalysisSessionComponent.kt

    import org.jetbrains.kotlin.fir.expressions.FirQualifiedAccessExpression
    import org.jetbrains.kotlin.fir.expressions.createConeSubstitutorFromTypeArguments
    import org.jetbrains.kotlin.fir.resolve.substitution.ConeSubstitutor
    import org.jetbrains.kotlin.fir.symbols.impl.FirCallableSymbol
    import org.jetbrains.kotlin.fir.types.*
    import org.jetbrains.kotlin.types.TypeCheckerState
    import org.jetbrains.kotlin.types.model.convertVariance
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Mar 26 18:13:17 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  4. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/scopes/FirJavaDeclaredMembersOnlyScope.kt

            // supertypes.
            delegate.processClassifiersByNameWithSubstitution(name) { classifier, substitutor ->
                if (classifier is FirRegularClassSymbol && classifier.fir.isDeclared()) {
                    processor(classifier, substitutor)
                }
            }
        }
    
        override fun toString(): String = "Declared member scope for $delegate with owning class `${owner.classId}`"
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Oct 10 13:38:00 GMT 2023
    - 2.7K bytes
    - Viewed (0)
  5. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirTypeProvider.kt

        }
    
        override fun getEnhancedType(type: KtType): KtType? {
            require(type is KtFirType)
            val coneType = type.coneType
            val substitutor = EnhancedForWarningConeSubstitutor(typeContext)
            val enhancedConeType = substitutor.substituteType(coneType)
    
            return enhancedConeType?.asKtType()
        }
    
        override fun buildSelfClassType(symbol: KtNamedClassOrObjectSymbol): KtType {
    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)
  6. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10CallResolver.kt

                Errors.TYPE_PARAMETER_AS_REIFIED,
                Errors.DEFINITELY_NON_NULLABLE_AS_REIFIED,
                Errors.REIFIED_TYPE_FORBIDDEN_SUBSTITUTION,
                Errors.REIFIED_TYPE_UNSAFE_SUBSTITUTION,
                Errors.CANDIDATE_CHOSEN_USING_OVERLOAD_RESOLUTION_BY_LAMBDA_ANNOTATION,
                Errors.RESOLUTION_TO_CLASSIFIER,
                Errors.RESERVED_SYNTAX_IN_CALLABLE_REFERENCE_LHS,
    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)
  7. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirExpressionTypeProvider.kt

            val substitutor = (this as? FirQualifiedAccessExpression)
                ?.createConeSubstitutorFromTypeArguments(rootModuleSession, discardErrorTypes = !substituteWithErrorTypes)
                ?: ConeSubstitutor.Empty
    
            return resolvedArgumentMapping?.mapValuesTo(LinkedHashMap()) { (_, parameter) ->
                SubstitutedValueParameter(parameter, substitutor.substituteOrSelf(parameter.returnTypeRef.coneType))
    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)
  8. gradlew

    #
    # In Bash we could simply go:
    #
    #   readarray ARGS < <( xargs -n1 <<<"$var" ) &&
    #   set -- "${ARGS[@]}" "$@"
    #
    # but POSIX shell has neither arrays nor command substitution, so instead we
    # post-process each arg (as a line of input to sed) to backslash-escape any
    # character that might be a shell metacharacter, then use eval to reverse
    Shell Script
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Dec 24 09:00:26 GMT 2023
    - 8.5K bytes
    - Viewed (0)
  9. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/descriptorBased/base/Kt1DescUtils.kt

                !typeProjection.isStarProjection &&
                        typeProjection.type.hasReferenceOtherThan(allowedTypeParameterDescriptors)
            }
        }
    }
    
    /**
     * Use-site substitution override are tracked through [CallableDescriptor.getOriginal]. Note that overridden symbols are accessed through
     * [CallableDescriptor.getOverriddenDescriptors] instead, which is separate from [CallableDescriptor.getOriginal].
     */
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Apr 25 07:15:56 GMT 2024
    - 33.2K bytes
    - Viewed (0)
  10. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirCallResolver.kt

            var isImplicitInvoke = false
    
            // TODO: Ideally, we should get the substitutor from the candidate. But it seems there is no way to get the substitutor from the
            //  candidate, `Candidate.substitutor` is not complete. maybe we can carry over the final substitutor if it's available from
            //  body resolve phase?
            val substitutor = when (fir) {
    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)
Back to top