Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for Expression (0.17 sec)

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

         *
         * @param firQualifiedAccess FIR for the shortening target expression
         * @param calledSymbol The symbol referenced by the qualified access expression
         * @param expressionInScope An expression under the same scope as the shortening target expression
         *
         * The decision has two steps:
         *  1. Collect all candidates matching [firQualifiedAccess]
    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)
  2. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/FirReferenceResolveHelper.kt

            // call entry and if so we resolve the constructor callee expression.
            val userType = expression.parent as? KtUserType ?: return expression
            val typeReference = userType.parent as? KtTypeReference ?: return expression
            val constructorCalleeExpression = typeReference.parent as? KtConstructorCalleeExpression ?: return expression
    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)
  3. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirCompletionCandidateChecker.kt

         *
         * @param receiverExpression a qualified expression receiver (e.g., `foo` in `foo?.bar()`, or in `foo.bar`).
         *
         * The function unwraps certain receiver expressions. For instance, for safe calls direct counterpart to a [KtSafeQualifiedExpression]
         * is (FirCheckedSafeCallSubject)[org.jetbrains.kotlin.fir.expressions.FirCheckedSafeCallSubject] which requires additional unwrapping
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Fri Apr 19 11:06:47 GMT 2024
    - 9.4K bytes
    - Viewed (0)
  4. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirCompilerFacility.kt

            patchIfNeeded(expression.symbol) { expression.symbol = it }
            patchIfNeeded(expression.getter) { expression.getter = it }
            patchIfNeeded(expression.setter) { expression.setter = it }
            super.visitPropertyReference(expression)
        }
    
        override fun visitFunctionReference(expression: IrFunctionReference) {
            patchIfNeeded(expression.symbol) { expression.symbol = it }
    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)
  5. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/utils/KtFe10DebugTypeRenderer.kt

                printCollection(namedValues, separator = ", ", prefix = "(", postfix = ")") { argument ->
                    append(argument.name.render())
                    append(" = ")
                    renderConstantValueDebug(argument.expression, printer)
                }
            }
        }
    
        private fun renderConstantValueDebug(value: KtAnnotationValue, printer: PrettyPrinter) {
            when (value) {
                is KtAnnotationApplicationValue -> {
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Apr 25 07:15:56 GMT 2024
    - 10.1K bytes
    - Viewed (0)
  6. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10TypeProvider.kt

            return resolvedCall.typeArguments[paramDescriptor]
        }
    
        override fun getReceiverTypeForDoubleColonExpression(expression: KtDoubleColonExpression): KtType? {
            val bindingContext = analysisContext.analyze(expression, AnalysisMode.PARTIAL)
            val lhs = bindingContext[BindingContext.DOUBLE_COLON_LHS, expression.receiverExpression] ?: return null
            return lhs.type.toKtType(analysisContext)
        }
    
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Mon Jan 29 09:37:59 GMT 2024
    - 23.3K bytes
    - Viewed (0)
  7. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirTypeProvider.kt

                        }
                    } else null
                }
                else -> null
            }
        }
    
        override fun getReceiverTypeForDoubleColonExpression(expression: KtDoubleColonExpression): KtType? {
            return when (val fir = expression.getOrBuildFir(firResolveSession)) {
                is FirGetClassCall -> {
                    fir.resolvedType.getReceiverOfReflectionType()?.asKtType()
                }
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Feb 20 08:50:04 GMT 2024
    - 16.3K bytes
    - Viewed (0)
  8. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirDataFlowInfoProvider.kt

                val expression = variableAssignment.psi as? KtExpression
    
                if (firVariableSymbol is FirVariableSymbol<*> && firVariableSymbol.fir.isLocalMember && expression != null) {
                    val variableSymbol = analysisSession.firSymbolBuilder.variableLikeBuilder.buildVariableLikeSymbol(firVariableSymbol)
                    val reassignment = VariableReassignment(expression, variableSymbol, variableAssignment.isAugmented())
    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)
  9. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirCallResolver.kt

         * For `=` and compound access like `+=`, `-=`, `*=`, `/=`, `%=`, the LHS of the binary expression is not a complete call. Hence we
         * find the containing binary expression and resolve that instead.
         *
         * However, if, say, `+=` resolves to `plusAssign`, then the LHS is self-contained. In this case we do not return the containing binary
         * expression so that the FIR element corresponding to the LHS is used directly.
         */
    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)
  10. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/annotations/firAnnotationUtils.kt

            nameMapper,
        ).ifNotEmpty {
            val token = builder.token
    
            listOf(
                KtNamedAnnotationValue(
                    name = annotationParameterName,
                    expression = KtArrayAnnotationValue(
                        values = map {
                            KtEnumEntryAnnotationValue(
                                callableId = CallableId(
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Apr 25 07:15:56 GMT 2024
    - 9.6K bytes
    - Viewed (0)
Back to top