Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 70 for Callable (0.17 sec)

  1. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/scopes/FirCallableFilteringScope.kt

                baseScope.processAllCallables { callable ->
                    if (isTargetCallable(callable)) {
                        add(callable.name)
                    }
                }
            }
        }
    
        override fun getCallableNames(): Set<Name> = cachedCallableNames
    
        override fun processFunctionsByName(name: Name, processor: (FirNamedFunctionSymbol) -> Unit) {
            if (!cachedCallableNames.contains(name)) return
    
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Oct 10 13:38:00 GMT 2023
    - 2K bytes
    - Viewed (0)
  2. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirSymbolProviderByJavaPsi.kt

        override fun getCallableSymbol(callable: PsiMember): KtCallableSymbol? {
            if (callable !is PsiMethod && callable !is PsiField) return null
            val name = callable.name?.let(Name::identifier) ?: return null
            val containingClass = callable.containingClass ?: return null
            val classSymbol = getNamedClassSymbol(containingClass) ?: return null
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Oct 10 13:38:00 GMT 2023
    - 2.1K bytes
    - Viewed (0)
  3. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/scopes/FirJavaDeclaredMembersOnlyScope.kt

        private fun FirRegularClass.isDeclared(): Boolean = symbol.classId.parentClassId == owner.classId
    
        override fun isTargetCallable(callable: FirCallableSymbol<*>): Boolean =
            callable.callableId.callableName != SpecialNames.INIT && callable.fir.isDeclared()
    
        override fun processDeclaredConstructors(processor: (FirConstructorSymbol) -> Unit) {
            delegate.processDeclaredConstructors(processor)
        }
    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)
  4. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/scopes/FirNonStaticMembersScope.kt

     * non-static scopes.
     */
    internal class FirNonStaticMembersScope(
        private val delegate: FirContainingNamesAwareScope,
    ) : FirCallableFilteringScope(delegate) {
        override fun isTargetCallable(callable: FirCallableSymbol<*>): Boolean = !callable.fir.isStatic
    
        override fun processDeclaredConstructors(processor: (FirConstructorSymbol) -> Unit) {
            delegate.processDeclaredConstructors(processor)
        }
    
    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)
  5. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/KDocReferenceResolver.kt

            fun create(packageParts: List<Name>, classParts: List<Name>, callable: Name?): FqNameInterpretation {
                val packageName = FqName.fromSegments(packageParts.map { it.asString() })
                val relativeClassName = FqName.fromSegments(classParts.map { it.asString() })
    
                return when {
                    classParts.isEmpty() && callable == null -> FqNameInterpretationAsPackage(packageName)
    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)
  6. docs/de/docs/tutorial/dependencies/classes-as-dependencies.md

    Eine Python-Klasse ist also auch ein **Callable**.
    
    Darum können Sie in **FastAPI** auch eine Python-Klasse als Abhängigkeit verwenden.
    
    Was FastAPI tatsächlich prüft, ist, ob es sich um ein „Callable“ (Funktion, Klasse oder irgendetwas anderes) handelt und ob die Parameter definiert sind.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:01:58 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  7. docs/en/docs/advanced/advanced-dependencies.md

    But we want to be able to parameterize that fixed content.
    
    ## A "callable" instance
    
    In Python there's a way to make an instance of a class a "callable".
    
    Not the class itself (which is already a callable), but an instance of that class.
    
    To do that, we declare a method `__call__`:
    
    === "Python 3.9+"
    
        ```Python hl_lines="12"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 3.9K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/cache2/RelayTest.kt

        assertFile(Relay.PREFIX_CLEAN, 20L, metadata.size, "abcdefghijklmnopqrst", metadata)
      }
    
      /** Returns a callable that reads all of source, closes it, and returns the bytes.  */
      private fun sourceReader(source: Source?): Callable<ByteString> {
        return Callable {
          val buffer = Buffer()
          while (source!!.read(buffer, 16384) != -1L) {
          }
          source.close()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  9. docs/en/docs/reference/dependencies.md

    # Dependencies - `Depends()` and `Security()`
    
    ## `Depends()`
    
    Dependencies are handled mainly with the special function `Depends()` that takes a callable.
    
    Here is the reference for it and its parameters.
    
    You can import it directly from `fastapi`:
    
    ```python
    from fastapi import Depends
    ```
    
    ::: fastapi.Depends
    
    ## `Security()`
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 671 bytes
    - Viewed (0)
  10. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10SymbolProviderByJavaPsi.kt

    ) : KtSymbolProviderByJavaPsi(), Fe10KtAnalysisSessionComponent {
        override fun getNamedClassSymbol(psiClass: PsiClass): KtNamedClassOrObjectSymbol? {
            return null /*TODO*/
        }
    
        override fun getCallableSymbol(callable: PsiMember): KtCallableSymbol? {
            return null /*TODO*/
        }
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Jul 21 22:58:59 GMT 2022
    - 1.2K bytes
    - Viewed (0)
Back to top