Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 36 for invoke (0.21 sec)

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

                    // For implicit invoke, we resolve the calleeExpression of the CallExpression to the call that creates the receiver of this
                    // implicit invoke call. For example,
                    // ```
                    // fun test(f: () -> Unit) {
                    //   f() // calleeExpression `f` resolves to the local variable access, while `f()` resolves to the implicit `invoke` call.
    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)
  2. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirSymbolDeclarationOverridesProvider.kt

        ) = when (declaration) {
            is FirSimpleFunction -> processOverriddenFunctions(declaration.symbol) { symbol ->
                processor.invoke(symbol.fir)
                ProcessorAction.NEXT
            }
            is FirProperty -> processOverriddenProperties(declaration.symbol) { symbol ->
                processor.invoke(symbol.fir)
                ProcessorAction.NEXT
            }
            else -> ProcessorAction.STOP
        }
    
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Fri Mar 22 14:22:10 GMT 2024
    - 9.6K bytes
    - Viewed (0)
  3. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/FirUtils.kt

    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<*>? =
        calleeReference.getResolvedSymbolOfNameReference()
    
    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)
  4. container-tests/src/test/java/okhttp3/containers/BasicLoomTest.kt

      fun checkForPinning() {
        assertThat(capturedOut.toString()).isEmpty()
      }
    
      private fun newVirtualThreadPerTaskExecutor(): ExecutorService {
        return Executors::class.java.getMethod("newVirtualThreadPerTaskExecutor").invoke(null) as ExecutorService
      }
    
      @Test
      fun testHttpsRequest() {
        MockServerClient(mockServer.host, mockServer.serverPort).use { mockServerClient ->
          mockServerClient
            .`when`(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 11:15:46 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  5. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirCompilerFacility.kt

            private val mainKtFile: KtFile,
            private val injectedSymbolMapping: Map<CodeFragmentCapturedId, InjectedValue>
        ) : (FirReference, Fir2IrConversionScope) -> InjectedValue? {
            override fun invoke(calleeReference: FirReference, conversionScope: Fir2IrConversionScope): InjectedValue? {
                val irFile = conversionScope.containingFileIfAny()
                val psiFile = (irFile?.fileEntry as? PsiIrFileEntry)?.psiFile
    
    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)
  6. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10CallResolver.kt

            }
    
            return KtSimpleFunctionCall(
                partiallyAppliedSymbol,
                argumentMapping,
                toTypeArgumentsMapping(partiallyAppliedSymbol),
                call.callType == Call.CallType.INVOKE
            )
        }
    
        private fun ResolvedCall<*>.toPartiallyAppliedVariableSymbol(context: BindingContext): KtPartiallyAppliedVariableSymbol<KtVariableLikeSymbol>? {
    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. okhttp/src/main/kotlin/okhttp3/internal/ws/RealWebSocket.kt

       * connected - this does nothing and returns false. Otherwise this returns true and the caller
       * should immediately invoke this method again until it returns false.
       *
       * This method may only be invoked by the writer thread. There may be only thread invoking this
       * method at a time.
       */
      @Throws(IOException::class)
      internal fun writeOneFrame(): Boolean {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 22.1K bytes
    - Viewed (0)
  8. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirImportOptimizer.kt

                    processErrorNameReference(implicitInvokeCall)
    
                    saveCallable(implicitInvokeCall, OperatorNameConventions.INVOKE)
                }
    
                private fun processPropertyAccessExpression(propertyAccessExpression: FirPropertyAccessExpression) {
                    if (propertyAccessExpression.dispatchedWithoutImport) return
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Fri Apr 19 11:06:47 GMT 2024
    - 24.2K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt

       * async task to do so.
       */
      inner class ReaderRunnable internal constructor(
        internal val reader: Http2Reader,
      ) : Http2Reader.Handler, () -> Unit {
        override fun invoke() {
          var connectionErrorCode = ErrorCode.INTERNAL_ERROR
          var streamErrorCode = ErrorCode.INTERNAL_ERROR
          var errorException: IOException? = null
          try {
            reader.readConnectionPreface(this)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 32.6K bytes
    - Viewed (0)
  10. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/FirReferenceResolveHelper.kt

            val fullQualifiedAccess = when (val psi = fir.source.psi) {
                // for cases like `Foo.Bar()`, where `Foo.Bar` is an object, and `Foo.Bar()` is a call to `invoke` operator
                is KtSimpleNameExpression -> psi.getQualifiedElement()
                else -> psi
            }
            if (fullQualifiedAccess !is KtDotQualifiedExpression) return referencedSymbolsByFir
    
    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)
Back to top