Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for isEmpty (0.19 sec)

  1. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/scopes/KtFe10ScopeResolution.kt

                .mapNotNull { it.toKtSymbol(analysisContext) as? KtCallableSymbol }
        }
    
        override fun getCallableSymbols(names: Collection<Name>): Sequence<KtCallableSymbol> = withValidityAssertion {
            if (names.isEmpty()) return emptySequence()
            val namesSet = names.toSet()
            return getCallableSymbols { it in namesSet }
        }
    
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Oct 10 13:38:00 GMT 2023
    - 5.7K bytes
    - Viewed (0)
  2. analysis/analysis-api-fir/analysis-api-fir-generator/src/org/jetbrains/kotlin/analysis/api/fir/generator/generatorUtils.kt

            val simpleName = if (shouldRenderFqName(type)) {
                type.qualifiedName
            } else {
                type.simpleName
            }
            return if (type.arguments.isEmpty()) simpleName + nullableSuffix
            else simpleName + type.arguments.joinToString(separator = ", ", prefix = "<", postfix = ">") {
                when (val typeArgument = it.type) {
                    null -> "*"
    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)
  3. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirSubstitutorFactory.kt

        override val analysisSession: KtFirAnalysisSession
    ) : KtSubstitutorFactory(), KtFirAnalysisSessionComponent {
    
        override fun buildSubstitutor(builder: KtSubstitutorBuilder): KtSubstitutor {
            if (builder.mappings.isEmpty()) return KtSubstitutor.Empty(token)
    
            val firSubstitution = buildMap {
                builder.mappings.forEach { (ktTypeParameterSymbol, ktType) ->
                    check(ktTypeParameterSymbol is KtFirTypeParameterSymbol)
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Wed Mar 06 06:40:28 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  4. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/annotations/KtFirAnnotationListForReceiverParameter.kt

                val receiverParameter = firCallableSymbol.receiverParameter
                return if (receiverParameter?.annotations?.isEmpty() != false) {
                    KtEmptyAnnotationsList(builder.token)
                } else {
                    KtFirAnnotationListForReceiverParameter(firCallableSymbol, receiverParameter, builder)
                }
            }
        }
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Apr 25 07:15:56 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  5. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10ReferenceShortener.kt

                override val thisLabelsToShorten: List<ThisLabelToShortenInfo> = emptyList()
                override val kDocQualifiersToShorten: List<SmartPsiElementPointer<KDocName>> get() = emptyList()
    
                override val isEmpty: Boolean get() = true
            }
        }
    Plain Text
    - Registered: Fri May 03 08:18:13 GMT 2024
    - Last Modified: Mon Nov 20 20:18:18 GMT 2023
    - 2.4K bytes
    - Viewed (0)
  6. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/annotations/firAnnotationUtils.kt

    import java.lang.annotation.ElementType
    
    internal fun mapAnnotationParameters(annotation: FirAnnotation): Map<Name, FirExpression> {
        if (annotation is FirAnnotationCall && annotation.arguments.isEmpty()) return emptyMap()
    
        checkWithAttachment(annotation.resolved, { "By now the annotations argument mapping should have been resolved" }) {
            withFirEntry("annotation", annotation)
    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)
  7. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirResolveExtensionInfoProvider.kt

            get() = analysisSession.token
    
        override fun getResolveExtensionScopeWithTopLevelDeclarations(): KtScope {
            val tools = analysisSession.extensionTools
            if (tools.isEmpty()) return KtEmptyScope(token)
            return KtFirResolveExtensionScope(analysisSession, tools)
        }
    
        @OptIn(KtModuleStructureInternals::class)
        override fun isResolveExtensionFile(file: VirtualFile): Boolean =
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Fri Apr 19 11:06:47 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  8. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/utils/KtFe10JvmTypeMapperContext.kt

                    || type.arguments.isEmpty()
                    || typeDeclaration == null
                    || ErrorUtils.isError(typeDeclaration)
    
            if (skipArguments) {
                writeAsmType(asmType)
                return
            }
    
            val nestedType = getNestedType(type)
            if (nestedType.nested.isEmpty()) {
                writeClassBegin(asmType)
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Fri Mar 10 11:03:45 GMT 2023
    - 8.3K bytes
    - Viewed (0)
  9. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/scopes/KtFe10FileScope.kt

                        yield(ktSymbol)
                    }
                }
            }
        }
    
        override fun getCallableSymbols(names: Collection<Name>): Sequence<KtCallableSymbol> = withValidityAssertion {
            if (names.isEmpty()) return emptySequence()
            val namesSet = names.toSet()
            return getCallableSymbols { it in namesSet }
        }
    
    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)
  10. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/utils/InlineDelegatedPropertyAccessorsAnalyzer.kt

    import org.jetbrains.kotlin.psi.KtTreeVisitorVoid
    import org.jetbrains.kotlin.resolve.BindingContext
    
    @OptIn(KtAnalysisNonPublicApi::class)
    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,
    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)
Back to top