Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for pcall (0.18 sec)

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

            val call = ktTypeReference.getParentOfType<KtCallElement>(strict = true) ?: return null
            val bindingContext = analysisContext.analyze(ktTypeReference, AnalysisMode.PARTIAL)
            val resolvedCall = call.getResolvedCall(bindingContext) ?: return null
            val typeProjection = call.typeArguments.find { it.typeReference == ktTypeReference } ?: 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)
  2. .idea/codeStyles/Project.xml

          <option name="ALIGN_MULTILINE_PARENTHESIZED_EXPRESSION" value="true" />
          <option name="SPACE_BEFORE_ARRAY_INITIALIZER_LBRACE" value="true" />
          <option name="CALL_PARAMETERS_WRAP" value="1" />
          <option name="METHOD_PARAMETERS_WRAP" value="5" />
          <option name="METHOD_PARAMETERS_LPAREN_ON_NEXT_LINE" value="true" />
    XML
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue May 02 13:36:56 GMT 2023
    - 4.1K bytes
    - Viewed (3)
  3. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/FirReferenceResolveHelper.kt

    import org.jetbrains.kotlin.utils.addToStdlib.ifNotEmpty
    
    internal object FirReferenceResolveHelper {
        fun FirResolvedTypeRef.toTargetSymbol(session: FirSession, symbolBuilder: KtSymbolByFirBuilder): KtSymbol? {
            // When you call a method from Java with type arguments, in FIR they are currently represented as flexible types.
            // TODO Consider handling other non-ConeLookupTagBasedType types here (see KT-66418)
    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-fir/src/org/jetbrains/kotlin/analysis/api/fir/FirUtils.kt

        val annotationCalls = getAnnotationsByClassId(JvmStandardClassIds.Annotations.JvmName, session)
        return annotationCalls.firstNotNullOfOrNull { call ->
            call.getStringArgument(StandardNames.NAME, session)
                ?.takeIf { target == null || call.useSiteTarget == target }
        }
    }
    
    internal fun FirElement.unwrapSafeCall(): FirElement =
    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)
  5. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/KtFirInvokeFunctionReference.kt

        override fun KtAnalysisSession.resolveToSymbols(): Collection<KtSymbol> {
            return expression.resolveCall()?.calls.orEmpty().mapNotNull { call ->
                (call as? KtSimpleFunctionCall)
                    ?.takeIf { it.isImplicitInvoke }
                    ?.partiallyAppliedSymbol
                    ?.symbol
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Wed Jun 21 20:40:22 GMT 2023
    - 1.2K bytes
    - Viewed (0)
  6. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/utils/InlineDelegatedPropertyAccessorsAnalyzer.kt

        }
        while (filesQueueToAnalyze.isNotEmpty()) {
            val file = filesQueueToAnalyze.removeFirst()
            analyze(file) {
                require(this is KtFe10AnalysisSession) {
                    "K2 implementation shouldn't call this code"
                }
                file.accept(InlineDelegatedPropertyAccessorsAnalyzer(analysisContext, collector))
            }
        }
    }
    
    @OptIn(KtAnalysisNonPublicApi::class)
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Aug 29 23:55:31 GMT 2023
    - 3.6K bytes
    - Viewed (0)
  7. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/FirSimpleNameReference.kt

            check(this is KtFirAnalysisSession)
            val results = FirReferenceResolveHelper.resolveSimpleNameReference(this@KtFirSimpleNameReference, this)
            //This fix-up needed to resolve annotation call into annotation constructor (but not into the annotation type)
            return fixUpAnnotationCallResolveToCtor(results)
        }
    
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Nov 02 21:23:43 GMT 2023
    - 5K bytes
    - Viewed (0)
  8. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/KtSymbolByFirBuilder.kt

         * Use-site substitution override happens in situations like this:
         *
         * ```
         * interface List<A> { fun get(i: Int): A }
         *
         * fun take(list: List<String>) {
         *   list.get(10) // this call
         * }
         * ```
         *
         * In FIR, `List::get` symbol in the example will be a substitution override with a `String` instead of `A`.
         * We want to lift such substitution overrides.
         *
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Mar 28 09:06:28 GMT 2024
    - 32.4K bytes
    - Viewed (0)
  9. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirCompilerFacility.kt

             * This method is used from [org.jetbrains.kotlin.backend.jvm.lower.ReflectiveAccessLowering.visitCall]
             * (via generateReflectiveAccessForGetter) and it is called for the private access member lowered to the getter/setter call.
             * If a private property has no getter/setter (the typical situation for simple private properties without explicitly defined
             * getter/setter) then this method is not used at all. Instead
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Fri Apr 19 11:06:47 GMT 2024
    - 32.2K bytes
    - Viewed (1)
  10. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10CallResolver.kt

        }
    
        private fun handleAsPropertyRead(context: BindingContext, element: KtElement): KtCallInfo? {
            val call = element.getResolvedCall(context) ?: return null
            return call.toPropertyRead(context)?.let { createCallInfo(context, element, it, listOf(call)) }
        }
    
        /**
         * Handles call expressions like `Foo<Bar>` or `test.Foo<Bar>` in calls like `Foo<Bar>::foo` and `test.Foo<Bar>::foo`.
         *
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Mar 14 06:10:31 GMT 2024
    - 36.4K bytes
    - Viewed (0)
Back to top