Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,128 for require (0.18 sec)

  1. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirTypeProvider.kt

            require(type is KtFirType)
            val coneType = type.coneType
            val substitutor = EnhancedForWarningConeSubstitutor(typeContext)
            val enhancedConeType = substitutor.substituteType(coneType)
    
            return enhancedConeType?.asKtType()
        }
    
        override fun buildSelfClassType(symbol: KtNamedClassOrObjectSymbol): KtType {
            require(symbol is KtFirNamedClassOrObjectSymbol)
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Feb 20 08:50:04 GMT 2024
    - 16.3K bytes
    - Viewed (0)
  2. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirSymbolInfoProvider.kt

            require(symbol is KtFirSymbol<*>)
            return symbol.firSymbol.getDeprecationForCallSite(
                analysisSession.useSiteSession,
                AnnotationUseSiteTarget.PROPERTY_GETTER,
                AnnotationUseSiteTarget.PROPERTY,
            )
    
        }
    
        override fun getSetterDeprecation(symbol: KtPropertySymbol): DeprecationInfo? {
            require(symbol is KtFirSymbol<*>)
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Sep 19 22:14:09 GMT 2023
    - 7.1K bytes
    - Viewed (0)
  3. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10TypeProvider.kt

            require(type is KtFe10Type)
            return typeApproximator.approximateToSuperType(type.fe10Type, PublicApproximatorConfiguration(approximateLocalTypes))
                ?.toKtType(analysisContext)
        }
    
        override fun approximateToSubPublicDenotableType(type: KtType, approximateLocalTypes: Boolean): KtType? {
            require(type is KtFe10Type)
    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)
  4. okhttp/src/main/kotlin/okhttp3/internal/-ResponseCommon.kt

      }
    
    private fun checkSupportResponse(
      name: String,
      response: Response?,
    ) {
      response?.apply {
        require(networkResponse == null) { "$name.networkResponse != null" }
        require(cacheResponse == null) { "$name.cacheResponse != null" }
        require(priorResponse == null) { "$name.priorResponse != null" }
      }
    }
    
    fun Response.Builder.commonPriorResponse(priorResponse: Response?) =
      apply {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Apr 15 13:24:48 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  5. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsRecordCodec.kt

          writeShort(0) // additional
    
          val nameBuf = Buffer()
          val labels = host.split('.').dropLastWhile { it.isEmpty() }
          for (label in labels) {
            val utf8ByteCount = label.utf8Size()
            require(utf8ByteCount == label.length.toLong()) { "non-ascii hostname: $host" }
            nameBuf.writeByte(utf8ByteCount.toInt())
            nameBuf.writeUtf8(label)
          }
          nameBuf.writeByte(0) // end
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  6. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/signatures/KtFirVariableLikeSignature.kt

        override fun substitute(substitutor: KtSubstitutor): KtFirVariableLikeSignature<S> = withValidityAssertion {
            if (substitutor is KtSubstitutor.Empty) return@withValidityAssertion this
            require(substitutor is AbstractKtFirSubstitutor<*>)
    
            KtFirVariableLikeSubstitutorBasedSignature(token, firSymbol, firSymbolBuilder, substitutor.substitutor)
        }
    }
    
    Plain Text
    - Registered: Fri Mar 22 08:18:09 GMT 2024
    - Last Modified: Thu Apr 27 10:59:30 GMT 2023
    - 4.7K bytes
    - Viewed (0)
  7. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/signatures/KtFirFunctionLikeSignature.kt

        }
    
        override fun substitute(substitutor: KtSubstitutor): KtFirFunctionLikeSignature<S> = withValidityAssertion {
            if (substitutor is KtSubstitutor.Empty) return@withValidityAssertion this
            require(substitutor is AbstractKtFirSubstitutor<*>)
    
            KtFirFunctionLikeSubstitutorBasedSignature(token, firSymbol, firSymbolBuilder, substitutor.substitutor)
        }
    }
    
    Plain Text
    - Registered: Fri Mar 22 08:18:09 GMT 2024
    - Last Modified: Thu Apr 27 10:59:30 GMT 2023
    - 5.2K bytes
    - Viewed (0)
  8. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/utils/KtFe10TypeSystemCommonBackendContextForTypeMapping.kt

            require(this is TypeConstructor)
            return when (this) {
                is NewTypeVariableConstructor -> originalTypeParameter != null
                else -> declarationDescriptor is TypeParameterDescriptor
            }
        }
    
        override fun TypeConstructorMarker.asTypeParameter(): TypeParameterMarker {
            require(this is TypeConstructor)
            return when (this) {
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Fri Feb 10 16:01:04 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  9. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10SubtypingComponent.kt

            require(first is KtFe10Type)
            require(second is KtFe10Type)
            return analysisContext.resolveSession.kotlinTypeCheckerOfOwnerModule.equalTypes(first.fe10Type, second.fe10Type)
        }
    
        override fun isSubTypeOf(subType: KtType, superType: KtType): Boolean {
            require(subType is KtFe10Type)
            require(superType is KtFe10Type)
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Jan 10 12:54:17 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/ConnectionSpec.kt

          apply {
            require(tls) { "no cipher suites for cleartext connections" }
            require(cipherSuites.isNotEmpty()) { "At least one cipher suite is required" }
    
            this.cipherSuites = cipherSuites.copyOf() as Array<String> // Defensive copy.
          }
    
        fun allEnabledTlsVersions() =
          apply {
            require(tls) { "no TLS versions for cleartext connections" }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 13.4K bytes
    - Viewed (0)
Back to top