Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for Empty (0.98 sec)

  1. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/resolve/extensions/KtResolveExtensionNavigationTargetsProvider.kt

    public abstract class KaResolveExtensionNavigationTargetsProvider {
        /**
         * Provides a [PsiElement] which will be opened on a navigation request for [element].
         *
         * Usually returns a single result. Might return an empty collection if there is no navigation target.
         * Also, might multiple targets in a case of ambiguity or multiple targets for a [symbol]
         *
         * Returned [PsiElement] will be used as a navigation target inside the IDE.
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  2. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirSubstitutorFactory.kt

    ) : KaSubstitutorFactory(), KaFirSessionComponent {
    
        override fun buildSubstitutor(builder: KaSubstitutorBuilder): KaSubstitutor {
            if (builder.mappings.isEmpty()) return KaSubstitutor.Empty(token)
    
            val firSubstitution = buildMap {
                builder.mappings.forEach { (ktTypeParameterSymbol, ktType) ->
                    check(ktTypeParameterSymbol is KaFirTypeParameterSymbol)
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  3. analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/components/testUtils.kt

                prefix = "[\n  ",
                postfix = "\n]"
            ) {
                it?.let { stringRepresentation(it).indented() } ?: "null"
            }
            is PsiElement -> this.text
            is KaSubstitutor.Empty -> "<empty substitutor>"
            is KaMapBackedSubstitutor -> {
                val mappingText = getAsMap().entries
                    .joinToString(prefix = "{", postfix = "}") { (k, v) -> stringRepresentation(k) + " = " + v }
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed Jun 05 16:16:39 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  4. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirSubstitutorProvider.kt

        override fun createSubstitutor(
            subClass: KaClassOrObjectSymbol,
            superClass: KaClassOrObjectSymbol,
        ): KaSubstitutor? {
            if (subClass == superClass) return KaSubstitutor.Empty(token)
    
            val baseFirSymbol = subClass.firSymbol
            val superFirSymbol = superClass.firSymbol
            val inheritancePath = collectInheritancePath(baseFirSymbol, superFirSymbol) ?: return null
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 3K bytes
    - Viewed (0)
  5. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10ResolveExtensionInfoProvider.kt

    import org.jetbrains.kotlin.analysis.api.lifetime.KaLifetimeToken
    import org.jetbrains.kotlin.analysis.api.scopes.KaScope
    import org.jetbrains.kotlin.psi.KtElement
    
    // Resolve extensions are not supported on FE1.0, so return empty results.
    internal class KaFe10ResolveExtensionInfoProvider(
        override val analysisSession: KaFe10Session,
    ) : KaResolveExtensionInfoProvider(), KaFe10SessionComponent {
        override val token: KaLifetimeToken
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:35 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  6. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/signatures/KtFirFunctionLikeSignature.kt

        }
    
        override fun substitute(substitutor: KaSubstitutor): KaFirFunctionLikeSignature<S> = withValidityAssertion {
            if (substitutor is KaSubstitutor.Empty) return@withValidityAssertion this
            require(substitutor is AbstractKaFirSubstitutor<*>)
    
            KaFirFunctionLikeSubstitutorBasedSignature(token, firSymbol, firSymbolBuilder, substitutor.substitutor)
        }
    }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  7. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/components/KtCompilerFacility.kt

         *
         * @property output Output files produced by the compiler. For the JVM target, these are class files and '.kotlin_module'.
         * @property capturedValues Context values captured by a [KtCodeFragment]. Empty for an ordinary [KtFile].
         */
        public class Success(
            public val output: List<KaCompiledFile>,
            public val capturedValues: List<CodeFragmentCapturedValue>
        ) : KaCompilationResult()
    
        /**
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:35 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  8. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/types/KtSubstitutor.kt

         */
        public fun substituteOrNull(type: KaType): KaType?
    
        /**
         * [KaSubstitutor] which does nothing on a type and always returns the type intact
         */
        public class Empty(override val token: KaLifetimeToken) : KaSubstitutor {
            override fun substituteOrNull(type: KaType): KaType? = withValidityAssertion { null }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 2K bytes
    - Viewed (0)
  9. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/psiBased/KtFe10PsiDefaultBackingFieldSymbol.kt

            get() = owningProperty.token
    
        override val annotations: KaAnnotationList
            get() = withValidityAssertion {
                KaFe10AnnotationList.create(descriptor?.annotations ?: Annotations.EMPTY, analysisContext)
            }
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  10. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/components/KtTypeProvider.kt

            withValidityAssertion { analysisSession.typeProvider.buildSelfClassType(this) }
    
        /**
         * Computes the common super type of the given collection of [KaType].
         *
         * If the collection is empty, it returns `null`.
         */
        public fun commonSuperType(types: Collection<KaType>): KaType? =
            withValidityAssertion { analysisSession.typeProvider.commonSuperType(types) }
    
        /**
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 11.4K bytes
    - Viewed (0)
Back to top