Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for KtCallableDeclaration (0.23 sec)

  1. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10VisibilityChecker.kt

            return descriptor.isEffectivelyPublicApi || descriptor.isPublishedApi()
        }
    }
    
    private fun findContainingNonLocalDeclaration(element: PsiElement): KtCallableDeclaration? {
        for (parent in element.parentsWithSelf) {
            if (parent is KtCallableDeclaration && !KtPsiUtil.isLocal(parent)) {
                return parent
            }
        }
    
        return null
    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)
  2. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/scopes/KtFe10FileScope.kt

    import org.jetbrains.kotlin.descriptors.CallableDescriptor
    import org.jetbrains.kotlin.descriptors.ClassifierDescriptor
    import org.jetbrains.kotlin.name.Name
    import org.jetbrains.kotlin.psi.KtCallableDeclaration
    import org.jetbrains.kotlin.psi.KtClassLikeDeclaration
    import org.jetbrains.kotlin.psi.KtFile
    import org.jetbrains.kotlin.resolve.BindingContext
    
    internal class KtFe10FileScope(
        private val ktFile: KtFile,
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Mon May 22 19:21:34 GMT 2023
    - 4K bytes
    - Viewed (0)
  3. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/psiBased/base/KtFe10PsiSymbolUtils.kt

            hasModifier(KtTokens.FINAL_KEYWORD) -> Modality.FINAL
            hasModifier(KtTokens.SEALED_KEYWORD) -> Modality.SEALED
            hasModifier(KtTokens.OPEN_KEYWORD) -> {
                if (this is KtCallableDeclaration && !hasBody()) {
                    val parentDeclaration = this.getElementParentDeclaration()
                    if (parentDeclaration is KtClass && parentDeclaration.isInterface()) {
                        Modality.ABSTRACT
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Fri Nov 11 10:59:55 GMT 2022
    - 5.5K bytes
    - Viewed (0)
  4. build-logic/buildquality/src/main/kotlin/gradlebuild/incubation/action/IncubatingApiReportWorkAction.kt

            get() = (this as? KtCallableDeclaration)?.typeParameterList?.let { "${it.text} " } ?: ""
    
        private
        val KtNamedDeclaration.fullyQualifiedName: String
            get() = fqName!!.asString()
    
        private
        val KtCallableDeclaration.valueParametersString: String
            get() = valueParameterList?.text ?: ""
    
        private
        val KtCallableDeclaration.receiverTypeString: String?
    HTML
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Sun Jun 25 02:53:14 GMT 2023
    - 12.7K bytes
    - Viewed (0)
  5. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10ExpressionTypeProvider.kt

        }
    
        override fun getReturnTypeForKtDeclaration(declaration: KtDeclaration): KtType {
            // 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)
    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)
  6. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirTypeProvider.kt

                    parent.resolveToFirSymbolOfTypeSafe<FirValueParameterSymbol>(firResolveSession, FirResolvePhase.TYPES)?.fir?.returnTypeRef
    
                parent is KtCallableDeclaration && (parent is KtNamedFunction || parent is KtProperty)
                        && (parent.receiverTypeReference === this || parent.typeReference === this) -> {
    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)
  7. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/KDocReferenceResolver.kt

        ): Collection<ResolveResult> {
            val owner = contextElement.parentOfType<KtDeclaration>() ?: return emptyList()
            if (fqName.pathSegments().singleOrNull()?.asString() == "this") {
                if (owner is KtCallableDeclaration && owner.receiverTypeReference != null) {
                    val symbol = owner.getSymbol() as? KtCallableSymbol ?: return emptyList()
                    return listOfNotNull(symbol.receiverParameter?.toResolveResult())
    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)
Back to top