Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for expr (0.13 sec)

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

        }?.candidate?.originScope
    
        /**
         * Returns whether a member of companion is used to initialize the enum entry or not. For example,
         *     enum class C(val i: Int) {
         *         ONE(<expr>C.K</expr>)  // C.ONE uses C.K for initialization
         *         ;
         *         companion object {
         *             const val K = 1
         *         }
         *     }
         */
    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/evaluate/FirAnnotationValueConverter.kt

            var representativePsi: KtElement? = null
            val flattenedVarargs = buildList {
                for (expr in this@convertVarargsExpression) {
                    val converted = expr.convertConstantExpression(builder) ?: continue
    
                    if ((expr is FirSpreadArgumentExpression || expr is FirNamedArgumentExpression) && converted is KtArrayAnnotationValue) {
                        addAll(converted.values)
    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)
  3. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirCallResolver.kt

                // fun x(c: Char) {}
                // fun call(x: kotlin.Int) {
                //   operator fun Int.invoke(a: Int) {}
                //   operator fun Int.invoke(b: Boolean) {}
                //   <expr>x()</expr>
                // }
                // ```
                // The candidates for the call will both be `invoke`. We can keep it simple by getting the name from the callee reference's PSI
    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)
Back to top