Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for if (0.12 sec)

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

                else -> {
                    if (isDynamic()) {
                        return KtSymbolOrigin.JS_DYNAMIC
                    }
                }
            }
        }
    
        val sourceElement = this.toSourceElement
        if (sourceElement is JavaSourceElement) {
            return KtSymbolOrigin.JAVA
        }
    
        val psi = sourceElement.getPsi()
        if (psi != null) {
            if (psi.language != KotlinLanguage.INSTANCE) {
    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-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/KDocReferenceResolver.kt

            if (owner is KtNamedDeclaration) {
                if (owner.nameAsName == name) {
                    add(owner.getSymbol())
                }
            }
            if (owner is KtTypeParameterListOwner) {
                for (typeParameter in owner.typeParameters) {
                    if (typeParameter.nameAsName == name) {
    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)
  3. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/utils/KtFe10DebugTypeRenderer.kt

                        else -> {
                            val descriptor = unwrappedType.constructor.declarationDescriptor
                            if (descriptor is TypeParameterDescriptor) {
                                renderTypeParameterType(descriptor, printer)
                            } else if (descriptor is ClassifierDescriptorWithTypeParameters) {
                                renderOrdinaryType(unwrappedType, printer)
                            } else {
    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)
  4. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10ScopeProvider.kt

                    getContributedVariables(name, NoLookupLocation.FROM_IDE).isNotEmpty()
                }
            }
    
            override fun getClassifierNames(): Set<Name>? {
                if (forDelegatedMembersOnly) return null
                return allMemberScope.getClassifierNames()?.filterTo(mutableSetOf()) { name ->
                    getContributedClassifier(name, NoLookupLocation.FROM_IDE) != null
                }
    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)
  5. 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)
  6. 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)
  7. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirDataFlowInfoProvider.kt

                }
            }
        }
    
        /**
         * Returns `true` if the control graph contains at least one of the [firCandidates].
         */
        private fun ControlFlowGraph.contains(firCandidates: Set<FirElement>): Boolean {
            for (node in nodes) {
                if (node.fir in firCandidates) {
                    return true
                }
    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/KtFirSymbolContainingDeclarationProvider.kt

            }
    
            if (isOrdinarySymbolWithSource(symbol)) {
                val result = psi.getContainingPsiDeclaration()
    
                if (result == null) {
                    val containingFile = psi.containingFile
                    if (containingFile is KtCodeFragment) {
                        // All content inside a code fragment is implicitly local, but there is no non-local parent
                        return null
                    }
    
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Fri Apr 19 11:06:47 GMT 2024
    - 13.5K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top