Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for first (0.13 sec)

  1. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/KDocReferenceResolver.kt

         * contain the [contextElement].
         *
         * If [fqName] has two or more segments, e.g. `Foo.bar`, the member and companion object scope of the containing [KtDeclaration] will be
         * queried for a class `Foo` first, and then that class `Foo` will be queried for the member `bar` by short name.
         */
        private fun KtAnalysisSession.getSymbolsFromParentMemberScopes(fqName: FqName, contextElement: KtElement): Collection<KtSymbol> {
    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)
  2. analysis/analysis-api-fir/analysis-api-fir-generator/src/org/jetbrains/kotlin/analysis/api/fir/generator/HLDiagnosticConverter.kt

                )
            }
            if (kClass.isSubclassOf(Pair::class)) {
                val first = type.arguments.getOrNull(0)?.type ?: return HLIdParameterConversion
                val second = type.arguments.getOrNull(1)?.type ?: return HLIdParameterConversion
                return HLPairParameterConversion(
                    mappingConversionFirst = createConversion(first),
                    mappingConversionSecond = createConversion(second)
                )
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Mon Nov 06 14:41:18 GMT 2023
    - 16.6K bytes
    - Viewed (0)
  3. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10ExpressionTypeProvider.kt

            return kotlinType.toKtType(analysisContext)
        }
    
        override fun getReturnTypeForKtDeclaration(declaration: KtDeclaration): KtType {
            // Handle callable declarations with explicit return type first
            if (declaration is KtCallableDeclaration) {
                val typeReference = declaration.typeReference
    
                if (typeReference != null) {
    Plain Text
    - Registered: Fri May 03 08:18:13 GMT 2024
    - Last Modified: Tue Oct 24 20:59:56 GMT 2023
    - 15.5K bytes
    - Viewed (0)
  4. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/FirReferenceResolveHelper.kt

                    // that the first segment of the qualified access could be the import alias if any. Then, we can still compare the
                    // remaining parts.
                    // E.g., coreR.string.hello
                    //   -> string.hello (drop the first segment)
                    //   test.pkg.R.string.hello
    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)
  5. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirDataFlowInfoProvider.kt

            val defaultExpressionInfo = computeDefaultExpression(defaultStatement, firDefaultStatement, firValuedReturnExpressions)
    
            val graphIndex = ControlFlowGraphIndex {
                getControlFlowGraph(anchor = statements.first(), firStatements = firStatements)
            }
    
            val jumpExpressions = buildList {
                fun add(expressions: List<FirElement>) {
                    expressions.mapNotNullTo(this) { it.psi as? KtExpression }
    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/evaluate/FirCompileTimeConstantEvaluator.kt

                is ConeCapturedType -> lowerType?.toConstantValueKind() ?: constructor.supertypes!!.first().toConstantValueKind()
                is ConeDefinitelyNotNullType -> original.toConstantValueKind()
                is ConeIntersectionType -> intersectedTypes.first().toConstantValueKind()
                is ConeStubType, is ConeIntegerLiteralType, is ConeTypeVariableType -> 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)
  7. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirImportOptimizer.kt

            is ConeUnresolvedReferenceError -> name
            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.
     */
    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)
  8. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/evaluate/FirAnnotationValueConverter.kt

                }
    
                is FirArrayLiteral -> {
                    // Desugared collection literals.
                    KtArrayAnnotationValue(argumentList.arguments.convertVarargsExpression(builder).first, sourcePsi, token)
                }
    
                is FirFunctionCall -> {
                    val reference = calleeReference as? FirResolvedNamedReference ?: return null
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Apr 25 07:15:56 GMT 2024
    - 11.7K bytes
    - Viewed (0)
  9. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10CallResolver.kt

                    // TODO: consider demoting extension receiver to the first argument to align with FIR behavior. See test case
                    //  analysis/analysis-api/testData/components/callResolver/resolveCall/functionTypeVariableCall_dispatchReceiver.kt:5 where
                    //  FIR and FE1.0 behaves differently because FIR unifies extension receiver of functional type as the first argument
                    resolvedCall.functionCall.toFunctionKtCall(context)
    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)
  10. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirExpressionInfoProvider.kt

                is KtParenthesizedExpression ->
                    doesParentUseChild(parent.parent, parent)
    
                // 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
    
    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