- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 26 for sam_constructor (0.32 sec)
-
analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/symbols/KtFirSymbolProvider.kt
return when (val firSymbol = psi.resolveToFirSymbolOfType<FirFunctionSymbol<*>>(firResolveSession)) { is FirNamedFunctionSymbol -> { if (firSymbol.origin == FirDeclarationOrigin.SamConstructor) { firSymbolBuilder.functionLikeBuilder.buildSamConstructorSymbol(firSymbol) } else { firSymbolBuilder.functionLikeBuilder.buildFunctionSymbol(firSymbol)
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Thu May 23 17:29:30 UTC 2024 - 9.9K bytes - Viewed (0) -
analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/utils/firUtils.kt
internal fun FirCallableSymbol<*>.computeImportableName(useSiteSession: FirSession): FqName? { if (callableId.isLocal) return null // SAM constructors are synthetic, but can be imported if (origin is FirDeclarationOrigin.SamConstructor) return callableId.asSingleFqName() // if classId == null, callable is topLevel val containingClassId = callableId.classId ?: return callableId.asSingleFqName()
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Fri Jun 07 11:53:09 UTC 2024 - 5.6K bytes - Viewed (0) -
analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirExpressionTypeProvider.kt
val callee = (firCall.toReference(firResolveSession.useSiteFirSession) as? FirResolvedNamedReference)?.resolvedSymbol if (callee?.fir?.origin == FirDeclarationOrigin.SamConstructor) { val substitutor = (firCall as? FirQualifiedAccessExpression) ?.createConeSubstitutorFromTypeArguments(rootModuleSession, discardErrorTypes = true) ?: ConeSubstitutor.Empty
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Tue Jun 11 15:45:42 UTC 2024 - 24.4K bytes - Viewed (0) -
analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirReferenceShortener.kt
val constructors = (classLikeSymbol as? FirClassSymbol)?.declarationSymbols?.filterIsInstance<FirConstructorSymbol>().orEmpty() val samConstructor = classLikeSymbol.getSamConstructor() return constructors + listOfNotNull(samConstructor) } fun findFunctionsInScopes(scopes: List<FirScope>, name: Name): List<AvailableSymbol<FirFunctionSymbol<*>>> { return scopes.flatMap { scope ->
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Fri Jun 07 16:54:07 UTC 2024 - 69.6K bytes - Viewed (0) -
analysis/analysis-api-fir/tests-gen/org/jetbrains/kotlin/analysis/api/fir/test/cases/generated/cases/components/resolver/FirIdeNormalAnalysisLibrarySourceModuleResolveCallTestGenerated.java
runTest("analysis/analysis-api/testData/components/resolver/singleByPsi/SamAdapter.kt"); } @Test @TestMetadata("SamConstructor.kt") public void testSamConstructor() { runTest("analysis/analysis-api/testData/components/resolver/singleByPsi/SamConstructor.kt"); } @Test @TestMetadata("samConstructorCall.kt") public void testSamConstructorCall() {
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Tue Jun 04 19:03:00 UTC 2024 - 175.8K bytes - Viewed (0) -
analysis/analysis-api-fir/tests-gen/org/jetbrains/kotlin/analysis/api/fir/test/cases/generated/cases/components/resolver/FirIdeNormalAnalysisLibrarySourceModuleResolveCandidatesTestGenerated.java
runTest("analysis/analysis-api/testData/components/resolver/singleByPsi/SamAdapter.kt"); } @Test @TestMetadata("SamConstructor.kt") public void testSamConstructor() { runTest("analysis/analysis-api/testData/components/resolver/singleByPsi/SamConstructor.kt"); } @Test @TestMetadata("samConstructorCall.kt") public void testSamConstructorCall() {
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Tue Jun 04 19:03:00 UTC 2024 - 175.9K bytes - Viewed (0) -
analysis/analysis-api-fir/tests-gen/org/jetbrains/kotlin/analysis/api/fir/test/cases/generated/cases/components/resolver/FirIdeNormalAnalysisLibrarySourceModuleResolveReferenceTestGenerated.java
runTest("analysis/analysis-api/testData/components/resolver/singleByPsi/SamAdapter.kt"); } @Test @TestMetadata("SamConstructor.kt") public void testSamConstructor() { runTest("analysis/analysis-api/testData/components/resolver/singleByPsi/SamConstructor.kt"); } @Test @TestMetadata("samConstructorCall.kt") public void testSamConstructorCall() {
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Tue Jun 04 19:03:01 UTC 2024 - 175.9K bytes - Viewed (0) -
analysis/analysis-api-fir/tests-gen/org/jetbrains/kotlin/analysis/api/fir/test/cases/generated/cases/components/resolver/FirIdeNormalAnalysisSourceModuleResolveCallTestGenerated.java
runTest("analysis/analysis-api/testData/components/resolver/singleByPsi/SamAdapter.kt"); } @Test @TestMetadata("SamConstructor.kt") public void testSamConstructor() { runTest("analysis/analysis-api/testData/components/resolver/singleByPsi/SamConstructor.kt"); } @Test @TestMetadata("samConstructorCall.kt") public void testSamConstructorCall() {
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Tue Jun 04 19:03:00 UTC 2024 - 215.1K bytes - Viewed (0) -
analysis/analysis-api-fir/tests-gen/org/jetbrains/kotlin/analysis/api/fir/test/cases/generated/cases/components/resolver/FirIdeNormalAnalysisSourceModuleResolveReferenceTestGenerated.java
runTest("analysis/analysis-api/testData/components/resolver/singleByPsi/SamAdapter.kt"); } @Test @TestMetadata("SamConstructor.kt") public void testSamConstructor() { runTest("analysis/analysis-api/testData/components/resolver/singleByPsi/SamConstructor.kt"); } @Test @TestMetadata("samConstructorCall.kt") public void testSamConstructorCall() {
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Tue Jun 04 19:03:01 UTC 2024 - 215.1K bytes - Viewed (0) -
analysis/analysis-api-standalone/tests-gen/org/jetbrains/kotlin/analysis/api/standalone/fir/test/cases/generated/cases/components/resolver/FirStandaloneNormalAnalysisSourceModuleResolveCallTestGenerated.java
runTest("analysis/analysis-api/testData/components/resolver/singleByPsi/SamAdapter.kt"); } @Test @TestMetadata("SamConstructor.kt") public void testSamConstructor() { runTest("analysis/analysis-api/testData/components/resolver/singleByPsi/SamConstructor.kt"); } @Test @TestMetadata("samConstructorCall.kt") public void testSamConstructorCall() {
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Tue Jun 04 19:03:00 UTC 2024 - 215.7K bytes - Viewed (0)