Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for lastOrNull (0.23 sec)

  1. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/UpdateKotlinVersions.kt

                .groupBy { it.take(3) }
                .toSortedMap()
            val latests = buildList {
                versionsByMinor.entries.forEachIndexed { idx, entry ->
                    add(entry.value.lastOrNull { !it.contains("-") })
                    if (idx < versionsByMinor.size - 1) {
                        add(entry.value.first())
                    } else {
                        add(entry.value.firstOrNull { !it.contains("-") })
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Wed Apr 26 13:50:17 GMT 2023
    - 3.8K bytes
    - Viewed (0)
  2. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerWriter.kt

       * The type hint for the current object. Used to pick adapters based on other fields, such as
       * in extensions which have different types depending on their extension ID.
       */
      var typeHint: Any?
        get() = typeHintStack.lastOrNull()
        set(value) {
          typeHintStack[typeHintStack.size - 1] = value
        }
    
      /** Names leading to the current location in the ASN.1 document. */
      private val path = mutableListOf<String>()
    
      /**
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  3. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirExpressionTypeProvider.kt

            if (assignment.operationToken !in KtTokens.ALL_ASSIGNMENTS) return null
            if (assignment.left != expression) return null
            val setTargetParameterType = fir.argumentsToSubstitutedValueParameters()?.values?.lastOrNull()?.substitutedType ?: return null
            return setTargetParameterType.asKtType()
        }
    
        private data class SubstitutedValueParameter(val parameter: FirValueParameter, val substitutedType: ConeKotlinType)
    
    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)
  4. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10ExpressionTypeProvider.kt

                        return kotlinType?.toKtNonErrorType(analysisContext)
                    }
                }
    
                is KtBlockExpression -> {
                    if (expression == parentExpression.statements.lastOrNull()) {
                        val functionLiteral = parentExpression.parent as? KtFunctionLiteral
                        if (functionLiteral != null) {
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Oct 24 20:59:56 GMT 2023
    - 15.5K bytes
    - Viewed (0)
  5. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerReader.kt

       * The type hint for the current object. Used to pick adapters based on other fields, such as
       * in extensions which have different types depending on their extension ID.
       */
      var typeHint: Any?
        get() = typeHintStack.lastOrNull()
        set(value) {
          typeHintStack[typeHintStack.size - 1] = value
        }
    
      /** Names leading to the current location in the ASN.1 document. */
      private val path = mutableListOf<String>()
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  6. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirExpressionInfoProvider.kt

                    false
    
                // The last expression of a block is considered used iff the block itself is used.
                is KtBlockExpression ->
                    parent.statements.lastOrNull() == child && isUsed(parent)
    
                // Destructuring declarations use their initializer.
                is KtDestructuringDeclaration ->
                    parent.initializer == child
    
    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)
  7. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirDataFlowInfoProvider.kt

            for (i in 1..<statements.size) {
                require(statements[i].parent == parent)
            }
    
            val firContainer = collectUseSiteContainers(parent, firResolveSession)?.lastOrNull()
            if (firContainer != null) {
                firContainer.lazyResolveToPhase(FirResolvePhase.BODY_RESOLVE)
                return firContainer
            }
    
            return parent.parentsWithSelf
    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)
  8. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirCallResolver.kt

            // The last argument of `set` is the new value to be set. This value should be a call to the respective `plus`, `minus`,
            // `times`, `div`, or `rem` function.
            val operationCall = fir.arguments.lastOrNull() as? FirFunctionCall ?: return null
    
            // The explicit receiver in this case is a synthetic FirFunctionCall to `get`, which does not have a corresponding PSI. So
            // we use the `leftOperandPsi` as the supplement.
    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)
  9. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirReferenceShortener.kt

            val implicitReceivers = towerContextProvider.getClosestAvailableParentContext(psi)?.implicitReceiverStack ?: return false
            val closestImplicitReceiver = implicitReceivers.lastOrNull() ?: return false
    
            return boundSymbol == closestImplicitReceiver.boundSymbol
        }
    
        private fun canBePossibleToDropLabel(thisReference: FirThisReference): Boolean {
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Apr 25 18:51:33 GMT 2024
    - 69.5K bytes
    - Viewed (0)
Back to top