- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 190 for substituted (0.2 sec)
-
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) -
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) -
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) -
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) -
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) -
src/go/types/subst.go
package types import ( "go/token" ) type substMap map[*TypeParam]Type // makeSubstMap creates a new substitution map mapping tpars[i] to targs[i]. // If targs[i] is nil, tpars[i] is not substituted. func makeSubstMap(tpars []*TypeParam, targs []Type) substMap { assert(len(tpars) == len(targs)) proj := make(substMap, len(tpars)) for i, tpar := range tpars { proj[tpar] = targs[i] } return proj }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:04:07 UTC 2024 - 11.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/subst.go
package types2 import ( "cmd/compile/internal/syntax" ) type substMap map[*TypeParam]Type // makeSubstMap creates a new substitution map mapping tpars[i] to targs[i]. // If targs[i] is nil, tpars[i] is not substituted. func makeSubstMap(tpars []*TypeParam, targs []Type) substMap { assert(len(tpars) == len(targs)) proj := make(substMap, len(tpars)) for i, tpar := range tpars { proj[tpar] = targs[i] } return proj }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:04:07 UTC 2024 - 11K bytes - Viewed (0) -
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) -
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) -
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)