Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 47 of 47 for firstOrNull (0.14 sec)

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

                val containingFile = (symbol.firSymbol.fir as? FirElementWithResolveState)?.getContainingFile()
                if (containingFile == null || containingFile.declarations.firstOrNull() !is FirScript) {
                    // Should be replaced with proper check after KT-61451 and KT-61887
                    return false
                }
            }
    
            val firSymbol = symbol.firSymbol
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Fri Apr 19 11:06:47 GMT 2024
    - 13.5K bytes
    - Viewed (0)
  2. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirCallResolver.kt

                        extensionReceiverValue = if (firstArgIsExtensionReceiver) {
                            when (fir) {
                                is FirFunctionCall -> fir.arguments.firstOrNull()?.toKtReceiverValue()
                                is FirPropertyAccessExpression -> fir.explicitReceiver?.toKtReceiverValue()
                                else -> null
                            }
                        } else {
    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)
  3. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/evaluate/FirCompileTimeConstantEvaluator.kt

            opr1.evaluate(function)?.let {
                return it.adjustType(functionCall.resolvedType)
            }
    
            val argument = functionCall.arguments.firstOrNull() ?: return null
            val opr2 = evaluate(argument, mode) ?: return null
            opr1.evaluate(function, opr2)?.let {
                return it.adjustType(functionCall.resolvedType)
            }
            return null
    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)
  4. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Adapters.kt

            val peekedHeader =
              reader.peekHeader()
                ?: throw ProtocolException("expected a value at $reader")
    
            val choice =
              choices.firstOrNull { it.matches(peekedHeader) }
                ?: throw ProtocolException(
                  "expected a matching choice but was $peekedHeader at $reader",
                )
    
            return choice to choice.fromDer(reader)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 15K bytes
    - Viewed (0)
  5. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirDataFlowInfoProvider.kt

                    }
                }
            }
    
            private fun computeTarget(element: FirElement): FirElement? {
                val psi = element.psi
                return stack.firstOrNull { it.psi == psi && isAppropriateTarget(it) }
            }
    
            private fun isAppropriateTarget(element: FirElement): Boolean {
                if (element !is FirStatement && element !is FirReference) {
    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/KtFirImportOptimizer.kt

            is ConeUnresolvedSymbolError -> classId.shortClassName
            is ConeUnresolvedTypeQualifierError -> {
                // we take the first qualifier part because only the first one can be imported
                qualifiers.firstOrNull()?.name
            }
        }
    
    
    /**
     * An actual name by which this callable reference was used.
     */
    private val FirCallableReferenceAccess.callableReferenceName: Name?
        get() {
    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)
  7. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirExpressionInfoProvider.kt

                // When expressions use the subject expression _unless_ the first branch in the
                // when is an `else`.
                is KtWhenExpression ->
                    parent.subjectExpression == child && parent.entries.firstOrNull()?.isElse == false
    
                // Throw expressions use the expression thrown.
                is KtThrowExpression ->
                    parent.thrownExpression == 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)
Back to top