Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 127 for if (0.15 sec)

  1. 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 Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Oct 24 20:59:56 GMT 2023
    - 15.5K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/signatures/KtFe10VariableLikeSignature.kt

            )
        }
    
        override fun equals(other: Any?): Boolean {
            if (this === other) return true
            if (javaClass != other?.javaClass) return false
    
            other as KtFe10VariableLikeSignature<*>
    
            if (backingSymbol != other.backingSymbol) return false
            if (backingReturnType != other.backingReturnType) return false
            if (backingReceiverType != other.backingReceiverType) return false
    
            return true
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Apr 25 18:05:58 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  6. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirSymbolProviderByJavaPsi.kt

        override fun getNamedClassSymbol(psiClass: PsiClass): KtNamedClassOrObjectSymbol? {
            if (psiClass.qualifiedName == null) return null
            if (psiClass is PsiTypeParameter) return null
            if (psiClass is KtLightClassMarker) return null
            if (psiClass.isKotlinCompiledClass()) return null
    
            return KtFirPsiJavaClassSymbol(psiClass, analysisSession)
        }
    
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Oct 10 13:38:00 GMT 2023
    - 2.1K bytes
    - Viewed (0)
  7. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10SymbolContainingDeclarationProvider.kt

            val symbolPsi = descriptor?.let(DescriptorToSourceUtils::getContainingFile) ?: symbol.psi
            if (symbolPsi != null) {
                return analysisSession.getModule(symbolPsi)
            }
    
            if (descriptor is DescriptorWithContainerSource) {
                return getFakeContainingKtModule(descriptor)
            }
    
            if (symbol is KtBackingFieldSymbol) {
                return getContainingModule(symbol.owningProperty)
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Dec 21 15:34:34 GMT 2023
    - 9.3K bytes
    - Viewed (0)
  8. analysis/analysis-api-fir/analysis-api-fir-generator/src/org/jetbrains/kotlin/analysis/api/fir/generator/generatorUtils.kt

        fun typeConversion(type: KType): String {
            val nullableSuffix = if (type.isMarkedNullable) "?" else ""
            val simpleName = if (shouldRenderFqName(type)) {
                type.qualifiedName
            } else {
                type.simpleName
            }
            return if (type.arguments.isEmpty()) simpleName + nullableSuffix
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Jul 18 11:49:20 GMT 2023
    - 1.3K bytes
    - Viewed (0)
  9. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10VisibilityChecker.kt

        override fun isVisible(
            candidateSymbol: KtSymbolWithVisibility,
            useSiteFile: KtFileSymbol,
            position: PsiElement,
            receiverExpression: KtExpression?
        ): Boolean {
            if (candidateSymbol.visibility == Visibilities.Public) {
                return true
            }
    
            val targetDescriptor = getSymbolDescriptor(candidateSymbol) as? DeclarationDescriptorWithVisibility ?: return false
    
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Oct 27 06:22:37 GMT 2022
    - 4.3K bytes
    - Viewed (0)
  10. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/fe10SymbolsEquality.kt

    import org.jetbrains.kotlin.analysis.api.symbols.markers.KtNamedSymbol
    import org.jetbrains.kotlin.resolve.DescriptorEquivalenceForOverrides
    
    internal fun KtFe10Symbol.isEqualTo(other: Any?): Boolean {
        if (this === other) return true
        if (other !is KtFe10Symbol) return false
        return DescriptorEquivalenceForOverrides.areEquivalent(
            this.getDescriptor(),
            other.getDescriptor(),
            allowCopiesFromTheSameDeclaration = false
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Fri Nov 11 10:59:57 GMT 2022
    - 1.1K bytes
    - Viewed (0)
Back to top