Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 109 for if (0.22 sec)

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

        override fun getDeprecation(symbol: KtSymbol): DeprecationInfo? {
            if (symbol is KtFirPackageSymbol || symbol is KtReceiverParameterSymbol) return null
            require(symbol is KtFirSymbol<*>) { "${this::class}" }
    
            // Optimization: Avoid building `firSymbol` of `KtFirPsiJavaClassSymbol` if it definitely isn't deprecated.
            if (symbol is KtFirPsiJavaClassSymbol && !symbol.mayHaveDeprecation()) {
                return null
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Sep 19 22:14:09 GMT 2023
    - 7.1K bytes
    - Viewed (0)
  2. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10ExpressionTypeProvider.kt

            // Handle callable declarations with explicit return type first
            if (declaration is KtCallableDeclaration) {
                val typeReference = declaration.typeReference
    
                if (typeReference != null) {
                    val bindingContext = analysisContext.analyze(typeReference, AnalysisMode.PARTIAL)
                    val kotlinType =
                        if (declaration is KtParameter && declaration.isVarArg) {
    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)
  3. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/FirReferenceResolveHelper.kt

        ): KtSymbol? {
            val classLikeDeclaration = this.toSymbol(session)?.fir
            if (classLikeDeclaration is FirRegularClass) {
                if (calleeReference is FirResolvedNamedReference) {
                    val callee = calleeReference.resolvedSymbol.fir as? FirCallableDeclaration
                    // TODO: check callee owner directly?
                    if (callee !is FirConstructor && callee?.isStatic != true) {
    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)
  4. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirCompilerFacility.kt

            val owner = descriptor.owner
    
            if (descriptor is IrBasedReceiverParameterDescriptor && owner is IrValueParameter) {
                val receiverClass = (owner.type as? IrSimpleType)?.classifier as? IrClassSymbol
                val receiverClassId = receiverClass?.owner?.classId
    
                if (receiverClassId != null) {
                    if (owner.index >= 0) {
    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-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/FirSimpleNameReference.kt

            if (psiOfReferenceTarget.isNotEmpty()) return psiOfReferenceTarget
            referenceTargetSymbols.flatMap { symbol ->
                when (symbol) {
                    is KtFirSyntheticJavaPropertySymbol ->
                        if (isRead) {
                            listOfNotNull(symbol.javaGetterSymbol.psi)
                        } else {
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Nov 02 21:23:43 GMT 2023
    - 5K bytes
    - Viewed (0)
  6. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/utils/InlineDelegatedPropertyAccessorsAnalyzer.kt

    fun MutableSet<KtFile>.collectReachableInlineDelegatedPropertyAccessors() {
        if (isEmpty()) return
    
        // One of the compiler lowerings, namely `PropertyReferenceLowering`,
        // optimizes usages of property references in some cases,
        // and if a containing delegated property accessor is inline,
        // it might need this accessor's bytecode.
        //
        // If an accessor function is defined in a different module,
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Aug 29 23:55:31 GMT 2023
    - 3.6K bytes
    - Viewed (0)
  7. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/KtSymbolByFirBuilder.kt

        }
    
        /**
         * We want to unwrap a SUBSTITUTION_OVERRIDE wrapper if it doesn't affect the declaration's signature in any way. If the signature
         * is somehow changed, then we want to keep the wrapper.
         *
         * Such substitute overrides happen because of inheritance.
         *
         * If the declaration references only its own type parameters, or parameters from the outer declarations, then
    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)
  8. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10TypeProvider.kt

            val fe10Type = type.fe10Type
    
            if (!KotlinBuiltIns.isArrayOrPrimitiveArray(fe10Type)) return null
    
            val arrayElementType = fe10Type.builtIns.getArrayElementType(fe10Type)
            return arrayElementType.toKtType(analysisContext)
        }
    
        private fun areTypesCompatible(a: KotlinType, b: KotlinType): Boolean {
    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)
  9. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/annotations/KtFe10AnnotationsList.kt

            useSiteTargetFilter: AnnotationUseSiteTargetFilter,
        ): List<KtAnnotationApplicationWithArgumentsInfo> = withValidityAssertion {
            if (classId in annotationsToIgnore) return@withValidityAssertion emptyList()
    
            fe10Annotations.mapIndexedNotNull { index, annotation ->
                if (!useSiteTargetFilter.isAllowed(annotation.useSiteTarget) || annotation.classIdForAnnotation != classId) {
                    return@mapIndexedNotNull null
    Plain Text
    - Registered: Fri May 03 08:18:13 GMT 2024
    - Last Modified: Thu Apr 25 07:15:56 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  10. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/annotations/firAnnotationUtils.kt

            if (arg !is FirQualifiedAccessExpression) return
            val callableSymbol = arg.calleeReference.toResolvedCallableSymbol() ?: return
            if (callableSymbol.containingClassLookupTag()?.classId != expectedEnumClass) return
            val identifier = callableSymbol.callableId.callableName.identifier
            transformer(identifier)?.let(::add)
        }
    
        if (this@findFromRawArguments is FirAnnotationCall) {
    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