Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for Get (0.21 sec)

  1. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/descriptorBased/base/Kt1DescUtils.kt

        )
    }
    
    private val AnnotationDescriptor.psi: KtCallElement? get() = (source as? PsiSourceElement)?.psi as? KtCallElement
    internal val AnnotationDescriptor.classIdForAnnotation: ClassId? get() = annotationClass?.maybeLocalClassId
    internal val AnnotationDescriptor.useSiteTarget: AnnotationUseSiteTarget?
        get() = (this as? LazyAnnotationDescriptor)?.annotationEntry?.useSiteTarget?.getAnnotationUseSiteTarget()
    
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Apr 25 07:15:56 GMT 2024
    - 33.2K bytes
    - Viewed (0)
  2. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10ScopeProvider.kt

    ) : KtScopeProvider(), Fe10KtAnalysisSessionComponent {
        private companion object {
            val LOG = Logger.getInstance(KtFe10ScopeProvider::class.java)
        }
    
        override val token: KtLifetimeToken
            get() = analysisSession.token
    
        override fun getMemberScope(classSymbol: KtSymbolWithMembers): KtScope {
            val descriptor = getDescriptor<ClassDescriptor>(classSymbol)
                ?: return getEmptyScope()
    
    Plain Text
    - Registered: Fri May 03 08:18:13 GMT 2024
    - Last Modified: Thu Apr 25 18:05:58 GMT 2024
    - 12.6K bytes
    - Viewed (0)
  3. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10TypeProvider.kt

        override val token: KtLifetimeToken
            get() = analysisContext.token
    
        override val INT: KtType
            get() = withValidityAssertion { analysisContext.builtIns.intType.toKtType(analysisContext) }
    
        override val LONG: KtType
            get() = withValidityAssertion { analysisContext.builtIns.longType.toKtType(analysisContext) }
    
        override val SHORT: KtType
    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)
  4. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/FirReferenceResolveHelper.kt

            generateSequence(this) { it.outerClassId }.drop(classesToDrop).firstOrNull()
    
        /**
         * @return How many qualifiers needs to be dropped from [wholeType] to get [nestedType].
         *
         * Example: to get `foo.bar` from `foo.bar.Baz.Inner`, you need to drop 2 qualifiers (`Inner` and `Baz`).
         */
        private fun countQualifiersToDrop(wholeType: KtUserType, nestedType: KtUserType): Int {
    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-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10ExpressionTypeProvider.kt

                KtTypeReference::class.java,
                KtPackageDirective::class.java,
                KtLabelReferenceExpression::class.java
            )
        }
    
        override val token: KtLifetimeToken
            get() = analysisSession.token
    
        override fun getKtExpressionType(expression: KtExpression): KtType? {
            // Not sure if it's safe enough. In theory, some annotations on expressions might change its type
    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)
  6. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/KtSymbolByFirBuilder.kt

        /**
         * Use-site substitution override happens in situations like this:
         *
         * ```
         * interface List<A> { fun get(i: Int): A }
         *
         * fun take(list: List<String>) {
         *   list.get(10) // this call
         * }
         * ```
         *
         * In FIR, `List::get` symbol in the example will be a substitution override with a `String` instead of `A`.
         * We want to lift such substitution overrides.
         *
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Mar 28 09:06:28 GMT 2024
    - 32.4K bytes
    - Viewed (0)
  7. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirDataFlowInfoProvider.kt

                }
            }
        }
    
        private inner class FirElementCollector : FirDefaultVisitorVoid() {
            val hasJumps: Boolean
                get() = firReturnTargets.isNotEmpty() || firLoopJumpTargets.isNotEmpty()
    
            val hasMultipleJumpKinds: Boolean
                get() = (firReturnExpressions.size.sign + firBreakExpressions.size.sign + firContinueExpressions.size.sign) > 1
    
    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/KtFirCompilerFacility.kt

    }
    
    private class IrDeclarationMappingCollectingVisitor : IrElementVisitorVoid {
        private val collectedMappings = HashMap<FirDeclaration, IrDeclaration>()
    
        val mappings: Map<FirDeclaration, IrDeclaration>
            get() = Collections.unmodifiableMap(collectedMappings)
    
        override fun visitElement(element: IrElement) {
            element.acceptChildrenVoid(this)
        }
    
    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)
  9. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirTypeProvider.kt

                    }
                }
                else -> throwUnexpectedFirElementError(fir, ktTypeReference)
            }
        }
    
        /**
         * Try to get fir element for type reference through symbols.
         * When the type is declared in compiled code this is faster than building FIR from decompiled text.
         */
        private fun KtTypeReference.getFirBySymbols(): FirElement? {
    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)
  10. analysis/analysis-api-fir/analysis-api-fir-generator/src/org/jetbrains/kotlin/analysis/api/fir/generator/HLDiagnosticConverter.kt

            ClassKind::class,
            FunctionTypeKind::class,
            VersionRequirement.Version::class,
            IncompatibleVersionErrorData::class,
        )
    
        private val KType.kClass: KClass<*>
            get() = classifier as KClass<*>
    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)
Back to top