Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 43 for substituted (0.54 sec)

  1. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/signatures/KtCallableSignature.kt

        public val callableIdIfNonLocal: CallableId? get() = callableId
    
        /**
         * Applies a [substitutor] to the given signature and return a new signature with substituted types.
         *
         * @see KaSubstitutor.substitute
         */
        public abstract fun substitute(substitutor: KaSubstitutor): KaCallableSignature<S>
    
        abstract override fun equals(other: Any?): Boolean
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon May 27 09:59:11 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  2. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/components/KtSignatureSubstitutor.kt

         *
         * @see KaSubstitutor.substitute
         */
        public fun <S : KaFunctionLikeSymbol> S.substitute(substitutor: KaSubstitutor): KaFunctionLikeSignature<S> =
            withValidityAssertion { analysisSession.signatureSubstitutor.substitute(this, substitutor) }
    
        /**
         * Applies a [substitutor] to the given symbols and return a signature with substituted types.
         *
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:35 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  3. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/types/KtSubstitutor.kt

        /**
         * substitutes type parameters in a given type corresponding to internal mapping rules.
         *
         * @return substituted type if there was at least one substitution, [type] itself if there was no type parameter to substitute
         */
        public fun substitute(type: KaType): KaType = withValidityAssertion { substituteOrNull(type) ?: type }
    
        /**
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 2K bytes
    - Viewed (0)
  4. analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/types/AbstractAnalysisApiSubstitutorsTest.kt

            val actual = analyseForTest(declaration) {
                val substitutor = SubstitutionParser.parseSubstitutor(analysisSession, mainFile, declaration)
                val symbol = declaration.getSymbol() as KaCallableSymbol
                val type = symbol.returnType
                val substituted = substitutor.substitute(type)
                val substitutedOrNull = substitutor.substituteOrNull(type)
    
                prettyPrint {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 29 17:43:55 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  5. analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/components/signatureSubstitution/AbstractAnalysisApiSignatureContractsTest.kt

            testServices.assertions.assertEquals(symbol.returnType.let(substitutor::substitute), signature.returnType)
    
            testServices.assertions.assertEquals(symbol.valueParameters.size, signature.valueParameters.size)
    
            for ((unsubstituted, substituted) in symbol.valueParameters.zip(signature.valueParameters)) {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  6. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/signatures/KtFunctionLikeSignature.kt

     */
    public abstract class KaFunctionLikeSignature<out S : KaFunctionLikeSymbol> : KaCallableSignature<S>() {
        /**
         * The use-site-substituted value parameters.
         */
        public abstract val valueParameters: List<KaVariableLikeSignature<KaValueParameterSymbol>>
    
        abstract override fun substitute(substitutor: KaSubstitutor): KaFunctionLikeSignature<S>
    }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 1010 bytes
    - Viewed (0)
  7. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/components/KtSymbolDeclarationOverridesProvider.kt

         *
         * E.g., if we have `A.foo` overrides `B.foo` overrides `C.foo`, all two super declarations `B.foo`, `C.foo` will be returned
         *
         * Unwraps substituted overridden symbols
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:35 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  8. analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/components/substitutorProvider/AbstractCreateInheritanceTypeSubstitutorTest.kt

                val superClassSymbol = superClass.getClassOrObjectSymbol()!!
                val substitutor = createInheritanceTypeSubstitutor(baseClass.getClassOrObjectSymbol()!!, superClassSymbol)
                prettyPrint {
                    appendLine("Substitutor: ${stringRepresentation(substitutor)}")
                    if (substitutor != null) {
                        val functions = superClassSymbol.getDeclaredMemberScope().getAllSymbols()
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon May 27 09:59:11 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  9. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/plugins/ide/tooling/r31/AdHocCompositeDependencySubstitutionCrossVersionSpec.groovy

                buildFile << """
                    allprojects {
                        apply plugin: 'java'
                    }
                """
            }
        }
    
        def "EclipseProject model has dependencies substituted in composite"() {
            when:
            def eclipseProject = withConnection {
                model(EclipseProject).withArguments('--include-build', 'buildB').get()
            }
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  10. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/plugins/ide/tooling/r31/PersistentCompositeDependencySubstitutionCrossVersionSpec.groovy

            buildC = singleProjectBuildInSubfolder("buildC") {
                buildFile << """
                    apply plugin: 'java'
                """
            }
        }
    
        def "EclipseProject model has dependencies substituted in composite"() {
            when:
            def eclipseProject = loadToolingModel(EclipseProject)
    
            then:
            assert eclipseProject.classpath.empty
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 8K bytes
    - Viewed (0)
Back to top