Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for whale (0.16 sec)

  1. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/descriptorBased/base/Kt1DescUtils.kt

     */
    @Suppress("UNCHECKED_CAST")
    private fun <T : CallableDescriptor> T.unwrapUseSiteSubstitutionOverride(): T {
        var current: CallableDescriptor = this
        while (original != current) {
            current = current.original
        }
        return current as T
    }
    
    internal fun KotlinType.toKtType(analysisContext: Fe10AnalysisContext): KtType {
    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)
  2. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/KDocReferenceResolver.kt

         *
         * To properly resolve qualifier parts in the middle,
         * we need to resolve the whole qualifier to understand which parts of the qualifier are package or class qualifiers.
         * And then we will be able to resolve the qualifier selected by the user to the proper class, package or callable.
         *
         * It's possible that the whole qualifier is invalid, in this case we still want to resolve our [selectedFqName].
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Fri Apr 19 11:06:47 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  3. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/FirReferenceResolveHelper.kt

            var parent = parent
            while (parent is KtDotQualifiedExpression) {
                if (parent.selectorExpression !== this) return true
                parent = parent.parent
            }
            return false
        }
    
        private fun KtSimpleNameExpression.isPartOfUserTypeRefQualifier(): Boolean {
            var parent = parent
            while (parent is KtUserType) {
    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)
  4. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10TypeProvider.kt

                val mappingForType = type.toTypeArgumentMapping() ?: continue
    
                val queue = ArrayDeque<TypeArgumentMapping>()
                queue.addLast(mappingForType)
    
                while (queue.isNotEmpty()) {
                    val (typeParameterOwner, mapping) = queue.removeFirst()
                    for (superType in typeParameterOwner.typeConstructor.supertypes) {
    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)
  5. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirDataFlowInfoProvider.kt

                        .sortedBy { it.id }
                }.distinct()
    
            return exitPoints.size > 1
        }
    
        private fun CFGNode<*>.unwrap(): CFGNode<*> {
            var current = this
    
            while (current.isExitNode()) {
                val following = current.followingNodes
                if (following.size == 1) {
                    current = following.first()
                } else {
                    break
                }
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Apr 16 06:40:43 GMT 2024
    - 22.9K bytes
    - Viewed (0)
  6. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirPsiTypeProvider.kt

                type = javaType
            }
    
            val javaTypeParameterStack = MutableJavaTypeParameterStack()
    
            var psiClass = PsiTreeUtil.getContextOfType(useSitePosition, PsiClass::class.java, false)
            while (psiClass != null && psiClass.name == null || psiClass is PsiTypeParameter) {
                psiClass = PsiTreeUtil.getContextOfType(psiClass, PsiClass::class.java, true)
            }
            if (psiClass != null) {
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Fri Apr 12 13:29:57 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  7. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirExpressionInfoProvider.kt

                // - The "reference" in a constructor call. E.g. `C` in `C()`
                is KtConstructorCalleeExpression ->
                    false
    
                // - Labels themselves: `@label` in return`@label` or `label@`while...
                is KtLabelReferenceExpression ->
                    false
    
                // - The operation symbol itself in binary and unary operations: `!!`, `+`...
                is KtOperationReferenceExpression ->
    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)
  8. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/evaluate/FirCompileTimeConstantEvaluator.kt

            //   fun foo(x: Int) {
            //     when (x) {
            //       -2_147_483_628 -> ...
            //   } }
            // That constant is encoded as `unaryMinus` call with the const 2147483628 of long type, while the resolved type is Int.
            // After computing the compile time constant, we need to adjust its type here.
            val expression =
                if (expectedKind != null && expectedKind != kind && value is Number) {
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Wed Mar 20 14:53:27 GMT 2024
    - 16.5K bytes
    - Viewed (0)
  9. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirExpressionTypeProvider.kt

         * 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.
         */
        private fun FirNamedReference.getCorrespondingTypeIfPossible(): ConeKotlinType? =
            findOuterPropertyAccessExpression()?.resolvedType
    
        /**
    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)
  10. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10CallResolver.kt

        private fun KtCallInfo?.toKtCallCandidateInfos(bestCandidateDescriptors: Set<CallableDescriptor>): List<KtCallCandidateInfo> {
            // TODO: We should prefer to compare symbols instead of descriptors, but we can't do so while symbols are not cached.
            fun KtCall.isInBestCandidates(): Boolean {
                val descriptor = this.safeAs<KtFunctionCall<*>>()?.descriptor as? CallableDescriptor
    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)
Back to top