- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 120 for constructor (0.19 sec)
-
analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10TypeProvider.kt
return true } val aConstructor = a.constructor val bConstructor = b.constructor if (aConstructor is IntersectionTypeConstructor) { return aConstructor.supertypes.all { areTypesCompatible(it, b) } } if (bConstructor is IntersectionTypeConstructor) { return bConstructor.supertypes.all { areTypesCompatible(a, it) } }
Plain Text - Registered: Fri Apr 26 08:18:10 GMT 2024 - Last Modified: Mon Jan 29 09:37:59 GMT 2024 - 23.3K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Request.kt
val isHttps: Boolean get() = url.isHttps /** * Constructs a new request. * * Use [Builder] for more fluent construction, including helper methods for various HTTP methods. * * @param method defaults to "GET" if [body] is null, and "POST" otherwise. */ constructor( url: HttpUrl, headers: Headers = headersOf(),
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 06 04:17:44 GMT 2024 - 10.5K bytes - Viewed (0) -
analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/diagnostics/KtFirDataClassConverters.kt
firDiagnostic as KtPsiDiagnostic, token, ) } add(FirErrors.CONSTRUCTOR_IN_OBJECT) { firDiagnostic -> ConstructorInObjectImpl( firDiagnostic as KtPsiDiagnostic, token, ) } add(FirErrors.CONSTRUCTOR_IN_INTERFACE) { firDiagnostic -> ConstructorInInterfaceImpl( firDiagnostic as KtPsiDiagnostic,
Plain Text - Registered: Fri Apr 26 08:18:10 GMT 2024 - Last Modified: Wed Apr 24 09:49:26 GMT 2024 - 208.3K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http2/Header.kt
@JvmField val value: ByteString, ) { @JvmField val hpackSize = 32 + name.size + value.size // TODO: search for toLowerCase and consider moving logic here. constructor(name: String, value: String) : this(name.encodeUtf8(), value.encodeUtf8()) constructor(name: ByteString, value: String) : this(name, value.encodeUtf8()) override fun toString(): String = "${name.utf8()}: ${value.utf8()}" companion object {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 2K bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/sources/KotlinSourceQueries.kt
} private fun KtFile.isDocumentedAsSince(version: String, declaringClass: CtClass, constructor: CtConstructor): Boolean { val classFqName = declaringClass.name val ctorParamTypes = constructor.parameterTypes.map { it.name } return collectDescendantsOfType<KtConstructor<*>>() .firstOrNull { ktCtor ->
Plain Text - Registered: Wed May 01 11:36:15 GMT 2024 - Last Modified: Wed Dec 20 20:38:19 GMT 2023 - 11.1K bytes - Viewed (0) -
build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/KotlinInternalFilteringTest.kt
} } private val reportedMembers = listOf( "Class" to "AddedClass" ) + reportedMembersFor("AddedClass") + listOf( "Constructor" to "AddedClass(java.lang.String)", "Constructor" to "AddedClass()", "Class" to "AddedEnum", "Field" to "FOO" ) + reportedMembersFor("AddedEnum", isEnum = true) + listOf(
Plain Text - Registered: Wed May 01 11:36:15 GMT 2024 - Last Modified: Tue Jul 11 06:57:51 GMT 2023 - 6.2K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/ConnectionPool.kt
* * @constructor Create a new connection pool with tuning parameters appropriate for a single-user * application. The tuning parameters in this pool are subject to change in future OkHttp releases. * Currently this pool holds up to 5 idle connections which will be evicted after 5 minutes of * inactivity. */ class ConnectionPool internal constructor( internal val delegate: RealConnectionPool, ) {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 03 20:39:41 GMT 2024 - 5.6K bytes - Viewed (0) -
analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/FirReferenceResolveHelper.kt
// If we are at a super-type constructor call, adjust the resolution expression so that we // get the constructor instead of the class. // // For the example: // // class A { // constructor() // } // class B: <caret>A() // // We want to resolve to the secondary constructor in A. Therefore, we check that the caret is at a supertype
Plain Text - Registered: Fri Apr 26 08:18:10 GMT 2024 - Last Modified: Mon Apr 15 10:59:01 GMT 2024 - 37.5K bytes - Viewed (0) -
analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/contracts/firContractUtils.kt
private fun <T> visitValueParameterReference( valueParameterReference: ConeValueParameterReference, constructor: (KtParameterSymbol) -> T ): T = constructor( if (valueParameterReference.parameterIndex == -1) firFunctionSymbol.receiverParameter ?: errorWithAttachment("${firFunctionSymbol::class} should contain a receiver") {
Plain Text - Registered: Fri Apr 26 08:18:10 GMT 2024 - Last Modified: Wed Jul 26 14:29:20 GMT 2023 - 7K bytes - Viewed (0) -
mockwebserver-junit5/README.md
... } } ``` Alternately you may add the [MockWebServer] as a constructor parameter: ``` class MyTest { private final MockWebServer server; MyTest(MockWebServer server) { this.server = server; } @Test void test() { ... } } ``` Constructor injection is particularly concise in Kotlin: ``` class MyTest(
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Jan 14 10:20:09 GMT 2024 - 1.3K bytes - Viewed (0)