{"signature":"fun box ( ) : String","body":"= Wrapper ( \"\" ) . prop","docstring":""} {"signature":"fun processClassOrObject ( scope : LexicalWritableScope ? , context : ExpressionTypingContext , containingDeclaration : DeclarationDescriptor , classOrObject : KtClassOrObject )","body":"{ val module = DescriptorUtils . getContainingModule ( containingDeclaration ) val project = classOrObject . project val moduleContext = globalContext . withProject ( project ) . withModule ( module ) val container = createContainerForLazyLocalClassifierAnalyzer ( moduleContext , context . trace , platform , lookupTracker , languageVersionSettings , context . statementFilter , LocalClassDescriptorHolder ( scope , classOrObject , containingDeclaration , storageManager , context , module , descriptorResolver , functionDescriptorResolver , typeResolver , annotationResolver , supertypeLoopChecker , languageVersionSettings , SyntheticResolveExtension . getInstance ( project ) , delegationFilter , wrappedTypeFactory , kotlinTypeChecker , samConversionResolver , additionalClassPartsProvider , sealedClassInheritorsProvider ) , analyzerServices , controlFlowInformationProviderFactory , absentDescriptorHandler ) container . get < LazyTopDownAnalyzer > ( ) . analyzeDeclarations ( TopDownAnalysisMode . LocalDeclarations , listOf ( classOrObject ) , context . dataFlowInfo , localContext = context ) }","docstring":""} {"signature":"fun isMyClass ( element : PsiElement ) : Boolean","body":"= element == myClass","docstring":""} {"signature":"fun insideMyClass ( element : PsiElement ) : Boolean","body":"= PsiTreeUtil . isAncestor ( myClass , element , false )","docstring":""} {"signature":"fun getClassDescriptor ( classOrObject : KtClassOrObject , declarationScopeProvider : DeclarationScopeProvider ) : ClassDescriptor","body":"{ assert ( isMyClass ( classOrObject ) ) { \"\" } if ( classDescriptor == null ) { classDescriptor = LazyClassDescriptor ( object : LazyClassContext { override val declarationScopeProvider = declarationScopeProvider override val inferenceSession = expressionTypingContext . inferenceSession override val storageManager = this@LocalClassDescriptorHolder . storageManager override val trace = expressionTypingContext . trace override val moduleDescriptor = this@LocalClassDescriptorHolder . moduleDescriptor override val descriptorResolver = this@LocalClassDescriptorHolder . descriptorResolver override val functionDescriptorResolver = this@LocalClassDescriptorHolder . functionDescriptorResolver override val typeResolver = this@LocalClassDescriptorHolder . typeResolver override val declarationProviderFactory = object : DeclarationProviderFactory { override fun getClassMemberDeclarationProvider ( classLikeInfo : KtClassLikeInfo ) : ClassMemberDeclarationProvider { return PsiBasedClassMemberDeclarationProvider ( storageManager , classLikeInfo ) } override fun getPackageMemberDeclarationProvider ( packageFqName : FqName ) : PackageMemberDeclarationProvider ? { throw UnsupportedOperationException ( \"\" ) } override fun diagnoseMissingPackageFragment ( fqName : FqName , file : KtFile ? ) { throw UnsupportedOperationException ( ) } } override val annotationResolver = this@LocalClassDescriptorHolder . annotationResolver override val lookupTracker : LookupTracker = LookupTracker . DO_NOTHING override val supertypeLoopChecker = this@LocalClassDescriptorHolder . supertypeLoopChecker override val languageVersionSettings = this@LocalClassDescriptorHolder . languageVersionSettings override val syntheticResolveExtension = this@LocalClassDescriptorHolder . syntheticResolveExtension override val delegationFilter : DelegationFilter = this@LocalClassDescriptorHolder . delegationFilter override val wrappedTypeFactory : WrappedTypeFactory = this@LocalClassDescriptorHolder . wrappedTypeFactory override val kotlinTypeCheckerOfOwnerModule : NewKotlinTypeChecker = this@LocalClassDescriptorHolder . kotlinTypeChecker override val samConversionResolver : SamConversionResolver = this@LocalClassDescriptorHolder . samConversionResolver override val additionalClassPartsProvider : AdditionalClassPartsProvider = this@LocalClassDescriptorHolder . additionalClassPartsProvider override val sealedClassInheritorsProvider : SealedClassInheritorsProvider = this@LocalClassDescriptorHolder . sealedClassInheritorsProvider } , containingDeclaration , classOrObject . nameAsSafeName , KtClassInfoUtil . createClassOrObjectInfo ( classOrObject ) , classOrObject . hasModifier ( KtTokens . EXTERNAL_KEYWORD ) ) writableScope ? . addClassifierDescriptor ( classDescriptor ! ! ) } return classDescriptor ! ! }","docstring":""} {"signature":"fun getResolutionScopeForClass ( classOrObject : KtClassOrObject ) : LexicalScope","body":"{ assert ( isMyClass ( classOrObject ) ) { \"\" } return expressionTypingContext . scope }","docstring":""} {"signature":"override fun getClassDescriptor ( classOrObject : KtClassOrObject , location : LookupLocation ) : ClassDescriptor","body":"{ if ( localClassDescriptorManager . isMyClass ( classOrObject ) ) { return localClassDescriptorManager . getClassDescriptor ( classOrObject , scopeProvider ) } return super . getClassDescriptor ( classOrObject , location ) }","docstring":""} {"signature":"override fun getClassDescriptorIfAny ( classOrObject : KtClassOrObject , location : LookupLocation ) : ClassDescriptor ?","body":"{ if ( localClassDescriptorManager . isMyClass ( classOrObject ) ) { return localClassDescriptorManager . getClassDescriptor ( classOrObject , scopeProvider ) } return super . getClassDescriptorIfAny ( classOrObject , location ) }","docstring":""} {"signature":"override fun getResolutionScopeForDeclaration ( elementOfDeclaration : PsiElement ) : LexicalScope","body":"{ if ( localClassDescriptorManager . isMyClass ( elementOfDeclaration ) ) { return localClassDescriptorManager . getResolutionScopeForClass ( elementOfDeclaration as KtClassOrObject ) } return super . getResolutionScopeForDeclaration ( elementOfDeclaration ) }","docstring":""} {"signature":"override fun getOuterDataFlowInfoForDeclaration ( elementOfDeclaration : PsiElement ) : DataFlowInfo","body":"{ if ( localClassDescriptorManager . insideMyClass ( elementOfDeclaration ) ) { return localClassDescriptorManager . expressionTypingContext . dataFlowInfo } return super . getOuterDataFlowInfoForDeclaration ( elementOfDeclaration ) }","docstring":""} {"signature":"@ Test fun testSelectJoin ( )","body":"= runTest { expect ( ) val result = runCatching { doSelect ( ) } expect ( ) verifyStackTrace ( \"\" , result . exceptionOrNull ( ) ! ! ) finish ( ) }","docstring":""} {"signature":"private suspend fun doSelect ( ) : Int","body":"{ val job = CompletableDeferred ( Unit ) return select { job . onJoin { yield ( ) expect ( ) throw RecoverableTestException ( ) } } }","docstring":""} {"signature":"@ Test fun testSelectCompletedAwait ( )","body":"= runTest { val deferred = CompletableDeferred < Unit > ( ) deferred . completeExceptionally ( RecoverableTestException ( ) ) val result = runCatching { doSelectAwait ( deferred ) } verifyStackTrace ( \"\" , result . exceptionOrNull ( ) ! ! ) }","docstring":""} {"signature":"private suspend fun doSelectAwait ( deferred : Deferred < Unit > ) : Int","body":"{ return select { deferred . onAwait { yield ( ) } } }","docstring":""} {"signature":"@ Test fun testSelectOnReceive ( )","body":"= runTest { val c = Channel < Unit > ( ) c . close ( ) val result = kotlin . runCatching { doSelectOnReceive ( c ) } verifyStackTrace ( \"\" , result . exceptionOrNull ( ) ! ! ) }","docstring":""} {"signature":"private suspend fun doSelectOnReceive ( c : Channel < Unit > )","body":"{ select < Unit > { c . onReceive { expectUnreached ( ) } } }","docstring":""} {"signature":"abstract fun Canvas . drawDetection ( detection : T )","body":"abstract fun Canvas . drawDetection ( detection : T )","docstring":"/**\n * Draw given detection result on the [Canvas].\n */"} {"signature":"open fun onDetectionSet ( detection : T ? )","body":"= Unit","docstring":"/**\n * Called when a new detection result is set.\n */"} {"signature":"fun setDetection ( detection : T ? )","body":"{ synchronized ( this ) { _detection = detection onDetectionSet ( detection ) postInvalidate ( ) } }","docstring":"/**\n * Set current detection result or null if nothing was detected.\n */"} {"signature":"override fun onDraw ( canvas : Canvas )","body":"{ super . onDraw ( canvas ) synchronized ( this ) { val detection = _detection if ( detection != null ) { canvas . drawDetection ( detection ) } } }","docstring":""} {"signature":"fun bar ( )","body":"= bar","docstring":""} {"signature":"override fun hasNext ( )","body":"= it . hasNext ( ) . also { hasNextCtr ++ }","docstring":""} {"signature":"override fun next ( )","body":"= it . next ( ) . also { nextCtr ++ }","docstring":""} {"signature":"override fun iterator ( )","body":"= CountingIterableIterator ( s . iterator ( ) )","docstring":""} {"signature":"fun box ( ) : String","body":"{ val s = StringBuilder ( ) for ( ( _ , x ) in xs . withIndex ( ) ) { s . append ( \"\" ) } val ss = s . toString ( ) if ( ss != \"\" ) return \"\" if ( xs . hasNextCtr != ) return \"\" if ( xs . nextCtr != ) return \"\" return \"\" }","docstring":""} {"signature":"fun bar ( r : ( ) -> Int = this :: p ) : Int","body":"fun bar ( r : ( ) -> Int = this :: p ) : Int","docstring":""} {"signature":"actual fun bar ( r : ( ) -> Int )","body":"= r ( )","docstring":""} {"signature":"fun box ( ) : String","body":"{ val bar = Foo ( ) . bar ( ) if ( bar != ) return \"\" return \"\" }","docstring":""} {"signature":"@ Test fun testExampleContext01 ( )","body":"{ test ( \"\" ) { kotlinx . coroutines . guide . exampleContext01 . main ( ) } . verifyLinesStartUnordered ( \"\" , \"\" , \"\" , \"\" ) }","docstring":""} {"signature":"@ Test fun testExampleContext02 ( )","body":"{ test ( \"\" ) { kotlinx . coroutines . guide . exampleContext02 . main ( ) } . verifyLinesStart ( \"\" , \"\" , \"\" , \"\" ) }","docstring":""} {"signature":"@ Test fun testExampleContext03 ( )","body":"{ test ( \"\" ) { kotlinx . coroutines . guide . exampleContext03 . main ( ) } . verifyLinesFlexibleThread ( \"\" , \"\" , \"\" ) }","docstring":""} {"signature":"@ Test fun testExampleContext04 ( )","body":"{ test ( \"\" ) { kotlinx . coroutines . guide . exampleContext04 . main ( ) } . verifyLines ( \"\" , \"\" , \"\" ) }","docstring":""} {"signature":"@ Test fun testExampleContext05 ( )","body":"{ test ( \"\" ) { kotlinx . coroutines . guide . exampleContext05 . main ( ) } . also { lines -> check ( lines . size == && lines [ ] . startsWith ( \"\" ) ) } }","docstring":""} {"signature":"@ Test fun testExampleContext06 ( )","body":"{ test ( \"\" ) { kotlinx . coroutines . guide . exampleContext06 . main ( ) } . verifyLines ( \"\" , \"\" , \"\" , \"\" ) }","docstring":""} {"signature":"@ Test fun testExampleContext07 ( )","body":"{ test ( \"\" ) { kotlinx . coroutines . guide . exampleContext07 . main ( ) } . verifyLines ( \"\" , \"\" , \"\" , \"\" , \"\" ) }","docstring":""} {"signature":"@ Test fun testExampleContext08 ( )","body":"{ test ( \"\" ) { kotlinx . coroutines . guide . exampleContext08 . main ( ) } . verifyLinesFlexibleThread ( \"\" , \"\" , \"\" , \"\" ) }","docstring":""} {"signature":"@ Test fun testExampleContext09 ( )","body":"{ test ( \"\" ) { kotlinx . coroutines . guide . exampleContext09 . main ( ) } . verifyLinesFlexibleThread ( \"\" ) }","docstring":""} {"signature":"@ Test fun testExampleContext10 ( )","body":"{ test ( \"\" ) { kotlinx . coroutines . guide . exampleContext10 . main ( ) } . verifyLines ( \"\" , \"\" , \"\" , \"\" ) }","docstring":""} {"signature":"@ Test fun testExampleContext11 ( )","body":"{ test ( \"\" ) { kotlinx . coroutines . guide . exampleContext11 . main ( ) } . verifyLinesFlexibleThread ( \"\" , \"\" , \"\" , \"\" ) }","docstring":""} {"signature":"suspend fun who ( sender : String )","body":"{ prevSender = sender }","docstring":""} {"signature":"suspend fun sendTo ( recipient : String , sender : String , message : String )","body":"{ }","docstring":""} {"signature":"suspend fun message ( sender : String , message : String )","body":"{ }","docstring":""} {"signature":"private suspend fun receivedMessage ( id : String , command : String )","body":"{ when { command . startsWith ( \"\" ) -> server . who ( id ) command . startsWith ( \"\" ) -> { val newName = command . removePrefix ( \"\" ) . trim ( ) when { newName . isEmpty ( ) -> server . sendTo ( id , \"\" , \"\" ) else -> server . message ( id , newName ) } } command . startsWith ( \"\" ) -> server . sendTo ( id , \"\" , \"\" ) else -> server . message ( id , command ) } }","docstring":""} {"signature":"fun builder ( c : suspend ( ) -> Unit )","body":"{ c . startCoroutine ( EmptyContinuation ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ builder { receivedMessage ( \"\" , \"\" ) } return prevSender }","docstring":""} {"signature":"internal fun internalFun1 ( )","body":"= internalVal","docstring":""} {"signature":"@ JvmStatic fun getOverriddenBuiltinFunctionWithErasedValueParametersInJava ( functionDescriptor : FunctionDescriptor ) : FunctionDescriptor ?","body":"{ if ( ! functionDescriptor . name . sameAsBuiltinMethodWithErasedValueParameters ) return null return functionDescriptor . firstOverridden { it . hasErasedValueParametersInJava } as FunctionDescriptor ? }","docstring":""} {"signature":"@ JvmStatic fun getDefaultValueForOverriddenBuiltinFunction ( functionDescriptor : FunctionDescriptor ) : TypeSafeBarrierDescription ?","body":"{ if ( functionDescriptor . name !in ERASED_VALUE_PARAMETERS_SHORT_NAMES ) return null return functionDescriptor . firstOverridden { it . computeJvmSignature ( ) in SIGNATURE_TO_DEFAULT_VALUES_MAP . keys } ? . let { SIGNATURE_TO_DEFAULT_VALUES_MAP [ it . computeJvmSignature ( ) ] } }","docstring":""} {"signature":"fun CallableMemberDescriptor . isBuiltinWithSpecialDescriptorInJvm ( ) : Boolean","body":"{ if ( ! KotlinBuiltIns . isBuiltIn ( this ) ) return false return getSpecialSignatureInfo ( ) ? . isObjectReplacedWithTypeParameter ? : false || doesOverrideBuiltinWithDifferentJvmName ( ) }","docstring":""} {"signature":"@ JvmStatic fun CallableMemberDescriptor . getSpecialSignatureInfo ( ) : SpecialSignatureInfo ?","body":"{ if ( name !in ERASED_VALUE_PARAMETERS_SHORT_NAMES ) return null val builtinSignature = firstOverridden { it is FunctionDescriptor && it . hasErasedValueParametersInJava } ? . computeJvmSignature ( ) ? : return null return getSpecialSignatureInfo ( builtinSignature ) }","docstring":""} {"signature":"fun getJvmName ( functionDescriptor : SimpleFunctionDescriptor ) : Name ?","body":"{ return SIGNATURE_TO_JVM_REPRESENTATION_NAME [ functionDescriptor . computeJvmSignature ( ) ? : return null ] }","docstring":""} {"signature":"fun isBuiltinFunctionWithDifferentNameInJvm ( functionDescriptor : SimpleFunctionDescriptor ) : Boolean","body":"{ return KotlinBuiltIns . isBuiltIn ( functionDescriptor ) && functionDescriptor . firstOverridden { SIGNATURE_TO_JVM_REPRESENTATION_NAME . containsKey ( functionDescriptor . computeJvmSignature ( ) ) } != null }","docstring":""} {"signature":"@ Suppress ( \"\" ) fun < T : CallableMemberDescriptor > T . getOverriddenBuiltinWithDifferentJvmName ( ) : T ?","body":"{ if ( name !in SpecialGenericSignatures . ORIGINAL_SHORT_NAMES && propertyIfAccessor . name !in BuiltinSpecialProperties . SPECIAL_SHORT_NAMES ) return null return when ( this ) { is PropertyDescriptor , is PropertyAccessorDescriptor -> firstOverridden { ClassicBuiltinSpecialProperties . hasBuiltinSpecialPropertyFqName ( it . propertyIfAccessor ) } as T ? is SimpleFunctionDescriptor -> firstOverridden { BuiltinMethodsWithDifferentJvmName . isBuiltinFunctionWithDifferentNameInJvm ( it as SimpleFunctionDescriptor ) } as T ? else -> null } }","docstring":""} {"signature":"fun CallableMemberDescriptor . doesOverrideBuiltinWithDifferentJvmName ( ) : Boolean","body":"= getOverriddenBuiltinWithDifferentJvmName ( ) != null","docstring":""} {"signature":"@ Suppress ( \"\" ) fun < T : CallableMemberDescriptor > T . getOverriddenSpecialBuiltin ( ) : T ?","body":"{ getOverriddenBuiltinWithDifferentJvmName ( ) ? . let { return it } if ( ! name . sameAsBuiltinMethodWithErasedValueParameters ) return null return firstOverridden { KotlinBuiltIns . isBuiltIn ( it ) && it . getSpecialSignatureInfo ( ) != null } as T ? }","docstring":""} {"signature":"@ Suppress ( \"\" ) fun < T : CallableMemberDescriptor > T . getOverriddenBuiltinReflectingJvmDescriptor ( ) : T ?","body":"{ getOverriddenBuiltinWithDifferentJvmName ( ) ? . let { return it } if ( ! name . sameAsBuiltinMethodWithErasedValueParameters ) return null return firstOverridden { KotlinBuiltIns . isBuiltIn ( it ) && it . getSpecialSignatureInfo ( ) ? . isObjectReplacedWithTypeParameter ? : false } ? . original as T ? }","docstring":""} {"signature":"fun getJvmMethodNameIfSpecial ( callableMemberDescriptor : CallableMemberDescriptor ) : String ?","body":"{ val overriddenBuiltin = getOverriddenBuiltinThatAffectsJvmName ( callableMemberDescriptor ) ? . propertyIfAccessor ? : return null return when ( overriddenBuiltin ) { is PropertyDescriptor -> overriddenBuiltin . getBuiltinSpecialPropertyGetterName ( ) is SimpleFunctionDescriptor -> BuiltinMethodsWithDifferentJvmName . getJvmName ( overriddenBuiltin ) ? . asString ( ) else -> null } }","docstring":""} {"signature":"private fun getOverriddenBuiltinThatAffectsJvmName ( callableMemberDescriptor : CallableMemberDescriptor ) : CallableMemberDescriptor ?","body":"= if ( KotlinBuiltIns . isBuiltIn ( callableMemberDescriptor ) ) callableMemberDescriptor . getOverriddenBuiltinWithDifferentJvmName ( ) else null","docstring":""} {"signature":"fun ClassDescriptor . hasRealKotlinSuperClassWithOverrideOf ( specialCallableDescriptor : CallableDescriptor ) : Boolean","body":"{ val builtinContainerDefaultType = ( specialCallableDescriptor . containingDeclaration as ClassDescriptor ) . defaultType var superClassDescriptor = DescriptorUtils . getSuperClassDescriptor ( this ) while ( superClassDescriptor != null ) { if ( superClassDescriptor !is JavaClassDescriptor ) { val doesOverrideBuiltinDeclaration = TypeCheckingProcedure . findCorrespondingSupertype ( superClassDescriptor . defaultType , builtinContainerDefaultType ) != null if ( doesOverrideBuiltinDeclaration ) { return ! KotlinBuiltIns . isBuiltIn ( superClassDescriptor ) } } superClassDescriptor = DescriptorUtils . getSuperClassDescriptor ( superClassDescriptor ) } return false }","docstring":""} {"signature":"fun CallableMemberDescriptor . isFromJavaOrBuiltins ( )","body":"= isFromJava || KotlinBuiltIns . isBuiltIn ( this )","docstring":""} {"signature":"fun shouldContinue ( i : Int )","body":"= i < ","docstring":""} {"signature":"fun box ( )","body":"{ var x = do { var z = if ( shouldContinue ( x ++ ) ) { continue } var y = } while ( x < z ) }","docstring":""} {"signature":"override fun foo ( x : String ) : String","body":"= \"\"","docstring":""} {"signature":"override fun bar ( x : String ) : String","body":"= \"\"","docstring":""} {"signature":"override fun bar ( x : String ) : String","body":"= \"\"","docstring":""} {"signature":"fun foo ( x : String = \"\" ) : String","body":"= \"\"","docstring":""} {"signature":"fun bar ( x : String = \"\" ) : String","body":"= \"\"","docstring":""} {"signature":"override fun foo ( x : String ) : String","body":"= \"\"","docstring":""} {"signature":"fun foo ( x : String = \"\" ) : String","body":"fun foo ( x : String = \"\" ) : String","docstring":""} {"signature":"fun bar ( x : String = \"\" ) : String","body":"fun bar ( x : String = \"\" ) : String","docstring":""} {"signature":"override fun foo ( x : String ) : String","body":"= \"\"","docstring":""} {"signature":"fun box ( ) : String","body":"{ var o : I = C ( ) var r = o . foo ( ) if ( r != \"\" ) return \"\" r = o . foo ( \"\" ) if ( r != \"\" ) return \"\" r = o . bar ( ) if ( r != \"\" ) return \"\" r = o . bar ( \"\" ) if ( r != \"\" ) return \"\" o = D ( ) r = o . foo ( ) if ( r != \"\" ) return \"\" r = o . foo ( \"\" ) if ( r != \"\" ) return \"\" r = o . bar ( ) if ( r != \"\" ) return \"\" r = o . bar ( \"\" ) if ( r != \"\" ) return \"\" o = E ( ) r = o . foo ( ) if ( r != \"\" ) return \"\" r = o . foo ( \"\" ) if ( r != \"\" ) return \"\" r = o . bar ( ) if ( r != \"\" ) return \"\" r = o . bar ( \"\" ) if ( r != \"\" ) return \"\" val p : K = F ( ) r = p . foo ( ) if ( r != \"\" ) return \"\" r = p . foo ( \"\" ) if ( r != \"\" ) return \"\" r = p . bar ( ) if ( r != \"\" ) return \"\" r = p . bar ( \"\" ) if ( r != \"\" ) return \"\" return \"\" }","docstring":""} {"signature":"fun bar ( )","body":"{ foo ( ) baz ( ) }","docstring":""} {"signature":"fun close ( )","body":"{ acquired -- }","docstring":""} {"signature":"fun main ( )","body":"{ runBlocking { repeat ( ) { launch { val resource = withTimeout ( ) { delay ( ) Resource ( ) } resource . close ( ) } } } println ( acquired ) }","docstring":""} {"signature":"fun test ( a : Any ? , b : Any ? , c : Any )","body":"= a ? : b ? : c","docstring":""} {"signature":"override fun doTest ( testDirectoryPath : Path )","body":"{ val files = compileToKnmFiles ( testDirectoryPath ) for ( knmFile in files ) { checkKnmStubConsistency ( knmFile ) } }","docstring":""} {"signature":"private fun checkKnmStubConsistency ( knmFile : VirtualFile )","body":"{ val decompiler = knmTestSupport . createDecompiler ( ) val stubTreeBinaryFile = decompiler . stubBuilder . buildFileStub ( FileContentImpl . createByFile ( knmFile , environment . project ) ) ! ! val fileViewProviderForDecompiledFile = decompiler . createFileViewProvider ( knmFile , PsiManager . getInstance ( project ) , physical = false , ) val stubTreeForDecompiledFile = KtFileStubBuilder ( ) . buildStubTree ( KlibDecompiledFile ( fileViewProviderForDecompiledFile ) { virtualFile -> decompiler . buildDecompiledTextForTests ( virtualFile ) } ) Assert . assertEquals ( \"\" , stubTreeForDecompiledFile . serializeToString ( ) , stubTreeBinaryFile . serializeToString ( ) ) }","docstring":""} {"signature":"fun createConfiguration ( module : TestModule ) : DiagnosticsRenderingConfiguration","body":"{ return DiagnosticsRenderingConfiguration ( platform = null , withNewInference = module . languageVersionSettings . supportsFeature ( LanguageFeature . NewInference ) , languageVersionSettings = module . languageVersionSettings , skipDebugInfoDiagnostics = testServices . compilerConfigurationProvider . getCompilerConfiguration ( module ) . getBoolean ( JVMConfigurationKeys . IR ) ) }","docstring":""} {"signature":"fun reportDiagnostic ( diagnostic : Diagnostic , module : TestModule , file : TestFile , configuration : DiagnosticsRenderingConfiguration , withNewInferenceModeEnabled : Boolean )","body":"{ globalMetadataInfoHandler . addMetadataInfosForFile ( file , diagnostic . toMetaInfo ( module , file , configuration . withNewInference , withNewInferenceModeEnabled ) ) }","docstring":""} {"signature":"private fun Diagnostic . toMetaInfo ( module : TestModule , file : TestFile , newInferenceEnabled : Boolean , withNewInferenceModeEnabled : Boolean ) : List < DiagnosticCodeMetaInfo >","body":"= textRanges . map { range -> val metaInfo = DiagnosticCodeMetaInfo ( range , ClassicMetaInfoUtils . renderDiagnosticNoArgs , this ) if ( withNewInferenceModeEnabled ) { metaInfo . attributes += if ( newInferenceEnabled ) OldNewInferenceMetaInfoProcessor . NI else OldNewInferenceMetaInfoProcessor . OI } if ( file !in module . files ) { val targetPlatform = module . targetPlatform metaInfo . attributes += when { targetPlatform . isJvm ( ) -> \"\" targetPlatform . isJs ( ) -> \"\" targetPlatform . isNative ( ) -> \"\" targetPlatform . isCommon ( ) -> \"\" else -> error ( \"\" ) } } val existing = globalMetadataInfoHandler . getExistingMetaInfosForActualMetadata ( file , metaInfo ) if ( existing . any { it . description != null } ) { metaInfo . replaceRenderConfiguration ( ClassicMetaInfoUtils . renderDiagnosticWithArgs ) } metaInfo }","docstring":""} {"signature":"override fun processorEnabled ( module : TestModule ) : Boolean","body":"{ return DiagnosticsDirectives . WITH_NEW_INFERENCE in module . directives }","docstring":""} {"signature":"override fun firstAttributeEnabled ( module : TestModule ) : Boolean","body":"{ return module . languageVersionSettings . supportsFeature ( LanguageFeature . NewInference ) }","docstring":""} {"signature":"fun TestServices . withNewInferenceModeEnabled ( ) : Boolean","body":"{ return DiagnosticsDirectives . WITH_NEW_INFERENCE in moduleStructure . allDirectives }","docstring":""} {"signature":"fun wasContentRequested ( )","body":"= declaredMemberIndex . isComputed ( )","docstring":""} {"signature":"protected abstract fun computeMemberIndex ( ) : DeclaredMemberIndex","body":"protected abstract fun computeMemberIndex ( ) : DeclaredMemberIndex","docstring":""} {"signature":"protected abstract fun computeNonDeclaredFunctions ( result : MutableCollection < SimpleFunctionDescriptor > , name : Name )","body":"protected abstract fun computeNonDeclaredFunctions ( result : MutableCollection < SimpleFunctionDescriptor > , name : Name )","docstring":""} {"signature":"protected open fun computeImplicitlyDeclaredFunctions ( result : MutableCollection < SimpleFunctionDescriptor > , name : Name )","body":"{ }","docstring":""} {"signature":"protected abstract fun getDispatchReceiverParameter ( ) : ReceiverParameterDescriptor ?","body":"protected abstract fun getDispatchReceiverParameter ( ) : ReceiverParameterDescriptor ?","docstring":""} {"signature":"private fun MutableSet < SimpleFunctionDescriptor > . retainMostSpecificMethods ( )","body":"{ val groups = groupBy { it . computeJvmDescriptor ( withReturnType = false ) } . values for ( group in groups ) { if ( group . size == ) continue val mostSpecificMethods = group . selectMostSpecificInEachOverridableGroup { this } removeAll ( group ) addAll ( mostSpecificMethods ) } }","docstring":""} {"signature":"protected open fun JavaMethodDescriptor . isVisibleAsFunction ( )","body":"= true","docstring":""} {"signature":"protected abstract fun resolveMethodSignature ( method : JavaMethod , methodTypeParameters : List < TypeParameterDescriptor > , returnType : KotlinType , valueParameters : List < ValueParameterDescriptor > ) : MethodSignatureData","body":"protected abstract fun resolveMethodSignature ( method : JavaMethod , methodTypeParameters : List < TypeParameterDescriptor > , returnType : KotlinType , valueParameters : List < ValueParameterDescriptor > ) : MethodSignatureData","docstring":""} {"signature":"protected fun resolveMethodToFunctionDescriptor ( method : JavaMethod ) : JavaMethodDescriptor","body":"{ val annotations = c . resolveAnnotations ( method ) val functionDescriptorImpl = JavaMethodDescriptor . createJavaMethod ( ownerDescriptor , annotations , method . name , c . components . sourceElementFactory . source ( method ) , declaredMemberIndex ( ) . findRecordComponentByName ( method . name ) != null && method . valueParameters . isEmpty ( ) ) val c = c . childForMethod ( functionDescriptorImpl , method ) val methodTypeParameters = method . typeParameters . map { p -> c . typeParameterResolver . resolveTypeParameter ( p ) ! ! } val valueParameters = resolveValueParameters ( c , functionDescriptorImpl , method . valueParameters ) val returnType = computeMethodReturnType ( method , c ) val effectiveSignature = resolveMethodSignature ( method , methodTypeParameters , returnType , valueParameters . descriptors ) functionDescriptorImpl . initialize ( effectiveSignature . receiverType ? . let { DescriptorFactory . createExtensionReceiverParameterForCallable ( functionDescriptorImpl , it , Annotations . EMPTY ) } , getDispatchReceiverParameter ( ) , emptyList ( ) , effectiveSignature . typeParameters , effectiveSignature . valueParameters , effectiveSignature . returnType , Modality . convertFromFlags ( sealed = false , method . isAbstract , ! method . isFinal ) , method . visibility . toDescriptorVisibility ( ) , if ( effectiveSignature . receiverType != null ) mapOf ( JavaMethodDescriptor . ORIGINAL_VALUE_PARAMETER_FOR_EXTENSION_RECEIVER to valueParameters . descriptors . first ( ) ) else emptyMap < CallableDescriptor . UserDataKey < ValueParameterDescriptor > , ValueParameterDescriptor > ( ) ) functionDescriptorImpl . setParameterNamesStatus ( effectiveSignature . hasStableParameterNames , valueParameters . hasSynthesizedNames ) if ( effectiveSignature . errors . isNotEmpty ( ) ) { c . components . signaturePropagator . reportSignatureErrors ( functionDescriptorImpl , effectiveSignature . errors ) } return functionDescriptorImpl }","docstring":""} {"signature":"protected fun computeMethodReturnType ( method : JavaMethod , c : LazyJavaResolverContext ) : KotlinType","body":"{ val annotationMethod = method . containingClass . isAnnotationType val returnTypeAttrs = TypeUsage . COMMON . toAttributes ( isForAnnotationParameter = annotationMethod ) return c . typeResolver . transformJavaType ( method . returnType , returnTypeAttrs ) }","docstring":""} {"signature":"protected fun resolveValueParameters ( c : LazyJavaResolverContext , function : FunctionDescriptor , jValueParameters : List < JavaValueParameter > ) : ResolvedValueParameters","body":"{ var synthesizedNames = false val descriptors = jValueParameters . withIndex ( ) . map { ( index , javaParameter ) -> val annotations = c . resolveAnnotations ( javaParameter ) val typeUsage = TypeUsage . COMMON . toAttributes ( ) val ( outType , varargElementType ) = if ( javaParameter . isVararg ) { val paramType = javaParameter . type as? JavaArrayType ? : throw AssertionError ( \"\" ) val outType = c . typeResolver . transformArrayType ( paramType , typeUsage , true ) outType to c . module . builtIns . getArrayElementType ( outType ) } else { c . typeResolver . transformJavaType ( javaParameter . type , typeUsage ) to null } val name = if ( function . name . asString ( ) == \"\" && jValueParameters . size == && c . module . builtIns . nullableAnyType == outType ) { Name . identifier ( \"\" ) } else { val javaName = javaParameter . name if ( javaName == null ) synthesizedNames = true javaName ? : Name . identifier ( \"\" ) } ValueParameterDescriptorImpl ( function , null , index , annotations , name , outType , false , false , false , varargElementType , c . components . sourceElementFactory . source ( javaParameter ) ) } . toList ( ) return ResolvedValueParameters ( descriptors , synthesizedNames ) }","docstring":""} {"signature":"override fun getFunctionNames ( )","body":"= functionNamesLazy","docstring":""} {"signature":"override fun getVariableNames ( )","body":"= propertyNamesLazy","docstring":""} {"signature":"override fun getClassifierNames ( )","body":"= classNamesLazy","docstring":""} {"signature":"override fun definitelyDoesNotContainName ( name : Name ) : Boolean","body":"{ return name !in functionNamesLazy && name !in propertyNamesLazy && name !in classNamesLazy }","docstring":""} {"signature":"override fun getContributedFunctions ( name : Name , location : LookupLocation ) : Collection < SimpleFunctionDescriptor >","body":"{ if ( name !in getFunctionNames ( ) ) return emptyList ( ) return functions ( name ) }","docstring":""} {"signature":"protected abstract fun computeFunctionNames ( kindFilter : DescriptorKindFilter , nameFilter : ( ( Name ) -> Boolean ) ? ) : Set < Name >","body":"protected abstract fun computeFunctionNames ( kindFilter : DescriptorKindFilter , nameFilter : ( ( Name ) -> Boolean ) ? ) : Set < Name >","docstring":""} {"signature":"protected abstract fun computeNonDeclaredProperties ( name : Name , result : MutableCollection < PropertyDescriptor > )","body":"protected abstract fun computeNonDeclaredProperties ( name : Name , result : MutableCollection < PropertyDescriptor > )","docstring":""} {"signature":"protected abstract fun computePropertyNames ( kindFilter : DescriptorKindFilter , nameFilter : ( ( Name ) -> Boolean ) ? ) : Set < Name >","body":"protected abstract fun computePropertyNames ( kindFilter : DescriptorKindFilter , nameFilter : ( ( Name ) -> Boolean ) ? ) : Set < Name >","docstring":""} {"signature":"private fun resolveProperty ( field : JavaField ) : PropertyDescriptor","body":"{ var propertyDescriptor = createPropertyDescriptor ( field ) propertyDescriptor . initialize ( null , null , null , null ) val propertyType = getPropertyType ( field ) propertyDescriptor . setType ( propertyType , listOf ( ) , getDispatchReceiverParameter ( ) , null , emptyList ( ) ) ( ownerDescriptor as? ClassDescriptor ) ? . let { classDescriptor -> propertyDescriptor = c . components . syntheticPartsProvider . modifyField ( classDescriptor , propertyDescriptor , c ) } if ( DescriptorUtils . shouldRecordInitializerForProperty ( propertyDescriptor , propertyDescriptor . type ) ) { propertyDescriptor . setCompileTimeInitializerFactory { c . storageManager . createNullableLazyValue { c . components . javaPropertyInitializerEvaluator . getInitializerConstant ( field , propertyDescriptor ) } } } c . components . javaResolverCache . recordField ( field , propertyDescriptor ) return propertyDescriptor }","docstring":""} {"signature":"private fun createPropertyDescriptor ( field : JavaField ) : PropertyDescriptorImpl","body":"{ val isVar = ! field . isFinal val annotations = c . resolveAnnotations ( field ) return JavaPropertyDescriptor . create ( ownerDescriptor , annotations , Modality . FINAL , field . visibility . toDescriptorVisibility ( ) , isVar , field . name , c . components . sourceElementFactory . source ( field ) , field . isFinalStatic ) }","docstring":""} {"signature":"private fun getPropertyType ( field : JavaField ) : KotlinType","body":"{ val propertyType = c . typeResolver . transformJavaType ( field . type , TypeUsage . COMMON . toAttributes ( ) ) val isNotNullable = ( KotlinBuiltIns . isPrimitiveType ( propertyType ) || KotlinBuiltIns . isString ( propertyType ) ) && field . isFinalStatic && field . hasConstantNotNullInitializer if ( isNotNullable ) { return TypeUtils . makeNotNullable ( propertyType ) } return propertyType }","docstring":""} {"signature":"override fun getContributedVariables ( name : Name , location : LookupLocation ) : Collection < PropertyDescriptor >","body":"{ if ( name !in getVariableNames ( ) ) return emptyList ( ) return properties ( name ) }","docstring":""} {"signature":"override fun getContributedDescriptors ( kindFilter : DescriptorKindFilter , nameFilter : ( Name ) -> Boolean )","body":"= allDescriptors ( )","docstring":""} {"signature":"protected fun computeDescriptors ( kindFilter : DescriptorKindFilter , nameFilter : ( Name ) -> Boolean ) : List < DeclarationDescriptor >","body":"{ val location = NoLookupLocation . WHEN_GET_ALL_DESCRIPTORS val result = LinkedHashSet < DeclarationDescriptor > ( ) if ( kindFilter . acceptsKinds ( DescriptorKindFilter . CLASSIFIERS_MASK ) ) { for ( name in computeClassNames ( kindFilter , nameFilter ) ) { if ( nameFilter ( name ) ) { result . addIfNotNull ( getContributedClassifier ( name , location ) ) } } } if ( kindFilter . acceptsKinds ( DescriptorKindFilter . FUNCTIONS_MASK ) && ! kindFilter . excludes . contains ( NonExtensions ) ) { for ( name in computeFunctionNames ( kindFilter , nameFilter ) ) { if ( nameFilter ( name ) ) { result . addAll ( getContributedFunctions ( name , location ) ) } } } if ( kindFilter . acceptsKinds ( DescriptorKindFilter . VARIABLES_MASK ) && ! kindFilter . excludes . contains ( NonExtensions ) ) { for ( name in computePropertyNames ( kindFilter , nameFilter ) ) { if ( nameFilter ( name ) ) { result . addAll ( getContributedVariables ( name , location ) ) } } } return result . toList ( ) }","docstring":""} {"signature":"protected abstract fun computeClassNames ( kindFilter : DescriptorKindFilter , nameFilter : ( ( Name ) -> Boolean ) ? ) : Set < Name >","body":"protected abstract fun computeClassNames ( kindFilter : DescriptorKindFilter , nameFilter : ( ( Name ) -> Boolean ) ? ) : Set < Name >","docstring":""} {"signature":"override fun toString ( )","body":"= \"\"","docstring":""} {"signature":"override fun printScopeStructure ( p : Printer )","body":"{ p . println ( this :: class . java . simpleName , \"\" ) p . pushIndent ( ) p . println ( \"\" ) p . popIndent ( ) p . println ( \"\" ) }","docstring":""} {"signature":"public fun AnyCol . isColumnGroup ( ) : Boolean","body":"= kind ( ) == ColumnKind . Group","docstring":""} {"signature":"public fun AnyCol . isFrameColumn ( ) : Boolean","body":"= kind ( ) == ColumnKind . Frame","docstring":""} {"signature":"public fun AnyCol . isValueColumn ( ) : Boolean","body":"= kind ( ) == ColumnKind . Value","docstring":""} {"signature":"public fun AnyCol . isSubtypeOf ( type : KType ) : Boolean","body":"= this . type . isSubtypeOf ( type ) && ( ! this . type . isMarkedNullable || type . isMarkedNullable )","docstring":""} {"signature":"public inline fun < reified T > AnyCol . isSubtypeOf ( ) : Boolean","body":"= isSubtypeOf ( typeOf < T > ( ) )","docstring":""} {"signature":"public inline fun < reified T > AnyCol . isType ( ) : Boolean","body":"= type ( ) == typeOf < T > ( )","docstring":""} {"signature":"public fun AnyCol . isNumber ( ) : Boolean","body":"= isSubtypeOf < Number ? > ( )","docstring":""} {"signature":"public fun AnyCol . isList ( ) : Boolean","body":"= typeClass == List :: class","docstring":""} {"signature":"public fun AnyCol . isComparable ( ) : Boolean","body":"= isSubtypeOf < Comparable < * > ? > ( )","docstring":""} {"signature":"@ PublishedApi internal fun AnyCol . isPrimitive ( ) : Boolean","body":"= typeClass . isPrimitive ( )","docstring":""} {"signature":"internal fun KClass < * > . isPrimitive ( ) : Boolean","body":"= isSubclassOf ( Number :: class ) || this == String :: class || this == Char :: class || this == Array :: class || isSubclassOf ( Collection :: class )","docstring":""} {"signature":"fun f ( ) : String","body":"fun f ( ) : String","docstring":""} {"signature":"override fun f ( )","body":"= value","docstring":""} {"signature":"fun selector ( )","body":"= ","docstring":""} {"signature":"fun box ( ) : String","body":"{ return A ( ) . f ( ) + D ( ) . f ( ) }","docstring":""} {"signature":"fun source ( @ Language ( \"\" ) sourceCode : String )","body":"fun source ( @ Language ( \"\" ) sourceCode : String )","docstring":""} {"signature":"fun InlineSourceTestEnvironment . createModuleDescriptor ( @ Language ( \"\" ) sourceCode : String ) : ModuleDescriptor","body":"= createModuleDescriptor ( kotlinCoreEnvironment , testTempDir , listOf ( sourceCode ) )","docstring":""} {"signature":"fun InlineSourceTestEnvironment . createModuleDescriptor ( build : InlineSourceCodeCollector . ( ) -> Unit ) : ModuleDescriptor","body":"{ val sources = mutableListOf < String > ( ) object : InlineSourceCodeCollector { override fun source ( sourceCode : String ) { sources . add ( sourceCode ) } } . build ( ) return createModuleDescriptor ( kotlinCoreEnvironment , testTempDir , sources . toList ( ) ) }","docstring":""} {"signature":"fun JsImportedModule . getRequireName ( isEsm : Boolean = false ) : String","body":"{ return relativeRequirePath ? . let { val extension = if ( isEsm ) ESM_EXTENSION else REGULAR_EXTENSION \"\" } ? : externalName }","docstring":""} {"signature":"fun testToString ( d : Demo ) : String","body":"{ return d . toString ( ) }","docstring":""} {"signature":"fun lowerTypeModel ( ownerContext : NodeOwner < TypeModel > ) : TypeModel","body":"= ownerContext . node","docstring":""} {"signature":"fun lower ( statement : StatementModel ) : StatementModel","body":"fun lower ( statement : StatementModel ) : StatementModel","docstring":""} {"signature":"fun lowerLambdaParameterModel ( ownerContext : NodeOwner < LambdaParameterModel > ) : LambdaParameterModel","body":"= ownerContext . node","docstring":""} {"signature":"fun lower ( expression : ExpressionModel ) : ExpressionModel","body":"{ return when ( expression ) { is UnaryExpressionModel -> expression . copy ( operand = lower ( expression . operand ) ) is ConditionalExpressionModel -> expression . copy ( condition = lower ( expression . condition ) , whenTrue = lower ( expression . whenTrue ) , whenFalse = lower ( expression . whenFalse ) ) is IndexExpressionModel -> expression . copy ( array = lower ( expression . array ) , index = lower ( expression . index ) ) is CallExpressionModel -> expression . copy ( expression = lower ( expression . expression ) , arguments = expression . arguments . map { lower ( it ) } , typeParameters = expression . typeParameters . map { lowerTypeModel ( NodeOwner ( it , null ) ) } ) is PropertyAccessExpressionModel -> expression . copy ( left = lower ( expression . left ) , right = lower ( expression . right ) ) is LambdaExpressionModel -> expression . copy ( body = expression . body . copy ( statements = expression . body . statements . map { lower ( it ) } ) , parameters = expression . parameters . map { lowerLambdaParameterModel ( NodeOwner ( it , null ) ) } ) is BinaryExpressionModel -> expression . copy ( left = lower ( expression . left ) , right = lower ( expression . right ) ) is AsExpressionModel -> expression . copy ( expression = lower ( expression . expression ) , type = lowerTypeModel ( NodeOwner ( expression . type , null ) ) ) is NonNullExpressionModel -> expression . copy ( expression = lower ( expression . expression ) ) is ParenthesizedExpressionModel -> expression . copy ( expression = lower ( expression . expression ) ) is TemplateExpressionModel -> expression . copy ( tokens = expression . tokens . map { lowerTemplateToken ( it ) } ) is BooleanLiteralExpressionModel -> expression is NumericLiteralExpressionModel -> expression is StringLiteralExpressionModel -> lowerStringLiteralModel ( expression ) is IdentifierExpressionModel -> expression else -> { logger . debug ( \"\" ) expression } } }","docstring":""} {"signature":"fun lowerStringLiteralModel ( literal : StringLiteralExpressionModel ) : StringLiteralExpressionModel","body":"{ return literal }","docstring":""} {"signature":"fun lowerTemplateToken ( token : TemplateTokenModel ) : TemplateTokenModel","body":"{ return when ( token ) { is ExpressionTemplateTokenModel -> token . copy ( expression = lower ( token . expression ) ) is StringTemplateTokenModel -> token else -> { logger . debug ( \"\" ) token } } }","docstring":""} {"signature":"override fun canParse ( docComment : DocComment ) : Boolean","body":"{ return docComment is JavaDocComment }","docstring":""} {"signature":"override fun parse ( docComment : DocComment , context : PsiNamedElement ) : DocumentationNode","body":"{ val javaDocComment = docComment as JavaDocComment return parsePsiDocComment ( javaDocComment . comment , context ) }","docstring":""} {"signature":"internal fun parsePsiDocComment ( docComment : PsiDocComment , context : PsiNamedElement ) : DocumentationNode","body":"{ val description = listOfNotNull ( docComment . getDescription ( ) ) val tags = docComment . tags . mapNotNull { tag -> parseDocTag ( tag , docComment , context ) } return DocumentationNode ( description + tags ) }","docstring":""} {"signature":"private fun PsiDocComment . getDescription ( ) : Description ?","body":"{ val docTags = psiDocTagParser . parseAsParagraph ( psiElements = descriptionElements . asIterable ( ) , commentResolutionContext = CommentResolutionContext ( this , DescriptionJavadocTag ) , ) return docTags . takeIf { it . isNotEmpty ( ) } ? . let { Description ( wrapTagIfNecessary ( it ) ) } }","docstring":""} {"signature":"private fun parseDocTag ( tag : PsiDocTag , docComment : PsiDocComment , analysedElement : PsiNamedElement ) : TagWrapper ?","body":"{ return when ( tag . name ) { ParamJavadocTag . name -> parseParamTag ( tag , docComment , analysedElement ) ThrowsJavadocTag . name , ExceptionJavadocTag . name -> parseThrowsTag ( tag , docComment ) ReturnJavadocTag . name -> parseReturnTag ( tag , docComment ) SinceJavadocTag . name -> parseSinceTag ( tag , docComment ) AuthorJavadocTag . name -> parseAuthorTag ( tag , docComment ) SeeJavadocTag . name -> parseSeeTag ( tag , docComment ) DeprecatedJavadocTag . name -> parseDeprecatedTag ( tag , docComment ) else -> emptyTagWrapper ( tag , docComment ) } }","docstring":""} {"signature":"private fun parseParamTag ( tag : PsiDocTag , docComment : PsiDocComment , analysedElement : PsiNamedElement ) : TagWrapper ?","body":"{ val paramName = tag . dataElements . firstOrNull ( ) ? . text . orEmpty ( ) val paramIndex = when ( analysedElement ) { is PsiMethod -> when { paramName . startsWith ( '' ) -> { val pName = paramName . removeSurrounding ( \"\" , \">\" ) analysedElement . typeParameters . indexOfFirst { it . name == pName } } else -> analysedElement . parameterList . parameters . indexOfFirst { it . name == paramName } } is PsiClass -> when { paramName . startsWith ( '' ) -> { val pName = paramName . removeSurrounding ( \"\" , \">\" ) analysedElement . typeParameters . indexOfFirst { it . name == pName } } else -> analysedElement . recordComponents . indexOfFirst { it . name == paramName } } else -> return null } val docTags = psiDocTagParser . parseAsParagraph ( psiElements = tag . contentElementsWithSiblingIfNeeded ( ) . drop ( ) , commentResolutionContext = CommentResolutionContext ( comment = docComment , tag = ParamJavadocTag ( paramName , paramIndex ) ) ) return Param ( root = wrapTagIfNecessary ( docTags ) , name = paramName ) }","docstring":""} {"signature":"private fun parseThrowsTag ( tag : PsiDocTag , docComment : PsiDocComment ) : Throws","body":"{ val resolvedElement = tag . resolveToElement ( ) val exceptionAddress = resolvedElement ? . let { DRI . from ( it ) } val fullyQualifiedExceptionName = resolvedElement ? . getKotlinFqName ( ) ? : tag . dataElements . firstOrNull ( ) ? . text . orEmpty ( ) val javadocTag = when ( tag . name ) { ThrowsJavadocTag . name -> ThrowsJavadocTag ( fullyQualifiedExceptionName ) ExceptionJavadocTag . name -> ExceptionJavadocTag ( fullyQualifiedExceptionName ) else -> throw IllegalArgumentException ( \"\" ) } val docTags = psiDocTagParser . parseAsParagraph ( psiElements = tag . dataElements . drop ( ) , commentResolutionContext = CommentResolutionContext ( comment = docComment , tag = javadocTag ) , ) return Throws ( root = wrapTagIfNecessary ( docTags ) , name = fullyQualifiedExceptionName , exceptionAddress = exceptionAddress ) }","docstring":""} {"signature":"private fun parseReturnTag ( tag : PsiDocTag , docComment : PsiDocComment ) : Return","body":"{ val docTags = psiDocTagParser . parseAsParagraph ( psiElements = tag . contentElementsWithSiblingIfNeeded ( ) , commentResolutionContext = CommentResolutionContext ( comment = docComment , tag = ReturnJavadocTag ) , ) return Return ( root = wrapTagIfNecessary ( docTags ) ) }","docstring":""} {"signature":"private fun parseSinceTag ( tag : PsiDocTag , docComment : PsiDocComment ) : Since","body":"{ val docTags = psiDocTagParser . parseAsParagraph ( psiElements = tag . contentElementsWithSiblingIfNeeded ( ) , commentResolutionContext = CommentResolutionContext ( comment = docComment , tag = ReturnJavadocTag ) , ) return Since ( root = wrapTagIfNecessary ( docTags ) ) }","docstring":""} {"signature":"private fun parseAuthorTag ( tag : PsiDocTag , docComment : PsiDocComment ) : Author","body":"{ val docTags = psiDocTagParser . parseAsParagraph ( psiElements = tag . contentElementsWithSiblingIfNeeded ( ) , commentResolutionContext = CommentResolutionContext ( comment = docComment , tag = AuthorJavadocTag ) , ) return Author ( root = wrapTagIfNecessary ( docTags ) ) }","docstring":""} {"signature":"private fun parseSeeTag ( tag : PsiDocTag , docComment : PsiDocComment ) : See","body":"{ val referenceElement = tag . referenceElement ( ) val fullyQualifiedSeeReference = tag . resolveToElement ( ) ? . getKotlinFqName ( ) ? : referenceElement ? . text . orEmpty ( ) . removePrefix ( \"\" ) val context = CommentResolutionContext ( comment = docComment , tag = SeeJavadocTag ( fullyQualifiedSeeReference ) ) val docTags = psiDocTagParser . parseAsParagraph ( psiElements = tag . dataElements . dropWhile { it is PsiWhiteSpace || it . isDocReferenceHolder ( ) || it == referenceElement } , commentResolutionContext = context , ) return See ( root = wrapTagIfNecessary ( docTags ) , name = fullyQualifiedSeeReference , address = referenceElement ? . toDocumentationLink ( context = context ) ? . dri ) }","docstring":""} {"signature":"private fun PsiElement . isDocReferenceHolder ( ) : Boolean","body":"{ return ( this as? LazyParseablePsiElement ) ? . elementType == JavaDocElementType . DOC_REFERENCE_HOLDER }","docstring":""} {"signature":"private fun parseDeprecatedTag ( tag : PsiDocTag , docComment : PsiDocComment ) : Deprecated","body":"{ val docTags = psiDocTagParser . parseAsParagraph ( tag . contentElementsWithSiblingIfNeeded ( ) , CommentResolutionContext ( comment = docComment , tag = DeprecatedJavadocTag ) , ) return Deprecated ( root = wrapTagIfNecessary ( docTags ) ) }","docstring":""} {"signature":"private fun wrapTagIfNecessary ( tags : List < DocTag > ) : CustomDocTag","body":"{ val isFile = ( tags . singleOrNull ( ) as? CustomDocTag ) ? . name == MARKDOWN_ELEMENT_FILE_NAME return if ( isFile ) { tags . first ( ) as CustomDocTag } else { CustomDocTag ( tags , name = MARKDOWN_ELEMENT_FILE_NAME ) } }","docstring":""} {"signature":"private fun emptyTagWrapper ( tag : PsiDocTag , docComment : PsiDocComment , ) : CustomTagWrapper","body":"{ val docTags = psiDocTagParser . parseAsParagraph ( psiElements = tag . contentElementsWithSiblingIfNeeded ( ) , commentResolutionContext = CommentResolutionContext ( docComment , null ) , ) return CustomTagWrapper ( root = wrapTagIfNecessary ( docTags ) , name = tag . name ) }","docstring":""} {"signature":"private fun PsiElement . toDocumentationLink ( labelElement : PsiElement ? = null , context : CommentResolutionContext ) : DocumentationLink ?","body":"{ val resolvedElement = this . resolveToGetDri ( ) ? : return null val label = labelElement ? : defaultLabel ( ) val docTags = psiDocTagParser . parse ( listOfNotNull ( label ) , context ) return DocumentationLink ( dri = DRI . from ( resolvedElement ) , children = docTags ) }","docstring":""} {"signature":"override fun getConfigurableDisplayName ( ) : String","body":"= KotlinLanguage . NAME","docstring":""} {"signature":"override fun getLanguage ( ) : Language","body":"= KotlinLanguage . INSTANCE","docstring":""} {"signature":"override fun createCustomSettings ( settings : CodeStyleSettings ) : CustomCodeStyleSettings","body":"{ return KotlinCodeStyleSettings ( settings ) . apply { this . ALLOW_TRAILING_COMMA = true this . ALLOW_TRAILING_COMMA_ON_CALL_SITE = true } }","docstring":""} {"signature":"override fun createSettingsPage ( settings : CodeStyleSettings , originalSettings : CodeStyleSettings ) : Configurable","body":"{ throw UnsupportedOperationException ( ) }","docstring":""} {"signature":"@ DisplayName ( \"\" ) @ GradleTest internal fun shouldPublishCorrectlyWithOmittedVersion ( gradleVersion : GradleVersion )","body":"{ project ( \"\" . fullProjectName , gradleVersion ) { build ( \"\" ) } }","docstring":""} {"signature":"@ DisplayName ( \"\" ) @ GradleTest fun testKotlinJvmProjectPublishesKotlinApiDependenciesAsCompile ( gradleVersion : GradleVersion )","body":"{ project ( \"\" , gradleVersion ) { buildGradle . appendText ( \"\"\"\"\"\" . trimIndent ( ) ) build ( \"\" ) { val pomText = projectPath . resolve ( \"\" ) . readText ( ) . replace ( \"\" . toRegex ( ) , \"\" ) assertTrue { pomText . contains ( \"\" + \"\" + \"\" + \"\" ) } } } }","docstring":""} {"signature":"@ DisplayName ( \"\" ) @ GradleTest fun testOmittedStdlibVersion ( gradleVersion : GradleVersion )","body":"{ project ( \"\" , gradleVersion ) { buildGradle . appendText ( \"\"\"\"\"\" . trimIndent ( ) ) build ( \"\" , \"\" , ) { assertTasksExecuted ( \"\" , \"\" ) val pomLines = projectPath . resolve ( \"\" ) . readLines ( ) val stdlibVersionLineNumber = pomLines . indexOfFirst { \"\" in it } + val versionLine = pomLines [ stdlibVersionLineNumber ] assertTrue { \"\" in versionLine } } } }","docstring":""} {"signature":"@ DisplayName ( \"\" ) @ GradleTest @ GradleTestVersions ( maxVersion = TestVersions . Gradle . G_6_9 ) @ DisabledOnOs ( OS . WINDOWS ) fun testOldMavenPublishing ( gradleVersion : GradleVersion , @ TempDir localRepoDir : Path )","body":"{ project ( projectName = \"\" , gradleVersion = gradleVersion , localRepoDir = localRepoDir , buildOptions = defaultBuildOptions . copy ( warningMode = WarningMode . Summary ) ) { build ( \"\" ) { val publishingDir = localRepoDir . resolve ( \"\" ) . resolve ( \"\" ) assertDirectoryExists ( publishingDir ) assertFileExists ( publishingDir . resolve ( \"\" ) ) val pomFile = publishingDir . resolve ( \"\" ) assertFileExists ( pomFile ) assertFileContains ( pomFile , \"\"\"\"\"\" . trimMargin ( ) ) } } }","docstring":""} {"signature":"override fun < R , D > accept ( visitor : FirVisitor < R , D > , data : D ) : R","body":"= visitor . visitContractDescriptionOwner ( this , data )","docstring":""} {"signature":"@ Suppress ( \"\" ) override fun < E : FirElement , D > transform ( transformer : FirTransformer < D > , data : D ) : E","body":"= transformer . transformContractDescriptionOwner ( this , data ) as E","docstring":""} {"signature":"fun replaceContractDescription ( newContractDescription : FirContractDescription ? )","body":"fun replaceContractDescription ( newContractDescription : FirContractDescription ? )","docstring":""} {"signature":"fun < D > transformContractDescription ( transformer : FirTransformer < D > , data : D ) : FirContractDescriptionOwner","body":"fun < D > transformContractDescription ( transformer : FirTransformer < D > , data : D ) : FirContractDescriptionOwner","docstring":""} {"signature":"actual fun useX ( x : X ) : Any","body":"= x . foo ( )","docstring":""} {"signature":"suspend fun nextBuffer ( ) : String","body":"= \"\"","docstring":""} {"signature":"fun builder ( c : suspend ( ) -> Unit )","body":"{ c . startCoroutine ( Continuation ( EmptyCoroutineContext ) { it . getOrThrow ( ) } ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ var res = \"\" builder { res = A ( ) . nextBuffer ( ) } return res }","docstring":""} {"signature":"fun fromPropertyValue ( value : String ) : KotlinCompilerArgumentsLogLevel","body":"= values ( ) . single { it . value == value }","docstring":""} {"signature":"fun setPanicMode ( mode : PanicMode )","body":"{ PANIC_OPTIONS . mode = mode }","docstring":""} {"signature":"fun getPanicMode ( ) : PanicMode","body":"{ return PANIC_OPTIONS . mode }","docstring":""} {"signature":"fun resolvePanicMode ( )","body":"{ if ( System . getProperty ( \"\" ) == \"\" ) { setPanicMode ( PanicMode . ALWAYS_FAIL ) } logger . debug ( \"\" ) }","docstring":""} {"signature":"@ JvmStatic fun get ( ) : Application","body":"= error ( )","docstring":""} {"signature":"@ JvmStatic fun getPreferencesDataStore ( )","body":"= get ( ) . _preferencesDataStore","docstring":""} {"signature":"protected open fun getDeclarationOriginFor ( file : KtFile ) : FirDeclarationOrigin","body":"{ val virtualFile = file . virtualFile return if ( virtualFile . extension == BuiltInSerializerProtocol . BUILTINS_FILE_EXTENSION ) { FirDeclarationOrigin . BuiltIns } else { FirDeclarationOrigin . Library } }","docstring":"/**\n * Computes the origin for the declarations coming from [file].\n *\n * We assume that a stub Kotlin declaration might come only from Library or from BuiltIns.\n * We do the decision based upon the extension of the [file].\n *\n * This method is left open so the inheritors can provide more optimal/strict implementations.\n */"} {"signature":"private fun findAndDeserializeTypeAlias ( classId : ClassId , context : StubBasedFirDeserializationContext ? , ) : Pair < FirTypeAliasSymbol ? , DeserializedTypeAliasPostProcessor ? >","body":"{ val classLikeDeclaration = ( context ? . classLikeDeclaration ? : declarationProvider . getClassLikeDeclarationByClassId ( classId ) ) if ( classLikeDeclaration is KtTypeAlias ) { val symbol = FirTypeAliasSymbol ( classId ) val postProcessor : DeserializedTypeAliasPostProcessor = { val rootContext = context ? : StubBasedFirDeserializationContext . createRootContext ( moduleData , StubBasedAnnotationDeserializer ( session ) , classId . packageFqName , classId . relativeClassName , classLikeDeclaration , null , null , symbol , initialOrigin = getDeclarationOriginFor ( classLikeDeclaration . containingKtFile ) ) rootContext . memberDeserializer . loadTypeAlias ( classLikeDeclaration , symbol ) } return symbol to postProcessor } return null to null }","docstring":""} {"signature":"private fun findAndDeserializeClass ( classId : ClassId , parentContext : StubBasedFirDeserializationContext ? , ) : FirRegularClassSymbol ?","body":"{ val classLikeDeclaration = parentContext ? . classLikeDeclaration ? : declarationProvider . getClassLikeDeclarationByClassId ( classId ) ? : return null val symbol = FirRegularClassSymbol ( classId ) if ( classLikeDeclaration is KtClassOrObject ) { deserializeClassToSymbol ( classId , classLikeDeclaration , symbol , session , moduleData , StubBasedAnnotationDeserializer ( session ) , kotlinScopeProvider , parentContext = parentContext , containerSource = JvmStubDeserializedContainerSource ( classId ) , deserializeNestedClass = this :: getClass , initialOrigin = parentContext ? . initialOrigin ? : getDeclarationOriginFor ( classLikeDeclaration . containingKtFile ) ) return symbol } return null }","docstring":""} {"signature":"private fun loadFunctionsByCallableId ( callableId : CallableId , foundFunctions : Collection < KtNamedFunction > ? , ) : List < FirNamedFunctionSymbol >","body":"{ val topLevelFunctions = foundFunctions ? : declarationProvider . getTopLevelFunctions ( callableId ) return ArrayList < FirNamedFunctionSymbol > ( topLevelFunctions . size ) . apply { for ( function in topLevelFunctions ) { val functionStub = function . stub as? KotlinFunctionStubImpl ? : loadStubByElement ( function ) val functionFile = function . containingKtFile val containerSource = getContainerSource ( functionFile , functionStub ? . origin ) val functionOrigin = getDeclarationOriginFor ( functionFile ) if ( functionOrigin != FirDeclarationOrigin . BuiltIns && containerSource is FacadeClassSource && containerSource . className . internalName in KotlinBuiltins ) { continue } val symbol = FirNamedFunctionSymbol ( callableId ) val rootContext = StubBasedFirDeserializationContext . createRootContext ( session , moduleData , callableId , function , symbol , functionOrigin , containerSource ) add ( rootContext . memberDeserializer . loadFunction ( function , null , session , symbol ) . symbol ) } } }","docstring":""} {"signature":"private fun loadPropertiesByCallableId ( callableId : CallableId , foundProperties : Collection < KtProperty > ? ) : List < FirPropertySymbol >","body":"{ val topLevelProperties = foundProperties ? : declarationProvider . getTopLevelProperties ( callableId ) return buildList { for ( property in topLevelProperties ) { val propertyStub = property . stub as? KotlinPropertyStubImpl ? : loadStubByElement ( property ) val propertyFile = property . containingKtFile val containerSource = getContainerSource ( propertyFile , propertyStub ? . origin ) val propertyOrigin = getDeclarationOriginFor ( propertyFile ) val symbol = FirPropertySymbol ( callableId ) val rootContext = StubBasedFirDeserializationContext . createRootContext ( session , moduleData , callableId , property , symbol , propertyOrigin , containerSource ) add ( rootContext . memberDeserializer . loadProperty ( property , null , symbol ) . symbol ) } } }","docstring":""} {"signature":"private fun getContainerSource ( file : KtFile , origin : KotlinStubOrigin ? ) : DeserializedContainerSource","body":"{ if ( getDeclarationOriginFor ( file ) == FirDeclarationOrigin . BuiltIns ) { require ( origin is KotlinStubOrigin . Facade ) { \"\" } return JvmStubDeserializedBuiltInsContainerSource ( facadeClassName = JvmClassName . byInternalName ( origin . className ) ) } return when ( origin ) { is KotlinStubOrigin . Facade -> { val className = JvmClassName . byInternalName ( origin . className ) JvmStubDeserializedFacadeContainerSource ( className , facadeClassName = null ) } is KotlinStubOrigin . MultiFileFacade -> { val className = JvmClassName . byInternalName ( origin . className ) val facadeClassName = JvmClassName . byInternalName ( origin . facadeClassName ) JvmStubDeserializedFacadeContainerSource ( className , facadeClassName ) } else -> { val virtualFile = file . virtualFile val classId = ClassId ( file . packageFqName , Name . identifier ( virtualFile . nameWithoutExtension ) ) val className = JvmClassName . byClassId ( classId ) JvmStubDeserializedFacadeContainerSource ( className , facadeClassName = null ) } } }","docstring":""} {"signature":"private fun getClass ( classId : ClassId , parentContext : StubBasedFirDeserializationContext ? = null ) : FirRegularClassSymbol ?","body":"= if ( parentContext ? . classLikeDeclaration != null ) { classCache . getNotNullValueForNotNullContext ( classId , parentContext ) } else { classCache . getValue ( classId , parentContext ) }","docstring":""} {"signature":"private fun getTypeAlias ( classId : ClassId , context : StubBasedFirDeserializationContext ? = null ) : FirTypeAliasSymbol ?","body":"{ if ( ! classId . relativeClassName . isOneSegmentFQN ( ) ) return null return typeAliasCache . getValue ( classId , context ) }","docstring":""} {"signature":"@ FirSymbolProviderInternals override fun getTopLevelCallableSymbolsTo ( destination : MutableList < FirCallableSymbol < * > > , packageFqName : FqName , name : Name )","body":"{ val callableId = CallableId ( packageFqName , name ) destination += functionCache . getCallablesWithoutContext ( callableId ) destination += propertyCache . getCallablesWithoutContext ( callableId ) }","docstring":""} {"signature":"private fun < C : FirCallableSymbol < * > , CONTEXT > FirCache < CallableId , List < C > , CONTEXT ? > . getCallablesWithoutContext ( id : CallableId , ) : List < C >","body":"{ if ( ! symbolNamesProvider . mayHaveTopLevelCallable ( id . packageName , id . callableName ) ) return emptyList ( ) return getValue ( id , null ) }","docstring":""} {"signature":"@ FirSymbolProviderInternals override fun getTopLevelCallableSymbolsTo ( destination : MutableList < FirCallableSymbol < * > > , callableId : CallableId , callables : Collection < KtCallableDeclaration > , )","body":"{ callables . filterIsInstance < KtNamedFunction > ( ) . ifNotEmpty { destination += functionCache . getValue ( callableId , this ) } callables . filterIsInstance < KtProperty > ( ) . ifNotEmpty { destination += propertyCache . getValue ( callableId , this ) } }","docstring":""} {"signature":"@ FirSymbolProviderInternals override fun getTopLevelFunctionSymbolsTo ( destination : MutableList < FirNamedFunctionSymbol > , packageFqName : FqName , name : Name )","body":"{ destination += functionCache . getCallablesWithoutContext ( CallableId ( packageFqName , name ) ) }","docstring":""} {"signature":"@ FirSymbolProviderInternals override fun getTopLevelFunctionSymbolsTo ( destination : MutableList < FirNamedFunctionSymbol > , callableId : CallableId , functions : Collection < KtNamedFunction > , )","body":"{ destination += functionCache . getValue ( callableId , functions ) }","docstring":""} {"signature":"@ FirSymbolProviderInternals override fun getTopLevelPropertySymbolsTo ( destination : MutableList < FirPropertySymbol > , packageFqName : FqName , name : Name )","body":"{ destination += propertyCache . getCallablesWithoutContext ( CallableId ( packageFqName , name ) ) }","docstring":""} {"signature":"@ FirSymbolProviderInternals override fun getTopLevelPropertySymbolsTo ( destination : MutableList < FirPropertySymbol > , callableId : CallableId , properties : Collection < KtProperty > , )","body":"{ destination += propertyCache . getValue ( callableId , properties ) }","docstring":""} {"signature":"override fun getPackage ( fqName : FqName ) : FqName ?","body":"= fqName . takeIf { packageProvider . doesKotlinOnlyPackageExist ( fqName ) }","docstring":""} {"signature":"override fun getClassLikeSymbolByClassId ( classId : ClassId ) : FirClassLikeSymbol < * > ?","body":"{ if ( ! symbolNamesProvider . mayHaveTopLevelClassifier ( classId ) ) return null classId . takeIf ( ClassId :: isNestedClass ) ? . outermostClassId ? . let { outermostClassId -> getClassLikeSymbolByClassId ( outermostClassId ) val computedValue = classCache . getValueIfComputed ( classId ) ? : typeAliasCache . getValueIfComputed ( classId ) computedValue ? . let { return it } } return getClass ( classId ) ? : getTypeAlias ( classId ) }","docstring":""} {"signature":"@ FirSymbolProviderInternals override fun getClassLikeSymbolByClassId ( classId : ClassId , classLikeDeclaration : KtClassLikeDeclaration ) : FirClassLikeSymbol < * > ?","body":"{ val topmostClassLikeDeclaration = classLikeDeclaration . takeIf { classId . isNestedClass } ? . getTopmostParentOfType < KtClassLikeDeclaration > ( ) val outermostClassId = topmostClassLikeDeclaration ? . getClassId ( ) val cache = if ( classLikeDeclaration is KtClassOrObject ) classCache else typeAliasCache if ( outermostClassId != null ) { getClassLikeSymbolByClassId ( outermostClassId , topmostClassLikeDeclaration ) cache . getValueIfComputed ( classId ) ? . let { return it } } val annotationDeserializer = StubBasedAnnotationDeserializer ( session ) val classOrigin = getDeclarationOriginFor ( classLikeDeclaration . containingKtFile ) val deserializationContext = StubBasedFirDeserializationContext ( moduleData , classId . packageFqName , classId . relativeClassName , StubBasedFirTypeDeserializer ( moduleData , annotationDeserializer , parent = null , containingSymbol = null , owner = null , classOrigin ) , annotationDeserializer , containerSource = null , outerClassSymbol = null , outerTypeParameters = emptyList ( ) , classOrigin , classLikeDeclaration , ) return cache . getNotNullValueForNotNullContext ( classId , deserializationContext ) }","docstring":""} {"signature":"fun getTopLevelCallableSymbol ( packageFqName : FqName , shortName : Name , callableDeclaration : KtCallableDeclaration , ) : FirCallableSymbol < * > ?","body":"{ val callableId = CallableId ( packageFqName , shortName ) val callableSymbols = when ( callableDeclaration ) { is KtNamedFunction -> functionCache . getValue ( callableId ) is KtProperty -> propertyCache . getValue ( callableId ) else -> null } return callableSymbols ? . singleOrNull { it . fir . realPsi == callableDeclaration } }","docstring":""} {"signature":"@ Disabled ( \"\" ) @ GradleTest override fun testMppAndroidKapt ( gradleVersion : GradleVersion , agpVersion : String , jdkVersion : JdkVersions . ProvidedJdk , )","body":"{ }","docstring":""} {"signature":"override fun TestProject . customizeProject ( )","body":"{ forceKapt4 ( ) }","docstring":""} {"signature":"fun main ( ) : Unit","body":"= runBlocking { val myDeferredInt : Deferred < Int > = async { throw UnsupportedOperationException ( \"\" ) } try { val i : Int = myDeferredInt . await ( ) println ( i ) } catch ( u : UnsupportedOperationException ) { println ( \"\" ) } }","docstring":""} {"signature":"override fun getAnnotationsContainer ( binaryClass : KotlinJvmBinaryClass ) : AnnotationsContainerWithConstants < A , C >","body":"= storage ( binaryClass )","docstring":""} {"signature":"protected abstract fun loadConstant ( desc : String , initializer : Any ) : C ?","body":"protected abstract fun loadConstant ( desc : String , initializer : Any ) : C ?","docstring":""} {"signature":"protected abstract fun transformToUnsignedConstant ( constant : C ) : C ?","body":"protected abstract fun transformToUnsignedConstant ( constant : C ) : C ?","docstring":""} {"signature":"protected abstract fun loadAnnotationMethodDefaultValue ( annotationClass : KotlinJvmBinaryClass , methodSignature : MemberSignature , visitResult : ( C ) -> Unit ) : KotlinJvmBinaryClass . AnnotationArgumentVisitor ?","body":"protected abstract fun loadAnnotationMethodDefaultValue ( annotationClass : KotlinJvmBinaryClass , methodSignature : MemberSignature , visitResult : ( C ) -> Unit ) : KotlinJvmBinaryClass . AnnotationArgumentVisitor ?","docstring":""} {"signature":"override fun loadAnnotationDefaultValue ( container : ProtoContainer , proto : ProtoBuf . Property , expectedType : KotlinType ) : C ?","body":"{ return loadConstantFromProperty ( container , proto , AnnotatedCallableKind . PROPERTY_GETTER , expectedType ) { annotationParametersDefaultValues [ it ] } }","docstring":""} {"signature":"override fun loadPropertyConstant ( container : ProtoContainer , proto : ProtoBuf . Property , expectedType : KotlinType ) : C ?","body":"{ return loadConstantFromProperty ( container , proto , AnnotatedCallableKind . PROPERTY , expectedType ) { propertyConstants [ it ] } }","docstring":""} {"signature":"private fun loadConstantFromProperty ( container : ProtoContainer , proto : ProtoBuf . Property , annotatedCallableKind : AnnotatedCallableKind , expectedType : KotlinType , loader : AnnotationsContainerWithConstants < A , C > . ( MemberSignature ) -> C ? ) : C ?","body":"{ val specialCase = getSpecialCaseContainerClass ( container , property = true , field = true , isConst = Flags . IS_CONST . get ( proto . flags ) , isMovedFromInterfaceCompanion = JvmProtoBufUtil . isMovedFromInterfaceCompanion ( proto ) , kotlinClassFinder = kotlinClassFinder , jvmMetadataVersion = jvmMetadataVersion ) val kotlinClass = findClassWithAnnotationsAndInitializers ( container , specialCase ) ? : return null val requireHasFieldFlag = kotlinClass . classHeader . metadataVersion . isAtLeast ( DeserializedDescriptorResolver . KOTLIN_1_3_RC_METADATA_VERSION ) val signature = getCallableSignature ( proto , container . nameResolver , container . typeTable , annotatedCallableKind , requireHasFieldFlag ) ? : return null val result = storage ( kotlinClass ) . loader ( signature ) ? : return null return if ( UnsignedTypes . isUnsignedType ( expectedType ) ) transformToUnsignedConstant ( result ) else result }","docstring":""} {"signature":"private fun loadAnnotationsAndInitializers ( kotlinClass : KotlinJvmBinaryClass ) : AnnotationsContainerWithConstants < A , C >","body":"{ val memberAnnotations = HashMap < MemberSignature , MutableList < A > > ( ) val propertyConstants = HashMap < MemberSignature , C > ( ) val annotationParametersDefaultValues = HashMap < MemberSignature , C > ( ) kotlinClass . visitMembers ( object : KotlinJvmBinaryClass . MemberVisitor { override fun visitMethod ( name : Name , desc : String ) : KotlinJvmBinaryClass . MethodAnnotationVisitor ? { return AnnotationVisitorForMethod ( MemberSignature . fromMethodNameAndDesc ( name . asString ( ) , desc ) ) } override fun visitField ( name : Name , desc : String , initializer : Any ? ) : KotlinJvmBinaryClass . AnnotationVisitor ? { val signature = MemberSignature . fromFieldNameAndDesc ( name . asString ( ) , desc ) if ( initializer != null ) { val constant = loadConstant ( desc , initializer ) if ( constant != null ) { propertyConstants [ signature ] = constant } } return MemberAnnotationVisitor ( signature ) } inner class AnnotationVisitorForMethod ( signature : MemberSignature ) : MemberAnnotationVisitor ( signature ) , KotlinJvmBinaryClass . MethodAnnotationVisitor { override fun visitParameterAnnotation ( index : Int , classId : ClassId , source : SourceElement ) : KotlinJvmBinaryClass . AnnotationArgumentVisitor ? { val paramSignature = MemberSignature . fromMethodSignatureAndParameterIndex ( signature , index ) var result = memberAnnotations [ paramSignature ] if ( result == null ) { result = ArrayList ( ) memberAnnotations [ paramSignature ] = result } return loadAnnotationIfNotSpecial ( classId , source , result ) } override fun visitAnnotationMemberDefaultValue ( ) : KotlinJvmBinaryClass . AnnotationArgumentVisitor ? { return loadAnnotationMethodDefaultValue ( kotlinClass , signature ) { annotationParametersDefaultValues [ signature ] = it } } } open inner class MemberAnnotationVisitor ( protected val signature : MemberSignature ) : KotlinJvmBinaryClass . AnnotationVisitor { private val result = ArrayList < A > ( ) override fun visitAnnotation ( classId : ClassId , source : SourceElement ) : KotlinJvmBinaryClass . AnnotationArgumentVisitor ? { return loadAnnotationIfNotSpecial ( classId , source , result ) } override fun visitEnd ( ) { if ( result . isNotEmpty ( ) ) { memberAnnotations [ signature ] = result } } } } , getCachedFileContent ( kotlinClass ) ) return AnnotationsContainerWithConstants ( memberAnnotations , propertyConstants , annotationParametersDefaultValues ) }","docstring":""} {"signature":"protected fun isRepeatableWithImplicitContainer ( annotationClassId : ClassId , arguments : Map < Name , ConstantValue < * > > ) : Boolean","body":"{ if ( annotationClassId != SpecialJvmAnnotations . JAVA_LANG_ANNOTATION_REPEATABLE ) return false val containerKClassValue = arguments [ Name . identifier ( \"\" ) ] as? KClassValue ? : return false val normalClass = containerKClassValue . value as? KClassValue . Value . NormalClass ? : return false return isImplicitRepeatableContainer ( normalClass . classId ) }","docstring":""} {"signature":"@ JvmGradlePluginTests @ DisplayName ( \"\" ) @ GradleTest internal fun shouldFailIfJavaAndKotlinJvmTargetsAreDifferent ( gradleVersion : GradleVersion )","body":"{ project ( projectName = \"\" . fullProjectName , gradleVersion = gradleVersion , buildOptions = defaultBuildOptions . copy ( logLevel = LogLevel . WARN ) ) { setJavaCompilationCompatibility ( JavaVersion . VERSION_1_8 ) useToolchainToCompile ( ) gradleProperties . append ( \"\"\"\"\"\" . trimIndent ( ) ) buildAndFail ( \"\" ) { assertHasDiagnostic ( KotlinToolingDiagnostics . InconsistentTargetCompatibilityForKotlinAndJavaTasks ) } } }","docstring":""} {"signature":"@ JvmGradlePluginTests @ DisplayName ( \"\" ) @ GradleTest internal fun overrideModeForTask ( gradleVersion : GradleVersion )","body":"{ project ( projectName = \"\" . fullProjectName , gradleVersion = gradleVersion , buildOptions = defaultBuildOptions . copy ( logLevel = LogLevel . WARN ) ) { setJavaCompilationCompatibility ( JavaVersion . VERSION_1_8 ) useToolchainToCompile ( ) gradleProperties . append ( \"\"\"\"\"\" . trimIndent ( ) ) buildGradle . appendText ( \"\"\"\"\"\" . trimMargin ( ) ) build ( \"\" ) { assertNoDiagnostic ( KotlinToolingDiagnostics . InconsistentTargetCompatibilityForKotlinAndJavaTasks ) } } }","docstring":""} {"signature":"@ JvmGradlePluginTests @ DisplayName ( \"\" ) @ GradleTest internal fun shouldWarnBuildIfJavaAndKotlinJvmTargetsAreDifferent ( gradleVersion : GradleVersion )","body":"{ project ( projectName = \"\" . fullProjectName , gradleVersion = gradleVersion ) { setJavaCompilationCompatibility ( JavaVersion . VERSION_1_8 ) useToolchainToCompile ( ) gradleProperties . append ( \"\"\"\"\"\" . trimIndent ( ) ) build ( \"\" ) { assertHasDiagnostic ( KotlinToolingDiagnostics . InconsistentTargetCompatibilityForKotlinAndJavaTasks ) } } }","docstring":""} {"signature":"@ JvmGradlePluginTests @ DisplayName ( \"\" ) @ GradleTest internal fun shouldNotPrintAnythingIfJavaAndKotlinJvmTargetsAreDifferent ( gradleVersion : GradleVersion )","body":"{ project ( projectName = \"\" . fullProjectName , gradleVersion = gradleVersion ) { setJavaCompilationCompatibility ( JavaVersion . VERSION_1_8 ) useToolchainToCompile ( ) gradleProperties . append ( \"\"\"\"\"\" . trimIndent ( ) ) build ( \"\" ) { assertNoDiagnostic ( KotlinToolingDiagnostics . InconsistentTargetCompatibilityForKotlinAndJavaTasks ) } } }","docstring":""} {"signature":"@ JvmGradlePluginTests @ DisplayName ( \"\" ) @ GradleTest internal fun shouldNotWarnOnJavaAndKotlinSameJvmTargets ( gradleVersion : GradleVersion )","body":"{ project ( projectName = \"\" . fullProjectName , gradleVersion = gradleVersion ) { useToolchainToCompile ( ) gradleProperties . append ( \"\"\"\"\"\" . trimIndent ( ) ) build ( \"\" ) { assertNoDiagnostic ( KotlinToolingDiagnostics . InconsistentTargetCompatibilityForKotlinAndJavaTasks ) } } }","docstring":""} {"signature":"@ JvmGradlePluginTests @ DisplayName ( \"\" ) @ GradleTest internal fun shouldProduceJavaKotlinJvmTargetDifferenceWarningOnlyForRelatedTasks ( gradleVersion : GradleVersion )","body":"{ project ( projectName = \"\" . fullProjectName , gradleVersion = gradleVersion ) { useToolchainToCompile ( ) gradleProperties . append ( \"\"\"\"\"\" . trimIndent ( ) ) buildGradle . append ( \"\"\"\"\"\" . trimIndent ( ) ) build ( \"\" ) { assertHasDiagnostic ( KotlinToolingDiagnostics . InconsistentTargetCompatibilityForKotlinAndJavaTasks , withSubstring = \"\" ) assertNoDiagnostic ( KotlinToolingDiagnostics . InconsistentTargetCompatibilityForKotlinAndJavaTasks , withSubstring = \"\" ) } } }","docstring":""} {"signature":"@ JvmGradlePluginTests @ DisplayName ( \"\" ) @ GradleTest internal fun oldJdkMixedJavaKotlinTargetVerification ( gradleVersion : GradleVersion )","body":"{ project ( projectName = \"\" . fullProjectName , gradleVersion = gradleVersion ) { buildGradle . append ( \"\"\"\"\"\" . trimIndent ( ) ) gradleProperties . append ( \"\"\"\"\"\" . trimIndent ( ) ) build ( \"\" ) } }","docstring":""} {"signature":"@ JvmGradlePluginTests @ DisplayName ( \"\" ) @ GradleTest internal fun shouldSkipJvmTargetValidationNoKotlinSources ( gradleVersion : GradleVersion )","body":"{ project ( projectName = \"\" . fullProjectName , gradleVersion = gradleVersion ) { setJavaCompilationCompatibility ( JavaVersion . VERSION_1_8 ) useToolchainToCompile ( ) gradleProperties . append ( \"\"\"\"\"\" . trimIndent ( ) ) kotlinSourcesDir ( ) . toFile ( ) . deleteRecursively ( ) javaSourcesDir ( ) . resolve ( \"\" ) . deleteExisting ( ) build ( \"\" ) { assertNoDiagnostic ( KotlinToolingDiagnostics . InconsistentTargetCompatibilityForKotlinAndJavaTasks ) } javaSourcesDir ( ) . resolve ( \"\" ) . modify { it . replace ( \"\" , \"\"\"\"\"\" ) } build ( \"\" ) { assertNoDiagnostic ( KotlinToolingDiagnostics . InconsistentTargetCompatibilityForKotlinAndJavaTasks ) } } }","docstring":""} {"signature":"@ JvmGradlePluginTests @ DisplayName ( \"\" ) @ GradleTest internal fun shouldDoJvmTargetValidationOnNoJavaSources ( gradleVersion : GradleVersion )","body":"{ project ( projectName = \"\" . fullProjectName , gradleVersion = gradleVersion , ) { gradleProperties . append ( \"\"\"\"\"\" . trimIndent ( ) ) buildGradle . appendText ( \"\"\"\"\"\" . trimMargin ( ) ) build ( \"\" ) { assertHasDiagnostic ( KotlinToolingDiagnostics . InconsistentTargetCompatibilityForKotlinAndJavaTasks ) } } }","docstring":""} {"signature":"@ JvmGradlePluginTests @ DisplayName ( \"\" ) @ GradleTest internal fun shouldDoJvmTargetValidationOnNewJavaSourcesAndConfigurationCacheReuse ( gradleVersion : GradleVersion )","body":"{ project ( projectName = \"\" . fullProjectName , gradleVersion = gradleVersion , buildOptions = defaultBuildOptions . withConfigurationCache ) { gradleProperties . append ( \"\"\"\"\"\" . trimIndent ( ) ) buildGradle . appendText ( \"\"\"\"\"\" . trimMargin ( ) ) build ( \"\" ) { assertHasDiagnostic ( KotlinToolingDiagnostics . InconsistentTargetCompatibilityForKotlinAndJavaTasks ) } javaSourcesDir ( ) . resolve ( \"\" ) . run { createDirectories ( ) resolve ( \"\" ) . writeText ( \"\"\"\"\"\" . trimIndent ( ) ) } build ( \"\" ) { assertHasDiagnostic ( KotlinToolingDiagnostics . InconsistentTargetCompatibilityForKotlinAndJavaTasks ) } } }","docstring":""} {"signature":"@ OtherGradlePluginTests @ DisplayName ( \"\" ) @ GradleTest internal fun kaptGenerateStubsValidateCorrect ( gradleVersion : GradleVersion )","body":"{ project ( projectName = \"\" , gradleVersion = gradleVersion , ) { val toolchainJavaVersion = if ( gradleVersion < GradleVersion . version ( \"\" ) ) else gradleProperties . append ( \"\"\"\"\"\" . trimIndent ( ) ) buildGradle . append ( \"\"\"\"\"\" . trimIndent ( ) ) build ( \"\" ) } }","docstring":""} {"signature":"@ JvmGradlePluginTests @ DisplayName ( \"\" ) @ GradleTestVersions ( maxVersion = TestVersions . Gradle . G_8_0 ) @ GradleTest internal fun errorByDefaultWithGradle8 ( gradleVersion : GradleVersion )","body":"{ project ( \"\" . fullProjectName , gradleVersion ) { @ Suppress ( \"\" ) buildGradle . appendText ( \"\"\"\"\"\" . trimMargin ( ) ) if ( gradleVersion . baseVersion >= GradleVersion . version ( \"\" ) ) { buildAndFail ( \"\" ) { assertHasDiagnostic ( KotlinToolingDiagnostics . InconsistentTargetCompatibilityForKotlinAndJavaTasks ) } } else { build ( \"\" ) { assertHasDiagnostic ( KotlinToolingDiagnostics . InconsistentTargetCompatibilityForKotlinAndJavaTasks ) } } } }","docstring":""} {"signature":"@ MppGradlePluginTests @ DisplayName ( \"\" ) @ GradleTest internal fun mppWithJavaFailValidation ( gradleVersion : GradleVersion )","body":"{ project ( \"\" , gradleVersion ) { gradleProperties . append ( \"\"\"\"\"\" . trimIndent ( ) ) subProject ( \"\" ) . buildGradleKts . appendText ( \"\"\"\"\"\" . trimMargin ( ) ) buildAndFail ( \"\" ) { assertHasDiagnostic ( KotlinToolingDiagnostics . InconsistentTargetCompatibilityForKotlinAndJavaTasks ) } } }","docstring":""} {"signature":"@ MppGradlePluginTests @ DisplayName ( \"\" ) @ GradleTest internal fun mppJvmNotFailValidation ( gradleVersion : GradleVersion )","body":"{ project ( \"\" , gradleVersion ) { gradleProperties . append ( \"\"\"\"\"\" . trimIndent ( ) ) subProject ( \"\" ) . buildGradleKts . appendText ( \"\"\"\"\"\" . trimMargin ( ) ) build ( \"\" ) } }","docstring":""} {"signature":"private fun TestProject . setJavaCompilationCompatibility ( target : JavaVersion )","body":"{ buildGradle . append ( \"\"\"\"\"\" . trimIndent ( ) ) }","docstring":""} {"signature":"private fun TestProject . useToolchainToCompile ( jdkVersion : Int )","body":"{ buildGradle . append ( \"\"\"\"\"\" . trimIndent ( ) ) }","docstring":""} {"signature":"private fun getJdk11 ( ) : JavaInfo","body":"= Jvm . forHome ( File ( System . getProperty ( \"\" ) ) )","docstring":""} {"signature":"private fun getJdk17 ( ) : JavaInfo","body":"= Jvm . forHome ( File ( System . getProperty ( \"\" ) ) )","docstring":""} {"signature":"fun use ( vararg a : Any ? )","body":"= a","docstring":""} {"signature":"fun test ( )","body":"{ use ( use ( A , null ) . toString ( ) ) }","docstring":""} {"signature":"private fun primitiveClassProperty ( name : String )","body":"= primitiveClassProperties . singleOrNull { it . name == Name . identifier ( name ) } ? . getter ? : primitiveClassesObject . owner . declarations . filterIsInstance < IrSimpleFunction > ( ) . single { it . name == Name . special ( \"\" ) }","docstring":""} {"signature":"private fun getPrimitiveClass ( target : IrSimpleFunction , returnType : IrType )","body":"= JsIrBuilder . buildCall ( target . symbol , returnType ) . apply { dispatchReceiver = JsIrBuilder . buildGetObjectValue ( type = primitiveClassesObject . defaultType , classSymbol = primitiveClassesObject ) }","docstring":""} {"signature":"override fun getFinalPrimitiveKClass ( returnType : IrType , typeArgument : IrType ) : IrCall ?","body":"{ for ( ( typePredicate , v ) in finalPrimitiveClasses ) { if ( typePredicate ( typeArgument ) ) return getPrimitiveClass ( v , returnType ) } return null }","docstring":""} {"signature":"override fun getOpenPrimitiveKClass ( returnType : IrType , typeArgument : IrType ) : IrCall ?","body":"{ for ( ( typePredicate , v ) in openPrimitiveClasses ) { if ( typePredicate ( typeArgument ) ) return getPrimitiveClass ( v , returnType ) } if ( typeArgument . isFunction ( ) ) { val functionInterface = typeArgument . getClass ( ) ! ! val arity = functionInterface . typeParameters . size - return getPrimitiveClass ( primitiveClassFunctionClass , returnType ) . apply { putValueArgument ( , JsIrBuilder . buildInt ( context . irBuiltIns . intType , arity ) ) } } return null }","docstring":""} {"signature":"override fun callGetKClass ( returnType : IrType , typeArgument : IrType ) : IrCall","body":"{ val primitiveKClass = getFinalPrimitiveKClass ( returnType , typeArgument ) ? : getOpenPrimitiveKClass ( returnType , typeArgument ) if ( primitiveKClass != null ) return primitiveKClass return JsIrBuilder . buildCall ( reflectionSymbols . getKClass , returnType , listOf ( typeArgument ) ) . apply { putValueArgument ( , callGetClassByType ( typeArgument ) ) } }","docstring":""} {"signature":"private fun callGetClassByType ( type : IrType )","body":"= JsIrBuilder . buildCall ( getClassData , typeArguments = listOf ( type ) , origin = JsStatementOrigins . CLASS_REFERENCE )","docstring":""} {"signature":"protected open fun getFinalPrimitiveKClass ( returnType : IrType , typeArgument : IrType ) : IrCall ?","body":"= null","docstring":""} {"signature":"protected open fun getOpenPrimitiveKClass ( returnType : IrType , typeArgument : IrType ) : IrCall ?","body":"= null","docstring":""} {"signature":"private fun callGetKClassFromExpression ( returnType : IrType , typeArgument : IrType , argument : IrExpression ) : IrExpression","body":"{ val primitiveKClass = getFinalPrimitiveKClass ( returnType , typeArgument ) if ( primitiveKClass != null ) return JsIrBuilder . buildBlock ( returnType , listOf ( argument , primitiveKClass ) ) return JsIrBuilder . buildCall ( reflectionSymbols . getKClassFromExpression , returnType , listOf ( typeArgument ) ) . apply { putValueArgument ( , argument ) } }","docstring":""} {"signature":"abstract fun callGetKClass ( returnType : IrType = reflectionSymbols . getKClass . owner . returnType , typeArgument : IrType ) : IrCall","body":"abstract fun callGetKClass ( returnType : IrType = reflectionSymbols . getKClass . owner . returnType , typeArgument : IrType ) : IrCall","docstring":""} {"signature":"private fun buildCall ( name : IrSimpleFunctionSymbol , vararg args : IrExpression ) : IrExpression","body":"= JsIrBuilder . buildCall ( name ) . apply { args . forEachIndexed { index , irExpression -> putValueArgument ( index , irExpression ) } }","docstring":""} {"signature":"private fun createKType ( type : IrType , visitedTypeParams : MutableSet < IrTypeParameter > ) : IrExpression","body":"{ if ( type is IrSimpleType ) return createSimpleKType ( type , visitedTypeParams ) if ( type is IrDynamicType ) return createDynamicType ( ) compilationException ( \"\" , type ) }","docstring":""} {"signature":"private fun createDynamicType ( ) : IrExpression","body":"{ return buildCall ( reflectionSymbols . createDynamicKType ! ! ) }","docstring":""} {"signature":"private fun createSimpleKType ( type : IrSimpleType , visitedTypeParams : MutableSet < IrTypeParameter > ) : IrExpression","body":"{ val classifier : IrClassifierSymbol = type . classifier val kClassifier = createKClassifier ( classifier , visitedTypeParams ) val arguments = context . createArrayOfExpression ( startOffset = UNDEFINED_OFFSET , endOffset = UNDEFINED_OFFSET , arrayElementType = context . reflectionSymbols . kTypeClass . defaultType , arrayElements = type . arguments . memoryOptimizedMap { createKTypeProjection ( it , visitedTypeParams ) } ) val isMarkedNullable = JsIrBuilder . buildBoolean ( context . irBuiltIns . booleanType , type . isMarkedNullable ( ) ) return buildCall ( reflectionSymbols . createKType ! ! , kClassifier , arguments , isMarkedNullable ) }","docstring":""} {"signature":"private fun createKTypeProjection ( tp : IrTypeArgument , visitedTypeParams : MutableSet < IrTypeParameter > ) : IrExpression","body":"{ if ( tp !is IrTypeProjection ) { return buildCall ( reflectionSymbols . getStarKTypeProjection ! ! ) } val factoryName = when ( tp . variance ) { Variance . INVARIANT -> reflectionSymbols . createInvariantKTypeProjection ! ! Variance . IN_VARIANCE -> reflectionSymbols . createContravariantKTypeProjection ! ! Variance . OUT_VARIANCE -> reflectionSymbols . createCovariantKTypeProjection ! ! } val kType = createKType ( tp . type , visitedTypeParams ) return buildCall ( factoryName , kType ) }","docstring":""} {"signature":"private fun createKClassifier ( classifier : IrClassifierSymbol , visitedTypeParams : MutableSet < IrTypeParameter > ) : IrExpression","body":"= when ( classifier ) { is IrTypeParameterSymbol -> createKTypeParameter ( classifier . owner , visitedTypeParams ) else -> callGetKClass ( typeArgument = classifier . defaultType ) }","docstring":""} {"signature":"private fun createKTypeParameter ( typeParameter : IrTypeParameter , visitedTypeParams : MutableSet < IrTypeParameter > ) : IrExpression","body":"{ if ( typeParameter in visitedTypeParams ) TODO ( \"\" ) visitedTypeParams . add ( typeParameter ) val name = JsIrBuilder . buildString ( context . irBuiltIns . stringType , typeParameter . name . asString ( ) ) val upperBounds = context . createArrayOfExpression ( startOffset = UNDEFINED_OFFSET , endOffset = UNDEFINED_OFFSET , arrayElementType = context . reflectionSymbols . kTypeClass . defaultType , arrayElements = typeParameter . superTypes . memoryOptimizedMap { createKType ( it , visitedTypeParams ) } ) val variance = when ( typeParameter . variance ) { Variance . INVARIANT -> JsIrBuilder . buildString ( context . irBuiltIns . stringType , \"\" ) Variance . IN_VARIANCE -> JsIrBuilder . buildString ( context . irBuiltIns . stringType , \"\" ) Variance . OUT_VARIANCE -> JsIrBuilder . buildString ( context . irBuiltIns . stringType , \"\" ) } return buildCall ( reflectionSymbols . createKTypeParameter ! ! , name , upperBounds , variance , typeParameter . isReified . toIrConst ( context . irBuiltIns . booleanType ) , ) . also { visitedTypeParams . remove ( typeParameter ) } }","docstring":""} {"signature":"override fun lower ( irBody : IrBody , container : IrDeclaration )","body":"{ irBody . transformChildrenVoid ( object : IrElementTransformerVoidWithContext ( ) { override fun visitGetClass ( expression : IrGetClass ) = callGetKClassFromExpression ( returnType = expression . type , typeArgument = expression . argument . type , argument = expression . argument . transform ( this , null ) ) override fun visitClassReference ( expression : IrClassReference ) = callGetKClass ( returnType = expression . type , typeArgument = expression . classType . makeNotNull ( ) ) override fun visitCall ( expression : IrCall ) : IrExpression = if ( Symbols . isTypeOfIntrinsic ( expression . symbol ) ) { createKType ( expression . getTypeArgument ( ) ! ! , hashSetOf ( ) ) } else { super . visitCall ( expression ) } } ) }","docstring":""} {"signature":"override fun isEmpty ( )","body":"= membersDiffList . isEmpty ( )","docstring":""} {"signature":"override fun writeAsHtml ( output : PrintWriter )","body":"{ if ( isEmpty ( ) ) return output . tag ( \"\" , \"\" ) output . listDiff ( header1 , header2 , membersDiffList ) }","docstring":""} {"signature":"fun addMembersListDiffs ( diffs : List < ListEntryDiff > )","body":"{ for ( diff in diffs ) { membersDiffList . add ( diff . toDiffEntry ( ) ) } }","docstring":""} {"signature":"fun TextTreeBuilderContext . appendMultiFileClassFacadeReport ( )","body":"{ if ( isNotEmpty ( ) ) { node ( \"\" ) { appendDiffEntries ( header1 , header2 , membersDiffList ) } } }","docstring":""} {"signature":"operator fun invoke ( usedDeprecatedProperties : List < String > )","body":"= build ( \"\"\"\"\"\" . trimMargin ( ) )","docstring":""} {"signature":"operator fun invoke ( podName : String )","body":"= build ( \"\"\"\"\"\" . trimIndent ( ) )","docstring":""} {"signature":"operator fun invoke ( )","body":"= build ( \"\"\"\"\"\" . trimIndent ( ) )","docstring":""} {"signature":"operator fun invoke ( )","body":"= build ( \"\" )","docstring":""} {"signature":"operator fun invoke ( podName : String )","body":"= build ( \"\" )","docstring":""} {"signature":"operator fun invoke ( podName : String , dependencyName : String )","body":"= build ( \"\" )","docstring":""} {"signature":"operator fun invoke ( )","body":"= build ( \"\"\"\"\"\" . trimIndent ( ) )","docstring":""} {"signature":"@ DisplayName ( \"\" ) @ ParameterizedTest ( name = \"\" ) @ MethodSource ( \"\" ) fun withValueSource ( name : String , tsPath : String , ktPath : String )","body":"{ assertContentEquals ( name , tsPath , ktPath ) }","docstring":""} {"signature":"override fun getTranslator ( ) : InputTranslator < String >","body":"= translator","docstring":""} {"signature":"@ JvmStatic fun idl2ktSet ( ) : Array < Array < String > >","body":"{ return MethodSourceSourceFiles ( \"\" , WEBIDL_DECLARATION_EXTENSION ) . fileSetWithDescriptors ( ) }","docstring":""} {"signature":"public fun unchangedFun2 ( )","body":"{ }","docstring":""} {"signature":"private fun removedFun2 ( ) : Int","body":"= ","docstring":""} {"signature":"private fun changedFun2 ( arg : Int )","body":"{ }","docstring":""} {"signature":"override fun findInnerClass ( name : Name )","body":"= klass . declaredClasses . asSequence ( ) . firstOrNull { it . simpleName == name . asString ( ) } ? . let ( :: ReflectJavaClass )","docstring":""} {"signature":"private fun isEnumValuesOrValueOf ( method : Method ) : Boolean","body":"{ return when ( method . name ) { \"\" -> method . parameterTypes . isEmpty ( ) \"\" -> Arrays . equals ( method . parameterTypes , arrayOf ( String :: class . java ) ) else -> false } }","docstring":""} {"signature":"override fun hasDefaultConstructor ( )","body":"= false","docstring":""} {"signature":"override fun equals ( other : Any ? )","body":"= other is ReflectJavaClass && klass == other . klass","docstring":""} {"signature":"override fun hashCode ( )","body":"= klass . hashCode ( )","docstring":""} {"signature":"override fun toString ( )","body":"= this :: class . java . name + \"\" + klass","docstring":""} {"signature":"private fun buildCache ( ) : Cache","body":"{ val clazz = Class :: class . java return try { Cache ( clazz . getMethod ( \"\" ) , clazz . getMethod ( \"\" ) , clazz . getMethod ( \"\" ) , clazz . getMethod ( \"\" ) ) } catch ( e : NoSuchMethodException ) { Cache ( null , null , null , null ) } }","docstring":""} {"signature":"private fun initCache ( ) : Cache","body":"{ var cache = this . _cache if ( cache == null ) { cache = buildCache ( ) this . _cache = cache } return cache }","docstring":""} {"signature":"fun loadIsSealed ( clazz : Class < * > ) : Boolean ?","body":"{ val cache = initCache ( ) val isSealed = cache . isSealed ? : return null return isSealed . invoke ( clazz ) as Boolean }","docstring":""} {"signature":"fun loadGetPermittedSubclasses ( clazz : Class < * > ) : Array < Class < * > > ?","body":"{ val cache = initCache ( ) val getPermittedSubclasses = cache . getPermittedSubclasses ? : return null @ Suppress ( \"\" ) return getPermittedSubclasses . invoke ( clazz ) as Array < Class < * > > }","docstring":""} {"signature":"fun loadIsRecord ( clazz : Class < * > ) : Boolean ?","body":"{ val cache = initCache ( ) val isRecord = cache . isRecord ? : return null return isRecord . invoke ( clazz ) as Boolean }","docstring":""} {"signature":"fun loadGetRecordComponents ( clazz : Class < * > ) : Array < Any > ?","body":"{ val cache = initCache ( ) val getRecordComponents = cache . getRecordComponents ? : return null @ Suppress ( \"\" ) return getRecordComponents . invoke ( clazz ) as Array < Any > ? }","docstring":""} {"signature":"fun main ( )","body":"{ val data : Any = OwnedProject ( \"\" , \"\" ) println ( format . encodeToString ( PolymorphicSerializer ( Any :: class ) , data ) ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val c = CalculatorConstants ( ) return c . status }","docstring":""} {"signature":"override fun compareTo ( other : LookupSymbolKey ) : Int","body":"{ val nameCmp = nameHash . compareTo ( other . nameHash ) if ( nameCmp != ) return nameCmp return scopeHash . compareTo ( other . scopeHash ) }","docstring":""} {"signature":"override fun hashCode ( ) : Int","body":"{ var result = nameHash result = * result + scopeHash return result }","docstring":""} {"signature":"override fun equals ( other : Any ? ) : Boolean","body":"{ if ( this === other ) return true if ( javaClass != other ? . javaClass ) return false other as LookupSymbolKey if ( nameHash != other . nameHash ) return false if ( scopeHash != other . scopeHash ) return false return true }","docstring":""} {"signature":"fun box ( ) : String","body":"{ OUTER @ while ( true ) { var x = \"\" try { do { x = x + break@OUTER } while ( true ) } finally { return \"\" } } }","docstring":""} {"signature":"private fun internal ( className : String , packageFragment : PackageFragmentDescriptor = kotlinJvmInternalPackage ) : Lazy < ClassDescriptor >","body":"= lazy { createClass ( packageFragment , className ) }","docstring":""} {"signature":"private fun coroutinesInternal ( name : String ) : Lazy < ClassDescriptor >","body":"= lazy { createCoroutineSuperClass ( name ) }","docstring":""} {"signature":"private fun propertyClasses ( prefix : String , suffix : String ) : Lazy < List < ClassDescriptor > >","body":"= lazy { ( .. ) . map { i -> createClass ( kotlinJvmInternalPackage , prefix + i + suffix ) } }","docstring":""} {"signature":"private fun createCoroutineSuperClass ( className : String ) : ClassDescriptor","body":"= createClass ( kotlinCoroutinesJvmInternalPackage , className )","docstring":""} {"signature":"private fun createClass ( packageFragment : PackageFragmentDescriptor , name : String , classKind : ClassKind = ClassKind . CLASS ) : ClassDescriptor","body":"= MutableClassDescriptor ( packageFragment , classKind , false , false , Name . identifier ( name ) , SourceElement . NO_SOURCE , LockBasedStorageManager . NO_LOCKS ) . apply { modality = Modality . FINAL visibility = DescriptorVisibilities . PUBLIC setTypeParameterDescriptors ( emptyList ( ) ) createTypeConstructor ( ) }","docstring":""} {"signature":"fun getSupertypesForClosure ( descriptor : FunctionDescriptor ) : Collection < KotlinType >","body":"{ val actualFunctionDescriptor = if ( descriptor . isSuspend ) getOrCreateJvmSuspendFunctionView ( descriptor ) else descriptor if ( actualFunctionDescriptor . returnType == null ) throw KotlinExceptionWithAttachments ( \"\" + \"\" ) val functionType = createFunctionType ( descriptor . builtIns , Annotations . EMPTY , actualFunctionDescriptor . extensionReceiverParameter ? . type , actualFunctionDescriptor . contextReceiverParameters . map { it . type } , actualFunctionDescriptor . valueParameters . map { it . type } , null , actualFunctionDescriptor . returnType ! ! ) if ( descriptor . isSuspend ) { return mutableListOf < KotlinType > ( ) . apply { if ( actualFunctionDescriptor . isRestrictedSuspendFunction ( ) ) { if ( descriptor . isSuspendLambdaOrLocalFunction ( ) ) { add ( restrictedSuspendLambda . defaultType ) } else { add ( restrictedContinuationImpl . defaultType ) } } else { if ( descriptor . isSuspendLambdaOrLocalFunction ( ) ) { add ( suspendLambda . defaultType ) } else { add ( continuationImpl . defaultType ) } } if ( descriptor . isSuspendLambdaOrLocalFunction ( ) ) { add ( functionType ) } } } return listOf ( lambda . defaultType , functionType ) }","docstring":""} {"signature":"fun getSupertypesForFunctionReference ( referencedFunction : FunctionDescriptor , anonymousFunctionDescriptor : AnonymousFunctionDescriptor , isBound : Boolean , isAdaptedCallableReference : Boolean , isSuspendConversion : Boolean ) : Collection < KotlinType >","body":"{ val receivers = computeExpectedNumberOfReceivers ( referencedFunction , isBound ) val functionType = createFunctionType ( referencedFunction . builtIns , Annotations . EMPTY , if ( isBound ) null else referencedFunction . extensionReceiverParameter ? . type ? : referencedFunction . dispatchReceiverParameter ? . type , referencedFunction . contextReceiverParameters . map { it . type } , anonymousFunctionDescriptor . valueParameters . drop ( receivers ) . map { it . type } , null , anonymousFunctionDescriptor . returnType ! ! , referencedFunction . isSuspend || isSuspendConversion ) val suspendFunctionType = if ( referencedFunction . isSuspend || isSuspendConversion ) suspendFunctionInterface ? . defaultType else null val superClass = when { generateOptimizedCallableReferenceSuperClasses -> when { isAdaptedCallableReference || isSuspendConversion -> adaptedFunctionReference else -> functionReferenceImpl } else -> functionReference } return listOfNotNull ( superClass . defaultType , functionType , suspendFunctionType ) }","docstring":""} {"signature":"fun getSupertypeForPropertyReference ( descriptor : VariableDescriptorWithAccessors , isMutable : Boolean , isBound : Boolean ) : KotlinType","body":"{ if ( descriptor is LocalVariableDescriptor ) { return ( if ( isMutable ) mutableLocalVariableReference else localVariableReference ) . defaultType } val arity = ( if ( descriptor . extensionReceiverParameter != null ) else ) + ( if ( descriptor . dispatchReceiverParameter != null ) else ) - if ( isBound ) else val classes = when { generateOptimizedCallableReferenceSuperClasses -> if ( isMutable ) mutablePropertyReferenceImpls else propertyReferenceImpls else -> if ( isMutable ) mutablePropertyReferences else propertyReferences } return if ( arity >= ) { classes [ arity ] . defaultType } else { classes [ ] . defaultType } }","docstring":""} {"signature":"override fun check ( resolvedCall : ResolvedCall < * > , reportOn : PsiElement , context : CallCheckerContext )","body":"{ val descriptor = resolvedCall . candidateDescriptor if ( descriptor !is PropertyDescriptor ) return val propertyName = descriptor . name val containingDescriptor = descriptor . containingDeclaration if ( containingDescriptor !is ClassDescriptor || ! containingDescriptor . isCompanionObject ) return val grandParent = containingDescriptor . containingDeclaration if ( grandParent is ClassDescriptor && grandParent . kind == ClassKind . ENUM_CLASS && grandParent . containsEntryWithName ( propertyName ) && resolvedCall . dispatchReceiver . isQualifierFor ( grandParent ) ) { context . resolutionContext . trace . report ( Errors . DEPRECATED_ACCESS_TO_ENUM_COMPANION_PROPERTY . on ( reportOn , descriptor ) ) } }","docstring":""} {"signature":"private fun ClassDescriptor . containsEntryWithName ( name : Name ) : Boolean","body":"{ val foundDescriptor = unsubstitutedMemberScope . getContributedClassifier ( name , NoLookupLocation . FOR_ALREADY_TRACKED ) return foundDescriptor is ClassDescriptor && foundDescriptor . kind == ClassKind . ENUM_ENTRY }","docstring":""} {"signature":"internal fun ReceiverValue ? . isQualifierFor ( classDescriptor : ClassDescriptor ) : Boolean","body":"{ if ( this !is ClassValueReceiver ) return false val thisClass = this . classQualifier . descriptor as? ClassDescriptor ? : return false return thisClass . typeConstructor == classDescriptor . typeConstructor }","docstring":""} {"signature":"fun test ( a : A )","body":"{ val result = mutableListOf < Int > ( ) @ Suppress ( \"\" ) result += ( a . list as List < Int > ) . filter { it > } }","docstring":""} {"signature":"fun Foo . ext ( )","body":"{ }","docstring":""} {"signature":"fun usage ( )","body":"{ }","docstring":"/**\n * [one.two.ext]\n * [one.two.ext]\n *\n * [Foo.ext]\n * [one.two.Foo.ext]\n *\n * [one.two.Foo.ext]\n * [one.two.Foo.ext]\n */"} {"signature":"@ Test fun `should parse include description for a nested package in kotlin-jvm` ( )","body":"{ val testProject = kotlinJvmTestProject { dokkaConfiguration { kotlinSourceSet { includes = setOf ( \"\" ) } } ktFile ( pathFromSrc = \"\" ) { + \"\" } mdFile ( pathFromProjectRoot = \"\" ) { + \"\"\"\"\"\" } } testProject . useServices { context -> val pckg = context . module . packages . single { it . name == \"\" } val allPackageDocs = moduleAndPackageDocumentationReader . read ( pckg ) assertEquals ( , allPackageDocs . size ) val sourceSetPackageDocs = allPackageDocs . entries . single ( ) . value assertEquals ( , sourceSetPackageDocs . children . size ) val descriptionTag = sourceSetPackageDocs . children . single ( ) as Description assertEquals ( , descriptionTag . children . size ) val paragraphTag = descriptionTag . children . single ( ) as P assertEquals ( , paragraphTag . children . size ) val expectedParagraphChildren = listOf ( Text ( \"\" ) , CodeInline ( children = listOf ( Text ( \"\" ) ) ) , Text ( \"\" ) ) assertEquals ( expectedParagraphChildren , paragraphTag . children ) } }","docstring":""} {"signature":"@ KtAnalysisApiInternals fun ClassKind . toKtClassKind ( isCompanionObject : Boolean ) : KtClassKind","body":"= when ( this ) { ClassKind . INTERFACE -> KtClassKind . INTERFACE ClassKind . ENUM_CLASS -> KtClassKind . ENUM_CLASS ClassKind . ANNOTATION_CLASS -> KtClassKind . ANNOTATION_CLASS ClassKind . CLASS -> KtClassKind . CLASS ClassKind . OBJECT -> if ( isCompanionObject ) KtClassKind . COMPANION_OBJECT else KtClassKind . OBJECT ClassKind . ENUM_ENTRY -> invalidEnumEntryAsClassKind ( ) }","docstring":""} {"signature":"@ KtAnalysisApiInternals fun invalidEnumEntryAsClassKind ( ) : Nothing","body":"{ error ( \"\" ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val a1 = Actor ( , \"\" , \"\" ) val a1c = a1 . copy ( ) if ( a1c . id != a1 . id ) return \"\" val a2 = Actor ( , \"\" , \"\" ) if ( a2 == a1 ) return \"\" if ( a2 . hashCode ( ) == a1 . hashCode ( ) ) return \"\" a1 . toString ( ) return \"\" }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val a = \"\" if ( a !== a ) return \"\" if ( a === a ) return \"\" return \"\" }","docstring":""} {"signature":"@ Benchmark fun singlePingPong ( )","body":"= runBlocking { runPingPongs ( ) }","docstring":""} {"signature":"@ Benchmark fun coresCountPingPongs ( )","body":"= runBlocking { runPingPongs ( Runtime . getRuntime ( ) . availableProcessors ( ) ) }","docstring":""} {"signature":"private suspend fun runPingPongs ( count : Int )","body":"{ val me = Channel < Letter > ( ) repeat ( count ) { val pong = pongActorCoroutine ( ) val ping = pingActorCoroutine ( pong ) ping . send ( Letter ( Start ( ) , me ) ) } repeat ( count ) { me . receive ( ) } }","docstring":""} {"signature":"fun CoroutineScope . pingActorCoroutine ( pingChannel : SendChannel < PingPongActorBenchmark . Letter > , capacity : Int = )","body":"= actor < PingPongActorBenchmark . Letter > ( capacity = capacity ) { var initiator : SendChannel < PingPongActorBenchmark . Letter > ? = null for ( letter in channel ) with ( letter ) { when ( message ) { is Start -> { initiator = sender pingChannel . send ( PingPongActorBenchmark . Letter ( Ball ( ) , channel ) ) } is Ball -> { pingChannel . send ( PingPongActorBenchmark . Letter ( Ball ( message . count + ) , channel ) ) } is Stop -> { initiator ! ! . send ( PingPongActorBenchmark . Letter ( Stop ( ) , channel ) ) return@actor } else -> error ( \"\" ) } } }","docstring":""} {"signature":"fun CoroutineScope . pongActorCoroutine ( capacity : Int = )","body":"= actor < PingPongActorBenchmark . Letter > ( capacity = capacity ) { for ( letter in channel ) with ( letter ) { when ( message ) { is Ball -> { if ( message . count >= N_MESSAGES ) { sender . send ( PingPongActorBenchmark . Letter ( Stop ( ) , channel ) ) return@actor } else { sender . send ( PingPongActorBenchmark . Letter ( Ball ( message . count + ) , channel ) ) } } else -> error ( \"\" ) } } }","docstring":""} {"signature":"fun test ( )","body":"{ val ans1 = runCatching { } println ( ans1 ) val ans2 = . runCatching { this } println ( ans2 ) }","docstring":""} {"signature":"@ HtmlTagMarker inline fun DATALIST . option ( classes : String ? = null , crossinline block : OPTION . ( ) -> Unit = { } ) : Unit","body":"= OPTION ( attributesMapOf ( \"\" , classes ) , consumer ) . visit ( block )","docstring":"/**\n * Selectable choice\n */"} {"signature":"@ HtmlTagMarker fun DATALIST . option ( classes : String ? = null , content : String = \"\" ) : Unit","body":"= OPTION ( attributesMapOf ( \"\" , classes ) , consumer ) . visit ( { + content } )","docstring":"/**\n * Selectable choice\n */"} {"signature":"@ HtmlTagMarker inline fun DETAILS . legend ( classes : String ? = null , crossinline block : LEGEND . ( ) -> Unit = { } ) : Unit","body":"= LEGEND ( attributesMapOf ( \"\" , classes ) , consumer ) . visit ( block )","docstring":"/**\n * Fieldset legend\n */"} {"signature":"@ HtmlTagMarker inline fun DL . dd ( classes : String ? = null , crossinline block : DD . ( ) -> Unit = { } ) : Unit","body":"= DD ( attributesMapOf ( \"\" , classes ) , consumer ) . visit ( block )","docstring":"/**\n * Definition description\n */"} {"signature":"@ HtmlTagMarker inline fun DL . dt ( classes : String ? = null , crossinline block : DT . ( ) -> Unit = { } ) : Unit","body":"= DT ( attributesMapOf ( \"\" , classes ) , consumer ) . visit ( block )","docstring":"/**\n * Definition term\n */"} {"signature":"override fun setUp ( )","body":"{ super . setUp ( ) configurationKind = ConfigurationKind . ALL }","docstring":""} {"signature":"override fun updateConfiguration ( configuration : CompilerConfiguration )","body":"{ super . updateConfiguration ( configuration ) if ( scriptDefinitions . isNotEmpty ( ) ) { configureScriptDefinitions ( scriptDefinitions , configuration , this :: class . java . classLoader , MessageCollector . NONE , defaultJvmScriptingHostConfiguration ) } configuration . addJvmClasspathRoots ( additionalDependencies . orEmpty ( ) ) loadScriptingPlugin ( configuration ) }","docstring":""} {"signature":"override fun doMultiFileTest ( wholeFile : File , files : List < TestFile > )","body":"{ if ( files . size > ) { throw UnsupportedOperationException ( \"\" ) } if ( InTextDirectivesUtils . isIgnoredTarget ( backend , wholeFile ) ) { println ( \"\" ) return } val file = files . single ( ) val content = file . content scriptDefinitions = InTextDirectivesUtils . findListWithPrefixes ( content , \"\" ) if ( scriptDefinitions . isNotEmpty ( ) ) { additionalDependencies = scriptCompilationClasspathFromContextOrStdlib ( \"\" , \"\" ) + File ( TestScriptWithReceivers :: class . java . protectionDomain . codeSource . location . toURI ( ) . path ) + with ( PathUtil . kotlinPathsForDistDirectory ) { arrayOf ( KOTLIN_SCRIPTING_COMPILER_PLUGIN_JAR , KOTLIN_SCRIPTING_COMPILER_IMPL_JAR , KOTLIN_SCRIPTING_COMMON_JAR , KOTLIN_SCRIPTING_JVM_JAR ) . mapNotNull { File ( libPath , it ) . takeIf ( File :: exists ) } } } createEnvironmentWithMockJdkAndIdeaAnnotations ( configurationKind , files , TestJdkKind . FULL_JDK ) myFiles = CodegenTestFiles . create ( file . name , content , myEnvironment . project ) try { val scriptClass = generateClass ( myFiles . psiFile . script ! ! . fqName . asString ( ) ) val receivers = InTextDirectivesUtils . findListWithPrefixes ( content , \"\" ) val environmentVars = extractAllKeyValPairs ( content , \"\" ) val scriptParams = InTextDirectivesUtils . findListWithPrefixes ( content , \"\" ) val scriptInstance = runScript ( scriptClass , receivers , environmentVars , scriptParams ) val expectedFields = extractAllKeyValPairs ( content , \"\" ) checkExpectedFields ( expectedFields , scriptClass , scriptInstance ) } catch ( e : Throwable ) { printReport ( wholeFile ) throw e } }","docstring":""} {"signature":"private fun extractAllKeyValPairs ( content : String , directive : String ) : Map < String , String >","body":"= InTextDirectivesUtils . findListWithPrefixes ( content , directive ) . associate { line -> line . substringBefore ( '' ) to line . substringAfter ( '' ) }","docstring":""} {"signature":"private fun runScript ( scriptClass : Class < * > , receivers : List < Any ? > , environmentVars : Map < String , Any ? > , scriptParams : List < Any > ) : Any ?","body":"{ val ctorParams = arrayListOf < Any ? > ( ) ctorParams . addAll ( scriptParams ) ctorParams . addAll ( receivers ) ctorParams . addAll ( environmentVars . values ) val constructor = scriptClass . constructors [ ] return constructor . newInstance ( * ctorParams . toTypedArray ( ) ) }","docstring":""} {"signature":"private fun checkExpectedFields ( expectedFields : Map < String , Any ? > , scriptClass : Class < * > , scriptInstance : Any ? )","body":"{ Assert . assertFalse ( \"\" , expectedFields . isEmpty ( ) ) for ( ( fieldName , expectedValue ) in expectedFields ) { if ( expectedValue == \"\" ) { try { scriptClass . getDeclaredField ( fieldName ) Assert . fail ( \"\" ) } catch ( e : NoSuchFieldException ) { continue } } val field = scriptClass . getDeclaredField ( fieldName ) field . isAccessible = true val resultString = field . get ( scriptInstance ) ? . toString ( ) ? : \"\" Assert . assertEquals ( \"\" , expectedValue , resultString ) } }","docstring":""} {"signature":"fun additionalTraining ( )","body":"{ val ( train , test ) = fashionMnist ( ) val jsonConfigFile = getJSONConfigFile ( ) val model = Sequential . loadModelConfiguration ( jsonConfigFile ) model . use { it . compile ( optimizer = Adam ( ) , loss = Losses . SOFT_MAX_CROSS_ENTROPY_WITH_LOGITS , metric = Metrics . ACCURACY ) it . logSummary ( ) val hdfFile = getWeightsFile ( ) it . loadWeights ( hdfFile ) val accuracyBefore = it . evaluate ( dataset = test , batchSize = ) . metrics [ Metrics . ACCURACY ] println ( \"\" ) it . fit ( dataset = train , validationRate = , epochs = , trainBatchSize = , validationBatchSize = ) val accuracyAfterTraining = it . evaluate ( dataset = test , batchSize = ) . metrics [ Metrics . ACCURACY ] println ( \"\" ) } }","docstring":"/**\n * This example demonstrates the transfer learning concept:\n * - Weights are loaded from .h5 file, configuration is loaded from .json file.\n * - All model weights are not frozen, and can be changed during the training.\n * - No new layers are added.\n *\n * NOTE: Model and weights are resources in `examples` module.\n */"} {"signature":"fun main ( ) : Unit","body":"= additionalTraining ( )","docstring":"/** */"} {"signature":"protected abstract fun toResult ( key : K , value : V ) : R","body":"protected abstract fun toResult ( key : K , value : V ) : R","docstring":""} {"signature":"override fun serialize ( encoder : Encoder , value : R )","body":"{ val structuredEncoder = encoder . beginStructure ( descriptor ) structuredEncoder . encodeSerializableElement ( descriptor , , keySerializer , value . key ) structuredEncoder . encodeSerializableElement ( descriptor , , valueSerializer , value . value ) structuredEncoder . endStructure ( descriptor ) }","docstring":""} {"signature":"override fun deserialize ( decoder : Decoder ) : R","body":"= decoder . decodeStructure ( descriptor ) { if ( decodeSequentially ( ) ) { val key = decodeSerializableElement ( descriptor , , keySerializer ) val value = decodeSerializableElement ( descriptor , , valueSerializer ) return@decodeStructure toResult ( key , value ) } var key : Any ? = NULL var value : Any ? = NULL mainLoop @ while ( true ) { when ( val idx = decodeElementIndex ( descriptor ) ) { CompositeDecoder . DECODE_DONE -> { break@mainLoop } -> { key = decodeSerializableElement ( descriptor , , keySerializer ) } -> { value = decodeSerializableElement ( descriptor , , valueSerializer ) } else -> throw SerializationException ( \"\" ) } } if ( key === NULL ) throw SerializationException ( \"\" ) if ( value === NULL ) throw SerializationException ( \"\" ) @ Suppress ( \"\" ) return@decodeStructure toResult ( key as K , value as V ) }","docstring":""} {"signature":"override fun toResult ( key : K , value : V ) : Map . Entry < K , V >","body":"= MapEntry ( key , value )","docstring":""} {"signature":"override fun toResult ( key : K , value : V ) : Pair < K , V >","body":"= key to value","docstring":""} {"signature":"override fun serialize ( encoder : Encoder , value : Triple < A , B , C > )","body":"{ val structuredEncoder = encoder . beginStructure ( descriptor ) structuredEncoder . encodeSerializableElement ( descriptor , , aSerializer , value . first ) structuredEncoder . encodeSerializableElement ( descriptor , , bSerializer , value . second ) structuredEncoder . encodeSerializableElement ( descriptor , , cSerializer , value . third ) structuredEncoder . endStructure ( descriptor ) }","docstring":""} {"signature":"override fun deserialize ( decoder : Decoder ) : Triple < A , B , C >","body":"{ val composite = decoder . beginStructure ( descriptor ) if ( composite . decodeSequentially ( ) ) { return decodeSequentially ( composite ) } return decodeStructure ( composite ) }","docstring":""} {"signature":"private fun decodeSequentially ( composite : CompositeDecoder ) : Triple < A , B , C >","body":"{ val a = composite . decodeSerializableElement ( descriptor , , aSerializer ) val b = composite . decodeSerializableElement ( descriptor , , bSerializer ) val c = composite . decodeSerializableElement ( descriptor , , cSerializer ) composite . endStructure ( descriptor ) return Triple ( a , b , c ) }","docstring":""} {"signature":"private fun decodeStructure ( composite : CompositeDecoder ) : Triple < A , B , C >","body":"{ var a : Any ? = NULL var b : Any ? = NULL var c : Any ? = NULL mainLoop @ while ( true ) { when ( val index = composite . decodeElementIndex ( descriptor ) ) { CompositeDecoder . DECODE_DONE -> { break@mainLoop } -> { a = composite . decodeSerializableElement ( descriptor , , aSerializer ) } -> { b = composite . decodeSerializableElement ( descriptor , , bSerializer ) } -> { c = composite . decodeSerializableElement ( descriptor , , cSerializer ) } else -> throw SerializationException ( \"\" ) } } composite . endStructure ( descriptor ) if ( a === NULL ) throw SerializationException ( \"\" ) if ( b === NULL ) throw SerializationException ( \"\" ) if ( c === NULL ) throw SerializationException ( \"\" ) @ Suppress ( \"\" ) return Triple ( a as A , b as B , c as C ) }","docstring":""} {"signature":"fun emit ( event : String , vararg args : Any ) : Boolean","body":"fun emit ( event : String , vararg args : Any ) : Boolean","docstring":""} {"signature":"fun emit ( event : Any , vararg args : Any ) : Boolean","body":"fun emit ( event : Any , vararg args : Any ) : Boolean","docstring":""} {"signature":"override fun emit ( event : String , vararg args : Any ) : Boolean","body":"override fun emit ( event : String , vararg args : Any ) : Boolean","docstring":""} {"signature":"override fun emit ( event : Any , vararg args : Any ) : Boolean","body":"override fun emit ( event : Any , vararg args : Any ) : Boolean","docstring":""} {"signature":"fun compute ( ) : Number","body":"fun compute ( ) : Number","docstring":""} {"signature":"override fun emit ( event : String , vararg args : Any ) : Boolean","body":"override fun emit ( event : String , vararg args : Any ) : Boolean","docstring":""} {"signature":"override fun emit ( event : Any , vararg args : Any ) : Boolean","body":"override fun emit ( event : Any , vararg args : Any ) : Boolean","docstring":""} {"signature":"override fun compute ( ) : Number","body":"override fun compute ( ) : Number","docstring":""} {"signature":"fun ok ( )","body":"= \"\"","docstring":""} {"signature":"fun box ( )","body":"= Test . fn ( )","docstring":""} {"signature":"@ DisplayName ( \"\" ) @ GradleTest fun shouldNotUseExternalDependencies ( gradleVersion : GradleVersion )","body":"{ buildProjectWithDependencies ( gradleVersion ) { externalDependenciesText -> assertEquals ( \"\"\"\"\"\" . trimMargin ( ) , externalDependenciesText ) } }","docstring":""} {"signature":"@ DisplayName ( \"\" ) @ GradleTest fun shouldUseOldKtorAndCoroutinesExternalDependencies ( gradleVersion : GradleVersion )","body":"{ buildProjectWithDependencies ( gradleVersion , \"\" , \"\" ) { externalDependenciesText -> assertNotNull ( externalDependenciesText ) assertEquals ( \"\"\"\"\"\" . trimIndent ( ) , externalDependenciesText ) } }","docstring":""} {"signature":"@ DisplayName ( \"\" ) @ GradleTest fun shouldUseKtorAndCoroutinesExternalDependencies ( gradleVersion : GradleVersion )","body":"{ buildProjectWithDependencies ( gradleVersion , \"\" , \"\" ) { externalDependenciesText -> assertNotNull ( externalDependenciesText ) assertEquals ( \"\"\"\"\"\" . trimMargin ( ) , externalDependenciesText ) } }","docstring":""} {"signature":"private fun buildProjectWithDependencies ( gradleVersion : GradleVersion , vararg dependencies : String , externalDependenciesTextConsumer : ( externalDependenciesText : String ? ) -> Unit , )","body":"{ nativeProject ( \"\" , gradleVersion ) { buildGradleKts . appendText ( \"\"\"\"\"\" . trimMargin ( ) ) build ( \"\" ) { assertTasksExecuted ( \"\" ) val externalDependenciesFile = findParameterInOutput ( \"\" , output ) ? . let ( :: File ) val externalDependenciesText = if ( externalDependenciesFile ? . exists ( ) == true ) { externalDependenciesFile . readText ( ) . lineSequence ( ) . map { line -> if ( line . firstOrNull ( ) ? . isWhitespace ( ) == true ) \"\" else line } . joinToString ( \"\" ) } else null externalDependenciesTextConsumer ( externalDependenciesText ) } } }","docstring":""} {"signature":"override fun lower ( source : SourceSetModel ) : SourceSetModel","body":"{ return source . copy ( sources = source . sources . map { if ( it . root . shortName == TSLIBROOT ) { it . copy ( root = lower ( it . root ) ) } else { it } } ) }","docstring":""} {"signature":"abstract override fun createPointer ( ) : KtSymbolPointer < KtPropertyAccessorSymbol >","body":"abstract override fun createPointer ( ) : KtSymbolPointer < KtPropertyAccessorSymbol >","docstring":""} {"signature":"abstract override fun createPointer ( ) : KtSymbolPointer < KtPropertyGetterSymbol >","body":"abstract override fun createPointer ( ) : KtSymbolPointer < KtPropertyGetterSymbol >","docstring":""} {"signature":"abstract override fun createPointer ( ) : KtSymbolPointer < KtPropertySetterSymbol >","body":"abstract override fun createPointer ( ) : KtSymbolPointer < KtPropertySetterSymbol >","docstring":""} {"signature":"fun < @ Anno T > foo ( )","body":"{ }","docstring":""} {"signature":"@ Setup fun setup ( )","body":"{ sizeLong = size . toLong ( ) intRange = .. size longRange = .. sizeLong array = IntArray ( size ) }","docstring":""} {"signature":"@ Benchmark fun arrayLoop ( bh : Blackhole )","body":"{ for ( i in array ) { bh . consume ( i ) } }","docstring":""} {"signature":"@ Benchmark fun arrayIndicesLoop ( bh : Blackhole )","body":"{ for ( i in array . indices ) { bh . consume ( i ) } }","docstring":""} {"signature":"@ Benchmark fun intRangeLiteralLoop ( bh : Blackhole )","body":"{ for ( i in .. size ) { bh . consume ( i ) } }","docstring":""} {"signature":"@ Benchmark fun intRangeExpressionLoop ( bh : Blackhole )","body":"{ for ( i in intRange ) { bh . consume ( i ) } }","docstring":""} {"signature":"@ Benchmark fun longRangeLiteralLoop ( bh : Blackhole )","body":"{ for ( i in .. sizeLong ) { bh . consume ( i ) } }","docstring":""} {"signature":"@ Benchmark fun longRangeExpressionLoop ( bh : Blackhole )","body":"{ for ( i in longRange ) { bh . consume ( i ) } }","docstring":""} {"signature":"@ Benchmark fun intDownToLoop ( bh : Blackhole )","body":"{ for ( i in size downTo ) { bh . consume ( i ) } }","docstring":""} {"signature":"@ Benchmark fun longDownToLoop ( bh : Blackhole )","body":"{ for ( i in sizeLong downTo ) { bh . consume ( i ) } }","docstring":""} {"signature":"@ Benchmark fun intUntilLoop ( bh : Blackhole )","body":"{ for ( i in until size ) { bh . consume ( i ) } }","docstring":""} {"signature":"@ Benchmark fun longUntilLoop ( bh : Blackhole )","body":"{ for ( i in until sizeLong ) { bh . consume ( i ) } }","docstring":""} {"signature":"@ ObjCName ( \"\" ) fun close ( )","body":"@ ObjCName ( \"\" ) fun close ( )","docstring":""} {"signature":"override fun close ( )","body":"override fun close ( )","docstring":""} {"signature":"@ ObjCName ( \"\" ) fun close ( )","body":"@ ObjCName ( \"\" ) fun close ( )","docstring":""} {"signature":"@ ObjCName ( \"\" ) fun close ( )","body":"{ }","docstring":""} {"signature":"suspend fun emit ( value : T )","body":"suspend fun emit ( value : T )","docstring":""} {"signature":"suspend fun collect ( collector : FlowCollector < T > )","body":"suspend fun collect ( collector : FlowCollector < T > )","docstring":""} {"signature":"public inline fun < T > flow ( crossinline block : suspend FlowCollector < T > . ( ) -> Unit )","body":"= object : Flow < T > { override suspend fun collect ( collector : FlowCollector < T > ) = collector . block ( ) }","docstring":""} {"signature":"suspend inline fun < T > Flow < T > . collect ( crossinline action : suspend ( T ) -> Unit ) : Unit","body":"= collect ( object : FlowCollector < T > { override suspend fun emit ( value : T ) = action ( value ) } )","docstring":""} {"signature":"public inline fun < T , R > Flow < T > . transform ( crossinline transformer : suspend FlowCollector < R > . ( value : T ) -> Unit ) : Flow < R >","body":"{ return flow { return@flow collect { value -> return@collect transformer ( value ) } } }","docstring":""} {"signature":"public inline fun < T , R > Flow < T > . map ( crossinline transformer : suspend ( value : T ) -> R ) : Flow < R >","body":"= transform { value -> return@transform emit ( transformer ( value ) ) }","docstring":""} {"signature":"suspend fun foo ( )","body":"{ flow < Int > { emit ( ) } . map { it + } . collect { } }","docstring":""} {"signature":"actual fun < T > CoroutineScope . asyncWithDealy ( delay : Long , block : suspend ( ) -> T ) : Deferred < T >","body":"{ TODO ( \"\" ) }","docstring":"/**\n * JS actual implementation for `asyncWithDelay`\n */"} {"signature":"public fun extractImages ( archivePath : String ) : Array < FloatArray >","body":"{ val archiveStream = DataInputStream ( GZIPInputStream ( FileInputStream ( archivePath ) ) ) val magic = archiveStream . readInt ( ) require ( IMAGE_ARCHIVE_MAGIC == magic ) { \"\" } val imageCount = archiveStream . readInt ( ) val imageRows = archiveStream . readInt ( ) val imageCols = archiveStream . readInt ( ) println ( String . format ( \"\" , imageCount , imageRows , imageCols , archivePath ) ) val imageBuffer = ByteArray ( imageRows * imageCols ) val images = Array ( imageCount ) { archiveStream . readFully ( imageBuffer ) toNormalizedVector ( imageBuffer ) } return images }","docstring":"/**\n * Extracts (Fashion) Mnist images from [archivePath].\n */"} {"signature":"public fun extractLabels ( archivePath : String ) : FloatArray","body":"{ val archiveStream = DataInputStream ( GZIPInputStream ( FileInputStream ( archivePath ) ) ) val magic = archiveStream . readInt ( ) require ( LABEL_ARCHIVE_MAGIC == magic ) { \"\" } val labelCount = archiveStream . readInt ( ) println ( String . format ( \"\" , labelCount , archivePath ) ) val labelBuffer = ByteArray ( labelCount ) archiveStream . readFully ( labelBuffer ) val floats = FloatArray ( labelCount ) for ( i in until labelCount ) { floats [ i ] = OnHeapDataset . convertByteToFloat ( labelBuffer [ i ] ) } return floats }","docstring":"/**\n * Extracts (Fashion) Mnist labels from [archivePath] with number of classes [numClasses].\n */"} {"signature":"fun ResultValue . Error . renderError ( stream : PrintStream )","body":"{ var trace = error . stackTrace val wrappingTrace = wrappingException ? . stackTrace if ( wrappingException == null || trace . size < wrappingTrace ! ! . size ) { error . printStackTrace ( stream ) } else { fun PrintStream . printTrace ( stackTrace : Array < StackTraceElement > , dropLastFrames : Int ) { for ( element in stackTrace . dropLast ( dropLastFrames ) ) { println ( \"\" ) } } stream . println ( error ) stream . printTrace ( trace , wrappingTrace . size ) var current : Throwable ? = error . cause var wrapping = error val cyclesDetection = hashSetOf ( wrapping ) while ( current != null && cyclesDetection . add ( current ) ) { trace = current . stackTrace val sameFramesCount = trace . asList ( ) . asReversed ( ) . asSequence ( ) . zip ( wrapping . stackTrace . asList ( ) . asReversed ( ) . asSequence ( ) ) . takeWhile { it . first == it . second } . count ( ) stream . println ( \"\" ) stream . printTrace ( trace , sameFramesCount ) wrapping = current current = current . cause } } }","docstring":""} {"signature":"fun ResultValue . Error . renderError ( ) : String","body":"= ByteArrayOutputStream ( ) . use { os -> val ps = PrintStream ( os ) renderError ( ps ) ps . flush ( ) os . toString ( ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val x : String run { x = \"\" val y = x } return x }","docstring":""} {"signature":"fun vgg11OnCifar10ExportImport ( )","body":"{ val ( cifarImagesArchive , cifarLabelsArchive ) = cifar10Paths ( ) val preprocessing = pipeline < BufferedImage > ( ) . convert { colorMode = ColorMode . BGR } . toFloatArray { } . rescale { scalingCoefficient = } val y = extractCifar10LabelsAnsSort ( cifarLabelsArchive ) val dataset = OnFlyImageDataset . create ( File ( cifarImagesArchive ) , y , preprocessing ) val ( train , test ) = dataset . split ( TRAIN_TEST_SPLIT_RATIO ) vgg11 . use { it . compile ( optimizer = Adam ( ) , loss = Losses . SOFT_MAX_CROSS_ENTROPY_WITH_LOGITS , metric = Metrics . ACCURACY ) it . logSummary ( ) val start = System . currentTimeMillis ( ) it . fit ( dataset = train , epochs = EPOCHS , batchSize = TRAINING_BATCH_SIZE ) println ( \"\" ) it . save ( File ( PATH_TO_MODEL ) , writingMode = WritingMode . OVERRIDE ) val accuracy = it . evaluate ( dataset = test , batchSize = TEST_BATCH_SIZE ) . metrics [ Metrics . ACCURACY ] println ( \"\" ) } val inferenceModel = TensorFlowInferenceModel . load ( File ( PATH_TO_MODEL ) ) inferenceModel . use { var accuracy = val amountOfTestSet = test . xSize ( ) for ( imageId in until amountOfTestSet ) { val prediction = it . predict ( test . getX ( imageId ) ) if ( prediction == test . getY ( imageId ) . toInt ( ) ) accuracy += ( / amountOfTestSet ) } println ( \"\" ) } }","docstring":""} {"signature":"fun main ( ) : Unit","body":"= vgg11OnCifar10ExportImport ( )","docstring":"/** */"} {"signature":"override fun ExtensionRegistrarContext . configurePlugin ( )","body":"{ if ( compilerConfiguration . getBoolean ( ScriptingConfigurationKeys . DISABLE_SCRIPTING_PLUGIN_OPTION ) ) return configureScriptDefinitions ( compilerConfiguration , hostConfiguration , this :: class . java . classLoader ) val definitionSources = compilerConfiguration . getList ( ScriptingConfigurationKeys . SCRIPT_DEFINITIONS_SOURCES ) val definitions = compilerConfiguration . getList ( ScriptingConfigurationKeys . SCRIPT_DEFINITIONS ) if ( definitionSources . isNotEmpty ( ) || definitions . isNotEmpty ( ) ) { + FirScriptDefinitionProviderService . getFactory ( definitions , definitionSources ) } + FirScriptConfiguratorExtensionImpl . getFactory ( hostConfiguration ) + FirScriptResolutionConfigurationExtensionImpl . getFactory ( hostConfiguration ) + Fir2IrScriptConfiguratorExtensionImpl . getFactory ( hostConfiguration ) }","docstring":""} {"signature":"@ BeforeEach fun assumeCachesAreEnabled ( )","body":"{ Assumptions . assumeFalse ( testRunSettings . get < CacheMode > ( ) == CacheMode . WithoutCache ) }","docstring":""} {"signature":"@ Test @ TestMetadata ( \"\" ) fun testSimple ( )","body":"= withRootDir ( File ( \"\" ) ) { val lib = compileLibrary ( \"\" ) { \"\" copyTo \"\" } val main = compileToExecutable ( \"\" , lib ) { \"\" copyTo \"\" } assertTrue ( main . executableFile . exists ( ) ) val libKtCacheDir = getLibraryFileCache ( \"\" , \"\" , \"\" ) assertTrue ( libKtCacheDir . exists ( ) ) runExecutableAndVerify ( main . testCase , main . testExecutable ) val modified = libKtCacheDir . lastModified ( ) compileToExecutable ( \"\" , lib ) { \"\" copyTo \"\" } assertTrue ( libKtCacheDir . exists ( ) ) assertEquals ( modified , libKtCacheDir . lastModified ( ) ) }","docstring":""} {"signature":"@ Test @ TestMetadata ( \"\" ) fun testModifiedFile ( )","body":"= withRootDir ( File ( \"\" ) ) { val lib = compileLibrary ( \"\" ) { \"\" copyTo \"\" } val main = compileToExecutable ( \"\" , lib ) { \"\" copyTo \"\" } assertTrue ( main . executableFile . exists ( ) ) val libKtCacheDir = getLibraryFileCache ( \"\" , \"\" , \"\" ) assertTrue ( libKtCacheDir . exists ( ) ) runExecutableAndVerify ( main . testCase , main . testExecutable ) val modified = libKtCacheDir . lastModified ( ) val lib1 = compileLibrary ( \"\" ) { \"\" copyTo \"\" } val main1 = compileToExecutable ( \"\" , lib1 ) { \"\" copyTo \"\" } assertTrue ( libKtCacheDir . exists ( ) ) assertNotEquals ( modified , libKtCacheDir . lastModified ( ) ) runExecutableAndVerify ( main1 . testCase , main1 . testExecutable ) }","docstring":""} {"signature":"@ Test @ TestMetadata ( \"\" ) fun testAddedFile ( )","body":"= withRootDir ( File ( \"\" ) ) { val lib = compileLibrary ( \"\" ) { \"\" copyTo \"\" } val main = compileToExecutable ( \"\" , lib ) { \"\" copyTo \"\" } assertTrue ( main . executableFile . exists ( ) ) val libFile1KtCacheDir = getLibraryFileCache ( \"\" , \"\" , \"\" ) assertTrue ( libFile1KtCacheDir . exists ( ) ) runExecutableAndVerify ( main . testCase , main . testExecutable ) val modified = libFile1KtCacheDir . lastModified ( ) val lib1 = compileLibrary ( \"\" ) { \"\" copyTo \"\" \"\" copyTo \"\" } val main1 = compileToExecutable ( \"\" , lib1 ) { \"\" copyTo \"\" } assertTrue ( libFile1KtCacheDir . exists ( ) ) assertEquals ( modified , libFile1KtCacheDir . lastModified ( ) ) val libFile2KtCacheDir = getLibraryFileCache ( \"\" , \"\" , \"\" ) assertTrue ( libFile2KtCacheDir . exists ( ) ) runExecutableAndVerify ( main1 . testCase , main1 . testExecutable ) }","docstring":""} {"signature":"@ Test @ TestMetadata ( \"\" ) fun testRemovedFile ( )","body":"= withRootDir ( File ( \"\" ) ) { val lib = compileLibrary ( \"\" ) { \"\" copyTo \"\" \"\" copyTo \"\" } val main = compileToExecutable ( \"\" , lib ) { \"\" copyTo \"\" } assertTrue ( main . executableFile . exists ( ) ) val libFile1KtCacheDir = getLibraryFileCache ( \"\" , \"\" , \"\" ) assertTrue ( libFile1KtCacheDir . exists ( ) ) val libFile2KtCacheDir = getLibraryFileCache ( \"\" , \"\" , \"\" ) assertTrue ( libFile2KtCacheDir . exists ( ) ) runExecutableAndVerify ( main . testCase , main . testExecutable ) val modified = libFile1KtCacheDir . lastModified ( ) val lib1 = compileLibrary ( \"\" ) { \"\" copyTo \"\" } val main1 = compileToExecutable ( \"\" , lib1 ) { \"\" copyTo \"\" } assertTrue ( libFile1KtCacheDir . exists ( ) ) assertEquals ( modified , libFile1KtCacheDir . lastModified ( ) ) assertFalse ( libFile2KtCacheDir . exists ( ) ) runExecutableAndVerify ( main1 . testCase , main1 . testExecutable ) }","docstring":""} {"signature":"@ Test @ TestMetadata ( \"\" ) fun testRenamedFile ( )","body":"= withRootDir ( File ( \"\" ) ) { val lib = compileLibrary ( \"\" ) { \"\" copyTo \"\" } val main = compileToExecutable ( \"\" , lib ) { \"\" copyTo \"\" } assertTrue ( main . executableFile . exists ( ) ) val libKtCacheDir = getLibraryFileCache ( \"\" , \"\" , \"\" ) assertTrue ( libKtCacheDir . exists ( ) ) runExecutableAndVerify ( main . testCase , main . testExecutable ) val lib1 = compileLibrary ( \"\" ) { \"\" copyTo \"\" } val main1 = compileToExecutable ( \"\" , lib1 ) { \"\" copyTo \"\" } assertFalse ( libKtCacheDir . exists ( ) ) val changedLibKtCacheDir = getLibraryFileCache ( \"\" , \"\" , \"\" ) assertTrue ( changedLibKtCacheDir . exists ( ) ) runExecutableAndVerify ( main1 . testCase , main1 . testExecutable ) }","docstring":""} {"signature":"@ Test @ TestMetadata ( \"\" ) fun testRenamedPackage ( )","body":"= withRootDir ( File ( \"\" ) ) { val lib = compileLibrary ( \"\" ) { \"\" copyTo \"\" } val main = compileToExecutable ( \"\" , lib ) { \"\" copyTo \"\" } assertTrue ( main . executableFile . exists ( ) ) val libKtCacheDir = getLibraryFileCache ( \"\" , \"\" , \"\" ) assertTrue ( libKtCacheDir . exists ( ) ) runExecutableAndVerify ( main . testCase , main . testExecutable ) val lib1 = compileLibrary ( \"\" ) { \"\" copyTo \"\" } val main1 = compileToExecutable ( \"\" , lib1 ) { \"\" copyTo \"\" } assertFalse ( libKtCacheDir . exists ( ) ) val changedLibKtCacheDir = getLibraryFileCache ( \"\" , \"\" , \"\" ) assertTrue ( changedLibKtCacheDir . exists ( ) ) runExecutableAndVerify ( main1 . testCase , main1 . testExecutable ) }","docstring":""} {"signature":"@ Test @ TestMetadata ( \"\" ) fun testChangedFileIndex ( )","body":"= withRootDir ( File ( \"\" ) ) { val lib = compileLibrary ( \"\" ) { \"\" copyTo \"\" \"\" copyTo \"\" } val main = compileToExecutable ( \"\" , lib ) { \"\" copyTo \"\" } assertTrue ( main . executableFile . exists ( ) ) val libBKtCacheDir = getLibraryFileCache ( \"\" , \"\" , \"\" ) assertTrue ( libBKtCacheDir . exists ( ) ) runExecutableAndVerify ( main . testCase , main . testExecutable ) val modified = libBKtCacheDir . lastModified ( ) val lib1 = compileLibrary ( \"\" ) { \"\" copyTo \"\" \"\" copyTo \"\" } val main1 = compileToExecutable ( \"\" , lib1 ) { \"\" copyTo \"\" } assertTrue ( libBKtCacheDir . exists ( ) ) assertEquals ( modified , libBKtCacheDir . lastModified ( ) ) runExecutableAndVerify ( main1 . testCase , main1 . testExecutable ) }","docstring":""} {"signature":"@ Test @ TestMetadata ( \"\" ) fun testChangedExternalDependencyVersion ( )","body":"= withRootDir ( File ( \"\" ) ) { val externalLib = compileLibrary ( \"\" ) { libraryVersion = \"\" outputDir = \"\" \"\" copyTo \"\" } val userLib = compileLibrary ( \"\" , externalLib ) { \"\" copyTo \"\" } val main = compileToExecutable ( \"\" , externalLib , userLib ) { \"\" copyTo \"\" } assertTrue ( main . executableFile . exists ( ) ) val libFile1KtCacheDir = getLibraryFileCache ( \"\" , \"\" , \"\" ) assertTrue ( libFile1KtCacheDir . exists ( ) ) runExecutableAndVerify ( main . testCase , main . testExecutable ) val modified = libFile1KtCacheDir . lastModified ( ) val externalLib1 = compileLibrary ( \"\" ) { libraryVersion = \"\" outputDir = \"\" \"\" copyTo \"\" } val userLib1 = compileLibrary ( \"\" , externalLib1 ) { \"\" copyTo \"\" } val main1 = compileToExecutable ( \"\" , externalLib1 , userLib1 ) { \"\" copyTo \"\" } assertTrue ( libFile1KtCacheDir . exists ( ) ) assertNotEquals ( modified , libFile1KtCacheDir . lastModified ( ) ) runExecutableAndVerify ( main1 . testCase , main1 . testExecutable ) }","docstring":""} {"signature":"@ Test @ TestMetadata ( \"\" ) fun testChangedExternalDependency ( )","body":"= withRootDir ( File ( \"\" ) ) { val externalLib = compileLibrary ( \"\" ) { outputDir = \"\" \"\" copyTo \"\" \"\" copyTo \"\" } val userLib = compileLibrary ( \"\" , externalLib ) { \"\" copyTo \"\" \"\" copyTo \"\" } val main = compileToExecutable ( \"\" , externalLib , userLib ) { \"\" copyTo \"\" \"\" copyTo \"\" } assertTrue ( main . executableFile . exists ( ) ) val libFile1KtCacheDir = getLibraryFileCache ( \"\" , \"\" , \"\" ) val libFile2KtCacheDir = getLibraryFileCache ( \"\" , \"\" , \"\" ) assertTrue ( libFile1KtCacheDir . exists ( ) ) assertTrue ( libFile2KtCacheDir . exists ( ) ) runExecutableAndVerify ( main . testCase , main . testExecutable ) val modified1 = libFile1KtCacheDir . lastModified ( ) val modified2 = libFile2KtCacheDir . lastModified ( ) val externalLib1 = compileLibrary ( \"\" ) { outputDir = \"\" \"\" copyTo \"\" \"\" copyTo \"\" } val main1 = compileToExecutable ( \"\" , externalLib1 , userLib ) { \"\" copyTo \"\" \"\" copyTo \"\" } assertTrue ( libFile1KtCacheDir . exists ( ) ) assertNotEquals ( modified1 , libFile1KtCacheDir . lastModified ( ) ) assertTrue ( libFile2KtCacheDir . exists ( ) ) assertNotEquals ( modified2 , libFile2KtCacheDir . lastModified ( ) ) runExecutableAndVerify ( main1 . testCase , main1 . testExecutable ) }","docstring":""} {"signature":"@ Test @ TestMetadata ( \"\" ) fun testFileDependencies1 ( )","body":"= withRootDir ( File ( \"\" ) ) { val lib = compileLibrary ( \"\" ) { \"\" copyTo \"\" \"\" copyTo \"\" \"\" copyTo \"\" } val main = compileToExecutable ( \"\" , lib ) { \"\" copyTo \"\" } assertTrue ( main . executableFile . exists ( ) ) val file1KtCacheDir = getLibraryFileCache ( \"\" , \"\" , \"\" ) val file2KtCacheDir = getLibraryFileCache ( \"\" , \"\" , \"\" ) val file3KtCacheDir = getLibraryFileCache ( \"\" , \"\" , \"\" ) assertTrue ( file1KtCacheDir . exists ( ) ) assertTrue ( file2KtCacheDir . exists ( ) ) assertTrue ( file3KtCacheDir . exists ( ) ) val modified1 = file1KtCacheDir . lastModified ( ) val modified2 = file2KtCacheDir . lastModified ( ) val modified3 = file3KtCacheDir . lastModified ( ) runExecutableAndVerify ( main . testCase , main . testExecutable ) val lib1 = compileLibrary ( \"\" ) { \"\" copyTo \"\" \"\" copyTo \"\" \"\" copyTo \"\" } val main1 = compileToExecutable ( \"\" , lib1 ) { \"\" copyTo \"\" } assertTrue ( main1 . executableFile . exists ( ) ) assertTrue ( file1KtCacheDir . exists ( ) ) assertTrue ( file2KtCacheDir . exists ( ) ) assertTrue ( file3KtCacheDir . exists ( ) ) assertNotEquals ( modified1 , file1KtCacheDir . lastModified ( ) ) assertEquals ( modified2 , file2KtCacheDir . lastModified ( ) ) assertNotEquals ( modified3 , file3KtCacheDir . lastModified ( ) ) runExecutableAndVerify ( main1 . testCase , main1 . testExecutable ) }","docstring":""} {"signature":"@ Test @ TestMetadata ( \"\" ) fun testFileDependencies2 ( )","body":"= withRootDir ( File ( \"\" ) ) { val lib1 = compileLibrary ( \"\" ) { \"\" copyTo \"\" } val lib2 = compileLibrary ( \"\" , lib1 ) { \"\" copyTo \"\" \"\" copyTo \"\" } val main = compileToExecutable ( \"\" , lib1 , lib2 ) { \"\" copyTo \"\" } assertTrue ( main . executableFile . exists ( ) ) val lib1KtCacheDir = getLibraryFileCache ( \"\" , \"\" , \"\" ) val lib2File1KtCacheDir = getLibraryFileCache ( \"\" , \"\" , \"\" ) val lib2File2KtCacheDir = getLibraryFileCache ( \"\" , \"\" , \"\" ) assertTrue ( lib1KtCacheDir . exists ( ) ) assertTrue ( lib2File1KtCacheDir . exists ( ) ) assertTrue ( lib2File2KtCacheDir . exists ( ) ) val modified11 = lib1KtCacheDir . lastModified ( ) val modified21 = lib2File1KtCacheDir . lastModified ( ) val modified22 = lib2File2KtCacheDir . lastModified ( ) runExecutableAndVerify ( main . testCase , main . testExecutable ) val lib11 = compileLibrary ( \"\" ) { \"\" copyTo \"\" } val lib21 = compileLibrary ( \"\" , lib11 ) { \"\" copyTo \"\" \"\" copyTo \"\" } val main1 = compileToExecutable ( \"\" , lib11 , lib21 ) { \"\" copyTo \"\" } assertTrue ( main1 . executableFile . exists ( ) ) assertTrue ( lib1KtCacheDir . exists ( ) ) assertTrue ( lib2File1KtCacheDir . exists ( ) ) assertTrue ( lib2File2KtCacheDir . exists ( ) ) assertNotEquals ( modified11 , lib1KtCacheDir . lastModified ( ) ) assertEquals ( modified21 , lib2File1KtCacheDir . lastModified ( ) ) assertNotEquals ( modified22 , lib2File2KtCacheDir . lastModified ( ) ) runExecutableAndVerify ( main1 . testCase , main1 . testExecutable ) }","docstring":""} {"signature":"@ Test @ TestMetadata ( \"\" ) fun addMethodToOpenClass1 ( )","body":"= withRootDir ( File ( \"\" ) ) { val lib1 = compileLibrary ( \"\" ) { \"\" copyTo \"\" } val lib2 = compileLibrary ( \"\" , lib1 ) { \"\" copyTo \"\" } val main = compileToExecutable ( \"\" , lib1 , lib2 ) { \"\" copyTo \"\" } assertTrue ( main . executableFile . exists ( ) ) val lib1KtCacheDir = getLibraryFileCache ( \"\" , \"\" , \"\" ) val lib2KtCacheDir = getLibraryFileCache ( \"\" , \"\" , \"\" ) assertTrue ( lib1KtCacheDir . exists ( ) ) assertTrue ( lib2KtCacheDir . exists ( ) ) val modified1 = lib1KtCacheDir . lastModified ( ) val modified2 = lib2KtCacheDir . lastModified ( ) runExecutableAndVerify ( main . testCase , main . testExecutable ) val lib11 = compileLibrary ( \"\" ) { \"\" copyTo \"\" } val lib21 = compileLibrary ( \"\" , lib11 ) { \"\" copyTo \"\" } val main1 = compileToExecutable ( \"\" , lib11 , lib21 ) { \"\" copyTo \"\" } assertTrue ( main1 . executableFile . exists ( ) ) assertTrue ( lib1KtCacheDir . exists ( ) ) assertTrue ( lib2KtCacheDir . exists ( ) ) assertNotEquals ( modified1 , lib1KtCacheDir . lastModified ( ) ) assertEquals ( modified2 , lib2KtCacheDir . lastModified ( ) ) runExecutableAndVerify ( main1 . testCase , main1 . testExecutable ) }","docstring":""} {"signature":"@ Test @ TestMetadata ( \"\" ) fun addMethodToOpenClass2 ( )","body":"= withRootDir ( File ( \"\" ) ) { val lib1 = compileLibrary ( \"\" ) { \"\" copyTo \"\" \"\" copyTo \"\" } val lib2 = compileLibrary ( \"\" , lib1 ) { \"\" copyTo \"\" } val main = compileToExecutable ( \"\" , lib1 , lib2 ) { \"\" copyTo \"\" } assertTrue ( main . executableFile . exists ( ) ) val lib1File1KtCacheDir = getLibraryFileCache ( \"\" , \"\" , \"\" ) val lib1File2KtCacheDir = getLibraryFileCache ( \"\" , \"\" , \"\" ) val lib2KtCacheDir = getLibraryFileCache ( \"\" , \"\" , \"\" ) assertTrue ( lib1File1KtCacheDir . exists ( ) ) assertTrue ( lib1File2KtCacheDir . exists ( ) ) assertTrue ( lib2KtCacheDir . exists ( ) ) val modified11 = lib1File1KtCacheDir . lastModified ( ) val modified12 = lib1File2KtCacheDir . lastModified ( ) val modified2 = lib2KtCacheDir . lastModified ( ) runExecutableAndVerify ( main . testCase , main . testExecutable ) val lib11 = compileLibrary ( \"\" ) { \"\" copyTo \"\" \"\" copyTo \"\" } val lib21 = compileLibrary ( \"\" , lib11 ) { \"\" copyTo \"\" } val main1 = compileToExecutable ( \"\" , lib11 , lib21 ) { \"\" copyTo \"\" } assertTrue ( main1 . executableFile . exists ( ) ) assertTrue ( lib1File1KtCacheDir . exists ( ) ) assertTrue ( lib1File2KtCacheDir . exists ( ) ) assertTrue ( lib2KtCacheDir . exists ( ) ) assertNotEquals ( modified11 , lib1File1KtCacheDir . lastModified ( ) ) assertNotEquals ( modified12 , lib1File2KtCacheDir . lastModified ( ) ) assertEquals ( modified2 , lib2KtCacheDir . lastModified ( ) ) runExecutableAndVerify ( main1 . testCase , main1 . testExecutable ) }","docstring":""} {"signature":"@ Test @ TestMetadata ( \"\" ) fun addMethodToInterface1 ( )","body":"= withRootDir ( File ( \"\" ) ) { val lib1 = compileLibrary ( \"\" ) { \"\" copyTo \"\" } val lib2 = compileLibrary ( \"\" , lib1 ) { \"\" copyTo \"\" } val main = compileToExecutable ( \"\" , lib1 , lib2 ) { \"\" copyTo \"\" } assertTrue ( main . executableFile . exists ( ) ) val lib1KtCacheDir = getLibraryFileCache ( \"\" , \"\" , \"\" ) val lib2KtCacheDir = getLibraryFileCache ( \"\" , \"\" , \"\" ) assertTrue ( lib1KtCacheDir . exists ( ) ) assertTrue ( lib2KtCacheDir . exists ( ) ) val modified1 = lib1KtCacheDir . lastModified ( ) val modified2 = lib2KtCacheDir . lastModified ( ) runExecutableAndVerify ( main . testCase , main . testExecutable ) val lib11 = compileLibrary ( \"\" ) { \"\" copyTo \"\" } val lib21 = compileLibrary ( \"\" , lib11 ) { \"\" copyTo \"\" } val main1 = compileToExecutable ( \"\" , lib11 , lib21 ) { \"\" copyTo \"\" } assertTrue ( main1 . executableFile . exists ( ) ) assertTrue ( lib1KtCacheDir . exists ( ) ) assertTrue ( lib2KtCacheDir . exists ( ) ) assertNotEquals ( modified1 , lib1KtCacheDir . lastModified ( ) ) assertEquals ( modified2 , lib2KtCacheDir . lastModified ( ) ) runExecutableAndVerify ( main1 . testCase , main1 . testExecutable ) }","docstring":""} {"signature":"@ Test @ TestMetadata ( \"\" ) fun addMethodToInterface2 ( )","body":"= withRootDir ( File ( \"\" ) ) { val lib1 = compileLibrary ( \"\" ) { \"\" copyTo \"\" \"\" copyTo \"\" } val lib2 = compileLibrary ( \"\" , lib1 ) { \"\" copyTo \"\" } val main = compileToExecutable ( \"\" , lib1 , lib2 ) { \"\" copyTo \"\" } assertTrue ( main . executableFile . exists ( ) ) val lib1File1KtCacheDir = getLibraryFileCache ( \"\" , \"\" , \"\" ) val lib1File2KtCacheDir = getLibraryFileCache ( \"\" , \"\" , \"\" ) val lib2KtCacheDir = getLibraryFileCache ( \"\" , \"\" , \"\" ) assertTrue ( lib1File1KtCacheDir . exists ( ) ) assertTrue ( lib1File2KtCacheDir . exists ( ) ) assertTrue ( lib2KtCacheDir . exists ( ) ) val modified11 = lib1File1KtCacheDir . lastModified ( ) val modified12 = lib1File2KtCacheDir . lastModified ( ) val modified2 = lib2KtCacheDir . lastModified ( ) runExecutableAndVerify ( main . testCase , main . testExecutable ) val lib11 = compileLibrary ( \"\" ) { \"\" copyTo \"\" \"\" copyTo \"\" } val lib21 = compileLibrary ( \"\" , lib11 ) { \"\" copyTo \"\" } val main1 = compileToExecutable ( \"\" , lib11 , lib21 ) { \"\" copyTo \"\" } assertTrue ( main1 . executableFile . exists ( ) ) assertTrue ( lib1File1KtCacheDir . exists ( ) ) assertTrue ( lib1File2KtCacheDir . exists ( ) ) assertTrue ( lib2KtCacheDir . exists ( ) ) assertNotEquals ( modified11 , lib1File1KtCacheDir . lastModified ( ) ) assertNotEquals ( modified12 , lib1File2KtCacheDir . lastModified ( ) ) assertEquals ( modified2 , lib2KtCacheDir . lastModified ( ) ) runExecutableAndVerify ( main1 . testCase , main1 . testExecutable ) }","docstring":""} {"signature":"private inline fun withRootDir ( rootDir : File , block : RootDirHolder . ( ) -> Unit )","body":"= RootDirHolder ( rootDir ) . block ( )","docstring":""} {"signature":"inline fun compileLibrary ( targetSrc : String , vararg dependencies : TestCompilationArtifact . KLIB , block : LibraryBuilder . ( ) -> Unit )","body":"= with ( LibraryBuilder ( this @ IncrementalCompilationTest , rootDir , targetSrc , dependencies . asList ( ) ) ) { block ( ) build ( ) }","docstring":""} {"signature":"inline fun compileToExecutable ( targetSrc : String , vararg dependencies : TestCompilationArtifact . KLIB , block : ExecutableBuilder . ( ) -> Unit )","body":"= with ( ExecutableBuilder ( this @ IncrementalCompilationTest , rootDir , targetSrc , false , dependencies . asList ( ) ) ) { externalLibsDir . mkdirs ( ) icCacheDir . mkdirs ( ) autoCacheDir . mkdirs ( ) + \"\" + \"\" + \"\" + \"\" + \"\" block ( ) build ( ) }","docstring":""} {"signature":"private fun getLibraryFileCache ( libName : String , libFileRelativePath : String , fqName : String ) : File","body":"{ val libCacheDir = icCacheDir . resolve ( cacheFlavor ) . resolve ( \"\" ) val fileId = cacheFileId ( fqName , buildDir . resolve ( libFileRelativePath ) . absolutePath ) return libCacheDir . resolve ( fileId ) }","docstring":""} {"signature":"private fun cacheFileId ( fqName : String , filePath : String )","body":"= \"\"","docstring":""} {"signature":"fun foo ( x : ( String ) -> Int )","body":"{ }","docstring":""} {"signature":"fun foo ( x : ( ) -> Int )","body":"{ }","docstring":""} {"signature":"fun bar ( ) : Int","body":"= ","docstring":""} {"signature":"fun bar ( x : Double ) : Int","body":"= ","docstring":""} {"signature":"fun main ( )","body":"{ foo ( :: bar ) }","docstring":""} {"signature":"override fun processAfterAllModules ( someAssertionWasFailed : Boolean )","body":"{ }","docstring":""} {"signature":"override fun processModule ( module : TestModule , info : BinaryArtifacts . Js )","body":"{ val globalDirectives = testServices . moduleStructure . allDirectives if ( JsEnvironmentConfigurationDirectives . SKIP_REGULAR_MODE in globalDirectives ) return val referenceDtsFile = module . files . first ( ) . originalFile . withReplacedExtensionOrNull ( \"\" , \"\" ) ? : error ( \"\" ) val generatedDtsFile = info . outputFile . withReplacedExtensionOrNull ( \"\" , \"\" ) ? : info . outputFile . withReplacedExtensionOrNull ( \"\" , \"\" ) ? : error ( \"\" ) val generatedDts = generatedDtsFile . readText ( ) if ( JsEnvironmentConfigurationDirectives . UPDATE_REFERENCE_DTS_FILES in globalDirectives ) referenceDtsFile . writeText ( generatedDts ) else KotlinTestUtils . assertEqualsToFile ( referenceDtsFile , generatedDts ) }","docstring":""} {"signature":"@ GCUnsafeCall ( \"\" ) private external fun getSize ( ) : Int","body":"@ GCUnsafeCall ( \"\" ) private external fun getSize ( ) : Int","docstring":""} {"signature":"@ GCUnsafeCall ( \"\" ) external override fun get ( index : Int ) : Any ?","body":"@ GCUnsafeCall ( \"\" ) external override fun get ( index : Int ) : Any ?","docstring":""} {"signature":"@ GCUnsafeCall ( \"\" ) private external fun getSize ( ) : Int","body":"@ GCUnsafeCall ( \"\" ) private external fun getSize ( ) : Int","docstring":""} {"signature":"@ GCUnsafeCall ( \"\" ) external override fun get ( index : Int ) : Any ?","body":"@ GCUnsafeCall ( \"\" ) external override fun get ( index : Int ) : Any ?","docstring":""} {"signature":"@ GCUnsafeCall ( \"\" ) external override fun add ( index : Int , element : Any ? ) : Unit","body":"@ GCUnsafeCall ( \"\" ) external override fun add ( index : Int , element : Any ? ) : Unit","docstring":""} {"signature":"@ GCUnsafeCall ( \"\" ) external override fun removeAt ( index : Int ) : Any ?","body":"@ GCUnsafeCall ( \"\" ) external override fun removeAt ( index : Int ) : Any ?","docstring":""} {"signature":"@ GCUnsafeCall ( \"\" ) external override fun set ( index : Int , element : Any ? ) : Any ?","body":"@ GCUnsafeCall ( \"\" ) external override fun set ( index : Int , element : Any ? ) : Any ?","docstring":""} {"signature":"@ GCUnsafeCall ( \"\" ) private external fun getSize ( ) : Int","body":"@ GCUnsafeCall ( \"\" ) private external fun getSize ( ) : Int","docstring":""} {"signature":"@ GCUnsafeCall ( \"\" ) external override fun contains ( element : Any ? ) : Boolean","body":"@ GCUnsafeCall ( \"\" ) external override fun contains ( element : Any ? ) : Boolean","docstring":""} {"signature":"@ GCUnsafeCall ( \"\" ) external override fun getElement ( element : Any ? ) : Any ?","body":"@ GCUnsafeCall ( \"\" ) external override fun getElement ( element : Any ? ) : Any ?","docstring":""} {"signature":"@ GCUnsafeCall ( \"\" ) external override fun iterator ( ) : Iterator < Any ? >","body":"@ GCUnsafeCall ( \"\" ) external override fun iterator ( ) : Iterator < Any ? >","docstring":""} {"signature":"override fun equals ( other : Any ? ) : Boolean","body":"{ if ( this === other ) return true if ( other !is Map < * , * > ) return false if ( this . size != other . size ) return false return other . entries . all { this . containsEntry ( it . key , it . value ) } }","docstring":""} {"signature":"override fun hashCode ( ) : Int","body":"{ var result = keyIterator ( ) . forEach { key -> result += key . hashCode ( ) xor this . getOrThrowConcurrentModification ( key ) . hashCode ( ) } return result }","docstring":""} {"signature":"override fun toString ( ) : String","body":"= entries . joinToString ( \"\" , \"\" , \"\" ) { toString ( it . key ) + \"\" + toString ( it . value ) }","docstring":""} {"signature":"private fun toString ( o : Any ? ) : String","body":"= if ( o === this ) \"\" else o . toString ( )","docstring":""} {"signature":"@ GCUnsafeCall ( \"\" ) private external fun getSize ( ) : Int","body":"@ GCUnsafeCall ( \"\" ) private external fun getSize ( ) : Int","docstring":""} {"signature":"override fun isEmpty ( ) : Boolean","body":"= ( size == )","docstring":""} {"signature":"@ GCUnsafeCall ( \"\" ) override external fun containsKey ( key : Any ? ) : Boolean","body":"@ GCUnsafeCall ( \"\" ) override external fun containsKey ( key : Any ? ) : Boolean","docstring":""} {"signature":"@ GCUnsafeCall ( \"\" ) override external fun containsValue ( value : Any ? ) : Boolean","body":"@ GCUnsafeCall ( \"\" ) override external fun containsValue ( value : Any ? ) : Boolean","docstring":""} {"signature":"@ GCUnsafeCall ( \"\" ) external override operator fun get ( key : Any ? ) : Any ?","body":"@ GCUnsafeCall ( \"\" ) external override operator fun get ( key : Any ? ) : Any ?","docstring":""} {"signature":"@ GCUnsafeCall ( \"\" ) private external fun getOrThrowConcurrentModification ( key : Any ? ) : Any ?","body":"@ GCUnsafeCall ( \"\" ) private external fun getOrThrowConcurrentModification ( key : Any ? ) : Any ?","docstring":""} {"signature":"@ GCUnsafeCall ( \"\" ) private external fun containsEntry ( key : Any ? , value : Any ? ) : Boolean","body":"@ GCUnsafeCall ( \"\" ) private external fun containsEntry ( key : Any ? , value : Any ? ) : Boolean","docstring":""} {"signature":"@ GCUnsafeCall ( \"\" ) private external fun keyIterator ( ) : Iterator < Any ? >","body":"@ GCUnsafeCall ( \"\" ) private external fun keyIterator ( ) : Iterator < Any ? >","docstring":""} {"signature":"override fun iterator ( ) : Iterator < Any ? >","body":"= this@NSDictionaryAsKMap . keyIterator ( )","docstring":""} {"signature":"override fun contains ( element : Any ? ) : Boolean","body":"= this@NSDictionaryAsKMap . containsKey ( element )","docstring":""} {"signature":"@ GCUnsafeCall ( \"\" ) private external fun valueIterator ( ) : Iterator < Any ? >","body":"@ GCUnsafeCall ( \"\" ) private external fun valueIterator ( ) : Iterator < Any ? >","docstring":""} {"signature":"override fun iterator ( ) : Iterator < Any ? >","body":"= this@NSDictionaryAsKMap . valueIterator ( )","docstring":""} {"signature":"override fun contains ( element : Any ? ) : Boolean","body":"= this@NSDictionaryAsKMap . containsValue ( element )","docstring":""} {"signature":"override fun iterator ( ) : Iterator < Map . Entry < Any ? , Any ? > >","body":"= this@NSDictionaryAsKMap . EntryIterator ( )","docstring":""} {"signature":"override fun contains ( element : Map . Entry < Any ? , Any ? > ) : Boolean","body":"{ return this@NSDictionaryAsKMap . containsEntry ( element . key , element . value ) }","docstring":""} {"signature":"override fun equals ( other : Any ? ) : Boolean","body":"= other is Map . Entry < * , * > && other . key == key && other . value == value","docstring":""} {"signature":"override fun hashCode ( ) : Int","body":"= key . hashCode ( ) xor value . hashCode ( )","docstring":""} {"signature":"override fun toString ( ) : String","body":"= \"\"","docstring":""} {"signature":"override fun hasNext ( ) : Boolean","body":"= keyIterator . hasNext ( )","docstring":""} {"signature":"override fun next ( ) : Map . Entry < Any ? , Any ? >","body":"{ val nextKey = keyIterator . next ( ) val nextValue = this@NSDictionaryAsKMap . getOrThrowConcurrentModification ( nextKey ) return Entry ( nextKey , nextValue ) }","docstring":""} {"signature":"@ GCUnsafeCall ( \"\" ) override external fun computeNext ( )","body":"@ GCUnsafeCall ( \"\" ) override external fun computeNext ( )","docstring":""} {"signature":"@ ExportForCppRuntime private fun Kotlin_NSEnumeratorAsKIterator_done ( )","body":"= this . done ( )","docstring":""} {"signature":"@ ExportForCppRuntime private fun Kotlin_NSEnumeratorAsKIterator_setNext ( value : Any ? )","body":"= this . setNext ( value )","docstring":""} {"signature":"@ ExportForCppRuntime private fun Kotlin_Collection_getSize ( collection : Collection < * > ) : Int","body":"= collection . size","docstring":""} {"signature":"@ ExportForCppRuntime private fun Kotlin_List_get ( list : List < * > , index : Int ) : Any ?","body":"= list . get ( index )","docstring":""} {"signature":"@ ExportForCppRuntime private fun Kotlin_MutableList_addObjectAtIndex ( list : MutableList < Any ? > , index : Int , obj : Any ? )","body":"{ list . add ( index , obj ) }","docstring":""} {"signature":"@ ExportForCppRuntime private fun Kotlin_MutableList_removeObjectAtIndex ( list : MutableList < Any ? > , index : Int )","body":"{ list . removeAt ( index ) }","docstring":""} {"signature":"@ ExportForCppRuntime private fun Kotlin_MutableCollection_addObject ( list : MutableCollection < Any ? > , obj : Any ? )","body":"{ list . add ( obj ) }","docstring":""} {"signature":"@ ExportForCppRuntime private fun Kotlin_MutableList_removeLastObject ( list : MutableList < Any ? > )","body":"{ list . removeAt ( list . lastIndex ) }","docstring":""} {"signature":"@ ExportForCppRuntime private fun Kotlin_MutableList_setObject ( list : MutableList < Any ? > , index : Int , obj : Any ? )","body":"{ list . set ( index , obj ) }","docstring":""} {"signature":"@ ExportForCppRuntime private fun Kotlin_MutableCollection_removeObject ( collection : MutableCollection < Any ? > , element : Any ? )","body":"{ collection . remove ( element ) }","docstring":""} {"signature":"@ ExportForCppRuntime private fun Kotlin_Iterator_hasNext ( iterator : Iterator < Any ? > ) : Boolean","body":"= iterator . hasNext ( )","docstring":""} {"signature":"@ ExportForCppRuntime private fun Kotlin_Iterator_next ( iterator : Iterator < Any ? > ) : Any ?","body":"= iterator . next ( )","docstring":""} {"signature":"@ ExportForCppRuntime private fun Kotlin_Set_contains ( set : Set < Any ? > , element : Any ? ) : Boolean","body":"= set . contains ( element )","docstring":""} {"signature":"@ ExportForCppRuntime private fun Kotlin_Set_getElement ( set : Set < Any ? > , element : Any ? ) : Any ?","body":"= if ( set is KonanSet < Any ? > ) { set . getElement ( element ) } else if ( set . contains ( element ) ) { set . first { it == element } } else { null }","docstring":""} {"signature":"@ ExportForCppRuntime private fun Kotlin_Set_iterator ( set : Set < Any ? > ) : Iterator < Any ? >","body":"= set . iterator ( )","docstring":""} {"signature":"@ ExportForCppRuntime private fun Kotlin_MutableSet_createWithCapacity ( capacity : Int ) : MutableSet < Any ? >","body":"= HashSet < Any ? > ( capacity )","docstring":""} {"signature":"@ ExportForCppRuntime private fun Kotlin_Map_getSize ( map : Map < Any ? , Any ? > ) : Int","body":"= map . size","docstring":""} {"signature":"@ ExportForCppRuntime private fun Kotlin_Map_containsKey ( map : Map < Any ? , Any ? > , key : Any ? ) : Boolean","body":"= map . containsKey ( key )","docstring":""} {"signature":"@ ExportForCppRuntime private fun Kotlin_Map_get ( map : Map < Any ? , Any ? > , key : Any ? ) : Any ?","body":"= map . get ( key )","docstring":""} {"signature":"@ ExportForCppRuntime private fun Kotlin_Map_keyIterator ( map : Map < Any ? , Any ? > ) : Iterator < Any ? >","body":"= map . keys . iterator ( )","docstring":""} {"signature":"@ ExportForCppRuntime private fun Kotlin_MutableMap_createWithCapacity ( capacity : Int ) : MutableMap < Any ? , Any ? >","body":"= HashMap < Any ? , Any ? > ( capacity )","docstring":""} {"signature":"@ ExportForCppRuntime private fun Kotlin_MutableMap_set ( map : MutableMap < Any ? , Any ? > , key : Any ? , value : Any ? )","body":"{ map . set ( key , value ) }","docstring":""} {"signature":"@ ExportForCppRuntime private fun Kotlin_MutableMap_remove ( map : MutableMap < Any ? , Any ? > , key : Any ? )","body":"{ map . remove ( key ) }","docstring":""} {"signature":"@ ExportForCppRuntime private fun Kotlin_ObjCExport_ThrowCollectionTooLarge ( )","body":"{ throw Error ( \"\" ) }","docstring":""} {"signature":"@ ExportForCppRuntime private fun Kotlin_ObjCExport_ThrowCollectionConcurrentModification ( )","body":"{ throw Error ( \"\" ) }","docstring":""} {"signature":"@ ExportForCppRuntime private fun Kotlin_NSArrayAsKList_create ( )","body":"= NSArrayAsKList ( )","docstring":""} {"signature":"@ ExportForCppRuntime private fun Kotlin_NSMutableArrayAsKMutableList_create ( )","body":"= NSMutableArrayAsKMutableList ( )","docstring":""} {"signature":"@ ExportForCppRuntime private fun Kotlin_NSEnumeratorAsKIterator_create ( )","body":"= NSEnumeratorAsKIterator ( )","docstring":""} {"signature":"@ ExportForCppRuntime private fun Kotlin_NSSetAsKSet_create ( )","body":"= NSSetAsKSet ( )","docstring":""} {"signature":"@ ExportForCppRuntime private fun Kotlin_NSDictionaryAsKMap_create ( )","body":"= NSDictionaryAsKMap ( )","docstring":""} {"signature":"@ ExportForCppRuntime private fun Kotlin_ObjCExport_NSErrorAsExceptionImpl ( message : String ? , error : Any )","body":"= ObjCErrorException ( message , error )","docstring":""} {"signature":"override fun toString ( ) : String","body":"= \"\"","docstring":""} {"signature":"@ PublishedApi @ GCUnsafeCall ( \"\" ) @ ExportForCppRuntime internal external fun trapOnUndeclaredException ( exception : Throwable )","body":"@ PublishedApi @ GCUnsafeCall ( \"\" ) @ ExportForCppRuntime internal external fun trapOnUndeclaredException ( exception : Throwable )","docstring":""} {"signature":"@ ExportForCppRuntime private fun Kotlin_Throwable_getMessage ( throwable : Throwable ) : String ?","body":"= throwable . message","docstring":""} {"signature":"@ ExportForCppRuntime private fun Kotlin_ObjCExport_getWrappedError ( throwable : Throwable ) : Any ?","body":"= ( throwable as? ObjCErrorException ) ? . error","docstring":""} {"signature":"fun generateParentInterfaces ( repository : Repository , todir : String , packg : String )","body":"{ val allParentIfaces = repository . tags . values . filterIgnored ( ) . map { tag -> val parentAttributeIfaces = tag . attributeGroups . map { it . name . humanize ( ) . capitalize ( ) + \"\" } val parentElementIfaces = tag . tagGroupNames . map { it . humanize ( ) . capitalize ( ) } val sum = parentAttributeIfaces + parentElementIfaces sum . toSet ( ) } . filter { it . isNotEmpty ( ) } . toSet ( ) val allIntroduced = HashSet < Set < String > > ( allParentIfaces . size ) do { val introduced = HashSet < Set < String > > ( ) allParentIfaces . toList ( ) . allPairs ( ) . forEach { pair -> val intersection = pair . first . intersect ( pair . second ) if ( intersection . size > && intersection !in allIntroduced && intersection !in allParentIfaces ) { introduced . add ( intersection ) } } if ( introduced . isEmpty ( ) ) { break } allIntroduced . addAll ( introduced ) } while ( true ) FileOutputStream ( \"\" ) . writer ( Charsets . UTF_8 ) . use { it . with { packg ( packg ) emptyLine ( ) emptyLine ( ) doNotEditWarning ( ) emptyLine ( ) emptyLine ( ) ( allIntroduced . map { it . sorted ( ) } + allParentIfaces . filter { it . size > } . map { it . sorted ( ) } ) . distinct ( ) . sortedBy { it . sorted ( ) . joinToString ( \"\" ) . let { renames [ it ] ? : it } } . forEach { iface -> val ifaceName = humanizeJoin ( iface ) val subs = allIntroduced . map { it . sorted ( ) } . filter { other -> other != iface && other . all { it in iface } } + allParentIfaces . map { it . sorted ( ) } . filter { other -> other != iface && other . all { it in iface } } val computedParents = ( iface - subs . flatMap { it } + subs . map ( :: humanizeJoin ) - ifaceName ) . distinct ( ) . map { renames [ it ] ? : it } . sorted ( ) clazz ( Clazz ( name = renames [ ifaceName ] ? : ifaceName , parents = computedParents , isInterface = true ) ) { } emptyLine ( ) } } } }","docstring":""} {"signature":"fun < T > List < T > . allPairs ( skipSamePairs : Boolean = true ) : Sequence < Pair < T , T > >","body":"= PairsSequence ( this , skipSamePairs )","docstring":"/**\n * Returns a sequence that consists of all possible pair of original list elements, does nothing with potential duplicates\n * @param skipSamePairs indicates whether it should produce pairs from the same element at both first and second positions\n */"} {"signature":"override fun iterator ( ) : Iterator < Pair < T , T > >","body":"= PairsIterator ( source , skipSamePairs )","docstring":""} {"signature":"override fun computeNext ( )","body":"{ if ( source . isEmpty ( ) ) { done ( ) return } index ++ val i1 = index / source . size val i2 = index % source . size if ( i1 >= source . lastIndex ) { done ( ) return } if ( skipSamePairs && i1 == i2 ) { return computeNext ( ) } setNext ( Pair ( source [ i1 ] , source [ i2 ] ) ) }","docstring":""} {"signature":"@ Test fun `dynamic dummy` ( )","body":"{ assertDylib ( true , \"\" ) }","docstring":""} {"signature":"@ Test fun `static dummy` ( )","body":"{ assertDylib ( false , \"\" ) }","docstring":""} {"signature":"@ Test fun `dynamic fat` ( )","body":"{ assertDylib ( true , \"\" ) }","docstring":""} {"signature":"@ Test fun `static fat` ( )","body":"{ assertDylib ( false , \"\" ) }","docstring":""} {"signature":"@ Test fun `dynamic lib` ( )","body":"{ assertDylib ( true , \"\" ) }","docstring":""} {"signature":"@ Test fun `static lib` ( )","body":"{ assertDylib ( false , \"\" ) }","docstring":""} {"signature":"private fun assertDylib ( expected : Boolean , resource : String )","body":"{ val tmp = temporaryFolder . newFile ( ) tmp . writeResource ( resource ) return assertEquals ( expected , MachO . isDylib ( tmp , buildProject ( ) . logger ) ) }","docstring":""} {"signature":"private fun File . writeResource ( resource : String )","body":"{ outputStream ( ) . use { out -> MachOTest :: class . java . getResourceAsStream ( resource ) ! ! . use { input : InputStream -> input . copyTo ( out ) } } }","docstring":""} {"signature":"fun foo ( )","body":"= ","docstring":""} {"signature":"fun box ( ) : String","body":"{ val d = OneofField . OneofUint32 ( ) val s = d . toString ( ) if ( s != \"\" ) return s return \"\" }","docstring":""} {"signature":"override fun remove ( ) : Int","body":"{ return }","docstring":""} {"signature":"override fun removeAt ( index : Int ) : Int","body":"{ return }","docstring":""} {"signature":"override fun remove ( element : Int ) : Boolean","body":"{ return true }","docstring":""} {"signature":"fun test ( b : B , c : C , d : D )","body":"{ b . get ( ) b . size b . add ( ) b . remove ( ) b . remove ( ) b . removeAt ( ) c . get ( ) c . size c . add ( ) c . remove ( ) c . remove ( ) c . removeAt ( ) d . remove ( ) }","docstring":""} {"signature":"private fun transformToNewType ( type : SimpleType ) : SimpleType","body":"{ when ( val constructor = type . constructor ) { is CapturedTypeConstructorImpl -> { val lowerType = constructor . projection . takeIf { it . projectionKind == Variance . IN_VARIANCE } ? . type ? . unwrap ( ) if ( constructor . newTypeConstructor == null ) { constructor . newTypeConstructor = NewCapturedTypeConstructor ( constructor . projection , constructor . supertypes . map { it . unwrap ( ) } ) } return NewCapturedType ( CaptureStatus . FOR_SUBTYPING , constructor . newTypeConstructor ! ! , lowerType , type . attributes , type . isMarkedNullable ) } is IntegerValueTypeConstructor -> { val newConstructor = IntersectionTypeConstructor ( constructor . supertypes . map { TypeUtils . makeNullableAsSpecified ( it , type . isMarkedNullable ) } ) return KotlinTypeFactory . simpleTypeWithNonTrivialMemberScope ( type . attributes , newConstructor , listOf ( ) , false , type . memberScope ) } is IntersectionTypeConstructor -> if ( type . isMarkedNullable ) { val newConstructor = constructor . transformComponents ( transform = { it . makeNullable ( ) } ) ? : constructor return newConstructor . createType ( ) } } return type }","docstring":""} {"signature":"override fun prepareType ( type : KotlinTypeMarker ) : UnwrappedType","body":"{ require ( type is KotlinType ) val unwrappedType = type . unwrap ( ) return when ( unwrappedType ) { is SimpleType -> transformToNewType ( unwrappedType ) is FlexibleType -> { val newLower = transformToNewType ( unwrappedType . lowerBound ) val newUpper = transformToNewType ( unwrappedType . upperBound ) if ( newLower !== unwrappedType . lowerBound || newUpper !== unwrappedType . upperBound ) { KotlinTypeFactory . flexibleType ( newLower , newUpper ) } else { unwrappedType } } } . inheritEnhancement ( unwrappedType , :: prepareType ) }","docstring":""} {"signature":"override fun create ( element : PsiNamedElement ) : DocComment ?","body":"{ val ktElement = element . navigationElement as? KtElement ? : return null val kdoc = ktElement . findKDoc ( ) ? : return null return KotlinDocComment ( kdoc . contentTag , ResolveDocContext ( ktElement ) ) }","docstring":""} {"signature":"@ Test fun zeroedInputTensorWithDefaultValues ( )","body":"{ val input = create1DTensor ( batchSize = , size = , channels = , initValue = ) val expected = create1DTensor ( batchSize = , size = , channels = , initValue = ) assertTensorsEquals ( Conv1D ( , , , , name = \"\" , biasInitializer = Zeros ( ) ) , input , expected ) }","docstring":""} {"signature":"@ Test fun constantInputTensorWithValidPadding ( )","body":"{ val input = create1DTensor ( batchSize = , size = , channels = , initValue = ) val expected = create1DTensor ( batchSize = , size = , channels = , initValue = ) assertTensorsEquals ( Conv1D ( strides = , name = \"\" , filters = , kernelInitializer = Constant ( ) , biasInitializer = Zeros ( ) , kernelLength = , padding = ConvPadding . VALID ) , input , expected ) }","docstring":""} {"signature":"@ Test fun randomInputTensorWithOnesWeight ( )","body":"{ val input = arrayOf ( arrayOf ( floatArrayOf ( , , , ) , floatArrayOf ( , , , ) , floatArrayOf ( , , , ) ) ) val expected = arrayOf ( arrayOf ( floatArrayOf ( input . sum ( ) ) ) ) assertTensorsEquals ( Conv1D ( strides = , name = \"\" , filters = , kernelInitializer = Constant ( ) , biasInitializer = Zeros ( ) , kernelLength = , padding = ConvPadding . VALID ) , input , expected ) }","docstring":""} {"signature":"internal fun create1DTensor ( batchSize : Int , size : Int , channels : Int , initValue : Float )","body":"= Array ( batchSize ) { Array ( size ) { FloatArray ( channels ) { initValue } } }","docstring":""} {"signature":"internal fun create1DTensor ( batchSize : Int , channels : Int , sequence : FloatArray , )","body":"= Array ( batchSize ) { Array ( sequence . size ) { idx -> FloatArray ( channels ) { sequence [ idx ] } } }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val list1 = ArrayList < Int > ( ) val range1 = .. step for ( i in range1 ) { list1 . add ( i ) if ( list1 . size > ) break } if ( list1 != listOf < Int > ( , , , ) ) { return \"\" } val list2 = ArrayList < Int > ( ) val range2 = . toByte ( ) .. . toByte ( ) step for ( i in range2 ) { list2 . add ( i ) if ( list2 . size > ) break } if ( list2 != listOf < Int > ( , , , ) ) { return \"\" } val list3 = ArrayList < Int > ( ) val range3 = . toShort ( ) .. . toShort ( ) step for ( i in range3 ) { list3 . add ( i ) if ( list3 . size > ) break } if ( list3 != listOf < Int > ( , , , ) ) { return \"\" } val list4 = ArrayList < Long > ( ) val range4 = .. step for ( i in range4 ) { list4 . add ( i ) if ( list4 . size > ) break } if ( list4 != listOf < Long > ( , , , ) ) { return \"\" } val list5 = ArrayList < Char > ( ) val range5 = '' .. '' step for ( i in range5 ) { list5 . add ( i ) if ( list5 . size > ) break } if ( list5 != listOf < Char > ( '' , '' , '' ) ) { return \"\" } return \"\" }","docstring":""} {"signature":"private fun renderAnnotation ( ann : FirAnnotation ) : String","body":"{ return FirRenderer ( typeRenderer = ConeTypeRenderer ( ) , idRenderer = ConeIdShortRenderer ( ) , referencedSymbolRenderer = FirIdRendererBasedSymbolRenderer ( ) , resolvedNamedReferenceRenderer = FirResolvedNamedReferenceRenderer ( ) , resolvedQualifierRenderer = FirResolvedQualifierRenderer ( ) , getClassCallRenderer = FirGetClassCallRendererForReadability ( ) , ) . renderElementAsString ( ann , trim = true ) }","docstring":""} {"signature":"public fun AnyCol . toArrowField ( mismatchSubscriber : ( ConvertingMismatch ) -> Unit = ignoreMismatchMessage ) : Field","body":"{ val column = this val columnType = column . type ( ) val nullable = columnType . isMarkedNullable return when { columnType . isSubtypeOf ( typeOf < String ? > ( ) ) -> Field ( column . name ( ) , FieldType ( nullable , ArrowType . Utf8 ( ) , null ) , emptyList ( ) ) columnType . isSubtypeOf ( typeOf < Boolean ? > ( ) ) -> Field ( column . name ( ) , FieldType ( nullable , ArrowType . Bool ( ) , null ) , emptyList ( ) ) columnType . isSubtypeOf ( typeOf < Byte ? > ( ) ) -> Field ( column . name ( ) , FieldType ( nullable , ArrowType . Int ( , true ) , null ) , emptyList ( ) ) columnType . isSubtypeOf ( typeOf < Short ? > ( ) ) -> Field ( column . name ( ) , FieldType ( nullable , ArrowType . Int ( , true ) , null ) , emptyList ( ) ) columnType . isSubtypeOf ( typeOf < Int ? > ( ) ) -> Field ( column . name ( ) , FieldType ( nullable , ArrowType . Int ( , true ) , null ) , emptyList ( ) ) columnType . isSubtypeOf ( typeOf < Long ? > ( ) ) -> Field ( column . name ( ) , FieldType ( nullable , ArrowType . Int ( , true ) , null ) , emptyList ( ) ) columnType . isSubtypeOf ( typeOf < Float ? > ( ) ) -> Field ( column . name ( ) , FieldType ( nullable , ArrowType . FloatingPoint ( FloatingPointPrecision . SINGLE ) , null ) , emptyList ( ) ) columnType . isSubtypeOf ( typeOf < Double ? > ( ) ) -> Field ( column . name ( ) , FieldType ( nullable , ArrowType . FloatingPoint ( FloatingPointPrecision . DOUBLE ) , null ) , emptyList ( ) ) columnType . isSubtypeOf ( typeOf < LocalDate ? > ( ) ) || columnType . isSubtypeOf ( typeOf < kotlinx . datetime . LocalDate ? > ( ) ) -> Field ( column . name ( ) , FieldType ( nullable , ArrowType . Date ( DateUnit . DAY ) , null ) , emptyList ( ) ) columnType . isSubtypeOf ( typeOf < LocalDateTime ? > ( ) ) || columnType . isSubtypeOf ( typeOf < kotlinx . datetime . LocalDateTime ? > ( ) ) -> Field ( column . name ( ) , FieldType ( nullable , ArrowType . Date ( DateUnit . MILLISECOND ) , null ) , emptyList ( ) ) columnType . isSubtypeOf ( typeOf < LocalTime ? > ( ) ) -> Field ( column . name ( ) , FieldType ( nullable , ArrowType . Time ( TimeUnit . NANOSECOND , ) , null ) , emptyList ( ) ) else -> { mismatchSubscriber ( ConvertingMismatch . SavedAsString ( column . name ( ) , column . typeClass . java ) ) Field ( column . name ( ) , FieldType ( true , ArrowType . Utf8 ( ) , null ) , emptyList ( ) ) } } }","docstring":"/**\n * Create Arrow [Field] (note: this is part of [Schema], does not contain data itself) that has the same\n * name, type and nullable as [this]\n */"} {"signature":"public fun List < AnyCol > . toArrowSchema ( mismatchSubscriber : ( ConvertingMismatch ) -> Unit = ignoreMismatchMessage ) : Schema","body":"{ val fields = this . map { it . toArrowField ( mismatchSubscriber ) } return Schema ( fields ) }","docstring":"/**\n * Create Arrow [Schema] matching [this] actual data.\n * Columns with not supported types will be interpreted as String\n */"} {"signature":"fun box ( ) : String","body":"{ while ( false ) ; var x = while ( x ++ < ) ; if ( x != ) return \"\" return \"\" }","docstring":""} {"signature":"fun lenetOnMnistExportImportToJSONWithAdamOptimizerState ( )","body":"{ val ( train , test ) = mnist ( ) val ( newTrain , validation ) = train . split ( ) val optimizer = Adam ( ) lenet5 ( ) . use { it . compile ( optimizer = optimizer , loss = Losses . SOFT_MAX_CROSS_ENTROPY_WITH_LOGITS , metric = Metrics . ACCURACY ) it . logSummary ( ) print ( it . kGraph ( ) ) it . fit ( trainingDataset = newTrain , validationDataset = validation , epochs = EPOCHS , trainBatchSize = TRAINING_BATCH_SIZE , validationBatchSize = TEST_BATCH_SIZE ) it . save ( modelDirectory = File ( PATH_TO_MODEL ) , saveOptimizerState = true , savingFormat = SavingFormat . JsonConfigCustomVariables ( ) , writingMode = WritingMode . OVERRIDE ) val accuracy = it . evaluate ( dataset = test , batchSize = TEST_BATCH_SIZE ) . metrics [ Metrics . ACCURACY ] println ( \"\" ) } val model = Sequential . loadModelConfiguration ( File ( \"\" ) ) model . use { it . layers . filterIsInstance < Conv2D > ( ) . forEach ( Layer :: freeze ) it . compile ( optimizer = optimizer , loss = Losses . SOFT_MAX_CROSS_ENTROPY_WITH_LOGITS , metric = Metrics . ACCURACY ) it . logSummary ( ) print ( it . kGraph ( ) ) it . loadWeights ( File ( PATH_TO_MODEL ) , loadOptimizerState = true ) val accuracyBefore = it . evaluate ( dataset = test , batchSize = ) . metrics [ Metrics . ACCURACY ] println ( \"\" ) it . fit ( dataset = train , validationRate = , epochs = , trainBatchSize = , validationBatchSize = ) val accuracyAfterTraining = it . evaluate ( dataset = test , batchSize = ) . metrics [ Metrics . ACCURACY ] println ( \"\" ) } val model2 = Sequential . loadModelConfiguration ( File ( \"\" ) ) model2 . use { it . compile ( optimizer = optimizer , loss = Losses . SOFT_MAX_CROSS_ENTROPY_WITH_LOGITS , metric = Metrics . ACCURACY ) it . logSummary ( ) it . loadWeights ( File ( PATH_TO_MODEL ) , loadOptimizerState = false ) val accuracyBefore = it . evaluate ( dataset = test , batchSize = ) . metrics [ Metrics . ACCURACY ] println ( \"\" ) it . fit ( dataset = train , validationRate = , epochs = , trainBatchSize = , validationBatchSize = ) val accuracyAfterTraining = it . evaluate ( dataset = test , batchSize = ) . metrics [ Metrics . ACCURACY ] println ( \"\" ) } }","docstring":"/**\n * This examples demonstrates model, model weights, and optimizer weights export and import back:\n * - Model is exported in Keras-style JSON format; weights are exported in custom (txt) format.\n * - Model is trained on Mnist dataset.\n * - It saves all the data to the project root directory.\n * - The first [Sequential] model is created via JSON configuration, weights, and optimizer state loading.\n * - After loading model is trained again with the same optimizer with frozen Conv2D layers. Only weights in Dense layers can be updated.\n * - The second [Sequential] model is created via JSON configuration and weights loading.\n * - After loading model is trained again with the same optimizer with frozen Conv2D layers. Only weights in Dense layers can be updated.\n * - Results of two training (with restored optimizer state and without) could be compared via accuracy comparison.\n */"} {"signature":"fun main ( ) : Unit","body":"= lenetOnMnistExportImportToJSONWithAdamOptimizerState ( )","docstring":"/** */"} {"signature":"override fun getName ( ) : String","body":"= PRESET_NAME","docstring":""} {"signature":"override fun createTargetInternal ( name : String ) : KotlinWithJavaTarget < KotlinJvmOptions , KotlinJvmCompilerOptions >","body":"{ project . reportDiagnostic ( KotlinToolingDiagnostics . DeprecatedJvmWithJavaPresetDiagnostic ( ) ) project . plugins . apply ( JavaPlugin :: class . java ) @ Suppress ( \"\" , \"\" , \"\" ) val target = ( project . objects . newInstance ( KotlinWithJavaTarget :: class . java , project , KotlinPlatformType . jvm , name , { object : DeprecatedHasCompilerOptions < KotlinJvmCompilerOptions > { override val options : KotlinJvmCompilerOptions = project . objects . newInstance ( KotlinJvmCompilerOptionsDefault :: class . java ) . configureExperimentalTryNext ( project ) } } , { compilerOptions : KotlinJvmCompilerOptions -> object : KotlinJvmOptions { override val options : KotlinJvmCompilerOptions get ( ) = compilerOptions } } ) as KotlinWithJavaTarget < KotlinJvmOptions , KotlinJvmCompilerOptions > ) . apply { disambiguationClassifier = name preset = this@KotlinJvmWithJavaTargetPreset } AbstractKotlinPlugin . configureTarget ( target ) { compilation -> Kotlin2JvmSourceSetProcessor ( KotlinTasksProvider ( ) , KotlinCompilationInfo ( compilation ) ) } target . compilations . configureEach { @ Suppress ( \"\" ) it . compilerOptions . options . moduleName . convention ( it . moduleNameForCompilation ( ) ) } target . compilations . getByName ( \"\" ) . run { val main = target . compilations . getByName ( KotlinCompilation . MAIN_COMPILATION_NAME ) compileDependencyFiles = project . files ( main . output . allOutputs , project . configurations . maybeCreateResolvable ( compileDependencyConfigurationName ) ) runtimeDependencyFiles = project . files ( output . allOutputs , main . output . allOutputs , project . configurations . maybeCreateResolvable ( runtimeDependencyConfigurationName ) ) } return target }","docstring":""} {"signature":"fun test ( b : TestRepo )","body":"{ coEvery1 { b . save ( any ( ) ) } }","docstring":""} {"signature":"fun < T > coEvery1 ( stubBlock : suspend MockKMatcherScope . ( ) -> T )","body":"{ }","docstring":""} {"signature":"inline fun < reified T : Any > any ( ) : T","body":"= TODO ( )","docstring":""} {"signature":"fun < S : T ? > save ( entity : S ) : S","body":"= TODO ( )","docstring":""} {"signature":"fun getNameForDestructuredParameterOrNull ( valueParameterDescriptor : ValueParameterDescriptor ) : String ?","body":"{ val variables = ValueParameterDescriptorImpl . getDestructuringVariablesOrNull ( valueParameterDescriptor ) ? : return null @ Suppress ( \"\" ) return DESTRUCTURED_LAMBDA_ARGUMENT_VARIABLE_PREFIX + variables . joinToString ( separator = \"\" ) { descriptor -> val name = descriptor . name mangleNameIfNeeded ( when { name . isSpecial -> \"\" else -> descriptor . name . asString ( ) } ) } }","docstring":""} {"signature":"fun testC1 ( )","body":"= ","docstring":""} {"signature":"suspend fun suspendWithValue ( v : String ) : String","body":"= suspendCoroutineUninterceptedOrReturn { x -> postponedActions . add { x . resume ( v ) } COROUTINE_SUSPENDED }","docstring":""} {"signature":"suspend fun suspendWithException ( e : Exception ) : String","body":"= suspendCoroutineUninterceptedOrReturn { x -> postponedActions . add { x . resumeWithException ( e ) } COROUTINE_SUSPENDED }","docstring":""} {"signature":"fun run ( c : suspend Controller . ( ) -> String )","body":"{ c . startCoroutine ( this , handleResultContinuation { globalResult = it } ) while ( postponedActions . isNotEmpty ( ) ) { postponedActions [ ] ( ) postponedActions . removeAt ( ) } }","docstring":""} {"signature":"fun builder ( expectException : Boolean = false , c : suspend Controller . ( ) -> String )","body":"{ val controller = Controller ( ) globalResult = \"\" wasCalled = false if ( ! expectException ) { controller . run ( c ) } else { try { controller . run ( c ) globalResult = \"\" } catch ( e : Exception ) { globalResult = e . message ! ! } } if ( ! wasCalled ) { throw RuntimeException ( \"\" ) } if ( globalResult != \"\" ) { throw RuntimeException ( \"\" ) } }","docstring":""} {"signature":"fun commonThrow ( t : Throwable )","body":"{ throw t }","docstring":""} {"signature":"fun box ( ) : String","body":"{ builder { try { try { suspendWithValue ( \"\" ) suspendWithValue ( \"\" ) } catch ( e : RuntimeException ) { suspendWithValue ( \"\" ) } } finally { wasCalled = true } } builder { try { try { suspendWithException ( RuntimeException ( \"\" ) ) } catch ( e : RuntimeException ) { if ( e . message != \"\" ) throw RuntimeException ( \"\" ) wasCalled = true suspendWithValue ( \"\" ) } } catch ( e : Exception ) { suspendWithValue ( \"\" ) } } builder { try { try { suspendWithException ( Exception ( \"\" ) ) } catch ( e : RuntimeException ) { suspendWithValue ( \"\" ) } finally { wasCalled = true } } catch ( e : Exception ) { if ( e . message != \"\" ) throw RuntimeException ( \"\" ) suspendWithValue ( \"\" ) } } return globalResult }","docstring":""} {"signature":"@ Test fun testExternalizer ( )","body":"{ val file = File ( workingDir , \"\" ) file . writeText ( \"\" ) val snapshot = fileSnapshotProvider [ file ] val deserializedSnapshot = saveAndReadBack ( snapshot ) assertEquals ( snapshot , deserializedSnapshot ) }","docstring":""} {"signature":"@ Test fun testEqualityNoChanges ( )","body":"{ val file = File ( workingDir , \"\" ) . apply { writeText ( \"\" ) } val oldSnapshot = fileSnapshotProvider [ file ] val newSnapshot = fileSnapshotProvider [ file ] assertEquals ( oldSnapshot , newSnapshot ) }","docstring":""} {"signature":"@ Test fun testEqualityDifferentFile ( )","body":"{ val file1 = File ( workingDir , \"\" ) . apply { writeText ( \"\" ) } val file2 = File ( workingDir , \"\" ) . apply { writeText ( file1 . readText ( ) ) setLastModified ( file1 . lastModified ( ) ) } val oldSnapshot = fileSnapshotProvider [ file1 ] val newSnapshot = fileSnapshotProvider [ file2 ] assertNotEquals ( oldSnapshot , newSnapshot ) }","docstring":""} {"signature":"@ Test fun testEqualityDifferentTimestamp ( )","body":"{ val text = \"\" val file = File ( workingDir , \"\" ) . apply { writeText ( text ) } val oldSnapshot = fileSnapshotProvider [ file ] Thread . sleep ( ) file . writeText ( text ) val newSnapshot = fileSnapshotProvider [ file ] assertEquals ( oldSnapshot , newSnapshot ) }","docstring":""} {"signature":"@ Test fun testEqualityDifferentSize ( )","body":"{ val file = File ( workingDir , \"\" ) . apply { writeText ( \"\" ) } val oldSnapshot = fileSnapshotProvider [ file ] file . writeText ( \"\" ) val newSnapshot = fileSnapshotProvider [ file ] assertNotEquals ( oldSnapshot , newSnapshot ) }","docstring":""} {"signature":"@ Test fun testEqualityDifferentHash ( )","body":"{ val file = File ( workingDir , \"\" ) . apply { writeText ( \"\" ) } val oldSnapshot = fileSnapshotProvider [ file ] file . writeText ( \"\" ) val newSnapshot = fileSnapshotProvider [ file ] assertNotEquals ( oldSnapshot , newSnapshot ) }","docstring":""} {"signature":"private fun saveAndReadBack ( snapshot : FileSnapshot ) : FileSnapshot","body":"{ val byteOut = ByteArrayOutputStream ( ) DataOutputStream ( byteOut ) . use { FileSnapshotExternalizer . save ( it , snapshot ) } val byteIn = ByteArrayInputStream ( byteOut . toByteArray ( ) ) return DataInputStream ( byteIn ) . use { FileSnapshotExternalizer . read ( it ) } }","docstring":""} {"signature":"fun f ( s : String ) : String","body":"{ fun A . localX ( ) { x = s + \"\" } val a : A = A ( \"\" ) a . apply ( A :: localX ) if ( a . x != \"\" ) return a . x a . apply { localX ( ) } return a . x }","docstring":""} {"signature":"fun box ( ) : String","body":"{ return f ( \"\" ) }","docstring":""} {"signature":"actual fun Modifier . addUserInput ( state : ScalableState ) : Modifier","body":"= pointerInput ( Unit ) { detectDragGestures { change , dragAmount : Offset -> state . addDragAmount ( dragAmount ) change . consume ( ) } } . pointerInput ( Unit ) { awaitPointerEventScope { while ( true ) { val event = awaitPointerEvent ( ) if ( event . type == PointerEventType . Scroll ) { val delta = event . changes . getOrNull ( ) ? . scrollDelta ? : Offset . Zero state . addScale ( delta . y / ) } } } }","docstring":""} {"signature":"override fun check ( expression : FirAnnotation , context : CheckerContext , reporter : DiagnosticReporter )","body":"{ if ( context . containingDeclarations . lastOrNull ( ) ? . source ? . kind != KtRealSourceElementKind ) return val callableSymbol = expression . annotationTypeRef . toClassLikeSymbol ( context . session ) as? FirClassSymbol < * > ? : return if ( callableSymbol . origin !is FirDeclarationOrigin . Java ) return val lookupTag = expression . annotationTypeRef . coneTypeSafe < ConeClassLikeType > ( ) ? . lookupTag ? : return javaToKotlinNameMap [ lookupTag . classId ] ? . let { betterName -> reporter . reportOn ( expression . source , FirJvmErrors . DEPRECATED_JAVA_ANNOTATION , betterName . asSingleFqName ( ) , context ) } if ( expression is FirAnnotationCall ) { val argumentList = expression . argumentList if ( argumentList is FirResolvedArgumentList ) { val arguments = argumentList . originalArgumentList ? . arguments ? : return for ( key in arguments ) { if ( key !is FirWrappedArgumentExpression && argumentList . mapping [ key ] ? . name . let { it != null && it != Annotations . ParameterNames . value } ) { reporter . reportOn ( key . source , FirJvmErrors . POSITIONED_VALUE_ARGUMENT_FOR_JAVA_ANNOTATION , context ) } } } } }","docstring":""} {"signature":"inline fun < reified T > funNoArgs ( )","body":"= \"\" as? T","docstring":""} {"signature":"fun testFunctionNoArgs ( )","body":"{ val callable : ( ) -> String ? = :: funNoArgs assertEquals ( callable ( ) , \"\" ) }","docstring":""} {"signature":"inline fun < reified T > funWithArgs ( x : T , y : T )","body":"= x to y","docstring":""} {"signature":"fun testFunctionWithArgs ( )","body":"{ val callable : ( String , String ) -> Pair < String , String > = :: funWithArgs assertEquals ( callable ( \"\" , \"\" ) , \"\" to \"\" ) }","docstring":""} {"signature":"inline fun < reified T > funWithVarargs ( vararg i : T )","body":"= i . toList ( )","docstring":""} {"signature":"fun testFunctionWithVarargs ( )","body":"{ val callable : ( Array < Int > ) -> List < Int > = :: funWithVarargs assertEquals ( callable ( arrayOf ( , , ) ) , listOf ( , , ) ) }","docstring":""} {"signature":"inline fun < reified T > T . funWithExtensionNoArgs ( )","body":"= this","docstring":""} {"signature":"fun testFunctionWithExtensionNoArgs ( )","body":"{ val callable1 = String :: funWithExtensionNoArgs assertEquals ( callable1 ( \"\" ) , \"\" ) val callable2 = \"\" :: funWithExtensionNoArgs assertEquals ( callable2 ( ) , \"\" ) val callable3 = callable1 :: funWithExtensionNoArgs assertEquals ( callable3 ( ) ( \"\" ) , \"\" ) val callable4 = with ( \"\" ) { :: funWithExtensionNoArgs } assertEquals ( callable4 ( ) , \"\" ) }","docstring":""} {"signature":"inline fun < reified T > T . funWithExtensionAndArgs ( x : Int , y : Int )","body":"= this to ( x + y )","docstring":""} {"signature":"fun testFunctionWithExtensionAndArgs ( )","body":"{ val callable1 = String :: funWithExtensionAndArgs assertEquals ( callable1 ( \"\" , , ) , \"\" to ) val callable2 = \"\" :: funWithExtensionAndArgs assertEquals ( callable2 ( , ) , \"\" to ) val callable3 = callable1 :: funWithExtensionAndArgs val ( cb , s ) = callable3 ( , ) assertEquals ( s , ) assertEquals ( cb ( \"\" , , ) , \"\" to ) val callable4 = with ( \"\" ) { :: funWithExtensionAndArgs } assertEquals ( callable4 ( , ) , \"\" to ) }","docstring":""} {"signature":"inline fun < reified T > T . funWithExtensionAndVarargs ( vararg i : Int )","body":"= this to i . sum ( )","docstring":""} {"signature":"fun testFunctionWithExtensionAndVararg ( )","body":"{ val callable1 = String :: funWithExtensionAndVarargs assertEquals ( callable1 ( \"\" , arrayOf ( , , ) . toIntArray ( ) ) , \"\" to ) val callable2 = \"\" :: funWithExtensionAndVarargs assertEquals ( callable2 ( arrayOf ( , , ) . toIntArray ( ) ) , \"\" to ) val callable3 = callable1 :: funWithExtensionAndVarargs val ( cb , s ) = callable3 ( arrayOf ( , ) . toIntArray ( ) ) assertEquals ( s , ) assertEquals ( cb ( \"\" , arrayOf ( , ) . toIntArray ( ) ) , \"\" to ) val callable4 = with ( \"\" ) { :: funWithExtensionAndVarargs } assertEquals ( callable4 ( arrayOf ( , ) . toIntArray ( ) ) , \"\" to ) }","docstring":""} {"signature":"inline fun < reified T > classFunNoArgs ( )","body":"= s as? T","docstring":""} {"signature":"inline fun < reified T > classFunWithArgs ( x : T )","body":"= x to s","docstring":""} {"signature":"inline fun < reified T > classFunWithVarargs ( vararg i : T )","body":"= i . toList ( ) to s","docstring":""} {"signature":"fun testClassFunctionNoArgs ( )","body":"{ val callable : ( ) -> String ? = with ( TestClass ( \"\" ) ) { :: classFunNoArgs } assertEquals ( callable ( ) , \"\" ) }","docstring":""} {"signature":"fun testClassFunctionWithArgs ( )","body":"{ val callable : ( Int ) -> Pair < Int , String > = with ( TestClass ( \"\" ) ) { :: classFunWithArgs } assertEquals ( callable ( ) , to \"\" ) }","docstring":""} {"signature":"fun testClassFunctionWithVarargs ( )","body":"{ val callable : ( Array < Int > ) -> Pair < List < Int > , String > = with ( TestClass ( \"\" ) ) { :: classFunWithVarargs } assertEquals ( callable ( arrayOf ( , ) ) , listOf ( , ) to \"\" ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ testFunctionNoArgs ( ) testFunctionWithArgs ( ) testFunctionWithVarargs ( ) testFunctionWithExtensionNoArgs ( ) testFunctionWithExtensionAndArgs ( ) testFunctionWithExtensionAndVararg ( ) testClassFunctionNoArgs ( ) testClassFunctionWithArgs ( ) testClassFunctionWithVarargs ( ) return \"\" }","docstring":""} {"signature":"fun box ( ) : String","body":"{ var sum = for ( i in ( downTo ) . reversed ( ) . reversed ( ) ) { sum = sum * + i } assertEquals ( , sum ) var sumL = for ( i in ( downTo ) . reversed ( ) . reversed ( ) ) { sumL = sumL * + i } assertEquals ( , sumL ) var sumC = for ( i in ( '' downTo '' ) . reversed ( ) . reversed ( ) ) { sumC = sumC * + i . toInt ( ) - '' . toInt ( ) } assertEquals ( , sumC ) return \"\" }","docstring":""} {"signature":"infix fun resource ( factory : Factory < R , T > ) : Delegate < R , T >","body":"infix fun resource ( factory : Factory < R , T > ) : Delegate < R , T >","docstring":""} {"signature":"fun < Self : Some , Target : Some > Self . delegateOf ( clazz : Class < Target > ) : Delegate < Self , Target ? >","body":"= null ! !","docstring":""} {"signature":"fun < M : SomeImpl < T > , T : Some > getFactory ( ) : Factory < M , T ? >","body":"= null ! !","docstring":""} {"signature":"@ Setup fun prepare ( )","body":"{ val keys = generateKeys ( hashCodeType , size * ) persistentMap = persistentMapBuilderPut ( implementation , keys . take ( size ) , ) sameMap = persistentMapBuilderPut ( implementation , keys . take ( size ) , ) slightlyDifferentMap = sameMap . build ( ) . builder ( ) slightlyDifferentMap . put ( keys [ size ] , \"\" ) slightlyDifferentMap . remove ( keys [ ] ) veryDifferentMap = persistentMapBuilderPut ( implementation , keys . drop ( size ) , ) }","docstring":""} {"signature":"@ Benchmark fun equalsTrue ( )","body":"= persistentMap == sameMap","docstring":""} {"signature":"@ Benchmark fun nearlyEquals ( )","body":"= persistentMap == slightlyDifferentMap","docstring":""} {"signature":"@ Benchmark fun notEquals ( )","body":"= persistentMap == veryDifferentMap","docstring":""} {"signature":"public actual fun < T > setOf ( element : T ) : Set < T >","body":"= java . util . Collections . singleton ( element )","docstring":"/**\n * Returns a new read-only set containing only the specified object [element].\n *\n * The returned set is serializable.\n *\n * @sample samples.collections.Collections.Sets.singletonReadOnlySet\n */"} {"signature":"@ PublishedApi @ SinceKotlin ( \"\" ) @ kotlin . internal . InlineOnly internal actual inline fun < E > buildSetInternal ( builderAction : MutableSet < E > . ( ) -> Unit ) : Set < E >","body":"{ return build ( createSetBuilder < E > ( ) . apply ( builderAction ) ) }","docstring":""} {"signature":"@ PublishedApi @ SinceKotlin ( \"\" ) @ kotlin . internal . InlineOnly internal actual inline fun < E > buildSetInternal ( capacity : Int , builderAction : MutableSet < E > . ( ) -> Unit ) : Set < E >","body":"{ return build ( createSetBuilder < E > ( capacity ) . apply ( builderAction ) ) }","docstring":""} {"signature":"@ PublishedApi @ SinceKotlin ( \"\" ) internal fun < E > createSetBuilder ( ) : MutableSet < E >","body":"{ return SetBuilder ( ) }","docstring":""} {"signature":"@ PublishedApi @ SinceKotlin ( \"\" ) internal fun < E > createSetBuilder ( capacity : Int ) : MutableSet < E >","body":"{ return SetBuilder ( capacity ) }","docstring":""} {"signature":"@ PublishedApi @ SinceKotlin ( \"\" ) internal fun < E > build ( builder : MutableSet < E > ) : Set < E >","body":"{ return ( builder as SetBuilder < E > ) . build ( ) }","docstring":""} {"signature":"public fun < T > sortedSetOf ( vararg elements : T ) : java . util . TreeSet < T >","body":"= elements . toCollection ( java . util . TreeSet < T > ( ) )","docstring":"/**\n * Returns a new [java.util.SortedSet] with the given elements.\n */"} {"signature":"public fun < T > sortedSetOf ( comparator : Comparator < in T > , vararg elements : T ) : java . util . TreeSet < T >","body":"= elements . toCollection ( java . util . TreeSet < T > ( comparator ) )","docstring":"/**\n * Returns a new [java.util.SortedSet] with the given [comparator] and elements.\n */"} {"signature":"private fun runInteractive ( vararg inputsToExpectedOutputs : Pair < String ? , String > , expectedExitCode : Int = , workDirectory : File ? = null , compilationClasspath : List < File > = emptyList ( ) )","body":"{ val javaExecutable = File ( File ( CompilerSystemProperties . JAVA_HOME . safeValue , \"\" ) , \"\" ) val processBuilder = ProcessBuilder ( javaExecutable . absolutePath , \"\" , File ( PathUtil . kotlinPathsForDistDirectory . homePath , \"\" ) . absolutePath , ) if ( workDirectory != null ) { processBuilder . directory ( workDirectory ) } if ( compilationClasspath . isNotEmpty ( ) ) { with ( processBuilder . command ( ) ) { add ( \"\" ) add ( compilationClasspath . joinToString ( File . pathSeparator ) { it . absolutePath } ) } } val process = processBuilder . start ( ) data class ExceptionContainer ( var value : Throwable ? = null ) fun InputStream . captureStream ( ) : Triple < Thread , ExceptionContainer , ArrayList < String > > { val out = ArrayList < String > ( ) val exceptionContainer = ExceptionContainer ( ) val thread = thread { val promptRegex = Regex ( \"\" ) try { reader ( ) . forEachLine { rawLine -> promptRegex . split ( rawLine ) . forEach { line -> if ( line . isNotEmpty ( ) ) { out . add ( line . trimEnd ( ) ) } } } } catch ( e : Throwable ) { exceptionContainer . value = e } } return Triple ( thread , exceptionContainer , out ) } val ( stdoutThread , stdoutException , processOut ) = process . inputStream . captureStream ( ) val ( stderrThread , stderrException , processErr ) = process . errorStream . captureStream ( ) val inputIter = inputsToExpectedOutputs . iterator ( ) var stdinException : Throwable ? = null val stdinThread = thread { try { writeInputsToOutStream ( process . outputStream , inputIter ) } catch ( e : Throwable ) { stdinException = e } } process . waitFor ( , TimeUnit . MILLISECONDS ) try { if ( process . isAlive ) { process . destroyForcibly ( ) TestCase . fail ( \"\" ) } stdoutThread . join ( ) TestCase . assertFalse ( \"\" , stdoutThread . isAlive ) TestCase . assertNull ( stdoutException . value ) stderrThread . join ( ) TestCase . assertFalse ( \"\" , stderrThread . isAlive ) TestCase . assertNull ( stderrException . value ) TestCase . assertFalse ( \"\" , stdinThread . isAlive ) TestCase . assertNull ( stdinException ) assertOutputMatches ( inputsToExpectedOutputs , processOut ) TestCase . assertEquals ( expectedExitCode , process . exitValue ( ) ) TestCase . assertFalse ( inputIter . hasNext ( ) ) } catch ( e : Throwable ) { println ( \"\" ) println ( \"\" ) println ( \"\" ) throw e } }","docstring":""} {"signature":"private fun writeInputsToOutStream ( dataOutStream : OutputStream , inputIter : Iterator < Pair < String ? , String > > )","body":"{ val writer = PrintWriter ( dataOutStream . writer ( ) , true ) fun writeNextInput ( nextInput : String ) { with ( writer ) { println ( nextInput ) } } while ( inputIter . hasNext ( ) ) { val nextInput = inputIter . next ( ) . first ? : continue writeNextInput ( nextInput ) } writeNextInput ( \"\" ) writer . close ( ) }","docstring":""} {"signature":"private fun assertOutputMatches ( inputsToExpectedOutputs : Array < out Pair < String ? , String > > , actualOut : List < String > )","body":"{ val inputsToExpectedOutputsIter = inputsToExpectedOutputs . iterator ( ) val actualIter = actualOut . iterator ( ) while ( true ) { if ( inputsToExpectedOutputsIter . hasNext ( ) && ! actualIter . hasNext ( ) ) { Assert . fail ( \"\" ) } if ( ! inputsToExpectedOutputsIter . hasNext ( ) || ! actualIter . hasNext ( ) ) break var ( input , expectedPattern ) = inputsToExpectedOutputsIter . next ( ) var actualLine = actualIter . next ( ) while ( input != null ) { if ( actualLine . startsWith ( input ) ) { actualLine = actualLine . substring ( input . length ) } else if ( expectedPattern . isEmpty ( ) && actualLine . isNotEmpty ( ) && inputsToExpectedOutputsIter . hasNext ( ) ) { val nextInputToOutput = inputsToExpectedOutputsIter . next ( ) expectedPattern = nextInputToOutput . second input = nextInputToOutput . first continue } break } if ( ! Regex ( expectedPattern ) . matches ( actualLine ) ) { fail ( \"\" ) } } }","docstring":""} {"signature":"fun testSimpleRepl ( )","body":"{ runInteractive ( * replOutHeader , \"\" to \"\" , ) }","docstring":""} {"signature":"fun testSReplWithMultipleErrors ( )","body":"{ runInteractive ( * replOutHeader , \"\" to \"\" , null to \"\" , null to \"\" , null to \"\" , null to \"\" , null to \"\" , \"\" to \"\" , null to \"\" , null to \"\" , null to \"\" , null to \"\" , null to \"\" , null to \"\" , null to \"\" , null to \"\" , null to \"\" , null to \"\" , null to \"\" , null to \"\" , null to \"\" , null to \"\" , null to \"\" , null to \"\" , null to \"\" , \"\" to \"\" , ) }","docstring":""} {"signature":"fun testReplResultFormatting ( )","body":"{ runInteractive ( * replOutHeader , \"\" to \"\" , \"\" to \"\" , ) }","docstring":""} {"signature":"fun testReplValueClassConversion ( )","body":"{ runInteractive ( * replOutHeader , \"\" to \"\" , \"\" to \"\" , \"\" to \"\" , \"\" to \"\" , \"\" to \"\" , \"\" to \"\" , ) }","docstring":""} {"signature":"fun testReplWithClasspath ( )","body":"{ runInteractive ( * replOutHeader , \"\" to \"\" , compilationClasspath = KotlinPathsFromHomeDir ( PathUtil . kotlinPathsForDistDirectory . homePath ) . classPath ( KotlinPaths . Jar . AllOpenPlugin ) ) }","docstring":""} {"signature":"suspend operator fun component1 ( ) : String","body":"= \"\"","docstring":""} {"signature":"fun foo ( c : suspend ( A ) -> Unit )","body":"{ }","docstring":""} {"signature":"fun bar ( )","body":"{ foo { ( x ) -> x . length } }","docstring":""} {"signature":"fun box ( )","body":"= Outer ( \"\" ) :: Inner . invoke ( \"\" ) . yx","docstring":""} {"signature":"@ JvmStatic fun getByShortName ( name : String ) : PrimitiveType ?","body":"= when ( name ) { \"\" -> BOOLEAN \"\" -> CHAR \"\" -> BYTE \"\" -> SHORT \"\" -> INT \"\" -> FLOAT \"\" -> LONG \"\" -> DOUBLE else -> null }","docstring":""} {"signature":"@ JvmStatic fun getByShortArrayName ( name : String ) : PrimitiveType ?","body":"= when ( name ) { \"\" -> BOOLEAN \"\" -> CHAR \"\" -> BYTE \"\" -> SHORT \"\" -> INT \"\" -> FLOAT \"\" -> LONG \"\" -> DOUBLE else -> null }","docstring":""} {"signature":"fun foo ( )","body":"= ","docstring":""} {"signature":"fun foo ( )","body":"= ","docstring":""} {"signature":"fun box ( ) : String","body":"{ assertEquals ( , A ( ) . foo ( ) ) assertEquals ( , A . foo ( ) ) assertEquals ( , A ( ) . bar ) assertEquals ( , A . bar ) return \"\" }","docstring":""} {"signature":"fun box ( ) : String","body":"{ assertEquals ( \"\" , Klass :: class . qualifiedName ) assertEquals ( \"\" , Klass . Nested :: class . qualifiedName ) assertEquals ( \"\" , Klass . `Nested$With$Dollars` :: class . qualifiedName ) assertEquals ( \"\" , Klass . Companion :: class . qualifiedName ) assertEquals ( \"\" , java . util . Date :: class . qualifiedName ) assertEquals ( \"\" , kotlin . jvm . internal . Ref . ObjectRef :: class . qualifiedName ) class Local assertEquals ( null , Local :: class . qualifiedName ) val o = object { } assertEquals ( null , o . javaClass . kotlin . qualifiedName ) return \"\" }","docstring":""} {"signature":"override fun < T , R > accept ( visitor : CirNodeVisitor < T , R > , data : T )","body":"= visitor . visitPropertyNode ( this , data )","docstring":""} {"signature":"override fun toString ( )","body":"= CirNode . toString ( this )","docstring":""} {"signature":"override fun analyzeWithAllCompilerChecks ( elements : Collection < KtElement > , callback : DiagnosticSink . DiagnosticsCallback ? ) : AnalysisResult","body":"{ throw UnsupportedOperationException ( ) }","docstring":""} {"signature":"@ OptIn ( FrontendInternals :: class ) override fun < T : Any > tryGetFrontendService ( element : PsiElement , serviceClass : Class < T > ) : T ?","body":"{ return resolverForModule . componentProvider . tryGetService ( serviceClass ) }","docstring":""} {"signature":"override fun resolveToDescriptor ( declaration : KtDeclaration , bodyResolveMode : BodyResolveMode ) : DeclarationDescriptor","body":"{ return resolveSession . resolveToDescriptor ( declaration ) }","docstring":""} {"signature":"override fun analyze ( elements : Collection < KtElement > , bodyResolveMode : BodyResolveMode ) : BindingContext","body":"{ throw UnsupportedOperationException ( ) }","docstring":""} {"signature":"override fun analyze ( element : KtElement , bodyResolveMode : BodyResolveMode ) : BindingContext","body":"{ if ( element is KtDeclaration ) { val descriptor = resolveToDescriptor ( element ) return object : BindingContext { override fun < K : Any ? , V : Any ? > getKeys ( p0 : WritableSlice < K , V > ? ) : Collection < K > { throw UnsupportedOperationException ( ) } override fun getType ( p0 : KtExpression ) : KotlinType ? { throw UnsupportedOperationException ( ) } override fun < K : Any ? , V : Any ? > get ( slice : ReadOnlySlice < K , V > ? , key : K ) : V ? { if ( key != element ) { throw UnsupportedOperationException ( ) } @ Suppress ( \"\" ) return when { slice == BindingContext . DECLARATION_TO_DESCRIPTOR -> descriptor as V slice == BindingContext . PRIMARY_CONSTRUCTOR_PARAMETER && ( element as KtParameter ) . hasValOrVar ( ) -> descriptor as V else -> null } } override fun getProject ( ) : Project ? { throw UnsupportedOperationException ( ) } override fun getDiagnostics ( ) : Diagnostics { throw UnsupportedOperationException ( ) } override fun addOwnDataTo ( p0 : BindingTrace , p1 : Boolean ) { throw UnsupportedOperationException ( ) } override fun < K : Any ? , V : Any ? > getSliceContents ( p0 : ReadOnlySlice < K , V > ) : ImmutableMap < K , V > { throw UnsupportedOperationException ( ) } } } throw UnsupportedOperationException ( ) }","docstring":""} {"signature":"override fun < T : Any > getFrontendService ( element : PsiElement , serviceClass : Class < T > ) : T","body":"{ throw UnsupportedOperationException ( ) }","docstring":""} {"signature":"override fun < T : Any > getFrontendService ( serviceClass : Class < T > ) : T","body":"{ return resolverForModule . componentProvider . getService ( serviceClass ) }","docstring":""} {"signature":"@ Deprecated ( \"\" ) override fun < T : Any > getFrontendService ( moduleDescriptor : ModuleDescriptor , serviceClass : Class < T > ) : T","body":"{ return resolverForModule . componentProvider . getService ( serviceClass ) }","docstring":""} {"signature":"override fun < T : Any > getIdeService ( serviceClass : Class < T > ) : T","body":"{ throw UnsupportedOperationException ( ) }","docstring":""} {"signature":"override fun getResolverForProject ( ) : ResolverForProject < out ModuleInfo >","body":"{ throw UnsupportedOperationException ( ) }","docstring":""} {"signature":"override fun deserialize ( decoder : Decoder ) : ThirdPartyBox < T >","body":"{ return ThirdPartyBox ( decoder . decodeSerializableValue ( strategy ) . contents ) }","docstring":""} {"signature":"override fun serialize ( encoder : Encoder , value : ThirdPartyBox < T > )","body":"{ encoder . encodeSerializableValue ( strategy , BoxSurrogate ( value . contents ) ) }","docstring":""} {"signature":"@ Test fun testSurrogateSerializerFoundForGenericWithKotlinType ( )","body":"{ val serializer = serializersModuleStatic . serializer < ThirdPartyBox < Item > > ( ) assertEquals ( boxWithItemSerializer . descriptor , serializer . descriptor ) }","docstring":""} {"signature":"@ Test fun testSerializerFoundForContextualGeneric ( )","body":"{ val serializerA = serializersModuleWithProvider . serializer < ThirdPartyBox < Item > > ( ) assertEquals ( Item . serializer ( ) . descriptor , serializerA . descriptor . getElementDescriptor ( ) ) val serializerB = serializersModuleWithProvider . serializer < ThirdPartyBox < AnotherItem > > ( ) assertEquals ( AnotherItem . serializer ( ) . descriptor , serializerB . descriptor . getElementDescriptor ( ) ) }","docstring":""} {"signature":"@ Test fun testModuleProvidesMultipleGenericSerializers ( )","body":"{ fun checkFor ( serial : KSerializer < * > ) { val serializer = serializersModuleWithProvider . getContextual ( ThirdPartyBox :: class , listOf ( serial ) ) ? . descriptor assertEquals ( serial . descriptor , serializer ? . getElementDescriptor ( ) ) } checkFor ( Item . serializer ( ) ) checkFor ( AnotherItem . serializer ( ) ) }","docstring":""} {"signature":"fun usage ( instance : one . SimpleClass )","body":"{ instance . const < caret > ructorPropertyWithAnnotations }","docstring":""} {"signature":"fun postMessage ( message : JsAny ? , transfer : JsArray < JsAny > = definedExternally )","body":"fun postMessage ( message : JsAny ? , transfer : JsArray < JsAny > = definedExternally )","docstring":""} {"signature":"fun update ( ) : Promise < Nothing ? >","body":"fun update ( ) : Promise < Nothing ? >","docstring":""} {"signature":"fun unregister ( ) : Promise < JsBoolean >","body":"fun unregister ( ) : Promise < JsBoolean >","docstring":""} {"signature":"fun showNotification ( title : String , options : NotificationOptions = definedExternally ) : Promise < Nothing ? >","body":"fun showNotification ( title : String , options : NotificationOptions = definedExternally ) : Promise < Nothing ? >","docstring":""} {"signature":"fun getNotifications ( filter : GetNotificationOptions = definedExternally ) : Promise < JsArray < Notification > >","body":"fun getNotifications ( filter : GetNotificationOptions = definedExternally ) : Promise < JsArray < Notification > >","docstring":""} {"signature":"fun methodName ( ) : Promise < JsAny ? >","body":"fun methodName ( ) : Promise < JsAny ? >","docstring":""} {"signature":"fun register ( scriptURL : String , options : RegistrationOptions = definedExternally ) : Promise < ServiceWorkerRegistration >","body":"fun register ( scriptURL : String , options : RegistrationOptions = definedExternally ) : Promise < ServiceWorkerRegistration >","docstring":""} {"signature":"fun getRegistration ( clientURL : String = definedExternally ) : Promise < JsAny ? >","body":"fun getRegistration ( clientURL : String = definedExternally ) : Promise < JsAny ? >","docstring":""} {"signature":"fun getRegistrations ( ) : Promise < JsArray < ServiceWorkerRegistration > >","body":"fun getRegistrations ( ) : Promise < JsArray < ServiceWorkerRegistration > >","docstring":""} {"signature":"fun startMessages ( )","body":"fun startMessages ( )","docstring":""} {"signature":"@ Suppress ( \"\" ) public fun RegistrationOptions ( scope : String ? = undefined , type : WorkerType ? = WorkerType . CLASSIC ) : RegistrationOptions","body":"{ js ( \"\" ) }","docstring":""} {"signature":"@ Suppress ( \"\" ) public fun ServiceWorkerMessageEventInit ( data : JsAny ? = undefined , origin : String ? = undefined , lastEventId : String ? = undefined , source : UnionMessagePortOrServiceWorker ? = undefined , ports : JsArray < MessagePort > ? = undefined , bubbles : Boolean ? = false , cancelable : Boolean ? = false , composed : Boolean ? = false ) : ServiceWorkerMessageEventInit","body":"{ js ( \"\" ) }","docstring":""} {"signature":"fun skipWaiting ( ) : Promise < Nothing ? >","body":"fun skipWaiting ( ) : Promise < Nothing ? >","docstring":""} {"signature":"fun postMessage ( message : JsAny ? , transfer : JsArray < JsAny > = definedExternally )","body":"fun postMessage ( message : JsAny ? , transfer : JsArray < JsAny > = definedExternally )","docstring":""} {"signature":"fun focus ( ) : Promise < WindowClient >","body":"fun focus ( ) : Promise < WindowClient >","docstring":""} {"signature":"fun navigate ( url : String ) : Promise < WindowClient >","body":"fun navigate ( url : String ) : Promise < WindowClient >","docstring":""} {"signature":"fun get ( id : String ) : Promise < JsAny ? >","body":"fun get ( id : String ) : Promise < JsAny ? >","docstring":""} {"signature":"fun matchAll ( options : ClientQueryOptions = definedExternally ) : Promise < JsArray < Client > >","body":"fun matchAll ( options : ClientQueryOptions = definedExternally ) : Promise < JsArray < Client > >","docstring":""} {"signature":"fun openWindow ( url : String ) : Promise < WindowClient ? >","body":"fun openWindow ( url : String ) : Promise < WindowClient ? >","docstring":""} {"signature":"fun claim ( ) : Promise < Nothing ? >","body":"fun claim ( ) : Promise < Nothing ? >","docstring":""} {"signature":"@ Suppress ( \"\" ) public fun ClientQueryOptions ( includeUncontrolled : Boolean ? = false , type : ClientType ? = ClientType . WINDOW ) : ClientQueryOptions","body":"{ js ( \"\" ) }","docstring":""} {"signature":"fun waitUntil ( f : Promise < JsAny ? > )","body":"fun waitUntil ( f : Promise < JsAny ? > )","docstring":""} {"signature":"@ Suppress ( \"\" ) public fun ExtendableEventInit ( bubbles : Boolean ? = false , cancelable : Boolean ? = false , composed : Boolean ? = false ) : ExtendableEventInit","body":"{ js ( \"\" ) }","docstring":""} {"signature":"fun registerForeignFetch ( options : ForeignFetchOptions )","body":"fun registerForeignFetch ( options : ForeignFetchOptions )","docstring":""} {"signature":"@ Suppress ( \"\" ) public fun ForeignFetchOptions ( scopes : JsArray < JsString > ? , origins : JsArray < JsString > ? ) : ForeignFetchOptions","body":"{ js ( \"\" ) }","docstring":""} {"signature":"fun respondWith ( r : Promise < Response > )","body":"fun respondWith ( r : Promise < Response > )","docstring":""} {"signature":"@ Suppress ( \"\" ) public fun FetchEventInit ( request : Request ? , clientId : String ? = null , isReload : Boolean ? = false , bubbles : Boolean ? = false , cancelable : Boolean ? = false , composed : Boolean ? = false ) : FetchEventInit","body":"{ js ( \"\" ) }","docstring":""} {"signature":"fun respondWith ( r : Promise < ForeignFetchResponse > )","body":"fun respondWith ( r : Promise < ForeignFetchResponse > )","docstring":""} {"signature":"@ Suppress ( \"\" ) public fun ForeignFetchEventInit ( request : Request ? , origin : String ? = \"\" , bubbles : Boolean ? = false , cancelable : Boolean ? = false , composed : Boolean ? = false ) : ForeignFetchEventInit","body":"{ js ( \"\" ) }","docstring":""} {"signature":"@ Suppress ( \"\" ) public fun ForeignFetchResponse ( response : Response ? , origin : String ? = undefined , headers : JsArray < JsString > ? = undefined ) : ForeignFetchResponse","body":"{ js ( \"\" ) }","docstring":""} {"signature":"@ Suppress ( \"\" ) public fun ExtendableMessageEventInit ( data : JsAny ? = undefined , origin : String ? = undefined , lastEventId : String ? = undefined , source : UnionClientOrMessagePortOrServiceWorker ? = undefined , ports : JsArray < MessagePort > ? = undefined , bubbles : Boolean ? = false , cancelable : Boolean ? = false , composed : Boolean ? = false ) : ExtendableMessageEventInit","body":"{ js ( \"\" ) }","docstring":""} {"signature":"fun match ( request : Request , options : CacheQueryOptions = definedExternally ) : Promise < JsAny ? >","body":"fun match ( request : Request , options : CacheQueryOptions = definedExternally ) : Promise < JsAny ? >","docstring":""} {"signature":"fun match ( request : String , options : CacheQueryOptions = definedExternally ) : Promise < JsAny ? >","body":"fun match ( request : String , options : CacheQueryOptions = definedExternally ) : Promise < JsAny ? >","docstring":""} {"signature":"fun matchAll ( request : Request , options : CacheQueryOptions = definedExternally ) : Promise < JsArray < Response > >","body":"fun matchAll ( request : Request , options : CacheQueryOptions = definedExternally ) : Promise < JsArray < Response > >","docstring":""} {"signature":"fun matchAll ( request : String , options : CacheQueryOptions = definedExternally ) : Promise < JsArray < Response > >","body":"fun matchAll ( request : String , options : CacheQueryOptions = definedExternally ) : Promise < JsArray < Response > >","docstring":""} {"signature":"fun matchAll ( ) : Promise < JsArray < Response > >","body":"fun matchAll ( ) : Promise < JsArray < Response > >","docstring":""} {"signature":"fun add ( request : Request ) : Promise < Nothing ? >","body":"fun add ( request : Request ) : Promise < Nothing ? >","docstring":""} {"signature":"fun add ( request : String ) : Promise < Nothing ? >","body":"fun add ( request : String ) : Promise < Nothing ? >","docstring":""} {"signature":"fun addAll ( requests : JsArray < JsAny ? > ) : Promise < Nothing ? >","body":"fun addAll ( requests : JsArray < JsAny ? > ) : Promise < Nothing ? >","docstring":""} {"signature":"fun put ( request : Request , response : Response ) : Promise < Nothing ? >","body":"fun put ( request : Request , response : Response ) : Promise < Nothing ? >","docstring":""} {"signature":"fun put ( request : String , response : Response ) : Promise < Nothing ? >","body":"fun put ( request : String , response : Response ) : Promise < Nothing ? >","docstring":""} {"signature":"fun delete ( request : Request , options : CacheQueryOptions = definedExternally ) : Promise < JsBoolean >","body":"fun delete ( request : Request , options : CacheQueryOptions = definedExternally ) : Promise < JsBoolean >","docstring":""} {"signature":"fun delete ( request : String , options : CacheQueryOptions = definedExternally ) : Promise < JsBoolean >","body":"fun delete ( request : String , options : CacheQueryOptions = definedExternally ) : Promise < JsBoolean >","docstring":""} {"signature":"fun keys ( request : Request , options : CacheQueryOptions = definedExternally ) : Promise < JsArray < Request > >","body":"fun keys ( request : Request , options : CacheQueryOptions = definedExternally ) : Promise < JsArray < Request > >","docstring":""} {"signature":"fun keys ( request : String , options : CacheQueryOptions = definedExternally ) : Promise < JsArray < Request > >","body":"fun keys ( request : String , options : CacheQueryOptions = definedExternally ) : Promise < JsArray < Request > >","docstring":""} {"signature":"fun keys ( ) : Promise < JsArray < Request > >","body":"fun keys ( ) : Promise < JsArray < Request > >","docstring":""} {"signature":"@ Suppress ( \"\" ) public fun CacheQueryOptions ( ignoreSearch : Boolean ? = false , ignoreMethod : Boolean ? = false , ignoreVary : Boolean ? = false , cacheName : String ? = undefined ) : CacheQueryOptions","body":"{ js ( \"\" ) }","docstring":""} {"signature":"@ Suppress ( \"\" ) public fun CacheBatchOperation ( type : String ? = undefined , request : Request ? = undefined , response : Response ? = undefined , options : CacheQueryOptions ? = undefined ) : CacheBatchOperation","body":"{ js ( \"\" ) }","docstring":""} {"signature":"fun match ( request : Request , options : CacheQueryOptions = definedExternally ) : Promise < JsAny ? >","body":"fun match ( request : Request , options : CacheQueryOptions = definedExternally ) : Promise < JsAny ? >","docstring":""} {"signature":"fun match ( request : String , options : CacheQueryOptions = definedExternally ) : Promise < JsAny ? >","body":"fun match ( request : String , options : CacheQueryOptions = definedExternally ) : Promise < JsAny ? >","docstring":""} {"signature":"fun has ( cacheName : String ) : Promise < JsBoolean >","body":"fun has ( cacheName : String ) : Promise < JsBoolean >","docstring":""} {"signature":"fun open ( cacheName : String ) : Promise < Cache >","body":"fun open ( cacheName : String ) : Promise < Cache >","docstring":""} {"signature":"fun delete ( cacheName : String ) : Promise < JsBoolean >","body":"fun delete ( cacheName : String ) : Promise < JsBoolean >","docstring":""} {"signature":"fun keys ( ) : Promise < JsArray < JsString > >","body":"fun keys ( ) : Promise < JsArray < JsString > >","docstring":""} {"signature":"fun foo ( )","body":"{ }","docstring":""} {"signature":"fun testZ ( z : Z )","body":"= z . foo ( )","docstring":""} {"signature":"fun testNZ ( z : Z ? )","body":"= z ? . foo ( )","docstring":""} {"signature":"fun foo ( )","body":"= \"\"","docstring":""} {"signature":"fun bar ( )","body":"= \"\"","docstring":""} {"signature":"override fun bar ( ) : String","body":"= k","docstring":""} {"signature":"override fun bar ( ) : String","body":"= k","docstring":""} {"signature":"override fun createPointer ( ) : KtSymbolPointer < KtJavaFieldSymbol >","body":"= withValidityAssertion { KtFirJavaFieldSymbolPointer ( analysisSession . createOwnerPointer ( this ) , name , firSymbol . isStatic ) }","docstring":""} {"signature":"override fun equals ( other : Any ? ) : Boolean","body":"= symbolEquals ( other )","docstring":""} {"signature":"override fun hashCode ( ) : Int","body":"= symbolHashCode ( )","docstring":""} {"signature":"fun < T : Number > sin ( x : KtNDArray < T > ) : KtNDArray < Double >","body":"= callFunc ( nameMethod = arrayOf ( \"\" ) , args = arrayOf ( x ) , dtype = Double :: class )","docstring":"/**\n * Trigonometric sine, element-wise.\n */"} {"signature":"fun < T : Number > cos ( x : KtNDArray < T > ) : KtNDArray < Double >","body":"= callFunc ( nameMethod = arrayOf ( \"\" ) , args = arrayOf ( x ) , dtype = Double :: class )","docstring":"/**\n * Cosine element-wise.\n */"} {"signature":"fun < T : Number > tan ( x : KtNDArray < T > ) : KtNDArray < Double >","body":"= callFunc ( nameMethod = arrayOf ( \"\" ) , args = arrayOf ( x ) , dtype = Double :: class )","docstring":"/**\n * Compute tangent element-wise.\n */"} {"signature":"fun < T : Number > arcsin ( x : KtNDArray < T > ) : KtNDArray < Double >","body":"= callFunc ( nameMethod = arrayOf ( \"\" ) , args = arrayOf ( x ) , dtype = Double :: class )","docstring":"/**\n * Inverse sine, element-wise.\n */"} {"signature":"fun < T : Number > arccos ( x : KtNDArray < T > ) : KtNDArray < Double >","body":"= callFunc ( nameMethod = arrayOf ( \"\" ) , args = arrayOf ( x ) , dtype = Double :: class )","docstring":"/**\n * Trigonometric inverse cosine, element-wise.\n */"} {"signature":"fun < T : Number > arctan ( x : KtNDArray < T > ) : KtNDArray < Double >","body":"= callFunc ( nameMethod = arrayOf ( \"\" ) , args = arrayOf ( x ) , dtype = Double :: class )","docstring":"/**\n * Trigonometric inverse tangent, element-wise.\n */"} {"signature":"fun < T : Number , E : Number > hypot ( x1 : KtNDArray < T > , x2 : KtNDArray < E > ) : KtNDArray < Double >","body":"= callFunc ( nameMethod = arrayOf ( \"\" ) , args = arrayOf ( x1 , x2 ) , dtype = Double :: class )","docstring":""} {"signature":"fun < T : Number , E : Number > arctan2 ( x1 : KtNDArray < T > , x2 : KtNDArray < E > ) : KtNDArray < Double >","body":"= callFunc ( nameMethod = arrayOf ( \"\" ) , args = arrayOf ( x1 , x2 ) , dtype = Double :: class )","docstring":"/**\n * Element-wise arc tangent of x1/x2 choosing the quadrant correctly.\n */"} {"signature":"fun < T : Number > degrees ( x : KtNDArray < T > ) : KtNDArray < Double >","body":"= callFunc ( nameMethod = arrayOf ( \"\" ) , args = arrayOf ( x ) , dtype = Double :: class )","docstring":"/**\n * Convert angles from radians to degrees.\n */"} {"signature":"fun < T : Number > radians ( x : KtNDArray < T > ) : KtNDArray < Double >","body":"= callFunc ( nameMethod = arrayOf ( \"\" ) , args = arrayOf ( x ) , dtype = Double :: class )","docstring":"/**\n * Convert angles from degrees to radians.\n */"} {"signature":"fun < T : Number > unwrap ( p : KtNDArray < T > , discont : Double = PI , axis : Int = - ) : KtNDArray < Double >","body":"= callFunc ( nameMethod = arrayOf ( \"\" ) , args = arrayOf ( p , discont , axis ) )","docstring":"/**\n * Unwrap by changing deltas between values to 2*pi complement.\n */"} {"signature":"fun < T : Number > deg2rad ( x : KtNDArray < T > ) : KtNDArray < Double >","body":"= callFunc ( nameMethod = arrayOf ( \"\" ) , args = arrayOf ( x ) , dtype = Double :: class )","docstring":"/**\n * Convert angles from degrees to radians.\n */"} {"signature":"fun < T : Number > rad2deg ( x : KtNDArray < T > ) : KtNDArray < Double >","body":"= callFunc ( nameMethod = arrayOf ( \"\" ) , args = arrayOf ( x ) , dtype = Double :: class )","docstring":"/**\n * Convert angles from radians to degrees.\n */"} {"signature":"fun putNonNegInt ( x : Int )","body":"= put ( x , SIZE , isEmpty = { arr [ it ] < } , equals = { x , y -> x == y } , fetch = { arr [ it ] } , store = { i , x -> arr [ i ] = x } )","docstring":""} {"signature":"inline fun < T > put ( x : T , maxExclusive : Int , isEmpty : ( Int ) -> Boolean , equals : ( T , T ) -> Boolean , fetch : ( Int ) -> T , store : ( Int , T ) -> Unit ) : Boolean","body":"{ var i = do { if ( isEmpty ( i ) ) { store ( i , x ) return true } val y = fetch ( i ) if ( equals ( x , y ) ) { return false } i ++ if ( i >= maxExclusive ) return false } while ( true ) }","docstring":""} {"signature":"inline fun run ( block : ( T ) -> Unit )","body":"{ block ( value ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ var result : String = \"\" Box ( \"\" ) . run { outer -> val block = { result = outer } block ( ) } return result }","docstring":""} {"signature":"fun f ( )","body":"{ }","docstring":""} {"signature":"fun g ( )","body":"= :: f","docstring":""} {"signature":"@ Test fun apply ( )","body":"{ val input = floatArrayOf ( - , , ) val expected = floatArrayOf ( - , , ) assertActivationFunction ( SnakeActivation ( ) , input , expected ) }","docstring":""} {"signature":"override fun getClassBuilderMode ( ) : ClassBuilderMode","body":"= builderMode","docstring":""} {"signature":"override fun newClassBuilder ( origin : JvmDeclarationOrigin ) : AbstractClassBuilder . Concrete","body":"{ val classNode = ClassNode ( ) compiledClasses += classNode origins [ classNode ] = origin return OriginCollectingClassBuilder ( classNode ) }","docstring":""} {"signature":"override fun newField ( origin : JvmDeclarationOrigin , access : Int , name : String , desc : String , signature : String ? , value : Any ? ) : FieldVisitor","body":"{ val fieldNode = super . newField ( origin , access , name , desc , signature , value ) as FieldNode origins [ fieldNode ] = origin return fieldNode }","docstring":""} {"signature":"override fun newMethod ( origin : JvmDeclarationOrigin , access : Int , name : String , desc : String , signature : String ? , exceptions : Array < out String > ? ) : MethodVisitor","body":"{ val methodNode = super . newMethod ( origin , access , name , desc , signature , exceptions ) as MethodNode origins [ methodNode ] = origin if ( ( access and Opcodes . ACC_ABSTRACT ) != && methodNode . localVariables == null ) { methodNode . localVariables = mutableListOf < LocalVariableNode > ( ) } return methodNode }","docstring":""} {"signature":"override fun asBytes ( builder : ClassBuilder ) : ByteArray","body":"{ val classWriter = ClassWriter ( ClassWriter . COMPUTE_FRAMES or ClassWriter . COMPUTE_MAXS ) ( builder as OriginCollectingClassBuilder ) . classNode . accept ( classWriter ) return classWriter . toByteArray ( ) }","docstring":""} {"signature":"override fun asText ( builder : ClassBuilder )","body":"= throw UnsupportedOperationException ( )","docstring":""} {"signature":"override fun close ( )","body":"{ }","docstring":""} {"signature":"inline fun exec ( f : ( ) -> Unit )","body":"= f ( )","docstring":""} {"signature":"inline fun test2 ( )","body":"{ val obj = object { fun sayOk ( ) = sb . append ( \"\" ) } obj . sayOk ( ) }","docstring":""} {"signature":"inline fun noExec ( f : ( ) -> Unit )","body":"{ }","docstring":""} {"signature":"fun box ( ) : String","body":"{ exec { test2 ( ) } noExec { test2 ( ) } return sb . toString ( ) }","docstring":""} {"signature":"operator fun getValue ( o : Nothing ? , desc : KProperty < * > ) : T","body":"{ return null as T }","docstring":""} {"signature":"operator fun setValue ( o : Nothing ? , desc : KProperty < * > , value : T )","body":"{ }","docstring":""} {"signature":"fun box ( ) : String","body":"{ currentAccountId = if ( currentAccountId != null ) return \"\" return \"\" }","docstring":""} {"signature":"override fun KtDeclaration . findDescriptor ( ) : DeclarationDescriptor ?","body":"{ return if ( this is KtParameter ) this . resolveToParameterDescriptorIfAny ( BodyResolveMode . FULL ) else this . resolveToDescriptorIfAny ( BodyResolveMode . FULL ) }","docstring":""} {"signature":"fun main ( )","body":"{ println ( listOf ( , , , ) . penultimate ) }","docstring":""} {"signature":"fun foo ( )","body":"{ if ( true ) a < caret > v else }","docstring":""} {"signature":"fun createIfNeeded ( session : FirSession ) : FirSwitchableExtensionDeclarationsSymbolProvider ?","body":"= FirExtensionDeclarationsSymbolProvider . createIfNeeded ( session ) ? . let { FirSwitchableExtensionDeclarationsSymbolProvider ( it ) }","docstring":""} {"signature":"override fun getPackageNames ( ) : Set < String > ?","body":"= if ( disabled ) null else delegate . symbolNamesProvider . getPackageNames ( )","docstring":""} {"signature":"override fun getPackageNamesWithTopLevelClassifiers ( ) : Set < String > ?","body":"= if ( disabled ) null else delegate . symbolNamesProvider . getPackageNamesWithTopLevelClassifiers ( )","docstring":""} {"signature":"override fun getPackageNamesWithTopLevelCallables ( ) : Set < String > ?","body":"= if ( disabled ) null else delegate . symbolNamesProvider . getPackageNamesWithTopLevelCallables ( )","docstring":""} {"signature":"override fun getTopLevelClassifierNamesInPackage ( packageFqName : FqName ) : Set < Name > ?","body":"= if ( disabled ) null else delegate . symbolNamesProvider . getTopLevelClassifierNamesInPackage ( packageFqName )","docstring":""} {"signature":"override fun getTopLevelCallableNamesInPackage ( packageFqName : FqName ) : Set < Name > ?","body":"= if ( disabled ) null else delegate . symbolNamesProvider . getTopLevelCallableNamesInPackage ( packageFqName )","docstring":""} {"signature":"override fun getClassLikeSymbolByClassId ( classId : ClassId ) : FirClassLikeSymbol < * > ?","body":"{ if ( disabled ) return null return delegate . getClassLikeSymbolByClassId ( classId ) }","docstring":""} {"signature":"@ FirSymbolProviderInternals override fun getTopLevelCallableSymbolsTo ( destination : MutableList < FirCallableSymbol < * > > , packageFqName : FqName , name : Name )","body":"{ if ( disabled ) return delegate . getTopLevelCallableSymbolsTo ( destination , packageFqName , name ) }","docstring":""} {"signature":"@ FirSymbolProviderInternals override fun getTopLevelFunctionSymbolsTo ( destination : MutableList < FirNamedFunctionSymbol > , packageFqName : FqName , name : Name )","body":"{ if ( disabled ) return delegate . getTopLevelFunctionSymbolsTo ( destination , packageFqName , name ) }","docstring":""} {"signature":"@ FirSymbolProviderInternals override fun getTopLevelPropertySymbolsTo ( destination : MutableList < FirPropertySymbol > , packageFqName : FqName , name : Name )","body":"{ if ( disabled ) return delegate . getTopLevelPropertySymbolsTo ( destination , packageFqName , name ) }","docstring":""} {"signature":"override fun getPackage ( fqName : FqName ) : FqName ?","body":"{ if ( disabled ) return null return delegate . getPackage ( fqName ) }","docstring":""} {"signature":"@ FirSymbolProviderInternals fun disable ( )","body":"{ disabled = true }","docstring":""} {"signature":"@ FirSymbolProviderInternals fun enable ( )","body":"{ disabled = false }","docstring":""} {"signature":"fun getElements ( ) : List < JavaAnnotationArgument >","body":"fun getElements ( ) : List < JavaAnnotationArgument >","docstring":""} {"signature":"fun getReferencedType ( ) : JavaType","body":"fun getReferencedType ( ) : JavaType","docstring":""} {"signature":"fun getAnnotation ( ) : JavaAnnotation","body":"fun getAnnotation ( ) : JavaAnnotation","docstring":""} {"signature":"fun box ( ) : String","body":"{ val capture = \"\" class Local { val captured = capture open inner class Inner ( val d : Double = - , val s : String , vararg val y : Int ) { open fun result ( ) = \"\" } val obj = object : Inner ( s = \"\" ) { override fun result ( ) = s } } return Local ( ) . obj . result ( ) }","docstring":""} {"signature":"fun KtAnalysisSession . findPsi ( ktSymbol : KtSymbol , project : Project ) : PsiElement ?","body":"{ return when ( ktSymbol ) { is KtConstructorSymbol -> providePsiForConstructor ( ktSymbol , project ) is KtFunctionLikeSymbol -> providePsiForFunction ( ktSymbol , project ) is KtEnumEntrySymbol -> providePsiForEnumEntry ( ktSymbol , project ) is KtVariableLikeSymbol -> providePsiForProperty ( ktSymbol , project ) is KtClassLikeSymbol -> providePsiForClass ( ktSymbol , project ) else -> null } }","docstring":""} {"signature":"private fun KtAnalysisSession . providePsiForConstructor ( constructorSymbol : KtConstructorSymbol , project : Project ) : PsiElement ?","body":"{ val classId = constructorSymbol . containingClassIdIfNonLocal ? : return null val psiClass = project . createPsiDeclarationProvider ( constructorSymbol . scope ( project ) ) ? . getClassesByClassId ( classId ) ? . firstOrNull ( ) ? : return null return psiClass . constructors . find { psiMethod -> representsTheSameDeclaration ( psiMethod , constructorSymbol ) } }","docstring":""} {"signature":"private fun KtAnalysisSession . providePsiForFunction ( functionLikeSymbol : KtFunctionLikeSymbol , project : Project ) : PsiElement ?","body":"{ return functionLikeSymbol . callableIdIfNonLocal ? . let { val candidates = project . createPsiDeclarationProvider ( functionLikeSymbol . scope ( project ) ) ? . getFunctions ( it ) if ( candidates ? . size == ) candidates . single ( ) else candidates ? . find { psiMethod -> representsTheSameDeclaration ( psiMethod , functionLikeSymbol ) } } }","docstring":""} {"signature":"private fun providePsiForProperty ( variableLikeSymbol : KtVariableLikeSymbol , project : Project ) : PsiElement ?","body":"{ return variableLikeSymbol . callableIdIfNonLocal ? . let { val candidates = project . createPsiDeclarationProvider ( variableLikeSymbol . scope ( project ) ) ? . getProperties ( it ) if ( candidates ? . size == ) candidates . single ( ) else { candidates ? . firstOrNull { psiMember -> psiMember is PsiField } ? : candidates ? . firstOrNull ( ) } } }","docstring":""} {"signature":"private fun providePsiForClass ( classLikeSymbol : KtClassLikeSymbol , project : Project ) : PsiElement ?","body":"{ return classLikeSymbol . classIdIfNonLocal ? . let { project . createPsiDeclarationProvider ( classLikeSymbol . scope ( project ) ) ? . getClassesByClassId ( it ) ? . firstOrNull ( ) } }","docstring":""} {"signature":"private fun providePsiForEnumEntry ( enumEntrySymbol : KtEnumEntrySymbol , project : Project ) : PsiElement ?","body":"{ val classId = enumEntrySymbol . containingEnumClassIdIfNonLocal ? : return null val psiClass = project . createPsiDeclarationProvider ( enumEntrySymbol . scope ( project ) ) ? . getClassesByClassId ( classId ) ? . firstOrNull ( ) ? : return null return psiClass . fields . find { it . name == enumEntrySymbol . name . asString ( ) } }","docstring":""} {"signature":"private fun KtSymbol . scope ( project : Project ) : GlobalSearchScope","body":"{ return GlobalSearchScope . allScope ( project ) }","docstring":""} {"signature":"fun createInterned ( isOperator : Boolean , isInfix : Boolean , isInline : Boolean , isSuspend : Boolean , ) : CirFunctionModifiers","body":"= interner . intern ( CirFunctionModifiersInternedImpl ( isOperator = isOperator , isInfix = isInfix , isInline = isInline , isSuspend = isSuspend , ) )","docstring":""} {"signature":"@ OptIn ( ExperimentalTypeInference :: class ) fun < K , V > buildMap ( @ BuilderInference builderAction : MutableMap < K , V > . ( ) -> Unit ) : Map < K , V >","body":"= mapOf ( )","docstring":""} {"signature":"fun foo ( ) : MutableMap < CharSequence , * >","body":"= mutableMapOf < CharSequence , String > ( )","docstring":""} {"signature":"fun < E > MutableMap < E , * > . swap ( x : MutableMap < E , * > )","body":"{ }","docstring":""} {"signature":"@ OptIn ( ExperimentalStdlibApi :: class ) fun box ( ) : String","body":"{ val x : Map < in String , String > = buildMap { put ( \"\" , \"\" ) swap ( foo ( ) ) } return \"\" }","docstring":""} {"signature":"private fun ConeKotlinType . isBuiltinType ( classId : ClassId , isNullable : Boolean ? ) : Boolean","body":"{ if ( this !is ConeClassLikeType ) return false return lookupTag . classId == classId && ( isNullable == null || type . isNullable == isNullable ) }","docstring":""} {"signature":"private fun ConeKotlinType . isAnyOfBuiltinType ( classIds : Set < ClassId > ) : Boolean","body":"{ if ( this !is ConeClassLikeType ) return false return lookupTag . classId in classIds }","docstring":""} {"signature":"private fun ConeKotlinType . isArrayType ( isNullable : Boolean ? ) : Boolean","body":"{ return isBuiltinType ( StandardClassIds . Array , isNullable ) || StandardClassIds . primitiveArrayTypeByElementType . values . any { isBuiltinType ( it , isNullable ) } || StandardClassIds . unsignedArrayTypeByElementType . values . any { isBuiltinType ( it , isNullable ) } }","docstring":""} {"signature":"fun < D : FirCallableSymbol < * > > extractBothWaysOverridable ( overrider : MemberWithBaseScope < D > , members : MutableCollection < MemberWithBaseScope < D > > , overrideChecker : FirOverrideChecker , ) : MutableList < MemberWithBaseScope < D > >","body":"{ val result = mutableListOf < MemberWithBaseScope < D > > ( ) . apply { add ( overrider ) } val iterator = members . iterator ( ) val overrideCandidate = overrider . member . fir while ( iterator . hasNext ( ) ) { val next = iterator . next ( ) if ( next == overrider ) { iterator . remove ( ) continue } if ( overrideChecker . similarFunctionsOrBothProperties ( overrideCandidate , next . member . fir ) ) { result . add ( next ) iterator . remove ( ) } } return result }","docstring":""} {"signature":"fun < D : FirCallableSymbol < * > > selectMostSpecificMembers ( overridables : List < MemberWithBaseScope < D > > , returnTypeCalculator : ReturnTypeCalculator ) : List < MemberWithBaseScope < D > >","body":"{ require ( overridables . isNotEmpty ( ) ) { \"\" } if ( overridables . size == ) { return overridables } val maximums : MutableList < MemberWithBaseScopeAndReturnType < D > > = ArrayList ( ) skipCandidate @ for ( candidate in overridables ) { val withReturnType = MemberWithBaseScopeAndReturnType ( candidate , returnTypeCalculator ) var skip = false val toRemove = BooleanArray ( maximums . size ) { i -> val c = maximums [ i ] . compareTo ( withReturnType ) ? : return@BooleanArray false if ( c >= ) { skip = true } c < } maximums . removeFlagged ( toRemove ) if ( ! skip ) { maximums . add ( withReturnType ) } } return maximums . map { it . memberWithBaseScope } }","docstring":""} {"signature":"private fun < E > MutableList < E > . removeFlagged ( flags : BooleanArray )","body":"{ var dest = for ( i in flags . indices ) { if ( ! flags [ i ] ) { this [ dest ++ ] = this [ i ] } } while ( size > dest ) { removeLast ( ) } }","docstring":""} {"signature":"private fun MemberWithBaseScopeAndReturnType < * > . compareTo ( other : MemberWithBaseScopeAndReturnType < * > ) : Int ?","body":"{ fun merge ( preferA : Boolean , preferB : Boolean , previous : Int ) : Int ? = when { preferA == preferB -> previous preferA && previous >= -> preferB && previous <= -> - else -> null } val aFir = memberWithBaseScope . member . fir val bFir = other . memberWithBaseScope . member . fir val byVisibility = Visibilities . compare ( aFir . visibility , bFir . visibility ) ? : val substitutor = buildSubstitutorForOverridesCheck ( aFir , bFir , session ) ? : return null val aReturnType = returnType ? . let ( substitutor :: substituteOrSelf ) ? : return null val bReturnType = other . returnType ? : return null val typeCheckerState = session . typeContext . newTypeCheckerState ( errorTypesEqualToAnything = false , stubTypesEqualToAnything = false ) val aSubtypesB = AbstractTypeChecker . isSubtypeOf ( typeCheckerState , aReturnType , bReturnType ) val bSubtypesA = AbstractTypeChecker . isSubtypeOf ( typeCheckerState , bReturnType , aReturnType ) val byVisibilityAndType = when { aSubtypesB && bSubtypesA -> merge ( aReturnType !is ConeFlexibleType , bReturnType !is ConeFlexibleType , byVisibility ) ? : return null aSubtypesB && byVisibility >= -> bSubtypesA && byVisibility <= -> - else -> return null } return when ( aFir ) { is FirSimpleFunction -> { require ( bFir is FirSimpleFunction ) { \"\" + bFir . javaClass } byVisibilityAndType } is FirProperty -> { require ( bFir is FirProperty ) { \"\" + bFir . javaClass } if ( aFir . isVar && ! aSubtypesB ) return null if ( bFir . isVar && ! bSubtypesA ) return null merge ( aFir . isVar , bFir . isVar , byVisibilityAndType ) } else -> throw IllegalArgumentException ( \"\" + aFir . javaClass ) } }","docstring":""} {"signature":"fun runCommonization ( parameters : CommonizerParameters )","body":"{ if ( ! parameters . containsCommonModuleNames ( ) ) { parameters . resultsConsumer . allConsumed ( parameters , Status . NOTHING_TO_DO ) return } CommonizerQueue ( parameters ) . invokeAll ( ) parameters . resultsConsumer . allConsumed ( parameters , Status . DONE ) }","docstring":""} {"signature":"internal fun deserializeTarget ( parameters : CommonizerParameters , target : TargetProvider ) : CirTreeRoot","body":"{ return parameters . logger . progress ( target . target , \"\" ) { defaultCirTreeRootDeserializer ( parameters , target ) } }","docstring":""} {"signature":"internal fun deserializeTarget ( parameters : CommonizerParameters , target : CommonizerTarget ) : CirTreeRoot ?","body":"{ val targetProvider = parameters . targetProviders [ target ] ? : return null return deserializeTarget ( parameters , targetProvider ) }","docstring":""} {"signature":"internal fun commonizeTarget ( parameters : CommonizerParameters , inputs : TargetDependent < CirTreeRoot ? > , output : CommonizerTarget ) : CirRootNode ?","body":"{ val availableTrees = inputs . filterNonNull ( ) if ( availableTrees . size == ) return null parameters . logger . progress ( output , \"\" ) { val classifiers = CirKnownClassifiers ( classifierIndices = availableTrees . mapValue ( :: CirClassifierIndex ) , targetDependencies = availableTrees . mapValue ( CirTreeRoot :: dependencies ) , commonizedNodes = CirCommonizedClassifierNodes . default ( allowedDuplicates = allowedDuplicates ) , commonDependencies = parameters . dependencyClassifiers ( output ) ) val mergedTree = mergeCirTree ( parameters . storageManager , classifiers , availableTrees , parameters . settings ) InlineTypeAliasCirNodeTransformer ( parameters . storageManager , classifiers , parameters . settings ) . invoke ( mergedTree ) ReApproximationCirNodeTransformer ( parameters . storageManager , classifiers , parameters . settings , SignatureBuildingContextProvider ( classifiers , typeAliasInvariant = true , skipArguments = false ) ) . invoke ( mergedTree ) ReApproximationCirNodeTransformer ( parameters . storageManager , classifiers , parameters . settings , SignatureBuildingContextProvider ( classifiers , typeAliasInvariant = true , skipArguments = true ) ) . invoke ( mergedTree ) mergedTree . accept ( CommonizationVisitor ( mergedTree ) , Unit ) return mergedTree } }","docstring":""} {"signature":"internal fun serializeTarget ( parameters : CommonizerParameters , commonized : CirRootNode , outputTarget : SharedCommonizerTarget ) : Unit","body":"= parameters . logger . progress ( outputTarget , \"\" ) { CirTreeSerializer . serializeSingleTarget ( commonized , commonized . indexOfCommon , parameters . statsCollector ) { metadataModule -> val libraryName = metadataModule . name val serializedMetadata = with ( metadataModule . write ( ChunkedKlibModuleFragmentWriteStrategy ( ) ) ) { SerializedMetadata ( header , fragments , fragmentNames ) } val manifestData = parameters . manifestProvider [ outputTarget ] . buildManifest ( libraryName ) parameters . resultsConsumer . consume ( parameters , outputTarget , ResultsConsumer . ModuleResult ( libraryName , serializedMetadata , manifestData ) ) } parameters . resultsConsumer . targetConsumed ( parameters , outputTarget ) }","docstring":""} {"signature":"override fun lowerKeyOfTypeDeclaration ( declaration : KeyOfTypeDeclaration , owner : NodeOwner < ParameterOwnerDeclaration > ? ) : ParameterValueDeclaration","body":"{ val type = super . lowerParameterValue ( declaration . type , owner . wrap ( declaration ) ) if ( type is TypeDeclaration ) { val reference = type . typeReference if ( reference != null ) { val namedMembers = context . getNamedMembers ( reference . uid ) return UnionTypeDeclaration ( namedMembers . map { StringLiteralDeclaration ( it . name ) } ) } } return declaration . copy ( type = type ) }","docstring":""} {"signature":"private fun findPropertyTypeByString ( properties : List < PropertyDeclaration > , value : String ) : ParameterValueDeclaration ?","body":"{ return properties . find { it . name == value } ? . type }","docstring":""} {"signature":"override fun lowerIndexTypeDeclaration ( declaration : IndexTypeDeclaration , owner : NodeOwner < ParameterOwnerDeclaration > ? ) : ParameterValueDeclaration","body":"{ val objectType = super . lowerParameterValue ( declaration . objectType , owner . wrap ( declaration ) ) val indexType = super . lowerParameterValue ( declaration . indexType , owner . wrap ( declaration ) ) if ( objectType is TypeDeclaration ) { val reference = objectType . typeReference if ( reference != null ) { val properties = context . getProperties ( reference . uid ) val newType = when ( indexType ) { is StringLiteralDeclaration -> findPropertyTypeByString ( properties , indexType . token ) is UnionTypeDeclaration -> indexType . copy ( params = indexType . params . filterIsInstance < StringLiteralDeclaration > ( ) . mapNotNull { unionMember -> findPropertyTypeByString ( properties , unionMember . token ) } ) else -> null } if ( newType != null ) { return newType } } } return declaration . copy ( objectType = objectType , indexType = indexType ) }","docstring":""} {"signature":"override fun lowerClassLikeDeclaration ( declaration : ClassLikeDeclaration , owner : NodeOwner < ModuleDeclaration > ? ) : TopLevelDeclaration ?","body":"{ registeredMembers [ declaration . uid ] = declaration . members return super . lowerClassLikeDeclaration ( declaration , owner ) }","docstring":""} {"signature":"fun getProperties ( uid : String ) : List < PropertyDeclaration >","body":"{ return registeredMembers [ uid ] ? . filterIsInstance < PropertyDeclaration > ( ) ? : emptyList ( ) }","docstring":""} {"signature":"fun getNamedMembers ( uid : String ) : List < NamedMemberDeclaration >","body":"{ return registeredMembers [ uid ] ? . filterIsInstance < NamedMemberDeclaration > ( ) ? : emptyList ( ) }","docstring":""} {"signature":"override fun lower ( source : SourceSetDeclaration ) : SourceSetDeclaration","body":"{ val context = KeyOfAndLookupContext ( ) source . sources . map { context . lowerSourceDeclaration ( it . root ) } return source . copy ( sources = source . sources . map { sourceFileDeclaration -> sourceFileDeclaration . copy ( root = KeyOfAndLookupLowering ( context ) . lowerSourceDeclaration ( sourceFileDeclaration . root ) ) } ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ assertEquals ( Second ( ) . value . value , ) return \"\" }","docstring":""} {"signature":"fun TestBasic ( )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun TestBasicReverse ( )","body":"{ }","docstring":""} {"signature":"fun TestIdenticalReturnTypes ( ) : TestIdenticalReturnTypes","body":"= TestIdenticalReturnTypes ( )","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun TestIdenticalReturnTypesReverse ( ) : TestIdenticalReturnTypesReverse","body":"= TestIdenticalReturnTypesReverse ( )","docstring":""} {"signature":"inline fun < reified T > TestFunctionWithReifiedTypeParameterVsConstructorA ( )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) inline fun < reified T > TestFunctionWithReifiedTypeParameterVsConstructorAReverse ( )","body":"{ }","docstring":""} {"signature":"inline fun < reified T > TestFunctionWithReifiedTypeParameterVsConstructorB ( arg : T )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) inline fun < reified T > TestFunctionWithReifiedTypeParameterVsConstructorBReverse ( arg : T )","body":"{ }","docstring":""} {"signature":"inline fun < reified T > TestFunctionWithReifiedTypeParameterVsConstructorC ( arg : Invariant < T > )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) inline fun < reified T > TestFunctionWithReifiedTypeParameterVsConstructorCReverse ( arg : Invariant < T > )","body":"{ }","docstring":""} {"signature":"inline fun TestInlineFunctionVsConstructor ( )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) inline fun TestInlineFunctionVsConstructorReverse ( )","body":"{ }","docstring":""} {"signature":"tailrec fun TestTailrecFunctionVsConstructor ( )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) tailrec fun TestTailrecFunctionVsConstructorReverse ( )","body":"{ }","docstring":""} {"signature":"fun TestFunctionVsPrimaryConstructor ( )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun TestFunctionVsPrimaryConstructorReverse ( )","body":"{ }","docstring":""} {"signature":"fun TestFunctionVsDelegatedPrimaryConstructorCall ( )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun TestFunctionVsDelegatedPrimaryConstructorCallReverse ( )","body":"{ }","docstring":""} {"signature":"fun TestFunctionVsDelegatedSuperConstructorCall ( )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun TestFunctionVsDelegatedSuperConstructorCallReverse ( )","body":"{ }","docstring":""} {"signature":"fun TestIdenticalValueParameters ( arg : UserKlass )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun TestIdenticalValueParametersReverse ( arg : UserKlass )","body":"{ }","docstring":""} {"signature":"fun TestDifferentlyNamedValueParameters ( argB : UserKlass )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun TestDifferentlyNamedValueParametersReverse ( argB : UserKlass )","body":"{ }","docstring":""} {"signature":"fun TestTypeAliasedValueParameterTypesA ( arg : SameUserKlass )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun TestTypeAliasedValueParameterTypesAReverse ( arg : SameUserKlass )","body":"{ }","docstring":""} {"signature":"fun TestTypeAliasedValueParameterTypesB ( arg : UserKlass )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun TestTypeAliasedValueParameterTypesBReverse ( arg : UserKlass )","body":"{ }","docstring":""} {"signature":"fun TestMultipleIdenticalValueParameters ( arg1 : UserKlassA , arg2 : UserKlassB )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun TestMultipleIdenticalValueParametersReverse ( arg1 : UserKlassA , arg2 : UserKlassB )","body":"{ }","docstring":""} {"signature":"fun TestMultipleDifferentlyNamedValueParametersA ( arg1 : UserKlassA , arg2B : UserKlassB )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun TestMultipleDifferentlyNamedValueParametersAReverse ( arg1 : UserKlassA , arg2B : UserKlassB )","body":"{ }","docstring":""} {"signature":"fun TestMultipleDifferentlyNamedValueParametersB ( arg1B : UserKlassA , arg2B : UserKlassB )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun TestMultipleDifferentlyNamedValueParametersBReverse ( arg1B : UserKlassA , arg2B : UserKlassB )","body":"{ }","docstring":""} {"signature":"fun TestMultipleTypeAliasedValueParameterTypesA ( arg1 : UserKlassA , arg2 : SameUserKlassB )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun TestMultipleTypeAliasedValueParameterTypesAReverse ( arg1 : UserKlassA , arg2 : SameUserKlassB )","body":"{ }","docstring":""} {"signature":"fun TestMultipleTypeAliasedValueParameterTypesB ( arg1 : SameUserKlassA , arg2 : SameUserKlassB )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun TestMultipleTypeAliasedValueParameterTypesBReverse ( arg1 : SameUserKlassA , arg2 : SameUserKlassB )","body":"{ }","docstring":""} {"signature":"fun < T > TestIdenticalTypeParametersA ( )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun < T > TestIdenticalTypeParametersAReverse ( )","body":"{ }","docstring":""} {"signature":"fun < T > TestIdenticalTypeParametersB ( arg : T )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun < T > TestIdenticalTypeParametersBReverse ( arg : T )","body":"{ }","docstring":""} {"signature":"fun < T > TestIdenticalTypeParametersC ( arg : Invariant < T > )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun < T > TestIdenticalTypeParametersCReverse ( arg : Invariant < T > )","body":"{ }","docstring":""} {"signature":"fun < T1 , T2 > TestMultipleIdenticalTypeParameters ( )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun < T1 , T2 > TestMultipleIdenticalTypeParametersReverse ( )","body":"{ }","docstring":""} {"signature":"fun < T : UserInterface > TestTypeParameterWithIdenticalUpperBoundsA ( )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun < T : UserInterface > TestTypeParameterWithIdenticalUpperBoundsAReverse ( )","body":"{ }","docstring":""} {"signature":"fun < T : UserInterface > TestTypeParameterWithIdenticalUpperBoundsB ( arg : T )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun < T : UserInterface > TestTypeParameterWithIdenticalUpperBoundsBReverse ( arg : T )","body":"{ }","docstring":""} {"signature":"fun < T : UserInterface > TestTypeParameterWithIdenticalUpperBoundsC ( arg : Invariant < T > )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun < T : UserInterface > TestTypeParameterWithIdenticalUpperBoundsCReverse ( arg : Invariant < T > )","body":"{ }","docstring":""} {"signature":"fun < T > TestTypeParameterWithMultipleIdenticalUpperBoundsAA ( ) where T : UserInterfaceA , T : UserInterfaceB","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun < T > TestTypeParameterWithMultipleIdenticalUpperBoundsAAReverse ( ) where T : UserInterfaceA , T : UserInterfaceB","body":"{ }","docstring":""} {"signature":"fun < T > TestTypeParameterWithMultipleIdenticalUpperBoundsAB ( arg : T ) where T : UserInterfaceA , T : UserInterfaceB","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun < T > TestTypeParameterWithMultipleIdenticalUpperBoundsABReverse ( arg : T ) where T : UserInterfaceA , T : UserInterfaceB","body":"{ }","docstring":""} {"signature":"fun < T > TestTypeParameterWithMultipleIdenticalUpperBoundsAC ( arg : Invariant < T > ) where T : UserInterfaceA , T : UserInterfaceB","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun < T > TestTypeParameterWithMultipleIdenticalUpperBoundsACReverse ( arg : Invariant < T > ) where T : UserInterfaceA , T : UserInterfaceB","body":"{ }","docstring":""} {"signature":"fun < T : UserInterfaceA > TestTypeParameterWithMultipleIdenticalUpperBoundsBA ( ) where T : UserInterfaceB","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun < T : UserInterfaceA > TestTypeParameterWithMultipleIdenticalUpperBoundsBAReverse ( ) where T : UserInterfaceB","body":"{ }","docstring":""} {"signature":"fun < T : UserInterfaceA > TestTypeParameterWithMultipleIdenticalUpperBoundsBB ( arg : T ) where T : UserInterfaceB","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun < T : UserInterfaceA > TestTypeParameterWithMultipleIdenticalUpperBoundsBBReverse ( arg : T ) where T : UserInterfaceB","body":"{ }","docstring":""} {"signature":"fun < T : UserInterfaceA > TestTypeParameterWithMultipleIdenticalUpperBoundsBC ( arg : Invariant < T > ) where T : UserInterfaceB","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun < T : UserInterfaceA > TestTypeParameterWithMultipleIdenticalUpperBoundsBCReverse ( arg : Invariant < T > ) where T : UserInterfaceB","body":"{ }","docstring":""} {"signature":"private fun TestIdenticalPrivateVisibility ( )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) private fun TestIdenticalPrivateVisibilityReverse ( )","body":"{ }","docstring":""} {"signature":"internal fun TestIdenticalInternalVisibility ( )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) internal fun TestIdenticalInternalVisibilityReverse ( )","body":"{ }","docstring":""} {"signature":"public fun TestDifferencesInPrivateAndPublicVisibilitiesA ( )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) public fun TestDifferencesInPrivateAndPublicVisibilitiesAReverse ( )","body":"{ }","docstring":""} {"signature":"private fun TestDifferencesInPrivateAndPublicVisibilitiesB ( )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) private fun TestDifferencesInPrivateAndPublicVisibilitiesBReverse ( )","body":"{ }","docstring":""} {"signature":"public fun TestDifferencesInInternalAndPublicVisibilitiesA ( )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) public fun TestDifferencesInInternalAndPublicVisibilitiesAReverse ( )","body":"{ }","docstring":""} {"signature":"internal fun TestDifferencesInInternalAndPublicVisibilitiesB ( )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) internal fun TestDifferencesInInternalAndPublicVisibilitiesBReverse ( )","body":"{ }","docstring":""} {"signature":"internal fun TestDifferencesInPrivateAndInternalVisibilitiesA ( )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) internal fun TestDifferencesInPrivateAndInternalVisibilitiesAReverse ( )","body":"{ }","docstring":""} {"signature":"private fun TestDifferencesInPrivateAndInternalVisibilitiesB ( )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) private fun TestDifferencesInPrivateAndInternalVisibilitiesBReverse ( )","body":"{ }","docstring":""} {"signature":"override fun transformFlat ( declaration : IrDeclaration ) : List < IrDeclaration > ?","body":"{ if ( declaration is IrFunction && declaration . isInlineFunWithReifiedParameter ( ) || declaration is IrProperty && declaration . getter ? . isInlineFunWithReifiedParameter ( ) == true ) { return emptyList ( ) } return null }","docstring":""} {"signature":"override fun transformFlat ( declaration : IrDeclaration ) : List < IrDeclaration > ?","body":"{ if ( declaration is IrFunction && declaration . isInline ) { declaration . body ? . let { originalBody -> declaration . body = context . irFactory . createBlockBody ( originalBody . startOffset , originalBody . endOffset ) { statements += ( originalBody . deepCopyWithSymbols ( declaration ) as IrBlockBody ) . statements } } } if ( declaration is IrValueParameter && declaration . parent . let { it is IrFunction && it . isInline } ) { declaration . defaultValue ? . let { originalDefault -> declaration . defaultValue = context . irFactory . createExpressionBody ( startOffset = originalDefault . startOffset , endOffset = originalDefault . endOffset , expression = originalDefault . expression . deepCopyWithSymbols ( declaration . parent ) , ) } } return null }","docstring":""} {"signature":"operator fun String ? . plus ( p : String ) : String","body":"{ return \"\" + this }","docstring":""} {"signature":"fun test ( a : String ? , b : String ) : String","body":"{ return a + b }","docstring":""} {"signature":"fun box ( )","body":"= test ( \"\" , \"\" )","docstring":""} {"signature":"inline suspend fun suspendThere ( v : String ) : String","body":"= suspendCoroutineUninterceptedOrReturn { x -> TailCallOptimizationChecker . saveStackTrace ( x ) x . resume ( v ) COROUTINE_SUSPENDED }","docstring":""} {"signature":"inline suspend fun suspendHere ( ) : String","body":"= suspendThere ( \"\" ) + suspendThere ( \"\" )","docstring":""} {"signature":"suspend fun mainSuspend ( )","body":"= suspendHere ( )","docstring":""} {"signature":"fun builder ( c : suspend ( ) -> Unit )","body":"{ c . startCoroutine ( EmptyContinuation ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ var result = \"\" builder { result = mainSuspend ( ) } TailCallOptimizationChecker . checkStateMachineIn ( \"\" ) return result }","docstring":""} {"signature":"fun String . toCamelCaseByDelimiters ( delimiters : Regex ) : String","body":"{ return split ( delimiters ) . joinToCamelCaseString ( ) . replaceFirstChar { it . lowercase ( Locale . getDefault ( ) ) } }","docstring":""} {"signature":"fun List < String > . joinToCamelCaseString ( ) : String","body":"{ return joinToString ( separator = \"\" ) { s -> s . replaceFirstChar { if ( it . isLowerCase ( ) ) it . titlecase ( Locale . getDefault ( ) ) else it . toString ( ) } } }","docstring":""} {"signature":"fun box ( )","body":"= foo ( )","docstring":""} {"signature":"fun foo ( ) : String","body":"{ return \"\" }","docstring":""} {"signature":"private fun sendMessage ( type : MessageType , content : DisplayDataResponse , )","body":"{ val messageFactory = communicationFacility . messageFactory val message = messageFactory . makeReplyMessage ( type , content = content ) socket . sendMessage ( message ) }","docstring":""} {"signature":"override fun handleDisplay ( value : Any , host : ExecutionHost , id : String ? , )","body":"{ val display = renderValue ( notebook , host , value , id ) ? . let { if ( id != null ) it . withId ( id ) else it } ? : return val json = display . toJson ( Json . EMPTY , null ) notebook . currentCell ? . addDisplay ( display ) val response : DisplayDataResponse = createResponse ( json ) sendMessage ( MessageType . DISPLAY_DATA , response ) }","docstring":""} {"signature":"override fun handleUpdate ( value : Any , host : ExecutionHost , id : String ? , )","body":"{ val display = renderValue ( notebook , host , value , id ) ? : return val json = display . toJson ( Json . EMPTY , id ) if ( id == null || ! json . containsDisplayId ( id ) ) { throw RuntimeException ( \"\" ) } val container = notebook . displays container . update ( id , display ) container . getById ( id ) . distinctBy { it . cell . id } . forEach { it . cell . displays . update ( id , display ) } val response = createResponse ( json ) sendMessage ( MessageType . UPDATE_DISPLAY_DATA , response ) }","docstring":""} {"signature":"private fun createResponse ( json : JsonObject ) : DisplayDataResponse","body":"{ val content = DisplayDataResponse ( json [ \"\" ] , json [ \"\" ] , json [ \"\" ] , ) return content }","docstring":""} {"signature":"override fun bar ( )","body":"{ println ( foo ) }","docstring":""} {"signature":"override fun bar ( )","body":"{ println ( \"\" ) }","docstring":""} {"signature":"abstract fun bar ( )","body":"abstract fun bar ( )","docstring":""} {"signature":"fun fail ( message : String ? = null ) : Nothing","body":"{ throw Throwable ( message ) }","docstring":""} {"signature":"fun main ( )","body":"{ val jobs = List ( ) { GlobalScope . launch { Thread . sleep ( ) print ( \"\" ) } } }","docstring":""} {"signature":"fun check ( expected : String , obj : Any ? )","body":"{ val actual = obj . toString ( ) if ( actual != expected ) throw AssertionError ( \"\" ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ check ( \"\" , { -> } ) check ( \"\" , { -> } ) check ( \"\" , fun ( s : String ) = . toLong ( ) ) check ( \"\" , { x : Int , y : Int -> } ) check ( \"\" , fun Int . ( ) { } ) check ( \"\" , fun Unit . ( ) : Int ? = ) check ( \"\" , fun String . ( s : String ? ) : Long = . toLong ( ) ) check ( \"\" , fun List < String > . ( x : MutableSet < * > , y : Nothing ) { } ) check ( \"\" , fun ( ia : IntArray , ba : ByteArray , sa : ShortArray , ca : CharArray , la : LongArray , za : BooleanArray , fa : FloatArray , da : DoubleArray ) : Array < Int > = null ! ! ) check ( \"\" , fun ( a : Array < Array < Array < List < String > > > > ) : Comparable < String > = null ! ! ) return \"\" }","docstring":""} {"signature":"inline fun root ( operation : OperationIdentifier , actions : ( ) -> Unit )","body":"{ rootOperationId = operation val tsStart = System . currentTimeMillis ( ) val root = RootNode ( operation ) open ( tsStart , root ) actions ( ) ensureNodesClosed ( root ) }","docstring":""} {"signature":"override fun parseException ( e : ParseException , text : String )","body":"{ log . error ( \"\" , e ) }","docstring":""} {"signature":"internal open fun testFailedMessage ( execHandle : ExecHandle , exitValue : Int ) : String","body":"= \"\"","docstring":""} {"signature":"override fun serviceMessage ( message : ServiceMessage )","body":"{ log . kotlinDebug { val messageString = message . toString ( ) . replaceFirst ( \"\" . toRegex ( ) , \"\" ) \"\" } when ( message ) { is TestSuiteStarted -> open ( message . ts , SuiteNode ( requireLeafGroup ( ) , getSuiteName ( message ) ) ) is TestStarted -> beginTest ( message . ts , message . testName ) is TestStdOut -> requireLeafTest ( ) . output ( StdOut , message . stdOut ) is TestStdErr -> requireLeafTest ( ) . output ( StdErr , message . stdErr ) is TestFailed -> requireLeafTest ( ) . failure ( message ) is TestFinished -> endTest ( message . ts , message . testName ) is TestIgnored -> { if ( message . attributes [ \"\" ] == \"\" ) { SuiteNode ( requireLeafGroup ( ) , message . testName ) . open ( message . ts ) { message . ts } } else { beginTest ( message . ts , message . testName , isIgnored = true ) endTest ( message . ts , message . testName ) } } is TestSuiteFinished -> close ( message . ts , getSuiteName ( message ) ) is Message -> printNonTestOutput ( message . text , LogType . byValueOrNull ( message . attributes [ \"\" ] ) ) else -> Unit } afterMessage = true }","docstring":""} {"signature":"protected open fun getSuiteName ( message : BaseTestSuiteMessage )","body":"= message . suiteName","docstring":""} {"signature":"override fun regularText ( text : String )","body":"{ val actualText = if ( afterMessage && settings . ignoreLineEndingAfterMessage ) when { text . startsWith ( \"\" ) -> text . removePrefix ( \"\" ) else -> text . removePrefix ( \"\" ) } else text if ( actualText . isNotEmpty ( ) ) { log . kotlinDebug { \"\" } val test = leaf as? TestNode if ( test != null ) { test . output ( StdOut , actualText ) } else { printNonTestOutput ( actualText ) } } afterMessage = false }","docstring":""} {"signature":"protected open fun printNonTestOutput ( text : String , type : LogType ? = null )","body":"{ print ( text ) }","docstring":""} {"signature":"protected open fun processStackTrace ( stackTrace : String ) : String","body":"= stackTrace","docstring":""} {"signature":"private fun beginTest ( ts : Long , testName : String , isIgnored : Boolean = false )","body":"{ val parent = requireLeafGroup ( ) parent . requireReportingNode ( ) val finalTestName = testName . let { if ( settings . prependSuiteName ) \"\" else it } val parsedName = ParsedTestName ( finalTestName , parent . localId ) val fullTestName = if ( testNameSuffix == null ) parsedName . methodName else \"\" open ( ts , TestNode ( parent , parsedName . className , parsedName . classDisplayName , parsedName . methodName , displayName = fullTestName , localId = testName , ignored = isIgnored ) ) }","docstring":""} {"signature":"private fun endTest ( ts : Long , testName : String )","body":"{ close ( ts , testName ) }","docstring":""} {"signature":"private fun TestNode . failure ( message : TestFailed , isAssertionFailure : Boolean = true , )","body":"{ hasFailures = true val stacktrace = buildString { if ( message . stacktrace != null ) { append ( message . stacktrace ) } if ( settings . treatFailedTestOutputAsStacktrace ) { append ( stackTraceOutput ) stackTraceOutput . setLength ( ) } } . let { processStackTrace ( it ) } val parsedStackTrace = settings . stackTraceParser ( stacktrace ) val failMessage = parsedStackTrace ? . message ? : message . failureMessage val exceptionClassName = failMessage ? . let { extractExceptionClassName ( it ) } ? : \"\" val rawFailure = KotlinTestFailure ( exceptionClassName , failMessage , stacktrace , patchStackTrace ( this , parsedStackTrace ? . stackTrace ) , message . expected , message . actual , ) testReporter . reportFailure ( results , descriptor . id , rawFailure , isAssertionFailure ) }","docstring":""} {"signature":"private fun extractExceptionClassName ( message : String ) : String","body":"= message . substringBefore ( '' ) . trim ( )","docstring":""} {"signature":"private fun patchStackTrace ( node : TestNode , stackTrace : List < StackTraceElement > ? ) : List < StackTraceElement > ?","body":"= stackTrace ? . map { if ( it . className == node . classDisplayName ) StackTraceElement ( node . className , it . methodName , it . fileName , it . lineNumber ) else it }","docstring":"/**\n * Required for org.gradle.api.internal.tasks.testing.logging.ShortExceptionFormatter.printException\n * In JS Stacktraces we have short class name, while filter using FQN\n * So, let replace short class name with FQN for current test\n */"} {"signature":"private fun TestNode . output ( destination : TestOutputEvent . Destination , text : String )","body":"{ allOutput . append ( text ) if ( settings . treatFailedTestOutputAsStacktrace ) { stackTraceOutput . append ( text ) } else { results . output ( descriptor . id , DefaultTestOutputEvent ( destination , text ) ) } }","docstring":""} {"signature":"private inline fun < NodeType : Node > NodeType . open ( contents : ( NodeType ) -> Unit )","body":"= open ( System . currentTimeMillis ( ) ) { contents ( it ) System . currentTimeMillis ( ) }","docstring":""} {"signature":"private inline fun < NodeType : Node > NodeType . open ( tsStart : Long , contents : ( NodeType ) -> Long )","body":"{ val child = open ( tsStart , this @ open ) val tsEnd = contents ( child ) assert ( close ( tsEnd , child . localId ) === child ) }","docstring":""} {"signature":"private fun < NodeType : Node > open ( ts : Long , new : NodeType ) : NodeType","body":"= new . also { log . kotlinDebug { \"\" } it . markStarted ( ts ) push ( it ) }","docstring":""} {"signature":"private fun close ( ts : Long , assertLocalId : String ? )","body":"= pop ( ) . also { if ( assertLocalId != null ) { if ( it . localId != assertLocalId && settings . ignoreOutOfRootNodes && it . parent == null ) { push ( it ) return it } check ( it . localId == assertLocalId ) { \"\" } } log . kotlinDebug { \"\" } it . markCompleted ( ts ) }","docstring":""} {"signature":"private fun Node ? . collectParents ( ) : MutableList < Node >","body":"{ var i = this val items = mutableListOf < Node > ( ) while ( i != null ) { items . add ( i ) i = i . parent } return items }","docstring":""} {"signature":"private fun checkReportingNodeCreated ( )","body":"{ check ( descriptor != null ) }","docstring":""} {"signature":"override fun toString ( ) : String","body":"= id","docstring":""} {"signature":"abstract fun markStarted ( ts : Long )","body":"abstract fun markStarted ( ts : Long )","docstring":""} {"signature":"abstract fun markCompleted ( ts : Long )","body":"abstract fun markCompleted ( ts : Long )","docstring":""} {"signature":"fun checkState ( state : NodeState )","body":"{ check ( this . state == state ) { \"\" } }","docstring":""} {"signature":"protected fun reportStarted ( ts : Long )","body":"{ checkState ( NodeState . created ) reportingParent ? . checkState ( NodeState . started ) results . started ( descriptor ! ! , TestStartEvent ( ts , descriptor ! ! . parent ? . id ) ) state = NodeState . started }","docstring":""} {"signature":"protected fun reportCompleted ( ts : Long )","body":"{ checkState ( NodeState . started ) reportingParent ? . checkState ( NodeState . started ) results . completed ( descriptor ! ! . id , TestCompleteEvent ( ts , resultType ) ) state = NodeState . completed }","docstring":""} {"signature":"abstract fun requireReportingNode ( ) : TestDescriptorInternal","body":"abstract fun requireReportingNode ( ) : TestDescriptorInternal","docstring":""} {"signature":"override fun getOwnerBuildOperationId ( ) : Any ?","body":"= this@RootNode . ownerBuildOperationId","docstring":""} {"signature":"override fun getParent ( ) : TestDescriptorInternal ?","body":"= null","docstring":""} {"signature":"override fun toString ( ) : String","body":"= name","docstring":""} {"signature":"override fun requireReportingNode ( ) : TestDescriptorInternal","body":"= descriptor","docstring":""} {"signature":"override fun markStarted ( ts : Long )","body":"{ reportStarted ( ts ) }","docstring":""} {"signature":"override fun markCompleted ( ts : Long )","body":"{ reportCompleted ( ts ) }","docstring":""} {"signature":"fun cleanName ( parent : GroupNode , name : String ) : String","body":"{ val parentName = parent . fullNameWithoutRoot return name . removePrefix ( \"\" ) }","docstring":""} {"signature":"override fun requireReportingNode ( ) : TestDescriptorInternal","body":"= descriptor ? : createReportingNode ( )","docstring":""} {"signature":"private fun createReportingNode ( ) : TestDescriptorInternal","body":"{ val parents = collectParents ( ) val fullName = parents . reversed ( ) . map { it . cleanName } . filter { it . isNotBlank ( ) } . joinToString ( \"\" ) val reportingParent = parents . last ( ) as RootNode this . reportingParent = reportingParent descriptor = object : DefaultTestSuiteDescriptor ( id , fullName ) , LegacyTestDescriptorInternal { override fun getDisplayName ( ) : String = fullNameWithoutRoot override fun getClassName ( ) : String ? = fullNameWithoutRoot override fun getOwnerBuildOperationId ( ) : Any ? = rootOperationId override fun getParent ( ) : TestDescriptorInternal = reportingParent . descriptor override fun toString ( ) : String = displayName } shouldReportComplete = true check ( startedTs != ) reportStarted ( startedTs ) return descriptor ! ! }","docstring":"/**\n * Called when first test in suite started\n */"} {"signature":"override fun markStarted ( ts : Long )","body":"{ check ( descriptor == null ) startedTs = ts }","docstring":""} {"signature":"override fun markCompleted ( ts : Long )","body":"{ if ( shouldReportComplete ) { check ( descriptor != null ) reportCompleted ( ts ) } }","docstring":""} {"signature":"override fun getOwnerBuildOperationId ( ) : Any ?","body":"= rootOperationId","docstring":""} {"signature":"override fun getParent ( ) : TestDescriptorInternal","body":"= parentDescriptor","docstring":""} {"signature":"override fun markStarted ( ts : Long )","body":"{ reportStarted ( ts ) }","docstring":""} {"signature":"override fun markCompleted ( ts : Long )","body":"{ stackTraceOutput . setLength ( ) allOutput . setLength ( ) reportCompleted ( ts ) }","docstring":""} {"signature":"private fun push ( node : Node )","body":"= node . also { leaf = node }","docstring":""} {"signature":"private fun pop ( )","body":"= leaf ! ! . also { leaf = it . parent }","docstring":""} {"signature":"fun ensureNodesClosed ( root : RootNode ? = null , cause : Throwable ? = null , throwError : Boolean = true ) : Error ?","body":"{ val ts = System . currentTimeMillis ( ) when ( leaf ) { null -> return null root -> close ( ts , leaf ! ! . localId ) else -> { val output = StringBuilder ( ) var currentTest : TestNode ? = null while ( leaf != null ) { val currentLeaf = leaf ! ! if ( currentLeaf is TestNode ) { currentTest = currentLeaf output . append ( currentLeaf . allOutput ) currentLeaf . failure ( TestFailed ( currentLeaf . cleanName , null as Throwable ? ) , false ) } close ( ts , currentLeaf . localId ) } @ Suppress ( \"\" ) val error = Error ( buildString { append ( \"\" ) if ( currentTest != null ) { append ( \"\" ) } if ( output . toString ( ) . isNotBlank ( ) ) { append ( \"\" ) } } , cause ) if ( throwError ) { throw error } else { return error } } } return null }","docstring":""} {"signature":"private fun requireLeaf ( )","body":"= leaf ? : error ( \"\" )","docstring":""} {"signature":"private fun requireLeafGroup ( ) : GroupNode","body":"= requireLeaf ( ) . let { it as? GroupNode ? : error ( \"\" ) }","docstring":""} {"signature":"private fun requireLeafTest ( )","body":"= leaf as? TestNode ? : error ( \"\" )","docstring":""} {"signature":"fun alphabet ( ) : String","body":"{ val result = StringBuilder ( ) for ( letter in '' .. '' ) { result . append ( letter ) } result . append ( \"\" ) return result . toString ( ) }","docstring":""} {"signature":"fun main ( )","body":"{ println ( alphabet ( ) ) }","docstring":""} {"signature":"@ Test fun testUnconfined ( )","body":"= runTest { testResumeModeFastPath ( Dispatchers . Unconfined ) }","docstring":""} {"signature":"@ Test fun testNestedUnconfined ( )","body":"= runTest { withContext ( Dispatchers . Unconfined ) { testResumeModeFastPath ( Dispatchers . Unconfined ) } }","docstring":""} {"signature":"@ Test fun testNestedUnconfinedChangedContext ( )","body":"= runTest { withContext ( Dispatchers . Unconfined ) { testResumeModeFastPath ( CoroutineName ( \"\" ) ) } }","docstring":""} {"signature":"@ Test fun testEventLoopDispatcher ( )","body":"= runTest { testResumeModeFastPath ( wrapperDispatcher ( ) ) }","docstring":""} {"signature":"@ Test fun testNestedEventLoopDispatcher ( )","body":"= runTest { val dispatcher = wrapperDispatcher ( ) withContext ( dispatcher ) { testResumeModeFastPath ( dispatcher ) } }","docstring":""} {"signature":"@ Test fun testNestedEventLoopChangedContext ( )","body":"= runTest { withContext ( wrapperDispatcher ( ) ) { testResumeModeFastPath ( CoroutineName ( \"\" ) ) } }","docstring":""} {"signature":"private suspend fun testResumeModeFastPath ( context : CoroutineContext )","body":"{ try { val channel = Channel < Int > ( ) channel . close ( RecoverableTestException ( ) ) doFastPath ( context , channel ) } catch ( e : Throwable ) { verifyStackTrace ( \"\" , e ) } }","docstring":""} {"signature":"private suspend fun doFastPath ( context : CoroutineContext , channel : Channel < Int > )","body":"{ yield ( ) withContext ( context , channel ) }","docstring":""} {"signature":"private suspend fun withContext ( context : CoroutineContext , channel : Channel < Int > )","body":"{ withContext ( context ) { channel . receive ( ) yield ( ) } }","docstring":""} {"signature":"@ Test fun testUnconfinedSuspending ( )","body":"= runTest { testResumeModeSuspending ( Dispatchers . Unconfined ) }","docstring":""} {"signature":"@ Test fun testNestedUnconfinedSuspending ( )","body":"= runTest { withContext ( Dispatchers . Unconfined ) { testResumeModeSuspending ( Dispatchers . Unconfined ) } }","docstring":""} {"signature":"@ Test fun testNestedUnconfinedChangedContextSuspending ( )","body":"= runTest { withContext ( Dispatchers . Unconfined ) { testResumeModeSuspending ( CoroutineName ( \"\" ) ) } }","docstring":""} {"signature":"@ Test fun testEventLoopDispatcherSuspending ( )","body":"= runTest { testResumeModeSuspending ( wrapperDispatcher ( ) ) }","docstring":""} {"signature":"@ Test fun testNestedEventLoopDispatcherSuspending ( )","body":"= runTest { val dispatcher = wrapperDispatcher ( ) withContext ( dispatcher ) { testResumeModeSuspending ( dispatcher ) } }","docstring":""} {"signature":"@ Test fun testNestedEventLoopChangedContextSuspending ( )","body":"= runTest { withContext ( wrapperDispatcher ( ) ) { testResumeModeSuspending ( CoroutineName ( \"\" ) ) } }","docstring":""} {"signature":"private suspend fun testResumeModeSuspending ( context : CoroutineContext )","body":"{ try { val channel = Channel < Int > ( ) val latch = Channel < Int > ( ) GlobalScope . launch ( coroutineContext ) { latch . receive ( ) expect ( ) channel . close ( RecoverableTestException ( ) ) } doSuspendingPath ( context , channel , latch ) } catch ( e : Throwable ) { finish ( ) verifyStackTrace ( \"\" , e ) } }","docstring":""} {"signature":"private suspend fun doSuspendingPath ( context : CoroutineContext , channel : Channel < Int > , latch : Channel < Int > )","body":"{ yield ( ) withContext ( context , channel , latch ) }","docstring":""} {"signature":"private suspend fun withContext ( context : CoroutineContext , channel : Channel < Int > , latch : Channel < Int > )","body":"{ withContext ( context ) { expect ( ) latch . send ( ) expect ( ) channel . receive ( ) yield ( ) } }","docstring":""} {"signature":"private fun hook ( message : String )","body":"{ print ( \"\" ) println ( message ) }","docstring":""} {"signature":"@ Test fun foo ( )","body":"{ }","docstring":""} {"signature":"@ Test fun common ( )","body":"{ }","docstring":""} {"signature":"@ Ignore @ Test fun ignored ( )","body":"{ }","docstring":""} {"signature":"@ BeforeClass fun before ( )","body":"= hook ( \"\" )","docstring":""} {"signature":"@ AfterClass fun after ( )","body":"= hook ( \"\" )","docstring":""} {"signature":"@ Test fun bar ( )","body":"{ }","docstring":""} {"signature":"@ Test fun common ( )","body":"{ }","docstring":""} {"signature":"@ BeforeClass fun before ( )","body":"= hook ( \"\" )","docstring":""} {"signature":"@ AfterClass fun after ( )","body":"= hook ( \"\" )","docstring":""} {"signature":"@ BeforeClass fun before ( )","body":"= hook ( \"\" )","docstring":""} {"signature":"@ AfterClass fun after ( )","body":"= hook ( \"\" )","docstring":""} {"signature":"@ Test fun baz ( )","body":"{ }","docstring":""} {"signature":"@ Test fun common ( )","body":"{ }","docstring":""} {"signature":"override fun asString ( ) : String","body":"= renderConfiguration . asString ( this )","docstring":""} {"signature":"fun replaceRenderConfiguration ( renderConfiguration : FirDiagnosticCodeMetaRenderConfiguration )","body":"{ this . renderConfiguration = renderConfiguration }","docstring":""} {"signature":"override fun asString ( codeMetaInfo : CodeMetaInfo ) : String","body":"{ if ( codeMetaInfo !is FirDiagnosticCodeMetaInfo ) return \"\" return ( getTag ( codeMetaInfo ) + getAttributesString ( codeMetaInfo ) + getParamsString ( codeMetaInfo ) ) . replace ( crossPlatformLineBreak , \"\" ) }","docstring":""} {"signature":"private fun getParamsString ( codeMetaInfo : FirDiagnosticCodeMetaInfo ) : String","body":"{ if ( ! renderParams ) return \"\" val params = mutableListOf < String > ( ) val diagnostic = codeMetaInfo . diagnostic val renderer = RootDiagnosticRendererFactory ( diagnostic ) if ( renderer is AbstractKtDiagnosticWithParametersRenderer ) { renderer . renderParameters ( diagnostic ) . mapTo ( params ) { it . toString ( ) . replace ( \"\" , \"\" ) } } if ( renderSeverity ) params . add ( \"\" ) params . add ( getAdditionalParams ( codeMetaInfo ) ) val nonEmptyParams = params . filter { it . isNotEmpty ( ) } return if ( nonEmptyParams . isNotEmpty ( ) ) { \"\" } else { \"\" } }","docstring":""} {"signature":"fun getTag ( codeMetaInfo : FirDiagnosticCodeMetaInfo ) : String","body":"{ return codeMetaInfo . diagnostic . factory . name }","docstring":""} {"signature":"private fun < T > MutableMap < T , MutableList < JsKlibExport > > . addExport ( key : T , export : JsKlibExport )","body":"{ getOrPut ( key ) { mutableListOf ( ) } . add ( export ) }","docstring":""} {"signature":"private fun collectClashesByFqNames ( declarations : List < JsKlibExportingDeclaration > ) : Map < String , List < JsKlibExport > >","body":"{ return buildMap < String , MutableList < JsKlibExport > > { for ( declaration in declarations ) { addExport ( declaration . fqName , declaration ) var packageFqName = declaration . containingPackageFqName while ( packageFqName . isNotEmpty ( ) ) { addExport ( packageFqName , JsKlibExportingPackage ( declaration . containingFile , packageFqName ) ) packageFqName = packageFqName . substringBeforeLast ( \"\" , \"\" ) } } } }","docstring":""} {"signature":"private fun collectClashes ( declarations : List < JsKlibExportingDeclaration > ) : Map < JsKlibExportingDeclaration , List < JsKlibExport > >","body":"{ val clashesByFqNames = collectClashesByFqNames ( declarations ) return buildMap { for ( clashingExports in clashesByFqNames . values ) { for ( ( index , export ) in clashingExports . withIndex ( ) ) { if ( export is JsKlibExportingDeclaration ) { val clashedWith = clashingExports . filterIndexed { i , _ -> i != index } if ( clashedWith . isNotEmpty ( ) ) { put ( export , clashedWith ) } } } } } }","docstring":""} {"signature":"override fun check ( declarations : List < JsKlibExportingDeclaration > , context : JsKlibDiagnosticContext , reporter : IrDiagnosticReporter , )","body":"{ val clashes = collectClashes ( declarations ) for ( ( declaration , clashedWith ) in clashes ) { if ( declaration . declaration != null ) { reporter . at ( declaration . declaration , context ) . report ( JsKlibErrors . EXPORTING_JS_NAME_CLASH , declaration . exportingName , clashedWith ) } } }","docstring":""} {"signature":"fun foo ( ) : T","body":"fun foo ( ) : T","docstring":""} {"signature":"override fun foo ( )","body":"= this","docstring":""} {"signature":"fun testArrayAllocation ( size : Int )","body":"{ val arr = IntArray ( size ) arr [ size - ] = assertEquals ( , arr [ size - ] ) }","docstring":""} {"signature":"@ Test fun sanity ( )","body":"{ testArrayAllocation ( shl ) }","docstring":""} {"signature":"@ Test fun test ( )","body":"{ testArrayAllocation ( shl ) }","docstring":""} {"signature":"fun foo ( @ ParameterAnnotation ( \"\" ) param1 : @ ParameterTypeAnnotation ( \"\" ) List < @ NestedParameterTypeAnnotation ( \"\" ) Collection < @ NestedNestedParameterTypeAnnotation ( \"\" ) String > > = @ DefaultValueAnnotation fun ( i : @ Anno ( \"\" ) Int ) : @ Anno ( \"\" ) Int )","body":"= param1","docstring":""} {"signature":"override fun equals ( other : Any ? )","body":"= other is ReflectJavaTypeParameter && typeVariable == other . typeVariable","docstring":""} {"signature":"override fun hashCode ( )","body":"= typeVariable . hashCode ( )","docstring":""} {"signature":"override fun toString ( )","body":"= this :: class . java . name + \"\" + typeVariable","docstring":""} {"signature":"public fun < DomainType : Comparable < DomainType > > PositionalMappingParametersContinuous < * > . continuous ( limits : ClosedRange < DomainType > , transform : PositionalTransform ? = null ) : PositionalContinuousScale < DomainType >","body":"= PositionalContinuousScale ( limits . start , limits . endInclusive , null , transform )","docstring":"/**\n * Creates a new continuous positional scale (with non-nullable domain).\n *\n * @param DomainType scale domain type.\n * @param limits [ClosedRange] defining the scale domain.\n * @param transform the transformation of scale.\n * @return new [PositionalContinuousScale] with given limits.\n */"} {"signature":"public fun < DomainType : Comparable < DomainType > > Scale . Companion . continuousPos ( limits : ClosedRange < DomainType > , transform : PositionalTransform ? = null ) : PositionalContinuousScale < DomainType >","body":"= PositionalContinuousScale ( limits . start , limits . endInclusive , null , transform )","docstring":"/**\n * Creates a new continuous positional scale (with non-nullable domain).\n *\n * @param DomainType scale domain type.\n * @param limits [ClosedRange] defining the scale domain.\n * @param transform the transformation of scale.\n * @return new [PositionalContinuousScale] with given limits.\n */"} {"signature":"public fun < DomainType : Comparable < DomainType > > PositionalMappingParametersContinuous < * > . continuous ( limits : ClosedRange < DomainType > , nullValue : DomainType ? = null , transform : PositionalTransform ? = null ) : PositionalContinuousScale < DomainType ? >","body":"= PositionalContinuousScale ( limits . start , limits . endInclusive , nullValue , transform )","docstring":"/**\n * Creates a new continuous positional scale (with nullable domain).\n *\n * @param DomainType scale domain type.\n * @param limits [ClosedRange] defining the scale domain.\n * @param nullValue value which null is mapped to.\n * @param transform the transformation of scale.\n * @return new [PositionalContinuousScale] with given limits.\n */"} {"signature":"public fun < DomainType : Comparable < DomainType > > Scale . Companion . continuousPos ( limits : ClosedRange < DomainType > , nullValue : DomainType ? = null , transform : PositionalTransform ? = null ) : PositionalContinuousScale < DomainType ? >","body":"= PositionalContinuousScale ( limits . start , limits . endInclusive , nullValue , transform )","docstring":"/**\n * Creates a new continuous positional scale (with nullable domain).\n *\n * @param DomainType scale domain type.\n * @param limits [ClosedRange] defining the scale domain.\n * @param nullValue value which null is mapped to.\n * @param transform the transformation of scale.\n * @return new [PositionalContinuousScale] with given limits.\n */"} {"signature":"public fun < DomainType > PositionalMappingParametersContinuous < * > . continuous ( min : DomainType ? = null , max : DomainType ? = null , transform : PositionalTransform ? = null ) : PositionalContinuousScale < DomainType >","body":"= PositionalContinuousScale ( min , max , null , transform )","docstring":"/**\n * Creates a new continuous positional scale (with non-nullable domain).\n *\n * @param DomainType scale domain type.\n * @param min scale domain minimum.\n * @param max scale domain maximum.\n * @param transform the transformation of scale.\n * @return new [PositionalContinuousScale] with given limits.\n */"} {"signature":"public fun < DomainType > Scale . Companion . continuousPos ( min : DomainType ? = null , max : DomainType ? = null , transform : PositionalTransform ? = null ) : PositionalContinuousScale < DomainType >","body":"= PositionalContinuousScale ( min , max , null , transform )","docstring":"/**\n * Creates a new continuous positional scale (with non-nullable domain).\n *\n * @param DomainType scale domain type.\n * @param min scale domain minimum.\n * @param max scale domain maximum.\n * @param transform the transformation of scale.\n * @return new [PositionalContinuousScale] with given limits.\n */"} {"signature":"public fun < DomainType > PositionalMappingParametersContinuous < * > . continuous ( min : DomainType ? = null , max : DomainType ? = null , nullValue : DomainType ? = null , transform : PositionalTransform ? = null ) : PositionalContinuousScale < DomainType ? >","body":"= PositionalContinuousScale ( min , max , nullValue , transform )","docstring":"/**\n * Creates a new continuous positional scale (with nullable domain).\n *\n * @param DomainType scale domain type.\n * @param min scale domain minimum.\n * @param max scale domain maximum.\n * @param nullValue value which null is mapped to.\n * @param transform the transformation of scale.\n * @return new [PositionalContinuousScale] with given limits.\n */"} {"signature":"public fun < DomainType > Scale . Companion . continuousPos ( min : DomainType ? = null , max : DomainType ? = null , nullValue : DomainType ? = null , transform : PositionalTransform ? = null ) : PositionalContinuousScale < DomainType ? >","body":"= PositionalContinuousScale ( min , max , nullValue , transform )","docstring":"/**\n * Creates a new continuous positional scale (with nullable domain).\n *\n * @param DomainType scale domain type.\n * @param min scale domain minimum.\n * @param max scale domain maximum.\n * @param nullValue value which null is mapped to.\n * @param transform the transformation of scale.\n * @return new [PositionalContinuousScale] with given limits.\n */"} {"signature":"public fun < DomainType > PositionalMappingParameters < * > . categorical ( categories : List < DomainType > ? = null , ) : PositionalCategoricalScale < DomainType >","body":"= PositionalCategoricalScale ( categories )","docstring":"/**\n * Creates a new categorical positional scale.\n *\n * @param DomainType scale domain type.\n * @param categories [List] defining the scale domain.\n * @return new [PositionalCategoricalScale] with given categories.\n */"} {"signature":"public fun < DomainType > Scale . Companion . categoricalPos ( categories : List < DomainType > ? = null , ) : PositionalCategoricalScale < DomainType >","body":"= PositionalCategoricalScale ( categories )","docstring":"/**\n * Creates a new categorical positional scale.\n *\n * @param DomainType scale domain type.\n * @param categories [List] defining the scale domain.\n * @return new [PositionalCategoricalScale] with given categories.\n */"} {"signature":"public fun < RangeType : Comparable < RangeType > , DomainType > NonPositionalMappingParametersContinuous < * , * > . continuous ( range : ClosedRange < RangeType > , nullValue : RangeType ? = null , transform : NonPositionalTransform ? = null ) : NonPositionalContinuousScale < DomainType , RangeType >","body":"= NonPositionalContinuousScale ( null , null , range . start , range . endInclusive , nullValue , transform )","docstring":"/**\n * Creates a new continuous non-positional scale.\n *\n * @param DomainType scale domain type.\n * @param RangeType type of the scale range.\n * @param range [ClosedRange] defining the scale range.\n * @param nullValue value which null is mapped to.\n * @param transform scale transformation.\n * @return new [NonPositionalContinuousScale] with the given range.\n */"} {"signature":"public fun < RangeType : Comparable < RangeType > , DomainType > Scale . Companion . continuous ( range : ClosedRange < RangeType > , nullValue : RangeType ? = null , transform : NonPositionalTransform ? = null ) : NonPositionalContinuousScale < DomainType , RangeType >","body":"= NonPositionalContinuousScale ( null , null , range . start , range . endInclusive , nullValue , transform )","docstring":"/**\n * Creates a new continuous non-positional scale.\n *\n * @param DomainType scale domain type.\n * @param RangeType type of the scale range.\n * @param range [ClosedRange] defining the scale range.\n * @param nullValue value which null is mapped to.\n * @param transform scale transformation.\n * @return new [NonPositionalContinuousScale] with the given range.\n */"} {"signature":"public fun < RangeType : Comparable < RangeType > , DomainType : Comparable < DomainType > > NonPositionalMappingParametersContinuous < * , * > . continuous ( range : ClosedRange < RangeType > ? = null , domain : ClosedRange < DomainType > , nullValue : RangeType ? = null , transform : NonPositionalTransform ? = null ) : NonPositionalContinuousScale < DomainType , RangeType >","body":"= NonPositionalContinuousScale ( domain . start , domain . endInclusive , range ? . start , range ? . endInclusive , nullValue , transform )","docstring":"/**\n * Creates a new continuous non-positional scale.\n *\n * @param DomainType scale domain type.\n * @param RangeType type of the scale range.\n * @param range [ClosedRange] defining the scale range.\n * @param domain [ClosedRange] defining the scale domain.\n * @param nullValue value which null is mapped to.\n * @param transform scale transformation.\n * @return new [NonPositionalContinuousScale] with the given domain and range.\n */"} {"signature":"public fun < RangeType : Comparable < RangeType > , DomainType : Comparable < DomainType > > Scale . Companion . continuous ( range : ClosedRange < RangeType > ? = null , domain : ClosedRange < DomainType > , nullValue : RangeType ? = null , transform : NonPositionalTransform ? = null ) : NonPositionalContinuousScale < DomainType , RangeType >","body":"= NonPositionalContinuousScale ( domain . start , domain . endInclusive , range ? . start , range ? . endInclusive , nullValue , transform )","docstring":"/**\n * Creates a new continuous non-positional scale.\n *\n * @param DomainType scale domain type.\n * @param RangeType type of the scale range.\n * @param range [ClosedRange] defining the scale range.\n * @param domain [ClosedRange] defining the scale domain.\n * @param nullValue value which null is mapped to.\n * @param transform scale transformation.\n * @return new [NonPositionalContinuousScale] with the given domain and range.\n */"} {"signature":"public fun < RangeType , DomainType > NonPositionalMappingParametersContinuous < * , * > . continuous ( rangeMin : RangeType ? = null , rangeMax : RangeType ? = null , domainMin : DomainType ? = null , domainMax : DomainType ? = null , nullValue : RangeType ? = null , transform : NonPositionalTransform ? = null ) : NonPositionalContinuousScale < DomainType , RangeType >","body":"= NonPositionalContinuousScale ( domainMin , domainMax , rangeMin , rangeMax , nullValue , transform )","docstring":"/**\n * Creates a new continuous non-positional scale.\n *\n * @param DomainType scale domain type.\n * @param RangeType type of the scale range.\n * @param rangeMin scale range minimum.\n * @param rangeMax scale range maximum.\n * @param domainMin scale domain minimum.\n * @param domainMax scale domain maximum.\n * @param nullValue value which null is mapped to.\n * @param transform scale transformation.\n * @return new [NonPositionalContinuousScale] with the given domain and range.\n */"} {"signature":"public fun < RangeType , DomainType > Scale . Companion . continuous ( rangeMin : RangeType ? = null , rangeMax : RangeType ? = null , domainMin : DomainType ? = null , domainMax : DomainType ? = null , nullValue : RangeType ? = null , transform : NonPositionalTransform ? = null ) : NonPositionalContinuousScale < DomainType , RangeType >","body":"= NonPositionalContinuousScale ( domainMin , domainMax , rangeMin , rangeMax , nullValue , transform )","docstring":"/**\n * Creates a new continuous non-positional scale.\n *\n * @param DomainType scale domain type.\n * @param RangeType type of the scale range.\n * @param rangeMin scale range minimum.\n * @param rangeMax scale range maximum.\n * @param domainMin scale domain minimum.\n * @param domainMax scale domain maximum.\n * @param nullValue value which null is mapped to.\n * @param transform scale transformation.\n * @return new [NonPositionalContinuousScale] with the given domain and range.\n */"} {"signature":"public inline fun < reified RangeType , reified DomainType > NonPositionalMappingParameters < * , * > . categorical ( range : List < RangeType > ? = null , domain : List < DomainType > ? = null , ) : NonPositionalCategoricalScale < DomainType , RangeType >","body":"= NonPositionalCategoricalScale ( domain , range )","docstring":"/**\n * Creates a new categorical non-positional scale.\n *\n * @param DomainType scale domain type.\n * @param RangeType type of the scale range.\n * @param range [List] defining the scale range.\n * @param domain [List] defining the scale domain.\n * @return new [NonPositionalCategoricalScale] with given domain and range.\n */"} {"signature":"public inline fun < reified RangeType , reified DomainType > Scale . Companion . categorical ( range : List < RangeType > ? = null , domain : List < DomainType > ? = null , ) : NonPositionalCategoricalScale < DomainType , RangeType >","body":"= NonPositionalCategoricalScale ( domain , range )","docstring":"/**\n * Creates a new categorical non-positional scale.\n *\n * @param DomainType scale domain type.\n * @param RangeType type of the scale range.\n * @param range [List] defining the scale range.\n * @param domain [List] defining the scale domain.\n * @return new [NonPositionalCategoricalScale] with given domain and range.\n */"} {"signature":"public fun < DomainType , RangeType > NonPositionalMappingParameters < * , * > . categorical ( vararg categoriesToValues : Pair < DomainType , RangeType > , ) : NonPositionalCategoricalScale < DomainType , RangeType >","body":"= NonPositionalCategoricalScale ( categoriesToValues . map { it . first } , categoriesToValues . map { it . second } , )","docstring":"/**\n * Creates a new categorical non-positional scale.\n *\n * @param DomainType scale domain type.\n * @param RangeType type of the scale range.\n * @param categoriesToValues [List] of pairs of category to corresponding value.\n * @return new [NonPositionalCategoricalScale] by domain-to-range correspondence.\n */"} {"signature":"public fun < DomainType , RangeType > Scale . Companion . categorical ( vararg categoriesToValues : Pair < DomainType , RangeType > , ) : NonPositionalCategoricalScale < DomainType , RangeType >","body":"= NonPositionalCategoricalScale ( categoriesToValues . map { it . first } , categoriesToValues . map { it . second } , )","docstring":"/**\n * Creates a new categorical non-positional scale.\n *\n * @param DomainType scale domain type\n * @param RangeType type of the scale range\n * @param categoriesToValues [List] of pairs of category to corresponding value.\n * @return new [NonPositionalCategoricalScale] by domain-to-range correspondence.\n */"} {"signature":"fun Receiver . method ( param : Parameter ) : LambdaWithReceiver","body":"= TODO ( )","docstring":""} {"signature":"fun < K > id ( x : K ) : K","body":"= x","docstring":""} {"signature":"fun assertEqualDirectoriesIgnoringDotFiles ( expected : File , actual : File , forgiveOtherExtraFiles : Boolean , )","body":"= assertEqualDirectories ( expected , actual , forgiveExtraFiles = forgiveOtherExtraFiles , filter = { ! it . name . startsWith ( \"\" ) } , )","docstring":""} {"signature":"fun assertEqualDirectories ( expected : File , actual : File , forgiveExtraFiles : Boolean , filter : ( File ) -> ( Boolean ) = { true } , )","body":"{ val pathsInExpected = getAllRelativePaths ( expected ) val pathsInActual = getAllRelativePaths ( actual ) val commonPaths = pathsInExpected . intersect ( pathsInActual ) val changedPaths = commonPaths . filter { DUMP_ALL || ! Arrays . equals ( File ( expected , it ) . readBytes ( ) , File ( actual , it ) . readBytes ( ) ) } . sorted ( ) val expectedString = getDirectoryString ( expected , changedPaths , filter ) val actualString = getDirectoryString ( actual , changedPaths , filter ) if ( DUMP_ALL ) { Assert . assertEquals ( expectedString , actualString + \"\" ) } if ( forgiveExtraFiles ) { if ( changedPaths . isEmpty ( ) ) { val expectedListingLines = expectedString . split ( '' ) . toList ( ) val actualListingLines = actualString . split ( '' ) . toList ( ) if ( actualListingLines . containsAll ( expectedListingLines ) ) { return } } } if ( expectedString != actualString ) { val message : String ? = null throw ComparisonFailure ( message , expectedString . replaceFirst ( DIR_ROOT_PLACEHOLDER , expected . canonicalPath ) , actualString . replaceFirst ( DIR_ROOT_PLACEHOLDER , actual . canonicalPath ) ) } }","docstring":""} {"signature":"private fun File . checksumString ( ) : String","body":"{ val crc32 = CRC32 ( ) crc32 . update ( this . readBytes ( ) ) return java . lang . Long . toHexString ( crc32 . value ) }","docstring":""} {"signature":"private fun getDirectoryString ( dir : File , interestingPaths : List < String > , predicate : ( File ) -> ( Boolean ) , ) : String","body":"{ val buf = StringBuilder ( ) val p = Printer ( buf ) fun addDirContent ( dir : File ) { p . pushIndent ( ) val listFiles = dir . listFiles ( ) ? . filter ( predicate ) assertNotNull ( \"\" , listFiles ) val children = listFiles ! ! . sortedWith ( compareBy ( { it . isDirectory } , { it . name } ) ) for ( child in children ) { if ( child . isDirectory ) { if ( ( child . list ( ) ? . isNotEmpty ( ) ? : false ) ) { p . println ( child . name ) addDirContent ( child ) } } else { p . println ( child . name , \"\" , child . checksumString ( ) ) } } p . popIndent ( ) } p . println ( DIR_ROOT_PLACEHOLDER ) addDirContent ( dir ) for ( path in interestingPaths ) { p . println ( \"\" , path , \"\" ) p . println ( fileToStringRepresentation ( File ( dir , path ) ) ) p . println ( ) p . println ( ) } return buf . toString ( ) }","docstring":""} {"signature":"private fun getAllRelativePaths ( dir : File ) : Set < String >","body":"{ val result = HashSet < String > ( ) FileUtil . processFilesRecursively ( dir ) { if ( it ! ! . isFile ) { result . add ( FileUtil . getRelativePath ( dir , it ) ! ! ) } true } return result }","docstring":""} {"signature":"private fun classFileToString ( classFile : File ) : String","body":"{ val out = StringWriter ( ) val traceVisitor = TraceClassVisitor ( PrintWriter ( out ) ) ClassReader ( classFile . readBytes ( ) ) . accept ( traceVisitor , ) val classHeader = LocalFileKotlinClass . create ( classFile , JvmMetadataVersion . INSTANCE ) ? . classHeader ? : return \"\" if ( ! classHeader . metadataVersion . isCompatibleWithCurrentCompilerVersion ( ) ) { error ( \"\" ) } when ( classHeader . kind ) { KotlinClassHeader . Kind . FILE_FACADE , KotlinClassHeader . Kind . CLASS , KotlinClassHeader . Kind . MULTIFILE_CLASS_PART -> { ByteArrayInputStream ( BitEncoding . decodeBytes ( classHeader . data ! ! ) ) . use { input -> out . write ( \"\" ) when ( classHeader . kind ) { KotlinClassHeader . Kind . FILE_FACADE -> out . write ( \"\" ) KotlinClassHeader . Kind . CLASS -> out . write ( \"\" ) KotlinClassHeader . Kind . MULTIFILE_CLASS_PART -> out . write ( \"\" ) else -> error ( classHeader . kind ) } } } KotlinClassHeader . Kind . MULTIFILE_CLASS -> { out . write ( \"\" ) out . write ( classHeader . data ! ! . joinToString ( \"\" ) ) } KotlinClassHeader . Kind . SYNTHETIC_CLASS -> { } KotlinClassHeader . Kind . UNKNOWN -> error ( \"\" ) } return out . toString ( ) }","docstring":""} {"signature":"private fun metaJsToString ( metaJsFile : File ) : String","body":"{ val out = StringWriter ( ) val metadataList = arrayListOf < KotlinJavascriptMetadata > ( ) KotlinJavascriptMetadataUtils . parseMetadata ( metaJsFile . readText ( ) , metadataList ) for ( metadata in metadataList ) { val ( header , content ) = GZIPInputStream ( ByteArrayInputStream ( metadata . body ) ) . use { stream -> DebugJsProtoBuf . Header . parseDelimitedFrom ( stream , JsSerializerProtocol . extensionRegistry ) to DebugJsProtoBuf . Library . parseFrom ( stream , JsSerializerProtocol . extensionRegistry ) } out . write ( \"\" ) out . write ( \"\" ) } return out . toString ( ) }","docstring":""} {"signature":"private fun kjsmToString ( kjsmFile : File ) : String","body":"{ val out = StringWriter ( ) val stream = DataInputStream ( kjsmFile . inputStream ( ) ) repeat ( stream . readInt ( ) ) { stream . readInt ( ) } val ( header , content ) = DebugJsProtoBuf . Header . parseDelimitedFrom ( stream , JsSerializerProtocol . extensionRegistry ) to DebugJsProtoBuf . Library . parseFrom ( stream , JsSerializerProtocol . extensionRegistry ) out . write ( \"\" ) out . write ( \"\" ) return out . toString ( ) }","docstring":""} {"signature":"private fun sourceMapFileToString ( sourceMapFile : File , generatedJsFile : File ) : String","body":"{ val sourceMapParseResult = SourceMapParser . parse ( sourceMapFile . readText ( ) ) return when ( sourceMapParseResult ) { is SourceMapSuccess -> { val bytesOut = ByteArrayOutputStream ( ) PrintStream ( bytesOut ) . use { printStream -> sourceMapParseResult . value . debugVerbose ( printStream , generatedJsFile ) } bytesOut . toString ( ) } is SourceMapError -> { sourceMapParseResult . message } } }","docstring":""} {"signature":"private fun getExtensionRegistry ( ) : ExtensionRegistry","body":"{ val registry = ExtensionRegistry . newInstance ( ) ! ! DebugJvmProtoBuf . registerAllExtensions ( registry ) return registry }","docstring":""} {"signature":"private fun fileToStringRepresentation ( file : File ) : String","body":"{ return when { file . name . endsWith ( \"\" ) -> { classFileToString ( file ) } file . name . endsWith ( KotlinJavascriptMetadataUtils . META_JS_SUFFIX ) -> { metaJsToString ( file ) } file . name . endsWith ( KotlinJavascriptSerializationUtil . CLASS_METADATA_FILE_EXTENSION ) -> { kjsmToString ( file ) } file . name . endsWith ( \"\" ) -> { val generatedJsPath = file . canonicalPath . removeSuffix ( \"\" ) sourceMapFileToString ( file , File ( generatedJsPath ) ) } else -> { file . readText ( ) } } }","docstring":""} {"signature":"private fun transformMessage ( msg : String ) : String","body":"{ if ( prefix . isNullOrBlank ( ) ) return msg return prefix + msg }","docstring":""} {"signature":"override fun debug ( msg : String )","body":"{ log . debug ( transformMessage ( msg ) ) }","docstring":""} {"signature":"override fun error ( msg : String , throwable : Throwable ? )","body":"{ log . error ( transformMessage ( msg ) , throwable ) }","docstring":""} {"signature":"override fun info ( msg : String )","body":"{ log . info ( transformMessage ( msg ) ) }","docstring":""} {"signature":"override fun warn ( msg : String )","body":"{ log . warn ( transformMessage ( msg ) ) }","docstring":""} {"signature":"override fun lifecycle ( msg : String )","body":"{ log . lifecycle ( transformMessage ( msg ) ) }","docstring":""} {"signature":"private fun ModuleDeclaration . renameStdLibEntities ( onRename : ( uid : String , newName : NameEntity ) -> Unit ) : ModuleDeclaration","body":"{ val declarationsResolved = declarations . map { declaration -> when ( declaration ) { is InterfaceDeclaration -> stdLibRenameMap . resolve ( declaration . name ) ? . let { onRename ( declaration . uid , it ) declaration . copy ( name = it ) } ? : declaration is ModuleDeclaration -> declaration . renameStdLibEntities ( onRename ) else -> declaration } } return copy ( declarations = declarationsResolved ) }","docstring":""} {"signature":"fun SourceSetDeclaration . renameStdLibEntities ( onRename : ( uid : String , newName : NameEntity ) -> Unit ) : SourceSetDeclaration","body":"{ return copy ( sources = sources . map { source -> source . copy ( root = source . root . renameStdLibEntities ( onRename ) ) } ) }","docstring":""} {"signature":"fun withSideEffect ( v : Int ) : Int","body":"{ baz = v return v }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val al = ArrayList < Int > ( withSideEffect ( ) ) if ( al . size != ) return \"\" if ( baz != ) return \"\" return \"\" }","docstring":""} {"signature":"fun logged ( message : String , value : Int )","body":"= value . also { log . append ( message ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ var sum = for ( i in ( ( logged ( \"\" , ) until logged ( \"\" , ) ) . reversed ( ) step logged ( \"\" , ) ) . reversed ( ) step logged ( \"\" , ) ) { sum = sum * + i } assertEquals ( , sum ) assertEquals ( \"\" , log . toString ( ) ) return \"\" }","docstring":""} {"signature":"fun updateAnnotations ( editor : AbstractTextEditor , annotations : List < DiagnosticAnnotation > )","body":"{ val annotationModel = editor . documentProvider . getAnnotationModel ( editor . editorInput ) if ( annotationModel !is IAnnotationModelExtension ) return val newAnnotations = annotations . associateBy ( { it } , { it . position } ) val oldAnnotations = getLineMarkerAnnotations ( annotationModel ) updateAnnotations ( annotationModel , newAnnotations , oldAnnotations ) }","docstring":""} {"signature":"fun clearAllMarkersFromProject ( project : IProject )","body":"{ try { KotlinPsiManager . getFilesByProject ( project ) . forEach { it . removeMarkers ( ) } } catch ( e : CoreException ) { KotlinLogger . logError ( e ) } }","docstring":""} {"signature":"fun addProblemMarker ( annotation : DiagnosticAnnotation , file : IFile )","body":"= with ( file . createMarker ( MARKER_PROBLEM_TYPE ) ) { setAttribute ( IMarker . MESSAGE , annotation . text ) setAttribute ( IMarker . SEVERITY , annotation . markerSeverity ) setAttribute ( IMarker . CHAR_START , annotation . offset ) setAttribute ( IMarker . CHAR_END , annotation . endOffset ) setAttribute ( IMarker . LOCATION , \"\" ) setAttribute ( IMarker . LINE_NUMBER , annotation . line ) setAttribute ( MARKED_TEXT , annotation . markedText ) annotation . diagnostic ? . let { addDiagnostics ( it ) } val diagnostic = annotation . diagnostic val isUnresolvedReference = if ( diagnostic != null ) { DiagnosticAnnotationUtil . isUnresolvedReference ( diagnostic . factory ) } else false setAttribute ( IS_UNRESOLVED_REFERENCE , isUnresolvedReference ) val canBeFixed = diagnostic ? . let { kotlinQuickFixes . containsKey ( it . factory ) } ? : false setAttribute ( CAN_FIX_PROBLEM , canBeFixed ) }","docstring":""} {"signature":"fun removeAnnotations ( editor : KotlinFileEditor , annotationType : String )","body":"{ updateAnnotations ( editor , emptyMap ( ) , annotationType ) }","docstring":""} {"signature":"fun updateAnnotations ( editor : KotlinEditor , annotationMap : Map < Annotation , Position > , annotationType : String )","body":"{ val model = editor . javaEditor . documentProvider ? . getAnnotationModel ( editor . javaEditor . editorInput ) if ( model != null ) { updateAnnotations ( model , annotationMap , getAnnotations ( model , annotationType ) ) } }","docstring":""} {"signature":"private fun getAnnotations ( model : IAnnotationModel , annontationType : String ) : List < Annotation >","body":"{ val annotations = arrayListOf < Annotation > ( ) for ( annotation in model . annotationIterator ) { if ( annotation is Annotation && annotation . type == annontationType ) { annotations . add ( annotation ) } } return annotations }","docstring":""} {"signature":"private fun < Ann : Annotation > updateAnnotations ( model : IAnnotationModel , annotationMap : Map < Ann , Position > , oldAnnotations : List < Annotation > )","body":"{ model . withLock { ( model as IAnnotationModelExtension ) . replaceAnnotations ( oldAnnotations . toTypedArray ( ) , annotationMap ) } }","docstring":""} {"signature":"private fun getLineMarkerAnnotations ( model : IAnnotationModel ) : List < Annotation >","body":"{ fun isLineMarkerAnnotation ( ann : Annotation ) : Boolean { return when ( ann ) { is DiagnosticAnnotation -> true is MarkerAnnotation -> MarkerUtilities . isMarkerType ( ann . marker , IMarker . PROBLEM ) else -> false } } return arrayListOf < Annotation > ( ) . apply { model . annotationIterator . forEach { if ( it is Annotation && isLineMarkerAnnotation ( it ) ) { add ( it ) } } } }","docstring":""} {"signature":"override fun reconcile ( file : IFile , editor : KotlinEditor )","body":"{ val jetFile = if ( editor . isScript ) editor . parsedFile else KotlinPsiManager . getKotlinFileIfExist ( file , editor . document . get ( ) ) jetFile ? . let { val diagnostics = KotlinAnalyzer . analyzeFile ( it ) . analysisResult . bindingContext . diagnostics val annotations = DiagnosticAnnotationUtil . INSTANCE . handleDiagnostics ( diagnostics ) DiagnosticAnnotationUtil . INSTANCE . addParsingDiagnosticAnnotations ( file , annotations ) DiagnosticAnnotationUtil . INSTANCE . updateAnnotations ( editor . javaEditor , annotations ) } }","docstring":""} {"signature":"fun < T > IAnnotationModel . withLock ( action : ( ) -> T ) : T","body":"{ return if ( this is ISynchronizable ) { synchronized ( this . lockObject ) { action ( ) } } else { synchronized ( this ) { action ( ) } } }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val map = mapOf ( to \"\" ) val i = return when ( i ) { in map -> \"\" else -> \"\" } }","docstring":""} {"signature":"operator fun A . component1 ( )","body":"= ","docstring":""} {"signature":"operator fun A . component2 ( )","body":"= ","docstring":""} {"signature":"operator fun A . component3 ( )","body":"= ","docstring":""} {"signature":"fun B . test ( )","body":"{ val ( x , _ , z ) = A }","docstring":""} {"signature":"fun bar ( )","body":"{ class `A$B` { inner class `C$D` inner class `$$$$$$$` { inner class `G$G$` } } }","docstring":""} {"signature":"fun box ( )","body":"{ \"\" fun bar ( ) { \"\" } \"\" bar ( ) \"\" }","docstring":""} {"signature":"public fun foo ( p : MutableList < in String > )","body":"public fun foo ( p : MutableList < in String > )","docstring":""} {"signature":"public fun dummy ( )","body":"public fun dummy ( )","docstring":""} {"signature":"override fun foo ( p : MutableList < in String > )","body":"override fun foo ( p : MutableList < in String > )","docstring":""} {"signature":"override fun sanitizeReturnType ( inferred : UnwrappedType , wrappedTypeFactory : WrappedTypeFactory , trace : BindingTrace , languageVersionSettings : LanguageVersionSettings ) : UnwrappedType","body":"= if ( languageVersionSettings . supportsFeature ( LanguageFeature . StrictJavaNullabilityAssertions ) ) { inferred . replaceAttributes ( inferred . attributes . replaceAnnotations ( FilteredAnnotations ( inferred . annotations , languageVersionSettings . supportsFeature ( LanguageFeature . NewInference ) ) { it != JvmAnnotationNames . ENHANCED_NULLABILITY_ANNOTATION } ) ) } else inferred","docstring":""} {"signature":"suspend fun suspendHere ( a : String , b : String = a , c : String = a + b ) : String","body":"= suspendCoroutineUninterceptedOrReturn { x -> x . resume ( \"\" ) COROUTINE_SUSPENDED }","docstring":""} {"signature":"fun builder ( c : suspend ( ) -> Unit )","body":"{ c . startCoroutine ( EmptyContinuation ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ var result = \"\" builder { result = suspendHere ( \"\" ) } if ( result != \"\" ) return \"\" builder { result = suspendHere ( \"\" , c = \"\" ) } if ( result != \"\" ) return \"\" builder { result = suspendHere ( \"\" , \"\" ) } if ( result != \"\" ) return \"\" builder { result = suspendHere ( \"\" , \"\" , \"\" ) } if ( result != \"\" ) return \"\" return \"\" }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val ann = :: s . returnType . annotations [ ] as MyAnn return if ( ann . cls == Array < String > :: class ) \"\" else \"\" }","docstring":""} {"signature":"protected open fun foo ( )","body":"{ }","docstring":""} {"signature":"public override fun foo ( )","body":"{ }","docstring":""} {"signature":"inline fun < T > Iterator < T > . next ( value : Any ? = definedExternally ) : IteratorResult < T >","body":"= this . asDynamic ( ) . next ( value )","docstring":""} {"signature":"fun slice ( begin : Number ? = definedExternally , end : Number ? = definedExternally ) : SharedArrayBuffer","body":"fun slice ( begin : Number ? = definedExternally , end : Number ? = definedExternally ) : SharedArrayBuffer","docstring":""} {"signature":"@ Deprecated ( \"\" , level = DeprecationLevel . WARNING , ) fun createTarget ( name : String ) : T","body":"@ Deprecated ( \"\" , level = DeprecationLevel . WARNING , ) fun createTarget ( name : String ) : T","docstring":""} {"signature":"fun main ( )","body":"{ data class Movie ( val movieId : String , val title : String , val genres : String , val year : Int ) val step1 = DataFrame . read ( pathToCsv ) . split ( Movie :: genres ) . by ( \"\" ) . inplace ( ) . split ( Movie :: title ) . by { listOf ( \"\" . toRegex ( ) . replace ( it , \"\" ) , \"\" . toRegex ( ) . findAll ( it ) . lastOrNull ( ) ? . value ? . toIntOrNull ( ) ? : - ) } . into ( Movie :: title , Movie :: year ) . explode ( Movie :: genres ) val step2 = step1 . filter { it [ Movie :: year ] >= && it [ Movie :: genres ] != \"\" } . groupBy ( Movie :: year ) . sortBy ( Movie :: year ) . pivot ( Movie :: genres , inward = false ) . aggregate { count ( ) into \"\" mean ( ) into \"\" } . print ( ) }","docstring":""} {"signature":"fun String . parseCharacter ( ) : CharacterWithDiagnostic","body":"{ if ( length < || this [ ] != '' || this [ length - ] != '' ) { return CharacterWithDiagnostic ( DiagnosticKind . IncorrectCharacterLiteral ) } val text = substring ( , length - ) if ( text . isEmpty ( ) ) { return CharacterWithDiagnostic ( DiagnosticKind . EmptyCharacterLiteral ) } return if ( text [ ] != '' ) { if ( text . length == ) { CharacterWithDiagnostic ( text [ ] ) } else { CharacterWithDiagnostic ( DiagnosticKind . TooManyCharactersInCharacterLiteral ) } } else { escapedStringToCharacter ( text ) } }","docstring":""} {"signature":"fun escapedStringToCharacter ( text : String ) : CharacterWithDiagnostic","body":"{ assert ( text . isNotEmpty ( ) && text [ ] == '' ) { \"\" } val escape = text . substring ( ) when ( escape . length ) { -> { return CharacterWithDiagnostic ( DiagnosticKind . IllegalEscape ) } -> { return translateEscape ( escape [ ] ) } -> { if ( escape [ ] == '' ) { val intValue = escape . substring ( ) . toIntOrNull ( ) if ( intValue != null ) { return CharacterWithDiagnostic ( intValue . toChar ( ) ) } } } } return CharacterWithDiagnostic ( DiagnosticKind . IllegalEscape ) }","docstring":""} {"signature":"internal fun translateEscape ( c : Char ) : CharacterWithDiagnostic","body":"= when ( c ) { '' -> CharacterWithDiagnostic ( '' ) '' -> CharacterWithDiagnostic ( '' ) '' -> CharacterWithDiagnostic ( '' ) '' -> CharacterWithDiagnostic ( '' ) '' -> CharacterWithDiagnostic ( '' ) '' -> CharacterWithDiagnostic ( '' ) '' -> CharacterWithDiagnostic ( '' ) '' -> CharacterWithDiagnostic ( '' ) else -> CharacterWithDiagnostic ( DiagnosticKind . IllegalEscape ) }","docstring":""} {"signature":"fun getDiagnostic ( ) : DiagnosticKind ?","body":"{ return diagnostic }","docstring":""} {"signature":"fun IElementType . toBinaryName ( ) : Name ?","body":"{ return OperatorConventions . BINARY_OPERATION_NAMES [ this ] }","docstring":""} {"signature":"fun IElementType . toUnaryName ( ) : Name ?","body":"{ return OperatorConventions . UNARY_OPERATION_NAMES [ this ] }","docstring":""} {"signature":"fun IElementType . toFirOperation ( ) : FirOperation","body":"= toFirOperationOrNull ( ) ? : error ( \"\" )","docstring":""} {"signature":"fun IElementType . toFirOperationOrNull ( ) : FirOperation ?","body":"= when ( this ) { KtTokens . LT -> FirOperation . LT KtTokens . GT -> FirOperation . GT KtTokens . LTEQ -> FirOperation . LT_EQ KtTokens . GTEQ -> FirOperation . GT_EQ KtTokens . EQEQ -> FirOperation . EQ KtTokens . EXCLEQ -> FirOperation . NOT_EQ KtTokens . EQEQEQ -> FirOperation . IDENTITY KtTokens . EXCLEQEQEQ -> FirOperation . NOT_IDENTITY KtTokens . EQ -> FirOperation . ASSIGN KtTokens . PLUSEQ -> FirOperation . PLUS_ASSIGN KtTokens . MINUSEQ -> FirOperation . MINUS_ASSIGN KtTokens . MULTEQ -> FirOperation . TIMES_ASSIGN KtTokens . DIVEQ -> FirOperation . DIV_ASSIGN KtTokens . PERCEQ -> FirOperation . REM_ASSIGN KtTokens . AS_KEYWORD -> FirOperation . AS KtTokens . AS_SAFE -> FirOperation . SAFE_AS else -> null }","docstring":""} {"signature":"fun FirExpression . generateNotNullOrOther ( other : FirExpression , baseSource : KtSourceElement ? , ) : FirElvisExpression","body":"{ return buildElvisExpression { source = baseSource lhs = this@generateNotNullOrOther rhs = other } }","docstring":""} {"signature":"fun FirExpression . generateLazyLogicalOperation ( other : FirExpression , isAnd : Boolean , baseSource : KtSourceElement ? , ) : FirBinaryLogicExpression","body":"{ return buildBinaryLogicExpression { source = baseSource leftOperand = this@generateLazyLogicalOperation rightOperand = other kind = if ( isAnd ) LogicOperationKind . AND else LogicOperationKind . OR } }","docstring":""} {"signature":"fun FirExpression . generateContainsOperation ( argument : FirExpression , inverted : Boolean , baseSource : KtSourceElement ? , operationReferenceSource : KtSourceElement ? ) : FirFunctionCall","body":"{ val containsCall = createConventionCall ( operationReferenceSource , baseSource , argument , OperatorNameConventions . CONTAINS ) if ( ! inverted ) return containsCall return buildFunctionCall { source = baseSource ? . fakeElement ( KtFakeSourceElementKind . DesugaredInvertedContains ) calleeReference = buildSimpleNamedReference { source = operationReferenceSource ? . fakeElement ( KtFakeSourceElementKind . DesugaredInvertedContains ) name = OperatorNameConventions . NOT } explicitReceiver = containsCall origin = FirFunctionCallOrigin . Operator } }","docstring":""} {"signature":"fun FirExpression . generateComparisonExpression ( argument : FirExpression , operatorToken : IElementType , baseSource : KtSourceElement ? , operationReferenceSource : KtSourceElement ? , ) : FirComparisonExpression","body":"{ require ( operatorToken in OperatorConventions . COMPARISON_OPERATIONS ) { \"\" } val compareToCall = createConventionCall ( operationReferenceSource , baseSource ? . fakeElement ( KtFakeSourceElementKind . GeneratedComparisonExpression ) , argument , OperatorNameConventions . COMPARE_TO ) val firOperation = when ( operatorToken ) { KtTokens . LT -> FirOperation . LT KtTokens . GT -> FirOperation . GT KtTokens . LTEQ -> FirOperation . LT_EQ KtTokens . GTEQ -> FirOperation . GT_EQ else -> error ( \"\" ) } return buildComparisonExpression { this . source = baseSource this . operation = firOperation this . compareToCall = compareToCall } }","docstring":""} {"signature":"private fun FirExpression . createConventionCall ( operationReferenceSource : KtSourceElement ? , baseSource : KtSourceElement ? , argument : FirExpression , conventionName : Name ) : FirFunctionCall","body":"{ return buildFunctionCall { source = baseSource calleeReference = buildSimpleNamedReference { source = operationReferenceSource name = conventionName } explicitReceiver = this@createConventionCall argumentList = buildUnaryArgumentList ( argument ) origin = FirFunctionCallOrigin . Operator } }","docstring":""} {"signature":"fun generateAccessExpression ( qualifiedSource : KtSourceElement ? , calleeReferenceSource : KtSourceElement ? , name : Name , diagnostic : ConeDiagnostic ? = null ) : FirQualifiedAccessExpression","body":"= buildPropertyAccessExpression { this . source = qualifiedSource calleeReference = buildSimpleNamedReference { this . source = if ( calleeReferenceSource == qualifiedSource ) calleeReferenceSource ? . fakeElement ( KtFakeSourceElementKind . ReferenceInAtomicQualifiedAccess ) else calleeReferenceSource this . name = name } if ( diagnostic != null ) { this . nonFatalDiagnostics . add ( diagnostic ) } }","docstring":""} {"signature":"fun generateResolvedAccessExpression ( source : KtSourceElement ? , variable : FirVariable ) : FirQualifiedAccessExpression","body":"= buildPropertyAccessExpression { this . source = source calleeReference = buildResolvedNamedReference { this . source = source name = variable . name resolvedSymbol = variable . symbol } }","docstring":""} {"signature":"fun FirVariable . toComponentCall ( entrySource : KtSourceElement ? , index : Int , ) : FirComponentCall","body":"{ return buildComponentCall { val componentCallSource = entrySource ? . fakeElement ( KtFakeSourceElementKind . DesugaredComponentFunctionCall ) source = componentCallSource explicitReceiver = generateResolvedAccessExpression ( componentCallSource , this @ toComponentCall ) componentIndex = index + } }","docstring":""} {"signature":"fun < T > FirPropertyBuilder . generateAccessorsByDelegate ( delegateBuilder : FirWrappedDelegateExpressionBuilder ? , moduleData : FirModuleData , ownerRegularOrAnonymousObjectSymbol : FirClassSymbol < * > ? , context : Context < T > , isExtension : Boolean , lazyDelegateExpression : FirLazyExpression ? = null , lazyBodyForGeneratedAccessors : FirLazyBlock ? = null , bindFunction : ( target : FirFunctionTarget , function : FirFunction ) -> Unit = FirFunctionTarget :: bind , )","body":"{ if ( delegateBuilder == null ) return val delegateFieldSymbol = FirDelegateFieldSymbol ( symbol . callableId ) . also { this . delegateFieldSymbol = it } val isMember = ownerRegularOrAnonymousObjectSymbol != null val fakeSource = delegateBuilder . source ? . fakeElement ( KtFakeSourceElementKind . DelegatedPropertyAccessor ) fun thisRef ( forDispatchReceiver : Boolean = false ) : FirExpression = when { isExtension && ! forDispatchReceiver -> buildThisReceiverExpression { source = fakeSource calleeReference = buildImplicitThisReference { boundSymbol = this@generateAccessorsByDelegate . symbol } } ownerRegularOrAnonymousObjectSymbol != null -> buildThisReceiverExpression { source = fakeSource calleeReference = buildImplicitThisReference { boundSymbol = ownerRegularOrAnonymousObjectSymbol } coneTypeOrNull = context . dispatchReceiverTypesStack . last ( ) } else -> buildLiteralExpression ( null , ConstantValueKind . Null , null , setType = false ) } fun delegateAccess ( ) = buildPropertyAccessExpression { source = fakeSource calleeReference = buildDelegateFieldReference { source = fakeSource resolvedSymbol = delegateFieldSymbol } if ( ownerRegularOrAnonymousObjectSymbol != null ) { dispatchReceiver = thisRef ( forDispatchReceiver = true ) } } val isVar = this@generateAccessorsByDelegate . isVar fun propertyRef ( ) = buildCallableReferenceAccess { source = fakeSource calleeReference = buildResolvedNamedReference { source = fakeSource name = this@generateAccessorsByDelegate . name resolvedSymbol = this@generateAccessorsByDelegate . symbol } coneTypeOrNull = when { ! isMember && ! isExtension -> if ( isVar ) { StandardClassIds . KMutableProperty0 . constructClassLikeType ( arrayOf ( ConeStarProjection ) ) } else { StandardClassIds . KProperty0 . constructClassLikeType ( arrayOf ( ConeStarProjection ) ) } isMember && isExtension -> if ( isVar ) { StandardClassIds . KMutableProperty2 . constructClassLikeType ( arrayOf ( ConeStarProjection , ConeStarProjection , ConeStarProjection ) ) } else { StandardClassIds . KProperty2 . constructClassLikeType ( arrayOf ( ConeStarProjection , ConeStarProjection , ConeStarProjection ) ) } else -> if ( isVar ) { StandardClassIds . KMutableProperty1 . constructClassLikeType ( arrayOf ( ConeStarProjection , ConeStarProjection ) ) } else { StandardClassIds . KProperty1 . constructClassLikeType ( arrayOf ( ConeStarProjection , ConeStarProjection ) ) } } this@generateAccessorsByDelegate . typeParameters . mapTo ( typeArguments ) { buildTypeProjectionWithVariance { source = fakeSource variance = Variance . INVARIANT typeRef = buildResolvedTypeRef { type = ConeTypeParameterTypeImpl ( it . symbol . toLookupTag ( ) , false ) } } } } delegate = lazyDelegateExpression ? : run { delegateBuilder . provideDelegateCall = buildFunctionCall { explicitReceiver = delegateBuilder . expression calleeReference = buildSimpleNamedReference { source = fakeSource name = OperatorNameConventions . PROVIDE_DELEGATE } argumentList = buildBinaryArgumentList ( thisRef ( forDispatchReceiver = true ) , propertyRef ( ) ) origin = FirFunctionCallOrigin . Operator source = fakeSource } delegateBuilder . build ( ) } if ( getter == null || getter is FirDefaultPropertyAccessor ) { val annotations = getter ? . annotations val returnTarget = FirFunctionTarget ( null , isLambda = false ) val getterStatus = getter ? . status val getterElement = getter ? . source ? . takeIf { it . kind == KtRealSourceElementKind } ? . fakeElement ( KtFakeSourceElementKind . DelegatedPropertyAccessor ) ? : fakeSource getter = buildPropertyAccessor { this . source = getterElement this . moduleData = moduleData origin = FirDeclarationOrigin . Source returnTypeRef = FirImplicitTypeRefImplWithoutSource isGetter = true status = FirDeclarationStatusImpl ( getterStatus ? . visibility ? : Visibilities . Unknown , Modality . FINAL ) . apply { isInline = getterStatus ? . isInline ? : isInline } symbol = FirPropertyAccessorSymbol ( ) body = lazyBodyForGeneratedAccessors ? : FirSingleExpressionBlock ( buildReturnExpression { result = buildFunctionCall { source = fakeSource explicitReceiver = delegateAccess ( ) calleeReference = buildSimpleNamedReference { source = fakeSource name = OperatorNameConventions . GET_VALUE } argumentList = buildBinaryArgumentList ( thisRef ( ) , propertyRef ( ) ) origin = FirFunctionCallOrigin . Operator } target = returnTarget source = fakeSource } ) if ( annotations != null ) { this . annotations . addAll ( annotations ) } propertySymbol = this@generateAccessorsByDelegate . symbol } . also { bindFunction ( returnTarget , it ) it . initContainingClassAttr ( context ) } } if ( isVar && ( setter == null || setter is FirDefaultPropertyAccessor ) ) { val annotations = setter ? . annotations val returnTarget = FirFunctionTarget ( null , isLambda = false ) val parameterAnnotations = setter ? . valueParameters ? . firstOrNull ( ) ? . annotations val setterStatus = setter ? . status val setterElement = setter ? . source ? . fakeElement ( KtFakeSourceElementKind . DelegatedPropertyAccessor ) ? : fakeSource setter = buildPropertyAccessor { this . source = setterElement this . moduleData = moduleData origin = FirDeclarationOrigin . Source returnTypeRef = moduleData . session . builtinTypes . unitType isGetter = false status = FirDeclarationStatusImpl ( setterStatus ? . visibility ? : Visibilities . Unknown , Modality . FINAL ) . apply { isInline = setterStatus ? . isInline ? : isInline } symbol = FirPropertyAccessorSymbol ( ) val parameter = buildValueParameter { source = fakeSource containingFunctionSymbol = this@buildPropertyAccessor . symbol this . moduleData = moduleData origin = FirDeclarationOrigin . Source returnTypeRef = FirImplicitTypeRefImplWithoutSource name = SpecialNames . IMPLICIT_SET_PARAMETER symbol = FirValueParameterSymbol ( this @ generateAccessorsByDelegate . name ) isCrossinline = false isNoinline = false isVararg = false if ( parameterAnnotations != null ) { this . annotations . addAll ( parameterAnnotations ) } } valueParameters += parameter body = lazyBodyForGeneratedAccessors ? : FirSingleExpressionBlock ( buildReturnExpression { result = buildFunctionCall { source = fakeSource explicitReceiver = delegateAccess ( ) calleeReference = buildSimpleNamedReference { source = fakeSource name = OperatorNameConventions . SET_VALUE } argumentList = buildArgumentList { arguments += thisRef ( ) arguments += propertyRef ( ) arguments += buildPropertyAccessExpression { source = fakeSource calleeReference = buildResolvedNamedReference { source = fakeSource name = SpecialNames . IMPLICIT_SET_PARAMETER resolvedSymbol = parameter . symbol } } } origin = FirFunctionCallOrigin . Operator } target = returnTarget source = fakeSource } ) if ( annotations != null ) { this . annotations . addAll ( annotations ) } propertySymbol = this@generateAccessorsByDelegate . symbol } . also { bindFunction ( returnTarget , it ) it . initContainingClassAttr ( context ) } } }","docstring":""} {"signature":"fun processLegacyContractDescription ( block : FirBlock , diagnostic : ConeDiagnostic ? ) : FirContractDescription ?","body":"{ if ( block . isContractPresentFirCheck ( ) ) { val contractCall = block . replaceFirstStatement < FirFunctionCall > { FirContractCallBlock ( it ) } return contractCall . toLegacyRawContractDescription ( diagnostic ) } return null }","docstring":""} {"signature":"fun FirFunctionCall . toLegacyRawContractDescription ( diagnostic : ConeDiagnostic ? = null ) : FirLegacyRawContractDescription","body":"{ return buildLegacyRawContractDescription { this . source = this@toLegacyRawContractDescription . source this . contractCall = this@toLegacyRawContractDescription this . diagnostic = diagnostic } }","docstring":""} {"signature":"fun FirBlock . isContractPresentFirCheck ( ) : Boolean","body":"{ val firstStatement = statements . firstOrNull ( ) ? : return false return firstStatement . isContractBlockFirCheck ( ) }","docstring":""} {"signature":"@ OptIn ( ExperimentalContracts :: class ) fun FirStatement . isContractBlockFirCheck ( ) : Boolean","body":"{ contract { returns ( true ) implies ( this @ isContractBlockFirCheck is FirFunctionCall ) } val contractCall = this as? FirFunctionCall ? : return false if ( contractCall . calleeReference . name . asString ( ) != \"\" ) return false val receiver = contractCall . explicitReceiver as? FirQualifiedAccessExpression ? : return true if ( ! contractCall . checkReceiver ( \"\" ) ) return false if ( ! receiver . checkReceiver ( \"\" ) ) return false val receiverOfReceiver = receiver . explicitReceiver as? FirQualifiedAccessExpression ? : return false if ( receiverOfReceiver . explicitReceiver != null ) return false return true }","docstring":""} {"signature":"private fun FirExpression . checkReceiver ( name : String ? ) : Boolean","body":"{ if ( this !is FirQualifiedAccessExpression ) return false val receiver = explicitReceiver as? FirQualifiedAccessExpression ? : return false val receiverName = ( receiver . calleeReference as? FirNamedReference ) ? . name ? . asString ( ) ? : return false return receiverName == name }","docstring":""} {"signature":"fun FirQualifiedAccessExpression . createSafeCall ( receiver : FirExpression , source : KtSourceElement ) : FirSafeCallExpression","body":"{ val checkedSafeCallSubject = buildCheckedSafeCallSubject { @ OptIn ( FirContractViolation :: class ) this . originalReceiverRef = FirExpressionRef < FirExpression > ( ) . apply { bind ( receiver ) } this . source = receiver . source ? . fakeElement ( KtFakeSourceElementKind . CheckedSafeCallSubject ) } if ( this is FirImplicitInvokeCall ) { val newArguments = buildArgumentList { arguments . add ( checkedSafeCallSubject ) arguments . addAll ( this @ createSafeCall . arguments ) } replaceArgumentList ( newArguments ) } else { replaceExplicitReceiver ( checkedSafeCallSubject ) } return buildSafeCallExpression { this . receiver = receiver @ OptIn ( FirContractViolation :: class ) this . checkedSubjectRef = FirExpressionRef < FirCheckedSafeCallSubject > ( ) . apply { bind ( checkedSafeCallSubject ) } this . selector = this@createSafeCall this . source = source } }","docstring":""} {"signature":"fun FirExpression . pullUpSafeCallIfNecessary ( ) : FirExpression","body":"{ if ( this !is FirQualifiedAccessExpression ) return this val safeCall = explicitReceiver as? FirSafeCallExpression ? : return this val safeCallSelector = safeCall . selector as? FirExpression ? : return this replaceExplicitReceiver ( safeCallSelector ) safeCall . replaceSelector ( this ) return safeCall }","docstring":""} {"signature":"fun List < FirAnnotationCall > . filterUseSiteTarget ( target : AnnotationUseSiteTarget ) : List < FirAnnotationCall >","body":"= mapNotNull { if ( it . useSiteTarget != target ) null else buildAnnotationCallCopy ( it ) { source = it . source ? . fakeElement ( KtFakeSourceElementKind . FromUseSiteTarget ) } }","docstring":""} {"signature":"fun FirTypeRef . convertToReceiverParameter ( ) : FirReceiverParameter","body":"{ val typeRef = this @ Suppress ( \"\" ) return buildReceiverParameter { source = typeRef . source ? . fakeElement ( KtFakeSourceElementKind . ReceiverFromType ) annotations += ( typeRef . annotations as List < FirAnnotationCall > ) . filterUseSiteTarget ( AnnotationUseSiteTarget . RECEIVER ) val filteredTypeRefAnnotations = typeRef . annotations . filterNot { it . useSiteTarget == AnnotationUseSiteTarget . RECEIVER } if ( filteredTypeRefAnnotations . size != typeRef . annotations . size ) { typeRef . replaceAnnotations ( filteredTypeRefAnnotations ) } this . typeRef = typeRef } }","docstring":""} {"signature":"fun KtSourceElement . asReceiverParameter ( ) : FirReceiverParameter","body":"= buildReceiverParameter { source = this@asReceiverParameter . fakeElement ( KtFakeSourceElementKind . ReceiverFromType ) typeRef = FirImplicitTypeRefImplWithoutSource }","docstring":""} {"signature":"fun < T > FirCallableDeclaration . initContainingClassAttr ( context : Context < T > )","body":"{ containingClassForStaticMemberAttr = currentDispatchReceiverType ( context ) ? . lookupTag ? : return }","docstring":""} {"signature":"fun < T > currentDispatchReceiverType ( context : Context < T > ) : ConeClassLikeType ?","body":"{ return context . dispatchReceiverTypesStack . lastOrNull ( ) }","docstring":""} {"signature":"fun buildBalancedOrExpressionTree ( conditions : List < FirExpression > , lower : Int = , upper : Int = conditions . lastIndex ) : FirExpression","body":"{ val size = upper - lower + val middle = size / + lower if ( lower == upper ) { return conditions [ middle ] } val leftNode = buildBalancedOrExpressionTree ( conditions , lower , middle - ) val rightNode = buildBalancedOrExpressionTree ( conditions , middle , upper ) return leftNode . generateLazyLogicalOperation ( rightNode , isAnd = false , ( leftNode . source ? : rightNode . source ) ? . fakeElement ( KtFakeSourceElementKind . WhenCondition ) ) }","docstring":"/**\n * Creates balanced tree of OR expressions for given set of conditions\n * We do so, to avoid too deep OR-expression structures, that can cause running out of stack while processing\n * [conditions] should contain at least one element, otherwise it will cause StackOverflow\n */"} {"signature":"fun AnnotationUseSiteTarget ? . appliesToPrimaryConstructorParameter ( )","body":"= this == null || this == AnnotationUseSiteTarget . CONSTRUCTOR_PARAMETER || this == AnnotationUseSiteTarget . RECEIVER || this == AnnotationUseSiteTarget . FILE","docstring":""} {"signature":"fun FirErrorTypeRef . wrapIntoArray ( ) : FirResolvedTypeRef","body":"{ val typeRef = this return buildResolvedTypeRef { source = typeRef . source type = StandardClassIds . Array . constructClassLikeType ( arrayOf ( ConeKotlinTypeProjectionOut ( typeRef . coneType ) ) ) delegatedTypeRef = typeRef . copyWithNewSourceKind ( KtFakeSourceElementKind . ArrayTypeFromVarargParameter ) } }","docstring":""} {"signature":"override fun onCreate ( )","body":"{ super . onCreate ( ) initKoin ( ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val b = B ( ) assertEquals ( b . x , ) assertEquals ( b . y , ) return \"\" }","docstring":""} {"signature":"override fun getName ( ) : String","body":"= _name ? : \"\"","docstring":""} {"signature":"override fun isConstructor ( ) : Boolean","body":"= true","docstring":""} {"signature":"override fun isOverride ( ) : Boolean","body":"= false","docstring":""} {"signature":"override fun hasTypeParameters ( ) : Boolean","body":"= false","docstring":""} {"signature":"override fun getTypeParameterList ( ) : PsiTypeParameterList ?","body":"= null","docstring":""} {"signature":"override fun getTypeParameters ( ) : Array < PsiTypeParameter >","body":"= PsiTypeParameter . EMPTY_ARRAY","docstring":""} {"signature":"private fun computeModifiers ( modifier : String ) : Map < String , Boolean > ?","body":"{ if ( modifier !in GranularModifiersBox . VISIBILITY_MODIFIERS ) return null return GranularModifiersBox . computeVisibilityForMember ( ktModule , functionSymbolPointer ) }","docstring":""} {"signature":"override fun getModifierList ( ) : PsiModifierList","body":"= _modifierList","docstring":""} {"signature":"override fun getReturnType ( ) : PsiType ?","body":"= null","docstring":""} {"signature":"override fun error ( message : String )","body":"{ throw AssertionError ( \"\" ) }","docstring":""} {"signature":"fun getJsModuleArtifactPath ( testServices : TestServices , moduleName : String , translationMode : TranslationMode = TranslationMode . FULL_DEV ) : String","body":"{ return getJsArtifactsOutputDir ( testServices , translationMode ) . absolutePath + File . separator + getJsModuleArtifactName ( testServices , moduleName ) }","docstring":""} {"signature":"fun getRecompiledJsModuleArtifactPath ( testServices : TestServices , moduleName : String , translationMode : TranslationMode = TranslationMode . FULL_DEV ) : String","body":"{ return getJsArtifactsRecompiledOutputDir ( testServices , translationMode ) . absolutePath + File . separator + getJsModuleArtifactName ( testServices , moduleName ) }","docstring":""} {"signature":"fun getJsModuleArtifactName ( testServices : TestServices , moduleName : String ) : String","body":"{ return getKlibArtifactSimpleName ( testServices , moduleName ) + \"\" }","docstring":""} {"signature":"fun getJsArtifactsOutputDir ( testServices : TestServices , translationMode : TranslationMode = TranslationMode . FULL_DEV ) : File","body":"{ return testServices . temporaryDirectoryManager . getOrCreateTempDirectory ( outputDirByMode [ translationMode ] ! ! ) }","docstring":""} {"signature":"fun getJsArtifactsRecompiledOutputDir ( testServices : TestServices , translationMode : TranslationMode = TranslationMode . FULL_DEV ) : File","body":"{ return testServices . temporaryDirectoryManager . getOrCreateTempDirectory ( outputDirByMode [ translationMode ] ! ! + \"\" ) }","docstring":""} {"signature":"fun getMinificationJsArtifactsOutputDir ( testServices : TestServices ) : File","body":"{ return testServices . temporaryDirectoryManager . getOrCreateTempDirectory ( MINIFICATION_OUTPUT_DIR_NAME ) }","docstring":""} {"signature":"private fun getPrefixPostfixFile ( module : TestModule , prefix : Boolean ) : File ?","body":"{ val suffix = if ( prefix ) \"\" else \"\" val originalFile = module . files . first ( ) . originalFile return originalFile . parentFile . resolve ( originalFile . name + suffix ) . takeIf { it . exists ( ) } }","docstring":""} {"signature":"fun getPrefixFile ( module : TestModule ) : File ?","body":"= getPrefixPostfixFile ( module , prefix = true )","docstring":""} {"signature":"fun getPostfixFile ( module : TestModule ) : File ?","body":"= getPrefixPostfixFile ( module , prefix = false )","docstring":""} {"signature":"fun createJsConfig ( project : Project , configuration : CompilerConfiguration , compilerEnvironment : TargetEnvironment = CompilerEnvironment ) : JsConfig","body":"{ return JsConfig ( project , configuration , compilerEnvironment , METADATA_CACHE , ( JsConfig . JS_STDLIB + JsConfig . JS_KOTLIN_TEST ) . toSet ( ) ) }","docstring":""} {"signature":"fun getMainModule ( testServices : TestServices ) : TestModule","body":"{ val modules = testServices . moduleStructure . modules val inferMainModule = JsEnvironmentConfigurationDirectives . INFER_MAIN_MODULE in testServices . moduleStructure . allDirectives return when { inferMainModule -> modules . last ( ) else -> modules . singleOrNull { it . name == ModuleStructureExtractor . DEFAULT_MODULE_NAME } ? : modules . last ( ) } }","docstring":""} {"signature":"fun isMainModule ( module : TestModule , testServices : TestServices ) : Boolean","body":"{ return module == getMainModule ( testServices ) }","docstring":""} {"signature":"fun getMainModuleName ( testServices : TestServices ) : String","body":"{ return getMainModule ( testServices ) . name }","docstring":""} {"signature":"fun getRuntimePathsForModule ( module : TestModule , testServices : TestServices ) : List < String >","body":"{ val result = mutableListOf < String > ( ) val needsFullIrRuntime = JsEnvironmentConfigurationDirectives . KJS_WITH_FULL_RUNTIME in module . directives || ConfigurationDirectives . WITH_STDLIB in module . directives val pathProvider = testServices . standardLibrariesPathProvider if ( needsFullIrRuntime ) { result += pathProvider . fullJsStdlib ( ) . absolutePath result += pathProvider . kotlinTestJsKLib ( ) . absolutePath } else { result += pathProvider . defaultJsStdlib ( ) . absolutePath } val runtimeClasspaths = testServices . runtimeClasspathProviders . flatMap { it . runtimeClassPaths ( module ) } runtimeClasspaths . mapTo ( result ) { it . absolutePath } return result }","docstring":""} {"signature":"fun getMainCallParametersForModule ( module : TestModule ) : MainCallParameters","body":"{ return when { JsEnvironmentConfigurationDirectives . CALL_MAIN in module . directives -> MainCallParameters . mainWithArguments ( listOf ( ) ) JsEnvironmentConfigurationDirectives . MAIN_ARGS in module . directives -> { MainCallParameters . mainWithArguments ( module . directives [ JsEnvironmentConfigurationDirectives . MAIN_ARGS ] . single ( ) ) } else -> MainCallParameters . noCall ( ) } }","docstring":""} {"signature":"fun TestModule . hasFilesToRecompile ( ) : Boolean","body":"{ return files . any { JsEnvironmentConfigurationDirectives . RECOMPILE in it . directives } }","docstring":""} {"signature":"fun incrementalEnabled ( testServices : TestServices ) : Boolean","body":"{ return JsEnvironmentConfigurationDirectives . SKIP_IR_INCREMENTAL_CHECKS !in testServices . moduleStructure . allDirectives && testServices . moduleStructure . modules . any { it . hasFilesToRecompile ( ) } }","docstring":""} {"signature":"override fun provideAdditionalAnalysisFlags ( directives : RegisteredDirectives , languageVersion : LanguageVersion ) : Map < AnalysisFlag < * > , Any ? >","body":"{ return super . provideAdditionalAnalysisFlags ( directives , languageVersion ) . toMutableMap ( ) . also { it [ allowFullyQualifiedNameInKClass ] = false } }","docstring":""} {"signature":"override fun DirectiveToConfigurationKeyExtractor . provideConfigurationKeys ( )","body":"{ register ( PROPERTY_LAZY_INITIALIZATION , JSConfigurationKeys . PROPERTY_LAZY_INITIALIZATION ) register ( GENERATE_INLINE_ANONYMOUS_FUNCTIONS , JSConfigurationKeys . GENERATE_INLINE_ANONYMOUS_FUNCTIONS ) }","docstring":""} {"signature":"override fun configureCompilerConfiguration ( configuration : CompilerConfiguration , module : TestModule )","body":"{ if ( module . targetPlatform !in JsPlatforms . allJsPlatforms ) return val registeredDirectives = module . directives val moduleKinds = registeredDirectives [ MODULE_KIND ] val moduleKind = when ( moduleKinds . size ) { -> testServices . moduleStructure . allDirectives [ MODULE_KIND ] . singleOrNull ( ) ? : if ( JsEnvironmentConfigurationDirectives . ES_MODULES in registeredDirectives ) ModuleKind . ES else ModuleKind . PLAIN -> moduleKinds . single ( ) else -> error ( \"\" ) } configuration . put ( JSConfigurationKeys . MODULE_KIND , moduleKind ) val noInline = registeredDirectives . contains ( NO_INLINE ) configuration . put ( CommonConfigurationKeys . DISABLE_INLINE , noInline ) val dependencies = module . regularDependencies . map { getJsModuleArtifactPath ( testServices , it . moduleName ) + \"\" } val allDependencies = module . allTransitiveDependencies ( ) . map { getJsModuleArtifactPath ( testServices , it . moduleName ) + \"\" } val friends = module . friendDependencies . map { getJsModuleArtifactPath ( testServices , it . moduleName ) + \"\" } val libraries = when ( module . targetBackend ) { null -> JsConfig . JS_STDLIB + JsConfig . JS_KOTLIN_TEST TargetBackend . JS_IR , TargetBackend . JS_IR_ES6 -> dependencies + friends TargetBackend . JS -> JsConfig . JS_STDLIB + JsConfig . JS_KOTLIN_TEST + dependencies + friends else -> error ( \"\" ) } configuration . put ( JSConfigurationKeys . LIBRARIES , libraries ) configuration . put ( JSConfigurationKeys . TRANSITIVE_LIBRARIES , allDependencies ) configuration . put ( JSConfigurationKeys . FRIEND_PATHS , friends ) configuration . put ( CommonConfigurationKeys . MODULE_NAME , module . name . removeSuffix ( OLD_MODULE_SUFFIX ) ) configuration . put ( JSConfigurationKeys . TARGET , EcmaVersion . es5 ) val multiModule = testServices . moduleStructure . modules . size > configuration . put ( JSConfigurationKeys . META_INFO , multiModule ) val sourceDirs = module . files . map { it . originalFile . parent } . distinct ( ) configuration . put ( JSConfigurationKeys . SOURCE_MAP_SOURCE_ROOTS , sourceDirs ) configuration . put ( JSConfigurationKeys . SOURCE_MAP , true ) val sourceMapSourceEmbedding = registeredDirectives [ SOURCE_MAP_EMBED_SOURCES ] . singleOrNull ( ) ? : SourceMapSourceEmbedding . NEVER configuration . put ( JSConfigurationKeys . SOURCE_MAP_EMBED_SOURCES , sourceMapSourceEmbedding ) configuration . put ( JSConfigurationKeys . TYPED_ARRAYS_ENABLED , TYPED_ARRAYS in registeredDirectives ) configuration . put ( JSConfigurationKeys . GENERATE_POLYFILLS , true ) configuration . put ( JSConfigurationKeys . GENERATE_REGION_COMMENTS , true ) configuration . put ( JSConfigurationKeys . FILE_PATHS_PREFIX_MAP , mapOf ( File ( \"\" ) . absolutePath . removeSuffix ( \"\" ) to \"\" ) ) }","docstring":""} {"signature":"fun f ( ) : T ?","body":"{ return null }","docstring":""} {"signature":"fun box ( ) : String","body":"{ Z ( ) . f ( ) return \"\" }","docstring":""} {"signature":"external fun native ( path : String , options : dynamic = definedExternally ) : String","body":"external fun native ( path : String , options : dynamic = definedExternally ) : String","docstring":""} {"signature":"external fun native ( path : Buffer , options : dynamic = definedExternally ) : String","body":"external fun native ( path : Buffer , options : dynamic = definedExternally ) : String","docstring":""} {"signature":"external fun native ( path : URL , options : dynamic = definedExternally ) : String","body":"external fun native ( path : URL , options : dynamic = definedExternally ) : String","docstring":""} {"signature":"external fun native ( path : String , options : `T$10` ) : Buffer","body":"external fun native ( path : String , options : `T$10` ) : Buffer","docstring":""} {"signature":"external fun native ( path : String , options : String ) : Buffer","body":"external fun native ( path : String , options : String ) : Buffer","docstring":""} {"signature":"external fun native ( path : Buffer , options : `T$10` ) : Buffer","body":"external fun native ( path : Buffer , options : `T$10` ) : Buffer","docstring":""} {"signature":"external fun native ( path : Buffer , options : String ) : Buffer","body":"external fun native ( path : Buffer , options : String ) : Buffer","docstring":""} {"signature":"external fun native ( path : URL , options : `T$10` ) : Buffer","body":"external fun native ( path : URL , options : `T$10` ) : Buffer","docstring":""} {"signature":"external fun native ( path : URL , options : String ) : Buffer","body":"external fun native ( path : URL , options : String ) : Buffer","docstring":""} {"signature":"external fun native ( path : String , options : `T$11` ? = definedExternally ) : dynamic","body":"external fun native ( path : String , options : `T$11` ? = definedExternally ) : dynamic","docstring":""} {"signature":"external fun native ( path : String , options : String ? = definedExternally ) : dynamic","body":"external fun native ( path : String , options : String ? = definedExternally ) : dynamic","docstring":""} {"signature":"external fun native ( path : String , options : Nothing ? = definedExternally ) : dynamic","body":"external fun native ( path : String , options : Nothing ? = definedExternally ) : dynamic","docstring":""} {"signature":"external fun native ( path : Buffer , options : `T$11` ? = definedExternally ) : dynamic","body":"external fun native ( path : Buffer , options : `T$11` ? = definedExternally ) : dynamic","docstring":""} {"signature":"external fun native ( path : Buffer , options : String ? = definedExternally ) : dynamic","body":"external fun native ( path : Buffer , options : String ? = definedExternally ) : dynamic","docstring":""} {"signature":"external fun native ( path : Buffer , options : Nothing ? = definedExternally ) : dynamic","body":"external fun native ( path : Buffer , options : Nothing ? = definedExternally ) : dynamic","docstring":""} {"signature":"external fun native ( path : URL , options : `T$11` ? = definedExternally ) : dynamic","body":"external fun native ( path : URL , options : `T$11` ? = definedExternally ) : dynamic","docstring":""} {"signature":"external fun native ( path : URL , options : String ? = definedExternally ) : dynamic","body":"external fun native ( path : URL , options : String ? = definedExternally ) : dynamic","docstring":""} {"signature":"external fun native ( path : URL , options : Nothing ? = definedExternally ) : dynamic","body":"external fun native ( path : URL , options : Nothing ? = definedExternally ) : dynamic","docstring":""} {"signature":"external fun native ( path : String ) : String","body":"external fun native ( path : String ) : String","docstring":""} {"signature":"external fun native ( path : Buffer ) : String","body":"external fun native ( path : Buffer ) : String","docstring":""} {"signature":"external fun native ( path : URL ) : String","body":"external fun native ( path : URL ) : String","docstring":""} {"signature":"fun < T > error ( message : String ) : T ?","body":"{ configuration . report ( CompilerMessageSeverity . STRONG_WARNING , \"\" ) return null }","docstring":""} {"signature":"fun parseSingleTagLevel ( tagLevel : String ) : Pair < LoggingTag , LoggingLevel > ?","body":"{ val parts = tagLevel . split ( \"\" ) val tagStr = parts [ ] val tag = tagStr . let { LoggingTag . parse ( it ) ? : error ( \"\" ) } val levelStr = parts . getOrNull ( ) ? : error ( \"\" ) val level = parts . getOrNull ( ) ? . let { LoggingLevel . parse ( it ) ? : error ( \"\" ) } if ( level == LoggingLevel . None ) return error ( \"\" ) return tag ? . let { t -> level ? . let { l -> Pair ( t , l ) } } }","docstring":""} {"signature":"fun librariesWithDependencies ( ) : List < KonanLibrary >","body":"{ return resolvedLibraries . filterRoots { ( ! it . isDefault && ! this . purgeUserLibs ) || it . isNeededForLink } . getFullList ( TopologicalLibraryOrder ) . map { it as KonanLibrary } }","docstring":""} {"signature":"private fun StringBuilder . appendCommonCacheFlavor ( )","body":"{ append ( target . toString ( ) ) if ( debug ) append ( \"\" ) append ( \"\" ) if ( propertyLazyInitialization != defaultPropertyLazyInitialization ) append ( \"\" ) }","docstring":""} {"signature":"fun CompilerConfiguration . report ( priority : CompilerMessageSeverity , message : String ) ","body":"= this . getNotNull ( CLIConfigurationKeys . MESSAGE_COLLECTOR_KEY ) . report ( priority , message )","docstring":""} {"signature":"private fun String . isRelease ( ) : Boolean","body":"{ val versionPattern = \"\" . toRegex ( ) val ( _ , _ , _ , metaString , build ) = versionPattern . matchEntire ( this ) ? . destructured ? : throw IllegalStateException ( \"\" ) return metaString . isEmpty ( ) && build . isEmpty ( ) }","docstring":""} {"signature":"fun useRawReturnType ( )","body":"= RawReturnType . getRawList ( listOf ( \"\" ) )","docstring":""} {"signature":"fun codeIntervals ( code : String , magicsIntervals : Sequence < CodeInterval > = magicsIntervals ( code ) , preserveLinesEnumeration : Boolean = false , )","body":"= sequence { val newlineLength = code . determineSep ( ) . length var codeStart = for ( interval in magicsIntervals ) { if ( codeStart != interval . from ) { yield ( CodeInterval ( codeStart , interval . from ) ) } codeStart = interval . to if ( preserveLinesEnumeration && codeStart > && code [ codeStart - ] == '' ) { codeStart -= newlineLength } } if ( codeStart != code . length ) { yield ( CodeInterval ( codeStart , code . length ) ) } }","docstring":""} {"signature":"fun magicsIntervals ( code : String ) : Sequence < CodeInterval >","body":"{ val newlineLength = code . determineSep ( ) . length val maybeFirstMatch = if ( parseOutCellMarker ) CELL_MARKER_REGEX . find ( code , ) else null val seed = maybeFirstMatch ? : MAGICS_REGEX . find ( code , ) return generateSequence ( seed ) { MAGICS_REGEX . find ( code , it . range . last + ) } . map { val start = it . range . first val endOfLine = it . range . last + val end = if ( endOfLine + newlineLength <= code . length ) endOfLine + newlineLength else endOfLine CodeInterval ( start , end ) } }","docstring":""} {"signature":"fun getCleanCode ( code : String , magicIntervals : Sequence < CodeInterval > , ) : String","body":"{ val codes = codeIntervals ( code , magicIntervals , true ) return codes . joinToString ( \"\" ) { code . substring ( it . from , it . to ) } }","docstring":""} {"signature":"fun processSingleMagic ( code : String , handler : MagicsHandler , codeInterval : CodeInterval , parseOnly : Boolean = false , tryIgnoreErrors : Boolean = false , )","body":"{ if ( code [ codeInterval . from ] != MAGICS_SIGN ) return val magicText = code . substring ( codeInterval . from + , codeInterval . to ) . trim ( ) handler . handle ( magicText , tryIgnoreErrors , parseOnly ) }","docstring":""} {"signature":"@ DisplayName ( \"\" ) @ GradleTest fun testSwiftExportXCTests ( gradleVersion : GradleVersion )","body":"{ XCTestHelpers ( ) . use { val simulator = it . createSimulator ( ) . apply { boot ( ) } nativeProject ( \"\" , gradleVersion ) { projectPath . enableSwiftExport ( ) buildXcodeProject ( xcodeproj = projectPath . resolve ( \"\" ) , destination = \"\" , buildMode = XcodeBuildMode . TEST , extraArguments = mapOf ( \"\" to \"\" ) ) } } }","docstring":""} {"signature":"private fun createTestCaseNoTestRun ( module : TestModule . Exclusive , compilerArgs : TestCompilerArgs )","body":"= TestCase ( id = TestCaseId . Named ( module . name ) , kind = TestKind . STANDALONE_NO_TR , modules = setOf ( module ) , freeCompilerArgs = compilerArgs , nominalPackageName = PackageName . EMPTY , checks = TestRunChecks . Default ( testRunSettings . get < Timeouts > ( ) . executionTimeout ) , extras = TestCase . NoTestRunnerExtras ( \"\" ) ) . apply { initialize ( null , null ) }","docstring":""} {"signature":"internal fun compileToExecutable ( module : TestModule . Exclusive , dependencies : List < TestCompilationDependency < * > > , args : List < String > = emptyList ( ) )","body":"= compileToExecutable ( createTestCaseNoTestRun ( module , TestCompilerArgs ( args ) ) , dependencies )","docstring":""} {"signature":"internal fun compileToExecutable ( testCase : TestCase , dependencies : List < TestCompilationDependency < * > > ) : TestCompilationResult < out TestCompilationArtifact . Executable >","body":"{ val compilation = ExecutableCompilation ( settings = testRunSettings , freeCompilerArgs = testCase . freeCompilerArgs , sourceModules = testCase . modules , extras = TestCase . NoTestRunnerExtras ( \"\" ) , dependencies = dependencies , expectedArtifact = getExecutableArtifact ( ) ) return compilation . result }","docstring":""} {"signature":"private fun getExecutableArtifact ( )","body":"= TestCompilationArtifact . Executable ( buildDir . resolve ( \"\" + testRunSettings . get < KotlinNativeTargets > ( ) . testTarget . family . exeSuffix ) )","docstring":""} {"signature":"@ Suppress ( \"\" ) internal fun < T : Any > getOrCreateKotlinClass ( jClass : Class < T > ) : KClassImpl < T >","body":"= K_CLASS_CACHE . get ( jClass ) as KClassImpl < T >","docstring":""} {"signature":"internal fun < T : Any > getOrCreateKotlinPackage ( jClass : Class < T > ) : KDeclarationContainer","body":"= K_PACKAGE_CACHE . get ( jClass )","docstring":""} {"signature":"internal fun clearCaches ( )","body":"{ K_CLASS_CACHE . clear ( ) K_PACKAGE_CACHE . clear ( ) CACHE_FOR_BASE_CLASSIFIERS . clear ( ) CACHE_FOR_NULLABLE_BASE_CLASSIFIERS . clear ( ) CACHE_FOR_GENERIC_CLASSIFIERS . clear ( ) }","docstring":""} {"signature":"internal fun < T : Any > getOrCreateKType ( jClass : Class < T > , arguments : List < KTypeProjection > , isMarkedNullable : Boolean ) : KType","body":"{ return if ( arguments . isEmpty ( ) ) { if ( isMarkedNullable ) { CACHE_FOR_NULLABLE_BASE_CLASSIFIERS . get ( jClass ) } else { CACHE_FOR_BASE_CLASSIFIERS . get ( jClass ) } } else { getOrCreateKTypeWithTypeArguments ( jClass , arguments , isMarkedNullable ) } }","docstring":""} {"signature":"private fun < T : Any > getOrCreateKTypeWithTypeArguments ( jClass : Class < T > , arguments : List < KTypeProjection > , isMarkedNullable : Boolean ) : KType","body":"{ val cache = CACHE_FOR_GENERIC_CLASSIFIERS . get ( jClass ) return cache . getOrPut ( arguments to isMarkedNullable ) { getOrCreateKotlinClass ( jClass ) . createType ( arguments , isMarkedNullable , emptyList ( ) ) } }","docstring":""} {"signature":"override fun < E : CoroutineContext . Element > get ( key : CoroutineContext . Key < E > ) : E ?","body":"= getPolymorphicElement ( key )","docstring":""} {"signature":"override fun minusKey ( key : CoroutineContext . Key < * > ) : CoroutineContext","body":"= minusPolymorphicKey ( key )","docstring":""} {"signature":"@ Test fun testDerivedWithoutKey ( )","body":"{ val derivedWithoutKey = DerivedWithoutKey ( ) assertSame ( Base . Key , derivedWithoutKey . key ) testDerivedWithoutKey ( EmptyCoroutineContext , derivedWithoutKey ) testDerivedWithoutKey ( IrrelevantElement , derivedWithoutKey ) }","docstring":""} {"signature":"@ Test fun testDerivedWithoutKeyOverridesDerived ( )","body":"{ val context = DerivedWithKey ( ) + DerivedWithoutKey ( ) assertEquals ( , context . size ) assertTrue ( context [ Base ] is DerivedWithoutKey ) assertNull ( context [ DerivedWithKey ] ) assertEquals ( EmptyCoroutineContext , context . minusKey ( Base ) ) assertSame ( context , context . minusKey ( DerivedWithKey ) ) }","docstring":""} {"signature":"private fun testDerivedWithoutKey ( context : CoroutineContext , element : CoroutineContext . Element )","body":"{ val ctx = context + element assertEquals ( context . size + , ctx . size ) assertSame ( element , ctx [ Base ] ! ! ) assertNull ( ctx [ DerivedWithKey ] ) assertEquals ( context , ctx . minusKey ( Base ) ) assertSame ( ctx , ctx . minusKey ( DerivedWithKey ) ) }","docstring":""} {"signature":"@ Test fun testDerivedWithKey ( )","body":"{ val derivedWithKey = DerivedWithKey ( ) assertSame ( Base . Key , derivedWithKey . key ) testDerivedWithKey ( EmptyCoroutineContext , derivedWithKey ) testDerivedWithKey ( IrrelevantElement , derivedWithKey ) }","docstring":""} {"signature":"private fun testDerivedWithKey ( context : CoroutineContext , element : CoroutineContext . Element )","body":"{ val ctx = context + element assertEquals ( context . size + , ctx . size ) assertSame ( element , ctx [ Base ] ! ! ) assertSame ( element , ctx [ DerivedWithKey ] ! ! ) assertEquals ( context , ctx . minusKey ( Base ) ) assertEquals ( context , ctx . minusKey ( DerivedWithKey ) ) }","docstring":""} {"signature":"@ Test fun testSubDerivedWithKey ( )","body":"{ val subDerivedWithKey = SubDerivedWithKey ( ) assertSame ( Base . Key , subDerivedWithKey . key ) testSubDerivedWithKey ( EmptyCoroutineContext , subDerivedWithKey ) testSubDerivedWithKey ( IrrelevantElement , subDerivedWithKey ) }","docstring":""} {"signature":"private fun testSubDerivedWithKey ( context : CoroutineContext , element : CoroutineContext . Element )","body":"{ val ctx = context + element assertEquals ( context . size + , ctx . size ) assertSame ( element , ctx [ Base ] ! ! ) assertSame ( element , ctx [ DerivedWithKey ] ! ! ) assertSame ( element , ctx [ SubDerivedWithKey ] ! ! ) assertNull ( ctx [ SubDerivedWithKeyAndDifferentBase ] ) assertEquals ( context , ctx . minusKey ( Base ) ) assertEquals ( context , ctx . minusKey ( DerivedWithKey ) ) assertEquals ( context , ctx . minusKey ( SubDerivedWithKey ) ) assertSame ( ctx , ctx . minusKey ( SubDerivedWithKeyAndDifferentBase ) ) }","docstring":""} {"signature":"@ Test fun testSubDerivedWithKeyAndDifferentBase ( )","body":"{ val subDerivedWithKeyAndDifferentBase = SubDerivedWithKeyAndDifferentBase ( ) assertSame ( Base . Key , subDerivedWithKeyAndDifferentBase . key ) testSubDerivedWithKeyAndDifferentBase ( EmptyCoroutineContext , subDerivedWithKeyAndDifferentBase ) testSubDerivedWithKeyAndDifferentBase ( IrrelevantElement , subDerivedWithKeyAndDifferentBase ) }","docstring":""} {"signature":"private fun testSubDerivedWithKeyAndDifferentBase ( context : CoroutineContext , element : CoroutineContext . Element )","body":"{ val ctx = context + element assertEquals ( context . size + , ctx . size ) assertSame ( element , ctx [ Base ] ! ! ) assertSame ( element , ctx [ DerivedWithKey ] ! ! ) assertSame ( element , ctx [ SubDerivedWithKeyAndDifferentBase ] ! ! ) assertNull ( ctx [ SubDerivedWithKey ] ) assertEquals ( context , ctx . minusKey ( Base ) ) assertEquals ( context , ctx . minusKey ( DerivedWithKey ) ) assertEquals ( context , ctx . minusKey ( SubDerivedWithKeyAndDifferentBase ) ) assertSame ( ctx , ctx . minusKey ( SubDerivedWithKey ) ) }","docstring":""} {"signature":"@ Test fun testDerivedWithKeyOverridesDerived ( )","body":"{ val context = DerivedWithoutKey ( ) + DerivedWithKey ( ) assertEquals ( , context . size ) assertTrue { context [ Base ] is DerivedWithKey } assertTrue { context [ DerivedWithKey ] is DerivedWithKey } assertEquals ( EmptyCoroutineContext , context . minusKey ( Base ) ) assertEquals ( EmptyCoroutineContext , context . minusKey ( DerivedWithKey ) ) }","docstring":""} {"signature":"@ Test fun testSubDerivedOverrides ( )","body":"{ val key = SubDerivedWithKeyAndDifferentBase testSubDerivedOverrides < SubDerivedWithKeyAndDifferentBase > ( DerivedWithoutKey ( ) + SubDerivedWithKeyAndDifferentBase ( ) , key ) testSubDerivedOverrides < SubDerivedWithKeyAndDifferentBase > ( DerivedWithKey ( ) + SubDerivedWithKeyAndDifferentBase ( ) , key ) testSubDerivedOverrides < SubDerivedWithKeyAndDifferentBase > ( SubDerivedWithKeyAndDifferentBase ( ) + SubDerivedWithKeyAndDifferentBase ( ) , key ) }","docstring":""} {"signature":"@ Test fun testSubDerivedWithDifferentBaseOverrides ( )","body":"{ val key = SubDerivedWithKey testSubDerivedOverrides < SubDerivedWithKey > ( DerivedWithoutKey ( ) + SubDerivedWithKey ( ) , key ) testSubDerivedOverrides < SubDerivedWithKey > ( DerivedWithKey ( ) + SubDerivedWithKey ( ) , key ) testSubDerivedOverrides < SubDerivedWithKey > ( SubDerivedWithKeyAndDifferentBase ( ) + SubDerivedWithKey ( ) , key ) }","docstring":""} {"signature":"private inline fun < reified T : CoroutineContext . Element > testSubDerivedOverrides ( context : CoroutineContext , key : CoroutineContext . Key < T > )","body":"{ assertEquals ( , context . size ) assertTrue { context [ Base ] is DerivedWithKey } assertTrue { context [ DerivedWithKey ] is DerivedWithKey } assertTrue { context [ DerivedWithKey ] is T } assertTrue { context [ key ] is T } assertEquals ( EmptyCoroutineContext , context . minusKey ( Base ) ) assertEquals ( EmptyCoroutineContext , context . minusKey ( DerivedWithKey ) ) }","docstring":""} {"signature":"fun file0 ( )","body":"{ }","docstring":""} {"signature":"@ ObsoleteTestInfrastructure fun createSessionForTests ( projectEnvironment : AbstractProjectEnvironment , javaSourceScope : AbstractProjectFileSearchScope , librariesScope : AbstractProjectFileSearchScope = ! javaSourceScope , moduleName : String = \"\" , friendsPaths : List < Path > = emptyList ( ) , languageVersionSettings : LanguageVersionSettings = LanguageVersionSettingsImpl . DEFAULT ) : FirSession","body":"= FirSessionFactoryHelper . createSessionWithDependencies ( Name . identifier ( moduleName ) , JvmPlatforms . unspecifiedJvmPlatform , externalSessionProvider = null , projectEnvironment , languageVersionSettings , javaSourceScope , librariesScope , lookupTracker = null , enumWhenTracker = null , importTracker = null , incrementalCompilationContext = null , extensionRegistrars = emptyList ( ) , needRegisterJavaElementFinder = true , dependenciesConfigurator = { friendDependencies ( friendsPaths ) } )","docstring":""} {"signature":"@ ObsoleteTestInfrastructure fun createSessionForTests ( project : Project , sourceScope : GlobalSearchScope , librariesScope : GlobalSearchScope , moduleName : String = \"\" , friendsPaths : List < Path > = emptyList ( ) , getPackagePartProvider : ( GlobalSearchScope ) -> PackagePartProvider , ) : FirSession","body":"{ return FirSessionFactoryHelper . createSessionWithDependencies ( Name . identifier ( moduleName ) , JvmPlatforms . unspecifiedJvmPlatform , externalSessionProvider = null , VfsBasedProjectEnvironment ( project , VirtualFileManager . getInstance ( ) . getFileSystem ( StandardFileSystems . FILE_PROTOCOL ) , getPackagePartProvider ) , languageVersionSettings = LanguageVersionSettingsImpl . DEFAULT , PsiBasedProjectFileSearchScope ( sourceScope ) , PsiBasedProjectFileSearchScope ( librariesScope ) , lookupTracker = null , enumWhenTracker = null , importTracker = null , incrementalCompilationContext = null , extensionRegistrars = emptyList ( ) , needRegisterJavaElementFinder = true , dependenciesConfigurator = { friendDependencies ( friendsPaths ) } ) }","docstring":""} {"signature":"@ Deprecated ( \"\" ) override operator fun Entities . unaryPlus ( ) : Unit","body":"{ @ Suppress ( \"\" ) entity ( this ) }","docstring":""} {"signature":"@ Deprecated ( \"\" ) override operator fun String . unaryPlus ( ) : Unit","body":"{ @ Suppress ( \"\" ) text ( this ) }","docstring":""} {"signature":"@ Deprecated ( \"\" ) override fun text ( s : String ) : Unit","body":"{ super < HTMLTag > . text ( s ) }","docstring":""} {"signature":"@ Deprecated ( \"\" ) override fun text ( n : Number ) : Unit","body":"{ super < HTMLTag > . text ( n ) }","docstring":""} {"signature":"@ Deprecated ( \"\" ) override fun entity ( e : Entities ) : Unit","body":"{ super < HTMLTag > . entity ( e ) }","docstring":""} {"signature":"@ HtmlTagMarker inline fun SELECT . option ( classes : String ? = null , crossinline block : OPTION . ( ) -> Unit = { } ) : Unit","body":"= OPTION ( attributesMapOf ( \"\" , classes ) , consumer ) . visit ( block )","docstring":"/**\n * Selectable choice\n */"} {"signature":"@ HtmlTagMarker fun SELECT . option ( classes : String ? = null , content : String = \"\" ) : Unit","body":"= OPTION ( attributesMapOf ( \"\" , classes ) , consumer ) . visit ( { + content } )","docstring":"/**\n * Selectable choice\n */"} {"signature":"@ HtmlTagMarker inline fun SELECT . optGroup ( label : String ? = null , classes : String ? = null , crossinline block : OPTGROUP . ( ) -> Unit = { } ) : Unit","body":"= OPTGROUP ( attributesMapOf ( \"\" , label , \"\" , classes ) , consumer ) . visit ( block )","docstring":"/**\n * Option group\n */"} {"signature":"@ Deprecated ( \"\" ) override operator fun Entities . unaryPlus ( ) : Unit","body":"{ @ Suppress ( \"\" ) entity ( this ) }","docstring":""} {"signature":"@ Deprecated ( \"\" ) override operator fun String . unaryPlus ( ) : Unit","body":"{ @ Suppress ( \"\" ) text ( this ) }","docstring":""} {"signature":"@ Deprecated ( \"\" ) override fun text ( s : String ) : Unit","body":"{ super < HTMLTag > . text ( s ) }","docstring":""} {"signature":"@ Deprecated ( \"\" ) override fun text ( n : Number ) : Unit","body":"{ super < HTMLTag > . text ( n ) }","docstring":""} {"signature":"@ Deprecated ( \"\" ) override fun entity ( e : Entities ) : Unit","body":"{ super < HTMLTag > . entity ( e ) }","docstring":""} {"signature":"public fun depth ( ) : Int","body":"= path . depth ( )","docstring":""} {"signature":"public fun < C > getCol ( accessor : ColumnReference < C > ) : ColumnWithPath < C > ?","body":"= asColumnGroup ( ) . getColumnOrNull ( accessor ) ? . addPath ( path + accessor . path ( ) )","docstring":"/**\n * Casts this column to a [ColumnGroup] and returns a column with the specified [accessor] or null if it\n * can't be found.\n */"} {"signature":"public fun getCol ( name : String ) : ColumnWithPath < Any ? > ?","body":"= asColumnGroup ( ) . getColumnOrNull ( name ) ? . addParentPath ( path )","docstring":"/**\n * Casts this column to a [ColumnGroup] and returns a column with the specified [name] or null if it\n * can't be found.\n */"} {"signature":"public fun getCol ( index : Int ) : ColumnWithPath < Any ? > ?","body":"= asColumnGroup ( ) . getColumnOrNull ( index ) ? . addParentPath ( path )","docstring":"/**\n * Casts this column to a [ColumnGroup] and returns a column with the specified [index] or null if it\n * can't be found.\n */"} {"signature":"public fun < C > getCol ( accessor : KProperty < C > ) : ColumnWithPath < C > ?","body":"= asColumnGroup ( ) . getColumnOrNull ( accessor ) ? . addParentPath ( path )","docstring":"/**\n * Casts this column to a [ColumnGroup] and returns a column with the specified [accessor] or null if it\n * can't be found.\n */"} {"signature":"public fun cols ( ) : List < ColumnWithPath < Any ? > >","body":"= if ( isColumnGroup ( ) ) { data . asColumnGroup ( ) . columns ( ) . map { it . addParentPath ( path ) } } else { emptyList ( ) }","docstring":"/**\n * Returns all (\"children\") columns in this column if it's a group, else it returns an empty list.\n */"} {"signature":"override fun path ( ) : ColumnPath","body":"= path","docstring":""} {"signature":"override fun rename ( newName : String ) : ColumnWithPath < T >","body":"override fun rename ( newName : String ) : ColumnWithPath < T >","docstring":""} {"signature":"@ Deprecated ( message = COLUMN_WITH_PATH_MESSAGE , replaceWith = ReplaceWith ( \"\" ) , level = DeprecationLevel . ERROR , ) public fun < C > getChild ( accessor : ColumnReference < C > ) : ColumnWithPath < C > ?","body":"= getCol ( accessor )","docstring":""} {"signature":"@ Deprecated ( message = COLUMN_WITH_PATH_MESSAGE , replaceWith = ReplaceWith ( \"\" ) , level = DeprecationLevel . ERROR , ) public fun getChild ( name : String ) : ColumnWithPath < Any ? > ?","body":"= getCol ( name )","docstring":""} {"signature":"@ Deprecated ( message = COLUMN_WITH_PATH_MESSAGE , replaceWith = ReplaceWith ( \"\" ) , level = DeprecationLevel . ERROR , ) public fun getChild ( index : Int ) : ColumnWithPath < Any ? > ?","body":"= getCol ( index )","docstring":""} {"signature":"@ Deprecated ( message = COLUMN_WITH_PATH_MESSAGE , replaceWith = ReplaceWith ( \"\" ) , level = DeprecationLevel . ERROR , ) public fun < C > getChild ( accessor : KProperty < C > ) : ColumnWithPath < C > ?","body":"= getCol ( accessor )","docstring":""} {"signature":"@ Deprecated ( message = COLUMN_WITH_PATH_MESSAGE , replaceWith = ReplaceWith ( \"\" ) , level = DeprecationLevel . ERROR , ) public fun children ( ) : List < ColumnWithPath < Any ? > >","body":"= cols ( )","docstring":""} {"signature":"public abstract fun evaluate ( expression : KtExpression , mode : KtConstantEvaluationMode , ) : KtConstantValue ?","body":"public abstract fun evaluate ( expression : KtExpression , mode : KtConstantEvaluationMode , ) : KtConstantValue ?","docstring":""} {"signature":"public abstract fun evaluateAsAnnotationValue ( expression : KtExpression ) : KtAnnotationValue ?","body":"public abstract fun evaluateAsAnnotationValue ( expression : KtExpression ) : KtAnnotationValue ?","docstring":""} {"signature":"public fun KtExpression . evaluate ( mode : KtConstantEvaluationMode ) : KtConstantValue ?","body":"= withValidityAssertion { analysisSession . compileTimeConstantProvider . evaluate ( this , mode ) }","docstring":"/**\n * Tries to evaluate the provided expression using the specified mode.\n * Returns a [KtConstantValue] if the expression evaluates to a compile-time constant, otherwise returns null..\n */"} {"signature":"public fun KtExpression . evaluateAsAnnotationValue ( ) : KtAnnotationValue ?","body":"= withValidityAssertion { analysisSession . compileTimeConstantProvider . evaluateAsAnnotationValue ( this ) }","docstring":"/**\n * Returns a [KtConstantValue] if the expression evaluates to a value that can be used as an annotation parameter value,\n * e.g. an array of constants, otherwise returns null.\n */"} {"signature":"override fun onCreate ( savedInstanceState : Bundle ? )","body":"{ super . onCreate ( savedInstanceState ) arguments ? . let { param1 = it . getString ( ARG_PARAM1 ) param2 = it . getString ( ARG_PARAM2 ) } }","docstring":""} {"signature":"override fun onCreateView ( inflater : LayoutInflater , container : ViewGroup ? , savedInstanceState : Bundle ? ) : View ?","body":"{ return inflater . inflate ( R . layout . fragment_destination_fragment1 , container , false ) }","docstring":""} {"signature":"fun onButtonPressed ( uri : Uri )","body":"{ listener ? . onFragmentInteraction ( uri ) }","docstring":""} {"signature":"override fun onAttach ( context : Context )","body":"{ super . onAttach ( context ) if ( context is OnFragmentInteractionListener ) { listener = context } else { throw RuntimeException ( context . toString ( ) + \"\" ) } }","docstring":""} {"signature":"override fun onDetach ( )","body":"{ super . onDetach ( ) listener = null }","docstring":""} {"signature":"fun onFragmentInteraction ( uri : Uri )","body":"fun onFragmentInteraction ( uri : Uri )","docstring":""} {"signature":"@ JvmStatic fun newInstance ( param1 : String , param2 : String )","body":"= DestinationFragment1 ( ) . apply { arguments = Bundle ( ) . apply { putString ( ARG_PARAM1 , param1 ) putString ( ARG_PARAM2 , param2 ) } }","docstring":"/**\n * Use this factory method to create a new instance of\n * this fragment using the provided parameters.\n *\n * @param param1 Parameter 1.\n * @param param2 Parameter 2.\n * @return A new instance of fragment DestinationFragment1.\n */"} {"signature":"internal fun KotlinLibrary . getAllTransitiveDependencies ( allLibraries : Map < String , KotlinLibrary > ) : List < KotlinLibrary >","body":"{ val allDependencies = mutableSetOf < KotlinLibrary > ( ) fun traverseDependencies ( library : KotlinLibrary ) { library . unresolvedDependencies . forEach { val dependency = allLibraries [ it . path ] ! ! if ( dependency !in allDependencies ) { allDependencies += dependency traverseDependencies ( dependency ) } } } traverseDependencies ( this ) return allDependencies . toList ( ) }","docstring":""} {"signature":"fun needToBuild ( )","body":"= konanConfig . isFinalBinary && konanConfig . ignoreCacheReason == null && ( autoCacheableFrom . isNotEmpty ( ) || icEnabled )","docstring":""} {"signature":"private fun findAllDependable ( libraries : List < KotlinLibrary > ) : Set < KotlinLibrary >","body":"{ val visited = mutableSetOf < KotlinLibrary > ( ) fun dfs ( library : KotlinLibrary ) { visited . add ( library ) dependableLibraries [ library ] ? . forEach { if ( it !in visited ) dfs ( it ) } } libraries . forEach { if ( it !in visited ) dfs ( it ) } return visited }","docstring":""} {"signature":"override fun toString ( )","body":"= \"\"","docstring":""} {"signature":"fun build ( )","body":"{ val externalLibrariesToCache = mutableListOf < KotlinLibrary > ( ) val icedLibraries = mutableListOf < KotlinLibrary > ( ) val stdlib = konanConfig . distribution . stdlib allLibraries . forEach { library -> val isSubjectOfIC = ! library . isDefault && ! library . isExternal && ! library . libraryName . startsWith ( stdlib ) val cache = konanConfig . cachedLibraries . getLibraryCache ( library , allowIncomplete = isSubjectOfIC ) cache ? . let { caches [ library ] = it cacheRootDirectories [ library ] = it . rootDirectory } if ( isSubjectOfIC ) { icedLibraries += library } else { if ( cache == null ) externalLibrariesToCache += library } library . unresolvedDependencies . forEach { val dependency = uniqueNameToLibrary [ it . path ] ! ! dependableLibraries . getOrPut ( dependency ) { mutableListOf ( ) } . add ( library ) } } externalLibrariesToCache . forEach { buildLibraryCache ( it , true , emptyList ( ) ) } if ( ! icEnabled ) return val needFullRebuild = findAllDependable ( externalLibrariesToCache ) val libraryFilesWithFqNames = mutableMapOf < KotlinLibrary , List < FileWithFqName > > ( ) val changedFiles = mutableListOf < LibraryFile > ( ) val removedFiles = mutableListOf < LibraryFile > ( ) val addedFiles = mutableListOf < LibraryFile > ( ) val reversedPerFileDependencies = mutableMapOf < LibraryFile , MutableList < LibraryFile > > ( ) val reversedWholeLibraryDependencies = mutableMapOf < KotlinLibrary , MutableList < LibraryFile > > ( ) for ( library in icedLibraries ) { if ( library in needFullRebuild ) continue val cache = caches [ library ] ? : continue if ( cache !is CachedLibraries . Cache . PerFile ) { require ( library . isInteropLibrary ( ) ) continue } val libraryCacheRootDir = File ( cache . path ) val cachedFiles = libraryCacheRootDir . listFiles . map { it . name } val actualFilesWithFqNames = library . getFilesWithFqNames ( ) libraryFilesWithFqNames [ library ] = actualFilesWithFqNames val actualFiles = actualFilesWithFqNames . withIndex ( ) . associate { CacheSupport . cacheFileId ( it . value . fqName , it . value . filePath ) to it . index } . toMutableMap ( ) for ( cachedFile in cachedFiles ) { val libraryFile = LibraryFile ( library , cachedFile ) val fileIndex = actualFiles [ cachedFile ] if ( fileIndex == null ) { removedFiles . add ( libraryFile ) } else { actualFiles . remove ( cachedFile ) val actualContentHash = SerializedIrFileFingerprint ( library , fileIndex ) . fileFingerprint val previousContentHash = FingerprintHash . fromByteArray ( cache . getFileHash ( cachedFile ) ) if ( previousContentHash != actualContentHash ) changedFiles . add ( libraryFile ) val dependencies = cache . getFileDependencies ( cachedFile ) for ( dependency in dependencies ) { val dependentLibrary = uniqueNameToLibrary [ dependency . libName ] ? : error ( \"\" ) when ( val kind = dependency . kind ) { is DependenciesTracker . DependencyKind . WholeModule -> reversedWholeLibraryDependencies . getOrPut ( dependentLibrary ) { mutableListOf ( ) } . add ( libraryFile ) is DependenciesTracker . DependencyKind . CertainFiles -> kind . files . forEach { reversedPerFileDependencies . getOrPut ( LibraryFile ( dependentLibrary , it ) ) { mutableListOf ( ) } . add ( libraryFile ) } } } } } for ( newFile in actualFiles . keys ) addedFiles . add ( LibraryFile ( library , newFile ) ) } configuration . report ( CompilerMessageSeverity . LOGGING , \"\" ) configuration . report ( CompilerMessageSeverity . LOGGING , \"\" ) icedLibraries . filter { caches [ it ] != null } . forEach { configuration . report ( CompilerMessageSeverity . LOGGING , \"\" ) } configuration . report ( CompilerMessageSeverity . LOGGING , \"\" ) icedLibraries . filter { caches [ it ] == null } . forEach { configuration . report ( CompilerMessageSeverity . LOGGING , \"\" ) } configuration . report ( CompilerMessageSeverity . LOGGING , \"\" ) icedLibraries . filter { it in needFullRebuild } . forEach { configuration . report ( CompilerMessageSeverity . LOGGING , \"\" ) } configuration . report ( CompilerMessageSeverity . LOGGING , \"\" ) addedFiles . forEach { configuration . report ( CompilerMessageSeverity . LOGGING , \"\" ) } configuration . report ( CompilerMessageSeverity . LOGGING , \"\" ) removedFiles . forEach { configuration . report ( CompilerMessageSeverity . LOGGING , \"\" ) } configuration . report ( CompilerMessageSeverity . LOGGING , \"\" ) changedFiles . forEach { configuration . report ( CompilerMessageSeverity . LOGGING , \"\" ) } val dirtyFiles = mutableSetOf < LibraryFile > ( ) fun dfs ( libraryFile : LibraryFile ) { dirtyFiles += libraryFile reversedPerFileDependencies [ libraryFile ] ? . forEach { if ( it !in dirtyFiles ) dfs ( it ) } } removedFiles . forEach { if ( it !in dirtyFiles ) dfs ( it ) } changedFiles . forEach { if ( it !in dirtyFiles ) dfs ( it ) } dirtyFiles . addAll ( addedFiles ) removedFiles . forEach { dirtyFiles . remove ( it ) File ( caches [ it . library ] ! ! . rootDirectory ) . child ( it . file ) . deleteRecursively ( ) } val groupedDirtyFiles = dirtyFiles . groupBy { it . library } configuration . report ( CompilerMessageSeverity . LOGGING , \"\" ) groupedDirtyFiles . values . flatten ( ) . forEach { configuration . report ( CompilerMessageSeverity . LOGGING , \"\" ) } for ( library in icedLibraries ) { val filesToCache = groupedDirtyFiles [ library ] ? . let { libraryFiles -> val filesWithFqNames = libraryFilesWithFqNames [ library ] ! ! . associateBy { CacheSupport . cacheFileId ( it . fqName , it . filePath ) } libraryFiles . map { filesWithFqNames [ it . file ] ! ! . filePath } } . orEmpty ( ) when { library in needFullRebuild -> buildLibraryCache ( library , false , emptyList ( ) ) caches [ library ] == null || filesToCache . isNotEmpty ( ) -> buildLibraryCache ( library , false , filesToCache ) } } }","docstring":""} {"signature":"private fun buildLibraryCache ( library : KotlinLibrary , isExternal : Boolean , filesToCache : List < String > )","body":"{ val dependencies = library . getAllTransitiveDependencies ( uniqueNameToLibrary ) val dependencyCaches = dependencies . map { cacheRootDirectories [ it ] ? : run { configuration . report ( CompilerMessageSeverity . LOGGING , \"\" ) return } } configuration . report ( CompilerMessageSeverity . LOGGING , \"\" ) filesToCache . forEach { configuration . report ( CompilerMessageSeverity . LOGGING , \"\" ) } val makePerFileCache = ! isExternal && ! library . isInteropLibrary ( ) val libraryCacheDirectory = when { library . isDefault -> konanConfig . systemCacheDirectory isExternal -> CachedLibraries . computeVersionedCacheDirectory ( konanConfig . autoCacheDirectory , library , uniqueNameToLibrary , uniqueNameToHash ) else -> konanConfig . incrementalCacheDirectory ! ! } val libraryCache = libraryCacheDirectory . child ( if ( makePerFileCache ) CachedLibraries . getPerFileCachedLibraryName ( library ) else CachedLibraries . getCachedLibraryName ( library ) ) try { libraryCacheDirectory . mkdirs ( ) compilationSpawner . spawn ( konanConfig . additionalCacheFlags ) { val libraryPath = library . libraryFile . absolutePath val libraries = dependencies . filter { ! it . isDefault } . map { it . libraryFile . absolutePath } val cachedLibraries = dependencies . zip ( dependencyCaches ) . associate { it . first . libraryFile . absolutePath to it . second } configuration . report ( CompilerMessageSeverity . LOGGING , \"\" + libraries . joinToString ( \"\" ) ) configuration . report ( CompilerMessageSeverity . LOGGING , \"\" + cachedLibraries . entries . joinToString ( \"\" ) { \"\" } ) configuration . report ( CompilerMessageSeverity . LOGGING , \"\" + libraryCacheDirectory . absolutePath ) setupCommonOptionsForCaches ( konanConfig ) put ( KonanConfigKeys . PRODUCE , CompilerOutputKind . STATIC_CACHE ) put ( KonanConfigKeys . LIBRARY_TO_ADD_TO_CACHE , libraryPath ) put ( KonanConfigKeys . NODEFAULTLIBS , true ) put ( KonanConfigKeys . NOENDORSEDLIBS , true ) put ( KonanConfigKeys . NOSTDLIB , true ) put ( KonanConfigKeys . LIBRARY_FILES , libraries ) if ( generateTestRunner != TestRunnerKind . NONE && libraryPath in includedLibraries ) { put ( KonanConfigKeys . GENERATE_TEST_RUNNER , generateTestRunner ) put ( KonanConfigKeys . INCLUDED_LIBRARIES , listOf ( libraryPath ) ) configuration . get ( KonanConfigKeys . TEST_DUMP_OUTPUT_PATH ) ? . let { put ( KonanConfigKeys . TEST_DUMP_OUTPUT_PATH , it ) } } put ( KonanConfigKeys . CACHED_LIBRARIES , cachedLibraries ) put ( KonanConfigKeys . CACHE_DIRECTORIES , listOf ( libraryCacheDirectory . absolutePath ) ) put ( KonanConfigKeys . MAKE_PER_FILE_CACHE , makePerFileCache ) if ( filesToCache . isNotEmpty ( ) ) put ( KonanConfigKeys . FILES_TO_CACHE , filesToCache ) } cacheRootDirectories [ library ] = libraryCache . absolutePath } catch ( t : Throwable ) { configuration . report ( CompilerMessageSeverity . LOGGING , \"\" ) configuration . report ( CompilerMessageSeverity . WARNING , \"\" + \"\" ) libraryCache . deleteRecursively ( ) } }","docstring":""} {"signature":"override fun resolve ( resolveAsInput : Boolean ) : Constraint","body":"{ val functionConstraint = callTarget . resolve ( ) if ( functionConstraint is FunctionConstraint ) { if ( functionConstraint . overloads . size == ) { val parameters = functionConstraint . overloads [ ] . parameterConstraints if ( parameters . size > argumentNum ) { return parameters [ argumentNum ] . second . resolve ( resolveAsInput = true ) } } else { return UnionTypeConstraint ( functionConstraint . overloads . mapNotNull { if ( it . parameterConstraints . size > argumentNum ) { it . parameterConstraints [ argumentNum ] . second . resolve ( resolveAsInput = true ) } else null } ) . resolve ( ) } } return CompositeConstraint ( owner ) }","docstring":""} {"signature":"public fun foo ( p : List < String > )","body":"public fun foo ( p : List < String > )","docstring":""} {"signature":"public fun dummy ( )","body":"public fun dummy ( )","docstring":""} {"signature":"override fun foo ( p : List < String > )","body":"override fun foo ( p : List < String > )","docstring":""} {"signature":"fun test1 ( v : B )","body":"{ v += B ( ) }","docstring":""} {"signature":"@ JvmStatic operator fun B . plusAssign ( b : B )","body":"{ this . s += b . s }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val b1 = B ( ) with ( A ) { b1 += B ( ) } if ( b1 . s != ) return \"\" val b = B ( ) A . test1 ( b ) if ( b . s != ) return \"\" return \"\" }","docstring":""} {"signature":"fun foo ( x : Any , y : Any )","body":"{ }","docstring":""} {"signature":"fun box ( ) : String","body":"{ var q = \"\" foo ( if ( y ) { q = \"\" ; zByte } else zShort , return q ) }","docstring":""} {"signature":"override fun report ( whenExpressionFilePath : String , enumClassFqName : String )","body":"{ enumWhenTracker . report ( whenExpressionFilePath , enumClassFqName ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val array = Array ( ) { } val array1 = Array ( ) { } var j = assertFailsWith < IndexOutOfBoundsException > { for ( i in array . indices ) { array [ j ] = j ++ } } assertFailsWith < IndexOutOfBoundsException > { for ( i in array . indices ) { array [ i + ] = } } assertFailsWith < IndexOutOfBoundsException > { for ( i in array . indices ) { array1 [ i ] = } } return \"\" }","docstring":""} {"signature":"fun bar ( )","body":"{ buildList { add ( \"\" ) println ( this . plus ( ) [ ] ) } }","docstring":""} {"signature":"@ Deprecated ( \"\" , level = DeprecationLevel . HIDDEN ) fun Any ? . toIrConst ( irType : IrType , startOffset : Int = SYNTHETIC_OFFSET , endOffset : Int = SYNTHETIC_OFFSET ) : IrConst < * >","body":"= toIrConst ( irType , startOffset , endOffset )","docstring":""} {"signature":"internal fun IrFunction . createCall ( origin : IrStatementOrigin ? = null ) : IrCall","body":"{ this as IrSimpleFunction return IrCallImpl ( SYNTHETIC_OFFSET , SYNTHETIC_OFFSET , returnType , symbol , typeParameters . size , valueParameters . size , origin ) }","docstring":""} {"signature":"internal fun IrConstructor . createConstructorCall ( irType : IrType = returnType ) : IrConstructorCall","body":"{ return IrConstructorCallImpl . fromSymbolOwner ( SYNTHETIC_OFFSET , SYNTHETIC_OFFSET , irType , symbol ) }","docstring":""} {"signature":"internal fun IrValueDeclaration . createGetValue ( ) : IrGetValue","body":"{ return IrGetValueImpl ( SYNTHETIC_OFFSET , SYNTHETIC_OFFSET , this . type , this . symbol ) }","docstring":""} {"signature":"internal fun IrValueDeclaration . createTempVariable ( ) : IrVariable","body":"{ return IrVariableImpl ( SYNTHETIC_OFFSET , SYNTHETIC_OFFSET , IrDeclarationOrigin . IR_TEMPORARY_VARIABLE , IrVariableSymbolImpl ( ) , this . name , this . type , isVar = false , isConst = false , isLateinit = false ) }","docstring":""} {"signature":"internal fun IrClass . createGetObject ( ) : IrGetObjectValue","body":"{ return IrGetObjectValueImpl ( SYNTHETIC_OFFSET , SYNTHETIC_OFFSET , this . defaultType , this . symbol ) }","docstring":""} {"signature":"internal fun IrFunction . createReturn ( value : IrExpression ) : IrReturn","body":"{ return IrReturnImpl ( SYNTHETIC_OFFSET , SYNTHETIC_OFFSET , this . returnType , this . symbol , value ) }","docstring":""} {"signature":"internal fun createTempFunction ( name : Name , type : IrType , origin : IrDeclarationOrigin = TEMP_FUNCTION_FOR_INTERPRETER , visibility : DescriptorVisibility = DescriptorVisibilities . PUBLIC ) : IrSimpleFunction","body":"{ return IrFactoryImpl . createSimpleFunction ( startOffset = SYNTHETIC_OFFSET , endOffset = SYNTHETIC_OFFSET , origin = origin , name = name , visibility = visibility , isInline = false , isExpect = false , returnType = type , modality = Modality . FINAL , symbol = IrSimpleFunctionSymbolImpl ( ) , isTailrec = false , isSuspend = false , isOperator = true , isInfix = false , isExternal = false , ) }","docstring":""} {"signature":"internal fun createTempClass ( name : Name , origin : IrDeclarationOrigin = TEMP_CLASS_FOR_INTERPRETER ) : IrClass","body":"{ return IrFactoryImpl . createClass ( startOffset = SYNTHETIC_OFFSET , endOffset = SYNTHETIC_OFFSET , origin = origin , name = name , visibility = DescriptorVisibilities . PRIVATE , symbol = IrClassSymbolImpl ( ) , kind = ClassKind . CLASS , modality = Modality . FINAL , ) }","docstring":""} {"signature":"internal fun IrFunction . createGetField ( ) : IrExpression","body":"{ val backingField = this . property ! ! . backingField ! ! val receiver = dispatchReceiverParameter ? : extensionReceiverParameter return backingField . createGetField ( receiver ) }","docstring":""} {"signature":"internal fun IrField . createGetField ( receiver : IrValueParameter ? = null ) : IrGetField","body":"{ return IrGetFieldImpl ( SYNTHETIC_OFFSET , SYNTHETIC_OFFSET , this . symbol , this . type , receiver ? . createGetValue ( ) ) }","docstring":""} {"signature":"internal fun List < IrStatement > . wrapWithBlockBody ( ) : IrBlockBody","body":"{ return IrFactoryImpl . createBlockBody ( SYNTHETIC_OFFSET , SYNTHETIC_OFFSET , this ) }","docstring":""} {"signature":"internal fun IrFunctionAccessExpression . shallowCopy ( copyTypeArguments : Boolean = true ) : IrFunctionAccessExpression","body":"{ return when ( this ) { is IrCall -> symbol . owner . createCall ( ) is IrConstructorCall -> symbol . owner . createConstructorCall ( ) is IrDelegatingConstructorCall -> IrDelegatingConstructorCallImpl . fromSymbolOwner ( SYNTHETIC_OFFSET , SYNTHETIC_OFFSET , type , symbol ) is IrEnumConstructorCall -> IrEnumConstructorCallImpl ( SYNTHETIC_OFFSET , SYNTHETIC_OFFSET , type , symbol , typeArgumentsCount , valueArgumentsCount ) else -> TODO ( \"\" ) } . apply { if ( copyTypeArguments ) { ( until this @ shallowCopy . typeArgumentsCount ) . forEach { this . putTypeArgument ( it , this @ shallowCopy . getTypeArgument ( it ) ) } } } }","docstring":""} {"signature":"internal fun IrBuiltIns . copyArgs ( from : IrFunctionAccessExpression , into : IrFunctionAccessExpression )","body":"{ into . dispatchReceiver = from . dispatchReceiver into . extensionReceiver = from . extensionReceiver ( until from . valueArgumentsCount ) . map { from . getValueArgument ( it ) } . forEachIndexed { i , arg -> into . putValueArgument ( i , arg ? : IrConstImpl . constNull ( SYNTHETIC_OFFSET , SYNTHETIC_OFFSET , this . anyNType ) ) } }","docstring":""} {"signature":"internal fun IrBuiltIns . irEquals ( arg1 : IrExpression , arg2 : IrExpression ) : IrCall","body":"{ val equalsCall = this . eqeqSymbol . owner . createCall ( IrStatementOrigin . EQEQ ) equalsCall . putValueArgument ( , arg1 ) equalsCall . putValueArgument ( , arg2 ) return equalsCall }","docstring":""} {"signature":"internal fun IrBuiltIns . irIfNullThenElse ( nullableArg : IrExpression , ifTrue : IrExpression , ifFalse : IrExpression ) : IrWhen","body":"{ val nullCondition = this . irEquals ( nullableArg , IrConstImpl . constNull ( SYNTHETIC_OFFSET , SYNTHETIC_OFFSET , this . anyNType ) ) val trueBranch = IrBranchImpl ( nullCondition , ifTrue ) val elseBranch = IrElseBranchImpl ( IrConstImpl . constTrue ( SYNTHETIC_OFFSET , SYNTHETIC_OFFSET , this . booleanType ) , ifFalse ) return IrIfThenElseImpl ( SYNTHETIC_OFFSET , SYNTHETIC_OFFSET , ifTrue . type ) . apply { branches += listOf ( trueBranch , elseBranch ) } }","docstring":""} {"signature":"internal fun IrBuiltIns . emptyArrayConstructor ( arrayType : IrType ) : IrConstructorCall","body":"{ val arrayClass = arrayType . classOrNull ! ! . owner val constructor = arrayClass . constructors . firstOrNull { it . valueParameters . size == } ? : arrayClass . constructors . first ( ) val constructorCall = constructor . createConstructorCall ( arrayType ) constructorCall . putValueArgument ( , . toIrConst ( this . intType ) ) if ( constructor . valueParameters . size == ) { val tempFunction = createTempFunction ( Name . identifier ( \"\" ) , this . anyType ) tempFunction . parent = arrayClass val initLambda = IrFunctionExpressionImpl ( SYNTHETIC_OFFSET , SYNTHETIC_OFFSET , constructor . valueParameters [ ] . type , tempFunction , IrStatementOrigin . LAMBDA ) constructorCall . putValueArgument ( , initLambda ) constructorCall . putTypeArgument ( , ( arrayType as IrSimpleType ) . arguments . singleOrNull ( ) ? . typeOrNull ) } return constructorCall }","docstring":""} {"signature":"internal fun IrConst < * > . toConstantValue ( ) : ConstantValue < * >","body":"{ if ( value == null ) return NullValue val constType = this . type . makeNotNull ( ) . removeAnnotations ( ) return when ( this . type . getPrimitiveType ( ) ) { PrimitiveType . BOOLEAN -> BooleanValue ( this . value as Boolean ) PrimitiveType . CHAR -> CharValue ( this . value as Char ) PrimitiveType . BYTE -> ByteValue ( ( this . value as Number ) . toByte ( ) ) PrimitiveType . SHORT -> ShortValue ( ( this . value as Number ) . toShort ( ) ) PrimitiveType . INT -> IntValue ( ( this . value as Number ) . toInt ( ) ) PrimitiveType . FLOAT -> FloatValue ( ( this . value as Number ) . toFloat ( ) ) PrimitiveType . LONG -> LongValue ( ( this . value as Number ) . toLong ( ) ) PrimitiveType . DOUBLE -> DoubleValue ( ( this . value as Number ) . toDouble ( ) ) null -> when ( constType . getUnsignedType ( ) ) { UnsignedType . UBYTE -> UByteValue ( ( this . value as Number ) . toByte ( ) ) UnsignedType . USHORT -> UShortValue ( ( this . value as Number ) . toShort ( ) ) UnsignedType . UINT -> UIntValue ( ( this . value as Number ) . toInt ( ) ) UnsignedType . ULONG -> ULongValue ( ( this . value as Number ) . toLong ( ) ) null -> when { constType . isString ( ) -> StringValue ( this . value as String ) else -> error ( \"\" ) } } } }","docstring":""} {"signature":"private fun getX ( )","body":"= ","docstring":""} {"signature":"@ JsName ( \"\" ) fun foo ( ) : String","body":"@ JsName ( \"\" ) fun foo ( ) : String","docstring":""} {"signature":"@ JsName ( \"\" ) fun default ( ) : String","body":"= \"\"","docstring":""} {"signature":"open fun bar ( ) : String","body":"= \"\"","docstring":""} {"signature":"fun foo ( ) : Any","body":"fun foo ( ) : Any","docstring":""} {"signature":"override fun foo ( ) : Int","body":"= ","docstring":""} {"signature":"fun box ( ) : String","body":"{ val impl = object : I { } val method = impl . javaClass . getMethod ( \"\" , String :: class . java ) val parameter = method . parameters [ ] val size = parameter . annotations . size if ( size == ) return \"\" return \"\" }","docstring":""} {"signature":"fun m ( @ Ann s : String )","body":"{ }","docstring":""} {"signature":"fun start ( )","body":"{ check ( ! isStartedImpl . getAndSet ( true ) ) { \"\" } check ( ! project . state . executed ) { \"\" } loopIfNecessary ( ) project . whenEvaluated { project . failures . let { failures -> if ( failures . isNotEmpty ( ) ) { finishWithFailures ( failures ) return@whenEvaluated } } assert ( enqueuedActions . getValue ( stage ) . isEmpty ( ) ) { \"\" } stage = stage . nextOrThrow executeCurrentStageAndScheduleNext ( ) } }","docstring":""} {"signature":"private fun executeCurrentStageAndScheduleNext ( )","body":"{ stage . previousOrNull ? . let { previousStage -> assert ( enqueuedActions . getValue ( previousStage ) . isEmpty ( ) ) { \"\" } } val failures = project . failures if ( failures . isNotEmpty ( ) ) { finishWithFailures ( failures ) return } try { loopIfNecessary ( ) } catch ( t : Throwable ) { finishWithFailures ( listOf ( t ) ) throw t } stage = stage . nextOrNull ? : run { finishSuccessfully ( ) return } project . afterEvaluate { executeCurrentStageAndScheduleNext ( ) } }","docstring":""} {"signature":"private fun loopIfNecessary ( )","body":"{ if ( loopRunning . getAndSet ( true ) ) return try { val queue = enqueuedActions . getValue ( stage ) do { project . state . rethrowFailure ( ) val action = queue . removeFirstOrNull ( ) action ? . invoke ( this ) } while ( action != null ) } finally { loopRunning . set ( false ) } }","docstring":""} {"signature":"private fun finishWithFailures ( failures : List < Throwable > )","body":"{ assert ( failures . isNotEmpty ( ) ) assert ( isStartedImpl . get ( ) ) assert ( ! isFinishedWithFailures . getAndSet ( true ) ) configurationResult . complete ( ProjectConfigurationResult . Failure ( failures ) ) }","docstring":""} {"signature":"private fun finishSuccessfully ( )","body":"{ assert ( isStartedImpl . get ( ) ) assert ( ! isFinishedSuccessfully . getAndSet ( true ) ) configurationResult . complete ( ProjectConfigurationResult . Success ) }","docstring":""} {"signature":"fun enqueue ( stage : KotlinPluginLifecycle . Stage , action : KotlinPluginLifecycle . ( ) -> Unit )","body":"{ if ( stage < this . stage ) { throw KotlinPluginLifecycle . IllegalLifecycleException ( \"\" ) } if ( isFinishedSuccessfully . get ( ) ) { return action ( ) } if ( isFinishedWithFailures . get ( ) ) { return if ( stage == this . stage ) action ( ) else Unit } enqueuedActions . getValue ( stage ) . addLast ( action ) if ( stage == KotlinPluginLifecycle . Stage . EvaluateBuildscript && isStartedImpl . get ( ) ) { loopIfNecessary ( ) } }","docstring":""} {"signature":"override fun launch ( start : KotlinPluginLifecycle . CoroutineStart , block : suspend KotlinPluginLifecycle . ( ) -> Unit , )","body":"{ val lifecycle = this val coroutine = block . createCoroutine ( this , object : Continuation < Unit > { override val context : CoroutineContext = EmptyCoroutineContext + KotlinPluginLifecycleCoroutineContextElement ( lifecycle ) override fun resumeWith ( result : Result < Unit > ) = result . getOrThrow ( ) } ) when ( start ) { Default -> enqueue ( stage ) { coroutine . resume ( Unit ) } Undispatched -> coroutine . resume ( Unit ) } }","docstring":""} {"signature":"override suspend fun await ( stage : KotlinPluginLifecycle . Stage )","body":"{ if ( this . stage > stage ) return suspendCoroutine < Unit > { continuation -> enqueue ( stage ) { continuation . resume ( Unit ) } } }","docstring":""} {"signature":"override fun toString ( ) : String","body":"= buildString { append ( \"\" ) if ( ! isStarted ) append ( \"\" ) else append ( \"\" ) if ( isFinishedSuccessfully . get ( ) ) append ( \"\" ) if ( isFinishedWithFailures . get ( ) ) append ( \"\" ) }","docstring":""} {"signature":"override fun selectDeserializer ( element : JsonElement )","body":"= when { \"\" in element . jsonObject -> OwnedProject . serializer ( ) else -> BasicProject . serializer ( ) }","docstring":""} {"signature":"fun main ( )","body":"{ val data = listOf ( OwnedProject ( \"\" , \"\" ) , BasicProject ( \"\" ) ) val string = Json . encodeToString ( ListSerializer ( ProjectSerializer ) , data ) println ( string ) println ( Json . decodeFromString ( ListSerializer ( ProjectSerializer ) , string ) ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val array = Array ( ) { } assertFailsWith < IndexOutOfBoundsException > { array . forEachIndexed { index , _ -> array [ index + ] = } } return \"\" }","docstring":""} {"signature":"fun greetEachOther ( people : Collection < Person > )","body":"{ for ( person in people ) { person . greet ( ) } }","docstring":""} {"signature":"operator fun plusAssign ( data : String )","body":"{ value += data }","docstring":""} {"signature":"fun init ( )","body":"{ x = X ( ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val a = B ( ) a . init ( ) a . x += \"\" return a . x . value }","docstring":""} {"signature":"fun box ( )","body":"{ foo ( ) bar ( ) }","docstring":""} {"signature":"fun foo ( i : Int = )","body":"{ }","docstring":""} {"signature":"inline fun bar ( i : Int = )","body":"{ }","docstring":""} {"signature":"override fun possibleGetterNamesByPropertyName ( name : Name ) : List < Name >","body":"= possibleGetMethodNames ( name )","docstring":""} {"signature":"override fun setterNameByGetterName ( name : Name ) : Name","body":"= setMethodName ( getMethodName = name )","docstring":""} {"signature":"override fun possiblePropertyNamesByAccessorName ( name : Name ) : List < Name >","body":"= getPropertyNamesCandidatesByAccessorName ( name )","docstring":""} {"signature":"@ Test fun testKT49455 ( )","body":"{ assertEquals ( , KT49455 ( ) . extensionFunction ( ) ) }","docstring":""} {"signature":"private fun createPackage ( fqName : FqName ) : IrPackageFragment","body":"= createEmptyExternalPackageFragment ( context . state . module , fqName )","docstring":""} {"signature":"private fun createClass ( fqName : FqName , classKind : ClassKind = ClassKind . CLASS , classModality : Modality = Modality . FINAL , classIsValue : Boolean = false , block : ( IrClass ) -> Unit = { } ) : IrClassSymbol","body":"= irFactory . buildClass { name = fqName . shortName ( ) kind = classKind modality = classModality isValue = classIsValue } . apply { parent = when ( fqName . parent ( ) . asString ( ) ) { \"\" -> kotlinPackage \"\" -> kotlinCoroutinesPackage \"\" -> kotlinCoroutinesJvmInternalPackage \"\" -> kotlinEnumsPackage \"\" -> kotlinJvmInternalPackage \"\" -> kotlinJvmFunctionsPackage \"\" -> kotlinJvmPackage \"\" -> kotlinReflectPackage \"\" -> javaLangPackage \"\" -> javaLangInvokePackage \"\" -> javaUtilPackage \"\" -> kotlinInternalPackage else -> error ( \"\" ) } createImplicitParameterDeclarationWithWrappedDescriptor ( ) block ( this ) } . symbol","docstring":""} {"signature":"private fun addSuspendLambdaInterfaceFunctions ( klass : IrClass )","body":"{ klass . superTypes += suspendFunctionInterface . defaultType klass . addConstructor ( ) . apply { addValueParameter ( \"\" , irBuiltIns . intType ) addValueParameter ( SUSPEND_FUNCTION_COMPLETION_PARAMETER_NAME , continuationClass . typeWith ( irBuiltIns . anyNType ) . makeNullable ( ) ) } klass . addFunction ( INVOKE_SUSPEND_METHOD_NAME , irBuiltIns . anyNType , Modality . ABSTRACT , DescriptorVisibilities . PROTECTED ) . apply { addValueParameter ( SUSPEND_CALL_RESULT_NAME , resultOfAnyType ) } klass . addFunction ( SUSPEND_FUNCTION_CREATE_METHOD_NAME , continuationClass . typeWith ( irBuiltIns . unitType ) , Modality . OPEN ) . apply { addValueParameter ( SUSPEND_FUNCTION_COMPLETION_PARAMETER_NAME , continuationClass . typeWith ( irBuiltIns . nothingType ) ) } klass . addFunction ( SUSPEND_FUNCTION_CREATE_METHOD_NAME , continuationClass . typeWith ( irBuiltIns . unitType ) , Modality . OPEN ) . apply { addValueParameter ( \"\" , irBuiltIns . anyNType ) addValueParameter ( SUSPEND_FUNCTION_COMPLETION_PARAMETER_NAME , continuationClass . typeWith ( irBuiltIns . nothingType ) ) } }","docstring":""} {"signature":"private fun generateCallableReferenceMethods ( klass : IrClass )","body":"{ klass . addFunction ( \"\" , irBuiltIns . stringType , Modality . OPEN ) klass . addFunction ( \"\" , irBuiltIns . stringType , Modality . OPEN ) klass . addFunction ( \"\" , kDeclarationContainer . defaultType , Modality . OPEN ) }","docstring":""} {"signature":"private fun IrClass . generateCallableReferenceSuperclassConstructors ( withArity : Boolean )","body":"{ for ( hasBoundReceiver in listOf ( false , true ) ) { addConstructor ( ) . apply { if ( withArity ) { addValueParameter ( \"\" , irBuiltIns . intType ) } if ( hasBoundReceiver ) { addValueParameter ( \"\" , irBuiltIns . anyNType ) } addValueParameter ( \"\" , javaLangClass . starProjectedType ) addValueParameter ( \"\" , irBuiltIns . stringType ) addValueParameter ( \"\" , irBuiltIns . stringType ) addValueParameter ( \"\" , irBuiltIns . intType ) } } }","docstring":""} {"signature":"fun getFunction ( parameterCount : Int ) : IrClassSymbol","body":"= irBuiltIns . functionN ( parameterCount ) . symbol","docstring":""} {"signature":"private fun createFunctionClass ( n : Int , isSuspend : Boolean ) : IrClassSymbol","body":"= createClass ( FqName ( \"\" ) , ClassKind . INTERFACE ) { klass -> for ( i in .. n ) { klass . addTypeParameter ( \"\" , irBuiltIns . anyNType , Variance . IN_VARIANCE ) } val returnType = klass . addTypeParameter ( \"\" , irBuiltIns . anyNType , Variance . OUT_VARIANCE ) klass . addFunction ( \"\" , returnType . defaultType , Modality . ABSTRACT , isSuspend = isSuspend ) . apply { for ( i in .. n ) { addValueParameter ( \"\" , klass . typeParameters [ i - ] . defaultType ) } } }","docstring":""} {"signature":"fun getJvmFunctionClass ( parameterCount : Int ) : IrClassSymbol","body":"= jvmFunctionClasses ( parameterCount )","docstring":""} {"signature":"fun getJvmSuspendFunctionClass ( parameterCount : Int ) : IrClassSymbol","body":"= jvmSuspendFunctionClasses ( parameterCount )","docstring":""} {"signature":"fun getPropertyReferenceClass ( mutable : Boolean , parameterCount : Int , impl : Boolean ) : IrClassSymbol","body":"{ val key = PropertyReferenceKey ( mutable , parameterCount , impl ) return propertyReferenceClassCache . getOrPut ( key ) { val className = buildString { if ( mutable ) append ( \"\" ) append ( \"\" ) append ( parameterCount ) if ( impl ) append ( \"\" ) } createClass ( FqName ( \"\" ) , classModality = if ( impl ) Modality . FINAL else Modality . ABSTRACT ) { klass -> if ( impl ) { klass . addConstructor ( ) . apply { addValueParameter ( \"\" , kDeclarationContainer . defaultType ) addValueParameter ( \"\" , irBuiltIns . stringType ) addValueParameter ( \"\" , irBuiltIns . stringType ) } if ( generateOptimizedCallableReferenceSuperClasses ) { klass . generateCallableReferenceSuperclassConstructors ( withArity = false ) } klass . superTypes += getPropertyReferenceClass ( mutable , parameterCount , false ) . defaultType } else { klass . addConstructor ( ) klass . addConstructor ( ) . apply { addValueParameter ( \"\" , irBuiltIns . anyNType ) } } val receiverFieldName = Name . identifier ( \"\" ) klass . addProperty { name = receiverFieldName } . apply { backingField = irFactory . buildField { name = receiverFieldName type = irBuiltIns . anyNType visibility = DescriptorVisibilities . PROTECTED } . also { field -> field . parent = klass } } generateCallableReferenceMethods ( klass ) klass . addFunction ( \"\" , irBuiltIns . anyNType , Modality . ABSTRACT ) . apply { for ( i in until parameterCount ) { addValueParameter ( \"\" , irBuiltIns . anyNType ) } } klass . addFunction ( \"\" , irBuiltIns . anyNType , Modality . FINAL ) . apply { for ( i in until parameterCount ) { addValueParameter ( \"\" , irBuiltIns . anyNType ) } } if ( mutable ) { klass . addFunction ( \"\" , irBuiltIns . unitType , Modality . ABSTRACT ) . apply { for ( i in until parameterCount ) { addValueParameter ( \"\" , irBuiltIns . anyNType ) } addValueParameter ( \"\" , irBuiltIns . anyNType ) } } } } }","docstring":""} {"signature":"private fun IrClass . addArraysCopyOfFunction ( arrayType : IrSimpleType )","body":"{ addFunction ( \"\" , arrayType , isStatic = true ) . apply { addValueParameter ( \"\" , arrayType ) addValueParameter ( \"\" , irBuiltIns . intType ) arraysCopyOfFunctions [ arrayType . classifierOrFail ] = this } }","docstring":""} {"signature":"private fun IrClass . addArraysEqualsFunction ( arrayType : IrSimpleType )","body":"{ addFunction ( \"\" , irBuiltIns . booleanType , isStatic = true ) . apply { addValueParameter ( \"\" , arrayType ) addValueParameter ( \"\" , arrayType ) } }","docstring":""} {"signature":"fun getArraysCopyOfFunction ( arrayType : IrSimpleType ) : IrSimpleFunctionSymbol","body":"{ val classifier = arrayType . classifier val copyOf = arraysCopyOfFunctions [ classifier ] if ( copyOf != null ) return copyOf . symbol else throw AssertionError ( \"\" ) }","docstring":""} {"signature":"private fun createIncrDecrFun ( intrinsicName : String ) : IrSimpleFunctionSymbol","body":"= irFactory . buildFun { name = Name . special ( intrinsicName ) origin = IrDeclarationOrigin . IR_BUILTINS_STUB } . apply { parent = kotlinJvmInternalPackage addValueParameter ( \"\" , irBuiltIns . intType ) addValueParameter ( \"\" , irBuiltIns . intType ) returnType = irBuiltIns . intType } . symbol","docstring":""} {"signature":"private fun createJavaPrimitiveClassWithUnsignedUtils ( fqName : FqName , type : IrType ) : IrClassSymbol","body":"= createClass ( fqName ) { klass -> klass . addFunction ( \"\" , irBuiltIns . intType , isStatic = true ) . apply { addValueParameter ( \"\" , type ) addValueParameter ( \"\" , type ) } klass . addFunction ( \"\" , type , isStatic = true ) . apply { addValueParameter ( \"\" , type ) addValueParameter ( \"\" , type ) } klass . addFunction ( \"\" , type , isStatic = true ) . apply { addValueParameter ( \"\" , type ) addValueParameter ( \"\" , type ) } klass . addFunction ( \"\" , irBuiltIns . stringType , isStatic = true ) . apply { addValueParameter ( \"\" , type ) } }","docstring":""} {"signature":"fun typeToStringValueOfFunction ( type : IrType ) : IrSimpleFunctionSymbol","body":"= valueOfFunctions [ type ] ? : defaultValueOfFunction","docstring":""} {"signature":"private fun buildClass ( fqName : FqName , classKind : ClassKind = ClassKind . ANNOTATION_CLASS , ) : IrClass","body":"= context . irFactory . buildClass { check ( fqName . parent ( ) == javaLangAnnotation ) { fqName } name = fqName . shortName ( ) kind = classKind } . apply { val irClass = this parent = javaLangAnnotationPackage javaLangAnnotationPackage . addChild ( this ) thisReceiver = buildValueParameter ( this ) { name = Name . identifier ( \"\" ) type = IrSimpleTypeImpl ( irClass . symbol , false , emptyList ( ) , emptyList ( ) ) } }","docstring":""} {"signature":"private fun buildAnnotationConstructor ( annotationClass : IrClass ) : IrConstructor","body":"= annotationClass . addConstructor { isPrimary = true }","docstring":""} {"signature":"private fun buildEnumEntry ( enumClass : IrClass , entryName : String ) : IrEnumEntry","body":"{ return context . irFactory . createEnumEntry ( UNDEFINED_OFFSET , UNDEFINED_OFFSET , IrDeclarationOrigin . IR_EXTERNAL_JAVA_DECLARATION_STUB , Name . identifier ( entryName ) , IrEnumEntrySymbolImpl ( ) , ) . apply { parent = enumClass enumClass . addChild ( this ) } }","docstring":""} {"signature":"fun IrClassSymbol . functionByName ( name : String ) : IrSimpleFunctionSymbol","body":"= functions . single { it . owner . name . asString ( ) == name }","docstring":""} {"signature":"fun IrClassSymbol . fieldByName ( name : String ) : IrFieldSymbol","body":"= fields . single { it . owner . name . asString ( ) == name }","docstring":""} {"signature":"override fun equals ( other : Any ? ) : Boolean","body":"{ if ( this === other ) return true if ( other !is AbstractKtSourceElement ) return false if ( startOffset != other . startOffset ) return false if ( endOffset != other . endOffset ) return false return true }","docstring":""} {"signature":"override fun hashCode ( ) : Int","body":"{ var result = startOffset result = * result + endOffset return result }","docstring":""} {"signature":"abstract fun getElementTextInContextForDebug ( ) : String","body":"abstract fun getElementTextInContextForDebug ( ) : String","docstring":""} {"signature":"abstract override fun hashCode ( ) : Int","body":"abstract override fun hashCode ( ) : Int","docstring":"/** Implementation must compute the hashcode from the source element. */"} {"signature":"abstract override fun equals ( other : Any ? ) : Boolean","body":"abstract override fun equals ( other : Any ? ) : Boolean","docstring":"/** Elements of the same source should be considered equal. */"} {"signature":"override fun getElementTextInContextForDebug ( ) : String","body":"{ return getElementTextWithContext ( psi ) }","docstring":""} {"signature":"fun unwrap ( node : LighterASTNode )","body":"= lighterAST . unwrap ( node )","docstring":""} {"signature":"override fun toString ( node : LighterASTNode ) : CharSequence","body":"= unwrap ( node ) . text","docstring":""} {"signature":"override fun getRoot ( ) : LighterASTNode","body":"= lighterAST . root","docstring":""} {"signature":"override fun getParent ( node : LighterASTNode ) : LighterASTNode ?","body":"= unwrap ( node ) . psi . parent ? . node ? . let { TreeBackedLighterAST . wrap ( it ) }","docstring":""} {"signature":"override fun getChildren ( node : LighterASTNode , nodesRef : Ref < Array < LighterASTNode > > ) : Int","body":"{ val psi = unwrap ( node ) . psi val children = mutableListOf < PsiElement > ( ) var child = psi . firstChild while ( child != null ) { children += child child = child . nextSibling } if ( children . isEmpty ( ) ) { nodesRef . set ( LighterASTNode . EMPTY_ARRAY ) } else { nodesRef . set ( children . map { TreeBackedLighterAST . wrap ( it . node ) } . toTypedArray ( ) ) } return children . size }","docstring":""} {"signature":"override fun disposeChildren ( p0 : Array < out LighterASTNode > ? , p1 : Int )","body":"{ }","docstring":""} {"signature":"override fun getStartOffset ( node : LighterASTNode ) : Int","body":"{ return getStartOffset ( unwrap ( node ) . psi ) }","docstring":""} {"signature":"private fun getStartOffset ( element : PsiElement ) : Int","body":"{ var child = element . firstChild if ( child != null ) { while ( child is PsiComment || child is PsiWhiteSpace ) { child = child . nextSibling } if ( child != null ) { return getStartOffset ( child ) } } return element . textRange . startOffset }","docstring":""} {"signature":"override fun getEndOffset ( node : LighterASTNode ) : Int","body":"{ return getEndOffset ( unwrap ( node ) . psi ) }","docstring":""} {"signature":"private fun getEndOffset ( element : PsiElement ) : Int","body":"{ var child = element . lastChild if ( child != null ) { while ( child is PsiComment || child is PsiWhiteSpace ) { child = child . prevSibling } if ( child != null ) { return getEndOffset ( child ) } } return element . textRange . endOffset }","docstring":""} {"signature":"override fun equals ( other : Any ? ) : Boolean","body":"{ if ( this === other ) return true if ( javaClass != other ? . javaClass ) return false other as KtPsiSourceElement if ( psi != other . psi ) return false return true }","docstring":""} {"signature":"override fun hashCode ( ) : Int","body":"{ return psi . hashCode ( ) }","docstring":""} {"signature":"override fun equals ( other : Any ? ) : Boolean","body":"{ if ( this === other ) return true if ( javaClass != other ? . javaClass ) return false if ( ! super . equals ( other ) ) return false other as KtFakeSourceElement if ( kind != other . kind ) return false return true }","docstring":""} {"signature":"override fun hashCode ( ) : Int","body":"{ var result = super . hashCode ( ) result = * result + kind . hashCode ( ) return result }","docstring":""} {"signature":"override fun equals ( other : Any ? ) : Boolean","body":"{ if ( this === other ) return true if ( other !is KtFakeSourceElementWithOffsets ) return false if ( ! super . equals ( other ) ) return false if ( kind != other . kind ) return false if ( startOffset != other . startOffset ) return false return endOffset == other . endOffset }","docstring":""} {"signature":"override fun hashCode ( ) : Int","body":"{ var result = super . hashCode ( ) result = * result + kind . hashCode ( ) result = * result + startOffset result = * result + endOffset return result }","docstring":""} {"signature":"fun KtSourceElement . fakeElement ( newKind : KtFakeSourceElementKind , startOffset : Int = - , endOffset : Int = - , ) : KtSourceElement","body":"{ if ( kind == newKind ) return this return when ( this ) { is KtLightSourceElement -> KtLightSourceElement ( lighterASTNode , if ( startOffset != - ) startOffset else this . startOffset , if ( endOffset != - ) endOffset else this . endOffset , treeStructure , newKind ) is KtPsiSourceElement -> when { startOffset != - && endOffset != - -> KtFakeSourceElementWithOffsets ( psi , newKind , startOffset , endOffset ) else -> KtFakeSourceElement ( psi , newKind ) } } }","docstring":""} {"signature":"fun KtSourceElement . realElement ( ) : KtSourceElement","body":"= when ( this ) { is KtRealPsiSourceElement -> this is KtLightSourceElement -> KtLightSourceElement ( lighterASTNode , startOffset , endOffset , treeStructure , KtRealSourceElementKind ) is KtPsiSourceElement -> KtRealPsiSourceElement ( psi ) }","docstring":""} {"signature":"fun unwrapToKtPsiSourceElement ( ) : KtPsiSourceElement ?","body":"{ if ( treeStructure !is KtPsiSourceElement . WrappedTreeStructure ) return null val node = treeStructure . unwrap ( lighterASTNode ) return node . psi ? . toKtPsiSourceElement ( kind ) }","docstring":"/**\n * We can create a [KtLightSourceElement] from a [KtPsiSourceElement] by using [KtPsiSourceElement.lighterASTNode];\n * [unwrapToKtPsiSourceElement] allows to get original [KtPsiSourceElement] in such case.\n *\n * If it is `pure` [KtLightSourceElement], i.e, compiler created it in light tree mode, then return [unwrapToKtPsiSourceElement] `null`.\n * Otherwise, return some not-null result.\n */"} {"signature":"override fun getElementTextInContextForDebug ( ) : String","body":"{ return treeStructure . toString ( lighterASTNode ) . toString ( ) }","docstring":""} {"signature":"override fun equals ( other : Any ? ) : Boolean","body":"{ if ( this === other ) return true if ( javaClass != other ? . javaClass ) return false other as KtLightSourceElement if ( lighterASTNode != other . lighterASTNode ) return false if ( startOffset != other . startOffset ) return false if ( endOffset != other . endOffset ) return false if ( treeStructure != other . treeStructure ) return false if ( kind != other . kind ) return false return true }","docstring":""} {"signature":"override fun hashCode ( ) : Int","body":"{ var result = lighterASTNode . hashCode ( ) result = * result + startOffset result = * result + endOffset result = * result + treeStructure . hashCode ( ) result = * result + kind . hashCode ( ) return result }","docstring":""} {"signature":"@ Suppress ( \"\" ) inline fun PsiElement . toKtPsiSourceElement ( kind : KtSourceElementKind = KtRealSourceElementKind ) : KtPsiSourceElement","body":"= when ( kind ) { is KtRealSourceElementKind -> KtRealPsiSourceElement ( this ) is KtFakeSourceElementKind -> KtFakeSourceElement ( this , kind ) }","docstring":""} {"signature":"@ Suppress ( \"\" ) inline fun LighterASTNode . toKtLightSourceElement ( tree : FlyweightCapableTreeStructure < LighterASTNode > , kind : KtSourceElementKind = KtRealSourceElementKind , startOffset : Int = this . startOffset , endOffset : Int = this . endOffset , ) : KtLightSourceElement","body":"= KtLightSourceElement ( this , startOffset , endOffset , tree , kind )","docstring":""} {"signature":"fun sourceKindForIncOrDec ( operation : Name , isPrefix : Boolean )","body":"= when ( operation ) { OperatorNameConventions . INC -> if ( isPrefix ) { KtFakeSourceElementKind . DesugaredPrefixInc } else { KtFakeSourceElementKind . DesugaredPostfixInc } OperatorNameConventions . DEC -> if ( isPrefix ) { KtFakeSourceElementKind . DesugaredPrefixDec } else { KtFakeSourceElementKind . DesugaredPostfixDec } else -> error ( \"\" ) }","docstring":""} {"signature":"@ KotlinxBenchmarkPluginInternalApi fun Project . createJvmBenchmarkCompileTask ( target : JvmBenchmarkTarget , compileClasspath : FileCollection )","body":"{ val benchmarkBuildDir = benchmarkBuildDir ( target ) val compileTask = task < JavaCompile > ( \"\" , depends = BenchmarksPlugin . ASSEMBLE_BENCHMARKS_TASKNAME ) { group = BenchmarksPlugin . BENCHMARKS_TASK_GROUP description = \"\" dependsOn ( \"\" ) classpath = compileClasspath source = fileTree ( \"\" ) destinationDirectory . set ( file ( \"\" ) ) javaCompiler . set ( javaCompilerProvider ( ) ) } task < Jar > ( \"\" , depends = BenchmarksPlugin . ASSEMBLE_BENCHMARKS_TASKNAME ) { group = BenchmarksPlugin . BENCHMARKS_TASK_GROUP description = \"\" isZip64 = true dependsOn ( \"\" ) archiveClassifier . set ( \"\" ) manifest . attributes [ \"\" ] = \"\" duplicatesStrategy = DuplicatesStrategy . WARN from ( project . provider { compileClasspath . map { when { it . isDirectory -> it it . exists ( ) -> zipTree ( it ) . let { tree -> if ( it . name . startsWith ( \"\" ) ) { tree . filter { file -> ! ( file . toString ( ) . contains ( \"\" ) && file . name in listOf ( \"\" , \"\" ) ) } } else { tree } } else -> files ( ) } } } ) from ( compileTask ) from ( file ( \"\" ) ) destinationDirectory . set ( File ( \"\" ) ) archiveBaseName . set ( \"\" ) } }","docstring":""} {"signature":"@ KotlinxBenchmarkPluginInternalApi fun Project . createJmhGenerationRuntimeConfiguration ( name : String , jmhVersion : String ) : Configuration","body":"{ return configurations . create ( \"\" ) . apply { isVisible = false description = \"\" val dependencies = this@createJmhGenerationRuntimeConfiguration . dependencies ( defaultDependencies { it . add ( dependencies . create ( \"\" ) ) } ) } }","docstring":""} {"signature":"@ KotlinxBenchmarkPluginInternalApi fun Project . createJvmBenchmarkGenerateSourceTask ( target : BenchmarkTarget , workerClasspath : FileCollection , compileClasspath : FileCollection , compilationTask : String , compilationOutput : FileCollection )","body":"{ val benchmarkBuildDir = benchmarkBuildDir ( target ) task < JmhBytecodeGeneratorTask > ( \"\" ) { group = BenchmarksPlugin . BENCHMARKS_TASK_GROUP description = \"\" dependsOn ( compilationTask ) runtimeClasspath = workerClasspath inputCompileClasspath = compileClasspath inputClassesDirs = compilationOutput outputResourcesDir = file ( \"\" ) outputSourcesDir = file ( \"\" ) executableProvider = javaLauncherProvider ( ) . map { it . executablePath . asFile . absolutePath } } }","docstring":""} {"signature":"@ KotlinxBenchmarkPluginInternalApi fun Project . createJvmBenchmarkExecTask ( config : BenchmarkConfiguration , target : JvmBenchmarkTarget , runtimeClasspath : FileCollection )","body":"{ task < JavaExec > ( \"\" , depends = config . prefixName ( BenchmarksPlugin . RUN_BENCHMARKS_TASKNAME ) ) { group = BenchmarksPlugin . BENCHMARKS_TASK_GROUP description = \"\" val benchmarkBuildDir = benchmarkBuildDir ( target ) mainClass . set ( \"\" ) if ( target . workingDir != null ) workingDir = File ( target . workingDir ) classpath ( file ( \"\" ) , file ( \"\" ) , runtimeClasspath ) dependsOn ( \"\" ) val reportFile = setupReporting ( target , config ) args ( writeParameters ( target . name , reportFile , traceFormat ( ) , config ) ) javaLauncher . set ( javaLauncherProvider ( ) ) } }","docstring":""} {"signature":"@ Deprecated ( \"\" , level = DeprecationLevel . HIDDEN ) fun DeclarationDescriptor . findPackage ( ) : PackageFragmentDescriptor","body":"= findPackage ( )","docstring":""} {"signature":"private fun sourceByIndex ( descriptor : CallableMemberDescriptor , index : Int ) : SourceFile","body":"{ val fragment = descriptor . findPackage ( ) as KlibMetadataDeserializedPackageFragment val fileName = fragment . proto . strings . stringList [ index ] return DeserializedSourceFile ( fileName , descriptor . module . kotlinLibrary ) }","docstring":""} {"signature":"fun CallableMemberDescriptor . findSourceFile ( ) : SourceFile","body":"{ val source = this . source . containingFile if ( source != SourceFile . NO_SOURCE_FILE ) return source return when { this is DeserializedSimpleFunctionDescriptor && proto . hasExtension ( KlibMetadataProtoBuf . functionFile ) -> sourceByIndex ( this , proto . getExtension ( KlibMetadataProtoBuf . functionFile ) ) this is DeserializedPropertyDescriptor && proto . hasExtension ( KlibMetadataProtoBuf . propertyFile ) -> sourceByIndex ( this , proto . getExtension ( KlibMetadataProtoBuf . propertyFile ) ) else -> TODO ( ) } }","docstring":""} {"signature":"fun DeclarationDescriptor . extractSerializedKdocString ( ) : String ?","body":"= when ( this ) { is DeserializedClassDescriptor -> classProto . getExtension ( KlibMetadataProtoBuf . classKdoc ) is DeserializedSimpleFunctionDescriptor -> proto . getExtension ( KlibMetadataProtoBuf . functionKdoc ) is DeserializedPropertyDescriptor -> proto . getExtension ( KlibMetadataProtoBuf . propertyKdoc ) is DeserializedClassConstructorDescriptor -> proto . getExtension ( KlibMetadataProtoBuf . constructorKdoc ) else -> null }","docstring":""} {"signature":"inline fun foo ( x : String , block : ( String ) -> String )","body":"= block ( x )","docstring":""} {"signature":"fun box ( ) : String","body":"{ fun bar ( y : String ) = y + \"\" val res = foo ( \"\" ) { bar ( it ) } assertEquals ( \"\" , res ) return \"\" }","docstring":""} {"signature":"fun foo ( a : Any )","body":"{ }","docstring":""} {"signature":"fun test ( )","body":"{ foo ( object { } ) ; }","docstring":""} {"signature":"fun toIr ( context : CommonBackendContext , startOffset : Int , endOffset : Int , value : IrExpression ) : IrExpression","body":"fun toIr ( context : CommonBackendContext , startOffset : Int , endOffset : Int , value : IrExpression ) : IrExpression","docstring":""} {"signature":"override fun toIr ( context : CommonBackendContext , startOffset : Int , endOffset : Int , value : IrExpression ) ","body":"= IrReturnImpl ( startOffset , endOffset , context . irBuiltIns . nothingType , target , value )","docstring":""} {"signature":"override fun toIr ( context : CommonBackendContext , startOffset : Int , endOffset : Int , value : IrExpression ) ","body":"= IrCompositeImpl ( startOffset , endOffset , context . irBuiltIns . unitType , null , statements = listOf ( value , IrBreakImpl ( startOffset , endOffset , context . irBuiltIns . nothingType , loop ) ) )","docstring":""} {"signature":"override fun toIr ( context : CommonBackendContext , startOffset : Int , endOffset : Int , value : IrExpression ) ","body":"= IrCompositeImpl ( startOffset , endOffset , context . irBuiltIns . unitType , null , statements = listOf ( value , IrContinueImpl ( startOffset , endOffset , context . irBuiltIns . nothingType , loop ) ) )","docstring":""} {"signature":"private inline fun < S : Scope , R > using ( scope : S , block : ( S ) -> R ) : R","body":"{ otherScopeStack . push ( scope ) try { return block ( scope ) } finally { otherScopeStack . pop ( ) } }","docstring":""} {"signature":"override fun lower ( irFile : IrFile )","body":"{ irFile . transformChildrenVoid ( this ) }","docstring":""} {"signature":"override fun visitFunctionNew ( declaration : IrFunction ) : IrStatement","body":"{ using ( ReturnableScope ( declaration . symbol ) ) { return super . visitFunctionNew ( declaration ) } }","docstring":""} {"signature":"override fun visitContainerExpression ( expression : IrContainerExpression ) : IrExpression","body":"{ if ( expression !is IrReturnableBlockImpl ) return super . visitContainerExpression ( expression ) using ( ReturnableScope ( expression . symbol ) ) { return super . visitContainerExpression ( expression ) } }","docstring":""} {"signature":"override fun visitLoop ( loop : IrLoop ) : IrExpression","body":"{ using ( LoopScope ( loop ) ) { return super . visitLoop ( loop ) } }","docstring":""} {"signature":"override fun visitBreak ( jump : IrBreak ) : IrExpression","body":"{ val startOffset = jump . startOffset val endOffset = jump . endOffset val irBuilder = context . createIrBuilder ( currentScope ! ! . scope . scopeOwnerSymbol , startOffset , endOffset ) return performHighLevelJump ( targetScopePredicate = { it is LoopScope && it . loop == jump . loop } , jump = Break ( jump . loop ) , startOffset = startOffset , endOffset = endOffset , value = irBuilder . irGetObject ( context . irBuiltIns . unitClass ) ) ? : jump }","docstring":""} {"signature":"override fun visitContinue ( jump : IrContinue ) : IrExpression","body":"{ val startOffset = jump . startOffset val endOffset = jump . endOffset val irBuilder = context . createIrBuilder ( currentScope ! ! . scope . scopeOwnerSymbol , startOffset , endOffset ) return performHighLevelJump ( targetScopePredicate = { it is LoopScope && it . loop == jump . loop } , jump = Continue ( jump . loop ) , startOffset = startOffset , endOffset = endOffset , value = irBuilder . irGetObject ( context . irBuiltIns . unitClass ) ) ? : jump }","docstring":""} {"signature":"override fun visitReturn ( expression : IrReturn ) : IrExpression","body":"{ expression . transformChildrenVoid ( this ) return performHighLevelJump ( targetScopePredicate = { it is ReturnableScope && it . symbol == expression . returnTargetSymbol } , jump = Return ( expression . returnTargetSymbol ) , startOffset = expression . startOffset , endOffset = expression . endOffset , value = expression . value ) ? : expression }","docstring":""} {"signature":"private fun performHighLevelJump ( targetScopePredicate : ( Scope ) -> Boolean , jump : HighLevelJump , startOffset : Int , endOffset : Int , value : IrExpression ) : IrExpression ?","body":"{ val tryScopes = otherScopeStack . reversed ( ) . takeWhile { ! targetScopePredicate ( it ) } . filterIsInstance < TryScope > ( ) . toList ( ) if ( tryScopes . isEmpty ( ) ) return null return performHighLevelJump ( tryScopes , , jump , startOffset , endOffset , value ) }","docstring":""} {"signature":"private fun performHighLevelJump ( tryScopes : List < TryScope > , index : Int , jump : HighLevelJump , startOffset : Int , endOffset : Int , value : IrExpression ) : IrExpression","body":"{ if ( index == tryScopes . size ) return jump . toIr ( context , startOffset , endOffset , value ) val currentTryScope = tryScopes [ index ] currentTryScope . jumps . getOrPut ( jump ) { val type = ( jump as? Return ) ? . target ? . owner ? . returnType ( context ) ? : value . type jump . toString ( ) val symbol = IrReturnableBlockSymbolImpl ( ) with ( currentTryScope ) { irBuilder . run { val inlinedFinally = irInlineFinally ( symbol , type , expression , finallyExpression ) expression = performHighLevelJump ( tryScopes = tryScopes , index = index + , jump = jump , startOffset = startOffset , endOffset = endOffset , value = inlinedFinally ) } } symbol } . let { return IrReturnImpl ( startOffset = startOffset , endOffset = endOffset , type = context . irBuiltIns . nothingType , returnTargetSymbol = it , value = value ) } }","docstring":""} {"signature":"override fun visitTry ( aTry : IrTry ) : IrExpression","body":"{ val finallyExpression = aTry . finallyExpression ? : return super . visitTry ( aTry ) val startOffset = aTry . startOffset val endOffset = aTry . endOffset val irBuilder = context . createIrBuilder ( currentScope ! ! . scope . scopeOwnerSymbol , startOffset , endOffset ) val transformer = this irBuilder . run { val transformedFinallyExpression = finallyExpression . transform ( transformer , null ) val catchParameter = buildVariable ( scope . getLocalDeclarationParent ( ) , startOffset , endOffset , IrDeclarationOrigin . CATCH_PARAMETER , Name . identifier ( \"\" ) , throwableType ) val syntheticTry = IrTryImpl ( startOffset = startOffset , endOffset = endOffset , type = context . irBuiltIns . nothingType ) . apply { this . catches += irCatch ( catchParameter , irComposite { + copy ( finallyExpression ) + irThrow ( irGet ( catchParameter ) ) } ) this . finallyExpression = null } using ( TryScope ( syntheticTry , transformedFinallyExpression , this ) ) { val fallThroughType = aTry . type val fallThroughSymbol = IrReturnableBlockSymbolImpl ( ) val transformedResult = aTry . tryResult . transform ( transformer , null ) val returnedResult = irReturn ( fallThroughSymbol , transformedResult ) if ( aTry . catches . isNotEmpty ( ) ) { val transformedTry = IrTryImpl ( startOffset = startOffset , endOffset = endOffset , type = context . irBuiltIns . nothingType ) transformedTry . tryResult = returnedResult for ( aCatch in aTry . catches ) { val transformedCatch = aCatch . transform ( transformer , null ) transformedCatch . result = irReturn ( fallThroughSymbol , transformedCatch . result ) transformedTry . catches . add ( transformedCatch ) } syntheticTry . tryResult = transformedTry } else { syntheticTry . tryResult = returnedResult } return irInlineFinally ( fallThroughSymbol , fallThroughType , it . expression , it . finallyExpression ) } } }","docstring":""} {"signature":"private fun IrBuilderWithScope . irInlineFinally ( symbol : IrReturnableBlockSymbol , type : IrType , value : IrExpression , finallyExpression : IrExpression ) : IrExpression","body":"{ return when { type . isUnit ( ) || type . isNothing ( ) -> irBlock ( value , null , type ) { + irReturnableBlock ( symbol , type ) { + value } + irComposite ( resultType = context . irBuiltIns . unitType , origin = FINALLY_EXPRESSION ) { + copy ( finallyExpression ) } } else -> irBlock ( value , null , type ) { val tmp = createTmpVariable ( irReturnableBlock ( symbol , type ) { + irReturn ( symbol , value ) } ) + irComposite ( resultType = context . irBuiltIns . unitType , origin = FINALLY_EXPRESSION ) { + copy ( finallyExpression ) } + irGet ( tmp ) } } }","docstring":""} {"signature":"private inline fun < reified T : IrElement > IrBuilderWithScope . copy ( element : T )","body":"= element . deepCopyWithSymbols ( parent )","docstring":""} {"signature":"fun IrBuilderWithScope . irReturn ( target : IrReturnTargetSymbol , value : IrExpression )","body":"= IrReturnImpl ( startOffset , endOffset , context . irBuiltIns . nothingType , target , value )","docstring":""} {"signature":"private inline fun IrBuilderWithScope . irReturnableBlock ( symbol : IrReturnableBlockSymbol , type : IrType , body : IrBlockBuilder . ( ) -> Unit )","body":"= IrReturnableBlockImpl ( startOffset , endOffset , type , symbol , null , IrBlockBuilder ( context , scope , startOffset , endOffset , null , type , true ) . block ( body ) . statements )","docstring":""} {"signature":"fun foo ( ) : String","body":"fun foo ( ) : String","docstring":""} {"signature":"override fun foo ( ) : String","body":"= \"\"","docstring":""} {"signature":"fun box ( ) : String","body":"= C ( ) . foo ( )","docstring":""} {"signature":"private fun < T > doTest ( inputs : List < dynamic > , expected : T , serializer : KSerializer < T > )","body":"{ for ( input in inputs ) { assertEquals ( expected , json . decodeFromDynamic ( serializer , input ) , \"\" ) } }","docstring":""} {"signature":"@ Test fun testUseDefaultOnNonNullableBooleanDynamic ( )","body":"= doTest ( listOf ( js ( \"\"\"\"\"\" ) , js ( \"\"\"\"\"\" ) , js ( \"\"\"\"\"\" ) , ) , JsonCoerceInputValuesTest . WithBoolean ( ) , JsonCoerceInputValuesTest . WithBoolean . serializer ( ) )","docstring":""} {"signature":"@ Test fun testUseDefaultOnUnknownEnum ( )","body":"{ doTest ( listOf ( js ( \"\"\"\"\"\" ) , js ( \"\"\"\"\"\" ) , js ( \"\"\"\"\"\" ) , ) , JsonCoerceInputValuesTest . WithEnum ( ) , JsonCoerceInputValuesTest . WithEnum . serializer ( ) ) assertFailsWith < SerializationException > { json . decodeFromDynamic ( JsonCoerceInputValuesTest . WithEnum . serializer ( ) , js ( \"\"\"\"\"\" ) ) } }","docstring":""} {"signature":"@ Test fun testUseDefaultInMultipleCases ( )","body":"{ val testData = mapOf < dynamic , JsonCoerceInputValuesTest . MultipleValues > ( Pair ( js ( \"\"\"\"\"\" ) , JsonCoerceInputValuesTest . MultipleValues ( StringData ( \"\" ) , foo = \"\" ) ) , Pair ( js ( \"\"\"\"\"\" ) , JsonCoerceInputValuesTest . MultipleValues ( StringData ( \"\" ) , IntData ( ) , foo = \"\" ) ) , Pair ( js ( \"\"\"\"\"\" ) , JsonCoerceInputValuesTest . MultipleValues ( StringData ( \"\" ) , IntData ( ) , i = , foo = \"\" ) ) , Pair ( js ( \"\"\"\"\"\" ) , JsonCoerceInputValuesTest . MultipleValues ( StringData ( \"\" ) , IntData ( ) , i = , e = SampleEnum . OptionC , foo = \"\" ) ) , ) for ( ( input , expected ) in testData ) { assertEquals ( expected , json . decodeFromDynamic ( JsonCoerceInputValuesTest . MultipleValues . serializer ( ) , input ) , \"\" ) } }","docstring":""} {"signature":"override fun lowerInterfaceDeclaration ( declaration : IDLInterfaceDeclaration , owner : IDLFileDeclaration ) : IDLInterfaceDeclaration","body":"{ val includedMixins = mixinContext . getIncludedMixins ( declaration ) val overrideHelper = OverrideHelper ( missingMemberContext ) val newAttributes = declaration . attributes . toMutableList ( ) val newOperations = declaration . operations . toMutableList ( ) includedMixins . flatMap { it . attributes } . forEach { newAttribute -> if ( newAttributes . none { oldAttribute -> overrideHelper . isConflicting ( newAttribute , oldAttribute ) || overrideHelper . isConflicting ( oldAttribute , newAttribute ) || overrideHelper . isSimilar ( newAttribute , oldAttribute ) } ) { newAttributes += newAttribute } } includedMixins . flatMap { it . operations } . forEach { newOperation -> if ( newOperations . none { oldOperation -> overrideHelper . isConflicting ( newOperation , oldOperation ) || overrideHelper . isConflicting ( oldOperation , newOperation ) || overrideHelper . isSimilar ( newOperation , oldOperation ) } ) { newOperations += newOperation } } return declaration . copy ( attributes = newAttributes , operations = newOperations ) }","docstring":""} {"signature":"override fun lowerInterfaceDeclaration ( declaration : IDLInterfaceDeclaration , owner : IDLFileDeclaration ) : IDLInterfaceDeclaration","body":"{ if ( declaration . mixin ) { mixins [ declaration . name ] = declaration } return declaration }","docstring":""} {"signature":"override fun lowerIncludesStatementDeclaration ( declaration : IDLIncludesStatementDeclaration , owner : IDLFileDeclaration ) : IDLIncludesStatementDeclaration","body":"{ if ( includeStatements [ declaration . child . name ] == null ) { includeStatements [ declaration . child . name ] = mutableListOf ( ) } includeStatements [ declaration . child . name ] ! ! . add ( declaration . parent . name ) return declaration }","docstring":""} {"signature":"fun getIncludedMixins ( declaration : IDLInterfaceDeclaration ) : List < IDLInterfaceDeclaration >","body":"{ return includeStatements [ declaration . name ] . orEmpty ( ) . mapNotNull { mixins [ it ] } }","docstring":""} {"signature":"fun IDLSourceSetDeclaration . resolveMixins ( ) : IDLSourceSetDeclaration","body":"{ val mixinContext = MixinContext ( ) val missingMemberContext = MissingMemberContext ( ) return MixinResolver ( mixinContext , missingMemberContext ) . lowerSourceSetDeclaration ( mixinContext . lowerSourceSetDeclaration ( missingMemberContext . lowerSourceSetDeclaration ( this ) ) ) }","docstring":""} {"signature":"fun build ( spec : DokkaGeneratorParametersSpec , delayTemplateSubstitution : Boolean , modules : List < DokkaModuleDescriptionKxs > , outputDirectory : File , cacheDirectory : File ? = null , ) : DokkaConfiguration","body":"{ val moduleName = spec . moduleName . get ( ) val moduleVersion = spec . moduleVersion . orNull ? . takeIf { it != \"\" } val offlineMode = spec . offlineMode . get ( ) val sourceSets = DokkaSourceSetBuilder . buildAll ( spec . dokkaSourceSets ) val failOnWarning = spec . failOnWarning . get ( ) val suppressObviousFunctions = spec . suppressObviousFunctions . get ( ) val suppressInheritedMembers = spec . suppressInheritedMembers . get ( ) val finalizeCoroutines = spec . finalizeCoroutines . get ( ) val pluginsConfiguration = spec . pluginsConfiguration . toSet ( ) val pluginsClasspath = spec . pluginsClasspath . files . toList ( ) val includes = spec . includes . files return DokkaConfigurationImpl ( moduleName = moduleName , moduleVersion = moduleVersion , outputDir = outputDirectory , cacheRoot = cacheDirectory , offlineMode = offlineMode , sourceSets = sourceSets , pluginsClasspath = pluginsClasspath , pluginsConfiguration = pluginsConfiguration . map ( :: build ) , modules = modules . map ( DokkaModuleDescriptionKxs :: convert ) , failOnWarning = failOnWarning , delayTemplateSubstitution = delayTemplateSubstitution , suppressObviousFunctions = suppressObviousFunctions , includes = includes , suppressInheritedMembers = suppressInheritedMembers , finalizeCoroutines = finalizeCoroutines , ) }","docstring":""} {"signature":"private fun build ( spec : DokkaPluginParametersBaseSpec ) : PluginConfigurationImpl","body":"{ return PluginConfigurationImpl ( fqPluginName = spec . pluginFqn , serializationFormat = DokkaConfiguration . SerializationFormat . JSON , values = spec . jsonEncode ( ) , ) }","docstring":""} {"signature":"override fun render ( notebook : Notebook ) : MimeTypedResult","body":"{ return HTML ( toHTML ( ) ) }","docstring":""} {"signature":"fun toHTML ( ) : String","body":"{ return attributes . joinToString ( \"\" , \"\"\"\"\"\" , \"\"\"\"\"\" ) { \"\"\"\"\"\" } }","docstring":""} {"signature":"fun withAttr ( attr : HTMLAttr )","body":"= Image ( attributes + attr )","docstring":""} {"signature":"fun withAttr ( name : String , value : String , )","body":"= withAttr ( HTMLAttr ( name , value ) )","docstring":""} {"signature":"fun withWidth ( value : String )","body":"= withAttr ( \"\" , value )","docstring":""} {"signature":"fun withWidth ( value : Int )","body":"= withAttr ( \"\" , value . toString ( ) )","docstring":""} {"signature":"fun withHeight ( value : String )","body":"= withAttr ( \"\" , value )","docstring":""} {"signature":"fun withHeight ( value : Int )","body":"= withAttr ( \"\" , value . toString ( ) )","docstring":""} {"signature":"private fun BufferedImage . toByteArray ( format : String ) : ByteArray","body":"{ val stream = ByteArrayOutputStream ( ) ImageIO . write ( this , format , stream ) return stream . toByteArray ( ) }","docstring":""} {"signature":"fun referSrc ( url : String ) : HTMLAttr","body":"{ return HTMLAttr ( \"\" , url ) }","docstring":""} {"signature":"fun embedSrc ( data : ByteArray , format : String , ) : HTMLAttr","body":"{ val encoder = Base64 . getEncoder ( ) return HTMLAttr ( \"\" , buildString { append ( \"\"\"\"\"\" ) append ( encoder . encodeToString ( data ) ) } , ) }","docstring":""} {"signature":"fun downloadData ( url : String ) : ByteArray","body":"{ PreCannedApacheHttpClients . defaultApacheHttpClient ( ) . use { closeableHttpClient -> val client = ApacheClient ( client = closeableHttpClient ) val request = Request ( Method . GET , url ) val response = client ( request ) return response . body . payload . array ( ) } }","docstring":""} {"signature":"fun loadData ( file : File ) : ByteArray","body":"{ return file . readBytes ( ) }","docstring":""} {"signature":"fun detectMime ( uri : URI ) : String","body":"{ val format = uri . toString ( ) . substringAfterLast ( '' , \"\" ) return convertFormat ( format ) }","docstring":""} {"signature":"fun convertFormat ( format : String )","body":"= format . lowercase ( ) . let { formatToMime [ it ] ? : it }","docstring":""} {"signature":"fun < T > hashSetOf ( vararg values : T ) : HashSet < T >","body":"= throw Exception ( \"\" )","docstring":""} {"signature":"fun foo ( b : MyClass < B > , c : MyClass < C > )","body":"{ val set1 : Set < MyClass < out D > > = hashSetOf ( b , c ) val set2 = hashSetOf ( b , c ) }","docstring":""} {"signature":"override fun call ( builder : CallExpressionBuilder ) : IrExpression","body":"{ val irTmp = generator . scope . createTemporaryVariable ( extensionInvokeReceiver . load ( ) , \"\" ) val safeReceiverValue = VariableLValue ( generator . context , irTmp ) assert ( callBuilder . irValueArgumentsByIndex [ ] == null ) { \"\" } callBuilder . irValueArgumentsByIndex [ ] = safeReceiverValue . load ( ) val irResult = builder . withReceivers ( functionReceiver , null , emptyList ( ) ) val resultType = irResult . type . makeNullable ( ) return generator . irBlock ( startOffset , endOffset , IrStatementOrigin . SAFE_CALL , resultType ) { + irTmp + irIfNull ( resultType , safeReceiverValue . load ( ) , irNull ( ) , irResult ) } }","docstring":""} {"signature":"override fun compareTo ( other : ClassOrTypeAliasId )","body":"= qualifiedName . compareTo ( other . qualifiedName )","docstring":""} {"signature":"override fun compareTo ( other : ConstructorId )","body":"= COMPARATOR . compare ( this , other )","docstring":""} {"signature":"override fun compareTo ( other : FunctionId )","body":"= COMPARATOR . compare ( this , other )","docstring":""} {"signature":"override fun compareTo ( other : PropertyId )","body":"= COMPARATOR . compare ( this , other )","docstring":""} {"signature":"override fun compareTo ( other : ParameterId )","body":"= COMPARATOR . compare ( this , other )","docstring":""} {"signature":"override fun compareTo ( other : TypeParameterId )","body":"= index . compareTo ( other . index )","docstring":""} {"signature":"override fun compareTo ( other : TypeId )","body":"= COMPARATOR . compare ( this , other )","docstring":""} {"signature":"final override fun compareTo ( other : TypeArgumentId )","body":"= COMPARATOR . compare ( this , other )","docstring":""} {"signature":"private inline fun < T , R : Comparable < R > > Comparator < T > . thenByList ( crossinline selector : ( T ) -> List < R > , ) : Comparator < T >","body":"= Comparator { left , right -> compare ( left , right ) . let { if ( it != ) return@Comparator it } val leftList = selector ( left ) val rightList = selector ( right ) leftList . size . compareTo ( rightList . size ) . let { if ( it != ) return@Comparator it } for ( index in leftList . indices ) { leftList [ index ] . compareTo ( rightList [ index ] ) . let { if ( it != ) return@Comparator it } } }","docstring":""} {"signature":"fun toPath ( file : File ) : String","body":"fun toPath ( file : File ) : String","docstring":""} {"signature":"fun toFile ( path : String ) : File","body":"fun toFile ( path : String ) : File","docstring":""} {"signature":"fun getFileDescriptor ( ) : KeyDescriptor < File >","body":"= FileDescriptor ( this )","docstring":""} {"signature":"override fun toPath ( file : File ) : String","body":"= file . path","docstring":""} {"signature":"override fun toFile ( path : String ) : File","body":"= File ( path )","docstring":""} {"signature":"override fun save ( output : DataOutput , file : File )","body":"{ StringExternalizer . save ( output , pathConverter . toPath ( file ) ) }","docstring":""} {"signature":"override fun read ( input : DataInput ) : File","body":"{ return pathConverter . toFile ( StringExternalizer . read ( input ) ) }","docstring":""} {"signature":"override fun getHashCode ( file : File ) : Int","body":"{ return pathConverter . toPath ( file ) . hashCode ( ) }","docstring":""} {"signature":"override fun isEqual ( file1 : File , file2 : File ) : Boolean","body":"{ return file1 == file2 }","docstring":""} {"signature":"fun test ( x : ABCD , y : ABCD , ok : String ) : String","body":"= when ( x ) { ABCD . A , ABCD . B -> when ( y ) { ABCD . A , ABCD . B -> ok ABCD . C , ABCD . D -> y . toString ( ) } ABCD . C , ABCD . D -> x . toString ( ) }","docstring":""} {"signature":"fun box ( ) : String","body":"= test ( ABCD . B , ABCD . A , \"\" ) + test ( ABCD . A , ABCD . B , \"\" )","docstring":""} {"signature":"@ Test fun test_easy_complex_creation ( )","body":"{ assertEquals ( Complex . i ( ) , . i ) assertEquals ( Complex . i ( ) , . i ) assertEquals ( ComplexFloat ( , ) , + . i ) assertEquals ( ComplexDouble ( , ) , + . i ) }","docstring":""} {"signature":"fun foo ( )","body":"{ log += \"\" }","docstring":""} {"signature":"fun test ( x : Int )","body":"= if ( x < ) foo ( ) else ","docstring":""} {"signature":"fun box ( ) : String","body":"{ val a = test ( ) if ( a !is Int ) return \"\" val b = test ( ) if ( b !is Unit ) return \"\" if ( log != \"\" ) return \"\" return \"\" }","docstring":""} {"signature":"fun main ( )","body":"{ }","docstring":""} {"signature":"@ JvmName ( \"\" ) fun foo ( args : Array < String > )","body":"{ }","docstring":""} {"signature":"fun supplier ( index : Int )","body":"{ }","docstring":""} {"signature":"fun supplier ( index : Int , x : DPoint )","body":"{ }","docstring":""} {"signature":"fun `1` ( )","body":"= ","docstring":""} {"signature":"fun `2` ( )","body":"= ","docstring":""} {"signature":"fun `3` ( )","body":"= ","docstring":""} {"signature":"fun `4` ( )","body":"= ","docstring":""} {"signature":"fun `5` ( )","body":"= ","docstring":""} {"signature":"fun `6` ( )","body":"= ","docstring":""} {"signature":"fun `7` ( )","body":"= ","docstring":""} {"signature":"fun `8` ( )","body":"= ","docstring":""} {"signature":"fun reassignVariable ( x : DPoint , box : Box )","body":"{ supplier ( ) var p = DPoint ( `1` ( ) , `2` ( ) ) supplier ( , p ) p = p supplier ( , p ) p = DPoint ( `3` ( ) , `4` ( ) ) supplier ( , p ) p = x supplier ( , p ) p = box . value supplier ( , p ) p = listOf ( p ) [ ] supplier ( , p ) }","docstring":""} {"signature":"fun reassignField ( x : DPoint , box : Box )","body":"{ supplier ( ) val p = DPoint ( `5` ( ) , `6` ( ) ) supplier ( , p ) var b = Box ( p ) supplier ( ) b . value = b . value supplier ( ) b . value = DPoint ( `7` ( ) , `8` ( ) ) supplier ( ) b . value = x supplier ( ) b . value = box . value supplier ( ) b . value = listOf ( p ) [ ] supplier ( ) }","docstring":""} {"signature":"override fun readWriteAccessWithFullExpressionByResolve ( assignment : KtBinaryExpression ) : Pair < ReferenceAccess , KtExpression > ?","body":"{ val function = assignment . operationReference . mainReference . resolve ( ) as? KtNamedFunction ? : return null val name = function . name ? : return null return if ( Name . identifier ( name ) in OperatorConventions . ASSIGNMENT_OPERATIONS . values ) ReferenceAccess . READ to assignment else null }","docstring":""} {"signature":"fun getCompletionProposals ( editor : KotlinEditor ) : Array < ICompletionProposal >","body":"= KotlinCompletionProcessor . createKotlinCompletionProcessors ( editor , null , needSorting = true ) . flatMap { it . computeCompletionProposals ( editor . javaEditor . viewer , KotlinTestUtils . getCaret ( editor . javaEditor ) ) . toList ( ) } . toTypedArray ( )","docstring":""} {"signature":"fun ICompletionProposal . stringToInsert ( ) : String","body":"{ return if ( this is KotlinCompletionProposal ) replacementString else additionalProposalInfo ? : displayString }","docstring":""} {"signature":"fun foo ( v : Int )","body":"= i + v","docstring":""} {"signature":"fun A . bar ( )","body":"= this . i","docstring":""} {"signature":"fun box ( ) : String","body":"{ val method = Class . forName ( \"\" ) . declaredMethods . single { it . name == \"\" } val parameters = method . getParameters ( ) if ( parameters [ ] . name != \"\" ) return \"\" if ( parameters [ ] . name != \"\" ) return \"\" val extensionMethod = Class . forName ( \"\" ) . declaredMethods . single { it . name . startsWith ( \"\" ) } val extensionMethodParameters = extensionMethod . getParameters ( ) if ( extensionMethodParameters [ ] . name != \"\" ) return \"\" return \"\" }","docstring":""} {"signature":"@ JsModule ( \"\" ) external fun ping ( a : String )","body":"@ JsModule ( \"\" ) external fun ping ( a : String )","docstring":""} {"signature":"@ JsModule ( \"\" ) external fun ping ( a : Number )","body":"@ JsModule ( \"\" ) external fun ping ( a : Number )","docstring":""} {"signature":"fun next ( )","body":"= start + if ( reversed ) - ( -- count ) else ( -- count )","docstring":""} {"signature":"fun box ( ) : String","body":"{ val r = Range ( ) if ( r . next ( ) != ) { return \"\" } if ( r . next ( ) != ) { return \"\" } return \"\" }","docstring":""} {"signature":"fun ClassNotAvailableInSwift . doSomethingMeaningless ( another : ClassNotAvailableInSwift ) : ClassNotAvailableInSwift","body":"{ return ClassNotAvailableInSwift ( this . param + another . param ) }","docstring":""} {"signature":"fun String . doSomethingMeaningless ( another : ClassNotAvailableInSwift ) : ClassNotAvailableInSwift","body":"{ return ClassNotAvailableInSwift ( this + another . param ) }","docstring":""} {"signature":"fun useOfUnavailableClass ( param : ClassNotAvailableInSwift ) : ClassNotAvailableInSwift","body":"{ return ClassNotAvailableInSwift ( \"\" ) }","docstring":""} {"signature":"fun useOfNullableUnavailableClass ( param : ClassNotAvailableInSwift ? ) : ClassNotAvailableInSwift ?","body":"{ return null }","docstring":""} {"signature":"fun produceUnavailable ( ) : ClassNotAvailableInSwift","body":"{ return ClassNotAvailableInSwift ( \"\" ) }","docstring":""} {"signature":"fun consumeUnavailable ( param : ClassNotAvailableInSwift ) : String","body":"{ return param . param }","docstring":""} {"signature":"fun f ( ) : String","body":"fun f ( ) : String","docstring":""} {"signature":"fun createUnavailableInterface ( ) : InterfaceNotAvailableInSwift","body":"{ return object : InterfaceNotAvailableInSwift { override fun f ( ) : String = \"\" } }","docstring":""} {"signature":"fun useOfNullableUnavailableInterface ( param : InterfaceNotAvailableInSwift ? ) : String ?","body":"{ return param ? . f ( ) ? : \"\" }","docstring":""} {"signature":"fun createUnavailableEnum ( ) : UnavailableEnum","body":"{ return UnavailableEnum . A }","docstring":""} {"signature":"fun useOfUnavailableEnum ( param : UnavailableEnum ) : String","body":"{ return param . toString ( ) }","docstring":""} {"signature":"fun useOfNullableUnavailableEnum ( param : UnavailableEnum ? ) : String","body":"{ return param ? . toString ( ) ? : \"\" }","docstring":""} {"signature":"fun getUnavailableObject ( ) : UnavailableObject","body":"{ return UnavailableObject }","docstring":""} {"signature":"fun useOfUnavailableObject ( param : UnavailableObject ) : String","body":"{ return param . field }","docstring":""} {"signature":"fun useOfNullableUnavailableObject ( param : UnavailableObject ? ) : String ?","body":"{ return param ? . field ? : \"\" }","docstring":""} {"signature":"fun createSealedClass ( ) : SealedClass","body":"{ return SealedClass . A ( ) }","docstring":""} {"signature":"fun useSealedClass ( param : SealedClass ) : String","body":"{ return when ( param ) { is SealedClass . A -> \"\" is SealedClass . B -> \"\" SealedClass . C -> \"\" } }","docstring":""} {"signature":"fun < T : InterfaceNotAvailableInSwift > useUnavailable ( a : T ) : String","body":"{ return a . f ( ) }","docstring":""} {"signature":"@ Test fun readNulls ( )","body":"{ val src = \"\"\"\"\"\" . trimIndent ( ) val df = DataFrame . readDelimStr ( src ) df . nrow shouldBe df . ncol shouldBe df [ \"\" ] . type ( ) shouldBe typeOf < Int > ( ) df [ \"\" ] . allNulls ( ) shouldBe true df [ \"\" ] . type ( ) shouldBe typeOf < String ? > ( ) }","docstring":""} {"signature":"@ Test fun write ( )","body":"{ val df = dataFrameOf ( \"\" , \"\" ) ( , null , , null ) . convert ( \"\" ) . toStr ( ) val str = StringWriter ( ) df . writeCSV ( str ) val res = DataFrame . readDelimStr ( str . buffer . toString ( ) ) res shouldBe df }","docstring":""} {"signature":"@ Test fun readCSV ( )","body":"{ val df = DataFrame . read ( simpleCsv ) df . ncol shouldBe df . nrow shouldBe df . columnNames ( ) [ ] shouldBe \"\" df . columnNames ( ) [ ] shouldBe \"\" df [ \"\" ] . type ( ) shouldBe typeOf < String ? > ( ) df [ \"\" ] . type ( ) shouldBe typeOf < Double ? > ( ) df [ \"\" ] . type ( ) shouldBe typeOf < LocalDateTime > ( ) println ( df ) }","docstring":""} {"signature":"@ Test fun readCsvWithFrenchLocaleAndAlternativeDelimiter ( )","body":"{ val df = DataFrame . readCSV ( url = csvWithFrenchLocale , delimiter = '' , parserOptions = ParserOptions ( locale = Locale . FRENCH ) , ) df . ncol shouldBe df . nrow shouldBe df . columnNames ( ) [ ] shouldBe \"\" df . columnNames ( ) [ ] shouldBe \"\" df [ \"\" ] . type ( ) shouldBe typeOf < String ? > ( ) df [ \"\" ] . type ( ) shouldBe typeOf < Double ? > ( ) df [ \"\" ] . type ( ) shouldBe typeOf < Double > ( ) df [ \"\" ] . type ( ) shouldBe typeOf < LocalDateTime > ( ) println ( df ) }","docstring":""} {"signature":"@ Test fun readCsvWithFloats ( )","body":"{ val df = DataFrame . readCSV ( wineCsv , delimiter = '' ) val schema = df . schema ( ) fun assertColumnType ( columnName : String , kClass : KClass < * > ) { val col = schema . columns [ columnName ] col . shouldNotBeNull ( ) col . type . classifier shouldBe kClass } assertColumnType ( \"\" , Double :: class ) assertColumnType ( \"\" , Double :: class ) assertColumnType ( \"\" , Int :: class ) }","docstring":""} {"signature":"@ Test fun `read standard CSV with floats when user has alternative locale` ( )","body":"{ val currentLocale = Locale . getDefault ( ) try { Locale . setDefault ( Locale . forLanguageTag ( \"\" ) ) val df = DataFrame . readCSV ( wineCsv , delimiter = '' ) val schema = df . schema ( ) fun assertColumnType ( columnName : String , kClass : KClass < * > ) { val col = schema . columns [ columnName ] col . shouldNotBeNull ( ) col . type . classifier shouldBe kClass } assertColumnType ( \"\" , Double :: class ) assertColumnType ( \"\" , Double :: class ) assertColumnType ( \"\" , Int :: class ) } finally { Locale . setDefault ( currentLocale ) } }","docstring":""} {"signature":"@ Test fun `read with custom header` ( )","body":"{ val header = ( '' .. '' ) . map { it . toString ( ) } val df = DataFrame . readCSV ( simpleCsv , header = header , skipLines = ) df . columnNames ( ) shouldBe header df [ \"\" ] . type ( ) shouldBe typeOf < Int > ( ) val headerShort = ( '' .. '' ) . map { it . toString ( ) } val dfShort = DataFrame . readCSV ( simpleCsv , header = headerShort , skipLines = ) dfShort . ncol shouldBe dfShort . columnNames ( ) shouldBe headerShort }","docstring":""} {"signature":"@ Test fun `read first rows` ( )","body":"{ val expected = listOf ( \"\" , \"\" , \"\" , \"\" , \"\" , \"\" , \"\" , \"\" , \"\" , \"\" , \"\" , ) val dfHeader = DataFrame . readCSV ( simpleCsv , readLines = ) dfHeader . nrow shouldBe dfHeader . columnNames ( ) shouldBe expected val dfThree = DataFrame . readCSV ( simpleCsv , readLines = ) dfThree . nrow shouldBe val dfFull = DataFrame . readCSV ( simpleCsv , readLines = ) dfFull . nrow shouldBe }","docstring":""} {"signature":"@ Test fun `if string starts with a number, it should be parsed as a string anyway` ( )","body":"{ val df = DataFrame . readCSV ( durationCsv ) df [ \"\" ] . type ( ) shouldBe typeOf < String > ( ) df [ \"\" ] . type ( ) shouldBe typeOf < String > ( ) }","docstring":""} {"signature":"@ Test fun `if record has fewer columns than header then pad it with nulls` ( )","body":"{ val csvContent = \"\"\"\"\"\" . trimIndent ( ) val df = shouldNotThrowAny { DataFrame . readDelimStr ( csvContent ) } df shouldBe dataFrameOf ( \"\" , \"\" , \"\" ) ( , , , , , null ) }","docstring":""} {"signature":"@ Test fun `write and read frame column` ( )","body":"{ val df = dataFrameOf ( \"\" , \"\" , \"\" ) ( , , , , , , , , ) val grouped = df . groupBy ( \"\" ) . into ( \"\" ) val str = grouped . toCsv ( ) val res = DataFrame . readDelimStr ( str ) res shouldBe grouped }","docstring":""} {"signature":"@ Test fun `write and read column group` ( )","body":"{ val df = dataFrameOf ( \"\" , \"\" , \"\" ) ( , , , , , ) val grouped = df . group ( \"\" , \"\" ) . into ( \"\" ) val str = grouped . toCsv ( ) val res = DataFrame . readDelimStr ( str ) res shouldBe grouped }","docstring":""} {"signature":"@ Test fun `CSV String of saved dataframe starts with column name` ( )","body":"{ val df = dataFrameOf ( \"\" ) ( ) df . toCsv ( ) . first ( ) shouldBe '' }","docstring":""} {"signature":"@ Test fun `guess tsv` ( )","body":"{ val df = DataFrame . read ( testResource ( \"\" ) ) df . columnsCount ( ) shouldBe df . rowsCount ( ) shouldBe }","docstring":""} {"signature":"@ Test fun `write csv without header produce correct file` ( )","body":"{ val df = dataFrameOf ( \"\" , \"\" , \"\" ) ( , , , , , , ) df . writeCSV ( \"\" , CSVFormat . DEFAULT . withSkipHeaderRecord ( ) , ) val producedFile = File ( \"\" ) producedFile . exists ( ) shouldBe true producedFile . readText ( ) shouldBe \"\" producedFile . delete ( ) }","docstring":""} {"signature":"fun getImage ( descriptor : DeclarationDescriptor ) : Image ?","body":"{ return when ( descriptor ) { is ClassDescriptor , is TypeParameterDescriptor , is TypeAliasDescriptor -> getImageFromJavaUI ( ISharedImages . IMG_OBJS_CLASS ) is FunctionDescriptor -> getImageFromJavaUI ( ISharedImages . IMG_OBJS_PUBLIC ) is VariableDescriptor -> getImageFromJavaUI ( ISharedImages . IMG_FIELD_PUBLIC ) is PackageViewDescriptor -> getImageFromJavaUI ( ISharedImages . IMG_OBJS_PACKAGE ) else -> null } }","docstring":""} {"signature":"fun getImage ( element : KtElement ) : Image ?","body":"{ return when ( element ) { is KtClassOrObject -> getImageFromJavaUI ( ISharedImages . IMG_OBJS_CLASS ) is KtFunction -> getImageFromJavaUI ( ISharedImages . IMG_OBJS_PUBLIC ) is KtVariableDeclaration -> getImageFromJavaUI ( ISharedImages . IMG_FIELD_PUBLIC ) else -> null } }","docstring":""} {"signature":"private fun getImageFromJavaUI ( imageName : String ) : Image","body":"= JavaUI . getSharedImages ( ) . getImage ( imageName )","docstring":""} {"signature":"fun box ( ) : String","body":"{ ByteArrayOutputStream ( ) . use { baos -> ObjectOutputStream ( baos ) . use { oos -> oos . writeObject ( SerializableDataObject ) } ByteArrayInputStream ( baos . toByteArray ( ) ) . use { bais -> val deseialized = ObjectInputStream ( bais ) . readObject ( ) assertEquals ( SerializableDataObject , deseialized ) assertNotSame ( deseialized , SerializableDataObject ) } } return \"\" }","docstring":""} {"signature":"fun build ( ) : FirThisReference","body":"{ return FirImplicitThisReference ( boundSymbol , contextReceiverNumber , diagnostic , ) }","docstring":""} {"signature":"@ OptIn ( ExperimentalContracts :: class ) inline fun buildImplicitThisReference ( init : FirImplicitThisReferenceBuilder . ( ) -> Unit = { } ) : FirThisReference","body":"{ contract { callsInPlace ( init , InvocationKind . EXACTLY_ONCE ) } return FirImplicitThisReferenceBuilder ( ) . apply ( init ) . build ( ) }","docstring":""} {"signature":"@ Test fun `excludeFilter smoke 0` ( )","body":"{ val files = TempFiles ( \"\" ) val header1 = files . file ( \"\" , \"\" ) val header2 = files . file ( \"\" , \"\" ) val header3 = files . file ( \"\" , \"\" ) val defFile = files . file ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) val library = buildNativeLibraryFrom ( defFile , files . directory ) val headers = library . getHeaderPaths ( ) . ownHeaders assertContains ( headers , header1 . absolutePath ) assertContains ( headers , header2 . absolutePath ) assertFalse ( header3 . absolutePath in headers ) }","docstring":""} {"signature":"@ Test fun `excludeFilter smoke 1` ( )","body":"{ val files = TempFiles ( \"\" ) val header1 = files . file ( \"\" , \"\" ) val header2 = files . file ( \"\" , \"\" ) val header3 = files . file ( \"\" , \"\" ) val defFile = files . file ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) val library = buildNativeLibraryFrom ( defFile , files . directory ) val headers = library . getHeaderPaths ( ) . ownHeaders assertContains ( headers , header1 . absolutePath ) assertFalse ( header2 . absolutePath in headers ) assertFalse ( header3 . absolutePath in headers ) }","docstring":""} {"signature":"@ Test fun `excludeFilter empty` ( )","body":"{ val files = TempFiles ( \"\" ) val header1 = files . file ( \"\" , \"\" ) val defFile = files . file ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) val library = buildNativeLibraryFrom ( defFile , files . directory ) val headers = library . getHeaderPaths ( ) . ownHeaders assertContains ( headers , header1 . absolutePath ) }","docstring":""} {"signature":"@ Test fun `excludeFilter has higher priority than headerFilter` ( )","body":"{ val files = TempFiles ( \"\" ) val header1 = files . file ( \"\" , \"\" ) val defFile = files . file ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) val library = buildNativeLibraryFrom ( defFile , files . directory ) val headers = library . getHeaderPaths ( ) . ownHeaders assertFalse ( header1 . absolutePath in headers ) }","docstring":""} {"signature":"override fun getContainingFile ( ) : SourceFile","body":"= SourceFile . NO_SOURCE_FILE","docstring":""} {"signature":"fun weight ( x0 : KtNDArray < Double > , x : KtNDArray < Double > , tau : Double = ) : KtNDArray < Double >","body":"{ var w = exp ( ( - ) * sum ( ( x - x0 ) `**` , axis = ) / ( ( * tau ) * ( * tau ) ) ) w = diag ( w ) return w }","docstring":""} {"signature":"fun weightedLeastSquares ( x : KtNDArray < Double > , y : KtNDArray < Double > , weights : KtNDArray < Double > ) : KtNDArray < Double >","body":"= Linalg . inv ( transpose ( x ) . dot ( weights . dot ( x ) ) ) . dot ( transpose ( x ) . dot ( weights . dot ( y ) ) )","docstring":""} {"signature":"fun weightedRegression ( x : KtNDArray < Double > , y : KtNDArray < Double > , tau : Double = ) : KtNDArray < Double >","body":"{ val yHat = zerosLike ( y ) val sh = x . shape [ ] for ( i in until sh ) { val w = weight ( x [ i .. i + ] . ravel ( ) , x , tau ) val theta = weightedLeastSquares ( x , y , w ) yHat [ i ] = x . dot ( theta ) [ i ] } return yHat }","docstring":""} {"signature":"fun r2Score ( y : KtNDArray < Double > , yHat : KtNDArray < Double > )","body":"= - sum ( ( y - yHat ) `**` ) / `var` ( y ) / y . shape [ ]","docstring":""} {"signature":"fun searchAccuracies ( taus : KtNDArray < Double > , x : KtNDArray < Double > , y : KtNDArray < Double > ) : KtNDArray < Double >","body":"{ val r = arrayListOf < Double > ( ) for ( tau in taus . flatIter ( ) ) { r . add ( r2Score ( y , weightedRegression ( x , y , tau = tau ) ) ) } return array ( r ) }","docstring":""} {"signature":"fun main ( )","body":"{ val data = linspace < Double > ( - , , ) val y = sin ( data `**` / ) data += Random . normal ( scale = , size = * intArrayOf ( ) ) val x = hstack ( ones < Double > ( ) . reshape ( , ) , data . reshape ( , ) ) val taus = linspace < Double > ( , , ) val accuracies = searchAccuracies ( taus , x , y ) println ( accuracies ) }","docstring":""} {"signature":"fun isSuppressed ( diagnostic : Diagnostic ) : Boolean","body":"fun isSuppressed ( diagnostic : Diagnostic ) : Boolean","docstring":""} {"signature":"fun isSuppressed ( diagnostic : Diagnostic , bindingContext : BindingContext ? ) : Boolean","body":"= isSuppressed ( diagnostic )","docstring":""} {"signature":"protected open fun isSuppressedByExtension ( suppressor : DiagnosticSuppressor , diagnostic : Diagnostic ) : Boolean","body":"{ return suppressor . isSuppressed ( diagnostic ) }","docstring":""} {"signature":"abstract fun getSuppressionAnnotations ( annotated : PsiElement ) : List < AnnotationDescriptor >","body":"abstract fun getSuppressionAnnotations ( annotated : PsiElement ) : List < AnnotationDescriptor >","docstring":""} {"signature":"override fun getSuppressingStrings ( annotated : PsiElement ) : Set < String >","body":"{ val builder = ImmutableSet . builder < String > ( ) for ( annotationDescriptor in getSuppressionAnnotations ( annotated ) ) { processAnnotation ( builder , annotationDescriptor ) } return builder . build ( ) }","docstring":""} {"signature":"private fun processAnnotation ( builder : ImmutableSet . Builder < String > , annotationDescriptor : AnnotationDescriptor )","body":"{ if ( annotationDescriptor . fqName != StandardNames . FqNames . suppress ) return for ( arrayValue in annotationDescriptor . allValueArguments . values ) { if ( arrayValue is ArrayValue ) { for ( value in arrayValue . value ) { if ( value is StringValue ) { builder . add ( value . value . lowercase ( ) ) } } } } }","docstring":""} {"signature":"override fun isSuppressed ( request : SuppressRequest < PsiElement > ) : Boolean","body":"{ val element = request . element if ( ! element . isValid ) return true val file = element . containingFile if ( file is KtFile ) { if ( file . doNotAnalyze != null ) return true } if ( request is DiagnosticSuppressRequest ) { for ( suppressor in diagnosticSuppressors ) { if ( isSuppressedByExtension ( suppressor , request . diagnostic ) ) return true } } return super . isSuppressed ( request ) }","docstring":""} {"signature":"override fun getClosestAnnotatedAncestorElement ( element : PsiElement , rootElement : PsiElement , excludeSelf : Boolean ) : PsiElement ?","body":"= KtStubbedPsiUtil . getPsiOrStubParent ( element , KtAnnotated :: class . java , excludeSelf )","docstring":""} {"signature":"internal fun getDiagnosticSuppressKey ( diagnostic : Diagnostic ) : String","body":"= diagnostic . factory . name . lowercase ( )","docstring":""} {"signature":"override fun getSuppressionAnnotations ( annotated : PsiElement ) : List < AnnotationDescriptor >","body":"{ val descriptor = context . get ( BindingContext . DECLARATION_TO_DESCRIPTOR , annotated ) return descriptor ? . annotations ? . toList ( ) ? : ( annotated as? KtAnnotated ) ? . annotationEntries ? . mapNotNull { context . get ( BindingContext . ANNOTATION , it ) } ? : emptyList ( ) }","docstring":""} {"signature":"override fun isSuppressedByExtension ( suppressor : DiagnosticSuppressor , diagnostic : Diagnostic ) : Boolean","body":"{ return suppressor . isSuppressed ( diagnostic , context ) }","docstring":""} {"signature":"public fun toArray ( ) : Array < Any ? >","body":"{ val a = arrayOfNulls < Any ? > ( ) a [ ] = a [ ] = a [ ] = return a }","docstring":""} {"signature":"public fun < E > toArray ( array : Array < E > ) : Array < E >","body":"{ val asIntArray = array as Array < Int > asIntArray [ ] = asIntArray [ ] = asIntArray [ ] = return array }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val collection = MyCollection ( Arrays . asList ( , , ) ) as java . util . Collection < * > val array1 = collection . toArray ( ) val array2 = collection . toArray ( arrayOfNulls < Int > ( ) as Array < Int > ) if ( ! array1 . isArrayOf < Any > ( ) ) return ( array1 as Object ) . getClass ( ) . toString ( ) if ( ! array2 . isArrayOf < Int > ( ) ) return ( array2 as Object ) . getClass ( ) . toString ( ) val s1 = Arrays . toString ( array1 ) val s2 = Arrays . toString ( array2 ) if ( s1 != \"\" ) return \"\" if ( s2 != \"\" ) return \"\" return \"\" }","docstring":""} {"signature":"@ Throws ( Throwable :: class ) operator fun invoke ( ) : Int","body":"@ Throws ( Throwable :: class ) operator fun invoke ( ) : Int","docstring":""} {"signature":"@ Test fun `simple method invocation` ( )","body":"{ val instance = TestInterface { } val proxy = automagicTypedProxy < TestInterface > ( instance . javaClass . classLoader , instance ) assertEquals ( , proxy ( ) ) }","docstring":""} {"signature":"@ Test fun `exception throw in DokkaBootstrap is not wrapped inside UndeclaredThrowableException` ( )","body":"{ val instanceThrowingTestException = object : DokkaBootstrap { override fun configure ( serializedConfigurationJSON : String , logger : BiConsumer < String , String > ) = Unit override fun generate ( ) { throw TestException ( \"\" , Exception ( \"\" ) ) } } val proxy = automagicTypedProxy < DokkaBootstrap > ( instanceThrowingTestException . javaClass . classLoader , instanceThrowingTestException ) val exception = assertFailsWith < TestException > { proxy . generate ( ) } assertEquals ( \"\" , exception . message ) assertEquals ( \"\" , exception . cause ? . message ) }","docstring":""} {"signature":"@ Setup fun setUp ( )","body":"{ data = }","docstring":""} {"signature":"@ Benchmark fun sqrtBenchmark ( ) : Double","body":"{ return Math . sqrt ( data ) }","docstring":""} {"signature":"@ Benchmark fun cosBenchmark ( ) : Double","body":"{ return Math . cos ( data ) }","docstring":""} {"signature":"fun createLibrarySession ( mainModuleName : Name , sessionProvider : FirProjectSessionProvider , moduleDataProvider : ModuleDataProvider , module : TestModule , testServices : TestServices , configuration : CompilerConfiguration , extensionRegistrars : List < FirExtensionRegistrar > , registerExtraComponents : ( ( FirSession ) -> Unit ) , ) : FirSession","body":"{ val resolvedLibraries = resolveLibraries ( configuration , getAllJsDependenciesPaths ( module , testServices ) ) return FirJsSessionFactory . createLibrarySession ( mainModuleName , resolvedLibraries . map { it . library } , sessionProvider , moduleDataProvider , extensionRegistrars , configuration , registerExtraComponents , ) }","docstring":""} {"signature":"fun createModuleBasedSession ( mainModuleData : FirModuleData , sessionProvider : FirProjectSessionProvider , extensionRegistrars : List < FirExtensionRegistrar > , configuration : CompilerConfiguration , lookupTracker : LookupTracker ? , registerExtraComponents : ( ( FirSession ) -> Unit ) , sessionConfigurator : FirSessionConfigurator . ( ) -> Unit , ) : FirSession","body":"= FirJsSessionFactory . createModuleBasedSession ( mainModuleData , sessionProvider , extensionRegistrars , configuration , lookupTracker , icData = null , registerExtraComponents , sessionConfigurator )","docstring":""} {"signature":"fun getAllJsDependenciesPaths ( module : TestModule , testServices : TestServices ) : List < String >","body":"{ return JsEnvironmentConfigurator . getRuntimePathsForModule ( module , testServices ) + getTransitivesAndFriendsPaths ( module , testServices ) }","docstring":""} {"signature":"fun box ( )","body":"{ when ( ) { -> \"\" -> \"\" else -> \"\" } }","docstring":""} {"signature":"@ OptIn ( KtAllowAnalysisOnEdt :: class , KtAllowAnalysisFromWriteAction :: class ) override fun resolve ( ref : KtReference , incompleteCode : Boolean ) : Array < ResolveResult >","body":"{ check ( ref is KtFirReference ) { \"\" } check ( ref is AbstractKtReference < * > ) { \"\" } return allowAnalysisOnEdt { allowAnalysisFromWriteAction { val resolveToPsiElements = try { analyze ( ref . expression ) { ref . getResolvedToPsi ( this ) } } catch ( e : Exception ) { if ( shouldIjPlatformExceptionBeRethrown ( e ) ) throw e errorWithAttachment ( \"\" , cause = e ) { withPsiEntry ( \"\" , ref . element ) } } resolveToPsiElements . map { KotlinResolveResult ( it ) } . toTypedArray ( ) } } }","docstring":""} {"signature":"fun build ( ) : FirDelegateFieldReference","body":"{ return FirDelegateFieldReferenceImpl ( source , resolvedSymbol , ) }","docstring":""} {"signature":"@ OptIn ( ExperimentalContracts :: class ) inline fun buildDelegateFieldReference ( init : FirDelegateFieldReferenceBuilder . ( ) -> Unit ) : FirDelegateFieldReference","body":"{ contract { callsInPlace ( init , InvocationKind . EXACTLY_ONCE ) } return FirDelegateFieldReferenceBuilder ( ) . apply ( init ) . build ( ) }","docstring":""} {"signature":"override fun checkType ( expression : KtExpression , expressionType : KotlinType , expressionTypeWithSmartCast : KotlinType , c : ResolutionContext < * > )","body":"{ checkTypeParameterBounds ( expression , expressionType , c ) val dataFlowValue by lazy ( LazyThreadSafetyMode . NONE ) { c . dataFlowValueFactory . createDataFlowValue ( expression , expressionType , c ) } findTypeParameterWithWrongBoundsNullability ( expressionType , c ) { dataFlowValue } ? . let { typeParameterDescriptor -> c . trace . report ( ErrorsJvm . NULLABLE_TYPE_PARAMETER_AGAINST_NOT_NULL_TYPE_PARAMETER . on ( expression , typeParameterDescriptor ) ) } doCheckType ( expressionType , c . expectedType , { dataFlowValue } , c . dataFlowInfo ) { expectedType , actualType -> c . trace . report ( ErrorsJvm . NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS . on ( expression , expectedType , actualType ) ) } when ( expression ) { is KtWhenExpression -> if ( expression . elseExpression == null ) { val subjectExpression = expression . subjectExpression ? : return val type = c . trace . getType ( subjectExpression ) ? : return if ( type . isFlexible ( ) && TypeUtils . isNullableType ( type . asFlexibleType ( ) . upperBound ) ) { val enumClassDescriptor = WhenChecker . getClassDescriptorOfTypeIfEnum ( type ) ? : return val context = c . trace . bindingContext if ( WhenChecker . getEnumMissingCases ( expression , context , enumClassDescriptor ) . isEmpty ( ) && ! WhenChecker . containsNullCase ( expression , context ) ) { val subjectDataFlowValue = c . dataFlowValueFactory . createDataFlowValue ( subjectExpression , type , c ) val dataFlowInfo = c . trace [ BindingContext . EXPRESSION_TYPE_INFO , subjectExpression ] ? . dataFlowInfo if ( dataFlowInfo != null && ! dataFlowInfo . getStableNullability ( subjectDataFlowValue ) . canBeNull ( ) ) { return } c . trace . report ( ErrorsJvm . WHEN_ENUM_CAN_BE_NULL_IN_JAVA . on ( expression . subjectExpression ! ! ) ) } } } is KtPostfixExpression -> if ( expression . operationToken == KtTokens . EXCLEXCL ) { val baseExpression = expression . baseExpression ? : return val baseExpressionType = c . trace . getType ( baseExpression ) ? : return doIfNotNull ( baseExpressionType , { c . dataFlowValueFactory . createDataFlowValue ( baseExpression , baseExpressionType , c ) } , c ) { c . trace . report ( Errors . UNNECESSARY_NOT_NULL_ASSERTION . on ( expression . operationReference , baseExpressionType ) ) } } is KtBinaryExpression -> when ( expression . operationToken ) { KtTokens . EQEQ , KtTokens . EXCLEQ , KtTokens . EQEQEQ , KtTokens . EXCLEQEQEQ -> { if ( expression . left != null && expression . right != null ) { SenselessComparisonChecker . checkSenselessComparisonWithNull ( expression , expression . left ! ! , expression . right ! ! , c , { c . trace . getType ( it ) } , { value -> doIfNotNull ( value . type , { value } , c ) { Nullability . NOT_NULL } ? : Nullability . UNKNOWN } ) } } } } }","docstring":""} {"signature":"private fun checkTypeParameterBounds ( expression : KtExpression , expressionType : KotlinType , c : ResolutionContext < * > )","body":"{ if ( expressionType is AbbreviatedType ) { upperBoundChecker . checkBoundsOfExpandedTypeAlias ( expressionType . expandedType , expression , c . trace ) } if ( upperBoundChecker !is WarningAwareUpperBoundChecker ) return val call = ( c as? BasicCallResolutionContext ) ? . call ? : c . trace . bindingContext [ BindingContext . CALL , ( expression as? KtCallExpression ) ? . calleeExpression ] ? : return val resolvedCall = c . trace . bindingContext [ BindingContext . RESOLVED_CALL , call ] ? : return val typeArguments = if ( resolvedCall is NewResolvedCallImpl < * > ) { resolvedCall . resolvedCallAtom . typeArgumentMappingByOriginal } else { resolvedCall . typeArguments . entries } for ( ( typeParameter , typeArgument ) in typeArguments ) { val typeReference = call . typeArguments . getOrNull ( typeParameter . index ) ? . typeReference ? : continue if ( typeArgument == null ) continue upperBoundChecker . checkBounds ( typeReference , typeArgument , typeParameter , TypeSubstitutor . create ( typeArgument ) , c . trace , withOnlyCheckForWarning = true ) } }","docstring":""} {"signature":"private fun findTypeParameterWithWrongBoundsNullability ( expressionType : KotlinType , c : ResolutionContext < * > , dataFlowValueForWholeExpression : ( ) -> DataFlowValue ) : TypeParameterDescriptor ?","body":"{ if ( c . languageVersionSettings . supportsFeature ( LanguageFeature . ProhibitUsingNullableTypeParameterAgainstNotNullAnnotated ) ) return null if ( TypeUtils . noExpectedType ( c . expectedType ) ) return null var foundSubtypeTypeParameter : TypeParameterDescriptor ? = null @ OptIn ( ClassicTypeCheckerStateInternals :: class ) val typeState : TypeCheckerState = object : ClassicTypeCheckerState ( isErrorTypeEqualsToAnything = true ) { private var expectsTypeArgument = false override fun customIsSubtypeOf ( subType : KotlinTypeMarker , superType : KotlinTypeMarker ) : Boolean { if ( isNullableTypeAgainstNotNullTypeParameter ( subType as KotlinType , superType as KotlinType ) ) { if ( expectsTypeArgument || c . dataFlowInfo . getStableNullability ( dataFlowValueForWholeExpression ( ) ) != Nullability . NOT_NULL ) { foundSubtypeTypeParameter = subType . constructor . declarationDescriptor as? TypeParameterDescriptor return false } } if ( ! expectsTypeArgument ) { expectsTypeArgument = true } return true } } AbstractTypeChecker . isSubtypeOf ( typeState , expressionType , c . expectedType ) return foundSubtypeTypeParameter }","docstring":""} {"signature":"override fun checkReceiver ( receiverParameter : ReceiverParameterDescriptor , receiverArgument : ReceiverValue , safeAccess : Boolean , c : CallResolutionContext < * > )","body":"{ val dataFlowValue by lazy ( LazyThreadSafetyMode . NONE ) { c . dataFlowValueFactory . createDataFlowValue ( receiverArgument , c ) } if ( safeAccess ) { val safeAccessElement = c . call . callOperationNode ? . psi ? : return doIfNotNull ( receiverArgument . type , { dataFlowValue } , c ) { c . trace . report ( Errors . UNNECESSARY_SAFE_CALL . on ( safeAccessElement , receiverArgument . type ) ) } return } doCheckType ( receiverArgument . type , receiverParameter . type , { dataFlowValue } , c . dataFlowInfo ) { expectedType , actualType -> val receiverExpression = ( receiverArgument as? ExpressionReceiver ) ? . expression if ( receiverExpression != null ) { c . trace . report ( ErrorsJvm . RECEIVER_NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS . on ( receiverExpression , actualType ) ) } else { val reportOn = c . call . calleeExpression ? : c . call . callElement c . trace . report ( ErrorsJvm . NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS . on ( reportOn , expectedType , actualType ) ) } } }","docstring":""} {"signature":"private fun doCheckType ( expressionType : KotlinType , expectedType : KotlinType , expressionTypeDataFlowValue : ( ) -> DataFlowValue , dataFlowInfo : DataFlowInfo , reportWarning : ( expectedType : KotlinType , actualType : KotlinType ) -> Unit )","body":"{ if ( TypeUtils . noExpectedType ( expectedType ) ) return @ Suppress ( \"\" ) val expressionType = exactedExpressionTypeByDataFlowNullability ( expressionType , expressionTypeDataFlowValue , dataFlowInfo ) val isEnhancedExpectedTypeSubtypeOfExpressionType = typeCheckerForEnhancedTypes . isSubtypeOf ( expressionType , expectedType ) if ( isEnhancedExpectedTypeSubtypeOfExpressionType ) return val isExpectedTypeSubtypeOfExpressionType = typeCheckerForBaseTypes . isSubtypeOf ( expressionType , expectedType ) if ( ! isEnhancedExpectedTypeSubtypeOfExpressionType && isExpectedTypeSubtypeOfExpressionType ) { reportWarning ( expectedType . unwrapEnhancementDeeply ( ) , expressionType . unwrapEnhancementDeeply ( ) ) } }","docstring":""} {"signature":"private fun exactedExpressionTypeByDataFlowNullability ( expressionType : KotlinType , expressionTypeDataFlowValue : ( ) -> DataFlowValue , dataFlowInfo : DataFlowInfo , ) : KotlinType","body":"{ val isNotNullByDataFlowInfo = dataFlowInfo . getStableNullability ( expressionTypeDataFlowValue ( ) ) == Nullability . NOT_NULL return if ( expressionType . isNullable ( ) && isNotNullByDataFlowInfo ) expressionType . makeNotNullable ( ) else expressionType }","docstring":""} {"signature":"private fun < T : Any > doIfNotNull ( type : KotlinType , dataFlowValue : ( ) -> DataFlowValue , c : ResolutionContext < * > , body : ( ) -> T )","body":"= if ( type . mustNotBeNull ( ) ? . isFromJava == true && c . dataFlowInfo . getStableNullability ( dataFlowValue ( ) ) . canBeNull ( ) ) { body ( ) } else { null }","docstring":""} {"signature":"override fun prepareType ( type : KotlinTypeMarker ) : UnwrappedType","body":"= super . prepareType ( type ) . let { it . getEnhancementDeeply ( ) ? : it } . unwrap ( )","docstring":""} {"signature":"fun isNullableTypeAgainstNotNullTypeParameter ( subType : KotlinType , superType : KotlinType ) : Boolean","body":"{ if ( superType !is NotNullTypeParameter || subType is NotNullTypeParameter ) return false return ! AbstractNullabilityChecker . isSubtypeOfAny ( createClassicTypeCheckerState ( isErrorTypeEqualsToAnything = true ) , subType ) }","docstring":""} {"signature":"private fun KotlinType . enhancementFromKotlin ( )","body":"= EnhancedNullabilityInfo ( this , isFromJava = false )","docstring":""} {"signature":"private fun TypeWithEnhancement . enhancementFromJava ( )","body":"= EnhancedNullabilityInfo ( enhancement , isFromJava = true )","docstring":""} {"signature":"fun KotlinType . mustNotBeNull ( ) : EnhancedNullabilityInfo ?","body":"= when { ! isError && ! isFlexible ( ) && ! TypeUtils . acceptsNullable ( this ) -> enhancementFromKotlin ( ) isFlexible ( ) && ! TypeUtils . acceptsNullable ( asFlexibleType ( ) . upperBound ) -> enhancementFromKotlin ( ) this is TypeWithEnhancement && enhancement . mustNotBeNull ( ) != null -> enhancementFromJava ( ) else -> null }","docstring":""} {"signature":"fun renderAnnotations ( analysisSession : KtAnalysisSession , annotations : KtAnnotationsList )","body":"= buildString { renderAnnotationsRecursive ( analysisSession , annotations , currentMetaAnnotations = null , indent = ) }","docstring":""} {"signature":"fun renderAnnotationsWithMeta ( analysisSession : KtAnalysisSession , annotations : KtAnnotationsList )","body":"= buildString { renderAnnotationsRecursive ( analysisSession , annotations , currentMetaAnnotations = setOf ( ) , indent = ) }","docstring":""} {"signature":"private fun StringBuilder . renderAnnotationsRecursive ( analysisSession : KtAnalysisSession , annotations : KtAnnotationsList , currentMetaAnnotations : Set < ClassId > ? , indent : Int )","body":"{ appendLine ( \"\" . indented ( indent ) ) for ( annotation in annotations . annotations ) { appendLine ( DebugSymbolRenderer ( ) . renderAnnotationApplication ( analysisSession , annotation ) . indented ( indent = indent + ) ) if ( currentMetaAnnotations != null ) { val classId = annotation . classId ? : continue if ( classId in currentMetaAnnotations ) { appendLine ( \"\" . indented ( indent + ) ) continue } val metaAnnotations = with ( analysisSession ) { getClassOrObjectSymbolByClassId ( classId ) ? . annotationsList } if ( metaAnnotations != null ) { renderAnnotationsRecursive ( analysisSession , metaAnnotations , currentMetaAnnotations + classId , indent = indent + ) } else { appendLine ( \"\" . indented ( indent + ) ) } } } appendLine ( \"\" . indented ( indent ) ) }","docstring":""} {"signature":"fun main ( )","body":"{ val data = Json . decodeFromString < Project > ( \"\"\"\"\"\" ) println ( data ) }","docstring":""} {"signature":"operator fun plus ( f : Foo ) : WithOperator","body":"operator fun plus ( f : Foo ) : WithOperator","docstring":""} {"signature":"fun test ( withOperator : WithOperator , foo : Foo )","body":"{ var variable = withOperator variable < caret > += foo }","docstring":""} {"signature":"fun prepareAnalyzedSourceModule ( project : Project , files : List < KtFile > , configuration : CompilerConfiguration , dependencies : List < String > , friendDependencies : List < String > , analyzer : AbstractAnalyzerWithCompilerReport , errorPolicy : ErrorTolerancePolicy = configuration . get ( JSConfigurationKeys . ERROR_TOLERANCE_POLICY ) ? : ErrorTolerancePolicy . DEFAULT , analyzerFacade : AbstractTopDownAnalyzerFacadeForWeb = TopDownAnalyzerFacadeForJSIR , ) : ModulesStructure","body":"{ val mainModule = MainModule . SourceFiles ( files ) val sourceModule = ModulesStructure ( project , mainModule , configuration , dependencies , friendDependencies ) return sourceModule . apply { runAnalysis ( errorPolicy , analyzer , analyzerFacade ) } }","docstring":""} {"signature":"override fun shouldNotGenerateDelegatedMember ( memberSymbolFromSuperInterface : FirCallableSymbol < * > ) : Boolean","body":"{ val original = memberSymbolFromSuperInterface . unwrapFakeOverrides ( ) return original . isNonAbstractJavaMethod ( ) || original . hasJvmDefaultAnnotation ( ) || original . isBuiltInMemberMappedToJavaDefault ( ) || original . origin == FirDeclarationOrigin . Synthetic . FakeHiddenInPreparationForNewJdk }","docstring":""} {"signature":"private fun FirCallableSymbol < * > . isNonAbstractJavaMethod ( ) : Boolean","body":"{ return origin == FirDeclarationOrigin . Enhancement && fir . modality != Modality . ABSTRACT }","docstring":""} {"signature":"private fun FirCallableSymbol < * > . hasJvmDefaultAnnotation ( ) : Boolean","body":"{ return annotations . hasAnnotation ( JvmStandardClassIds . JVM_DEFAULT_CLASS_ID , session ) }","docstring":""} {"signature":"private fun FirCallableSymbol < * > . isBuiltInMemberMappedToJavaDefault ( ) : Boolean","body":"{ return fir . modality != Modality . ABSTRACT && annotations . hasAnnotation ( PLATFORM_DEPENDENT_ANNOTATION_CLASS_ID , session ) }","docstring":""} {"signature":"fun box ( ) : String","body":"= A . result","docstring":""} {"signature":"fun box ( ) : String","body":"{ @ OptIn ( kotlin . experimental . ExperimentalNativeApi :: class ) if ( Platform . memoryModel != MemoryModel . EXPERIMENTAL ) { return \"\" } val w1 = Worker . start ( ) val w2 = Worker . start ( ) val f1 = w1 . execute ( TransferMode . SAFE , { -> } ) { repeat ( ) { while ( x != ) { } y = it x = } \"\" } val f2 = w2 . execute ( TransferMode . SAFE , { -> } ) { var result = \"\" repeat ( ) { while ( x != ) { } if ( y != it ) result = \"\" x = } result } return ( f1 . result + f2 . result ) . also { w1 . requestTermination ( ) . result w2 . requestTermination ( ) . result } }","docstring":""} {"signature":"fun foo ( ) : Int","body":"{ log += \"\" return }","docstring":""} {"signature":"fun bar ( ) : Int","body":"{ log += \"\" return }","docstring":""} {"signature":"operator fun plus ( other : A )","body":"= A ( x + other . x )","docstring":""} {"signature":"fun box ( ) : String","body":"{ val array = arrayOf ( , ) array [ foo ( ) ] += bar ( ) if ( array [ ] != ) return \"\" if ( array [ ] != ) return \"\" log += \"\" val objArray = arrayOf ( A ( ) , A ( ) ) objArray [ foo ( ) ] += A ( bar ( ) ) if ( objArray [ ] != A ( ) ) return \"\" if ( objArray [ ] != A ( ) ) return \"\" if ( log != \"\" ) return \"\" return \"\" }","docstring":""} {"signature":"fun getRoot ( ) : ReadonlyTreeNode < T > ?","body":"fun getRoot ( ) : ReadonlyTreeNode < T > ?","docstring":""} {"signature":"operator fun get ( childName : String ) : ReadonlyTreeNode < T > ?","body":"operator fun get ( childName : String ) : ReadonlyTreeNode < T > ?","docstring":""} {"signature":"fun getInstance ( project : Project ) : Fe10AnalysisFacade","body":"{ return project . getService ( Fe10AnalysisFacade :: class . java ) }","docstring":""} {"signature":"fun getAnalysisContext ( element : KtElement , token : KtLifetimeToken ) : Fe10AnalysisContext","body":"fun getAnalysisContext ( element : KtElement , token : KtLifetimeToken ) : Fe10AnalysisContext","docstring":""} {"signature":"fun getAnalysisContext ( ktModule : KtModule , token : KtLifetimeToken ) : Fe10AnalysisContext","body":"fun getAnalysisContext ( ktModule : KtModule , token : KtLifetimeToken ) : Fe10AnalysisContext","docstring":""} {"signature":"fun analyze ( elements : List < KtElement > , mode : AnalysisMode = AnalysisMode . FULL ) : BindingContext","body":"fun analyze ( elements : List < KtElement > , mode : AnalysisMode = AnalysisMode . FULL ) : BindingContext","docstring":""} {"signature":"fun analyze ( element : KtElement , mode : AnalysisMode = AnalysisMode . FULL ) : BindingContext","body":"{ return analyze ( listOf ( element ) , mode ) }","docstring":""} {"signature":"fun getOrigin ( file : VirtualFile ) : KtSymbolOrigin","body":"fun getOrigin ( file : VirtualFile ) : KtSymbolOrigin","docstring":""} {"signature":"operator fun Any ? . getValue ( thisRef : Any ? , property : KProperty < * > )","body":"= \"\"","docstring":""} {"signature":"fun box ( ) : String","body":"{ assertEquals ( , :: s . apply { isAccessible = true } . getDelegate ( ) ) return \"\" }","docstring":""} {"signature":"override fun build ( ) : FirStringConcatenationCall","body":"{ return FirStringConcatenationCallImpl ( source , annotations . toMutableOrEmpty ( ) , argumentList , ) }","docstring":""} {"signature":"@ OptIn ( ExperimentalContracts :: class ) inline fun buildStringConcatenationCall ( init : FirStringConcatenationCallBuilder . ( ) -> Unit ) : FirStringConcatenationCall","body":"{ contract { callsInPlace ( init , InvocationKind . EXACTLY_ONCE ) } return FirStringConcatenationCallBuilder ( ) . apply ( init ) . build ( ) }","docstring":""} {"signature":"expect fun < T > CoroutineScope . asyncWithDealy ( delay : Long , block : suspend ( ) -> T ) : Deferred < T >","body":"expect fun < T > CoroutineScope . asyncWithDealy ( delay : Long , block : suspend ( ) -> T ) : Deferred < T >","docstring":"/**\n * Common `expect` declaration\n */"} {"signature":"fun CoroutineDispatcher . name ( ) : String","body":"= TODO ( \"\" )","docstring":"/**\n * Common coroutine extension\n */"} {"signature":"override fun check ( declaration : FirDeclaration , context : CheckerContext , reporter : DiagnosticReporter )","body":"{ for ( annotation in declaration . annotations ) { val annotationClassSymbol = annotation . toAnnotationClassLikeSymbol ( context . session ) ? : continue if ( annotationClassSymbol . getExplicitAnnotationRetention ( context . session ) != AnnotationRetention . RUNTIME ) continue if ( declaration is FirMemberDeclaration && declaration . symbol . isEffectivelyExternal ( context ) ) { reporter . reportOn ( annotation . source , FirJsErrors . RUNTIME_ANNOTATION_ON_EXTERNAL_DECLARATION , context ) } else { reporter . reportOn ( annotation . source , FirJsErrors . RUNTIME_ANNOTATION_NOT_SUPPORTED , context ) } } }","docstring":""} {"signature":"private fun resolveAccessorCall ( suspendPropertyDescriptor : PropertyDescriptor , context : TranslationContext ) : ResolvedCall < PropertyDescriptor >","body":"{ return object : ResolvedCall < PropertyDescriptor > { override fun getStatus ( ) = ResolutionStatus . SUCCESS override fun getCandidateDescriptor ( ) = suspendPropertyDescriptor override fun getResultingDescriptor ( ) = suspendPropertyDescriptor } }","docstring":""} {"signature":"abstract fun renderClassId ( classId : ClassId )","body":"abstract fun renderClassId ( classId : ClassId )","docstring":""} {"signature":"abstract fun renderCallableId ( callableId : CallableId )","body":"abstract fun renderCallableId ( callableId : CallableId )","docstring":""} {"signature":"fun doTest ( path : String )","body":"{ val config = KotlinTestUtils . newConfiguration ( ConfigurationKind . ALL , TestJdkKind . ANDROID_API ) val env = createTestEnvironment ( config , getResPaths ( path ) ) val project = env . project val ext = PackageFragmentProviderExtension . getInstances ( project ) . first { it is AndroidPackageFragmentProviderExtension } val analysisResult = JvmResolveUtil . analyzeAndCheckForErrors ( listOf ( ) , env ) val fragmentProvider = ext . getPackageFragmentProvider ( project , analysisResult . moduleDescriptor , LockBasedStorageManager . NO_LOCKS , DummyTraces . DUMMY_EXCEPTION_ON_ERROR_TRACE , null , LookupTracker . DO_NOTHING ) as AndroidSyntheticPackageFragmentProvider val renderer = DescriptorRenderer . COMPACT_WITH_MODIFIERS val expected = fragmentProvider . packages . values . map { it ( ) } . sortedBy { it . fqName . asString ( ) } . joinToString ( separator = \"\" ) { packageFragment -> val descriptors = packageFragment . getMemberScope ( ) . getContributedDescriptors ( ) . sortedWith ( MemberComparator . INSTANCE ) . joinToString ( \"\" ) { \"\" + renderer . render ( it ) } packageFragment . fqName . asString ( ) + ( if ( descriptors . isNotEmpty ( ) ) \"\" + descriptors else \"\" ) } KotlinTestUtils . assertEqualsToFile ( File ( path , \"\" ) , expected ) }","docstring":""} {"signature":"internal fun sourcesJarTask ( compilation : KotlinCompilation < * > , componentName : String , artifactNameAppendix : String ) : TaskProvider < Jar >","body":"= sourcesJarTask ( project = compilation . target . project , sourceSets = compilation . target . project . future { compilation . internal . awaitAllKotlinSourceSets ( ) . associate { it . name to it . kotlin } } , componentName = componentName , artifactNameAppendix = artifactNameAppendix )","docstring":""} {"signature":"private fun sourcesJarTask ( project : Project , sourceSets : Future < Map < String , Iterable < File > > > , componentName : String , artifactNameAppendix : String , ) : TaskProvider < Jar >","body":"= sourcesJarTaskNamed ( taskName = lowerCamelCaseName ( componentName , \"\" ) , componentName = componentName , project = project , sourceSets = sourceSets , artifactNameAppendix = artifactNameAppendix )","docstring":""} {"signature":"internal fun sourcesJarTaskNamed ( taskName : String , componentName : String , project : Project , sourceSets : Future < Map < String , Iterable < File > > > , artifactNameAppendix : String , componentTypeName : String = \"\" , ) : TaskProvider < Jar >","body":"{ project . locateTask < Jar > ( taskName ) ? . let { return it } val result = project . registerTask < Jar > ( taskName ) { sourcesJar -> sourcesJar . archiveAppendix . set ( artifactNameAppendix ) sourcesJar . archiveClassifier . set ( \"\" ) sourcesJar . isPreserveFileTimestamps = false sourcesJar . isReproducibleFileOrder = true sourcesJar . group = BasePlugin . BUILD_GROUP sourcesJar . description = \"\" project . launch { sourcesJar . includeSources ( sourceSets . await ( ) ) } } return result }","docstring":""} {"signature":"internal fun Jar . includeSources ( compilation : KotlinCompilation < * > )","body":"{ compilation . internal . allKotlinSourceSets . forAll { sourceSet -> includeSources ( sourceSet . name , sourceSet . kotlin ) } }","docstring":""} {"signature":"internal fun Jar . includeSources ( sourceSets : Map < String , Iterable < File > > )","body":"{ sourceSets . forEach { ( name , sources ) -> includeSources ( name , sources ) } }","docstring":""} {"signature":"internal fun Jar . includeSources ( name : String , sources : Iterable < File > )","body":"{ from ( sources ) { spec -> spec . into ( name ) spec . duplicatesStrategy = DuplicatesStrategy . WARN } }","docstring":""} {"signature":"internal inline fun run1 ( fn : ( ) -> Int ) : Int","body":"{ log += \"\" return + fn ( ) }","docstring":""} {"signature":"internal inline fun run2 ( fn : ( ) -> Int ) : Int","body":"{ log += \"\" return + run1 ( fn ) }","docstring":""} {"signature":"internal inline fun run3 ( fn : ( ) -> Int ) : Int","body":"{ log += \"\" return + run2 ( fn ) }","docstring":""} {"signature":"internal fun test1 ( x : Int ) : Int","body":"= run3 { x }","docstring":""} {"signature":"internal fun test2 ( x : Int ) : Int","body":"{ val result = + run3 { x } return result }","docstring":""} {"signature":"fun box ( ) : String","body":"{ assertEquals ( , test1 ( ) ) assertEquals ( \"\" , log ) assertEquals ( , test2 ( ) ) return \"\" }","docstring":""} {"signature":"override fun reportSignatureConflict ( signature : RawSignature , declarations : Collection < IrField > , diagnosticReporter : IrDiagnosticReporter )","body":"{ reportSignatureClashTo ( diagnosticReporter , JvmBackendErrors . CONFLICTING_JVM_DECLARATIONS , declarations , ConflictingJvmDeclarationsData ( classInternalName = classCodegen . type . internalName , classOrigin = null , signature = signature , signatureOrigins = null , signatureDescriptors = declarations . map ( IrDeclaration :: toIrBasedDescriptor ) , ) , reportOnIfSynthetic = { classCodegen . irClass } , ) }","docstring":""} {"signature":"override fun run ( config : KonanConfig , environment : KotlinCoreEnvironment )","body":"{ usingNativeMemoryAllocator { usingJvmCInteropCallbacks { PhaseEngine . startTopLevel ( config ) { engine -> if ( ! config . compileFromBitcode . isNullOrEmpty ( ) ) produceBinaryFromBitcode ( engine , config , config . compileFromBitcode ! ! ) else when ( config . produce ) { CompilerOutputKind . PROGRAM -> produceBinary ( engine , config , environment ) CompilerOutputKind . DYNAMIC -> produceCLibrary ( engine , config , environment ) CompilerOutputKind . STATIC -> produceCLibrary ( engine , config , environment ) CompilerOutputKind . FRAMEWORK -> produceObjCFramework ( engine , config , environment ) CompilerOutputKind . LIBRARY -> produceKlib ( engine , config , environment ) CompilerOutputKind . BITCODE -> error ( \"\" ) CompilerOutputKind . DYNAMIC_CACHE -> produceBinary ( engine , config , environment ) CompilerOutputKind . STATIC_CACHE -> produceBinary ( engine , config , environment ) CompilerOutputKind . HEADER_CACHE -> produceBinary ( engine , config , environment ) CompilerOutputKind . TEST_BUNDLE -> produceBundle ( engine , config , environment ) } } } } }","docstring":""} {"signature":"private fun produceObjCFramework ( engine : PhaseEngine < PhaseContext > , config : KonanConfig , environment : KotlinCoreEnvironment )","body":"{ val frontendOutput = engine . runFrontend ( config , environment ) ? : return val objCExportedInterface = engine . runPhase ( ProduceObjCExportInterfacePhase , frontendOutput ) engine . runPhase ( CreateObjCFrameworkPhase , CreateObjCFrameworkInput ( frontendOutput . moduleDescriptor , objCExportedInterface ) ) if ( config . omitFrameworkBinary ) { return } val ( psiToIrOutput , objCCodeSpec ) = engine . runPsiToIr ( frontendOutput , isProducingLibrary = false ) { it . runPhase ( CreateObjCExportCodeSpecPhase , objCExportedInterface ) } require ( psiToIrOutput is PsiToIrOutput . ForBackend ) val backendContext = createBackendContext ( config , frontendOutput , psiToIrOutput ) { it . objCExportedInterface = objCExportedInterface it . objCExportCodeSpec = objCCodeSpec } engine . runBackend ( backendContext , psiToIrOutput . irModule ) }","docstring":"/**\n * Create an Objective-C framework which is a directory consisting of\n * - Objective-C header\n * - Info.plist\n * - Binary (if -Xomit-framework-binary is not passed).\n */"} {"signature":"private fun produceCLibrary ( engine : PhaseEngine < PhaseContext > , config : KonanConfig , environment : KotlinCoreEnvironment )","body":"{ val frontendOutput = engine . runFrontend ( config , environment ) ? : return val ( psiToIrOutput , cAdapterElements ) = engine . runPsiToIr ( frontendOutput , isProducingLibrary = false ) { if ( config . cInterfaceGenerationMode == CInterfaceGenerationMode . V1 ) { it . runPhase ( BuildCExports , frontendOutput ) } else { null } } require ( psiToIrOutput is PsiToIrOutput . ForBackend ) val backendContext = createBackendContext ( config , frontendOutput , psiToIrOutput ) { it . cAdapterExportedElements = cAdapterElements } engine . runBackend ( backendContext , psiToIrOutput . irModule ) }","docstring":""} {"signature":"private fun produceKlib ( engine : PhaseEngine < PhaseContext > , config : KonanConfig , environment : KotlinCoreEnvironment )","body":"{ val serializerOutput = if ( environment . configuration . getBoolean ( CommonConfigurationKeys . USE_FIR ) ) serializeKLibK2 ( engine , config , environment ) else serializeKlibK1 ( engine , config , environment ) serializerOutput ? . let { engine . writeKlib ( it ) } }","docstring":""} {"signature":"private fun serializeKLibK2 ( engine : PhaseEngine < PhaseContext > , config : KonanConfig , environment : KotlinCoreEnvironment ) : SerializerOutput ?","body":"{ val frontendOutput = engine . runFirFrontend ( environment ) if ( frontendOutput is FirOutput . ShouldNotGenerateCode ) return null require ( frontendOutput is FirOutput . Full ) return if ( config . metadataKlib ) { engine . runFirSerializer ( frontendOutput ) } else { val fir2IrOutput = engine . runFir2Ir ( frontendOutput ) val headerKlibPath = config . headerKlibPath if ( ! headerKlibPath . isNullOrEmpty ( ) ) { val headerKlib = engine . runFir2IrSerializer ( FirSerializerInput ( fir2IrOutput , produceHeaderKlib = true ) ) engine . writeKlib ( headerKlib , headerKlibPath , produceHeaderKlib = true ) if ( File ( config . outputPath ) . canonicalPath == File ( headerKlibPath ) . canonicalPath ) return null } engine . runK2SpecialBackendChecks ( fir2IrOutput ) engine . runFir2IrSerializer ( FirSerializerInput ( fir2IrOutput ) ) } }","docstring":""} {"signature":"private fun serializeKlibK1 ( engine : PhaseEngine < PhaseContext > , config : KonanConfig , environment : KotlinCoreEnvironment ) : SerializerOutput ?","body":"{ val frontendOutput = engine . runFrontend ( config , environment ) ? : return null val psiToIrOutput = if ( config . metadataKlib ) { null } else { engine . runPsiToIr ( frontendOutput , isProducingLibrary = true ) as PsiToIrOutput . ForKlib } val headerKlibPath = config . headerKlibPath if ( ! headerKlibPath . isNullOrEmpty ( ) ) { val headerKlib = engine . runSerializer ( frontendOutput . moduleDescriptor , psiToIrOutput , produceHeaderKlib = true ) engine . writeKlib ( headerKlib , headerKlibPath , produceHeaderKlib = true ) if ( File ( config . outputPath ) . canonicalPath == File ( headerKlibPath ) . canonicalPath ) return null } return engine . runSerializer ( frontendOutput . moduleDescriptor , psiToIrOutput ) }","docstring":""} {"signature":"private fun produceBinary ( engine : PhaseEngine < PhaseContext > , config : KonanConfig , environment : KotlinCoreEnvironment )","body":"{ val frontendOutput = engine . runFrontend ( config , environment ) ? : return val psiToIrOutput = engine . runPsiToIr ( frontendOutput , isProducingLibrary = false ) require ( psiToIrOutput is PsiToIrOutput . ForBackend ) val backendContext = createBackendContext ( config , frontendOutput , psiToIrOutput ) engine . runBackend ( backendContext , psiToIrOutput . irModule ) }","docstring":"/**\n * Produce a single binary artifact.\n */"} {"signature":"private fun produceBinaryFromBitcode ( engine : PhaseEngine < PhaseContext > , config : KonanConfig , bitcodeFilePath : String )","body":"{ val llvmContext = LLVMContextCreate ( ) ! ! var llvmModule : CPointer < LLVMOpaqueModule > ? = null try { llvmModule = parseBitcodeFile ( llvmContext , bitcodeFilePath ) val context = BitcodePostProcessingContextImpl ( config , llvmModule , llvmContext ) val depsPath = config . readSerializedDependencies val dependencies = if ( depsPath . isNullOrEmpty ( ) ) DependenciesTrackingResult ( emptyList ( ) , emptyList ( ) , emptyList ( ) ) . also { config . configuration . report ( CompilerMessageSeverity . WARNING , \"\" ) } else DependenciesTrackingResult . deserialize ( depsPath , File ( depsPath ) . readStrings ( ) , config ) engine . runBitcodeBackend ( context , dependencies ) } finally { llvmModule ? . let { LLVMDisposeModule ( it ) } LLVMContextDispose ( llvmContext ) } }","docstring":""} {"signature":"private fun produceBundle ( engine : PhaseEngine < PhaseContext > , config : KonanConfig , environment : KotlinCoreEnvironment )","body":"{ require ( config . target . family . isAppleFamily ) require ( config . produce == CompilerOutputKind . TEST_BUNDLE ) val frontendOutput = engine . runFrontend ( config , environment ) ? : return engine . runPhase ( CreateTestBundlePhase , frontendOutput ) val psiToIrOutput = engine . runPsiToIr ( frontendOutput , isProducingLibrary = false ) require ( psiToIrOutput is PsiToIrOutput . ForBackend ) val backendContext = createBackendContext ( config , frontendOutput , psiToIrOutput ) engine . runBackend ( backendContext , psiToIrOutput . irModule ) }","docstring":"/**\n * Produce a bundle that is a directory with code and resources.\n * It consists of\n * - Info.plist\n * - Binary without an entry point.\n *\n * See https://developer.apple.com/library/archive/documentation/CoreFoundation/Conceptual/CFBundles/AboutBundles/AboutBundles.html\n */"} {"signature":"private fun createBackendContext ( config : KonanConfig , frontendOutput : FrontendPhaseOutput . Full , psiToIrOutput : PsiToIrOutput . ForBackend , additionalDataSetter : ( Context ) -> Unit = { } )","body":"= Context ( config , frontendOutput . moduleDescriptor . getIncludedLibraryDescriptors ( config ) . toSet ( ) + frontendOutput . moduleDescriptor , frontendOutput . moduleDescriptor . builtIns as KonanBuiltIns , psiToIrOutput . irModule . irBuiltins , psiToIrOutput . irModules , psiToIrOutput . irLinker , psiToIrOutput . symbols ) . also { additionalDataSetter ( it ) }","docstring":""} {"signature":"fun assertAlmostEquals ( expected : Double , actual : Double , tolerance : Double ? = null )","body":"{ val tolerance_ = tolerance ? . let { abs ( it ) } ? : if ( abs ( expected - actual ) > tolerance_ ) { assertEquals ( expected , actual ) } }","docstring":""} {"signature":"fun assertAlmostEquals ( expected : Float , actual : Float , tolerance : Double ? = null )","body":"{ val tolerance_ = tolerance ? . let { abs ( it ) } ? : if ( abs ( expected - actual ) > tolerance_ ) { assertEquals ( expected , actual ) } }","docstring":""} {"signature":"@ Test fun trigonometric ( )","body":"{ assertEquals ( , sin ( ) ) assertAlmostEquals ( , sin ( PI ) ) assertEquals ( , asin ( ) ) assertAlmostEquals ( PI / , asin ( ) ) assertEquals ( , cos ( ) ) assertAlmostEquals ( - , cos ( PI ) ) assertEquals ( , acos ( ) ) assertAlmostEquals ( PI / , acos ( ) ) assertEquals ( , tan ( ) ) assertAlmostEquals ( , tan ( PI / ) ) assertAlmostEquals ( , atan ( ) ) assertAlmostEquals ( PI / , atan ( ) ) assertAlmostEquals ( PI / , atan2 ( , ) ) assertAlmostEquals ( - PI / , atan2 ( Double . NEGATIVE_INFINITY , Double . POSITIVE_INFINITY ) ) assertAlmostEquals ( , atan2 ( , ) ) assertAlmostEquals ( , atan2 ( , ) ) assertAlmostEquals ( PI / , atan2 ( , ) ) for ( angle in listOf ( Double . NaN , Double . POSITIVE_INFINITY , Double . NEGATIVE_INFINITY ) ) { assertTrue ( sin ( angle ) . isNaN ( ) , \"\" ) assertTrue ( cos ( angle ) . isNaN ( ) , \"\" ) assertTrue ( tan ( angle ) . isNaN ( ) , \"\" ) } for ( value in listOf ( Double . NaN , , - ) ) { assertTrue ( asin ( value ) . isNaN ( ) ) assertTrue ( acos ( value ) . isNaN ( ) ) } assertTrue ( atan ( Double . NaN ) . isNaN ( ) ) assertTrue ( atan2 ( Double . NaN , ) . isNaN ( ) ) assertTrue ( atan2 ( , Double . NaN ) . isNaN ( ) ) }","docstring":""} {"signature":"@ Test fun hyperbolic ( )","body":"{ assertEquals ( Double . POSITIVE_INFINITY , sinh ( Double . POSITIVE_INFINITY ) ) assertEquals ( Double . NEGATIVE_INFINITY , sinh ( Double . NEGATIVE_INFINITY ) ) assertTrue ( sinh ( Double . MIN_VALUE ) != ) assertTrue ( sinh ( ) . isFinite ( ) ) assertTrue ( sinh ( - ) . isFinite ( ) ) assertTrue ( sinh ( Double . NaN ) . isNaN ( ) ) assertEquals ( Double . POSITIVE_INFINITY , cosh ( Double . POSITIVE_INFINITY ) ) assertEquals ( Double . POSITIVE_INFINITY , cosh ( Double . NEGATIVE_INFINITY ) ) assertTrue ( cosh ( ) . isFinite ( ) ) assertTrue ( cosh ( - ) . isFinite ( ) ) assertTrue ( cosh ( Double . NaN ) . isNaN ( ) ) assertAlmostEquals ( , tanh ( Double . POSITIVE_INFINITY ) ) assertAlmostEquals ( - , tanh ( Double . NEGATIVE_INFINITY ) ) assertTrue ( tanh ( Double . MIN_VALUE ) != ) assertTrue ( tanh ( Double . NaN ) . isNaN ( ) ) }","docstring":""} {"signature":"@ Test fun inverseHyperbolicSin ( )","body":"{ for ( exact in listOf ( Double . POSITIVE_INFINITY , Double . NEGATIVE_INFINITY , , Double . MIN_VALUE , - Double . MIN_VALUE , ) ) { assertEquals ( exact , asinh ( sinh ( exact ) ) ) } for ( approx in listOf ( Double . MIN_VALUE , , , , ) ) { assertAlmostEquals ( approx , asinh ( sinh ( approx ) ) ) assertAlmostEquals ( - approx , asinh ( sinh ( - approx ) ) ) } assertTrue ( asinh ( Double . NaN ) . isNaN ( ) ) }","docstring":""} {"signature":"@ Test fun inverseHyperbolicCos ( )","body":"{ for ( exact in listOf ( Double . POSITIVE_INFINITY , Double . NEGATIVE_INFINITY , ) ) { assertEquals ( abs ( exact ) , acosh ( cosh ( exact ) ) ) } for ( approx in listOf ( Double . MIN_VALUE , , , , ) ) { assertAlmostEquals ( approx , acosh ( cosh ( approx ) ) ) assertAlmostEquals ( approx , acosh ( cosh ( - approx ) ) ) } for ( invalid in listOf ( - , , , Double . NaN ) ) { assertTrue ( acosh ( invalid ) . isNaN ( ) ) } }","docstring":""} {"signature":"@ Test fun inverseHyperbolicTan ( )","body":"{ for ( exact in listOf ( Double . POSITIVE_INFINITY , Double . NEGATIVE_INFINITY , , Double . MIN_VALUE , - Double . MIN_VALUE ) ) { assertEquals ( exact , atanh ( tanh ( exact ) ) ) } for ( approx in listOf ( ) ) { assertAlmostEquals ( approx , atanh ( tanh ( approx ) ) ) } for ( invalid in listOf ( - , , Double . NaN , Double . MAX_VALUE , - Double . MAX_VALUE , Double . NEGATIVE_INFINITY , Double . POSITIVE_INFINITY ) ) { assertTrue ( atanh ( invalid ) . isNaN ( ) ) } }","docstring":""} {"signature":"@ Test fun cubeRoots ( )","body":"{ val testingPairs = mapOf ( Double . NaN to Double . NaN , Double . POSITIVE_INFINITY to Double . POSITIVE_INFINITY , Double . NEGATIVE_INFINITY to Double . NEGATIVE_INFINITY , Double . fromBits ( ) to , Double . fromBits ( ) to , Double . MAX_VALUE to , to , to , to , to , to , to , to , to ) for ( ( x , result ) in testingPairs ) { assertEquals ( result , cbrt ( x ) , if ( result . isFinite ( ) ) * result . ulp else ) assertEquals ( cbrt ( - x ) , - cbrt ( x ) ) } }","docstring":""} {"signature":"@ Test fun powers ( )","body":"{ assertEquals ( , hypot ( , ) ) assertEquals ( Double . POSITIVE_INFINITY , hypot ( Double . NEGATIVE_INFINITY , Double . NaN ) ) assertEquals ( Double . POSITIVE_INFINITY , hypot ( Double . NaN , Double . POSITIVE_INFINITY ) ) assertTrue ( hypot ( Double . NaN , ) . isNaN ( ) ) assertEquals ( , Double . NaN . pow ( ) ) assertEquals ( , Double . POSITIVE_INFINITY . pow ( ) ) assertEquals ( , . pow ( ) ) assertEquals ( , . pow ( - ) ) assertTrue ( . pow ( Double . NaN ) . isNaN ( ) ) assertTrue ( Double . NaN . pow ( - ) . isNaN ( ) ) assertTrue ( ( - ) . pow ( / ) . isNaN ( ) ) assertTrue ( . pow ( Double . POSITIVE_INFINITY ) . isNaN ( ) ) assertTrue ( ( - ) . pow ( Double . NEGATIVE_INFINITY ) . isNaN ( ) ) assertEquals ( , sqrt ( + ) ) assertTrue ( sqrt ( - ) . isNaN ( ) ) assertTrue ( sqrt ( Double . NaN ) . isNaN ( ) ) assertTrue ( exp ( Double . NaN ) . isNaN ( ) ) assertAlmostEquals ( E , exp ( ) ) assertEquals ( , exp ( ) ) assertEquals ( , exp ( Double . NEGATIVE_INFINITY ) ) assertEquals ( Double . POSITIVE_INFINITY , exp ( Double . POSITIVE_INFINITY ) ) assertEquals ( , expm1 ( ) ) assertEquals ( Double . MIN_VALUE , expm1 ( Double . MIN_VALUE ) ) assertEquals ( , expm1 ( ) ) assertEquals ( - , expm1 ( Double . NEGATIVE_INFINITY ) ) assertEquals ( Double . POSITIVE_INFINITY , expm1 ( Double . POSITIVE_INFINITY ) ) }","docstring":""} {"signature":"@ Test fun logarithms ( )","body":"{ assertTrue ( log ( , Double . NaN ) . isNaN ( ) ) assertTrue ( log ( Double . NaN , ) . isNaN ( ) ) assertTrue ( log ( - , ) . isNaN ( ) ) assertTrue ( log ( , - ) . isNaN ( ) ) assertTrue ( log ( , ) . isNaN ( ) ) assertTrue ( log ( , ) . isNaN ( ) ) assertTrue ( log ( Double . POSITIVE_INFINITY , Double . POSITIVE_INFINITY ) . isNaN ( ) ) assertEquals ( - , log ( , ) ) assertEquals ( - , log ( , ) ) assertEquals ( Double . NEGATIVE_INFINITY , log ( Double . POSITIVE_INFINITY , ) ) assertEquals ( Double . POSITIVE_INFINITY , log ( Double . POSITIVE_INFINITY , ) ) assertEquals ( Double . NEGATIVE_INFINITY , log ( , ) ) assertEquals ( Double . POSITIVE_INFINITY , log ( , ) ) assertTrue ( ln ( Double . NaN ) . isNaN ( ) ) assertTrue ( ln ( - ) . isNaN ( ) ) assertEquals ( , ln ( E ) ) assertEquals ( Double . NEGATIVE_INFINITY , ln ( ) ) assertEquals ( Double . POSITIVE_INFINITY , ln ( Double . POSITIVE_INFINITY ) ) assertEquals ( , log10 ( ) ) assertAlmostEquals ( - , log10 ( ) ) assertAlmostEquals ( , log2 ( ) ) assertEquals ( - , log2 ( ) ) assertTrue ( ln1p ( Double . NaN ) . isNaN ( ) ) assertTrue ( ln1p ( - ) . isNaN ( ) ) assertEquals ( , ln1p ( ) ) assertEquals ( , ln1p ( ) ) assertEquals ( Double . MIN_VALUE , ln1p ( Double . MIN_VALUE ) ) assertEquals ( Double . NEGATIVE_INFINITY , ln1p ( - ) ) }","docstring":""} {"signature":"@ Test fun rounding ( )","body":"{ for ( value in listOf ( Double . NaN , Double . POSITIVE_INFINITY , Double . NEGATIVE_INFINITY , , , - ) ) { assertEquals ( value , ceil ( value ) ) assertEquals ( value , floor ( value ) ) assertEquals ( value , truncate ( value ) ) assertEquals ( value , round ( value ) ) } val data = arrayOf ( doubleArrayOf ( , , , , ) , doubleArrayOf ( - , - , - , - , - ) , doubleArrayOf ( , , , , ) , doubleArrayOf ( - , - , - , - , - ) , doubleArrayOf ( , , , , ) , doubleArrayOf ( - , - , - , - , - ) , doubleArrayOf ( , , , , ) , doubleArrayOf ( - , - , - , - , - ) , doubleArrayOf ( , , , , ) , doubleArrayOf ( - , - , - , - , - ) , doubleArrayOf ( , , , , ) , doubleArrayOf ( - , - , - , - , - ) ) for ( ( v , f , t , r , c ) in data ) { assertEquals ( f , floor ( v ) , \"\" ) assertEquals ( t , truncate ( v ) , \"\" ) assertEquals ( r , round ( v ) , \"\" ) assertEquals ( c , ceil ( v ) , \"\" ) } }","docstring":""} {"signature":"@ Test fun roundingConversion ( )","body":"{ assertEquals ( , . roundToLong ( ) ) assertEquals ( , . roundToLong ( ) ) assertEquals ( , . roundToLong ( ) ) assertEquals ( , . roundToLong ( ) ) assertEquals ( - , ( - ) . roundToLong ( ) ) assertEquals ( - , ( - ) . roundToLong ( ) ) assertEquals ( , ( ) . roundToLong ( ) ) assertEquals ( Long . MAX_VALUE , Double . MAX_VALUE . roundToLong ( ) ) assertEquals ( Long . MIN_VALUE , ( - Double . MAX_VALUE ) . roundToLong ( ) ) assertEquals ( Long . MAX_VALUE , Double . POSITIVE_INFINITY . roundToLong ( ) ) assertEquals ( Long . MIN_VALUE , Double . NEGATIVE_INFINITY . roundToLong ( ) ) assertFails { Double . NaN . roundToLong ( ) } assertEquals ( , . roundToInt ( ) ) assertEquals ( , . roundToInt ( ) ) assertEquals ( , . roundToInt ( ) ) assertEquals ( , . roundToInt ( ) ) assertEquals ( - , ( - ) . roundToInt ( ) ) assertEquals ( - , ( - ) . roundToInt ( ) ) assertEquals ( , ( ) . roundToInt ( ) ) assertEquals ( Int . MAX_VALUE , Double . MAX_VALUE . roundToInt ( ) ) assertEquals ( Int . MIN_VALUE , ( - Double . MAX_VALUE ) . roundToInt ( ) ) assertEquals ( Int . MAX_VALUE , Double . POSITIVE_INFINITY . roundToInt ( ) ) assertEquals ( Int . MIN_VALUE , Double . NEGATIVE_INFINITY . roundToInt ( ) ) assertFails { Double . NaN . roundToInt ( ) } }","docstring":""} {"signature":"@ Test fun absoluteValue ( )","body":"{ assertTrue ( abs ( Double . NaN ) . isNaN ( ) ) assertTrue ( Double . NaN . absoluteValue . isNaN ( ) ) for ( value in listOf ( , Double . MIN_VALUE , , , , Double . MAX_VALUE , Double . POSITIVE_INFINITY ) ) { assertEquals ( value , value . absoluteValue ) assertEquals ( value , ( - value ) . absoluteValue ) assertEquals ( value , abs ( value ) ) assertEquals ( value , abs ( - value ) ) } }","docstring":""} {"signature":"@ Test fun signs ( )","body":"{ assertTrue ( sign ( Double . NaN ) . isNaN ( ) ) assertTrue ( Double . NaN . sign . isNaN ( ) ) val negatives = listOf ( Double . NEGATIVE_INFINITY , - Double . MAX_VALUE , - , - Double . MIN_VALUE ) for ( value in negatives ) { assertEquals ( - , sign ( value ) ) assertEquals ( - , value . sign ) } val zeroes = listOf ( , - ) for ( value in zeroes ) { assertEquals ( value , sign ( value ) ) assertEquals ( value , value . sign ) } val positives = listOf ( Double . POSITIVE_INFINITY , Double . MAX_VALUE , , Double . MIN_VALUE ) for ( value in positives ) { assertEquals ( , sign ( value ) ) assertEquals ( , value . sign ) } val allValues = negatives + positives for ( a in allValues ) { for ( b in allValues ) { val r = a . withSign ( b ) assertEquals ( a . absoluteValue , r . absoluteValue ) assertEquals ( b . sign , r . sign , \"\" ) } val rp0 = a . withSign ( ) assertEquals ( , rp0 . sign ) assertEquals ( a . absoluteValue , rp0 . absoluteValue ) val rm0 = a . withSign ( - ) assertEquals ( - , rm0 . sign ) assertEquals ( a . absoluteValue , rm0 . absoluteValue ) val ri = a . withSign ( - ) assertEquals ( - , ri . sign ) assertEquals ( a . absoluteValue , ri . absoluteValue ) val rn = a . withSign ( Double . NaN ) assertEquals ( a . absoluteValue , rn . absoluteValue ) } }","docstring":""} {"signature":"@ Test fun nextAndPrev ( )","body":"{ for ( value in listOf ( , - , Double . MIN_VALUE , - , . pow ( ) ) ) { val next = value . nextUp ( ) if ( next > ) { assertEquals ( next , value + value . ulp ) } else { assertEquals ( value , next - next . ulp ) } val prev = value . nextDown ( ) if ( prev > ) { assertEquals ( value , prev + prev . ulp ) } else { assertEquals ( prev , value - value . ulp ) } val toZero = value . nextTowards ( ) if ( toZero != ) { assertEquals ( value , toZero + toZero . ulp . withSign ( toZero ) ) } assertEquals ( Double . POSITIVE_INFINITY , Double . MAX_VALUE . nextUp ( ) ) assertEquals ( Double . MAX_VALUE , Double . POSITIVE_INFINITY . nextDown ( ) ) assertEquals ( Double . NEGATIVE_INFINITY , ( - Double . MAX_VALUE ) . nextDown ( ) ) assertEquals ( ( - Double . MAX_VALUE ) , Double . NEGATIVE_INFINITY . nextUp ( ) ) assertTrue ( Double . NaN . ulp . isNaN ( ) ) assertTrue ( Double . NaN . nextDown ( ) . isNaN ( ) ) assertTrue ( Double . NaN . nextUp ( ) . isNaN ( ) ) assertTrue ( Double . NaN . nextTowards ( ) . isNaN ( ) ) assertEquals ( Double . MIN_VALUE , ( ) . ulp ) assertEquals ( Double . MIN_VALUE , ( - ) . ulp ) assertEquals ( Double . POSITIVE_INFINITY , Double . POSITIVE_INFINITY . ulp ) assertEquals ( Double . POSITIVE_INFINITY , Double . NEGATIVE_INFINITY . ulp ) val maxUlp = . pow ( ) assertEquals ( maxUlp , Double . MAX_VALUE . ulp ) assertEquals ( maxUlp , ( - Double . MAX_VALUE ) . ulp ) } }","docstring":""} {"signature":"@ Ignore @ Test fun floatRangeConversion ( )","body":"{ assertEquals ( kotlin . math . E . toFloat ( ) , E ) assertEquals ( kotlin . math . PI . toFloat ( ) , PI ) }","docstring":""} {"signature":"@ Test fun trigonometric ( )","body":"{ assertEquals ( , sin ( ) ) assertAlmostEquals ( , sin ( PI ) ) assertEquals ( , asin ( ) ) assertAlmostEquals ( PI / , asin ( ) , ) assertEquals ( , cos ( ) ) assertAlmostEquals ( - , cos ( PI ) ) assertEquals ( , acos ( ) ) assertAlmostEquals ( PI / , acos ( ) ) assertEquals ( , tan ( ) ) assertAlmostEquals ( , tan ( PI / ) ) assertAlmostEquals ( , atan ( ) ) assertAlmostEquals ( PI / , atan ( ) ) assertAlmostEquals ( PI / , atan2 ( , ) ) assertAlmostEquals ( - PI / , atan2 ( Float . NEGATIVE_INFINITY , Float . POSITIVE_INFINITY ) ) assertAlmostEquals ( , atan2 ( , ) ) assertAlmostEquals ( , atan2 ( , ) ) assertAlmostEquals ( PI / , atan2 ( , ) ) for ( angle in listOf ( Float . NaN , Float . POSITIVE_INFINITY , Float . NEGATIVE_INFINITY ) ) { assertTrue ( sin ( angle ) . isNaN ( ) , \"\" ) assertTrue ( cos ( angle ) . isNaN ( ) , \"\" ) assertTrue ( tan ( angle ) . isNaN ( ) , \"\" ) } for ( value in listOf ( Float . NaN , , - ) ) { assertTrue ( asin ( value ) . isNaN ( ) ) assertTrue ( acos ( value ) . isNaN ( ) ) } assertTrue ( atan ( Float . NaN ) . isNaN ( ) ) assertTrue ( atan2 ( Float . NaN , ) . isNaN ( ) ) assertTrue ( atan2 ( , Float . NaN ) . isNaN ( ) ) }","docstring":""} {"signature":"@ Test fun hyperbolic ( )","body":"{ assertEquals ( Float . POSITIVE_INFINITY , sinh ( Float . POSITIVE_INFINITY ) ) assertEquals ( Float . NEGATIVE_INFINITY , sinh ( Float . NEGATIVE_INFINITY ) ) assertTrue ( sinh ( Float . MIN_VALUE ) != ) assertTrue ( sinh ( ) . isFinite ( ) ) assertTrue ( sinh ( - ) . isFinite ( ) ) assertTrue ( sinh ( Float . NaN ) . isNaN ( ) ) assertEquals ( Float . POSITIVE_INFINITY , cosh ( Float . POSITIVE_INFINITY ) ) assertEquals ( Float . POSITIVE_INFINITY , cosh ( Float . NEGATIVE_INFINITY ) ) assertTrue ( cosh ( ) . isFinite ( ) ) assertTrue ( cosh ( - ) . isFinite ( ) ) assertTrue ( cosh ( Float . NaN ) . isNaN ( ) ) assertAlmostEquals ( , tanh ( Float . POSITIVE_INFINITY ) ) assertAlmostEquals ( - , tanh ( Float . NEGATIVE_INFINITY ) ) assertTrue ( tanh ( Float . MIN_VALUE ) != ) assertTrue ( tanh ( Float . NaN ) . isNaN ( ) ) }","docstring":""} {"signature":"@ Test fun inverseHyperbolicSin ( )","body":"{ for ( exact in listOf ( Float . POSITIVE_INFINITY , Float . NEGATIVE_INFINITY , , Float . MIN_VALUE , - Float . MIN_VALUE , ) ) { assertEquals ( exact , asinh ( sinh ( exact ) ) ) } for ( approx in listOf ( Float . MIN_VALUE , , , ) ) { assertAlmostEquals ( approx , asinh ( sinh ( approx ) ) ) assertAlmostEquals ( - approx , asinh ( sinh ( - approx ) ) ) } assertTrue ( asinh ( Float . NaN ) . isNaN ( ) ) }","docstring":""} {"signature":"@ Test fun inverseHyperbolicCos ( )","body":"{ for ( exact in listOf ( Float . POSITIVE_INFINITY , Float . NEGATIVE_INFINITY , ) ) { assertEquals ( abs ( exact ) , acosh ( cosh ( exact ) ) ) } for ( approx in listOf ( Float . MIN_VALUE , , , ) ) { assertAlmostEquals ( approx , acosh ( cosh ( approx ) ) ) assertAlmostEquals ( approx , acosh ( cosh ( - approx ) ) ) } for ( invalid in listOf ( - , , , Float . NaN ) ) { assertTrue ( acosh ( invalid ) . isNaN ( ) ) } }","docstring":""} {"signature":"@ Test fun inverseHyperbolicTan ( )","body":"{ for ( exact in listOf ( Float . POSITIVE_INFINITY , Float . NEGATIVE_INFINITY , , Float . MIN_VALUE , - Float . MIN_VALUE ) ) { assertEquals ( exact , atanh ( tanh ( exact ) ) ) } for ( approx in listOf ( ) ) { assertAlmostEquals ( approx , atanh ( tanh ( approx ) ) ) } for ( invalid in listOf ( - , , Float . NaN , Float . MAX_VALUE , - Float . MAX_VALUE , Float . NEGATIVE_INFINITY , Float . POSITIVE_INFINITY ) ) { assertTrue ( atanh ( invalid ) . isNaN ( ) ) } }","docstring":""} {"signature":"@ Test fun cubeRoots ( )","body":"{ val testingPairs = mapOf ( Float . NaN to Float . NaN , Float . POSITIVE_INFINITY to Float . POSITIVE_INFINITY , Float . NEGATIVE_INFINITY to Float . NEGATIVE_INFINITY , Float . fromBits ( ) to , Float . fromBits ( ) to , Float . MAX_VALUE to , to , to , to , to , to , to , to , to ) for ( ( x , result ) in testingPairs ) { assertEquals ( result , cbrt ( x ) , if ( result . isFinite ( ) ) * result . ulpCommon else ) assertEquals ( cbrt ( - x ) , - cbrt ( x ) ) } }","docstring":""} {"signature":"@ Test fun powers ( )","body":"{ assertEquals ( , hypot ( , ) ) assertEquals ( Float . POSITIVE_INFINITY , hypot ( Float . NEGATIVE_INFINITY , Float . NaN ) ) assertEquals ( Float . POSITIVE_INFINITY , hypot ( Float . NaN , Float . POSITIVE_INFINITY ) ) assertTrue ( hypot ( Float . NaN , ) . isNaN ( ) ) assertEquals ( , Float . NaN . pow ( ) ) assertEquals ( , Float . POSITIVE_INFINITY . pow ( ) ) assertEquals ( , . pow ( ) ) assertEquals ( , . pow ( - ) ) assertTrue ( . pow ( Float . NaN ) . isNaN ( ) ) assertTrue ( Float . NaN . pow ( - ) . isNaN ( ) ) assertTrue ( ( - ) . pow ( / ) . isNaN ( ) ) assertTrue ( . pow ( Float . POSITIVE_INFINITY ) . isNaN ( ) ) assertTrue ( ( - ) . pow ( Float . NEGATIVE_INFINITY ) . isNaN ( ) ) assertEquals ( , sqrt ( + ) ) assertTrue ( sqrt ( - ) . isNaN ( ) ) assertTrue ( sqrt ( Float . NaN ) . isNaN ( ) ) assertTrue ( exp ( Float . NaN ) . isNaN ( ) ) assertAlmostEquals ( kotlin . math . E . toFloat ( ) , exp ( ) ) assertEquals ( , exp ( ) ) assertEquals ( , exp ( Float . NEGATIVE_INFINITY ) ) assertEquals ( Float . POSITIVE_INFINITY , exp ( Float . POSITIVE_INFINITY ) ) assertEquals ( , expm1 ( ) ) assertEquals ( - , expm1 ( Float . NEGATIVE_INFINITY ) ) assertEquals ( Float . POSITIVE_INFINITY , expm1 ( Float . POSITIVE_INFINITY ) ) }","docstring":""} {"signature":"@ Test fun logarithms ( )","body":"{ assertTrue ( log ( , Float . NaN ) . isNaN ( ) ) assertTrue ( log ( Float . NaN , ) . isNaN ( ) ) assertTrue ( log ( - , ) . isNaN ( ) ) assertTrue ( log ( , - ) . isNaN ( ) ) assertTrue ( log ( , ) . isNaN ( ) ) assertTrue ( log ( , ) . isNaN ( ) ) assertTrue ( log ( Float . POSITIVE_INFINITY , Float . POSITIVE_INFINITY ) . isNaN ( ) ) assertEquals ( - , log ( , ) ) assertEquals ( - , log ( , ) ) assertEquals ( Float . NEGATIVE_INFINITY , log ( Float . POSITIVE_INFINITY , ) ) assertEquals ( Float . POSITIVE_INFINITY , log ( Float . POSITIVE_INFINITY , ) ) assertEquals ( Float . NEGATIVE_INFINITY , log ( , ) ) assertEquals ( Float . POSITIVE_INFINITY , log ( , ) ) assertTrue ( ln ( Float . NaN ) . isNaN ( ) ) assertTrue ( ln ( - ) . isNaN ( ) ) assertAlmostEquals ( , ln ( E ) ) assertEquals ( Float . NEGATIVE_INFINITY , ln ( ) ) assertEquals ( Float . POSITIVE_INFINITY , ln ( Float . POSITIVE_INFINITY ) ) assertEquals ( , log10 ( ) ) assertAlmostEquals ( - , log10 ( ) ) assertAlmostEquals ( , log2 ( ) ) assertEquals ( - , log2 ( ) ) assertTrue ( ln1p ( Float . NaN ) . isNaN ( ) ) assertTrue ( ln1p ( - ) . isNaN ( ) ) assertEquals ( , ln1p ( ) ) assertEquals ( Float . NEGATIVE_INFINITY , ln1p ( - ) ) }","docstring":""} {"signature":"@ Test fun rounding ( )","body":"{ for ( value in listOf ( Float . NaN , Float . POSITIVE_INFINITY , Float . NEGATIVE_INFINITY , , , - ) ) { assertEquals ( value , ceil ( value ) ) assertEquals ( value , floor ( value ) ) assertEquals ( value , truncate ( value ) ) assertEquals ( value , round ( value ) ) } val data = arrayOf ( floatArrayOf ( , , , , ) , floatArrayOf ( - , - , - , - , - ) , floatArrayOf ( , , , , ) , floatArrayOf ( - , - , - , - , - ) , floatArrayOf ( , , , , ) , floatArrayOf ( - , - , - , - , - ) , floatArrayOf ( , , , , ) , floatArrayOf ( - , - , - , - , - ) , floatArrayOf ( , , , , ) , floatArrayOf ( - , - , - , - , - ) , floatArrayOf ( , , , , ) , floatArrayOf ( - , - , - , - , - ) ) for ( ( v , f , t , r , c ) in data ) { assertEquals ( f , floor ( v ) , \"\" ) assertEquals ( t , truncate ( v ) , \"\" ) assertEquals ( r , round ( v ) , \"\" ) assertEquals ( c , ceil ( v ) , \"\" ) } }","docstring":""} {"signature":"@ Test fun roundingConversion ( )","body":"{ assertEquals ( , . roundToLong ( ) ) assertEquals ( , . roundToLong ( ) ) assertEquals ( , . roundToLong ( ) ) assertEquals ( , . roundToLong ( ) ) assertEquals ( - , ( - ) . roundToLong ( ) ) assertEquals ( - , ( - ) . roundToLong ( ) ) assertEquals ( Long . MAX_VALUE , Float . MAX_VALUE . roundToLong ( ) ) assertEquals ( Long . MIN_VALUE , ( - Float . MAX_VALUE ) . roundToLong ( ) ) assertEquals ( Long . MAX_VALUE , Float . POSITIVE_INFINITY . roundToLong ( ) ) assertEquals ( Long . MIN_VALUE , Float . NEGATIVE_INFINITY . roundToLong ( ) ) assertFails { Float . NaN . roundToLong ( ) } assertEquals ( , . roundToInt ( ) ) assertEquals ( , . roundToInt ( ) ) assertEquals ( , . roundToInt ( ) ) assertEquals ( , . roundToInt ( ) ) assertEquals ( - , ( - ) . roundToInt ( ) ) assertEquals ( - , ( - ) . roundToInt ( ) ) assertEquals ( , ( ) . roundToInt ( ) ) assertEquals ( Int . MAX_VALUE , Float . MAX_VALUE . roundToInt ( ) ) assertEquals ( Int . MIN_VALUE , ( - Float . MAX_VALUE ) . roundToInt ( ) ) assertEquals ( Int . MAX_VALUE , Float . POSITIVE_INFINITY . roundToInt ( ) ) assertEquals ( Int . MIN_VALUE , Float . NEGATIVE_INFINITY . roundToInt ( ) ) assertFails { Float . NaN . roundToInt ( ) } }","docstring":""} {"signature":"@ Test fun absoluteValue ( )","body":"{ assertTrue ( abs ( Float . NaN ) . isNaN ( ) ) assertTrue ( Float . NaN . absoluteValue . isNaN ( ) ) for ( value in listOf ( , Float . MIN_VALUE , , , , Float . MAX_VALUE , Float . POSITIVE_INFINITY ) ) { assertEquals ( value , value . absoluteValue ) assertEquals ( value , ( - value ) . absoluteValue ) assertEquals ( value , abs ( value ) ) assertEquals ( value , abs ( - value ) ) } }","docstring":""} {"signature":"@ Test fun signs ( )","body":"{ assertTrue ( sign ( Float . NaN ) . isNaN ( ) ) assertTrue ( Float . NaN . sign . isNaN ( ) ) val negatives = listOf ( Float . NEGATIVE_INFINITY , - Float . MAX_VALUE , - , - Float . MIN_VALUE ) for ( value in negatives ) { assertEquals ( - , sign ( value ) ) assertEquals ( - , value . sign ) } val zeroes = listOf ( , - ) for ( value in zeroes ) { assertEquals ( value , sign ( value ) ) assertEquals ( value , value . sign ) } val positives = listOf ( Float . POSITIVE_INFINITY , Float . MAX_VALUE , , Float . MIN_VALUE ) for ( value in positives ) { assertEquals ( , sign ( value ) ) assertEquals ( , value . sign ) } val allValues = negatives + positives for ( a in allValues ) { for ( b in allValues ) { val r = a . withSign ( b ) assertEquals ( a . absoluteValue , r . absoluteValue ) assertEquals ( b . sign , r . sign ) } val rp0 = a . withSign ( ) assertEquals ( , rp0 . sign ) assertEquals ( a . absoluteValue , rp0 . absoluteValue ) val rm0 = a . withSign ( - ) assertEquals ( - , rm0 . sign ) assertEquals ( a . absoluteValue , rm0 . absoluteValue ) val ri = a . withSign ( - ) assertEquals ( - , ri . sign ) assertEquals ( a . absoluteValue , ri . absoluteValue ) } }","docstring":""} {"signature":"@ Test fun intSigns ( )","body":"{ val negatives = listOf ( Int . MIN_VALUE , - , - ) val positives = listOf ( , , , Int . MAX_VALUE ) negatives . forEach { assertEquals ( - , it . sign ) } positives . forEach { assertEquals ( , it . sign ) } assertEquals ( , . sign ) ( negatives - Int . MIN_VALUE ) . forEach { assertEquals ( - it , it . absoluteValue ) } assertEquals ( Int . MIN_VALUE , Int . MIN_VALUE . absoluteValue ) positives . forEach { assertEquals ( it , it . absoluteValue ) } }","docstring":""} {"signature":"@ Test fun longSigns ( )","body":"{ val negatives = listOf ( Long . MIN_VALUE , - , - ) val positives = listOf ( , , , Long . MAX_VALUE ) negatives . forEach { assertEquals ( - , it . sign ) } positives . forEach { assertEquals ( , it . sign ) } assertEquals ( , . sign ) ( negatives - Long . MIN_VALUE ) . forEach { assertEquals ( - it , it . absoluteValue ) } assertEquals ( Long . MIN_VALUE , Long . MIN_VALUE . absoluteValue ) positives . forEach { assertEquals ( it , it . absoluteValue ) } }","docstring":""} {"signature":"override fun matches ( startIndex : Int , testString : CharSequence , matchResult : MatchResultImpl ) : Int","body":"{ if ( children . isEmpty ( ) ) { return - } val oldStart = matchResult . getStart ( groupIndex ) matchResult . setStart ( groupIndex , startIndex ) children . forEach { val shift = it . matches ( startIndex , testString , matchResult ) if ( shift >= ) { return shift } } matchResult . setStart ( groupIndex , oldStart ) return - }","docstring":"/**\n * Returns startIndex+shift, the next position to match\n */"} {"signature":"override fun first ( set : AbstractSet ) : Boolean","body":"= children . any { it . first ( set ) }","docstring":""} {"signature":"override fun hasConsumed ( matchResult : MatchResultImpl ) : Boolean","body":"{ return ! ( matchResult . getEnd ( groupIndex ) >= && matchResult . getStart ( groupIndex ) == matchResult . getEnd ( groupIndex ) ) }","docstring":""} {"signature":"override fun processSecondPassInternal ( ) : AbstractSet","body":"{ val fSet = this . fSet if ( ! fSet . secondPassVisited ) { val newFSet = fSet . processSecondPass ( ) @ OptIn ( ExperimentalNativeApi :: class ) assert ( newFSet == fSet ) } @ OptIn ( ExperimentalNativeApi :: class ) children . replaceAll { child -> if ( ! child . secondPassVisited ) child . processSecondPass ( ) else child } return super . processSecondPassInternal ( ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ if ( a != \"\" ) { return \"\" } if ( aa != \"\" ) { return \"\" } if ( b != \"\" ) { return \"\" } if ( bb != \"\" ) { return \"\" } if ( c != \"\" ) { return \"\" } if ( cc != \"\" ) { return \"\" } return \"\" }","docstring":""} {"signature":"operator fun invoke ( metadata : SerializedMetadata , typeResolver : CirTypeResolver ) : CirTreeModule","body":"{ val module = KlibModuleMetadata . read ( SerializedMetadataLibraryProvider ( metadata ) ) val fragmentsByPackage : Map < CirPackageName , Collection < KmModuleFragment > > = module . fragments . foldToMap { fragment -> fragment . fqName ? . let ( CirPackageName . Companion :: create ) ? : error ( \"\" ) } val packages = fragmentsByPackage . map { ( packageName , fragments ) -> packageDeserializer ( packageName , fragments , typeResolver ) } return CirTreeModule ( module = CirModule . create ( CirName . create ( module . name ) ) , packages = packages ) }","docstring":""} {"signature":"private fun `check for KT-67454` ( )","body":"{ Assumptions . assumeFalse ( targets . hostTarget . family . isAppleFamily ) }","docstring":""} {"signature":"@ BeforeEach fun checkAssumptions ( )","body":"{ `check for KT-67454` ( ) }","docstring":""} {"signature":"@ Test fun testLLVMVariantDev ( )","body":"{ Assumptions . assumeFalse ( targets . hostTarget . family . isAppleFamily && targets . testTarget . family . isAppleFamily ) Assumptions . assumeFalse ( testRunSettings . get < GCScheduler > ( ) == GCScheduler . AGGRESSIVE ) compileSimpleFile ( listOf ( \"\" , \"\" ) ) . let { assertFalse ( it . stdout . contains ( \"\" ) , \"\" ) } compileSimpleFile ( listOf ( \"\" , \"\" ) ) . let { assertTrue ( it . stdout . contains ( \"\" ) , \"\" ) } }","docstring":""} {"signature":"private fun compileSimpleFile ( flags : List < String > ) : RunProcessResult","body":"{ val kexe = buildDir . resolve ( \"\" ) . also { it . delete ( ) } val args = mutableListOf ( \"\" , kexe . absolutePath ) . apply { add ( \"\" ) add ( targets . testTarget . visibleName ) addAll ( flags ) add ( \"\" ) add ( \"\" ) } val compilationResult = runProcess ( konanc . absolutePath , source . absolutePath , * args . toTypedArray < String > ( ) ) { timeout = konancTimeout } testRunSettings . executor . runProcess ( kexe . absolutePath ) return compilationResult }","docstring":""} {"signature":"@ Test fun testDriverProducesRunnableBinaries ( )","body":"{ Assumptions . assumeFalse ( HostManager . hostIsMingw && testRunSettings . get < CacheMode > ( ) == CacheMode . WithoutCache && testRunSettings . get < OptimizationMode > ( ) == OptimizationMode . DEBUG ) val module = TestModule . Exclusive ( \"\" , emptySet ( ) , emptySet ( ) , emptySet ( ) ) val kexe = buildDir . resolve ( \"\" ) . also { it . delete ( ) } val compilation = ExecutableCompilation ( settings = testRunSettings , freeCompilerArgs = TestCompilerArgs . EMPTY , sourceModules = listOf ( module ) , extras = TestCase . NoTestRunnerExtras ( \"\" ) , dependencies = emptyList ( ) , expectedArtifact = TestCompilationArtifact . Executable ( kexe ) , tryPassSystemCacheDirectory = true ) runProcess ( konanc . absolutePath , source . absolutePath , * compilation . getCompilerArgs ( ) ) { timeout = konancTimeout } val runResult : RunProcessResult = with ( testRunSettings ) { executor . runProcess ( kexe . absolutePath ) { timeout = Duration . parse ( \"\" ) } } assertEquals ( \"\" , runResult . stdout ) }","docstring":""} {"signature":"@ Test fun testDriverVersion ( )","body":"{ Assumptions . assumeFalse ( HostManager . hostIsMingw && testRunSettings . get < CacheMode > ( ) == CacheMode . WithoutCache && testRunSettings . get < OptimizationMode > ( ) == OptimizationMode . DEBUG ) Assumptions . assumeFalse ( testRunSettings . get < GCScheduler > ( ) == GCScheduler . AGGRESSIVE ) val module = TestModule . Exclusive ( \"\" , emptySet ( ) , emptySet ( ) , emptySet ( ) ) val kexe = buildDir . resolve ( \"\" ) . also { it . delete ( ) } val compilation = ExecutableCompilation ( settings = testRunSettings , freeCompilerArgs = TestCompilerArgs ( listOf ( \"\" ) ) , sourceModules = listOf ( module ) , extras = TestCase . NoTestRunnerExtras ( \"\" ) , dependencies = emptyList ( ) , expectedArtifact = TestCompilationArtifact . Executable ( kexe ) , tryPassSystemCacheDirectory = true ) runProcess ( konanc . absolutePath , source . absolutePath , * compilation . getCompilerArgs ( ) ) { timeout = konancTimeout } assertFalse ( kexe . exists ( ) ) }","docstring":""} {"signature":"@ Test fun testOverrideKonanProperties ( )","body":"{ Assumptions . assumeFalse ( HostManager . hostIsMingw && testRunSettings . get < CacheMode > ( ) == CacheMode . WithoutCache && testRunSettings . get < OptimizationMode > ( ) == OptimizationMode . DEBUG ) Assumptions . assumeFalse ( testRunSettings . get < GCScheduler > ( ) == GCScheduler . AGGRESSIVE ) val module = TestModule . Exclusive ( \"\" , emptySet ( ) , emptySet ( ) , emptySet ( ) ) val kexe = buildDir . resolve ( \"\" ) . also { it . delete ( ) } val compilation = ExecutableCompilation ( settings = testRunSettings , freeCompilerArgs = TestCompilerArgs ( listOf ( \"\" , \"\" , if ( HostManager . hostIsMingw ) \"\" else \"\" ) ) , sourceModules = listOf ( module ) , extras = TestCase . NoTestRunnerExtras ( \"\" ) , dependencies = emptyList ( ) , expectedArtifact = TestCompilationArtifact . Executable ( kexe ) , tryPassSystemCacheDirectory = true ) val compilationResult = runProcess ( konanc . absolutePath , source . absolutePath , * compilation . getCompilerArgs ( ) ) { timeout = konancTimeout } val expected = \"\" assertTrue ( compilationResult . stdout . contains ( expected ) , \"\" + \"\" ) testRunSettings . executor . runProcess ( kexe . absolutePath ) }","docstring":""} {"signature":"override fun pretrainedModel ( modelHub : ModelHub ) : ImageRecognitionModel","body":"{ return ImageRecognitionModel ( modelHub . loadModel ( this ) , channelsFirst , preprocessor , this :: class . simpleName ) }","docstring":""} {"signature":"override fun pretrainedModel ( modelHub : ModelHub ) : ImageRecognitionModel","body":"{ return ImageRecognitionModel ( modelHub . loadModel ( this ) , channelsFirst , preprocessor , this :: class . simpleName , classLabels = Imagenet . V1001 . labels ( ) ) }","docstring":""} {"signature":"override fun pretrainedModel ( modelHub : ModelHub ) : SinglePoseDetectionModel","body":"{ return SinglePoseDetectionModel ( modelHub . loadModel ( this ) , this :: class . simpleName ) }","docstring":""} {"signature":"override fun pretrainedModel ( modelHub : ModelHub ) : SinglePoseDetectionModel","body":"{ return SinglePoseDetectionModel ( modelHub . loadModel ( this ) , this :: class . simpleName ) }","docstring":""} {"signature":"override fun pretrainedModel ( modelHub : ModelHub ) : SSDLikeModel","body":"{ return SSDLikeModel ( modelHub . loadModel ( this ) , METADATA , this :: class . simpleName ) }","docstring":""} {"signature":"override fun pretrainedModel ( modelHub : ModelHub ) : SSDLikeModel","body":"{ return SSDLikeModel ( modelHub . loadModel ( this ) , METADATA , this :: class . simpleName ) }","docstring":""} {"signature":"override fun pretrainedModel ( modelHub : ModelHub ) : FaceDetectionModel","body":"{ return FaceDetectionModel ( modelHub . loadModel ( this ) , this :: class . simpleName ) }","docstring":""} {"signature":"override fun pretrainedModel ( modelHub : ModelHub ) : Fan2D106FaceAlignmentModel","body":"{ return Fan2D106FaceAlignmentModel ( modelHub . loadModel ( this ) , this :: class . simpleName ) }","docstring":""} {"signature":"override fun getExtensionReceiver ( ) : ReceiverValue ?","body":"= extensionReceiver","docstring":""} {"signature":"override fun getDispatchReceiver ( ) : ReceiverValue ?","body":"= dispatchReceiver","docstring":""} {"signature":"override fun getContextReceivers ( ) : List < ReceiverValue >","body":"= contextReceivers","docstring":""} {"signature":"@ Suppress ( \"\" ) override fun getCandidateDescriptor ( ) : D","body":"= resolvedCallAtom . candidateDescriptor as D","docstring":""} {"signature":"override fun getResultingDescriptor ( ) : D","body":"= resultingDescriptor","docstring":""} {"signature":"override fun getExplicitReceiverKind ( ) : ExplicitReceiverKind","body":"= resolvedCallAtom . explicitReceiverKind","docstring":""} {"signature":"override fun updateDispatchReceiverType ( newType : KotlinType )","body":"{ if ( dispatchReceiver ? . type == newType ) return dispatchReceiver = dispatchReceiver ? . replaceType ( newType ) }","docstring":""} {"signature":"override fun updateExtensionReceiverType ( newType : KotlinType )","body":"{ if ( extensionReceiver ? . type == newType ) return extensionReceiver = extensionReceiver ? . replaceType ( newType ) }","docstring":""} {"signature":"override fun updateContextReceiverTypes ( newTypes : List < KotlinType > )","body":"{ if ( contextReceivers . size != newTypes . size ) return contextReceivers = contextReceivers . zip ( newTypes ) . map { ( receiver , type ) -> receiver . replaceType ( type ) } }","docstring":""} {"signature":"override fun getStatus ( ) : ResolutionStatus","body":"= getResultApplicability ( diagnostics ) . toResolutionStatus ( )","docstring":""} {"signature":"override fun getTypeArguments ( ) : Map < TypeParameterDescriptor , KotlinType >","body":"{ val typeParameters = candidateDescriptor . typeParameters . takeIf { it . isNotEmpty ( ) } ? : return emptyMap ( ) return typeParameters . zip ( typeArguments ) . toMap ( ) }","docstring":""} {"signature":"override fun containsOnlyOnlyInputTypesErrors ( )","body":"= diagnostics . all { it is KotlinConstraintSystemDiagnostic && it . error is OnlyInputTypesDiagnostic }","docstring":""} {"signature":"override fun getSmartCastDispatchReceiverType ( ) : KotlinType ?","body":"= smartCastDispatchReceiverType","docstring":""} {"signature":"override fun setResultingSubstitutor ( substitutor : NewTypeSubstitutor ? )","body":"{ updateArgumentsMapping ( null ) updateValueArguments ( null ) substituteReceivers ( substitutor ) @ Suppress ( \"\" ) resultingDescriptor = substitutedResultingDescriptor ( substitutor ) as D typeArguments = freshSubstitutor . freshVariables . map { val substituted = ( substitutor ? : FreshVariableNewTypeSubstitutor . Empty ) . safeSubstitute ( it . defaultType ) typeApproximator . approximateToSuperType ( substituted , TypeApproximatorConfiguration . IntegerLiteralsTypesApproximation ) ? : substituted } calculateExpectedTypeForSamConvertedArgumentMap ( substitutor ) calculateExpectedTypeForSuspendConvertedArgumentMap ( substitutor ) calculateExpectedTypeForUnitConvertedArgumentMap ( substitutor ) calculateExpectedTypeForConstantConvertedArgumentMap ( ) }","docstring":""} {"signature":"override fun argumentToParameterMap ( resultingDescriptor : CallableDescriptor , valueArguments : Map < ValueParameterDescriptor , ResolvedValueArgument > , ) : Map < ValueArgument , ArgumentMatchImpl >","body":"{ val argumentErrors = collectErrorPositions ( ) return LinkedHashMap < ValueArgument , ArgumentMatchImpl > ( ) . also { result -> for ( parameter in resultingDescriptor . valueParameters ) { val resolvedArgument = valueArguments [ parameter ] ? : continue for ( argument in resolvedArgument . arguments ) { val status = argumentErrors [ argument ] ? . let { ArgumentMatchStatus . TYPE_MISMATCH } ? : ArgumentMatchStatus . SUCCESS result [ argument ] = ArgumentMatchImpl ( parameter ) . apply { recordMatchStatus ( status ) } } } } }","docstring":""} {"signature":"fun updateExtensionReceiverWithSmartCastIfNeeded ( smartCastExtensionReceiverType : KotlinType )","body":"{ if ( extensionReceiver is ImplicitClassReceiver ) { extensionReceiver = CastImplicitClassReceiver ( ( extensionReceiver as ImplicitClassReceiver ) . classDescriptor , smartCastExtensionReceiverType , ) } }","docstring":""} {"signature":"fun setSmartCastDispatchReceiverType ( smartCastDispatchReceiverType : KotlinType )","body":"{ this . smartCastDispatchReceiverType = smartCastDispatchReceiverType }","docstring":""} {"signature":"fun updateDiagnostics ( completedDiagnostics : Collection < KotlinCallDiagnostic > )","body":"{ diagnostics = completedDiagnostics }","docstring":""} {"signature":"fun getArgumentTypeForConstantConvertedArgument ( valueArgument : ValueArgument ) : IntegerValueTypeConstant ?","body":"{ val expression = valueArgument . getArgumentExpression ( ) ? : return null return argumentTypeForConstantConvertedMap ? . get ( expression ) }","docstring":""} {"signature":"fun getExpectedTypeForSamConvertedArgument ( valueArgument : ValueArgument ) : UnwrappedType ?","body":"= expectedTypeForSamConvertedArgumentMap ? . get ( valueArgument )","docstring":""} {"signature":"fun getExpectedTypeForSuspendConvertedArgument ( valueArgument : ValueArgument ) : UnwrappedType ?","body":"= expectedTypeForSuspendConvertedArgumentMap ? . get ( valueArgument )","docstring":""} {"signature":"fun getExpectedTypeForUnitConvertedArgument ( valueArgument : ValueArgument ) : UnwrappedType ?","body":"= expectedTypeForUnitConvertedArgumentMap ? . get ( valueArgument )","docstring":""} {"signature":"private fun calculateExpectedTypeForConvertedArguments ( arguments : Map < KotlinCallArgument , UnwrappedType > , substitutor : NewTypeSubstitutor ? , ) : Map < ValueArgument , UnwrappedType > ?","body":"{ if ( arguments . isEmpty ( ) ) return null val expectedTypeForConvertedArguments = hashMapOf < ValueArgument , UnwrappedType > ( ) for ( ( argument , convertedType ) in arguments ) { val typeWithFreshVariables = resolvedCallAtom . freshVariablesSubstitutor . safeSubstitute ( convertedType ) val expectedType = substitutor ? . safeSubstitute ( typeWithFreshVariables ) ? : typeWithFreshVariables expectedTypeForConvertedArguments [ argument . psiCallArgument . valueArgument ] = expectedType } return expectedTypeForConvertedArguments }","docstring":""} {"signature":"private fun calculateExpectedTypeForConstantConvertedArgumentMap ( )","body":"{ if ( resolvedCallAtom . argumentsWithConstantConversion . isEmpty ( ) ) return val expectedTypeForConvertedArguments = hashMapOf < KtExpression , IntegerValueTypeConstant > ( ) for ( ( argument , convertedConstant ) in resolvedCallAtom . argumentsWithConstantConversion ) { val expression = argument . psiExpression ? : continue expectedTypeForConvertedArguments [ expression ] = convertedConstant } argumentTypeForConstantConvertedMap = expectedTypeForConvertedArguments }","docstring":""} {"signature":"private fun calculateExpectedTypeForSamConvertedArgumentMap ( substitutor : NewTypeSubstitutor ? )","body":"{ expectedTypeForSamConvertedArgumentMap = calculateExpectedTypeForConvertedArguments ( resolvedCallAtom . argumentsWithConversion . mapValues { it . value . convertedTypeByCandidateParameter } , substitutor ) }","docstring":""} {"signature":"private fun calculateExpectedTypeForSuspendConvertedArgumentMap ( substitutor : NewTypeSubstitutor ? )","body":"{ expectedTypeForSuspendConvertedArgumentMap = calculateExpectedTypeForConvertedArguments ( resolvedCallAtom . argumentsWithSuspendConversion , substitutor ) }","docstring":""} {"signature":"private fun calculateExpectedTypeForUnitConvertedArgumentMap ( substitutor : NewTypeSubstitutor ? )","body":"{ expectedTypeForUnitConvertedArgumentMap = calculateExpectedTypeForConvertedArguments ( resolvedCallAtom . argumentsWithUnitConversion , substitutor ) }","docstring":""} {"signature":"private fun collectErrorPositions ( ) : Map < ValueArgument , List < KotlinCallDiagnostic > >","body":"{ val result = mutableListOf < Pair < ValueArgument , KotlinCallDiagnostic > > ( ) fun ConstraintPosition . originalPosition ( ) : ConstraintPosition = if ( this is IncorporationConstraintPosition ) { from . originalPosition ( ) } else { this } diagnostics . forEach { val position = when ( val error = it . constraintSystemError ) { is NewConstraintError -> error . position . originalPosition ( ) is CapturedTypeFromSubtyping -> error . position . originalPosition ( ) is ConstrainingTypeIsError -> error . position . originalPosition ( ) else -> null } as? ArgumentConstraintPositionImpl ? : return@forEach val argument = ( position . argument as? PSIKotlinCallArgument ) ? . valueArgument ? : return@forEach result += argument to it } return result . groupBy ( { it . first } ) { it . second } }","docstring":""} {"signature":"fun check ( metadata1 : T , metadata2 : T , report : MetadataPropertyReport )","body":"fun check ( metadata1 : T , metadata2 : T , report : MetadataPropertyReport )","docstring":""} {"signature":"override fun check ( metadata1 : T , metadata2 : T , report : MetadataPropertyReport )","body":"{ val value1 = getProperty ( metadata1 ) val value2 = getProperty ( metadata2 ) if ( ! areEqual ( value1 , value2 ) ) { report . addPropertyDiff ( NamedDiffEntry ( name , value1 , value2 ) ) } }","docstring":""} {"signature":"@ OptIn ( UnstableMetadataApi :: class ) fun moduleMetadataPropertyChecker ( name : String , propertyGetter : ( KmModule ) -> String )","body":"= object : GenericMetadataPropertyChecker < KmModule > ( \"\" ) { override fun getProperty ( node : KmModule ) = propertyGetter ( node ) }","docstring":""} {"signature":"@ OptIn ( UnstableMetadataApi :: class ) fun packagePartsPropertyChecker ( name : String , propertyGetter : ( KmPackageParts ) -> String )","body":"= object : GenericMetadataPropertyChecker < KmPackageParts > ( \"\" ) { override fun getProperty ( node : KmPackageParts ) = propertyGetter ( node ) }","docstring":""} {"signature":"fun constructorMetadataPropertyChecker ( name : String , propertyGetter : ( KmConstructor ) -> String )","body":"= object : GenericMetadataPropertyChecker < KmConstructor > ( \"\" ) { override fun getProperty ( node : KmConstructor ) = propertyGetter ( node ) }","docstring":""} {"signature":"fun functionMetadataPropertyChecker ( name : String , propertyGetter : ( KmFunction ) -> String )","body":"= object : GenericMetadataPropertyChecker < KmFunction > ( \"\" ) { override fun getProperty ( node : KmFunction ) = propertyGetter ( node ) }","docstring":""} {"signature":"fun typeAliasMetadataPropertyChecker ( name : String , propertyGetter : ( KmTypeAlias ) -> String )","body":"= object : GenericMetadataPropertyChecker < KmTypeAlias > ( \"\" ) { override fun getProperty ( node : KmTypeAlias ) = propertyGetter ( node ) }","docstring":""} {"signature":"fun propertyMetadataPropertyChecker ( name : String , propertyGetter : ( KmProperty ) -> String )","body":"= object : GenericMetadataPropertyChecker < KmProperty > ( \"\" ) { override fun getProperty ( node : KmProperty ) = propertyGetter ( node ) }","docstring":""} {"signature":"@ TestAnn ( ) fun testSimpleFunction ( )","body":"{ }","docstring":""} {"signature":"fun registerIfAbsent ( project : Project ) : Provider < KotlinNativeBundleBuildService >","body":"= project . gradle . sharedServices . registerIfAbsent ( \"\" , KotlinNativeBundleBuildService :: class . java ) { } . also { serviceProvider -> SingleActionPerProject . run ( project , UsesKotlinNativeBundleBuildService :: class . java . name ) { project . tasks . withType < UsesKotlinNativeBundleBuildService > ( ) . configureEach { task -> task . kotlinNativeBundleBuildService . value ( serviceProvider ) . disallowChanges ( ) task . usesService ( serviceProvider ) } } }","docstring":""} {"signature":"internal fun prepareKotlinNativeBundle ( project : Project , kotlinNativeBundleConfiguration : ConfigurableFileCollection , kotlinNativeVersion : String , bundleDir : File , reinstallFlag : Boolean , konanTargets : Set < KonanTarget > , overriddenKonanHome : String ? , )","body":"{ if ( overriddenKonanHome != null ) { project . logger . info ( \"\" ) } else { processToolchain ( bundleDir , project , reinstallFlag , kotlinNativeVersion , kotlinNativeBundleConfiguration ) } project . setupKotlinNativePlatformLibraries ( konanTargets ) }","docstring":"/**\n * This function downloads and installs a Kotlin Native bundle if needed\n * and then prepares its platform libraries if needed.\n *\n * @param project The Gradle project object.\n * @param kotlinNativeBundleConfiguration Gradle configuration for Kotlin Native Bundle\n * @param kotlinNativeVersion The version of Kotlin/Native to install\n * @param bundleDir The directory to store the Kotlin/Native bundle.\n * @param reinstallFlag A flag indicating whether to reinstall the bundle.\n * @param konanTargets The set of KonanTarget objects representing the targets for the Kotlin/Native bundle.\n * @param overriddenKonanHome Overridden konan home if present.\n * @return kotlin native version if toolchain was used, path to konan home if konan home was used\n */"} {"signature":"private fun processToolchain ( bundleDir : File , project : Project , reinstallFlag : Boolean , kotlinNativeVersion : String , kotlinNativeBundleConfiguration : ConfigurableFileCollection , )","body":"{ val lock = NativeDistributionCommonizerLock ( bundleDir ) { message -> project . logger . info ( \"\" ) } lock . withLock { val needToReinstall = KotlinToolingVersion ( project . konanVersion ) . maturity == KotlinToolingVersion . Maturity . SNAPSHOT if ( needToReinstall ) { project . logger . debug ( \"\" ) } removeBundleIfNeeded ( reinstallFlag || needToReinstall , bundleDir ) if ( ! bundleDir . resolve ( MARKER_FILE ) . exists ( ) ) { val gradleCachesKotlinNativeDir = resolveKotlinNativeConfiguration ( kotlinNativeVersion , kotlinNativeBundleConfiguration ) project . logger . info ( \"\" ) fso . copy { it . from ( gradleCachesKotlinNativeDir ) it . into ( bundleDir ) } createSuccessfulInstallationFile ( bundleDir ) project . logger . info ( \"\" ) } } }","docstring":""} {"signature":"internal fun downloadNativeDependencies ( bundleDir : File , konanDataDir : String ? , konanTargets : Set < KonanTarget > , logger : Logger , ) : Set < String >","body":"{ val requiredDependencies = mutableSetOf < String > ( ) val distribution = Distribution ( bundleDir . absolutePath , konanDataDir = konanDataDir ) konanTargets . forEach { konanTarget -> if ( konanTarget . enabledOnCurrentHostForBinariesCompilation ( ) ) { val konanPropertiesLoader = loadConfigurables ( konanTarget , distribution . properties , distribution . dependenciesDir , progressCallback = { url , currentBytes , totalBytes -> logger . info ( \"\" ) } ) as KonanPropertiesLoader requiredDependencies . addAll ( konanPropertiesLoader . dependencies ) konanPropertiesLoader . downloadDependencies ( DependencyExtractor ( ) ) } } return requiredDependencies }","docstring":"/**\n * Downloads native dependencies for Kotlin Native based on the provided configuration.\n * @return A set of required dependencies that were downloaded.\n */"} {"signature":"private fun removeBundleIfNeeded ( reinstallFlag : Boolean , bundleDir : File , )","body":"{ if ( reinstallFlag && canBeReinstalled ) { bundleDir . deleteRecursively ( ) canBeReinstalled = false } }","docstring":""} {"signature":"private fun resolveKotlinNativeConfiguration ( kotlinNativeVersion : String , kotlinNativeCompilerConfiguration : ConfigurableFileCollection , ) : File","body":"{ val resolutionErrorMessage = \"\" + \"\" val gradleCachesKotlinNativeDir = kotlinNativeCompilerConfiguration . singleOrNull ( ) ? . resolve ( kotlinNativeVersion ) ? : error ( resolutionErrorMessage ) if ( ! gradleCachesKotlinNativeDir . exists ( ) ) { throw IllegalArgumentException ( resolutionErrorMessage ) } return gradleCachesKotlinNativeDir }","docstring":""} {"signature":"private fun Project . setupKotlinNativePlatformLibraries ( konanTargets : Set < KonanTarget > )","body":"{ val distributionType = NativeDistributionTypeProvider ( this ) . getDistributionType ( ) if ( distributionType . mustGeneratePlatformLibs ) { konanTargets . forEach { konanTarget -> PlatformLibrariesGenerator ( project , konanTarget ) . generatePlatformLibsIfNeeded ( ) } } }","docstring":""} {"signature":"override fun extract ( archive : File , targetDirectory : File , archiveType : ArchiveType )","body":"{ when ( archiveType ) { ArchiveType . ZIP -> archiveOperations . zipTree ( archive ) ArchiveType . TAR_GZ -> unzipTarGz ( archive , targetDirectory ) else -> error ( \"\" ) } }","docstring":""} {"signature":"private fun unzipTarGz ( archive : File , targetDir : File )","body":"{ GZIPInputStream ( BufferedInputStream ( archive . inputStream ( ) ) ) . use { gzipInputStream -> val hardLinks = HashMap < Path , Path > ( ) TarArchiveInputStream ( gzipInputStream ) . use { tarInputStream -> generateSequence { tarInputStream . nextEntry } . forEach { entry : TarArchiveEntry -> val outputFile = File ( \"\" ) if ( entry . isDirectory ) { outputFile . mkdirs ( ) } else { if ( entry . isSymbolicLink ) { Files . createSymbolicLink ( outputFile . toPath ( ) , Paths . get ( entry . linkName ) ) } else if ( entry . isLink ) { hardLinks . put ( outputFile . toPath ( ) , targetDir . resolve ( entry . linkName ) . toPath ( ) ) } else { outputFile . outputStream ( ) . use { tarInputStream . copyTo ( it ) } Files . setPosixFilePermissions ( outputFile . toPath ( ) , getPosixFilePermissions ( entry . mode ) ) } } } } hardLinks . forEach { Files . createLink ( it . key , it . value ) } } }","docstring":""} {"signature":"private fun getPosixFilePermissions ( mode : Int ) : Set < PosixFilePermission >","body":"{ val permissions : MutableSet < PosixFilePermission > = mutableSetOf ( ) permissions . addPermission ( mode , , PosixFilePermission . OWNER_READ ) permissions . addPermission ( mode , , PosixFilePermission . OWNER_WRITE ) permissions . addPermission ( mode , , PosixFilePermission . OWNER_EXECUTE ) permissions . addPermission ( mode , , PosixFilePermission . GROUP_READ ) permissions . addPermission ( mode , , PosixFilePermission . GROUP_WRITE ) permissions . addPermission ( mode , , PosixFilePermission . GROUP_EXECUTE ) permissions . addPermission ( mode , , PosixFilePermission . OTHERS_READ ) permissions . addPermission ( mode , , PosixFilePermission . OTHERS_WRITE ) permissions . addPermission ( mode , , PosixFilePermission . OTHERS_EXECUTE ) return permissions }","docstring":""} {"signature":"private fun MutableSet < PosixFilePermission > . addPermission ( mode : Int , permissionBitMask : Int , permission : PosixFilePermission )","body":"{ if ( ( mode and permissionBitMask ) > ) { add ( permission ) } }","docstring":""} {"signature":"private fun createSuccessfulInstallationFile ( bundleDir : File )","body":"{ bundleDir . resolve ( MARKER_FILE ) . createNewFile ( ) }","docstring":""} {"signature":"override fun apply ( project : Project )","body":"{ MultiplePluginDeclarationDetector . detect ( project ) project . plugins . apply ( BasePlugin :: class . java ) check ( project == project . rootProject ) { \"\" } val settings = project . extensions . create ( EXTENSION_NAME , D8RootExtension :: class . java , project ) project . registerTask < D8SetupTask > ( D8SetupTask . NAME ) { it . group = TASKS_GROUP_NAME it . description = \"\" it . configuration = project . provider { project . configurations . detachedConfiguration ( project . dependencies . create ( it . ivyDependency ) ) . also { conf -> conf . isTransitive = false } } } project . registerTask < CleanDataTask > ( \"\" + CleanDataTask . NAME_SUFFIX ) { it . cleanableStoreProvider = project . provider { settings . requireConfigured ( ) . cleanableStore } it . group = TASKS_GROUP_NAME it . description = \"\" } }","docstring":""} {"signature":"fun apply ( rootProject : Project ) : D8RootExtension","body":"{ check ( rootProject == rootProject . rootProject ) rootProject . plugins . apply ( D8RootPlugin :: class . java ) return rootProject . extensions . getByName ( EXTENSION_NAME ) as D8RootExtension }","docstring":""} {"signature":"fun retrieve ( collector : FileStructureElementDiagnosticsCollector ) : FileStructureElementDiagnosticList","body":"{ val sessionHolder = SessionHolderImpl ( moduleComponents . session , moduleComponents . scopeSessionProvider . getScopeSession ( ) ) val context = if ( declaration is FirFile ) { PersistentCheckerContextFactory . createEmptyPersistenceCheckerContext ( sessionHolder ) } else { PersistenceContextCollector . collectContext ( sessionHolder , file , declaration ) } return withSourceCodeAnalysisExceptionUnwrapping { collector . collectForStructureElement ( declaration ) { components -> createVisitor ( context , components ) } } }","docstring":""} {"signature":"abstract fun createVisitor ( context : CheckerContextForProvider , components : DiagnosticCollectorComponents ) : LLFirDiagnosticVisitor","body":"abstract fun createVisitor ( context : CheckerContextForProvider , components : DiagnosticCollectorComponents ) : LLFirDiagnosticVisitor","docstring":""} {"signature":"override fun createVisitor ( context : CheckerContextForProvider , components : DiagnosticCollectorComponents ) : LLFirDiagnosticVisitor","body":"{ return Visitor ( declaration , context , components ) }","docstring":""} {"signature":"override fun shouldVisitDeclaration ( declaration : FirDeclaration ) : Boolean","body":"= when { declaration === structureElementDeclaration -> true insideFakeDeclaration -> true declaration . isImplicitConstructor -> true else -> false }","docstring":""} {"signature":"override fun visitNestedElements ( element : FirElement )","body":"{ if ( element . isImplicitConstructor ) { insideFakeDeclaration = true try { super . visitNestedElements ( element ) } finally { insideFakeDeclaration = false } } else { super . visitNestedElements ( element ) } }","docstring":""} {"signature":"fun shouldDiagnosticsAlwaysBeCheckedOn ( firElement : FirElement )","body":"= when ( firElement . source ? . kind ) { KtFakeSourceElementKind . PropertyFromParameter -> true KtFakeSourceElementKind . ImplicitConstructor -> true else -> false }","docstring":""} {"signature":"override fun createVisitor ( context : CheckerContextForProvider , components : DiagnosticCollectorComponents ) : LLFirDiagnosticVisitor","body":"{ return Visitor ( context , components ) }","docstring":""} {"signature":"override fun visitConstructor ( constructor : FirConstructor , data : Nothing ? )","body":"{ super . visitConstructor ( constructor , data ) if ( constructor is FirPrimaryConstructor ) { for ( valueParameter in constructor . valueParameters ) { valueParameter . correspondingProperty ? . let { visitProperty ( it , data ) } } } }","docstring":""} {"signature":"override fun createVisitor ( context : CheckerContextForProvider , components : DiagnosticCollectorComponents ) : LLFirDiagnosticVisitor","body":"{ return Visitor ( context , components ) }","docstring":""} {"signature":"override fun visitFile ( file : FirFile , data : Nothing ? )","body":"{ withAnnotationContainer ( file ) { visitWithFile ( file ) { file . annotations . forEach { it . accept ( this , data ) } file . packageDirective . accept ( this , data ) file . imports . forEach { it . accept ( this , data ) } } } }","docstring":""} {"signature":"override fun createVisitor ( context : CheckerContextForProvider , components : DiagnosticCollectorComponents ) : LLFirDiagnosticVisitor","body":"{ return Visitor ( context , components ) }","docstring":""} {"signature":"override fun visitScript ( script : FirScript , data : Nothing ? )","body":"{ withAnnotationContainer ( script ) { checkElement ( script ) withDeclaration ( script ) { visitScriptDependentElements ( script , this , data ) } } }","docstring":""} {"signature":"public fun String . toJsString ( ) : JsString","body":"= kotlinToJsStringAdapter ( this ) ! !","docstring":""} {"signature":"fun foo ( x : String ) : String","body":"{ assert ( \"\" . hashCode ( ) == \"\" . hashCode ( ) ) when ( x ) { \"\" , \"\" -> return \"\" \"\" , \"\" -> return \"\" } return \"\" }","docstring":""} {"signature":"@ After fun tearDown ( )","body":"{ pool . close ( ) }","docstring":""} {"signature":"@ Test fun testInvokedExactlyOnce ( )","body":"= runBlocking { runStressTest ( TestChannelKind . BUFFERED_1 ) }","docstring":""} {"signature":"@ Test fun testInvokedExactlyOnceBroadcast ( )","body":"= runBlocking { runStressTest ( TestChannelKind . CONFLATED_BROADCAST ) }","docstring":""} {"signature":"private suspend fun runStressTest ( kind : TestChannelKind )","body":"{ repeat ( iterations ) { val counter = AtomicInteger ( ) val channel = kind . create < Int > ( ) val latch = CountDownLatch ( ) val j1 = async { latch . await ( ) channel . close ( ) } val j2 = async { latch . await ( ) channel . invokeOnClose { counter . incrementAndGet ( ) } } val j3 = async { latch . await ( ) channel . invokeOnClose { counter . incrementAndGet ( ) } } latch . countDown ( ) joinAll ( j1 , j2 , j3 ) assertEquals ( , counter . get ( ) ) } }","docstring":""} {"signature":"override fun set ( name : String , data : Constraint )","body":"{ allProperties [ name ] = data }","docstring":""} {"signature":"override fun get ( name : String ) : Constraint ?","body":"{ val constraint = allProperties [ name ] return if ( constraint != null ) { constraint } else { val newConstraint = CompositeConstraint ( owner ) neededProperties [ name ] = newConstraint allProperties [ name ] = newConstraint newConstraint } }","docstring":""} {"signature":"override operator fun plusAssign ( other : Constraint )","body":"{ constraints += other }","docstring":""} {"signature":"override operator fun plusAssign ( others : Collection < Constraint > )","body":"{ constraints . addAll ( others ) }","docstring":""} {"signature":"private fun getFlatConstraints ( ) : List < Constraint >","body":"{ return constraints . flatMap { constraint -> if ( constraint is CompositeConstraint ) { constraint . getFlatConstraints ( ) } else { listOf ( constraint ) } } }","docstring":""} {"signature":"override fun resolve ( resolveAsInput : Boolean ) : Constraint","body":"{ val properties = if ( resolveAsInput ) neededProperties else allProperties val resolvedConstraints = getFlatConstraints ( ) . map { it . resolve ( resolveAsInput ) } val callableConstraints = resolvedConstraints . filterIsInstance < CallableConstraint > ( ) return if ( properties . isNotEmpty ( ) || callableConstraints . isNotEmpty ( ) ) { var parameterCount = - val callsCanBeUnified = callableConstraints . all { if ( parameterCount < ) { parameterCount = it . parameterCount } it . parameterCount == parameterCount } val resultConstraint : PropertyOwnerConstraint = if ( callableConstraints . isNotEmpty ( ) && callsCanBeUnified ) { FunctionConstraint ( owner = owner , overloads = callableConstraints . map { callable -> FunctionConstraint . Overload ( callable . returnConstraints , List ( parameterCount ) { i -> \"\" to NoTypeConstraint } ) } ) } else { ObjectConstraint ( owner ) . apply { callableConstraints . forEach { callSignatureConstraints . add ( it . resolve ( resolveAsInput ) ) } } } properties . forEach { ( name , value ) -> resultConstraint [ name ] = value } resultConstraint . resolve ( resolveAsInput ) } else { when { resolvedConstraints . contains ( NumberTypeConstraint ) -> NumberTypeConstraint resolvedConstraints . contains ( BigIntTypeConstraint ) -> BigIntTypeConstraint resolvedConstraints . contains ( BooleanTypeConstraint ) -> BooleanTypeConstraint resolvedConstraints . contains ( StringTypeConstraint ) -> StringTypeConstraint else -> NoTypeConstraint } } }","docstring":""} {"signature":"fun get ( ) : String","body":"fun get ( ) : String","docstring":""} {"signature":"fun run ( i : I ) : String","body":"= i . get ( )","docstring":""} {"signature":"fun box ( ) : String","body":"{ val mh = MethodHandles . lookup ( ) . findVirtual ( C :: class . java , \"\" , MethodType . methodType ( String :: class . java , I :: class . java ) ) try { return mh . invokeExact ( C ( ) , object : I { override fun get ( ) : String = \"\" } ) as String } catch ( e : WrongMethodTypeException ) { } return mh . invoke ( C ( ) , object : I { override fun get ( ) : String = \"\" } ) as String }","docstring":""} {"signature":"fun test ( ) : String","body":"{ return \"\" }","docstring":""} {"signature":"abstract override fun test ( ) : String","body":"abstract override fun test ( ) : String","docstring":""} {"signature":"override fun test ( ) : String","body":"{ return \"\" }","docstring":""} {"signature":"override fun test ( ) : String","body":"{ return super . test ( ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ return TestClass2 ( ) . test ( ) }","docstring":""} {"signature":"private fun < T : Annotation > foo ( annotationClass : Class < T > )","body":"= w1 . getAnnotation ( annotationClass ) ? : w2 . getAnnotation ( annotationClass )","docstring":""} {"signature":"fun main ( )","body":"{ val x : Any = foo ( RunsInActiveStoreMode :: class . java ) }","docstring":""} {"signature":"fun values ( b : Boolean )","body":"{ }","docstring":""} {"signature":"fun E . values ( ) : Array < E >","body":"= arrayOf ( A )","docstring":""} {"signature":"fun f ( e : E )","body":"= when ( e ) { E . A -> \"\" }","docstring":""} {"signature":"fun box ( ) : String","body":"{ return f ( E . A ) }","docstring":""} {"signature":"fun b ( )","body":"{ class C < S > { fun f ( ) { fun g ( t : T ) : S ? = null } } }","docstring":""} {"signature":"fun foo ( y : String ? )","body":"{ var x : String ? = \"\" if ( x != null ) { y ? . let { x != y } x . length } }","docstring":""} {"signature":"fun existingMethod ( )","body":"fun existingMethod ( )","docstring":""} {"signature":"actual fun existingMethod ( )","body":"{ }","docstring":""} {"signature":"fun injectedMethod ( )","body":"{ }","docstring":""} {"signature":"fun changedFunction ( )","body":"{ }","docstring":""} {"signature":"internal fun < T : Any > NamedDomainObjectCollection < T > . whenAdded ( condition : ( T ) -> Boolean , action : ( T ) -> Unit , )","body":"{ val element = find ( condition ) if ( element != null ) { action ( element ) return } whenObjectAdded { val addedElement = this if ( condition ( addedElement ) ) action ( addedElement ) } }","docstring":""} {"signature":"fun main ( )","body":"{ if ( ! ( a && b && c ) ) { \"\" } else { \"\" } }","docstring":""} {"signature":"fun box ( ) : String","body":"{ fun < T > foo ( t : ( ) -> T ) : T = t ( ) return foo { \"\" } }","docstring":""} {"signature":"private fun preHandler ( ) : Method ?","body":"{ val current = _preHandler if ( current !== this ) return current as Method ? val declared = try { Thread :: class . java . getDeclaredMethod ( \"\" ) . takeIf { Modifier . isPublic ( it . modifiers ) && Modifier . isStatic ( it . modifiers ) } } catch ( e : Throwable ) { null } _preHandler = declared return declared }","docstring":""} {"signature":"override fun handleException ( context : CoroutineContext , exception : Throwable )","body":"{ if ( Build . VERSION . SDK_INT in .. ) { ( preHandler ( ) ? . invoke ( null ) as? Thread . UncaughtExceptionHandler ) ? . uncaughtException ( Thread . currentThread ( ) , exception ) } }","docstring":""} {"signature":"fun getJvmModuleNameForDeserializedDescriptor ( descriptor : DeclarationDescriptor ) : String ?","body":"{ val parent = DescriptorUtils . getParentOfType ( descriptor , ClassOrPackageFragmentDescriptor :: class . java , false ) when { parent is DeserializedClassDescriptor -> { val classProto = parent . classProto val nameResolver = parent . c . nameResolver return classProto . getExtensionOrNull ( JvmProtoBuf . classModuleName ) ? . let ( nameResolver :: getString ) ? : JvmProtoBufUtil . DEFAULT_MODULE_NAME } descriptor is DeserializedMemberDescriptor -> { val source = descriptor . containerSource if ( source is JvmPackagePartSource ) { return source . moduleName } } } return null }","docstring":""} {"signature":"@ PublishedApi internal actual inline fun < T : Any > dataTypeOf ( type : KClass < out T > ) : DataType","body":"= when ( type ) { Byte :: class -> ByteDataType Short :: class -> ShortDataType Int :: class -> IntDataType Long :: class -> LongDataType Float :: class -> FloatDataType Double :: class -> DoubleDataType ComplexFloat :: class -> ComplexFloatDataType ComplexDouble :: class , NativeComplexDouble :: class -> ComplexDoubleDataType else -> throw IllegalStateException ( \"\" ) }","docstring":""} {"signature":"fun Project . addAllBuildRepositories ( )","body":"{ val kotlinVersion = rootProject . defaultVersionCatalog . versions . devKotlin repositories { mavenCentral ( ) gradlePluginPortal ( ) maven ( \"\" ) for ( teamcity in listOf ( INTERNAL_KOTLIN_TEAMCITY , PUBLIC_KOTLIN_TEAMCITY ) ) { val locator = \"\" maven ( \"\" ) } val m2LocalPath = file ( \"\" ) if ( m2LocalPath . exists ( ) ) { maven ( m2LocalPath . toURI ( ) ) } } }","docstring":""} {"signature":"internal fun CirProvided . ClassOrTypeAliasType . toCirClassOrTypeAliasTypeOrNull ( classifiers : CirProvidedClassifiers ) : CirClassOrTypeAliasType ?","body":"{ return when ( this ) { is CirProvided . ClassType -> this . toCirClassTypeOrNull ( classifiers ) is CirProvided . TypeAliasType -> this . toCirTypeAliasTypeOrNull ( classifiers ) } }","docstring":""} {"signature":"internal fun CirProvided . TypeAliasType . toCirTypeAliasTypeOrNull ( classifiers : CirProvidedClassifiers ) : CirTypeAliasType ?","body":"{ val typeAlias = classifiers . classifier ( classifierId ) as? CirProvided . TypeAlias ? : return null return CirTypeAliasType . createInterned ( typeAliasId = classifierId , isMarkedNullable = isMarkedNullable , arguments = arguments . map { it . toCirTypeProjectionOrNull ( classifiers ) ? : return null } , underlyingType = typeAlias . underlyingType . toCirClassOrTypeAliasTypeOrNull ( classifiers ) ? : return null ) }","docstring":""} {"signature":"internal fun CirProvided . ClassType . toCirClassTypeOrNull ( classifiers : CirProvidedClassifiers ) : CirClassType ?","body":"{ return CirClassType . createInterned ( classId = classifierId , outerType = outerType ? . let { it . toCirClassTypeOrNull ( classifiers ) ? : return null } , isMarkedNullable = isMarkedNullable , arguments = arguments . map { it . toCirTypeProjectionOrNull ( classifiers ) ? : return null } , ) }","docstring":""} {"signature":"internal fun CirProvided . TypeProjection . toCirTypeProjectionOrNull ( classifiers : CirProvidedClassifiers ) : CirTypeProjection ?","body":"{ return when ( this ) { is CirProvided . StarTypeProjection -> CirStarTypeProjection is CirProvided . RegularTypeProjection -> this . toCirRegularTypeProjectionOrNull ( classifiers ) } }","docstring":""} {"signature":"internal fun CirProvided . RegularTypeProjection . toCirRegularTypeProjectionOrNull ( classifiers : CirProvidedClassifiers ) : CirRegularTypeProjection ?","body":"{ return CirRegularTypeProjection ( projectionKind = variance , type = when ( val type = type ) { is CirProvided . ClassOrTypeAliasType -> type . toCirClassOrTypeAliasTypeOrNull ( classifiers ) ? : return null is CirProvided . TypeParameterType -> CirTypeParameterType . createInterned ( type . index , type . isMarkedNullable ) } ) }","docstring":""} {"signature":"fun add ( element : T )","body":"{ }","docstring":""} {"signature":"public fun < R > foo ( x : MutableCollection < in R > , block : ( ) -> R )","body":"{ x . add ( block ( ) ) }","docstring":""} {"signature":"abstract fun foo ( )","body":"abstract fun foo ( )","docstring":""} {"signature":"override fun foo ( )","body":"{ }","docstring":""} {"signature":"fun foo ( )","body":"= fun ( ) { }","docstring":""} {"signature":"fun bar ( )","body":"= { }","docstring":""} {"signature":"override fun remove ( element : Any ? ) : Boolean","body":"{ return true }","docstring":""} {"signature":"override fun removeAll ( elements : Collection < Any > ) : Boolean","body":"{ return false }","docstring":""} {"signature":"override fun first ( ) : Any","body":"{ return }","docstring":""} {"signature":"override fun last ( ) : Any","body":"{ return }","docstring":""} {"signature":"fun test ( a : A , b : B )","body":"{ a . size a . first ( ) a . last ( ) a . add ( ) a . add ( null ) a . remove ( ) a . remove ( null ) b . size b . first ( ) b . last ( ) b . add ( ) b . add ( null ) b . remove ( null ) }","docstring":""} {"signature":"override fun conversionDefinitelyNotNeeded ( candidate : ResolutionCandidate , argument : KotlinCallArgument , expectedParameterType : UnwrappedType ) : Boolean","body":"{ val callComponents = candidate . callComponents if ( ! callComponents . languageVersionSettings . supportsFeature ( LanguageFeature . SamConversionPerArgument ) ) return true if ( expectedParameterType . isNothing ( ) ) return true if ( expectedParameterType . isFunctionType ) return true val samConversionOracle = callComponents . samConversionOracle if ( ! callComponents . languageVersionSettings . supportsFeature ( LanguageFeature . SamConversionForKotlinFunctions ) ) { if ( ! samConversionOracle . shouldRunSamConversionForFunction ( candidate . resolvedCall . candidateDescriptor ) ) return true } val declarationDescriptor = expectedParameterType . constructor . declarationDescriptor if ( declarationDescriptor is ClassDescriptor && declarationDescriptor . isDefinitelyNotSamInterface ) return true return false }","docstring":""} {"signature":"override fun conversionIsNeededBeforeSubtypingCheck ( argument : KotlinCallArgument , areSuspendOnlySamConversionsSupported : Boolean ) : Boolean","body":"{ return when ( argument ) { is SubKotlinCallArgument -> { val stableType = argument . receiver . stableType if ( stableType . isFunctionType || ( areSuspendOnlySamConversionsSupported && stableType . isFunctionOrKFunctionTypeWithAnySuspendability ) ) return true hasNonAnalyzedLambdaAsReturnType ( argument . callResult . subResolvedAtoms , stableType ) } is SimpleKotlinCallArgument -> argument . receiver . stableType . run { isFunctionType || ( areSuspendOnlySamConversionsSupported && isFunctionOrKFunctionTypeWithAnySuspendability ) } is LambdaKotlinCallArgument , is CallableReferenceKotlinCallArgument -> true else -> false } }","docstring":""} {"signature":"private fun hasNonAnalyzedLambdaAsReturnType ( subResolvedAtoms : List < ResolvedAtom > ? , type : UnwrappedType ) : Boolean","body":"{ subResolvedAtoms ? . forEach { if ( it is LambdaWithTypeVariableAsExpectedTypeAtom ) { if ( it . expectedType . constructor == type . constructor ) return true } val hasNonAnalyzedLambda = hasNonAnalyzedLambdaAsReturnType ( it . subResolvedAtoms , type ) if ( hasNonAnalyzedLambda ) return true } return false }","docstring":""} {"signature":"override fun conversionIsNeededAfterSubtypingCheck ( argument : KotlinCallArgument ) : Boolean","body":"{ return argument is SimpleKotlinCallArgument && argument . receiver . stableType . isFunctionTypeOrSubtype }","docstring":""} {"signature":"override fun convertParameterType ( candidate : ResolutionCandidate , argument : KotlinCallArgument , parameter : ParameterDescriptor , expectedParameterType : UnwrappedType ) : UnwrappedType ?","body":"{ val callComponents = candidate . callComponents val originalExpectedType = argument . getExpectedType ( parameter . original , callComponents . languageVersionSettings ) val convertedTypeByCandidate = callComponents . samConversionResolver . getFunctionTypeForPossibleSamType ( expectedParameterType , callComponents . samConversionOracle ) ? : return null val convertedTypeByOriginal = if ( expectedParameterType . constructor == originalExpectedType . constructor ) callComponents . samConversionResolver . getFunctionTypeForPossibleSamType ( originalExpectedType , callComponents . samConversionOracle ) else convertedTypeByCandidate assert ( convertedTypeByCandidate . constructor == convertedTypeByOriginal ? . constructor ) { \"\" + \"\" + \"\" } candidate . resolvedCall . registerArgumentWithSamConversion ( argument , SamConversionDescription ( convertedTypeByOriginal ! ! , convertedTypeByCandidate , expectedParameterType ) ) if ( needCompatibilityResolveForSAM ( candidate , expectedParameterType ) ) { candidate . markCandidateForCompatibilityResolve ( ) } val samDescriptor = originalExpectedType . constructor . declarationDescriptor if ( samDescriptor is ClassDescriptor ) { callComponents . lookupTracker . record ( candidate . scopeTower . location , samDescriptor , SAM_LOOKUP_NAME ) } return convertedTypeByCandidate }","docstring":""} {"signature":"private fun needCompatibilityResolveForSAM ( candidate : ResolutionCandidate , typeToConvert : UnwrappedType ) : Boolean","body":"{ val descriptor = typeToConvert . constructor . declarationDescriptor if ( descriptor is ClassDescriptor && descriptor . isFun ) return false return ! candidate . callComponents . samConversionOracle . isJavaApplicableCandidate ( candidate . resolvedCall . candidateDescriptor ) }","docstring":""} {"signature":"fun isJavaParameterCanBeConverted ( candidate : ResolutionCandidate , expectedParameterType : UnwrappedType ) : Boolean","body":"{ val callComponents = candidate . callComponents val samConversionOracle = callComponents . samConversionOracle if ( ! samConversionOracle . isJavaApplicableCandidate ( candidate . resolvedCall . candidateDescriptor ) ) return false val declarationDescriptor = expectedParameterType . constructor . declarationDescriptor if ( declarationDescriptor is ClassDescriptor && declarationDescriptor . isDefinitelyNotSamInterface ) return false val convertedType = callComponents . samConversionResolver . getFunctionTypeForPossibleSamType ( expectedParameterType , callComponents . samConversionOracle ) return convertedType != null }","docstring":""} {"signature":"fun foo ( x : ( suspend ( ) -> Unit ) ? ) : ( suspend ( ) -> Unit ) ?","body":"fun foo ( x : ( suspend ( ) -> Unit ) ? ) : ( suspend ( ) -> Unit ) ?","docstring":""} {"signature":"override fun foo ( x : ( suspend ( ) -> Unit ) ? )","body":"= x","docstring":""} {"signature":"@ Test fun testNormalAndNull ( )","body":"= runTest { expect ( ) val state = MutableStateFlow < Int ? > ( ) val job = launch ( start = CoroutineStart . UNDISPATCHED ) { expect ( ) assertFailsWith < CancellationException > { state . collect { value -> when ( value ) { -> expect ( ) -> expect ( ) null -> expect ( ) -> expect ( ) else -> expectUnreached ( ) } } } expect ( ) } expect ( ) state . value = assertEquals ( , state . value ) yield ( ) expect ( ) state . value = yield ( ) expect ( ) state . value = null assertNull ( state . value ) yield ( ) expect ( ) state . value = assertEquals ( , state . value ) yield ( ) expect ( ) job . cancel ( ) yield ( ) finish ( ) }","docstring":""} {"signature":"@ Test fun testEqualsConflation ( )","body":"= runTest { expect ( ) val state = MutableStateFlow ( Data ( ) ) val job = launch ( start = CoroutineStart . UNDISPATCHED ) { expect ( ) assertFailsWith < CancellationException > { state . collect { value -> when ( value . i ) { -> expect ( ) -> expect ( ) -> expect ( ) else -> error ( \"\" ) } } } expect ( ) } state . value = Data ( ) state . value = Data ( ) yield ( ) state . value = Data ( ) state . value = Data ( ) expect ( ) yield ( ) state . value = Data ( ) yield ( ) state . value = Data ( ) state . value = Data ( ) expect ( ) yield ( ) expect ( ) job . cancel ( ) yield ( ) finish ( ) }","docstring":""} {"signature":"@ Test fun testDataModel ( )","body":"= runTest { val s = CounterModel ( ) launch { val sum = s . counter . take ( ) . sum ( ) assertEquals ( , sum ) } repeat ( ) { yield ( ) s . inc ( ) } }","docstring":""} {"signature":"fun inc ( )","body":"{ _counter . value ++ }","docstring":""} {"signature":"@ Test public fun testOnSubscriptionWithException ( )","body":"= runTest { expect ( ) val state = MutableStateFlow ( \"\" ) state . onSubscription { emit ( \"\" ) state . value = \"\" } . onSubscription { emit ( \"\" ) state . value = \"\" throw TestException ( ) } . onStart { emit ( \"\" ) state . value = \"\" } . onStart { emit ( \"\" ) state . value = \"\" } . onEach { when ( it ) { \"\" -> expect ( ) \"\" -> expect ( ) \"\" -> expect ( ) \"\" -> expect ( ) else -> expectUnreached ( ) } } . catch { e -> assertIs < TestException > ( e ) expect ( ) } . launchIn ( this ) . join ( ) assertEquals ( , state . subscriptionCount . value ) finish ( ) }","docstring":""} {"signature":"@ Test fun testOperatorFusion ( )","body":"{ val state = MutableStateFlow ( String ) assertSame ( state , ( state as Flow < * > ) . cancellable ( ) ) assertSame ( state , ( state as Flow < * > ) . distinctUntilChanged ( ) ) assertSame ( state , ( state as Flow < * > ) . flowOn ( Dispatchers . Default ) ) assertSame ( state , ( state as Flow < * > ) . conflate ( ) ) assertSame ( state , state . buffer ( Channel . CONFLATED ) ) assertSame ( state , state . buffer ( Channel . RENDEZVOUS ) ) }","docstring":""} {"signature":"@ Test fun testResetUnsupported ( )","body":"{ val state = MutableStateFlow ( ) assertFailsWith < UnsupportedOperationException > { state . resetReplayCache ( ) } assertEquals ( , state . value ) assertEquals ( listOf ( ) , state . replayCache ) }","docstring":""} {"signature":"@ Test fun testUpdate ( )","body":"= runTest { val state = MutableStateFlow ( ) state . update { it + } assertEquals ( , state . value ) state . update { it + } assertEquals ( , state . value ) }","docstring":""} {"signature":"@ Test fun testSubscriptionByFirstSuspensionInStateFlow ( )","body":"= runTest { testSubscriptionByFirstSuspensionInCollect ( MutableStateFlow ( ) ) { value = it ; yield ( ) } }","docstring":""} {"signature":"fun box ( ) : String","body":"{ global = S ( \"\" ) assertEquals ( S ( \"\" ) , S :: nonNullTest . call ( S ( \"\" ) ) ) assertEquals ( S ( \"\" ) , S ( \"\" ) :: nonNullTest . call ( ) ) assertEquals ( S ( \"\" ) , S :: nonNullTest . getter . call ( S ( \"\" ) ) ) assertEquals ( S ( \"\" ) , S ( \"\" ) :: nonNullTest . getter . call ( ) ) S :: nonNullTest . setter . call ( S ( \"\" ) , S ( \"\" ) ) assertEquals ( S ( \"\" ) , global ) S ( \"\" ) :: nonNullTest . setter . call ( S ( \"\" ) ) assertEquals ( S ( \"\" ) , global ) global = S ( \"\" ) assertEquals ( S ( \"\" ) , S :: nullableTest . call ( S ( \"\" ) ) ) assertEquals ( S ( \"\" ) , S ( \"\" ) :: nullableTest . call ( ) ) assertEquals ( S ( \"\" ) , S :: nullableTest . getter . call ( S ( \"\" ) ) ) assertEquals ( S ( \"\" ) , S ( \"\" ) :: nullableTest . getter . call ( ) ) S :: nullableTest . setter . call ( S ( \"\" ) , S ( \"\" ) ) assertEquals ( S ( \"\" ) , global ) S ( \"\" ) :: nullableTest . setter . call ( S ( \"\" ) ) assertEquals ( S ( \"\" ) , global ) global = S ( \"\" ) assertEquals ( S ( \"\" ) , Z :: nonNullTest . call ( Z ( ) ) ) assertEquals ( S ( \"\" ) , Z ( ) :: nonNullTest . call ( ) ) assertEquals ( S ( \"\" ) , Z :: nonNullTest . getter . call ( Z ( ) ) ) assertEquals ( S ( \"\" ) , Z ( ) :: nonNullTest . getter . call ( ) ) Z :: nonNullTest . setter . call ( Z ( ) , S ( \"\" ) ) assertEquals ( S ( \"\" ) , global ) Z ( ) :: nonNullTest . setter . call ( S ( \"\" ) ) assertEquals ( S ( \"\" ) , global ) global = S ( \"\" ) assertEquals ( S ( \"\" ) , Z :: nullableTest . call ( Z ( ) ) ) assertEquals ( S ( \"\" ) , Z ( ) :: nullableTest . call ( ) ) assertEquals ( S ( \"\" ) , Z :: nullableTest . getter . call ( Z ( ) ) ) assertEquals ( S ( \"\" ) , Z ( ) :: nullableTest . getter . call ( ) ) Z :: nullableTest . setter . call ( Z ( ) , S ( \"\" ) ) assertEquals ( S ( \"\" ) , global ) Z ( ) :: nullableTest . setter . call ( S ( \"\" ) ) assertEquals ( S ( \"\" ) , global ) global = S ( \"\" ) assertEquals ( S ( \"\" ) , A :: nonNullTest . call ( A ( ) ) ) assertEquals ( S ( \"\" ) , A ( ) :: nonNullTest . call ( ) ) assertEquals ( S ( \"\" ) , A :: nonNullTest . getter . call ( A ( ) ) ) assertEquals ( S ( \"\" ) , A ( ) :: nonNullTest . getter . call ( ) ) A :: nonNullTest . setter . call ( A ( ) , S ( \"\" ) ) assertEquals ( S ( \"\" ) , global ) A ( ) :: nonNullTest . setter . call ( S ( \"\" ) ) assertEquals ( S ( \"\" ) , global ) global = S ( \"\" ) assertEquals ( S ( \"\" ) , A :: nullableTest . call ( A ( ) ) ) assertEquals ( S ( \"\" ) , A ( ) :: nullableTest . call ( ) ) assertEquals ( S ( \"\" ) , A :: nullableTest . getter . call ( A ( ) ) ) assertEquals ( S ( \"\" ) , A ( ) :: nullableTest . getter . call ( ) ) A :: nullableTest . setter . call ( A ( ) , S ( \"\" ) ) assertEquals ( S ( \"\" ) , global ) A ( ) :: nullableTest . setter . call ( S ( \"\" ) ) assertEquals ( S ( \"\" ) , global ) return \"\" }","docstring":""} {"signature":"fun IrElement . dumpKotlinLike ( options : String = \"\" ) : String","body":"= \"\"","docstring":""} {"signature":"fun IrElement . dump ( normalizeNames : Boolean = false ) : String","body":"= \"\"","docstring":""} {"signature":"fun foo ( dumpStrategy : String )","body":"{ val dump : IrElement . ( ) -> String = if ( dumpStrategy == \"\" ) IrElement :: dumpKotlinLike else IrElement :: dump }","docstring":""} {"signature":"override fun toString ( ) : String","body":"{ return this :: class . simpleName ! ! }","docstring":""} {"signature":"override fun hashCode ( ) : Int","body":"= toString ( ) . hashCode ( )","docstring":""} {"signature":"fun instanceof ( )","body":"= \"\"","docstring":""} {"signature":"inline fun foo ( )","body":"= A ( ) . instanceof ( )","docstring":""} {"signature":"fun box ( )","body":"= foo ( )","docstring":""} {"signature":"override fun doTestByMainFile ( mainFile : KtFile , mainModule : KtTestModule , testServices : TestServices )","body":"{ val contextElement = testServices . expressionMarkerProvider . getElementOfTypeAtCaret < KtElement > ( mainFile ) val fragmentText = mainModule . testModule . files . single ( ) . originalFile . run { File ( parent , \"\" ) } . readText ( ) val isBlockFragment = fragmentText . any { it == '' } val project = mainFile . project val factory = KtPsiFactory ( project , markGenerated = false ) val codeFragment = when { isBlockFragment -> factory . createBlockCodeFragment ( fragmentText , contextElement ) else -> factory . createExpressionCodeFragment ( fragmentText , contextElement ) } super . doTestByMainFile ( codeFragment , mainModule , testServices ) }","docstring":""} {"signature":"fun test ( )","body":"{ val buildee = when ( \"\" ) { \"\" -> build { setTypeVariable ( TargetType ( ) ) } \"\" -> build { } else -> Buildee ( ) } checkExactType < Buildee < TargetType > > ( buildee ) }","docstring":""} {"signature":"fun setTypeVariable ( value : TV )","body":"{ storage = value }","docstring":""} {"signature":"fun < PTV > build ( instructions : Buildee < PTV > . ( ) -> Unit ) : Buildee < PTV >","body":"{ return Buildee < PTV > ( ) . apply ( instructions ) }","docstring":""} {"signature":"fun foo ( )","body":"{ }","docstring":""} {"signature":"fun createSome ( ) : Some","body":"= Other ( )","docstring":""} {"signature":"fun foo ( x : java . io . Serializable )","body":"{ }","docstring":""} {"signature":"fun main ( )","body":"{ foo ( \"\" ) }","docstring":""} {"signature":"override fun check ( resolvedCall : ResolvedCall < * > , reportOn : PsiElement , context : CallCheckerContext )","body":"{ val descriptor = resolvedCall . resultingDescriptor as? ConstructorDescriptor ? : return val constructorOwner = descriptor . containingDeclaration . original val scopeOwner = context . scope . ownerDescriptor val actualConstructor = ( descriptor as? TypeAliasConstructorDescriptor ) ? . underlyingConstructorDescriptor ? : descriptor if ( actualConstructor . visibility . normalize ( ) != DescriptorVisibilities . PROTECTED ) return if ( ! DescriptorVisibilityUtils . isVisibleWithAnyReceiver ( descriptor , scopeOwner , context . languageVersionSettings ) ) return val calleeExpression = resolvedCall . call . calleeExpression when ( calleeExpression ) { is KtConstructorCalleeExpression -> if ( calleeExpression . parent is KtSuperTypeCallEntry ) return is KtConstructorDelegationReferenceExpression -> return } if ( scopeOwner . parentsWithSelf . any { it . original === constructorOwner } ) return @ Suppress ( \"\" ) if ( DescriptorVisibilityUtils . findInvisibleMember ( DescriptorVisibilities . FALSE_IF_PROTECTED , descriptor , scopeOwner , context . languageVersionSettings ) == actualConstructor . original ) { context . trace . report ( Errors . PROTECTED_CONSTRUCTOR_NOT_IN_SUPER_CALL . on ( reportOn , descriptor ) ) } }","docstring":""} {"signature":"fun copy ( ) : List < Value >","body":"{ return data . toList ( ) }","docstring":""} {"signature":"fun copyManual ( ) : List < Value >","body":"{ val list = ArrayList < Value > ( data . size ) for ( item in data ) { list . add ( item ) } return list }","docstring":""} {"signature":"fun filterAndCount ( ) : Int","body":"{ return data . filter { filterLoad ( it ) } . count ( ) }","docstring":""} {"signature":"fun filterAndCountWithLambda ( ) : Int","body":"{ return data . filter { it . value % == } . count ( ) }","docstring":""} {"signature":"fun filterWithLambda ( ) : List < Value >","body":"{ return data . filter { it . value % == } }","docstring":""} {"signature":"fun mapWithLambda ( ) : List < String >","body":"{ return data . map { it . toString ( ) } }","docstring":""} {"signature":"fun countWithLambda ( ) : Int","body":"{ return data . count { it . value % == } }","docstring":""} {"signature":"fun filterAndMapWithLambda ( ) : List < String >","body":"{ return data . filter { it . value % == } . map { it . toString ( ) } }","docstring":""} {"signature":"fun filterAndMapWithLambdaAsSequence ( ) : List < String >","body":"{ return data . asSequence ( ) . filter { it . value % == } . map { it . toString ( ) } . toList ( ) }","docstring":""} {"signature":"fun filterAndMap ( ) : List < String >","body":"{ return data . filter { filterLoad ( it ) } . map { mapLoad ( it ) } }","docstring":""} {"signature":"fun filterAndMapManual ( ) : ArrayList < String >","body":"{ val list = ArrayList < String > ( ) for ( it in data ) { if ( filterLoad ( it ) ) { val value = mapLoad ( it ) list . add ( value ) } } return list }","docstring":""} {"signature":"fun filter ( ) : List < Value >","body":"{ return data . filter { filterLoad ( it ) } }","docstring":""} {"signature":"fun filterManual ( ) : List < Value >","body":"{ val list = ArrayList < Value > ( ) for ( it in data ) { if ( filterLoad ( it ) ) list . add ( it ) } return list }","docstring":""} {"signature":"fun countFilteredManual ( ) : Int","body":"{ var count = for ( it in data ) { if ( filterLoad ( it ) ) count ++ } return count }","docstring":""} {"signature":"fun countFiltered ( ) : Int","body":"{ return data . count { filterLoad ( it ) } }","docstring":""} {"signature":"fun reduce ( ) : Int","body":"{ return data . fold ( ) { acc , it -> if ( filterLoad ( it ) ) acc + else acc } }","docstring":""} {"signature":"override fun putSelector ( type : Type , kotlinType : KotlinType ? , v : InstructionAdapter )","body":"{ value . putSelector ( value . type , value . kotlinType , v ) StackValue . coerce ( value . type , value . kotlinType , castType , underlyingKotlinType ? : castKotlinType , v ) StackValue . coerce ( castType , castKotlinType , type , kotlinType , v ) }","docstring":""} {"signature":"override fun storeSelector ( topOfStackType : Type , topOfStackKotlinType : KotlinType ? , v : InstructionAdapter )","body":"{ value . storeSelector ( topOfStackType , topOfStackKotlinType , v ) }","docstring":""} {"signature":"override fun putReceiver ( v : InstructionAdapter , isRead : Boolean )","body":"{ value . putReceiver ( v , isRead ) }","docstring":""} {"signature":"override fun isNonStaticAccess ( isRead : Boolean ) : Boolean","body":"{ return value . isNonStaticAccess ( isRead ) }","docstring":""} {"signature":"override fun putReceiver ( v : InstructionAdapter , isRead : Boolean )","body":"{ stackValue . putReceiver ( v , isRead ) }","docstring":""} {"signature":"override fun putSelector ( type : Type , kotlinType : KotlinType ? , v : InstructionAdapter )","body":"{ stackValue . putSelector ( type , kotlinType , v ) leaveTasks ( stackValue ) }","docstring":""} {"signature":"override fun putSelector ( type : Type , kotlinType : KotlinType ? , v : InstructionAdapter )","body":"{ lambda ( v ) coerceTo ( type , kotlinType , v ) }","docstring":""} {"signature":"fun foo ( a : A )","body":"{ checkSubtype < Int > ( a . component1 ( ) ) checkSubtype < String > ( a . component2 ( ) ) }","docstring":""} {"signature":"fun buzz ( )","body":"{ }","docstring":""} {"signature":"@ Test fun filenameComponents ( )","body":"{ fun check ( path : String , name : String , nameNoExt : String , extension : String ) { val p = Path ( path ) assertEquals ( name , p . name , \"\" ) assertEquals ( nameNoExt , p . nameWithoutExtension , \"\" ) assertEquals ( extension , p . extension , \"\" ) } check ( path = \"\" , name = \"\" , nameNoExt = \"\" , extension = \"\" ) check ( path = \"\" , name = \"\" , nameNoExt = \"\" , extension = \"\" ) check ( path = \"\" , name = \"\" , nameNoExt = \"\" , extension = \"\" ) check ( path = \"\" , name = \"\" , nameNoExt = \"\" , extension = \"\" ) check ( path = \"\" , name = \"\" , nameNoExt = \"\" , extension = \"\" ) check ( path = \"\" , name = \"\" , nameNoExt = \"\" , extension = \"\" ) check ( path = \"\" , name = \"\" , nameNoExt = \"\" , extension = \"\" ) check ( path = \"\" , name = \"\" , nameNoExt = \"\" , extension = \"\" ) }","docstring":""} {"signature":"@ Test fun invariantSeparators ( )","body":"{ val path = Path ( \"\" ) / \"\" / \"\" assertEquals ( \"\" , path . invariantSeparatorsPathString ) val path2 = Path ( \"\" , \"\" , \"\" ) assertEquals ( \"\" , path2 . invariantSeparatorsPathString ) }","docstring":""} {"signature":"@ Test fun createNewFile ( )","body":"{ val dir = createTempDirectory ( ) . cleanupRecursively ( ) val file = dir / \"\" assertTrue ( file . notExists ( ) ) file . createFile ( ) assertTrue ( file . exists ( ) ) assertTrue ( file . isRegularFile ( ) ) assertFailsWith < FileAlreadyExistsException > { file . createFile ( ) } }","docstring":""} {"signature":"@ Test fun createParentDirectories ( )","body":"{ val dir = createTempDirectory ( ) . cleanupRecursively ( ) val file = dir / \"\" / \"\" / \"\" val parent = file . parent ! ! assertTrue ( file . notExists ( ) ) assertTrue ( parent . notExists ( ) ) val result = file . createParentDirectories ( ) assertTrue ( file . notExists ( ) ) assertTrue ( parent . isDirectory ( ) ) assertEquals ( file , result ) file . createFile ( ) file . createParentDirectories ( ) assertTrue ( file . exists ( ) ) assertTrue ( parent . isDirectory ( ) ) }","docstring":""} {"signature":"@ Test fun createParentDirectoriesRelativePath ( )","body":"{ run { val path = Path ( \"\" ) path . createParentDirectories ( ) assertTrue ( path . toAbsolutePath ( ) . parent ! ! . isDirectory ( ) ) } run { val path = Path ( \"\" ) val parent = path . parent ! ! assertTrue ( parent . notExists ( ) ) parent . cleanupRecursively ( ) path . createParentDirectories ( ) assertTrue ( path . notExists ( ) ) assertTrue ( parent . isDirectory ( ) ) } }","docstring":""} {"signature":"@ Test fun createParentDirectoriesOverExistingSymlink ( )","body":"{ val root = createTempDirectory ( \"\" ) . cleanupRecursively ( ) val dir = ( root / \"\" ) . createDirectory ( ) val link = ( root / \"\" ) . tryCreateSymbolicLinkTo ( dir ) ? : return val file = ( link / \"\" ) file . createParentDirectories ( ) . writeText ( \"\" ) assertTrue ( ( dir / \"\" ) . isRegularFile ( ) ) }","docstring":""} {"signature":"@ Test fun createTempFileDefaultDir ( )","body":"{ val file1 = createTempFile ( ) . cleanup ( ) val file2 = createTempFile ( directory = null ) . cleanup ( ) assertEquals ( file1 . parent , file2 . parent ) }","docstring":""} {"signature":"@ Test fun createTempDirectoryDefaultDir ( )","body":"{ val dir1 = createTempDirectory ( ) . cleanup ( ) val dir2 = createTempDirectory ( directory = null ) . cleanupRecursively ( ) val dir3 = createTempDirectory ( dir2 ) assertEquals ( dir1 . parent , dir2 . parent ) assertNotEquals ( dir2 . parent , dir3 . parent ) }","docstring":""} {"signature":"@ Test fun copyTo ( )","body":"{ val root = createTempDirectory ( \"\" ) . cleanupRecursively ( ) val srcFile = createTempFile ( root , \"\" ) val dstFile = createTempFile ( root , \"\" ) srcFile . writeText ( \"\" ) assertFailsWith < FileAlreadyExistsException > ( \"\" ) { srcFile . copyTo ( dstFile ) } var dst = srcFile . copyTo ( dstFile , overwrite = true ) assertSame ( dst , dstFile ) compareFiles ( srcFile , dst , \"\" ) srcFile . copyTo ( srcFile ) srcFile . copyTo ( srcFile , overwrite = true ) compareFiles ( dst , srcFile , \"\" ) assertTrue ( dstFile . deleteIfExists ( ) ) dst = srcFile . copyTo ( dstFile ) compareFiles ( srcFile , dst , \"\" ) val subDst = dstFile . resolve ( \"\" ) assertFailsWith < FileSystemException > { srcFile . copyTo ( subDst ) } assertFailsWith < FileSystemException > { srcFile . copyTo ( subDst , overwrite = true ) } assertTrue ( dstFile . deleteIfExists ( ) ) assertFailsWith < FileSystemException > { srcFile . copyTo ( subDst ) } dstFile . createDirectory ( ) val child = dstFile . resolve ( \"\" ) . createFile ( ) assertFailsWith < DirectoryNotEmptyException > ( \"\" ) { srcFile . copyTo ( dstFile , overwrite = true ) } child . deleteExisting ( ) srcFile . copyTo ( dstFile , overwrite = true ) assertEquals ( srcFile . readText ( ) , dstFile . readText ( ) , \"\" ) assertTrue ( srcFile . deleteIfExists ( ) ) assertTrue ( dstFile . deleteIfExists ( ) ) assertFailsWith < NoSuchFileException > { srcFile . copyTo ( dstFile ) } srcFile . createDirectory ( ) srcFile . resolve ( \"\" ) . writeText ( \"\" ) dstFile . writeText ( \"\" ) assertFailsWith < FileAlreadyExistsException > ( \"\" ) { srcFile . copyTo ( dstFile ) } srcFile . copyTo ( dstFile , overwrite = true ) assertTrue ( dstFile . isDirectory ( ) ) assertTrue ( dstFile . listDirectoryEntries ( ) . isEmpty ( ) , \"\" ) assertFailsWith < FileAlreadyExistsException > ( \"\" ) { srcFile . copyTo ( dstFile ) } srcFile . copyTo ( dstFile , overwrite = true ) assertTrue ( dstFile . isDirectory ( ) ) assertTrue ( dstFile . listDirectoryEntries ( ) . isEmpty ( ) , \"\" ) dstFile . resolve ( \"\" ) . writeText ( \"\" ) assertFailsWith < DirectoryNotEmptyException > ( \"\" ) { srcFile . copyTo ( dstFile , overwrite = true ) } }","docstring":""} {"signature":"@ Test fun copyToRestrictedReadSource ( )","body":"{ val root = createTempDirectory ( \"\" ) . cleanupRecursively ( ) val srcFile = createTempFile ( root , \"\" ) val dstFile = root . resolve ( \"\" ) withRestrictedRead ( srcFile , alsoReset = listOf ( dstFile ) ) { assertFailsWith < AccessDeniedException > { srcFile . copyTo ( dstFile ) } } val srcDirectory = createTempDirectory ( root , \"\" ) val dstDirectory = root . resolve ( \"\" ) withRestrictedRead ( srcDirectory , alsoReset = listOf ( dstDirectory ) ) { srcDirectory . copyTo ( dstDirectory ) assertFalse ( dstDirectory . isReadable ( ) ) } }","docstring":""} {"signature":"@ Test fun copyToRestrictedWriteDestination ( )","body":"{ val root = createTempDirectory ( \"\" ) . cleanupRecursively ( ) val srcFile = createTempFile ( root , \"\" ) val dstFile = createTempFile ( root , \"\" ) withRestrictedWrite ( dstFile ) { assertFailsWith < FileAlreadyExistsException > { srcFile . copyTo ( dstFile ) } try { srcFile . copyTo ( dstFile , overwrite = true ) assertTrue ( dstFile . isWritable ( ) ) } catch ( _ : AccessDeniedException ) { } } val srcDirectory = createTempDirectory ( root , \"\" ) val dstDirectory = createTempDirectory ( root , \"\" ) withRestrictedWrite ( dstDirectory ) { assertFailsWith < FileAlreadyExistsException > { srcDirectory . copyTo ( dstDirectory ) } srcDirectory . copyTo ( dstDirectory , overwrite = true ) assertTrue ( dstDirectory . isWritable ( ) ) } }","docstring":""} {"signature":"@ Test fun copyToSymlinkDestination ( )","body":"{ val root = createTempDirectory ( \"\" ) . cleanupRecursively ( ) val targetFile = createTempFile ( root , \"\" ) . also { it . writeText ( \"\" ) } val targetDirectory = createTempDirectory ( root , \"\" ) . also { it . resolve ( \"\" ) . createFile ( ) } val srcFile = createTempFile ( root , \"\" ) . also { it . writeText ( \"\" ) } val dstFile = root . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( targetFile ) ? : return assertFailsWith < FileAlreadyExistsException > { srcFile . copyTo ( dstFile ) } assertFailsWith < FileAlreadyExistsException > { srcFile . copyTo ( dstFile , LinkOption . NOFOLLOW_LINKS ) } assertTrue ( dstFile . isSymbolicLink ( ) ) assertEquals ( \"\" , dstFile . readText ( ) ) val srcDirectory = createTempDirectory ( root , \"\" ) val dstDirectory = root . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( targetDirectory ) ? : return assertFailsWith < FileAlreadyExistsException > { srcDirectory . copyTo ( dstDirectory ) } assertFailsWith < FileAlreadyExistsException > { srcDirectory . copyTo ( dstDirectory , LinkOption . NOFOLLOW_LINKS ) } assertTrue ( dstDirectory . isSymbolicLink ( ) ) assertEquals ( \"\" , dstDirectory . listDirectoryEntries ( ) . single ( ) . name ) srcFile . copyTo ( dstFile , overwrite = true ) assertFalse ( dstFile . isSymbolicLink ( ) ) assertEquals ( \"\" , dstFile . readText ( ) ) assertEquals ( \"\" , targetFile . readText ( ) ) dstFile . deleteExisting ( ) dstFile . tryCreateSymbolicLinkTo ( targetFile ) ! ! srcFile . copyTo ( dstFile , StandardCopyOption . REPLACE_EXISTING , LinkOption . NOFOLLOW_LINKS ) assertFalse ( dstFile . isSymbolicLink ( ) ) assertEquals ( \"\" , dstFile . readText ( ) ) assertEquals ( \"\" , targetFile . readText ( ) ) srcDirectory . copyTo ( dstDirectory , overwrite = true ) assertFalse ( dstDirectory . isSymbolicLink ( ) ) assertEquals ( emptyList ( ) , dstDirectory . listDirectoryEntries ( ) ) assertEquals ( \"\" , targetDirectory . listDirectoryEntries ( ) . single ( ) . name ) dstDirectory . deleteExisting ( ) dstDirectory . tryCreateSymbolicLinkTo ( targetDirectory ) ! ! srcDirectory . copyTo ( dstDirectory , StandardCopyOption . REPLACE_EXISTING , LinkOption . NOFOLLOW_LINKS ) assertFalse ( dstDirectory . isSymbolicLink ( ) ) assertEquals ( emptyList ( ) , dstDirectory . listDirectoryEntries ( ) ) assertEquals ( \"\" , targetDirectory . listDirectoryEntries ( ) . single ( ) . name ) }","docstring":""} {"signature":"@ Test fun copyToBrokenSymlinkDestination ( )","body":"{ val root = createTempDirectory ( \"\" ) . cleanupRecursively ( ) val symlinkTarget = root . resolve ( \"\" ) val srcFile = createTempFile ( root , \"\" ) . also { it . writeText ( \"\" ) } val dstFile = root . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( symlinkTarget ) ? : return assertFailsWith < FileAlreadyExistsException > { srcFile . copyTo ( dstFile ) } assertFailsWith < FileAlreadyExistsException > { srcFile . copyTo ( dstFile , LinkOption . NOFOLLOW_LINKS ) } assertTrue ( dstFile . isSymbolicLink ( ) ) assertFailsWith < NoSuchFileException > { dstFile . readText ( ) } val srcDirectory = createTempDirectory ( root , \"\" ) val dstDirectory = root . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( symlinkTarget ) ? : return assertFailsWith < FileAlreadyExistsException > { srcDirectory . copyTo ( dstDirectory ) } assertFailsWith < FileAlreadyExistsException > { srcDirectory . copyTo ( dstDirectory , LinkOption . NOFOLLOW_LINKS ) } assertTrue ( dstDirectory . isSymbolicLink ( ) ) assertFailsWith < FileSystemException > { dstDirectory . listDirectoryEntries ( ) } srcFile . copyTo ( dstFile , overwrite = true ) assertFalse ( dstFile . isSymbolicLink ( ) ) assertEquals ( \"\" , dstFile . readText ( ) ) dstFile . deleteExisting ( ) dstFile . tryCreateSymbolicLinkTo ( symlinkTarget ) ! ! srcFile . copyTo ( dstFile , StandardCopyOption . REPLACE_EXISTING , LinkOption . NOFOLLOW_LINKS ) assertFalse ( dstFile . isSymbolicLink ( ) ) assertEquals ( \"\" , dstFile . readText ( ) ) srcDirectory . copyTo ( dstDirectory , overwrite = true ) assertFalse ( dstDirectory . isSymbolicLink ( ) ) assertEquals ( emptyList ( ) , dstDirectory . listDirectoryEntries ( ) ) dstDirectory . deleteExisting ( ) dstDirectory . tryCreateSymbolicLinkTo ( symlinkTarget ) ! ! srcDirectory . copyTo ( dstDirectory , StandardCopyOption . REPLACE_EXISTING , LinkOption . NOFOLLOW_LINKS ) assertFalse ( dstDirectory . isSymbolicLink ( ) ) assertEquals ( emptyList ( ) , dstDirectory . listDirectoryEntries ( ) ) }","docstring":""} {"signature":"@ Test fun copyToNameWithoutParent ( )","body":"{ val currentDir = Path ( \"\" ) . absolute ( ) val srcFile = createTempFile ( ) . cleanup ( ) val dstFile = createTempFile ( directory = currentDir ) . cleanup ( ) srcFile . writeText ( \"\" , Charsets . UTF_8 ) dstFile . deleteExisting ( ) val dstRelative = Path ( dstFile . name ) srcFile . copyTo ( dstRelative ) assertEquals ( srcFile . readText ( ) , dstFile . readText ( ) ) }","docstring":""} {"signature":"@ Test fun copyToDstLinkPointingToSrc ( )","body":"{ for ( options in listOf ( arrayOf ( ) , arrayOf < CopyOption > ( LinkOption . NOFOLLOW_LINKS ) ) ) { val root = createTempDirectory ( ) . cleanupRecursively ( ) val src = root . resolve ( \"\" ) . createFile ( ) val dstLink = root . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( src ) ? : return assertTrue ( src . isSameFileAs ( dstLink ) ) assertTrue ( dstLink . isSameFileAs ( src ) ) assertFailsWith < FileAlreadyExistsException > { src . copyTo ( dstLink , * options ) } assertTrue ( dstLink . isSymbolicLink ( ) ) } }","docstring":""} {"signature":"@ Test fun copyToDstLinkPointingToSrcOverwrite ( )","body":"{ for ( options in listOf ( arrayOf ( ) , arrayOf < CopyOption > ( LinkOption . NOFOLLOW_LINKS ) ) ) { val root = createTempDirectory ( ) . cleanupRecursively ( ) val src = root . resolve ( \"\" ) . createFile ( ) val dstLink = root . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( src ) ? : return src . copyTo ( dstLink , StandardCopyOption . REPLACE_EXISTING , * options ) assertFalse ( dstLink . isSymbolicLink ( ) ) } }","docstring":""} {"signature":"@ Test fun copyToSrcLinkAndDstLinkPointingToSameFile ( )","body":"{ for ( options in listOf ( arrayOf ( ) , arrayOf < CopyOption > ( LinkOption . NOFOLLOW_LINKS ) ) ) { val root = createTempDirectory ( ) . cleanupRecursively ( ) val original = root . resolve ( \"\" ) . createFile ( ) val srcLink = root . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( original ) ? : return val dstLink = root . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( original ) ? : return assertTrue ( srcLink . isSameFileAs ( dstLink ) ) assertTrue ( dstLink . isSameFileAs ( srcLink ) ) assertFailsWith < FileAlreadyExistsException > { srcLink . copyTo ( dstLink , * options ) } assertTrue ( dstLink . isSymbolicLink ( ) ) } }","docstring":""} {"signature":"@ Test fun copyToSrcLinkAndDstLinkPointingToSameFileOverwrite ( )","body":"{ for ( options in listOf ( arrayOf ( ) , arrayOf < CopyOption > ( LinkOption . NOFOLLOW_LINKS ) ) ) { val root = createTempDirectory ( ) . cleanupRecursively ( ) val original = root . resolve ( \"\" ) . createFile ( ) val srcLink = root . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( original ) ? : return val dstLink = root . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( original ) ? : return srcLink . copyTo ( dstLink , StandardCopyOption . REPLACE_EXISTING , * options ) if ( LinkOption . NOFOLLOW_LINKS in options ) { assertTrue ( dstLink . isSymbolicLink ( ) ) } else { assertFalse ( dstLink . isSymbolicLink ( ) ) } } }","docstring":""} {"signature":"@ Test fun copyToSameLinkDifferentRoute ( )","body":"{ for ( options in listOf ( arrayOf ( ) , arrayOf < CopyOption > ( LinkOption . NOFOLLOW_LINKS ) ) ) { val root = createTempDirectory ( ) . cleanupRecursively ( ) val original = root . resolve ( \"\" ) . createFile ( ) val srcLink = root . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( original ) ? : return val dstLink = root . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( root ) ? . resolve ( \"\" ) ? : return assertTrue ( srcLink . isSameFileAs ( dstLink ) ) assertTrue ( dstLink . isSameFileAs ( srcLink ) ) if ( LinkOption . NOFOLLOW_LINKS in options ) { srcLink . copyTo ( dstLink , * options ) } else { assertFailsWith < FileAlreadyExistsException > { srcLink . copyTo ( dstLink , * options ) } } assertTrue ( dstLink . isSymbolicLink ( ) ) } }","docstring":""} {"signature":"@ Test fun copyToSameLinkDifferentRouteOverwrite ( )","body":"{ for ( options in listOf ( arrayOf ( ) , arrayOf < CopyOption > ( LinkOption . NOFOLLOW_LINKS ) ) ) { val root = createTempDirectory ( ) . cleanupRecursively ( ) val original = root . resolve ( \"\" ) . createFile ( ) val srcLink = root . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( original ) ? : return val dstLink = root . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( root ) ? . resolve ( \"\" ) ? : return if ( LinkOption . NOFOLLOW_LINKS in options ) { srcLink . copyTo ( dstLink , StandardCopyOption . REPLACE_EXISTING , * options ) } else { val error = assertFailsWith < NoSuchFileException > { srcLink . copyTo ( dstLink , StandardCopyOption . REPLACE_EXISTING , * options ) } assertEquals ( srcLink . toString ( ) , error . file ) assertFalse ( srcLink . exists ( LinkOption . NOFOLLOW_LINKS ) ) assertFalse ( dstLink . exists ( LinkOption . NOFOLLOW_LINKS ) ) } } }","docstring":""} {"signature":"@ Test fun copyToSameFileDifferentRoute ( )","body":"{ val root = createTempDirectory ( ) . cleanupRecursively ( ) val src = root . resolve ( \"\" ) . createFile ( ) val dst = root . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( root ) ? . resolve ( \"\" ) ? : return assertTrue ( src . isSameFileAs ( dst ) ) assertTrue ( dst . isSameFileAs ( src ) ) src . copyTo ( dst ) }","docstring":""} {"signature":"@ Test fun copyToSameFileDifferentRouteOverwrite ( )","body":"{ val root = createTempDirectory ( ) . cleanupRecursively ( ) val src = root . resolve ( \"\" ) . createFile ( ) val dst = root . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( root ) ? . resolve ( \"\" ) ? : return src . copyTo ( dst , overwrite = true ) }","docstring":""} {"signature":"@ Test fun moveTo ( )","body":"{ val root = createTempDirectory ( \"\" ) . cleanupRecursively ( ) val original = createTempFile ( root , \"\" ) val srcFile = createTempFile ( root , \"\" ) val dstFile = createTempFile ( root , \"\" ) fun restoreSrcFile ( ) { original . copyTo ( srcFile , overwrite = true ) } original . writeText ( \"\" ) restoreSrcFile ( ) assertFailsWith < FileAlreadyExistsException > ( \"\" ) { srcFile . moveTo ( dstFile ) } var dst = srcFile . moveTo ( dstFile , overwrite = true ) assertSame ( dst , dstFile ) compareFiles ( original , dst , \"\" ) assertTrue ( srcFile . notExists ( ) ) restoreSrcFile ( ) srcFile . moveTo ( srcFile ) srcFile . moveTo ( srcFile , overwrite = true ) compareFiles ( original , srcFile , \"\" ) assertTrue ( dstFile . deleteIfExists ( ) ) dst = srcFile . moveTo ( dstFile ) compareFiles ( original , dst , \"\" ) restoreSrcFile ( ) val subDst = dstFile . resolve ( \"\" ) assertFailsWith < FileSystemException > { srcFile . moveTo ( subDst ) } assertFailsWith < FileSystemException > { srcFile . moveTo ( subDst , overwrite = true ) } assertTrue ( dstFile . deleteIfExists ( ) ) assertFailsWith < FileSystemException > { srcFile . moveTo ( subDst ) } dstFile . createDirectory ( ) val child = dstFile . resolve ( \"\" ) . createFile ( ) assertFailsWith < DirectoryNotEmptyException > ( \"\" ) { srcFile . moveTo ( dstFile , overwrite = true ) } child . deleteExisting ( ) srcFile . moveTo ( dstFile , overwrite = true ) compareFiles ( original , dstFile , \"\" ) assertTrue ( srcFile . notExists ( ) ) assertTrue ( dstFile . deleteIfExists ( ) ) assertFailsWith < NoSuchFileException > { srcFile . moveTo ( dstFile ) } srcFile . createDirectory ( ) srcFile . resolve ( \"\" ) . writeText ( \"\" ) dstFile . writeText ( \"\" ) assertFailsWith < FileAlreadyExistsException > ( \"\" ) { srcFile . moveTo ( dstFile ) } srcFile . moveTo ( dstFile , overwrite = true ) assertTrue ( dstFile . isDirectory ( ) ) assertEquals ( listOf ( dstFile / \"\" ) , dstFile . listDirectoryEntries ( ) , \"\" ) }","docstring":""} {"signature":"private fun compareFiles ( src : Path , dst : Path , message : String ? = null )","body":"{ assertTrue ( dst . exists ( ) ) assertEquals ( src . isRegularFile ( ) , dst . isRegularFile ( ) , message ) assertEquals ( src . isDirectory ( ) , dst . isDirectory ( ) , message ) if ( dst . isRegularFile ( ) ) { assertTrue ( src . readBytes ( ) . contentEquals ( dst . readBytes ( ) ) , message ) } }","docstring":""} {"signature":"@ Test fun fileSize ( )","body":"{ val file = createTempFile ( ) . cleanup ( ) assertEquals ( , file . fileSize ( ) ) file . writeBytes ( ByteArray ( ) ) assertEquals ( , file . fileSize ( ) ) file . appendText ( \"\" , Charsets . US_ASCII ) assertEquals ( , file . fileSize ( ) ) file . deleteExisting ( ) assertFailsWith < NoSuchFileException > { file . fileSize ( ) } }","docstring":""} {"signature":"@ Test fun deleteExisting ( )","body":"{ val file = createTempFile ( ) . cleanup ( ) file . deleteExisting ( ) assertFailsWith < NoSuchFileException > { file . deleteExisting ( ) } val dir = createTempDirectory ( ) . cleanup ( ) dir . deleteExisting ( ) assertFailsWith < NoSuchFileException > { dir . deleteExisting ( ) } }","docstring":""} {"signature":"@ Test fun deleteIfExists ( )","body":"{ val file = createTempFile ( ) . cleanup ( ) assertTrue ( file . deleteIfExists ( ) ) assertFalse ( file . deleteIfExists ( ) ) val dir = createTempDirectory ( ) . cleanup ( ) assertTrue ( dir . deleteIfExists ( ) ) assertFalse ( dir . deleteIfExists ( ) ) }","docstring":""} {"signature":"@ Test fun attributeGettersOnFile ( )","body":"{ val file = createTempFile ( \"\" , \"\" ) . cleanup ( ) assertTrue ( file . exists ( ) ) assertFalse ( file . notExists ( ) ) assertTrue ( file . isRegularFile ( ) ) assertFalse ( file . isDirectory ( ) ) assertFalse ( file . isSymbolicLink ( ) ) assertTrue ( file . isReadable ( ) ) assertTrue ( file . isWritable ( ) ) assertTrue ( file . isSameFileAs ( file ) ) file . isExecutable ( ) file . isHidden ( ) }","docstring":""} {"signature":"@ Test fun attributeGettersOnDirectory ( )","body":"{ val file = createTempDirectory ( \"\" ) . cleanup ( ) assertTrue ( file . exists ( ) ) assertFalse ( file . notExists ( ) ) assertFalse ( file . isRegularFile ( ) ) assertTrue ( file . isDirectory ( ) ) assertFalse ( file . isSymbolicLink ( ) ) assertTrue ( file . isReadable ( ) ) assertTrue ( file . isWritable ( ) ) assertTrue ( file . isSameFileAs ( file ) ) file . isExecutable ( ) file . isHidden ( ) }","docstring":""} {"signature":"@ Test fun attributeGettersOnNonExistentPath ( )","body":"{ val file = createTempDirectory ( ) . cleanup ( ) . resolve ( \"\" ) assertFalse ( file . exists ( ) ) assertTrue ( file . notExists ( ) ) assertFalse ( file . isRegularFile ( ) ) assertFalse ( file . isDirectory ( ) ) assertFalse ( file . isSymbolicLink ( ) ) assertFalse ( file . isReadable ( ) ) assertFalse ( file . isWritable ( ) ) assertTrue ( file . isSameFileAs ( file ) ) file . isExecutable ( ) try { assertFalse ( file . isHidden ( ) ) } catch ( e : IOException ) { } }","docstring":""} {"signature":"@ Test fun readWriteAttributes ( )","body":"{ val file = createTempFile ( ) . cleanup ( ) val modifiedTime = file . getLastModifiedTime ( ) assertEquals ( modifiedTime , file . getAttribute ( \"\" ) ) assertEquals ( modifiedTime , file . getAttribute ( \"\" ) ) assertEquals ( modifiedTime , file . readAttributes < BasicFileAttributes > ( ) . lastModifiedTime ( ) ) assertEquals ( modifiedTime , file . readAttributes ( \"\" ) [ \"\" ] ) assertEquals ( modifiedTime , file . readAttributes ( \"\" ) [ \"\" ] ) assertFailsWith < UnsupportedOperationException > { file . readAttributes < SpecialFileAttributes > ( ) } assertFailsWith < UnsupportedOperationException > { file . readAttributes ( \"\" ) } assertFailsWith < IllegalArgumentException > { file . readAttributes ( \"\" ) } val newTime1 = FileTime . fromMillis ( modifiedTime . toMillis ( ) + ) file . setLastModifiedTime ( newTime1 ) assertEquals ( newTime1 , file . getLastModifiedTime ( ) ) val newTime2 = FileTime . fromMillis ( modifiedTime . toMillis ( ) + * ) file . setAttribute ( \"\" , newTime2 ) assertEquals ( newTime2 , file . getLastModifiedTime ( ) ) val newTime3 = FileTime . fromMillis ( modifiedTime . toMillis ( ) + * ) file . fileAttributesView < BasicFileAttributeView > ( ) . setTimes ( newTime3 , null , null ) assertEquals ( newTime3 , file . getLastModifiedTime ( ) ) assertFailsWith < UnsupportedOperationException > { file . fileAttributesView < SpecialFileAttributesView > ( ) } assertNull ( file . fileAttributesViewOrNull < SpecialFileAttributesView > ( ) ) file . setAttribute ( \"\" , null ) assertEquals ( newTime3 , file . getLastModifiedTime ( ) ) }","docstring":""} {"signature":"@ Test fun links ( )","body":"{ val dir = createTempDirectory ( ) . cleanupRecursively ( ) val original = createTempFile ( dir ) original . writeBytes ( Random . nextBytes ( ) ) val link = try { ( dir / ( \"\" + original . fileName ) ) . createLinkPointingTo ( original ) } catch ( e : IOException ) { println ( \"\" ) return } assertTrue ( link . isRegularFile ( ) ) assertTrue ( link . isRegularFile ( LinkOption . NOFOLLOW_LINKS ) ) assertTrue ( original . isSameFileAs ( link ) ) compareFiles ( original , link ) assertFailsWith < NotLinkException > { link . readSymbolicLink ( ) } }","docstring":""} {"signature":"@ Test fun symlinks ( )","body":"{ val dir = createTempDirectory ( ) . cleanupRecursively ( ) val original = createTempFile ( dir ) original . writeBytes ( Random . nextBytes ( ) ) val symlink = try { ( dir / ( \"\" + original . fileName ) ) . createSymbolicLinkPointingTo ( original ) } catch ( e : IOException ) { println ( \"\" ) return } assertTrue ( symlink . isRegularFile ( ) ) assertFalse ( symlink . isRegularFile ( LinkOption . NOFOLLOW_LINKS ) ) assertTrue ( original . isSameFileAs ( symlink ) ) compareFiles ( original , symlink ) assertEquals ( original , symlink . readSymbolicLink ( ) ) }","docstring":""} {"signature":"@ Test fun directoryEntriesList ( )","body":"{ val dir = createTempDirectory ( ) . cleanupRecursively ( ) assertEquals ( , dir . listDirectoryEntries ( ) . size ) val file = dir . resolve ( \"\" ) . createFile ( ) assertEquals ( listOf ( file ) , dir . listDirectoryEntries ( ) ) val fileTxt = createTempFile ( dir , suffix = \"\" ) assertEquals ( listOf ( fileTxt ) , dir . listDirectoryEntries ( \"\" ) ) assertFailsWith < NotDirectoryException > { file . listDirectoryEntries ( ) } }","docstring":""} {"signature":"@ Test fun directoryEntriesUseSequence ( )","body":"{ val dir = createTempDirectory ( ) . cleanupRecursively ( ) assertEquals ( , dir . useDirectoryEntries { it . toList ( ) } . size ) val file = dir . resolve ( \"\" ) . createFile ( ) assertEquals ( listOf ( file ) , dir . useDirectoryEntries { it . toList ( ) } ) val fileTxt = createTempFile ( dir , suffix = \"\" ) assertEquals ( listOf ( fileTxt ) , dir . useDirectoryEntries ( \"\" ) { it . toList ( ) } ) assertFailsWith < NotDirectoryException > { file . useDirectoryEntries { error ( \"\" ) } } }","docstring":""} {"signature":"@ Test fun directoryEntriesForEach ( )","body":"{ val dir = createTempDirectory ( ) . cleanupRecursively ( ) dir . forEachDirectoryEntry { error ( \"\" ) } val file = createTempFile ( dir ) dir . forEachDirectoryEntry { assertEquals ( file , it ) } val fileTxt = createTempFile ( dir , suffix = \"\" ) dir . forEachDirectoryEntry ( \"\" ) { assertEquals ( fileTxt , it ) } assertFailsWith < NotDirectoryException > { file . forEachDirectoryEntry { error ( \"\" ) } } }","docstring":""} {"signature":"private fun testRelativeTo ( expected : String ? , path : String , base : String )","body":"= testRelativeTo ( expected ? . let { Path ( it ) } , Path ( path ) , Path ( base ) )","docstring":""} {"signature":"private fun testRelativeTo ( expected : String , path : Path , base : Path )","body":"= testRelativeTo ( Path ( expected ) , path , base )","docstring":""} {"signature":"private fun testRelativeTo ( expected : Path ? , path : Path , base : Path )","body":"{ val context = \"\" if ( expected != null ) { assertEquals ( expected , path . relativeTo ( base ) , context ) } else { val e = assertFailsWith < IllegalArgumentException > ( context ) { path . relativeTo ( base ) } val message = assertNotNull ( e . message ) assertTrue ( path . toString ( ) in message , message ) assertTrue ( base . toString ( ) in message , message ) } assertEquals ( expected , path . relativeToOrNull ( base ) , context ) assertEquals ( expected ? : path , path . relativeToOrSelf ( base ) , context ) }","docstring":""} {"signature":"@ Test fun relativeToRooted ( )","body":"{ val file1 = \"\" val file2 = \"\" testRelativeTo ( \"\" , file1 , file2 ) val file3 = \"\" testRelativeTo ( \"\" , file1 , file3 ) testRelativeTo ( \"\" , file3 , file1 ) val file4 = \"\" testRelativeTo ( \"\" , file1 , file4 ) testRelativeTo ( \"\" , file4 , file1 ) testRelativeTo ( \"\" , file3 , file4 ) testRelativeTo ( \"\" , file4 , file3 ) val file5 = \"\" testRelativeTo ( \"\" , file3 , file5 ) testRelativeTo ( \"\" , file5 , file3 ) testRelativeTo ( \"\" , file4 , file5 ) testRelativeTo ( \"\" , file5 , file4 ) if ( isBackslashSeparator ) { val file6 = \"\" val file7 = \"\" testRelativeTo ( \"\" , file6 , file7 ) testRelativeTo ( \"\" , file7 , file6 ) val file8 = \"\"\"\"\"\" val file9 = \"\"\"\"\"\" testRelativeTo ( \"\" , file8 , file9 ) testRelativeTo ( \"\" , file9 , file8 ) } if ( isCaseInsensitiveFileSystem ) { testRelativeTo ( \"\" , \"\" , \"\" ) } }","docstring":""} {"signature":"@ Test fun relativeToRelative ( )","body":"{ val nested = Path ( \"\" ) val base = Path ( \"\" ) testRelativeTo ( \"\" , nested , base ) testRelativeTo ( \"\" , base , nested ) val empty = Path ( \"\" ) val current = Path ( \"\" ) val parent = Path ( \"\" ) val outOfRoot = Path ( \"\" ) testRelativeTo ( \"\" , outOfRoot , empty ) testRelativeTo ( \"\" , outOfRoot , base ) testRelativeTo ( \"\" , outOfRoot , parent ) testRelativeTo ( \"\" , parent , outOfRoot ) val root = Path ( \"\" ) val files = listOf ( nested , base , empty , outOfRoot , current , parent ) val bases = listOf ( nested , base , empty , current ) for ( file in files ) testRelativeTo ( \"\" , file , file ) for ( file in files ) { @ Suppress ( \"\" ) for ( base in bases ) { val rootedFile = root . resolve ( file ) val rootedBase = root . resolve ( base ) assertEquals ( rootedFile . relativeTo ( rootedBase ) , file . relativeTo ( base ) , \"\" ) } } }","docstring":""} {"signature":"@ Test fun relativeToFails ( )","body":"{ val absolute = Path ( \"\" ) val relative = Path ( \"\" ) val networkShare1 = Path ( \"\"\"\"\"\" ) val networkShare2 = Path ( \"\"\"\"\"\" ) val allFiles = listOf ( absolute , relative ) + if ( isBackslashSeparator ) listOf ( networkShare1 , networkShare2 ) else emptyList ( ) for ( file in allFiles ) { for ( base in allFiles ) { if ( file != base ) testRelativeTo ( null , file , base ) } } if ( isBackslashSeparator ) { testRelativeTo ( null , \"\" , \"\" ) } testRelativeTo ( null , \"\" , \"\" ) testRelativeTo ( null , \"\" , \"\" ) }","docstring":""} {"signature":"@ Test fun relativeTo ( )","body":"{ testRelativeTo ( \"\" , \"\" , \"\" ) testRelativeTo ( \"\" , \"\" , \"\" ) testRelativeTo ( \"\" , \"\" , \"\" ) testRelativeTo ( \"\" , \"\" , \"\" ) testRelativeTo ( \"\" , \"\" , \"\" ) testRelativeTo ( null , \"\" , \"\" ) }","docstring":""} {"signature":"@ Test fun absolutePaths ( )","body":"{ val relative = Path ( \"\" ) assertTrue ( relative . absolute ( ) . isAbsolute ) assertEquals ( relative . absolute ( ) . pathString , relative . absolutePathString ( ) ) }","docstring":""} {"signature":"override fun isApplicable ( element : FirSimpleFunction , source : KtSourceElement ) : Boolean","body":"= source . kind !is KtFakeSourceElementKind","docstring":""} {"signature":"override fun checkPsi ( element : FirSimpleFunction , source : KtPsiSourceElement , psi : KtFunction , context : CheckerContext , reporter : DiagnosticReporter )","body":"{ val typeParamsNode = psi . typeParameterList val nameNode = psi . nameIdentifier if ( typeParamsNode != null && nameNode != null && typeParamsNode . startOffset > nameNode . startOffset ) { reporter . reportOn ( source , FirErrors . DEPRECATED_TYPE_PARAMETER_SYNTAX , context ) } }","docstring":""} {"signature":"override fun checkLightTree ( element : FirSimpleFunction , source : KtLightSourceElement , context : CheckerContext , reporter : DiagnosticReporter )","body":"{ val typeParamsNode = source . treeStructure . typeParametersList ( source . lighterASTNode ) val nameNode = source . treeStructure . nameIdentifier ( source . lighterASTNode ) if ( typeParamsNode != null && nameNode != null && typeParamsNode . startOffset > nameNode . startOffset ) { reporter . reportOn ( source , FirErrors . DEPRECATED_TYPE_PARAMETER_SYNTAX , context ) } }","docstring":""} {"signature":"internal fun PrettyPrinter . renderFe10Annotations ( annotations : Annotations , isSingleLineAnnotations : Boolean , renderAnnotationWithShortNames : Boolean , analysisContext : Fe10AnalysisContext , predicate : ( ClassId ) -> Boolean = { true } )","body":"{ val separator = if ( isSingleLineAnnotations ) \"\" else \"\" for ( annotation in annotations ) { val annotationClass = annotation . annotationClass ? : continue val classId = annotationClass . classId if ( classId != null && ! predicate ( classId ) ) { continue } if ( annotationClass . fqNameSafe != StandardNames . FqNames . parameterName ) { append ( '' ) val rendered = if ( renderAnnotationWithShortNames ) annotation . fqName ? . shortName ( ) ? . render ( ) else annotation . fqName ? . render ( ) append ( rendered ? : \"\" ) val valueArguments = annotation . allValueArguments . entries . sortedBy { it . key . asString ( ) } printCollectionIfNotEmpty ( valueArguments , separator = \"\" , prefix = \"\" , postfix = \"\" ) { ( name , value ) -> append ( name . render ( ) ) append ( \"\" ) append ( value . toKtAnnotationValue ( analysisContext ) . renderAsSourceCode ( ) ) } append ( separator ) } } }","docstring":""} {"signature":"fun registerDeclarationNativeImplementation ( file : IrFile , declaration : IrDeclaration )","body":"{ if ( ! declaration . hasJsPolyfill ( ) ) return val declarations = polyfillsPerFile [ file ] ? : hashSetOf ( ) declarations . add ( declaration ) polyfillsPerFile [ file ] = declarations }","docstring":""} {"signature":"fun saveOnlyIntersectionOfNextDeclarationsFor ( file : IrFile , declarations : Set < IrDeclaration > )","body":"{ val polyfills = polyfillsPerFile [ file ] ? : return polyfillsPerFile [ file ] = polyfills . intersect ( declarations ) . toHashSet ( ) }","docstring":""} {"signature":"fun getAllPolyfillsFor ( file : IrFile ) : List < JsStatement >","body":"= polyfillsPerFile [ file ] . orEmpty ( ) . asImplementationList ( )","docstring":""} {"signature":"private fun Iterable < IrDeclaration > . asImplementationList ( )","body":"= asSequence ( ) . asImplementationList ( )","docstring":""} {"signature":"@ Suppress ( \"\" ) private fun Sequence < IrDeclaration > . asImplementationList ( ) : List < JsStatement >","body":"{ return map { it to it . getAnnotation ( JsAnnotations . JsPolyfillFqn ) ! ! . getValueArgument ( ) ! ! } . distinctBy { ( it . second as IrConst < String > ) . value } . flatMap { ( container , polyfill ) -> translateJsCodeIntoStatementList ( polyfill , null , container ) . orEmpty ( ) } . toList ( ) }","docstring":""} {"signature":"inline fun foo ( )","body":"= ( object : II { } ) . ok ( )","docstring":""} {"signature":"fun ok ( )","body":"= \"\"","docstring":""} {"signature":"inline fun bar ( )","body":"= foo ( )","docstring":""} {"signature":"fun box ( )","body":"= bar ( )","docstring":""} {"signature":"fun useImplicit ( )","body":"{ println ( use ( getRandomEnumEntry ( ) ) ) }","docstring":""} {"signature":"override fun toString ( ) : String","body":"= value3","docstring":""} {"signature":"fun box ( )","body":"= X . B . value","docstring":""} {"signature":"public fun < T > yBegin ( column : ColumnReference < T > ) : PositionalMapping < T >","body":"{ return addPositionalMapping < T > ( Y_BEGIN , column . name ( ) , null ) }","docstring":"/**\n * Maps the `yBegin` aesthetic to a data column by [ColumnReference].\n *\n * @param column the data column to be mapped.\n * @return a [PositionalMapping] object representing the mapping.\n */"} {"signature":"public fun < T > yBegin ( column : KProperty < T > ) : PositionalMapping < T >","body":"{ return addPositionalMapping < T > ( Y_BEGIN , column . name , null ) }","docstring":"/**\n * Maps the `yBegin` aesthetic to a data column by [KProperty].\n *\n * @param column the data column to be mapped.\n * @return a [PositionalMapping] object representing the mapping.\n */"} {"signature":"public fun yBegin ( column : String ) : PositionalMapping < Any ? >","body":"{ return addPositionalMapping ( Y_BEGIN , column , null ) }","docstring":"/**\n * Maps the `yBegin` aesthetic to a data column by [String].\n *\n * @param column the data column to be mapped.\n * @return a [PositionalMapping] object representing the mapping.\n */"} {"signature":"public fun < T > yBegin ( values : Iterable < T > ) : PositionalMapping < T >","body":"{ return addPositionalMapping < T > ( Y_BEGIN , values . toList ( ) , null , null ) }","docstring":"/**\n * Maps the `yBegin` aesthetic to iterable of values.\n *\n * @param values the iterable of values to be mapped.\n * @return a [PositionalMapping] object representing the mapping.\n */"} {"signature":"public fun < T > yBegin ( values : DataColumn < T > ) : PositionalMapping < T >","body":"{ return addPositionalMapping < T > ( Y_BEGIN , values , null ) }","docstring":"/**\n * Maps the `yBegin` aesthetic to a data column.\n *\n * @param values the data column to be mapped.\n * @return a [PositionalMapping] object representing the mapping.\n */"} {"signature":"@ Test fun addition ( )","body":"{ println ( + ) }","docstring":""} {"signature":"@ Test fun multiplication ( )","body":"{ println ( * ) }","docstring":""} {"signature":"@ Test fun subtraction ( )","body":"{ println ( - ) }","docstring":""} {"signature":"@ Test fun division ( )","body":"{ println ( / ) }","docstring":""} {"signature":"private fun TypeValueModel . isLibReference ( ) : Boolean","body":"{ return fqName ? . isTsStdlibPrefixed ( ) == true }","docstring":""} {"signature":"private fun HeritageModel . isLibReference ( ) : Boolean","body":"{ return value . isLibReference ( ) }","docstring":""} {"signature":"private fun NameEntity . fqLib ( ) : NameEntity","body":"{ return TSLIBROOT . appendLeft ( this ) }","docstring":""} {"signature":"private fun String . fqLib ( ) : NameEntity","body":"{ return IdentifierEntity ( this ) . fqLib ( ) }","docstring":""} {"signature":"private fun TypeValueModel . createStdType ( name : String ) : TypeValueModel","body":"{ val nameEntity = IdentifierEntity ( name ) return copy ( value = nameEntity , params = emptyList ( ) , fqName = nameEntity . fqLib ( ) ) }","docstring":""} {"signature":"private fun TypeValueModel . resolveAsSubstitution ( ) : TypeValueModel ?","body":"{ val isLibReference = isLibReference ( ) return if ( value == SubstitutedEntities . NON_NULLABLE . value || value == SubstitutedEntities . EXCLUDE . value || value == SubstitutedEntities . REQUIRED . value || value == SubstitutedEntities . OBJECT . value ) { if ( isLibReference ) { createStdType ( \"\" ) } else null } else if ( value == SubstitutedEntities . READONLY_ARRAY . value ) { if ( isLibReference ) { val fqName = \"\" . fqLib ( ) copy ( value = fqName , fqName = fqName ) } else null } else if ( value == SubstitutedEntities . TEMPLATE_STRINGS_ARRAY . value ) { val fqName = \"\" . fqLib ( ) if ( isLibReference ) { val stringFqName = \"\" . fqLib ( ) copy ( value = fqName , fqName = fqName , params = listOf ( TypeParameterModel ( TypeValueModel ( value = stringFqName , fqName = stringFqName , params = emptyList ( ) , metaDescription = null , nullable = false ) , emptyList ( ) ) ) ) } else null } else null }","docstring":""} {"signature":"@ Suppress ( \"\" ) private fun ClassLikeModel . convertToTypeAlias ( forbiddenParent : HeritageModel ) : TypeAliasModel","body":"{ return TypeAliasModel ( name = name , typeParameters = typeParameters . map { it . copy ( constraints = emptyList ( ) ) } , visibilityModifier = VisibilityModifierModel . DEFAULT , comment = null , typeReference = forbiddenParent . value . copy ( params = forbiddenParent . typeParams . map { TypeParameterModel ( it , emptyList ( ) ) } ) ) }","docstring":""} {"signature":"override fun lowerFunctionModel ( ownerContext : NodeOwner < FunctionModel > , parentModule : ModuleModel ) : FunctionModel","body":"{ val declaration = ownerContext . node val declarationResolved = declaration . extend ? . let { extendedInterface -> var commentResolved = declaration . comment val extendResolved = substituteInlines . get ( extendedInterface . name ) ? . let { substitutedName -> val comment = declaration . comment commentResolved = when ( comment ) { is SimpleCommentEntity -> SimpleCommentEntity ( \"\" ) else -> comment } extendedInterface . copy ( name = IdentifierEntity ( substitutedName ) ) } ? : extendedInterface declaration . copy ( extend = extendResolved , comment = commentResolved ) } ? : declaration return super . lowerFunctionModel ( ownerContext . copy ( node = declarationResolved ) , parentModule ) }","docstring":""} {"signature":"override fun lowerTopLevelModel ( ownerContext : NodeOwner < TopLevelModel > , parentModule : ModuleModel ) : TopLevelModel ?","body":"{ val declaration = ownerContext . node val declarationResolved = if ( declaration is ClassLikeModel ) { declaration . parentEntities . firstOrNull { parentEntity -> parentEntity . isLibReference ( ) && stdLibFinalEntities . contains ( parentEntity . value . value ) } ? . let { forbiddenParent -> declaration . convertToTypeAlias ( forbiddenParent ) } } else { null } ? : declaration return super . lowerTopLevelModel ( ownerContext . copy ( node = declarationResolved ) , parentModule ) }","docstring":""} {"signature":"override fun lowerTypeValueModel ( ownerContext : NodeOwner < TypeValueModel > ) : TypeValueModel","body":"{ val declaration = ownerContext . node return declaration . resolveAsSubstitution ( ) ? . let { resolved -> super . lowerTypeValueModel ( ownerContext . copy ( node = resolved ) ) } ? : super . lowerTypeValueModel ( ownerContext ) }","docstring":""} {"signature":"override fun lower ( module : ModuleModel ) : ModuleModel","body":"{ return SubstituteLowering ( ) . lowerRoot ( module , NodeOwner ( module , null ) ) }","docstring":""} {"signature":"private fun test ( node : Foo < * > )","body":"{ node . data . get ( MyEnum . EnumEntry ) val map = node . data map . get ( MyEnum . EnumEntry ) }","docstring":""} {"signature":"private fun test ( node : FooEnumMap < * > )","body":"{ node . data . get ( MyEnum . EnumEntry ) val map = node . data map . get ( MyEnum . EnumEntry ) }","docstring":""} {"signature":"private fun test ( node : Foo2 < * > )","body":"{ node . data . get ( MyEnum . EnumEntry ) val map = node . data map . get ( MyEnum . EnumEntry ) }","docstring":""} {"signature":"fun test3 ( node : Foo3 < * > )","body":"{ node . data . get ( C ) }","docstring":""} {"signature":"fun box ( u : Int )","body":"{ val x : A ? = A ( ) val y : A ? if ( u == ) { y = x } else { y = null } y ! ! }","docstring":""} {"signature":"suspend fun < S > GenericController < S > . yieldAll ( s : Collection < S > ) : String","body":"= \"\"","docstring":""} {"signature":"suspend fun < S > GenericController < S > . yieldAll ( s : Set < S > ) : Int","body":"= ","docstring":""} {"signature":"fun < T , R > generate ( g : suspend GenericController < T > . ( ) -> R ) : Pair < T , R >","body":"= TODO ( )","docstring":""} {"signature":"fun < X > setOf ( vararg x : X ) : Set < X >","body":"= TODO ( )","docstring":""} {"signature":"fun < X > listOf ( vararg x : X ) : List < X >","body":"= TODO ( )","docstring":""} {"signature":"override fun loadProcessors ( ) : LoadedProcessors","body":"{ this . processorLoader = EfficientProcessorLoader ( options , logger ) return processorLoader ! ! . loadProcessors ( ) }","docstring":""} {"signature":"override fun analysisCompleted ( project : Project , module : ModuleDescriptor , bindingTrace : BindingTrace , files : Collection < KtFile > ) : AnalysisResult ?","body":"{ try { return super . analysisCompleted ( project , module , bindingTrace , files ) } finally { processorLoader ? . close ( ) clearJavacZipCaches ( ) } }","docstring":""} {"signature":"private fun clearJavacZipCaches ( )","body":"{ try { val zipFileIndexCacheClass = Class . forName ( \"\" ) val zipFileIndexCacheInstance = zipFileIndexCacheClass . getMethod ( \"\" ) . invoke ( null ) zipFileIndexCacheClass . getMethod ( \"\" ) . invoke ( zipFileIndexCacheInstance ) } catch ( e : Throwable ) { } }","docstring":""} {"signature":"private fun setAnnotationProcessingComplete ( ) : Boolean","body":"{ if ( annotationProcessingComplete ) return true annotationProcessingComplete = true return false }","docstring":""} {"signature":"override fun doAnalysis ( project : Project , module : ModuleDescriptor , projectContext : ProjectContext , files : Collection < KtFile > , bindingTrace : BindingTrace , componentProvider : ComponentProvider ) : AnalysisResult ?","body":"{ if ( options . mode == APT_ONLY ) { return AnalysisResult . EMPTY } return super . doAnalysis ( project , module , projectContext , files , bindingTrace , componentProvider ) }","docstring":""} {"signature":"override fun analysisCompleted ( project : Project , module : ModuleDescriptor , bindingTrace : BindingTrace , files : Collection < KtFile > ) : AnalysisResult ?","body":"{ if ( setAnnotationProcessingComplete ( ) ) return null fun doNotGenerateCode ( ) = AnalysisResult . success ( BindingContext . EMPTY , module , shouldGenerateCode = false ) logger . info { \"\" } val bindingContext = bindingTrace . bindingContext if ( options . mode . generateStubs ) { logger . info { \"\" + files . map { it . virtualFile ? . name ? : \"\" } } contextForStubGeneration ( project , module , bindingContext , files . toList ( ) ) . use { context -> generateKotlinSourceStubs ( context ) } } if ( ! options . mode . runAnnotationProcessing ) return doNotGenerateCode ( ) val processors = loadProcessors ( ) if ( processors . processors . isEmpty ( ) ) return if ( options . mode != WITH_COMPILATION ) doNotGenerateCode ( ) else null val kaptContext = KaptContext ( options , false , logger ) fun handleKaptError ( error : KaptError ) : AnalysisResult { val cause = error . cause if ( cause != null ) { kaptContext . logger . exception ( cause ) } return AnalysisResult . compilationError ( bindingTrace . bindingContext ) } try { runAnnotationProcessing ( kaptContext , processors ) } catch ( error : KaptBaseError ) { val kind = when ( error . kind ) { KaptBaseError . Kind . EXCEPTION -> KaptError . Kind . EXCEPTION KaptBaseError . Kind . ERROR_RAISED -> KaptError . Kind . ERROR_RAISED } val cause = error . cause return handleKaptError ( if ( cause != null ) KaptError ( kind , cause ) else KaptError ( kind ) ) } catch ( error : KaptError ) { return handleKaptError ( error ) } catch ( thr : Throwable ) { return AnalysisResult . internalError ( bindingTrace . bindingContext , thr ) } finally { kaptContext . close ( ) } return if ( options . mode != WITH_COMPILATION ) { doNotGenerateCode ( ) } else { AnalysisResult . RetryWithAdditionalRoots ( bindingTrace . bindingContext , module , listOf ( options . sourcesOutputDir ) , listOfNotNull ( options . sourcesOutputDir , options . getKotlinGeneratedSourcesDirectory ( ) ) , addToEnvironment = true ) } }","docstring":""} {"signature":"private fun runAnnotationProcessing ( kaptContext : KaptContext , processors : LoadedProcessors )","body":"{ if ( ! options . mode . runAnnotationProcessing ) return val javaSourceFiles = options . collectJavaSourceFiles ( kaptContext . sourcesToReprocess ) logger . info { \"\" + javaSourceFiles . joinToString { it . normalize ( ) . absolutePath } } val ( annotationProcessingTime ) = measureTimeMillis { kaptContext . doAnnotationProcessing ( javaSourceFiles , processors . processors ) } logger . info { \"\" } if ( options . detectMemoryLeaks != DetectMemoryLeaksMode . NONE ) { MemoryLeakDetector . add ( processors . classLoader ) val isParanoid = options . detectMemoryLeaks == DetectMemoryLeaksMode . PARANOID val ( leakDetectionTime , leaks ) = measureTimeMillis { MemoryLeakDetector . process ( isParanoid ) } logger . info { \"\" } for ( leak in leaks ) { logger . warn ( buildString { appendLine ( \"\" ) appendLine ( \"\" ) append ( leak . description ) } ) } } }","docstring":""} {"signature":"private fun contextForStubGeneration ( project : Project , module : ModuleDescriptor , bindingContext : BindingContext , files : List < KtFile > ) : KaptContextForStubGeneration","body":"{ val builderFactory = OriginCollectingClassBuilderFactory ( ClassBuilderMode . KAPT3 ) val configuration = compilerConfiguration . copy ( ) . apply { put ( JVMConfigurationKeys . DO_NOT_CLEAR_BINDING_CONTEXT , true ) } val targetId = TargetId ( name = configuration [ CommonConfigurationKeys . MODULE_NAME ] ? : module . name . asString ( ) , type = \"\" ) val generationState = GenerationState . Builder ( project , builderFactory , module , bindingContext , configuration ) . targetId ( targetId ) . build ( ) val ( classFilesCompilationTime ) = measureTimeMillis { KotlinCodegenFacade . compileCorrectFiles ( files , generationState , JvmIrCodegenFactory ( configuration , configuration [ CLIConfigurationKeys . PHASE_CONFIG ] ) ) } val compiledClasses = builderFactory . compiledClasses val origins = builderFactory . origins logger . info { \"\" } logger . info { \"\" + compiledClasses . joinToString { it . name } } return KaptContextForStubGeneration ( options , false , logger , compiledClasses , origins , generationState ) }","docstring":""} {"signature":"private fun generateKotlinSourceStubs ( kaptContext : KaptContextForStubGeneration )","body":"{ val converter = ClassFileToSourceStubConverter ( kaptContext , generateNonExistentClass = true ) val ( stubGenerationTime , kaptStubs ) = measureTimeMillis { converter . convert ( ) } logger . info { \"\" } logger . info { \"\" + kaptStubs . joinToString { it . file . sourcefile . name } } saveStubs ( kaptContext , kaptStubs , logger . messageCollector ) saveIncrementalData ( kaptContext , logger . messageCollector , converter ) }","docstring":""} {"signature":"protected open fun saveStubs ( kaptContext : KaptContextForStubGeneration , stubs : List < KaptStub > , messageCollector : MessageCollector , )","body":"{ val reportOutputFiles = kaptContext . generationState . configuration . getBoolean ( CommonConfigurationKeys . REPORT_OUTPUT_FILES ) val outputFiles = if ( reportOutputFiles ) kaptContext . generationState . factory . asList ( ) . associateBy { it . relativePath . substringBeforeLast ( \"\" , missingDelimiterValue = \"\" ) } else null for ( kaptStub in stubs ) { val stub = kaptStub . file val className = ( stub . defs . first { it is JCTree . JCClassDecl } as JCTree . JCClassDecl ) . simpleName . toString ( ) val packageName = stub . getPackageNameJava9Aware ( ) ? . toString ( ) ? : \"\" val packageDir = if ( packageName . isEmpty ( ) ) options . stubsOutputDir else File ( options . stubsOutputDir , packageName . replace ( '' , '' ) ) packageDir . mkdirs ( ) val sourceFile = File ( packageDir , \"\" ) val classFilePathWithoutExtension = if ( packageName . isEmpty ( ) ) { className } else { \"\" } fun reportStubsOutputForIC ( generatedFile : File ) { if ( ! reportOutputFiles ) return if ( classFilePathWithoutExtension == \"\" ) return val sourceFiles = ( outputFiles ? . get ( classFilePathWithoutExtension ) ? : error ( \"\" ) ) . sourceFiles messageCollector . report ( OUTPUT , OutputMessageUtil . formatOutputMessage ( sourceFiles , generatedFile ) ) } reportStubsOutputForIC ( sourceFile ) sourceFile . writeText ( stub . prettyPrint ( kaptContext . context ) ) kaptStub . writeMetadataIfNeeded ( forSource = sourceFile , :: reportStubsOutputForIC ) } }","docstring":""} {"signature":"protected open fun saveIncrementalData ( kaptContext : KaptContextForStubGeneration , messageCollector : MessageCollector , converter : ClassFileToSourceStubConverter )","body":"{ val incrementalDataOutputDir = options . incrementalDataOutputDir ? : return val reportOutputFiles = kaptContext . generationState . configuration . getBoolean ( CommonConfigurationKeys . REPORT_OUTPUT_FILES ) kaptContext . generationState . factory . writeAll ( incrementalDataOutputDir , if ( ! reportOutputFiles ) null else fun ( sources : List < File > , output : File ) { messageCollector . report ( OUTPUT , OutputMessageUtil . formatOutputMessage ( sources , output ) ) } ) }","docstring":""} {"signature":"protected abstract fun loadProcessors ( ) : LoadedProcessors","body":"protected abstract fun loadProcessors ( ) : LoadedProcessors","docstring":""} {"signature":"inline fun < T > measureTimeMillis ( block : ( ) -> T ) : Pair < Long , T >","body":"{ val start = System . currentTimeMillis ( ) val result = block ( ) return Pair ( System . currentTimeMillis ( ) - start , result ) }","docstring":""} {"signature":"fun foo ( a : Int , b : Int ) : Int","body":"= a + b * ","docstring":""} {"signature":"fun box ( ) : String","body":"{ val array = Array ( ) { } val array1 = Array ( ) { } var length = array . size - var sum = array . forEach { sum += it } for ( i in array . indices ) { array [ i ] = } for ( i in until array . size ) { array [ i ] = } for ( i in array . size - downTo ) { array [ i ] = } for ( it in array ) { sum += it } for ( i in .. array . size - step ) { array [ i ] = } for ( i in until array . size step ) { array [ i ] = } for ( i in array . indices step ) { array [ i ] = } for ( i in array . size - downTo step ) { array [ i ] = } for ( ( index , value ) in array . withIndex ( ) ) { array [ index ] = } for ( ( i , v ) in ( .. array . size - step ) . withIndex ( ) ) { array [ v ] = array [ i ] = } for ( i in array . reversed ( ) ) { sum += i } for ( i in ( .. array . size - ) . reversed ( ) ) { array [ i ] = } for ( i in until array . size ) { array [ i ] = for ( j in until array1 . size ) { array1 [ j ] = array [ i ] } } val size = array . size - val size1 = size for ( i in .. size1 ) { foo ( array [ i ] , array [ i ] ) } for ( i in .. array . size - ) { array [ i + ] = array [ i ] } if ( array . toList ( ) != listOf ( , , , , , , , , , ) ) return \"\" if ( array1 . toList ( ) != listOf ( , , ) ) return \"\" return \"\" }","docstring":""} {"signature":"@ Test fun testCancelInCollect ( )","body":"= runTest ( expected = { it is CancellationException } ) { expect ( ) flow { expect ( ) emit ( ) expect ( ) hang { finish ( ) } } . idScoped ( ) . collect { value -> expect ( ) assertEquals ( , value ) kotlin . coroutines . coroutineContext . cancel ( ) expect ( ) } expectUnreached ( ) }","docstring":""} {"signature":"@ Test fun testCancelInFlow ( )","body":"= runTest ( expected = { it is CancellationException } ) { expect ( ) flow { expect ( ) emit ( ) kotlin . coroutines . coroutineContext . cancel ( ) expect ( ) } . idScoped ( ) . collect { value -> finish ( ) assertEquals ( , value ) } expectUnreached ( ) }","docstring":""} {"signature":"private fun < T > Flow < T > . idScoped ( ) : Flow < T >","body":"= flow { coroutineScope { val channel = produce { collect { send ( it ) } } channel . consumeEach { emit ( it ) } } }","docstring":"/**\n * This flow should be \"identity\" function with respect to cancellation.\n */"} {"signature":"override fun report ( message : ( ) -> String , severity : ICReporter . ReportSeverity )","body":"{ buildReporter . report ( { \"\" } , severity ) }","docstring":""} {"signature":"fun reportVerboseWithLimit ( maxLength : Int = , message : ( ) -> String )","body":"{ debug { message ( ) . let { if ( it . length > maxLength ) { it . substring ( , maxLength ) + \"\" } else it } } }","docstring":""} {"signature":"inline fun < reified T > baz ( value : T ) : String","body":"= \"\" + value","docstring":""} {"signature":"fun test ( ) : String","body":"{ val f : ( Any ) -> String = :: baz return f ( ) }","docstring":""} {"signature":"public inline fun < reified T > Foo . foo ( value : T ) : String","body":"= log + value","docstring":""} {"signature":"public inline fun < reified T > bar ( value : T ) : String","body":"= log + value","docstring":""} {"signature":"inline fun < reified T : String > qux ( value : T ) : String","body":"= \"\" + value","docstring":""} {"signature":"fun test4 ( ) : String","body":"{ val c = C ( ) val cr : ( String ) -> String = c :: qux return cr ( \"\" ) }","docstring":""} {"signature":"inline fun < reified T : Any > ( ( Any ) -> String ) . cux ( value : T ) : String","body":"= this ( value )","docstring":""} {"signature":"fun test5 ( ) : String","body":"{ val foo : ( Any ) -> String = ( { b : Any -> val a : ( Any ) -> String = :: baz a ( b ) } ) :: cux return foo ( ) }","docstring":""} {"signature":"inline fun < reified T , K , reified S > bak ( value1 : T , value2 : K , value3 : S ) : String","body":"= \"\" + value1 + value2 + value3","docstring":""} {"signature":"fun test6 ( ) : String","body":"{ val f : ( Any , Int , String ) -> String = :: bak return f ( , , \"\" ) }","docstring":""} {"signature":"inline fun < reified T , K > bal ( value1 : Array < K > , value2 : Array < T > ) : String","body":"= \"\" + value1 . joinToString ( ) + value2 . joinToString ( )","docstring":""} {"signature":"fun test7 ( ) : String","body":"{ val f : ( Array < Any > , Array < Int > ) -> String = :: bal return f ( arrayOf ( \"\" , \"\" ) , arrayOf ( , ) ) }","docstring":""} {"signature":"public inline fun < reified T > E < T > . foo ( value : T ) : String","body":"= \"\" + value","docstring":""} {"signature":"inline fun < reified T2 > foo ( x : T1 , y : T2 ) : Any ?","body":"= \"\" + x + y","docstring":""} {"signature":"inline fun < reified T , K > bam ( value1 : K ? , value2 : T ? ) : String","body":"= \"\" + value1 . toString ( ) + value2 . toString ( )","docstring":""} {"signature":"fun < T > test10 ( ) : String","body":"{ val f : ( T ? , String ? ) -> String = :: bam return f ( null , \"\" ) }","docstring":""} {"signature":"inline fun < T > test11Impl ( ) : String","body":"{ val f : ( T ? , String ? ) -> String = :: bam return f ( null , \"\" ) }","docstring":""} {"signature":"fun < T > test11 ( )","body":"= test11Impl < T > ( )","docstring":""} {"signature":"fun box ( ) : String","body":"{ val test1 = test ( ) if ( test1 != \"\" ) return \"\" val test2 = test2 ( ) if ( test2 != \"\" ) return \"\" val test3 = test3 ( ) if ( test3 != \"\" ) return \"\" val test4 = test4 ( ) if ( test4 != \"\" ) return \"\" val test5 = test5 ( ) if ( test5 != \"\" ) return \"\" val test6 = test6 ( ) if ( test6 != \"\" ) return \"\" val test7 = test7 ( ) if ( test7 != \"\" ) return \"\" val test8 = E < Int > ( ) . foo ( ) if ( test8 != \"\" ) return \"\" val test9 = F < Int > ( ) . foo ( , \"\" ) if ( test9 != \"\" ) return \"\" val test10 = test10 < Int > ( ) if ( test10 != \"\" ) return \"\" val test11 = test11 < Int > ( ) if ( test11 != \"\" ) return \"\" return \"\" }","docstring":""} {"signature":"internal actual fun String . asUtf8ToByteArray ( ) : ByteArray","body":"= commonAsUtf8ToByteArray ( )","docstring":""} {"signature":"external fun f4 ( __0 : `T$0` )","body":"external fun f4 ( __0 : `T$0` )","docstring":""} {"signature":"external fun f5 ( __0 : `T$0` , p : `T$0` , __2 : `T$0` )","body":"external fun f5 ( __0 : `T$0` , p : `T$0` , __2 : `T$0` )","docstring":""} {"signature":"external fun f6 ( __0 : `T$1` )","body":"external fun f6 ( __0 : `T$1` )","docstring":""} {"signature":"override fun transformFunctionAccess ( call : IrFunctionAccessExpression , doNotIntrinsify : Boolean ) : IrExpression","body":"{ return when ( call . symbol . owner . fqNameWhenAvailable ) { FqName ( \"\" ) -> call . transformToIndexedRead ( ) FqName ( \"\" ) -> call . transformToIndexedWrite ( ) else -> call } }","docstring":""} {"signature":"infix fun < T > T . mustBe ( t : T )","body":"{ assert ( \"\" ) { this == t } }","docstring":""} {"signature":"inline fun assert ( message : String , condition : ( ) -> Boolean )","body":"{ if ( ! condition ( ) ) throw AssertionError ( message ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ \"\" mustBe \"\" return \"\" }","docstring":""} {"signature":"fun test ( )","body":"{ for ( z in .. ) { try { try { result += \"\" break } catch ( fail : Throwable ) { result += \"\" } } finally { result += \"\" throw RuntimeException ( ) } } }","docstring":""} {"signature":"fun box ( ) : String","body":"{ try { test ( ) return \"\" } catch ( e : RuntimeException ) { } return if ( result == \"\" ) \"\" else \"\" }","docstring":""} {"signature":"@ Test fun deleteFile ( )","body":"{ val file = createTempFile ( ) assertTrue ( file . exists ( ) ) file . deleteRecursively ( ) assertFalse ( file . exists ( ) ) file . createFile ( ) . writeText ( \"\" ) assertTrue ( file . exists ( ) ) file . deleteRecursively ( ) assertFalse ( file . exists ( ) ) file . deleteRecursively ( ) }","docstring":""} {"signature":"@ Test fun deleteDirectory ( )","body":"{ val dir = createTestFiles ( ) assertTrue ( dir . exists ( ) ) dir . deleteRecursively ( ) assertFalse ( dir . exists ( ) ) dir . deleteRecursively ( ) }","docstring":""} {"signature":"@ Test fun deleteNotExistingParent ( )","body":"{ val basedir = createTempDirectory ( ) . cleanupRecursively ( ) basedir . resolve ( \"\" ) . deleteRecursively ( ) basedir . resolve ( \"\" ) . deleteRecursively ( ) }","docstring":""} {"signature":"private fun Path . walkIncludeDirectories ( ) : Sequence < Path >","body":"= this . walk ( PathWalkOption . INCLUDE_DIRECTORIES )","docstring":""} {"signature":"@ Test fun deleteRestrictedRead ( )","body":"{ val basedir = createTestFiles ( ) . cleanupRecursively ( ) val restrictedEmptyDir = basedir . resolve ( \"\" ) val restrictedDir = basedir . resolve ( \"\" ) val restrictedFile = basedir . resolve ( \"\" ) withRestrictedRead ( restrictedEmptyDir , restrictedDir , restrictedFile ) { val error = assertFailsWith < java . nio . file . FileSystemException > ( \"\" ) { basedir . deleteRecursively ( ) } assertEquals ( , error . suppressedExceptions . size ) assertIs < java . nio . file . AccessDeniedException > ( error . suppressedExceptions [ ] . let { it . cause ? : it } ) assertIs < java . nio . file . AccessDeniedException > ( error . suppressedExceptions [ ] . let { it . cause ? : it } ) assertTrue ( restrictedEmptyDir . exists ( ) ) assertTrue ( restrictedDir . exists ( ) ) assertFalse ( restrictedFile . exists ( ) ) restrictedEmptyDir . toFile ( ) . setReadable ( true ) restrictedDir . toFile ( ) . setReadable ( true ) testVisitedFiles ( listOf ( \"\" , \"\" , \"\" , \"\" , \"\" , \"\" , \"\" ) , basedir . walkIncludeDirectories ( ) , basedir ) basedir . deleteRecursively ( ) } }","docstring":""} {"signature":"@ Test fun deleteRestrictedWrite ( )","body":"{ val basedir = createTestFiles ( ) . cleanupRecursively ( ) val restrictedEmptyDir = basedir . resolve ( \"\" ) val restrictedDir = basedir . resolve ( \"\" ) val restrictedFile = basedir . resolve ( \"\" ) withRestrictedWrite ( restrictedEmptyDir , restrictedDir , restrictedFile ) { val error = assertFailsWith < java . nio . file . FileSystemException > ( \"\" ) { basedir . deleteRecursively ( ) } when ( val accessDenied = error . suppressedExceptions . single ( ) ) { is java . nio . file . AccessDeniedException -> { assertEquals ( restrictedDir . resolve ( \"\" ) . toString ( ) , accessDenied . file ) } is java . nio . file . FileSystemException -> { assertEquals ( restrictedDir . resolve ( \"\" ) . toString ( ) , accessDenied . file ) assertIs < java . nio . file . AccessDeniedException > ( accessDenied . cause ) } else -> { fail ( \"\" ) } } assertFalse ( restrictedEmptyDir . exists ( ) ) assertTrue ( restrictedDir . exists ( ) ) assertTrue ( restrictedDir . resolve ( \"\" ) . exists ( ) ) assertFalse ( restrictedFile . exists ( ) ) } }","docstring":""} {"signature":"@ Test fun deleteBaseSymlinkToFile ( )","body":"{ val file = createTempFile ( ) . cleanup ( ) val link = createTempDirectory ( ) . cleanupRecursively ( ) . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( file ) ? : return link . deleteRecursively ( ) assertFalse ( link . exists ( LinkOption . NOFOLLOW_LINKS ) ) assertTrue ( file . exists ( ) ) }","docstring":""} {"signature":"@ Test fun deleteBaseSymlinkToDirectory ( )","body":"{ val dir = createTestFiles ( ) . cleanupRecursively ( ) val link = createTempDirectory ( ) . cleanupRecursively ( ) . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( dir ) ? : return link . deleteRecursively ( ) assertFalse ( link . exists ( LinkOption . NOFOLLOW_LINKS ) ) testVisitedFiles ( listOf ( \"\" ) + referenceFilenames , dir . walkIncludeDirectories ( ) , dir ) }","docstring":""} {"signature":"@ Test fun deleteSymlinkToFile ( )","body":"{ val file = createTempFile ( ) . cleanup ( ) val dir = createTestFiles ( ) . cleanupRecursively ( ) . also { it . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( file ) ? : return } dir . deleteRecursively ( ) assertFalse ( dir . exists ( ) ) assertTrue ( file . exists ( ) ) }","docstring":""} {"signature":"@ Test fun deleteSymlinkToDirectory ( )","body":"{ val dir1 = createTestFiles ( ) . cleanupRecursively ( ) val dir2 = createTestFiles ( ) . cleanupRecursively ( ) . also { it . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( dir1 ) ? : return } dir2 . deleteRecursively ( ) assertFalse ( dir2 . exists ( ) ) testVisitedFiles ( listOf ( \"\" ) + referenceFilenames , dir1 . walkIncludeDirectories ( ) , dir1 ) }","docstring":""} {"signature":"@ Test fun deleteParentSymlink ( )","body":"{ val dir1 = createTestFiles ( ) . cleanupRecursively ( ) val dir2 = createTempDirectory ( ) . cleanupRecursively ( ) . also { it . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( dir1 ) ? : return } dir2 . resolve ( \"\" ) . deleteRecursively ( ) assertFalse ( dir1 . resolve ( \"\" ) . exists ( ) ) dir2 . resolve ( \"\" ) . deleteRecursively ( ) assertFalse ( dir1 . resolve ( \"\" ) . exists ( ) ) }","docstring":""} {"signature":"@ Test fun deleteSymlinkToSymlink ( )","body":"{ val dir = createTestFiles ( ) . cleanupRecursively ( ) val link = createTempDirectory ( ) . cleanupRecursively ( ) . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( dir ) ? : return val linkToLink = createTempDirectory ( ) . cleanupRecursively ( ) . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( link ) ? : return linkToLink . deleteRecursively ( ) assertFalse ( linkToLink . exists ( LinkOption . NOFOLLOW_LINKS ) ) assertTrue ( link . exists ( LinkOption . NOFOLLOW_LINKS ) ) testVisitedFiles ( listOf ( \"\" ) + referenceFilenames , dir . walkIncludeDirectories ( ) , dir ) }","docstring":""} {"signature":"@ Test fun deleteSymlinkCyclic ( )","body":"{ val basedir = createTestFiles ( ) . cleanupRecursively ( ) val original = basedir . resolve ( \"\" ) original . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( original ) ? : return basedir . deleteRecursively ( ) assertFalse ( basedir . exists ( ) ) }","docstring":""} {"signature":"@ Test fun deleteSymlinkCyclicWithTwo ( )","body":"{ val basedir = createTestFiles ( ) . cleanupRecursively ( ) val dir8 = basedir . resolve ( \"\" ) val dir2 = basedir . resolve ( \"\" ) dir8 . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( dir2 ) ? : return dir2 . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( dir8 ) ? : return basedir . deleteRecursively ( ) assertFalse ( basedir . exists ( ) ) }","docstring":""} {"signature":"@ Test fun deleteSymlinkPointingToItself ( )","body":"{ val basedir = createTempDirectory ( ) . cleanupRecursively ( ) val link = basedir . resolve ( \"\" ) link . tryCreateSymbolicLinkTo ( link ) ? : return basedir . deleteRecursively ( ) assertFalse ( basedir . exists ( ) ) }","docstring":""} {"signature":"@ Test fun deleteSymlinkTwoPointingToEachOther ( )","body":"{ val basedir = createTempDirectory ( ) . cleanupRecursively ( ) val link1 = basedir . resolve ( \"\" ) val link2 = basedir . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( link1 ) ? : return link1 . tryCreateSymbolicLinkTo ( link2 ) ? : return basedir . deleteRecursively ( ) assertFalse ( basedir . exists ( ) ) }","docstring":""} {"signature":"private fun compareFiles ( src : Path , dst : Path , message : String ? = null )","body":"{ assertTrue ( dst . exists ( ) ) assertEquals ( src . isRegularFile ( ) , dst . isRegularFile ( ) , message ) assertEquals ( src . isDirectory ( ) , dst . isDirectory ( ) , message ) if ( dst . isRegularFile ( ) ) { assertTrue ( src . readBytes ( ) . contentEquals ( dst . readBytes ( ) ) , message ) } }","docstring":""} {"signature":"private fun compareDirectories ( src : Path , dst : Path )","body":"{ for ( srcFile in src . walkIncludeDirectories ( ) ) { val dstFile = dst . resolve ( srcFile . relativeTo ( src ) ) compareFiles ( srcFile , dstFile ) } }","docstring":""} {"signature":"@ Test fun copyFileToFile ( )","body":"{ val src = createTempFile ( ) . cleanup ( ) . also { it . writeText ( \"\" ) } val dst = createTempDirectory ( ) . cleanupRecursively ( ) . resolve ( \"\" ) val copyResult = src . copyToRecursively ( dst , followLinks = false ) assertEquals ( dst , copyResult ) compareFiles ( src , dst ) dst . writeText ( \"\" ) assertFailsWith < java . nio . file . FileAlreadyExistsException > { src . copyToRecursively ( dst , followLinks = false ) } assertEquals ( \"\" , dst . readText ( ) ) src . copyToRecursively ( dst , followLinks = false , overwrite = true ) compareFiles ( src , dst ) }","docstring":""} {"signature":"@ Test fun copyFileToDirectory ( )","body":"{ val src = createTempFile ( ) . cleanup ( ) . also { it . writeText ( \"\" ) } val dst = createTestFiles ( ) . cleanupRecursively ( ) assertFailsWith < java . nio . file . FileAlreadyExistsException > { src . copyToRecursively ( dst , followLinks = false ) } assertTrue ( dst . isDirectory ( ) ) assertFailsWith < java . nio . file . DirectoryNotEmptyException > { src . copyToRecursively ( dst , followLinks = false ) { source , target -> source . copyTo ( target , overwrite = true ) CopyActionResult . CONTINUE } } assertTrue ( dst . isDirectory ( ) ) val copyResult = src . copyToRecursively ( dst , followLinks = false , overwrite = true ) assertEquals ( dst , copyResult ) compareFiles ( src , dst ) }","docstring":""} {"signature":"private fun Path . relativePathString ( base : Path ) : String","body":"{ return relativeToOrSelf ( base ) . invariantSeparatorsPathString }","docstring":""} {"signature":"@ Test fun copyDirectoryToDirectory ( )","body":"{ val src = createTestFiles ( ) . cleanupRecursively ( ) val dst = createTempDirectory ( ) . cleanupRecursively ( ) . resolve ( \"\" ) val copyResult = src . copyToRecursively ( dst , followLinks = false ) assertEquals ( dst , copyResult ) compareDirectories ( src , dst ) src . resolve ( \"\" ) . writeText ( \"\" ) dst . resolve ( \"\" ) . createDirectory ( ) val conflictingFiles = mutableListOf < String > ( ) src . copyToRecursively ( dst , followLinks = false , onError = { source , _ , exception -> assertIs < java . nio . file . FileAlreadyExistsException > ( exception ) conflictingFiles . add ( source . relativePathString ( src ) ) OnErrorResult . SKIP_SUBTREE } ) assertEquals ( referenceFilesOnly . sorted ( ) , conflictingFiles . sorted ( ) ) assertTrue ( dst . resolve ( \"\" ) . readText ( ) . isEmpty ( ) ) src . copyToRecursively ( dst , followLinks = false , overwrite = true ) compareDirectories ( src , dst ) assertTrue ( dst . resolve ( \"\" ) . exists ( ) ) }","docstring":""} {"signature":"@ Test fun copyDirectoryToFile ( )","body":"{ val src = createTestFiles ( ) . cleanupRecursively ( ) val dst = createTempFile ( ) . cleanupRecursively ( ) . also { it . writeText ( \"\" ) } val existsException = assertFailsWith < java . nio . file . FileAlreadyExistsException > { src . copyToRecursively ( dst , followLinks = false ) } assertEquals ( dst . toString ( ) , existsException . file ) assertTrue ( dst . isRegularFile ( ) ) src . copyToRecursively ( dst , followLinks = false , overwrite = true ) compareDirectories ( src , dst ) }","docstring":""} {"signature":"@ Test fun copyNonExistentSource ( )","body":"{ val src = createTempDirectory ( ) . also { it . deleteExisting ( ) } val dst = createTempDirectory ( ) assertFailsWith < java . nio . file . NoSuchFileException > { src . copyToRecursively ( dst , followLinks = false ) } dst . deleteExisting ( ) assertFailsWith < java . nio . file . NoSuchFileException > { src . copyToRecursively ( dst , followLinks = false ) } }","docstring":""} {"signature":"@ Test fun copyNonExistentDestinationParent ( )","body":"{ val src = createTempDirectory ( ) . cleanupRecursively ( ) val dst = createTempDirectory ( ) . cleanupRecursively ( ) . resolve ( \"\" ) assertFalse ( dst . parent . exists ( ) ) src . copyToRecursively ( dst , followLinks = false , onError = { source , target , exception -> assertIs < java . nio . file . NoSuchFileException > ( exception ) assertEquals ( src , source ) assertEquals ( dst , target ) assertEquals ( dst . toString ( ) , exception . file ) OnErrorResult . SKIP_SUBTREE } ) src . copyToRecursively ( dst . createParentDirectories ( ) , followLinks = false ) }","docstring":""} {"signature":"@ Test fun copyRestrictedReadInSource ( )","body":"{ val src = createTestFiles ( ) . cleanupRecursively ( ) val dst = createTempDirectory ( ) . cleanupRecursively ( ) val restrictedDir = src . resolve ( \"\" ) val restrictedFile = src . resolve ( \"\" ) withRestrictedRead ( restrictedDir , restrictedFile , alsoReset = listOf ( dst . resolve ( \"\" ) , dst . resolve ( \"\" ) ) ) { src . copyToRecursively ( dst , followLinks = false , onError = { source , _ , exception -> assertIs < java . nio . file . AccessDeniedException > ( exception ) assertEquals ( source . toString ( ) , exception . file ) assertEquals ( \"\" , source . relativePathString ( src ) ) OnErrorResult . SKIP_SUBTREE } ) { source , target -> try { source . copyToIgnoringExistingDirectory ( target , followLinks = false ) } catch ( exception : Throwable ) { assertIs < java . nio . file . AccessDeniedException > ( exception ) assertEquals ( source . toString ( ) , exception . file ) assertEquals ( \"\" , source . relativePathString ( src ) ) } CopyActionResult . CONTINUE } assertFalse ( dst . resolve ( \"\" ) . exists ( ) ) assertFalse ( dst . resolve ( \"\" ) . exists ( ) ) } }","docstring":""} {"signature":"@ Test fun copyRestrictedWriteInSource ( )","body":"{ val src = createTestFiles ( ) . cleanupRecursively ( ) val dst = createTempDirectory ( ) . cleanupRecursively ( ) val restrictedDir = src . resolve ( \"\" ) val restrictedFile = src . resolve ( \"\" ) withRestrictedWrite ( restrictedDir , restrictedFile , alsoReset = listOf ( dst . resolve ( \"\" ) , dst . resolve ( \"\" ) ) ) { val accessDeniedFiles = mutableListOf < String > ( ) src . copyToRecursively ( dst , followLinks = false , onError = { _ , target , exception -> assertIs < java . nio . file . AccessDeniedException > ( exception ) assertEquals ( target . toString ( ) , exception . file ) accessDeniedFiles . add ( target . relativePathString ( dst ) ) OnErrorResult . SKIP_SUBTREE } ) assertEquals ( listOf ( \"\" , \"\" ) , accessDeniedFiles . sorted ( ) ) assertTrue ( dst . resolve ( \"\" ) . exists ( ) ) assertFalse ( dst . resolve ( \"\" ) . isWritable ( ) ) assertTrue ( dst . resolve ( \"\" ) . exists ( ) ) assertFalse ( dst . resolve ( \"\" ) . isWritable ( ) ) } }","docstring":""} {"signature":"@ Test fun copyRestrictedWriteInDestination ( )","body":"{ val src = createTestFiles ( ) . cleanupRecursively ( ) val dst = createTestFiles ( ) . cleanupRecursively ( ) src . resolve ( \"\" ) . writeText ( \"\" ) src . resolve ( \"\" ) . writeText ( \"\" ) val restrictedDir = dst . resolve ( \"\" ) val restrictedFile = dst . resolve ( \"\" ) withRestrictedWrite ( restrictedDir , restrictedFile ) { val accessDeniedFiles = mutableListOf < String > ( ) src . copyToRecursively ( dst , followLinks = false , overwrite = true , onError = { _ , target , exception -> assertIs < java . nio . file . AccessDeniedException > ( exception ) assertEquals ( target . toString ( ) , exception . file ) accessDeniedFiles . add ( target . relativePathString ( dst ) ) OnErrorResult . SKIP_SUBTREE } ) assertEquals ( listOf ( \"\" , \"\" ) , accessDeniedFiles . sorted ( ) ) assertNotEquals ( src . resolve ( \"\" ) . readText ( ) , dst . resolve ( \"\" ) . readText ( ) ) assertEquals ( src . resolve ( \"\" ) . readText ( ) , dst . resolve ( \"\" ) . readText ( ) ) } }","docstring":""} {"signature":"@ Test fun copyBrokenBaseSymlink ( )","body":"{ val basedir = createTempDirectory ( ) . cleanupRecursively ( ) val target = basedir . resolve ( \"\" ) val link = basedir . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( target ) ? : return val dst = basedir . resolve ( \"\" ) link . copyToRecursively ( dst , followLinks = false ) assertTrue ( dst . isSymbolicLink ( ) ) assertTrue ( dst . exists ( LinkOption . NOFOLLOW_LINKS ) ) assertFalse ( dst . exists ( ) ) assertFailsWith < java . nio . file . FileAlreadyExistsException > { link . copyToRecursively ( dst , followLinks = false ) } dst . deleteExisting ( ) assertFailsWith < java . nio . file . NoSuchFileException > { link . copyToRecursively ( dst , followLinks = true ) } assertFalse ( dst . exists ( LinkOption . NOFOLLOW_LINKS ) ) }","docstring":""} {"signature":"@ Test fun copyBrokenSymlink ( )","body":"{ val src = createTestFiles ( ) . cleanupRecursively ( ) val dst = createTempDirectory ( ) . cleanupRecursively ( ) . resolve ( \"\" ) val target = createTempDirectory ( ) . cleanupRecursively ( ) . resolve ( \"\" ) src . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( target ) ? : return val dstLink = dst . resolve ( \"\" ) src . copyToRecursively ( dst , followLinks = false ) assertTrue ( dstLink . isSymbolicLink ( ) ) assertTrue ( dstLink . exists ( LinkOption . NOFOLLOW_LINKS ) ) assertFalse ( dstLink . exists ( ) ) dst . deleteRecursively ( ) assertFailsWith < java . nio . file . NoSuchFileException > { src . copyToRecursively ( dst , followLinks = true ) } assertFalse ( dstLink . exists ( LinkOption . NOFOLLOW_LINKS ) ) }","docstring":""} {"signature":"@ Test fun copyBaseSymlinkPointingToFile ( )","body":"{ val src = createTempFile ( ) . cleanup ( ) . also { it . writeText ( \"\" ) } val link = createTempDirectory ( ) . cleanupRecursively ( ) . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( src ) ? : return val dst = createTempDirectory ( ) . cleanupRecursively ( ) . resolve ( \"\" ) link . copyToRecursively ( dst , followLinks = false ) compareFiles ( link , dst ) dst . deleteExisting ( ) link . copyToRecursively ( dst , followLinks = true ) compareFiles ( src , dst ) }","docstring":""} {"signature":"@ Test fun copyBaseSymlinkPointingToDirectory ( )","body":"{ val src = createTestFiles ( ) . cleanupRecursively ( ) val link = createTempDirectory ( ) . cleanupRecursively ( ) . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( src ) ? : return val dst = createTempDirectory ( ) . cleanupRecursively ( ) . resolve ( \"\" ) link . copyToRecursively ( dst , followLinks = false ) compareFiles ( link , dst ) dst . deleteExisting ( ) link . copyToRecursively ( dst , followLinks = true ) compareDirectories ( src , dst ) }","docstring":""} {"signature":"@ Test fun copySymlinkPointingToDirectory ( )","body":"{ val symlinkTarget = createTestFiles ( ) . cleanupRecursively ( ) val src = createTestFiles ( ) . cleanupRecursively ( ) . also { it . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( symlinkTarget ) ? : return } val dst = createTempDirectory ( ) . cleanupRecursively ( ) . resolve ( \"\" ) src . copyToRecursively ( dst , followLinks = false ) val srcContent = listOf ( \"\" , \"\" ) + referenceFilenames testVisitedFiles ( srcContent , dst . walkIncludeDirectories ( ) , dst ) dst . deleteRecursively ( ) src . copyToRecursively ( dst , followLinks = true ) val expectedDstContent = srcContent + referenceFilenames . map { \"\" } testVisitedFiles ( expectedDstContent , dst . walkIncludeDirectories ( ) , dst ) }","docstring":""} {"signature":"@ Test fun copyIgnoreExistingDirectoriesFollowLinks ( )","body":"{ val src = createTestFiles ( ) . cleanupRecursively ( ) val symlinkTarget = createTempDirectory ( ) . cleanupRecursively ( ) val dst = createTempDirectory ( ) . cleanupRecursively ( ) . also { it . resolve ( \"\" ) . createDirectory ( ) it . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( symlinkTarget ) ? : return } src . copyToRecursively ( dst , followLinks = true , onError = { source , target , exception -> assertIs < java . nio . file . FileAlreadyExistsException > ( exception ) assertEquals ( src . resolve ( \"\" ) , source ) assertEquals ( dst . resolve ( \"\" ) , target ) assertEquals ( target . toString ( ) , exception . file ) OnErrorResult . SKIP_SUBTREE } ) assertTrue ( dst . resolve ( \"\" ) . isSymbolicLink ( ) ) assertTrue ( symlinkTarget . listDirectoryEntries ( ) . isEmpty ( ) ) src . copyToRecursively ( dst , followLinks = true , overwrite = true ) assertFalse ( dst . resolve ( \"\" ) . isSymbolicLink ( ) ) assertTrue ( symlinkTarget . listDirectoryEntries ( ) . isEmpty ( ) ) }","docstring":""} {"signature":"@ Test fun copyIgnoreExistingDirectoriesNoFollowLinks ( )","body":"{ val src = createTestFiles ( ) . cleanupRecursively ( ) val symlinkTarget = createTempDirectory ( ) . cleanupRecursively ( ) val dst = createTempDirectory ( ) . cleanupRecursively ( ) . also { it . resolve ( \"\" ) . createDirectory ( ) it . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( symlinkTarget ) ? : return } src . copyToRecursively ( dst , followLinks = false , onError = { source , target , exception -> assertIs < java . nio . file . FileAlreadyExistsException > ( exception ) assertEquals ( src . resolve ( \"\" ) , source ) assertEquals ( dst . resolve ( \"\" ) , target ) assertEquals ( target . toString ( ) , exception . file ) OnErrorResult . SKIP_SUBTREE } ) assertTrue ( dst . resolve ( \"\" ) . isSymbolicLink ( ) ) assertTrue ( symlinkTarget . listDirectoryEntries ( ) . isEmpty ( ) ) src . copyToRecursively ( dst , followLinks = false , overwrite = true ) assertFalse ( dst . resolve ( \"\" ) . isSymbolicLink ( ) ) assertTrue ( symlinkTarget . listDirectoryEntries ( ) . isEmpty ( ) ) }","docstring":""} {"signature":"@ Test fun copyParentSymlink ( )","body":"{ val source = createTestFiles ( ) . cleanupRecursively ( ) val linkToSource = createTempDirectory ( ) . cleanupRecursively ( ) . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( source ) ? : return val sources = listOf ( source to referenceFilenames , linkToSource . resolve ( \"\" ) to listOf ( \"\" ) , linkToSource . resolve ( \"\" ) to listOf ( \"\" , \"\" ) ) for ( ( src , srcContent ) in sources ) { for ( followLinks in listOf ( false , true ) ) { val target = createTempDirectory ( ) . cleanupRecursively ( ) . also { it . resolve ( \"\" ) . createDirectories ( ) } val linkToTarget = createTempDirectory ( ) . cleanupRecursively ( ) . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( target ) ? : return val targets = listOf ( target to listOf ( \"\" , \"\" ) , linkToTarget . resolve ( \"\" ) to listOf ( \"\" ) , linkToTarget . resolve ( \"\" ) to listOf ( ) ) for ( ( dst , dstContent ) in targets ) { src . copyToRecursively ( dst , followLinks = followLinks ) val expectedDstContent = listOf ( \"\" ) + dstContent + srcContent testVisitedFiles ( expectedDstContent , dst . walkIncludeDirectories ( ) , dst ) } } } }","docstring":""} {"signature":"@ Test fun copySymlinkToSymlink ( )","body":"{ val src = createTestFiles ( ) . cleanupRecursively ( ) val link = createTempDirectory ( ) . cleanupRecursively ( ) . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( src ) ? : return val linkToLink = createTempDirectory ( ) . cleanupRecursively ( ) . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( link ) ? : return val dst = createTempDirectory ( ) . cleanupRecursively ( ) . resolve ( \"\" ) linkToLink . copyToRecursively ( dst , followLinks = true ) testVisitedFiles ( listOf ( \"\" ) + referenceFilenames , dst . walkIncludeDirectories ( ) , dst ) }","docstring":""} {"signature":"@ Test fun copySymlinkCyclic ( )","body":"{ val src = createTestFiles ( ) . cleanupRecursively ( ) val original = src . resolve ( \"\" ) original . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( original ) ? : return val dst = createTempDirectory ( ) . cleanupRecursively ( ) . resolve ( \"\" ) src . copyToRecursively ( dst , followLinks = true , onError = { source , _ , exception -> assertIs < java . nio . file . FileSystemLoopException > ( exception ) assertEquals ( src . resolve ( \"\" ) , source ) assertEquals ( source . toString ( ) , exception . file ) OnErrorResult . SKIP_SUBTREE } ) testVisitedFiles ( listOf ( \"\" ) + referenceFilenames , dst . walkIncludeDirectories ( ) , dst ) }","docstring":""} {"signature":"@ Test fun copySymlinkCyclicWithTwo ( )","body":"{ val src = createTestFiles ( ) . cleanupRecursively ( ) val dir8 = src . resolve ( \"\" ) val dir2 = src . resolve ( \"\" ) dir8 . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( dir2 ) ? : return dir2 . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( dir8 ) ? : return val dst = createTempDirectory ( ) . cleanupRecursively ( ) . resolve ( \"\" ) val loops = mutableListOf < String > ( ) src . copyToRecursively ( dst , followLinks = true , onError = { source , _ , exception -> assertIs < java . nio . file . FileSystemLoopException > ( exception ) assertEquals ( source . toString ( ) , exception . file ) loops . add ( source . relativePathString ( src ) ) OnErrorResult . SKIP_SUBTREE } ) assertEquals ( listOf ( \"\" , \"\" ) , loops . sorted ( ) ) val expected = listOf ( \"\" , \"\" , \"\" , \"\" ) + referenceFilenames testVisitedFiles ( expected , dst . walkIncludeDirectories ( ) , dst ) }","docstring":""} {"signature":"@ Test fun copySymlinkPointingToItself ( )","body":"{ val src = createTempDirectory ( ) . cleanupRecursively ( ) val link = src . resolve ( \"\" ) link . tryCreateSymbolicLinkTo ( link ) ? : return val dst = createTempDirectory ( ) . cleanupRecursively ( ) . resolve ( \"\" ) assertFailsWith < java . nio . file . FileSystemException > { src . copyToRecursively ( dst , followLinks = true ) } }","docstring":""} {"signature":"@ Test fun copySymlinkTwoPointingToEachOther ( )","body":"{ val src = createTempDirectory ( ) . cleanupRecursively ( ) val link1 = src . resolve ( \"\" ) val link2 = src . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( link1 ) ? : return link1 . tryCreateSymbolicLinkTo ( link2 ) ? : return val dst = createTempDirectory ( ) . cleanupRecursively ( ) . resolve ( \"\" ) assertFailsWith < java . nio . file . FileSystemException > { src . copyToRecursively ( dst , followLinks = true ) } }","docstring":""} {"signature":"@ Test fun copyWithNestedCopyToRecursively ( )","body":"{ val src = createTestFiles ( ) . cleanupRecursively ( ) val dst = createTempDirectory ( ) . cleanupRecursively ( ) . resolve ( \"\" ) val nested = createTestFiles ( ) . cleanupRecursively ( ) src . copyToRecursively ( dst , followLinks = false ) { source , target -> if ( source . name == \"\" ) { nested . copyToRecursively ( target , followLinks = false ) } else { source . copyToIgnoringExistingDirectory ( target , followLinks = false ) } CopyActionResult . CONTINUE } val expected = listOf ( \"\" ) + referenceFilenames + referenceFilenames . map { \"\" } testVisitedFiles ( expected , dst . walkIncludeDirectories ( ) , dst ) }","docstring":""} {"signature":"@ Test fun copyWithSkipSubtree ( )","body":"{ val src = createTestFiles ( ) . cleanupRecursively ( ) val dst = createTempDirectory ( ) . cleanupRecursively ( ) . resolve ( \"\" ) src . copyToRecursively ( dst , followLinks = false ) { source , target -> source . copyToIgnoringExistingDirectory ( target , followLinks = false ) if ( source . name == \"\" || source . name == \"\" ) { CopyActionResult . SKIP_SUBTREE } else { CopyActionResult . CONTINUE } } val copied3 = dst . resolve ( \"\" ) . exists ( ) val copied9 = dst . resolve ( \"\" ) . exists ( ) assertTrue ( copied3 && copied9 ) assertTrue ( dst . resolve ( \"\" ) . listDirectoryEntries ( ) . isEmpty ( ) ) }","docstring":""} {"signature":"@ Test fun copyWithTerminate ( )","body":"{ val src = createTestFiles ( ) . cleanupRecursively ( ) val dst = createTempDirectory ( ) . cleanupRecursively ( ) . resolve ( \"\" ) src . copyToRecursively ( dst , followLinks = false ) { source , target -> source . copyToIgnoringExistingDirectory ( target , followLinks = false ) if ( source . name == \"\" || source . name == \"\" ) { CopyActionResult . TERMINATE } else { CopyActionResult . CONTINUE } } val copied3 = dst . resolve ( \"\" ) . exists ( ) val copied9 = dst . resolve ( \"\" ) . exists ( ) assertTrue ( copied3 || copied9 ) assertFalse ( copied3 && copied9 ) }","docstring":""} {"signature":"@ Test fun copyFailureWithTerminate ( )","body":"{ val src = createTestFiles ( ) . cleanupRecursively ( ) val dst = createTempDirectory ( ) . cleanupRecursively ( ) . resolve ( \"\" ) src . copyToRecursively ( dst , followLinks = false , onError = { source , _ , exception -> assertIs < IllegalArgumentException > ( exception ) assertTrue ( source . name == \"\" || source . name == \"\" ) OnErrorResult . TERMINATE } ) { source , target -> source . copyToIgnoringExistingDirectory ( target , followLinks = false ) if ( source . name == \"\" || source . name == \"\" ) throw IllegalArgumentException ( ) CopyActionResult . CONTINUE } val copied3 = dst . resolve ( \"\" ) . exists ( ) val copied9 = dst . resolve ( \"\" ) . exists ( ) assertTrue ( copied3 || copied9 ) assertFalse ( copied3 && copied9 ) }","docstring":""} {"signature":"@ Test fun copyIntoSourceDirectory ( )","body":"{ val source = createTestFiles ( ) . cleanupRecursively ( ) val linkToSource = createTempDirectory ( ) . cleanupRecursively ( ) . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( source ) ? : return val sources = listOf ( source to source , linkToSource . resolve ( \"\" ) to source . resolve ( \"\" ) , linkToSource . resolve ( \"\" ) to source . resolve ( \"\" ) ) for ( ( src , resolvedSrc ) in sources ) { val linkToSrc = createTempDirectory ( ) . cleanupRecursively ( ) . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( resolvedSrc ) ? : return val targets = listOf ( linkToSrc . resolve ( \"\" ) . createDirectory ( ) , linkToSrc . resolve ( \"\" ) . createDirectories ( ) ) for ( followLinks in listOf ( false , true ) ) { assertFailsWith < java . nio . file . FileAlreadyExistsException > { src . copyToRecursively ( linkToSrc , followLinks = followLinks ) } for ( dst in targets ) { val error = assertFailsWith < java . nio . file . FileSystemException > { src . copyToRecursively ( dst , followLinks = followLinks ) } assertEquals ( \"\" , error . reason ) } } } }","docstring":""} {"signature":"@ Test fun kt38678 ( )","body":"{ val src = createTempDirectory ( ) . cleanupRecursively ( ) src . resolve ( \"\" ) . writeText ( \"\" ) val dst = src . resolve ( \"\" ) val error = assertFailsWith < java . nio . file . FileSystemException > { src . copyToRecursively ( dst , followLinks = false ) } assertEquals ( \"\" , error . reason ) }","docstring":""} {"signature":"@ Test fun copyToTheSameFile ( )","body":"{ for ( src in listOf ( createTempFile ( ) . cleanupRecursively ( ) , createTestFiles ( ) . cleanupRecursively ( ) ) ) { src . copyToRecursively ( src , followLinks = false ) val link = createTempDirectory ( ) . cleanupRecursively ( ) . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( src ) ? : return val error = assertFailsWith < java . nio . file . FileAlreadyExistsException > { link . copyToRecursively ( src , followLinks = false ) } assertEquals ( src . toString ( ) , error . file ) link . copyToRecursively ( src , followLinks = true ) for ( followLinks in listOf ( false , true ) ) { assertFailsWith < java . nio . file . FileAlreadyExistsException > { src . copyToRecursively ( link , followLinks = followLinks ) } } } }","docstring":""} {"signature":"@ Test fun copyDstLinkPointingToSrc ( )","body":"{ for ( followLinks in listOf ( false , true ) ) { val root = createTempDirectory ( ) . cleanupRecursively ( ) val src = root . resolve ( \"\" ) . createFile ( ) val dstLink = root . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( src ) ? : return assertTrue ( src . isSameFileAs ( dstLink ) ) assertTrue ( dstLink . isSameFileAs ( src ) ) assertFailsWith < FileAlreadyExistsException > { src . copyToRecursively ( dstLink , followLinks = followLinks ) } assertTrue ( dstLink . isSymbolicLink ( ) ) } }","docstring":""} {"signature":"@ Test fun copyDstLinkPointingToSrcOverwrite ( )","body":"{ for ( followLinks in listOf ( false , true ) ) { val root = createTempDirectory ( ) . cleanupRecursively ( ) val src = root . resolve ( \"\" ) . createFile ( ) val dstLink = root . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( src ) ? : return src . copyToRecursively ( dstLink , followLinks = followLinks , overwrite = true ) assertFalse ( dstLink . isSymbolicLink ( ) ) } }","docstring":""} {"signature":"@ Test fun copySrcLinkAndDstLinkPointingToSameFile ( )","body":"{ for ( followLinks in listOf ( false , true ) ) { val root = createTempDirectory ( ) . cleanupRecursively ( ) val original = root . resolve ( \"\" ) . createFile ( ) val srcLink = root . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( original ) ? : return val dstLink = root . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( original ) ? : return assertTrue ( srcLink . isSameFileAs ( dstLink ) ) assertTrue ( dstLink . isSameFileAs ( srcLink ) ) assertFailsWith < FileAlreadyExistsException > { srcLink . copyToRecursively ( dstLink , followLinks = followLinks ) } assertTrue ( dstLink . isSymbolicLink ( ) ) } }","docstring":""} {"signature":"@ Test fun copySrcLinkAndDstLinkPointingToSameFileOverwrite ( )","body":"{ for ( followLinks in listOf ( false , true ) ) { val root = createTempDirectory ( ) . cleanupRecursively ( ) val original = root . resolve ( \"\" ) . createFile ( ) val srcLink = root . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( original ) ? : return val dstLink = root . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( original ) ? : return srcLink . copyToRecursively ( dstLink , followLinks = followLinks , overwrite = true ) if ( ! followLinks ) { assertTrue ( dstLink . isSymbolicLink ( ) ) } else { assertFalse ( dstLink . isSymbolicLink ( ) ) } } }","docstring":""} {"signature":"@ Test fun copySameLinkDifferentRoute ( )","body":"{ for ( followLinks in listOf ( false , true ) ) { val root = createTempDirectory ( ) . cleanupRecursively ( ) val original = root . resolve ( \"\" ) . createFile ( ) val srcLink = root . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( original ) ? : return val dstLink = root . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( root ) ? . resolve ( \"\" ) ? : return assertTrue ( srcLink . isSameFileAs ( dstLink ) ) assertTrue ( dstLink . isSameFileAs ( srcLink ) ) if ( ! followLinks ) { srcLink . copyToRecursively ( dstLink , followLinks = followLinks ) } else { assertFailsWith < FileAlreadyExistsException > { srcLink . copyToRecursively ( dstLink , followLinks = followLinks ) } } assertTrue ( dstLink . isSymbolicLink ( ) ) } }","docstring":""} {"signature":"@ Test fun copySameLinkDifferentRouteOverwrite ( )","body":"{ for ( followLinks in listOf ( false , true ) ) { val root = createTempDirectory ( ) . cleanupRecursively ( ) val original = root . resolve ( \"\" ) . createFile ( ) val srcLink = root . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( original ) ? : return val dstLink = root . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( root ) ? . resolve ( \"\" ) ? : return if ( ! followLinks ) { srcLink . copyToRecursively ( dstLink , followLinks = followLinks , overwrite = true ) } else { val error = assertFailsWith < NoSuchFileException > { srcLink . copyToRecursively ( dstLink , followLinks = followLinks , overwrite = true ) } assertEquals ( srcLink . toString ( ) , error . file ) assertFalse ( srcLink . exists ( LinkOption . NOFOLLOW_LINKS ) ) assertFalse ( dstLink . exists ( LinkOption . NOFOLLOW_LINKS ) ) } } }","docstring":""} {"signature":"@ Test fun copySameFileDifferentRoute ( )","body":"{ val root = createTempDirectory ( ) . cleanupRecursively ( ) val src = root . resolve ( \"\" ) . createFile ( ) val dst = root . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( root ) ? . resolve ( \"\" ) ? : return assertTrue ( src . isSameFileAs ( dst ) ) assertTrue ( dst . isSameFileAs ( src ) ) src . copyToRecursively ( dst , followLinks = false ) }","docstring":""} {"signature":"@ Test fun copyToSameFileDifferentRouteOverwrite ( )","body":"{ val root = createTempDirectory ( ) . cleanupRecursively ( ) val src = root . resolve ( \"\" ) . createFile ( ) val dst = root . resolve ( \"\" ) . tryCreateSymbolicLinkTo ( root ) ? . resolve ( \"\" ) ? : return src . copyToRecursively ( dst , followLinks = false , overwrite = true ) }","docstring":""} {"signature":"abstract fun flush ( ) : CompletableFuture < Void >","body":"abstract fun flush ( ) : CompletableFuture < Void >","docstring":""} {"signature":"fun init ( )","body":"{ future = service . schedule ( this :: flush , , TimeUnit . MILLISECONDS ) }","docstring":""} {"signature":"protected override fun upSample ( tf : Ops , input : Operand < Float > ) : Operand < Float >","body":"{ return repeat ( tf , input , repeats = size , axis = ) }","docstring":""} {"signature":"override fun toString ( ) : String","body":"{ return \"\" }","docstring":""} {"signature":"fun call ( )","body":"{ impl ( ) }","docstring":""} {"signature":"@ Test fun testCleanerDestroyInChild ( )","body":"{ val worker = Worker . start ( ) val called = AtomicBoolean ( false ) ; var funBoxWeak : WeakReference < FunBox > ? = null var cleanerWeak : WeakReference < Cleaner > ? = null worker . execute ( TransferMode . SAFE , { val funBox = FunBox { called . value = true } funBoxWeak = WeakReference ( funBox ) val cleaner = createCleaner ( funBox ) { it . call ( ) } cleanerWeak = WeakReference ( cleaner ) Pair ( called , cleaner ) } ) { ( called , cleaner ) -> assertFalse ( called . value ) } . result GC . collect ( ) worker . execute ( TransferMode . SAFE , { } ) { GC . collect ( ) } . result performGCOnCleanerWorker ( ) assertNull ( cleanerWeak ! ! . value ) assertTrue ( called . value ) assertNull ( funBoxWeak ! ! . value ) worker . requestTermination ( ) . result }","docstring":""} {"signature":"@ Test fun testCleanerDestroyWithChild ( )","body":"{ val worker = Worker . start ( ) val called = AtomicBoolean ( false ) ; var funBoxWeak : WeakReference < FunBox > ? = null var cleanerWeak : WeakReference < Cleaner > ? = null worker . execute ( TransferMode . SAFE , { val funBox = FunBox { called . value = true } funBoxWeak = WeakReference ( funBox ) val cleaner = createCleaner ( funBox ) { it . call ( ) } cleanerWeak = WeakReference ( cleaner ) Pair ( called , cleaner ) } ) { ( called , cleaner ) -> assertFalse ( called . value ) } . result GC . collect ( ) worker . requestTermination ( ) . result waitWorkerTermination ( worker ) performGCOnCleanerWorker ( ) assertNull ( cleanerWeak ! ! . value ) assertTrue ( called . value ) assertNull ( funBoxWeak ! ! . value ) }","docstring":""} {"signature":"@ Test fun testCleanerDestroyInMain ( )","body":"{ val worker = Worker . start ( ) val called = AtomicBoolean ( false ) ; var funBoxWeak : WeakReference < FunBox > ? = null var cleanerWeak : WeakReference < Cleaner > ? = null { val result = worker . execute ( TransferMode . SAFE , { called } ) { called -> val funBox = FunBox { called . value = true } val cleaner = createCleaner ( funBox ) { it . call ( ) } Triple ( cleaner , WeakReference ( funBox ) , WeakReference ( cleaner ) ) } . result val cleaner = result . first funBoxWeak = result . second cleanerWeak = result . third assertFalse ( called . value ) } ( ) GC . collect ( ) worker . execute ( TransferMode . SAFE , { } ) { GC . collect ( ) } . result performGCOnCleanerWorker ( ) assertNull ( cleanerWeak ! ! . value ) assertTrue ( called . value ) assertNull ( funBoxWeak ! ! . value ) worker . requestTermination ( ) . result }","docstring":""} {"signature":"@ Test fun testCleanerDestroyShared ( )","body":"{ val worker = Worker . start ( ) val called = AtomicBoolean ( false ) ; var funBoxWeak : WeakReference < FunBox > ? = null var cleanerWeak : WeakReference < Cleaner > ? = null val cleanerHolder : AtomicReference < Cleaner ? > = AtomicReference ( null ) ; { val funBox = FunBox { called . value = true } funBoxWeak = WeakReference ( funBox ) val cleaner = createCleaner ( funBox ) { it . call ( ) } cleanerWeak = WeakReference ( cleaner ) cleanerHolder . value = cleaner worker . execute ( TransferMode . SAFE , { Pair ( called , cleanerHolder ) } ) { ( called , cleanerHolder ) -> cleanerHolder . value = null assertFalse ( called . value ) } . result } ( ) GC . collect ( ) worker . execute ( TransferMode . SAFE , { } ) { GC . collect ( ) } . result performGCOnCleanerWorker ( ) assertNull ( cleanerWeak ! ! . value ) assertTrue ( called . value ) assertNull ( funBoxWeak ! ! . value ) worker . requestTermination ( ) . result }","docstring":""} {"signature":"@ Test fun testCleanerWithTLS ( )","body":"{ val worker = Worker . start ( ) tlsValue = val value = AtomicInt ( ) worker . execute ( TransferMode . SAFE , { value } ) { tlsValue = createCleaner ( it ) { it . value = tlsValue } Unit } . result worker . execute ( TransferMode . SAFE , { } ) { GC . collect ( ) } . result performGCOnCleanerWorker ( ) assertEquals ( , value . value ) worker . requestTermination ( ) . result }","docstring":""} {"signature":"fun add ( x : Int , y : Int )","body":"= x + y","docstring":""} {"signature":"fun test ( )","body":"{ var x = run { x += add ( , try { } catch ( e : Throwable ) { } ) } }","docstring":""} {"signature":"@ GCUnsafeCall ( \"\" ) internal actual external fun formatToExactDecimals ( value : Double , decimals : Int ) : String","body":"@ GCUnsafeCall ( \"\" ) internal actual external fun formatToExactDecimals ( value : Double , decimals : Int ) : String","docstring":""} {"signature":"fun run ( f : ( Foo < String > ) -> Foo < Long > ) : Foo < Long >","body":"{ return f ( Foo < String > ( ) ) }","docstring":""} {"signature":"fun invokeFun ( ) : Foo < Long >","body":"{ return run { f -> Foo < Long > ( f . x + ) } }","docstring":""} {"signature":"fun nullableFoo ( f : Foo < Long > ? ) : Foo < Long >","body":"= f ! !","docstring":""} {"signature":"fun listOfFoo ( f : List < Foo < String > > ) : Foo < String >","body":"= f [ ]","docstring":""} {"signature":"fun box ( ) : String","body":"{ val b = Bar ( ) if ( b . invokeFun ( ) . x != ) return \"\" if ( b . nullableFoo ( Foo < Long > ( ) ) . x != ) return \"\" val f : Foo < Long > ? = Foo < Long > ( ) if ( b . nullableFoo ( f ) . x != ) return \"\" val ls = listOf ( Foo < String > ( ) ) if ( b . listOfFoo ( ls ) . x != ) return \"\" return \"\" }","docstring":""} {"signature":"fun addExecutionTime ( clazz : Class < * > , timeInMillis : Long )","body":"{ times [ clazz ] = times . getOrDefault ( clazz , ) + timeInMillis }","docstring":""} {"signature":"fun getExecutionTimes ( ) : Map < Class < * > , Long >","body":"{ return times . toMap ( ) }","docstring":""} {"signature":"fun clear ( )","body":"{ times . clear ( ) }","docstring":""} {"signature":"fun testWithinClass ( )","body":"{ val mutableProperty = Klass < T > :: mutableProperty mutableProperty . set ( this , Generic < T > ( ) ) }","docstring":""} {"signature":"fun testConcreteType ( )","body":"{ val mutableProperty = Klass < Int > :: mutableProperty mutableProperty . set ( Klass < Int > ( ) , Generic < Int > ( ) ) }","docstring":""} {"signature":"fun < A > testGenericType ( )","body":"{ val mutableProperty = Klass < A > :: mutableProperty mutableProperty . set ( Klass < A > ( ) , Generic < A > ( ) ) }","docstring":""} {"signature":"fun < S : CharSequence > testGenericTypeWithBounds ( )","body":"{ val mutableProperty = Klass < S > :: mutableProperty mutableProperty . set ( Klass < S > ( ) , Generic < S > ( ) ) }","docstring":""} {"signature":"fun ff ( p : List < String > )","body":"= ","docstring":""} {"signature":"fun flameThrower ( ) : Nothing","body":"{ throw Throwable ( \"\" ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ try { flameThrower ( ) } catch ( e : Throwable ) { return \"\" } return \"\" }","docstring":""} {"signature":"inline fun < T , R > with ( receiver : T , block : T . ( ) -> R ) : R","body":"{ return receiver . block ( ) }","docstring":""} {"signature":"inline fun < T , R > T . let ( block : ( T ) -> R ) : R","body":"{ return block ( this ) }","docstring":""} {"signature":"fun foo ( )","body":"{ val a = with ( ) { this . let { it } } . let { } }","docstring":""} {"signature":"@ Test fun addition ( )","body":"{ assertEquals ( , + ) }","docstring":""} {"signature":"@ Test fun multiplication ( )","body":"{ assertEquals ( , * ) }","docstring":""} {"signature":"@ Test fun subtraction ( )","body":"{ assertEquals ( , - ) }","docstring":""} {"signature":"@ Test fun division ( )","body":"{ assertEquals ( , / ) }","docstring":""} {"signature":"override fun KtDeclarationSymbol . sirDeclaration ( ) : SirDeclaration","body":"= withSirAnalyse ( sirSession , ktAnalysisSession ) { when ( val ktSymbol = this @ sirDeclaration ) { is KtNamedClassOrObjectSymbol -> { SirClassFromKtSymbol ( ktSymbol = ktSymbol , analysisApiSession = ktAnalysisSession , sirSession = sirSession , ) } is KtConstructorSymbol -> { SirInitFromKtSymbol ( ktSymbol = ktSymbol , analysisApiSession = ktAnalysisSession , sirSession = sirSession , ) } is KtFunctionLikeSymbol -> { SirFunctionFromKtSymbol ( ktSymbol = ktSymbol , analysisApiSession = ktAnalysisSession , sirSession = sirSession , ) } is KtVariableSymbol -> { SirVariableFromKtSymbol ( ktSymbol = ktSymbol , analysisApiSession = ktAnalysisSession , sirSession = sirSession , ) } is KtTypeAliasSymbol -> { SirTypealiasFromKtSymbol ( ktSymbol = ktSymbol , analysisApiSession = ktAnalysisSession , sirSession = sirSession , ) } else -> TODO ( \"\" ) } }","docstring":""} {"signature":"fun bar ( x : Int ) : Int","body":"fun bar ( x : Int ) : Int","docstring":""} {"signature":"fun baz ( x : Int ) : Int","body":"= x . hashCode ( )","docstring":""} {"signature":"fun box ( ) : String","body":"{ val foo : Foo = Foo ( :: baz ) val result = foo . bar ( ) return if ( result == ) \"\" else \"\" }","docstring":""} {"signature":"fun test ( tr : Tr < String > )","body":"{ val v = tr as G ? checkSubtype < G < String > > ( v ! ! ) }","docstring":""} {"signature":"suspend fun < T > suspendMe ( ) : T","body":"= suspendCoroutine { @ Suppress ( \"\" ) c = it as Continuation < Any > }","docstring":""} {"signature":"fun Int ? . toResultString ( )","body":"= if ( this == ) \"\" else \"\"","docstring":""} {"signature":"suspend fun generic ( ) : T","body":"suspend fun generic ( ) : T","docstring":""} {"signature":"override suspend fun generic ( ) : IC","body":"= suspendMe ( )","docstring":""} {"signature":"fun builder ( c : suspend ( ) -> Unit )","body":"{ c . startCoroutine ( handleExceptionContinuation { result = it . message ! ! } ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ builder { val base : Base < * > = Derived ( ) ( base . generic ( ) as IC ) . s . toResultString ( ) } c ? . resumeWithException ( IllegalStateException ( \"\" ) ) return result }","docstring":""} {"signature":"fun fromBoundedValueWithStep1 ( codegen : ExpressionCodegen , forExpression : KtForExpression , boundedValue : BoundedValue , comparisonGenerator : ComparisonGenerator , inverseBoundsEvaluationOrder : Boolean = false )","body":"= ForInSimpleProgressionLoopGenerator ( codegen , forExpression , boundedValue , inverseBoundsEvaluationOrder , comparisonGenerator , )","docstring":""} {"signature":"fun fromBoundedValueWithStepMinus1 ( codegen : ExpressionCodegen , forExpression : KtForExpression , boundedValue : BoundedValue , comparisonGenerator : ComparisonGenerator , inverseBoundsEvaluationOrder : Boolean = false )","body":"= ForInSimpleProgressionLoopGenerator ( codegen , forExpression , boundedValue , inverseBoundsEvaluationOrder , comparisonGenerator , - )","docstring":""} {"signature":"override fun storeRangeStartAndEnd ( )","body":"{ if ( inverseBoundsEvaluationOrder ) { StackValue . local ( endVar , asmElementType ) . store ( endValue , v ) loopParameter ( ) . store ( startValue , v ) } else { loopParameter ( ) . store ( startValue , v ) StackValue . local ( endVar , asmElementType ) . store ( endValue , v ) } if ( ! isStartInclusive ) incrementLoopVariable ( ) }","docstring":""} {"signature":"override fun checkEmptyLoop ( loopExit : Label )","body":"{ if ( isEndInclusive ) { super . checkEmptyLoop ( loopExit ) } }","docstring":""} {"signature":"override fun checkPreCondition ( loopExit : Label )","body":"{ if ( ! isEndInclusive ) { loopParameter ( ) . put ( asmElementType , elementType , v ) v . load ( endVar , asmElementType ) if ( step > ) comparisonGenerator . jumpIfGreaterOrEqual ( v , loopExit ) else comparisonGenerator . jumpIfLessOrEqual ( v , loopExit ) } }","docstring":""} {"signature":"override fun checkPostConditionAndIncrement ( loopExit : Label )","body":"{ if ( isEndInclusive ) { super . checkPostConditionAndIncrement ( loopExit ) } else { incrementLoopVariable ( ) } }","docstring":""} {"signature":"fun foo ( )","body":"= \"\"","docstring":""} {"signature":"fun baz ( )","body":"= bar ( )","docstring":""} {"signature":"override fun visitIsExpression ( expression : KtIsExpression , contextWithExpectedType : ExpressionTypingContext ) : KotlinTypeInfo","body":"{ val context = contextWithExpectedType . replaceExpectedType ( NO_EXPECTED_TYPE ) . replaceContextDependency ( INDEPENDENT ) val leftHandSide = expression . leftHandSide val typeInfo = facade . safeGetTypeInfo ( leftHandSide , context ) val knownType = typeInfo . type val typeReference = expression . typeReference if ( typeReference != null && knownType != null ) { val dataFlowValue = components . dataFlowValueFactory . createDataFlowValue ( leftHandSide , knownType , context ) val conditionInfo = checkTypeForIs ( context , expression , expression . isNegated , knownType , typeReference , dataFlowValue ) . thenInfo val newDataFlowInfo = conditionInfo . and ( typeInfo . dataFlowInfo ) context . trace . record ( BindingContext . DATAFLOW_INFO_AFTER_CONDITION , expression , newDataFlowInfo ) } expression . reportDeprecatedDefinitelyNotNullSyntax ( expression . typeReference , contextWithExpectedType ) val resultTypeInfo = components . dataFlowAnalyzer . checkType ( typeInfo . replaceType ( components . builtIns . booleanType ) , expression , contextWithExpectedType ) if ( typeReference != null ) { val rhsType = context . trace [ BindingContext . TYPE , typeReference ] val rttiInformation = RttiExpressionInformation ( subject = leftHandSide , sourceType = knownType , targetType = rhsType , operation = if ( expression . isNegated ) RttiOperation . NOT_IS else RttiOperation . IS ) components . rttiExpressionCheckers . forEach { it . check ( rttiInformation , expression , context . trace ) } } return resultTypeInfo }","docstring":""} {"signature":"override fun visitWhenExpression ( expression : KtWhenExpression , context : ExpressionTypingContext )","body":"= visitWhenExpression ( expression , context , false )","docstring":""} {"signature":"protected abstract fun createDataFlowValue ( contextAfterSubject : ExpressionTypingContext , builtIns : KotlinBuiltIns ) : DataFlowValue","body":"protected abstract fun createDataFlowValue ( contextAfterSubject : ExpressionTypingContext , builtIns : KotlinBuiltIns ) : DataFlowValue","docstring":""} {"signature":"abstract fun makeValueArgument ( ) : ValueArgument ?","body":"abstract fun makeValueArgument ( ) : ValueArgument ?","docstring":""} {"signature":"open fun getCalleeExpressionForSpecialCall ( ) : KtExpression ?","body":"= null","docstring":""} {"signature":"fun initDataFlowValue ( contextAfterSubject : ExpressionTypingContext , builtIns : KotlinBuiltIns )","body":"{ dataFlowValue = createDataFlowValue ( contextAfterSubject , builtIns ) }","docstring":""} {"signature":"override fun createDataFlowValue ( contextAfterSubject : ExpressionTypingContext , builtIns : KotlinBuiltIns )","body":"= dataFlowValueFactory . createDataFlowValue ( expression , type , contextAfterSubject )","docstring":""} {"signature":"override fun makeValueArgument ( ) : ValueArgument","body":"= CallMaker . makeExternalValueArgument ( expression )","docstring":""} {"signature":"override fun createDataFlowValue ( contextAfterSubject : ExpressionTypingContext , builtIns : KotlinBuiltIns )","body":"= DataFlowValue ( IdentifierInfo . Variable ( descriptor , DataFlowValue . Kind . STABLE_VALUE , contextAfterSubject . trace . bindingContext [ BindingContext . BOUND_INITIALIZER_VALUE , descriptor ] ) , descriptor . type )","docstring":""} {"signature":"override fun makeValueArgument ( ) : ValueArgument ?","body":"= variable . initializer ? . let { CallMaker . makeExternalValueArgument ( KtPsiFactory ( variable . project , true ) . createExpression ( variable . name ! ! ) , it ) }","docstring":""} {"signature":"override fun getCalleeExpressionForSpecialCall ( ) : KtExpression","body":"= variable","docstring":""} {"signature":"override fun createDataFlowValue ( contextAfterSubject : ExpressionTypingContext , builtIns : KotlinBuiltIns )","body":"= DataFlowValue . nullValue ( builtIns )","docstring":""} {"signature":"override fun makeValueArgument ( ) : ValueArgument ?","body":"= null","docstring":""} {"signature":"fun visitWhenExpression ( expression : KtWhenExpression , contextWithExpectedType : ExpressionTypingContext , @ Suppress ( \"\" ) isStatement : Boolean ) : KotlinTypeInfo","body":"{ val trace = contextWithExpectedType . trace WhenChecker . checkDeprecatedWhenSyntax ( trace , expression ) WhenChecker . checkSealedWhenIsReserved ( trace , expression . whenKeyword ) components . dataFlowAnalyzer . recordExpectedType ( trace , expression , contextWithExpectedType . expectedType ) val contextBeforeSubject = contextWithExpectedType . replaceExpectedType ( NO_EXPECTED_TYPE ) . replaceContextDependency ( INDEPENDENT ) val subjectExpression = expression . subjectExpression val subjectVariable = expression . subjectVariable val subject = when { subjectVariable != null -> processVariableSubject ( subjectVariable , contextBeforeSubject ) subjectExpression != null -> Subject . Expression ( subjectExpression , facade . getTypeInfo ( subjectExpression , contextBeforeSubject ) , components . dataFlowValueFactory ) else -> Subject . None ( ) } val contextAfterSubject = run { var result = contextBeforeSubject subject . scopeWithSubject ? . let { result = result . replaceScope ( it ) } subject . dataFlowInfo ? . let { result = result . replaceDataFlowInfo ( it ) } result } val contextWithExpectedTypeAndSubjectVariable = subject . scopeWithSubject ? . let { contextWithExpectedType . replaceScope ( it ) } ? : contextWithExpectedType subject . initDataFlowValue ( contextAfterSubject , components . builtIns ) val possibleTypesForSubject = subject . typeInfo ? . dataFlowInfo ? . getStableTypes ( subject . dataFlowValue , components . languageVersionSettings ) ? : emptySet ( ) checkSmartCastsInSubjectIfRequired ( expression , contextBeforeSubject , subject . type , possibleTypesForSubject ) val dataFlowInfoForEntries = analyzeConditionsInWhenEntries ( expression , contextAfterSubject , subject ) val whenReturnType = inferTypeForWhenExpression ( expression , subject , contextWithExpectedTypeAndSubjectVariable , contextAfterSubject , dataFlowInfoForEntries ) val whenResultValue = whenReturnType ? . let { facade . components . dataFlowValueFactory . createDataFlowValue ( expression , it , contextAfterSubject ) } val branchesTypeInfo = joinWhenExpressionBranches ( expression , contextAfterSubject , whenReturnType , subject . jumpOutPossible , whenResultValue ) val isExhaustive = WhenChecker . isWhenExhaustive ( expression , trace ) val branchesDataFlowInfo = branchesTypeInfo . dataFlowInfo val resultDataFlowInfo = if ( expression . elseExpression == null && ! isExhaustive ) { branchesDataFlowInfo . or ( contextAfterSubject . dataFlowInfo ) } else { branchesDataFlowInfo } if ( whenReturnType != null && isExhaustive && expression . elseExpression == null && KotlinBuiltIns . isNothing ( whenReturnType ) ) { trace . record ( BindingContext . IMPLICIT_EXHAUSTIVE_WHEN , expression ) } val branchesType = branchesTypeInfo . type ? : return noTypeInfo ( resultDataFlowInfo ) val resultType = components . dataFlowAnalyzer . checkType ( branchesType , expression , contextWithExpectedType ) ConfusingWhenBranchSyntaxChecker . check ( expression , contextWithExpectedType . languageVersionSettings , trace ) return createTypeInfo ( resultType , resultDataFlowInfo , branchesTypeInfo . jumpOutPossible , contextWithExpectedType . dataFlowInfo ) }","docstring":""} {"signature":"private fun processVariableSubject ( subjectVariable : KtProperty , contextBeforeSubject : ExpressionTypingContext ) : Subject","body":"{ val trace = contextBeforeSubject . trace if ( ! components . languageVersionSettings . supportsFeature ( LanguageFeature . VariableDeclarationInWhenSubject ) ) { trace . report ( UNSUPPORTED_FEATURE . on ( subjectVariable , Pair ( LanguageFeature . VariableDeclarationInWhenSubject , components . languageVersionSettings ) ) ) } else { val illegalDeclarationString = when { subjectVariable . isVar -> \"\" subjectVariable . initializer == null -> \"\" subjectVariable . hasDelegateExpression ( ) -> \"\" subjectVariable . getter != null || subjectVariable . setter != null -> \"\" else -> null } if ( illegalDeclarationString != null ) { trace . report ( ILLEGAL_DECLARATION_IN_WHEN_SUBJECT . on ( subjectVariable , illegalDeclarationString ) ) } } val scopeWithSubjectVariable = ExpressionTypingUtils . newWritableScopeImpl ( contextBeforeSubject , LexicalScopeKind . WHEN , components . overloadChecker ) val ( typeInfo , descriptor ) = components . localVariableResolver . process ( subjectVariable , contextBeforeSubject , contextBeforeSubject . scope , facade ) scopeWithSubjectVariable . addVariableDescriptor ( descriptor ) val subjectTypeInfo = typeInfo . replaceType ( descriptor . type ) return Subject . Variable ( subjectVariable , descriptor , subjectTypeInfo , scopeWithSubjectVariable ) }","docstring":""} {"signature":"private fun inferTypeForWhenExpression ( expression : KtWhenExpression , subject : Subject , contextWithExpectedType : ExpressionTypingContext , contextAfterSubject : ExpressionTypingContext , dataFlowInfoForEntries : List < DataFlowInfo > ) : KotlinType ?","body":"{ if ( expression . entries . all { it . expression == null } ) { return components . builtIns . unitType } val wrappedArgumentExpressions = wrapWhenEntryExpressionsAsSpecialCallArguments ( expression ) val callForWhen = createCallForSpecialConstruction ( expression , subject . getCalleeExpressionForSpecialCall ( ) ? : expression , wrappedArgumentExpressions ) val dataFlowInfoForArguments = createDataFlowInfoForArgumentsOfWhenCall ( callForWhen , contextAfterSubject . dataFlowInfo , dataFlowInfoForEntries ) val resolvedCall = components . controlStructureTypingUtils . resolveSpecialConstructionAsCall ( callForWhen , ResolveConstruct . WHEN , object : AbstractList < String > ( ) { override fun get ( index : Int ) : String = \"\" override val size : Int get ( ) = wrappedArgumentExpressions . size } , Collections . nCopies ( wrappedArgumentExpressions . size , false ) , contextWithExpectedType , dataFlowInfoForArguments ) return resolvedCall . resultingDescriptor . returnType }","docstring":""} {"signature":"private fun wrapWhenEntryExpressionsAsSpecialCallArguments ( expression : KtWhenExpression ) : List < KtExpression >","body":"{ val psiFactory = KtPsiFactory ( expression . project ) return expression . entries . mapNotNull { whenEntry -> whenEntry . expression ? . let { psiFactory . wrapInABlockWrapper ( it ) } } }","docstring":""} {"signature":"private fun analyzeConditionsInWhenEntries ( expression : KtWhenExpression , contextAfterSubject : ExpressionTypingContext , subject : Subject ) : ArrayList < DataFlowInfo >","body":"{ val argumentDataFlowInfos = ArrayList < DataFlowInfo > ( ) var inputDataFlowInfo = contextAfterSubject . dataFlowInfo for ( whenEntry in expression . entries ) { val conditionsInfo = analyzeWhenEntryConditions ( whenEntry , contextAfterSubject . replaceDataFlowInfo ( inputDataFlowInfo ) , subject ) inputDataFlowInfo = inputDataFlowInfo . and ( conditionsInfo . elseInfo ) if ( whenEntry . expression != null ) { argumentDataFlowInfos . add ( conditionsInfo . thenInfo ) } } return argumentDataFlowInfos }","docstring":""} {"signature":"private fun joinWhenExpressionBranches ( expression : KtWhenExpression , contextAfterSubject : ExpressionTypingContext , resultType : KotlinType ? , jumpOutPossibleInSubject : Boolean , whenResultValue : DataFlowValue ? ) : KotlinTypeInfo","body":"{ val bindingContext = contextAfterSubject . trace . bindingContext var currentDataFlowInfo : DataFlowInfo ? = null var jumpOutPossible = jumpOutPossibleInSubject var errorTypeExistInBranch = false for ( whenEntry in expression . entries ) { val entryExpression = whenEntry . expression ? : continue val entryTypeInfo = BindingContextUtils . getRecordedTypeInfo ( entryExpression , bindingContext ) ? : continue val entryType = entryTypeInfo . type if ( entryType == null ) { errorTypeExistInBranch = true } val entryDataFlowInfo = if ( whenResultValue != null && entryType != null ) { val entryValue = facade . components . dataFlowValueFactory . createDataFlowValue ( entryExpression , entryType , contextAfterSubject ) entryTypeInfo . dataFlowInfo . assign ( whenResultValue , entryValue , components . languageVersionSettings ) } else { entryTypeInfo . dataFlowInfo } currentDataFlowInfo = when { entryType != null && KotlinBuiltIns . isNothing ( entryType ) -> currentDataFlowInfo currentDataFlowInfo != null -> currentDataFlowInfo . or ( entryDataFlowInfo ) else -> entryDataFlowInfo } jumpOutPossible = jumpOutPossible or entryTypeInfo . jumpOutPossible } val resultDataFlowInfo = currentDataFlowInfo ? : contextAfterSubject . dataFlowInfo return if ( resultType == null || errorTypeExistInBranch && KotlinBuiltIns . isNothing ( resultType ) ) noTypeInfo ( resultDataFlowInfo ) else createTypeInfo ( resultType , resultDataFlowInfo , jumpOutPossible , resultDataFlowInfo ) }","docstring":""} {"signature":"private fun checkSmartCastsInSubjectIfRequired ( expression : KtWhenExpression , contextBeforeSubject : ExpressionTypingContext , subjectType : KotlinType , possibleTypesForSubject : Set < KotlinType > )","body":"{ val subjectExpression = expression . subjectExpression ? : return for ( possibleCastType in possibleTypesForSubject . reversed ( ) ) { val possibleCastClass = possibleCastType . constructor . declarationDescriptor as? ClassDescriptor ? : continue if ( possibleCastClass . kind == ClassKind . ENUM_CLASS || possibleCastClass . modality == Modality . SEALED ) { if ( checkSmartCastToExpectedTypeInSubject ( contextBeforeSubject , subjectExpression , subjectType , possibleCastType ) ) { return } } } val isNullableType = TypeUtils . isNullableType ( subjectType ) val bindingContext = contextBeforeSubject . trace . bindingContext if ( isNullableType && ! WhenChecker . containsNullCase ( expression , bindingContext ) ) { val notNullableType = TypeUtils . makeNotNullable ( subjectType ) if ( checkSmartCastToExpectedTypeInSubject ( contextBeforeSubject , subjectExpression , subjectType , notNullableType ) ) { return } } }","docstring":""} {"signature":"private fun checkSmartCastToExpectedTypeInSubject ( contextBeforeSubject : ExpressionTypingContext , subjectExpression : KtExpression , subjectType : KotlinType , expectedType : KotlinType ) : Boolean","body":"{ val trace = TemporaryBindingTrace . create ( contextBeforeSubject . trace , \"\" ) val subjectContext = contextBeforeSubject . replaceExpectedType ( expectedType ) . replaceBindingTrace ( trace ) val castResult = facade . components . dataFlowAnalyzer . checkPossibleCast ( subjectType , KtPsiUtil . safeDeparenthesize ( subjectExpression ) , subjectContext ) if ( castResult != null && castResult . isCorrect ) { trace . commit ( ) return true } return false }","docstring":""} {"signature":"private fun analyzeWhenEntryConditions ( whenEntry : KtWhenEntry , context : ExpressionTypingContext , subject : Subject ) : ConditionalDataFlowInfo","body":"{ if ( whenEntry . isElse ) { return ConditionalDataFlowInfo ( context . dataFlowInfo ) } var entryInfo : ConditionalDataFlowInfo ? = null var contextForCondition = context for ( condition in whenEntry . conditions ) { val conditionInfo = checkWhenCondition ( subject , condition , contextForCondition ) entryInfo = entryInfo ? . let { ConditionalDataFlowInfo ( it . thenInfo . or ( conditionInfo . thenInfo ) , it . elseInfo . and ( conditionInfo . elseInfo ) ) } ? : conditionInfo contextForCondition = contextForCondition . replaceDataFlowInfo ( conditionInfo . elseInfo ) } return entryInfo ? : ConditionalDataFlowInfo ( context . dataFlowInfo ) }","docstring":""} {"signature":"private fun checkWhenCondition ( subject : Subject , condition : KtWhenCondition , context : ExpressionTypingContext ) : ConditionalDataFlowInfo","body":"{ var newDataFlowInfo = noChange ( context ) condition . accept ( object : KtVisitorVoid ( ) { override fun visitWhenConditionInRange ( condition : KtWhenConditionInRange ) { val rangeExpression = condition . rangeExpression ? : return if ( subject is Subject . None ) { context . trace . report ( EXPECTED_CONDITION . on ( condition ) ) val dataFlowInfo = facade . getTypeInfo ( rangeExpression , context ) . dataFlowInfo newDataFlowInfo = ConditionalDataFlowInfo ( dataFlowInfo ) return } val argumentForSubject = subject . makeValueArgument ( ) ? : return val typeInfo = facade . checkInExpression ( condition , condition . operationReference , argumentForSubject , rangeExpression , context ) val dataFlowInfo = typeInfo . dataFlowInfo newDataFlowInfo = ConditionalDataFlowInfo ( dataFlowInfo ) val type = typeInfo . type if ( type == null || ! isBoolean ( type ) ) { context . trace . report ( TYPE_MISMATCH_IN_RANGE . on ( condition ) ) } } override fun visitWhenConditionIsPattern ( condition : KtWhenConditionIsPattern ) { if ( subject is Subject . None ) { context . trace . report ( EXPECTED_CONDITION . on ( condition ) ) } val typeReference = condition . typeReference ? : return val result = checkTypeForIs ( context , condition , condition . isNegated , subject . type , typeReference , subject . dataFlowValue ) newDataFlowInfo = if ( condition . isNegated ) ConditionalDataFlowInfo ( result . elseInfo , result . thenInfo ) else result val rhsType = context . trace [ BindingContext . TYPE , typeReference ] if ( subject !is Subject . None ) { val rttiInformation = RttiExpressionInformation ( subject = subject . element ! ! , sourceType = subject . type , targetType = rhsType , operation = if ( condition . isNegated ) RttiOperation . NOT_IS else RttiOperation . IS ) components . rttiExpressionCheckers . forEach { it . check ( rttiInformation , condition , context . trace ) } } } override fun visitWhenConditionWithExpression ( condition : KtWhenConditionWithExpression ) { val expression = condition . expression ? : return val basicDataFlowInfo = checkTypeForExpressionCondition ( context , expression , subject ) val moduleDescriptor = DescriptorUtils . getContainingModule ( context . scope . ownerDescriptor ) val dataFlowInfoFromES = components . effectSystem . getDataFlowInfoWhenEquals ( subject . valueExpression , expression , context . trace , moduleDescriptor ) newDataFlowInfo = basicDataFlowInfo . and ( dataFlowInfoFromES ) } override fun visitKtElement ( element : KtElement ) { context . trace . report ( UNSUPPORTED . on ( element , this :: class . java . canonicalName ) ) } } ) return newDataFlowInfo }","docstring":""} {"signature":"private fun checkTypeForExpressionCondition ( context : ExpressionTypingContext , expression : KtExpression , subject : Subject ) : ConditionalDataFlowInfo","body":"{ var newContext = context val typeInfo = facade . getTypeInfo ( expression , newContext ) val type = typeInfo . type ? : return noChange ( newContext ) newContext = newContext . replaceDataFlowInfo ( typeInfo . dataFlowInfo ) if ( subject is Subject . None ) { val booleanType = components . builtIns . booleanType val checkedTypeInfo = components . dataFlowAnalyzer . checkType ( typeInfo , expression , newContext . replaceExpectedType ( booleanType ) ) if ( KotlinTypeChecker . DEFAULT . equalTypes ( booleanType , checkedTypeInfo . type ? : type ) ) { val ifInfo = components . dataFlowAnalyzer . extractDataFlowInfoFromCondition ( expression , true , newContext ) val elseInfo = components . dataFlowAnalyzer . extractDataFlowInfoFromCondition ( expression , false , newContext ) return ConditionalDataFlowInfo ( ifInfo , elseInfo ) } return noChange ( newContext ) } checkTypeCompatibility ( newContext , type , subject . type , expression ) val expressionDataFlowValue = facade . components . dataFlowValueFactory . createDataFlowValue ( expression , type , newContext ) val subjectStableTypes = listOf ( subject . type ) + context . dataFlowInfo . getStableTypes ( subject . dataFlowValue , components . languageVersionSettings ) val expressionStableTypes = listOf ( type ) + newContext . dataFlowInfo . getStableTypes ( expressionDataFlowValue , components . languageVersionSettings ) PrimitiveNumericComparisonCallChecker . inferPrimitiveNumericComparisonType ( context . trace , subjectStableTypes , expressionStableTypes , expression ) val result = noChange ( newContext ) return ConditionalDataFlowInfo ( result . thenInfo . equate ( subject . dataFlowValue , expressionDataFlowValue , identityEquals = facade . components . dataFlowAnalyzer . typeHasEqualsFromAny ( subject . type , expression ) , languageVersionSettings = components . languageVersionSettings ) , result . elseInfo . disequate ( subject . dataFlowValue , expressionDataFlowValue , components . languageVersionSettings ) ) }","docstring":""} {"signature":"private fun checkTypeForIs ( context : ExpressionTypingContext , isCheck : KtElement , negated : Boolean , subjectType : KotlinType , typeReferenceAfterIs : KtTypeReference , subjectDataFlowValue : DataFlowValue ) : ConditionalDataFlowInfo","body":"{ val typeResolutionContext = TypeResolutionContext ( context . scope , context . trace , true , true , context . isDebuggerContext ) val possiblyBareTarget = components . typeResolver . resolvePossiblyBareType ( typeResolutionContext , typeReferenceAfterIs ) val targetType = TypeReconstructionUtil . reconstructBareType ( typeReferenceAfterIs , possiblyBareTarget , subjectType , context . trace , components . builtIns ) if ( targetType . isDynamic ( ) ) { context . trace . report ( DYNAMIC_NOT_ALLOWED . on ( typeReferenceAfterIs ) ) } val targetDescriptor = TypeUtils . getClassDescriptor ( targetType ) if ( targetDescriptor != null && DescriptorUtils . isEnumEntry ( targetDescriptor ) ) { context . trace . report ( IS_ENUM_ENTRY . on ( typeReferenceAfterIs ) ) } if ( ! subjectType . containsError ( ) && ! TypeUtils . isNullableType ( subjectType ) && targetType . isMarkedNullable ) { val element = typeReferenceAfterIs . typeElement assert ( element is KtNullableType ) { \"\" + KtNullableType :: class . java . name } context . trace . report ( USELESS_NULLABLE_CHECK . on ( element as KtNullableType ) ) } val typesAreCompatible = checkTypeCompatibility ( context , targetType , subjectType , typeReferenceAfterIs ) detectRedundantIs ( context , subjectType , targetType , isCheck , negated , subjectDataFlowValue , typesAreCompatible ) if ( context . languageVersionSettings . supportsFeature ( LanguageFeature . ProperCheckAnnotationsTargetInTypeUsePositions ) ) { components . annotationChecker . check ( typeReferenceAfterIs , context . trace ) } if ( CastDiagnosticsUtil . isCastErased ( subjectType , targetType , KotlinTypeChecker . DEFAULT ) ) { context . trace . report ( CANNOT_CHECK_FOR_ERASED . on ( typeReferenceAfterIs , targetType ) ) } return context . dataFlowInfo . let { ConditionalDataFlowInfo ( it . establishSubtyping ( subjectDataFlowValue , targetType , components . languageVersionSettings ) , it ) } }","docstring":""} {"signature":"private fun detectRedundantIs ( context : ExpressionTypingContext , subjectType : KotlinType , targetType : KotlinType , isCheck : KtElement , negated : Boolean , subjectDataFlowValue : DataFlowValue , typesAreCompatible : Boolean )","body":"{ if ( subjectType . containsError ( ) || targetType . containsError ( ) ) return val possibleTypes = DataFlowAnalyzer . getAllPossibleTypes ( subjectType , context , subjectDataFlowValue , context . languageVersionSettings ) if ( typesAreCompatible && ! targetType . isError ) { val nonTrivialTypes = possibleTypes . filterNot { it . isAnyOrNullableAny ( ) } . takeIf { it . isNotEmpty ( ) } ? : possibleTypes if ( nonTrivialTypes . none { CastDiagnosticsUtil . isCastPossible ( it , targetType , components . platformToKotlinClassMapper , components . platformSpecificCastChecker ) } ) { context . trace . report ( USELESS_IS_CHECK . on ( isCheck , negated ) ) } } if ( CastDiagnosticsUtil . isRefinementUseless ( possibleTypes , targetType , false ) ) { context . trace . report ( USELESS_IS_CHECK . on ( isCheck , ! negated ) ) } }","docstring":""} {"signature":"private fun noChange ( context : ExpressionTypingContext )","body":"= ConditionalDataFlowInfo ( context . dataFlowInfo )","docstring":""} {"signature":"private fun checkTypeCompatibility ( context : ExpressionTypingContext , type : KotlinType , subjectType : KotlinType , reportErrorOn : KtElement ) : Boolean","body":"{ if ( TypeIntersector . isIntersectionEmpty ( type , subjectType ) ) { context . trace . report ( INCOMPATIBLE_TYPES . on ( reportErrorOn , type , subjectType ) ) return false } checkEnumsForCompatibility ( context , reportErrorOn , subjectType , type ) if ( KotlinBuiltIns . isNullableNothing ( type ) && ! TypeUtils . isNullableType ( subjectType ) ) { context . trace . report ( SENSELESS_NULL_IN_WHEN . on ( reportErrorOn ) ) } return true }","docstring":""} {"signature":"override fun process ( annotations : MutableSet < out TypeElement > ? , roundEnv : RoundEnvironment ) : Boolean","body":"{ val element = processingEnv . elementUtils . getTypeElement ( \"\" ) val containerAnnotation = element . annotationMirrors . singleOrNull { it . annotationType . asElement ( ) . simpleName . contentEquals ( \"\" ) && it . annotationType . asElement ( ) . enclosingElement . simpleName . contentEquals ( \"\" ) } if ( containerAnnotation == null ) { processingEnv . messager . printMessage ( Diagnostic . Kind . ERROR , \"\" + \"\" , element , ) return true } val expected = \"\" val actual = containerAnnotation . elementValues . toString ( ) if ( actual != expected ) { processingEnv . messager . printMessage ( Diagnostic . Kind . ERROR , \"\" ) } return true }","docstring":""} {"signature":"override fun getSupportedSourceVersion ( ) : SourceVersion","body":"= SourceVersion . RELEASE_6","docstring":""} {"signature":"override fun getSupportedAnnotationTypes ( ) : Set < String >","body":"= setOf ( \"\" )","docstring":""} {"signature":"fun main ( )","body":"{ val data = ProgrammingLanguage ( \"\" , SimpleDateFormat ( \"\" ) . parse ( \"\" ) ) println ( Json . encodeToString ( data ) ) }","docstring":""} {"signature":"fun < T > raiseConcern ( message : String , fallback : ( ) -> T ) : T","body":"{ val mode = getPanicMode ( ) logger . debug ( message ) return when ( mode ) { PanicMode . ALWAYS_FAIL -> throw Exception ( message ) PanicMode . NEVER_FAIL -> fallback . invoke ( ) } }","docstring":""} {"signature":"override fun accept ( visitor : InstructionVisitor )","body":"{ visitor . visitMarkInstruction ( this ) }","docstring":""} {"signature":"override fun < R > accept ( visitor : InstructionVisitorWithResult < R > ) : R","body":"= visitor . visitMarkInstruction ( this )","docstring":""} {"signature":"override fun createCopy ( )","body":"= MarkInstruction ( element , blockScope )","docstring":""} {"signature":"override fun toString ( )","body":"= \"\"","docstring":""} {"signature":"public open fun foo ( vararg s : String )","body":"{ throw UnsupportedOperationException ( ) }","docstring":""} {"signature":"public fun foo ( )","body":"{ Server ( ) . processRequest ( ) ServerEx ( ) . processRequest ( ) }","docstring":""} {"signature":"fun test1d ( x : Double , y : Double )","body":"= x . compareTo ( y )","docstring":""} {"signature":"fun test2d ( x : Double , y : Any )","body":"= y is Double && x . compareTo ( y ) == ","docstring":""} {"signature":"fun test3d ( x : Any , y : Any )","body":"= x is Double && y is Double && x . compareTo ( y ) == ","docstring":""} {"signature":"fun test1f ( x : Float , y : Float )","body":"= x . compareTo ( y )","docstring":""} {"signature":"fun test2f ( x : Float , y : Any )","body":"= y is Float && x . compareTo ( y ) == ","docstring":""} {"signature":"fun test3f ( x : Any , y : Any )","body":"= x is Float && y is Float && x . compareTo ( y ) == ","docstring":""} {"signature":"fun testFD ( x : Any , y : Any )","body":"= x is Float && y is Double && x . compareTo ( y ) == ","docstring":""} {"signature":"fun testDF ( x : Any , y : Any )","body":"= x is Double && y is Float && x . compareTo ( y ) == ","docstring":""} {"signature":"fun Float . test1fr ( x : Float )","body":"= compareTo ( x )","docstring":""} {"signature":"fun Float . test2fr ( x : Any )","body":"= x is Float && compareTo ( x ) == ","docstring":""} {"signature":"fun Float . test3fr ( x : Any )","body":"= x is Double && compareTo ( x ) == ","docstring":""} {"signature":"fun < X > pullXb ( x : X ) : BiType < X , LevelB >","body":"= TODO ( )","docstring":""} {"signature":"fun < Y > pullYb ( y : Y ) : BiType < LevelB , Y >","body":"= TODO ( )","docstring":""} {"signature":"fun < X > pullXn ( x : X ) : BiType < X , Nothing >","body":"= TODO ( )","docstring":""} {"signature":"fun < Y > pullYn ( y : Y ) : BiType < Nothing , Y >","body":"= TODO ( )","docstring":""} {"signature":"fun < X > adjustIt ( fn : ( ) -> X ) : X","body":"= TODO ( )","docstring":""} {"signature":"fun < X > adjustIt ( f1 : ( ) -> X , f2 : ( ) -> X ) : X","body":"= TODO ( )","docstring":""} {"signature":"fun < X > callAdjustIt ( t : BiType < * , * > , x : X , level : LevelA )","body":"{ val x1 = adjustIt ( { t . pullXb ( x ) } ) x1 val x2 = adjustIt ( { t . pullXn ( x ) } ) x2 val x3 = adjustIt ( { t . pullXb ( x ) } , { t . pullYb ( level ) } ) x3 val x4 = adjustIt ( { t . pullXn ( x ) } , { t . pullYn ( level ) } ) x4 }","docstring":""} {"signature":"fun benchmarksProject ( buildVersion : BuildType )","body":"= Project { this . id ( \"\" ) this . name = \"\" params { param ( \"\" , \"\" ) } val benchmarkAll = benchmarkAll ( buildVersion ) val benchmarks = listOf ( benchmark ( \"\" , Platform . Linux , buildVersion ) , benchmark ( \"\" , Platform . Linux , buildVersion ) , * platforms . map { benchmark ( \"\" , it , buildVersion ) } . toTypedArray ( ) ) benchmarks . forEach { benchmark -> benchmarkAll . dependsOnSnapshot ( benchmark , onFailure = FailureAction . ADD_PROBLEM ) benchmarkAll . dependsOn ( benchmark ) { artifacts { artifactRules = \"\" } } } buildTypesOrder = listOf ( benchmarkAll , * benchmarks . toTypedArray ( ) ) }","docstring":""} {"signature":"fun Project . benchmarkAll ( buildVersion : BuildType )","body":"= BuildType { id ( \"\" ) this . name = \"\" type = BuildTypeSettings . Type . COMPOSITE dependsOnSnapshot ( buildVersion ) buildNumberPattern = buildVersion . depParamRefs . buildNumber . ref commonConfigure ( ) failureConditions { executionTimeoutMin = } } . also { buildType ( it ) }","docstring":""} {"signature":"fun Project . benchmark ( target : String , platform : Platform , buildVersion : BuildType )","body":"= buildType ( \"\" , platform ) { dependsOnSnapshot ( buildVersion ) params { param ( versionSuffixParameter , buildVersion . depParamRefs [ versionSuffixParameter ] . ref ) param ( teamcitySuffixParameter , buildVersion . depParamRefs [ teamcitySuffixParameter ] . ref ) } steps { gradle { name = \"\" tasks = benchmarkTask ( target , platform ) jdkHome = \"\" gradleParams = \"\" buildFile = \"\" gradleWrapperPath = \"\" } } artifactRules = \"\" requirements { benchmarkAgentInstanceTypeRequirement ( platform ) } failureConditions { executionTimeoutMin = } }","docstring":""} {"signature":"fun benchmarkTask ( target : String , platform : Platform ) : String","body":"= when ( target ) { \"\" , \"\" -> \"\" \"\" -> \"\" else -> throw IllegalArgumentException ( \"\" ) }","docstring":""} {"signature":"fun Requirements . benchmarkAgentInstanceTypeRequirement ( platform : Platform )","body":"{ if ( platform == Platform . Linux || platform == Platform . Windows ) { matches ( \"\" , \"\" ) } }","docstring":""} {"signature":"@ Test fun `should parse versions` ( )","body":"{ assertParsedVersion ( input = \"\" , expectedMajor = , expectedMinor = , expectedPatch = ) assertParsedVersion ( input = \"\" , expectedMajor = , expectedMinor = , expectedPatch = ) assertParsedVersion ( input = \"\" , expectedMajor = , expectedMinor = , expectedPatch = ) assertParsedVersion ( input = \"\" , expectedMajor = , expectedMinor = , expectedPatch = ) assertParsedVersion ( input = \"\" , expectedMajor = , expectedMinor = , expectedPatch = ) assertParsedVersion ( input = \"\" , expectedMajor = , expectedMinor = , expectedPatch = ) }","docstring":""} {"signature":"@ Test fun `should return null on non parsable string` ( )","body":"{ assertNull ( parse ( \"\" ) ) assertNull ( parse ( \"\" ) ) assertNull ( parse ( \"\" ) ) assertNull ( parse ( \"\" ) ) assertNull ( parse ( \"\" ) ) assertNull ( parse ( \"\" ) ) assertNull ( parse ( \"\" ) ) }","docstring":""} {"signature":"@ Test fun `should compare simple versions` ( )","body":"{ assertEquals ( , KotlinGradlePluginVersion ( , , ) . compareTo ( KotlinGradlePluginVersion ( , , ) ) ) assertTrue ( KotlinGradlePluginVersion ( , , ) >= KotlinGradlePluginVersion ( , , ) ) assertTrue ( KotlinGradlePluginVersion ( , , ) < KotlinGradlePluginVersion ( , , ) ) assertTrue ( KotlinGradlePluginVersion ( , , ) > KotlinGradlePluginVersion ( , , ) ) assertTrue ( KotlinGradlePluginVersion ( , , ) <= KotlinGradlePluginVersion ( , , ) ) assertTrue ( KotlinGradlePluginVersion ( , , ) < KotlinGradlePluginVersion ( , , ) ) assertTrue ( KotlinGradlePluginVersion ( , , ) > KotlinGradlePluginVersion ( , , ) ) assertTrue ( KotlinGradlePluginVersion ( , , ) > KotlinGradlePluginVersion ( , , ) ) assertTrue ( KotlinGradlePluginVersion ( , , ) < KotlinGradlePluginVersion ( , , ) ) }","docstring":""} {"signature":"@ Test fun `should compare custom dev versions with trailing strings` ( )","body":"{ assertEquals ( , KotlinGradlePluginVersion ( , , ) . compareTo ( parseNotNull ( \"\" ) ) ) assertTrue ( KotlinGradlePluginVersion ( , , ) >= parseNotNull ( \"\" ) ) assertTrue ( KotlinGradlePluginVersion ( , , ) < parseNotNull ( \"\" ) ) assertTrue ( KotlinGradlePluginVersion ( , , ) > parseNotNull ( \"\" ) ) assertTrue ( KotlinGradlePluginVersion ( , , ) <= parseNotNull ( \"\" ) ) assertTrue ( KotlinGradlePluginVersion ( , , ) < parseNotNull ( \"\" ) ) assertTrue ( KotlinGradlePluginVersion ( , , ) > parseNotNull ( \"\" ) ) assertTrue ( KotlinGradlePluginVersion ( , , ) > parseNotNull ( \"\" ) ) }","docstring":""} {"signature":"private fun assertParsedVersion ( input : String , expectedMajor : Int , expectedMinor : Int , expectedPatch : Int )","body":"{ val kgpVersion = parseNotNull ( input ) assertEquals ( expectedMajor , kgpVersion . major ) assertEquals ( expectedMinor , kgpVersion . minor ) assertEquals ( expectedPatch , kgpVersion . patch ) assertEquals ( KotlinGradlePluginVersion ( expectedMajor , expectedMinor , expectedPatch ) , kgpVersion ) }","docstring":""} {"signature":"private fun parseNotNull ( input : String ) : KotlinGradlePluginVersion","body":"= assertNotNull ( parse ( input ) )","docstring":""} {"signature":"private fun parse ( input : String ) : KotlinGradlePluginVersion ?","body":"= parseKotlinVersion ( input )","docstring":""} {"signature":"public abstract fun getSmartCastedInfo ( expression : KtExpression ) : KtSmartCastInfo ?","body":"public abstract fun getSmartCastedInfo ( expression : KtExpression ) : KtSmartCastInfo ?","docstring":""} {"signature":"public abstract fun getImplicitReceiverSmartCast ( expression : KtExpression ) : Collection < KtImplicitReceiverSmartCast >","body":"public abstract fun getImplicitReceiverSmartCast ( expression : KtExpression ) : Collection < KtImplicitReceiverSmartCast >","docstring":""} {"signature":"public fun KtExpression . getSmartCastInfo ( ) : KtSmartCastInfo ?","body":"= withValidityAssertion { analysisSession . smartCastProvider . getSmartCastedInfo ( this ) }","docstring":"/**\n * Gets the smart-cast information of the given expression or null if the expression is not smart casted.\n */"} {"signature":"public fun KtExpression . getImplicitReceiverSmartCast ( ) : Collection < KtImplicitReceiverSmartCast >","body":"= withValidityAssertion { analysisSession . smartCastProvider . getImplicitReceiverSmartCast ( this ) }","docstring":"/**\n * Returns the list of implicit smart-casts which are required for the expression to be called. Includes only implicit\n * smart-casts:\n *\n * ```kt\n * if (this is String) {\n * this.substring() // 'this' receiver is explicit, so no implicit smart-cast here.\n *\n * smartcast() // 'this' receiver is implicit, therefore there is implicit smart-cast involved.\n * }\n * ```\n */"} {"signature":"fun testResource ( resourcePath : String ) : URL","body":"= object { } :: class . java . classLoader . getResource ( resourcePath ) ! !","docstring":""} {"signature":"fun testCsv ( csvName : String )","body":"= testResource ( \"\" )","docstring":""} {"signature":"fun testJson ( jsonName : String )","body":"= testResource ( \"\" )","docstring":""} {"signature":"fun testArrowFeather ( name : String )","body":"= testResource ( \"\" )","docstring":""} {"signature":"operator fun getValue ( t : Any ? , p : KProperty < * > ) : Int","body":"= inner","docstring":""} {"signature":"operator fun setValue ( t : Any ? , p : KProperty < * > , i : Int )","body":"{ inner = i }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val c = A ( ) if ( c . prop != ) return \"\" c . prop = if ( c . prop != ) return \"\" return \"\" }","docstring":""} {"signature":"@ Test fun testSequentialDecoding ( )","body":"{ SimpleObject . serializer ( ) . deserialize ( DummySequentialDecoder ( ) ) }","docstring":""} {"signature":"fun check ( c : TopDownAnalysisContext )","body":"{ core . check ( c ) }","docstring":""} {"signature":"fun check ( c : TopDownAnalysisContext )","body":"{ checkClasses ( c ) checkMembers ( c ) }","docstring":""} {"signature":"private fun checkClasses ( c : TopDownAnalysisContext )","body":"{ for ( classOrObject in c . declaredClasses ! ! . keys ) { if ( classOrObject is KtClass ) { checkClassHeader ( classOrObject ) } } }","docstring":""} {"signature":"fun checkClassHeader ( klass : KtClass ) : Boolean","body":"{ var noError = true for ( specifier in klass . superTypeListEntries ) { noError = noError and specifier . typeReference ? . checkTypePosition ( context , OUT_VARIANCE ) } return noError and klass . checkTypeParameters ( context , OUT_VARIANCE ) }","docstring":""} {"signature":"private fun checkMembers ( c : TopDownAnalysisContext )","body":"{ for ( ( declaration , descriptor ) in c . members ) { checkMember ( declaration , descriptor ) } }","docstring":""} {"signature":"fun checkMember ( member : KtCallableDeclaration , descriptor : CallableMemberDescriptor )","body":"= DescriptorVisibilities . isPrivate ( descriptor . visibility ) || checkCallableDeclaration ( context , member , descriptor )","docstring":""} {"signature":"private fun TypeParameterDescriptor . varianceWithManual ( )","body":"= if ( manualVariance != null && this . original == manualVariance . descriptor ) manualVariance . variance else variance","docstring":""} {"signature":"fun recordPrivateToThisIfNeeded ( descriptor : CallableMemberDescriptor )","body":"{ if ( isIrrelevant ( descriptor ) || descriptor . visibility != DescriptorVisibilities . PRIVATE ) return val psiElement = descriptor . source . getPsi ( ) as? KtCallableDeclaration ? : return if ( ! checkCallableDeclaration ( context , psiElement , descriptor ) ) { recordPrivateToThis ( descriptor ) } }","docstring":""} {"signature":"private fun checkCallableDeclaration ( trace : BindingContext , declaration : KtCallableDeclaration , descriptor : CallableDescriptor ) : Boolean","body":"{ if ( isIrrelevant ( descriptor ) ) return true var noError = true noError = noError and declaration . checkTypeParameters ( trace , IN_VARIANCE ) noError = noError and declaration . receiverTypeReference ? . checkTypePosition ( trace , IN_VARIANCE ) for ( parameter in declaration . valueParameters ) { noError = noError and parameter . typeReference ? . checkTypePosition ( trace , IN_VARIANCE ) } val returnTypePosition = if ( descriptor is VariableDescriptor && descriptor . isVar ) INVARIANT else OUT_VARIANCE noError = noError and declaration . createTypeBindingForReturnType ( trace ) ? . checkTypePosition ( returnTypePosition ) return noError }","docstring":""} {"signature":"private fun KtTypeParameterListOwner . checkTypeParameters ( trace : BindingContext , typePosition : Variance ) : Boolean","body":"{ var noError = true for ( typeParameter in typeParameters ) { noError = noError and typeParameter . extendsBound ? . checkTypePosition ( trace , typePosition ) } for ( typeConstraint in typeConstraints ) { noError = noError and typeConstraint . boundTypeReference ? . checkTypePosition ( trace , typePosition ) } return noError }","docstring":""} {"signature":"private fun KtTypeReference . checkTypePosition ( trace : BindingContext , position : Variance )","body":"= createTypeBinding ( trace ) ? . checkTypePosition ( position )","docstring":""} {"signature":"private fun TypeBinding < PsiElement > . checkTypePosition ( position : Variance )","body":"= checkTypePosition ( type , position )","docstring":""} {"signature":"private fun TypeBinding < PsiElement > . checkTypePosition ( containingType : KotlinType , position : Variance ) : Boolean","body":"{ val classifierDescriptor = type . constructor . declarationDescriptor if ( classifierDescriptor is TypeParameterDescriptor ) { val declarationVariance = classifierDescriptor . varianceWithManual ( ) if ( ! declarationVariance . allowsPosition ( position ) && ! type . annotations . hasAnnotation ( StandardNames . FqNames . unsafeVariance ) ) { val varianceConflictDiagnosticData = VarianceConflictDiagnosticData ( containingType , classifierDescriptor , position ) when { isArgumentFromQualifier -> diagnosticSink . report ( Errors . TYPE_VARIANCE_CONFLICT . on ( languageVersionSettings ? : LanguageVersionSettingsImpl . DEFAULT , psiElement , varianceConflictDiagnosticData ) ) isInAbbreviation -> diagnosticSink . report ( Errors . TYPE_VARIANCE_CONFLICT_IN_EXPANDED_TYPE . on ( psiElement , varianceConflictDiagnosticData ) ) else -> diagnosticSink . report ( Errors . TYPE_VARIANCE_CONFLICT . errorFactory . on ( psiElement , varianceConflictDiagnosticData ) ) } } return declarationVariance . allowsPosition ( position ) } var noError = true for ( argument in arguments ) { if ( argument ? . typeParameter == null || argument . projection . isStarProjection ) continue val newPosition = when ( TypeCheckingProcedure . getEffectiveProjectionKind ( argument . typeParameter ! ! , argument . projection ) ! ! ) { EnrichedProjectionKind . OUT -> position EnrichedProjectionKind . IN -> position . opposite ( ) EnrichedProjectionKind . INV -> INVARIANT EnrichedProjectionKind . STAR -> null } if ( newPosition != null ) { noError = noError and argument . binding . checkTypePosition ( containingType , newPosition ) } } return noError }","docstring":""} {"signature":"private fun isIrrelevant ( descriptor : CallableDescriptor ) : Boolean","body":"{ val containingClass = descriptor . containingDeclaration as? ClassDescriptor ? : return true return containingClass . typeConstructor . parameters . all { it . varianceWithManual ( ) == INVARIANT } }","docstring":""} {"signature":"private fun recordPrivateToThis ( descriptor : CallableMemberDescriptor )","body":"{ when ( descriptor ) { is FunctionDescriptorImpl -> descriptor . visibility = DescriptorVisibilities . PRIVATE_TO_THIS is PropertyDescriptorImpl -> { descriptor . visibility = DescriptorVisibilities . PRIVATE_TO_THIS for ( accessor in descriptor . accessors ) { ( accessor as PropertyAccessorDescriptorImpl ) . visibility = DescriptorVisibilities . PRIVATE_TO_THIS } } else -> throw IllegalStateException ( \"\" ) } }","docstring":""} {"signature":"private infix fun Boolean . and ( other : Boolean ? )","body":"= if ( other == null ) this else this and other","docstring":""} {"signature":"fun @ receiver : Ann String . f ( ) : String","body":"= \"\"","docstring":""} {"signature":"fun @ receiver : Ann String ? . topLevelF ( ) : String","body":"= \"\"","docstring":""} {"signature":"fun testScalar ( a : Any ) : IntArray","body":"{ if ( a !is Int ) return intArrayOf ( ) return intArrayOf ( a ) }","docstring":""} {"signature":"fun testSpread ( a : Any ) : IntArray","body":"{ if ( a !is IntArray ) return intArrayOf ( ) return intArrayOf ( * a ) }","docstring":""} {"signature":"@ SinceKotlin ( \"\" ) @ ExperimentalUnsignedTypes @ kotlin . internal . InlineOnly public actual inline fun UIntArray . elementAt ( index : Int ) : UInt","body":"{ return get ( index ) }","docstring":"/**\n * Returns an element at the given [index] or throws an [IndexOutOfBoundsException] if the [index] is out of bounds of this array.\n * \n * @sample samples.collections.Collections.Elements.elementAt\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ ExperimentalUnsignedTypes @ kotlin . internal . InlineOnly public actual inline fun ULongArray . elementAt ( index : Int ) : ULong","body":"{ return get ( index ) }","docstring":"/**\n * Returns an element at the given [index] or throws an [IndexOutOfBoundsException] if the [index] is out of bounds of this array.\n * \n * @sample samples.collections.Collections.Elements.elementAt\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ ExperimentalUnsignedTypes @ kotlin . internal . InlineOnly public actual inline fun UByteArray . elementAt ( index : Int ) : UByte","body":"{ return get ( index ) }","docstring":"/**\n * Returns an element at the given [index] or throws an [IndexOutOfBoundsException] if the [index] is out of bounds of this array.\n * \n * @sample samples.collections.Collections.Elements.elementAt\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ ExperimentalUnsignedTypes @ kotlin . internal . InlineOnly public actual inline fun UShortArray . elementAt ( index : Int ) : UShort","body":"{ return get ( index ) }","docstring":"/**\n * Returns an element at the given [index] or throws an [IndexOutOfBoundsException] if the [index] is out of bounds of this array.\n * \n * @sample samples.collections.Collections.Elements.elementAt\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ ExperimentalUnsignedTypes public actual fun UIntArray . asList ( ) : List < UInt >","body":"{ return object : AbstractList < UInt > ( ) , RandomAccess { override val size : Int get ( ) = this@asList . size override fun isEmpty ( ) : Boolean = this@asList . isEmpty ( ) override fun contains ( element : UInt ) : Boolean = this@asList . contains ( element ) override fun get ( index : Int ) : UInt = this@asList [ index ] override fun indexOf ( element : UInt ) : Int = this@asList . indexOf ( element ) override fun lastIndexOf ( element : UInt ) : Int = this@asList . lastIndexOf ( element ) } }","docstring":"/**\n * Returns a [List] that wraps the original array.\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ ExperimentalUnsignedTypes public actual fun ULongArray . asList ( ) : List < ULong >","body":"{ return object : AbstractList < ULong > ( ) , RandomAccess { override val size : Int get ( ) = this@asList . size override fun isEmpty ( ) : Boolean = this@asList . isEmpty ( ) override fun contains ( element : ULong ) : Boolean = this@asList . contains ( element ) override fun get ( index : Int ) : ULong = this@asList [ index ] override fun indexOf ( element : ULong ) : Int = this@asList . indexOf ( element ) override fun lastIndexOf ( element : ULong ) : Int = this@asList . lastIndexOf ( element ) } }","docstring":"/**\n * Returns a [List] that wraps the original array.\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ ExperimentalUnsignedTypes public actual fun UByteArray . asList ( ) : List < UByte >","body":"{ return object : AbstractList < UByte > ( ) , RandomAccess { override val size : Int get ( ) = this@asList . size override fun isEmpty ( ) : Boolean = this@asList . isEmpty ( ) override fun contains ( element : UByte ) : Boolean = this@asList . contains ( element ) override fun get ( index : Int ) : UByte = this@asList [ index ] override fun indexOf ( element : UByte ) : Int = this@asList . indexOf ( element ) override fun lastIndexOf ( element : UByte ) : Int = this@asList . lastIndexOf ( element ) } }","docstring":"/**\n * Returns a [List] that wraps the original array.\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ ExperimentalUnsignedTypes public actual fun UShortArray . asList ( ) : List < UShort >","body":"{ return object : AbstractList < UShort > ( ) , RandomAccess { override val size : Int get ( ) = this@asList . size override fun isEmpty ( ) : Boolean = this@asList . isEmpty ( ) override fun contains ( element : UShort ) : Boolean = this@asList . contains ( element ) override fun get ( index : Int ) : UShort = this@asList [ index ] override fun indexOf ( element : UShort ) : Int = this@asList . indexOf ( element ) override fun lastIndexOf ( element : UShort ) : Int = this@asList . lastIndexOf ( element ) } }","docstring":"/**\n * Returns a [List] that wraps the original array.\n */"} {"signature":"@ Deprecated ( \"\" ) @ SinceKotlin ( \"\" ) @ DeprecatedSinceKotlin ( hiddenSince = \"\" ) @ ExperimentalUnsignedTypes public infix fun UIntArray . contentEquals ( other : UIntArray ) : Boolean","body":"{ return this . contentEquals ( other ) }","docstring":"/**\n * Checks if the two specified arrays are *structurally* equal to one another.\n * \n * Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal.\n * \n * @param other the array to compare with this array.\n * @return `true` if the two arrays are structurally equal, `false` otherwise.\n * \n * @sample samples.collections.Arrays.ContentOperations.intArrayContentEquals\n */"} {"signature":"@ Deprecated ( \"\" ) @ SinceKotlin ( \"\" ) @ DeprecatedSinceKotlin ( hiddenSince = \"\" ) @ ExperimentalUnsignedTypes public infix fun ULongArray . contentEquals ( other : ULongArray ) : Boolean","body":"{ return this . contentEquals ( other ) }","docstring":"/**\n * Checks if the two specified arrays are *structurally* equal to one another.\n * \n * Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal.\n * \n * @param other the array to compare with this array.\n * @return `true` if the two arrays are structurally equal, `false` otherwise.\n * \n * @sample samples.collections.Arrays.ContentOperations.intArrayContentEquals\n */"} {"signature":"@ Deprecated ( \"\" ) @ SinceKotlin ( \"\" ) @ DeprecatedSinceKotlin ( hiddenSince = \"\" ) @ ExperimentalUnsignedTypes public infix fun UByteArray . contentEquals ( other : UByteArray ) : Boolean","body":"{ return this . contentEquals ( other ) }","docstring":"/**\n * Checks if the two specified arrays are *structurally* equal to one another.\n * \n * Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal.\n * \n * @param other the array to compare with this array.\n * @return `true` if the two arrays are structurally equal, `false` otherwise.\n * \n * @sample samples.collections.Arrays.ContentOperations.intArrayContentEquals\n */"} {"signature":"@ Deprecated ( \"\" ) @ SinceKotlin ( \"\" ) @ DeprecatedSinceKotlin ( hiddenSince = \"\" ) @ ExperimentalUnsignedTypes public infix fun UShortArray . contentEquals ( other : UShortArray ) : Boolean","body":"{ return this . contentEquals ( other ) }","docstring":"/**\n * Checks if the two specified arrays are *structurally* equal to one another.\n * \n * Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal.\n * \n * @param other the array to compare with this array.\n * @return `true` if the two arrays are structurally equal, `false` otherwise.\n * \n * @sample samples.collections.Arrays.ContentOperations.intArrayContentEquals\n */"} {"signature":"@ Deprecated ( \"\" ) @ SinceKotlin ( \"\" ) @ DeprecatedSinceKotlin ( hiddenSince = \"\" ) @ ExperimentalUnsignedTypes public fun UIntArray . contentHashCode ( ) : Int","body":"{ return this . contentHashCode ( ) }","docstring":"/**\n * Returns a hash code based on the contents of this array as if it is [List].\n */"} {"signature":"@ Deprecated ( \"\" ) @ SinceKotlin ( \"\" ) @ DeprecatedSinceKotlin ( hiddenSince = \"\" ) @ ExperimentalUnsignedTypes public fun ULongArray . contentHashCode ( ) : Int","body":"{ return this . contentHashCode ( ) }","docstring":"/**\n * Returns a hash code based on the contents of this array as if it is [List].\n */"} {"signature":"@ Deprecated ( \"\" ) @ SinceKotlin ( \"\" ) @ DeprecatedSinceKotlin ( hiddenSince = \"\" ) @ ExperimentalUnsignedTypes public fun UByteArray . contentHashCode ( ) : Int","body":"{ return this . contentHashCode ( ) }","docstring":"/**\n * Returns a hash code based on the contents of this array as if it is [List].\n */"} {"signature":"@ Deprecated ( \"\" ) @ SinceKotlin ( \"\" ) @ DeprecatedSinceKotlin ( hiddenSince = \"\" ) @ ExperimentalUnsignedTypes public fun UShortArray . contentHashCode ( ) : Int","body":"{ return this . contentHashCode ( ) }","docstring":"/**\n * Returns a hash code based on the contents of this array as if it is [List].\n */"} {"signature":"@ Deprecated ( \"\" ) @ SinceKotlin ( \"\" ) @ DeprecatedSinceKotlin ( hiddenSince = \"\" ) @ ExperimentalUnsignedTypes public fun UIntArray . contentToString ( ) : String","body":"{ return this . contentToString ( ) }","docstring":"/**\n * Returns a string representation of the contents of the specified array as if it is [List].\n * \n * @sample samples.collections.Arrays.ContentOperations.contentToString\n */"} {"signature":"@ Deprecated ( \"\" ) @ SinceKotlin ( \"\" ) @ DeprecatedSinceKotlin ( hiddenSince = \"\" ) @ ExperimentalUnsignedTypes public fun ULongArray . contentToString ( ) : String","body":"{ return this . contentToString ( ) }","docstring":"/**\n * Returns a string representation of the contents of the specified array as if it is [List].\n * \n * @sample samples.collections.Arrays.ContentOperations.contentToString\n */"} {"signature":"@ Deprecated ( \"\" ) @ SinceKotlin ( \"\" ) @ DeprecatedSinceKotlin ( hiddenSince = \"\" ) @ ExperimentalUnsignedTypes public fun UByteArray . contentToString ( ) : String","body":"{ return this . contentToString ( ) }","docstring":"/**\n * Returns a string representation of the contents of the specified array as if it is [List].\n * \n * @sample samples.collections.Arrays.ContentOperations.contentToString\n */"} {"signature":"@ Deprecated ( \"\" ) @ SinceKotlin ( \"\" ) @ DeprecatedSinceKotlin ( hiddenSince = \"\" ) @ ExperimentalUnsignedTypes public fun UShortArray . contentToString ( ) : String","body":"{ return this . contentToString ( ) }","docstring":"/**\n * Returns a string representation of the contents of the specified array as if it is [List].\n * \n * @sample samples.collections.Arrays.ContentOperations.contentToString\n */"} {"signature":"internal fun getTaskResult ( event : TaskFinishEvent )","body":"= when ( val result = event . result ) { is TaskSuccessResult -> when { result . isFromCache -> TaskExecutionState . FROM_CACHE result . isUpToDate -> TaskExecutionState . UP_TO_DATE else -> TaskExecutionState . SUCCESS } is TaskSkippedResult -> TaskExecutionState . SKIPPED is TaskFailureResult -> TaskExecutionState . FAILED else -> TaskExecutionState . UNKNOWN }","docstring":""} {"signature":"internal fun prepareData ( event : TaskFinishEvent , projectName : String , uuid : String , label : String ? , kotlinVersion : String , buildOperationRecord : BuildOperationRecord , onlyKotlinTask : Boolean = true , additionalTags : Set < StatTag > = emptySet ( ) , metricsToShow : Set < String > ? = null ) : GradleCompileStatisticsData ?","body":"{ val result = event . result val taskPath = event . descriptor . taskPath return prepareData ( getTaskResult ( event ) , taskPath , result . startTime , result . endTime - result . startTime , projectName , uuid , label , kotlinVersion , buildOperationRecord , onlyKotlinTask , additionalTags , metricsToShow ) }","docstring":""} {"signature":"internal fun prepareData ( taskResult : TaskExecutionState ? , taskPath : String , startTime : Long , finishTime : Long , projectName : String , uuid : String , label : String ? , kotlinVersion : String , buildOperationRecord : BuildOperationRecord , onlyKotlinTask : Boolean = true , additionalTags : Set < StatTag > = emptySet ( ) , metricsToShow : Set < String > ? = null ) : GradleCompileStatisticsData ?","body":"{ if ( onlyKotlinTask && ! ( buildOperationRecord is TaskRecord && buildOperationRecord . isFromKotlinPlugin ) ) { return null } val buildMetrics = buildOperationRecord . buildMetrics val performanceMetrics = collectBuildPerformanceMetrics ( buildMetrics ) val buildTimesMetrics = collectBuildMetrics ( buildMetrics , startTime , System . currentTimeMillis ( ) ) val buildAttributes = collectBuildAttributes ( buildMetrics ) val changes = if ( buildOperationRecord is TaskRecord && buildOperationRecord . changedFiles is SourcesChanges . Known ) { buildOperationRecord . changedFiles . modifiedFiles . map { it . absolutePath } + buildOperationRecord . changedFiles . removedFiles . map { it . absolutePath } } else { emptyList < String > ( ) } val kotlinLanguageVersion = if ( buildOperationRecord is TaskRecord ) buildOperationRecord . kotlinLanguageVersion else null return GradleCompileStatisticsData ( durationMs = buildOperationRecord . totalTimeMs , taskResult = taskResult ? . name , label = label , buildTimesMetrics = filterMetrics ( metricsToShow , buildTimesMetrics ) , performanceMetrics = filterMetrics ( metricsToShow , performanceMetrics ) , projectName = projectName , taskName = taskPath , changes = changes , tags = collectTags ( buildOperationRecord , additionalTags ) , nonIncrementalAttributes = buildAttributes , hostName = BuildReportsService . hostName , kotlinVersion = kotlinVersion , kotlinLanguageVersion = kotlinLanguageVersion ? . version , buildUuid = uuid , compilerArguments = collectCompilerArguments ( buildOperationRecord ) , gcCountMetrics = buildMetrics . gcMetrics . asGcCountMap ( ) , gcTimeMetrics = buildMetrics . gcMetrics . asGcTimeMap ( ) , finishTime = finishTime , startTimeMs = startTime , fromKotlinPlugin = buildOperationRecord . isFromKotlinPlugin , skipMessage = buildOperationRecord . skipMessage , icLogLines = buildOperationRecord . icLogLines ) }","docstring":""} {"signature":"fun collectCompilerArguments ( buildOperationRecord : BuildOperationRecord ? ) : List < String >","body":"{ return if ( buildOperationRecord is TaskRecord ) { buildOperationRecord . compilerArguments . asList ( ) } else emptyList ( ) }","docstring":""} {"signature":"private fun < E : BuildTime > filterMetrics ( expectedMetrics : Set < String > ? , buildTimesMetrics : Map < E , Long > ) : Map < E , Long >","body":"= expectedMetrics ? . let { buildTimesMetrics . filterKeys { metric -> it . contains ( metric . getName ( ) ) } } ? : buildTimesMetrics","docstring":""} {"signature":"private fun collectBuildAttributes ( buildMetrics : BuildMetrics < GradleBuildTime , GradleBuildPerformanceMetric > ? ) : Set < BuildAttribute >","body":"{ return buildMetrics ? . buildAttributes ? . asMap ( ) ? . filter { it . value > } ? . keys ? : emptySet ( ) }","docstring":""} {"signature":"private fun collectBuildPerformanceMetrics ( buildMetrics : BuildMetrics < GradleBuildTime , GradleBuildPerformanceMetric > ? ) : Map < GradleBuildPerformanceMetric , Long >","body":"{ return buildMetrics ? . buildPerformanceMetrics ? . asMap ( ) ? . filterValues { value -> value != } ? . filterKeys { key -> key !in listOf ( GradleBuildPerformanceMetric . START_WORKER_EXECUTION , GradleBuildPerformanceMetric . CALL_WORKER , GradleBuildPerformanceMetric . CALL_KOTLIN_DAEMON , GradleBuildPerformanceMetric . START_KOTLIN_DAEMON_EXECUTION ) } ? : emptyMap ( ) }","docstring":""} {"signature":"private fun collectBuildMetrics ( buildMetrics : BuildMetrics < GradleBuildTime , GradleBuildPerformanceMetric > ? , gradleTaskStartTime : Long ? = null , taskFinishEventTime : Long ? = null , ) : Map < GradleBuildTime , Long >","body":"{ val taskBuildMetrics = HashMap < GradleBuildTime , Long > ( buildMetrics ? . buildTimes ? . asMapMs ( ) ) val performanceMetrics = buildMetrics ? . buildPerformanceMetrics ? . asMap ( ) ? : emptyMap ( ) gradleTaskStartTime ? . let { startTime -> performanceMetrics [ GradleBuildPerformanceMetric . START_TASK_ACTION_EXECUTION ] ? . let { actionStartTime -> taskBuildMetrics . put ( GradleBuildTime . GRADLE_TASK_PREPARATION , actionStartTime - startTime ) } } taskFinishEventTime ? . let { listenerNotificationTime -> performanceMetrics [ GradleBuildPerformanceMetric . FINISH_KOTLIN_DAEMON_EXECUTION ] ? . let { daemonFinishTime -> taskBuildMetrics . put ( GradleBuildTime . TASK_FINISH_LISTENER_NOTIFICATION , listenerNotificationTime - daemonFinishTime ) } } performanceMetrics [ GradleBuildPerformanceMetric . CALL_WORKER ] ? . let { callWorkerTime -> performanceMetrics [ GradleBuildPerformanceMetric . START_WORKER_EXECUTION ] ? . let { startWorkerExecutionTime -> taskBuildMetrics . put ( GradleBuildTime . RUN_WORKER_DELAY , TimeUnit . NANOSECONDS . toMillis ( startWorkerExecutionTime - callWorkerTime ) ) } } return taskBuildMetrics . filterValues { value -> value != } }","docstring":""} {"signature":"private fun collectTags ( buildOperation : BuildOperationRecord ? , additionalTags : Set < StatTag > ) : Set < StatTag >","body":"{ val tags = HashSet ( additionalTags ) if ( buildOperation is TaskRecord ) { tags . addAll ( collectTaskRecordTags ( buildOperation ) ) } val nonIncrementalAttributes = collectBuildAttributes ( buildOperation ? . buildMetrics ) if ( nonIncrementalAttributes . isEmpty ( ) ) { tags . add ( StatTag . INCREMENTAL ) } else { tags . add ( StatTag . NON_INCREMENTAL ) } return tags }","docstring":""} {"signature":"private fun collectTaskRecordTags ( taskRecord : TaskRecord ? , ) : Set < StatTag >","body":"{ val tags = HashSet < StatTag > ( ) taskRecord ? . kotlinLanguageVersion ? . also { tags . add ( getLanguageVersionTag ( it ) ) } taskRecord ? . statTags ? . let { tags . addAll ( it ) } return tags }","docstring":""} {"signature":"private fun getLanguageVersionTag ( languageVersion : KotlinVersion ) : StatTag","body":"{ return when { languageVersion < KotlinVersion . KOTLIN_2_0 -> StatTag . KOTLIN_1 else -> StatTag . KOTLIN_2 } }","docstring":""} {"signature":"fun A . create ( init : A . ( ) -> Unit ) : A","body":"{ init ( ) return this }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val a = A ( ) . create { c = + t } if ( a . c != ) return \"\" return \"\" }","docstring":""} {"signature":"private fun Expect < Struct > . isOfType ( type : String )","body":"{ feature { f ( it :: type ) } . toEqual ( type ) }","docstring":""} {"signature":"private fun hasStruct ( name : String , expectedField : Expect < StructField > . ( ) -> Unit , vararg expectedFields : Expect < StructField > . ( ) -> Unit , ) : Expect < StructField > . ( ) -> Unit","body":"{ return { feature { f ( it :: name ) } . toEqual ( name ) feature { f ( it :: type ) } . toBeAnInstanceOf ( fun Expect < StructType > . ( ) { feature { f ( it . value :: fields ) } . notToEqualNull ( ) . toContain . inAnyOrder . only . entries ( expectedField , * expectedFields ) } ) } }","docstring":""} {"signature":"private fun hasField ( name : String , type : String ) : Expect < StructField > . ( ) -> Unit","body":"= { feature { f ( it :: name ) } . toEqual ( name ) feature { f ( it :: type ) } . isA < TypeName > ( ) . feature { f ( it :: value ) } . toEqual ( type ) }","docstring":""} {"signature":"fun < T > shuffle ( x : List < T > ) : List < T >","body":"= x","docstring":""} {"signature":"fun bar ( )","body":"{ val s : ( List < String > ) -> List < String > = :: shuffle }","docstring":""} {"signature":"fun f ( ) : Iterable < Number >","body":"{ return Iterable ( { iterator ( { var i = while ( i <= ) { yield ( i ) i ++ } } ) } ) }","docstring":""} {"signature":"fun g ( ) : Iterable < Number >","body":"{ return Iterable ( { iterator ( { yieldAll ( f ( ) ) yieldAll ( f ( ) ) } ) } ) }","docstring":""} {"signature":"fun h ( )","body":"{ for ( x in g ( ) ) { console . log ( x ) } }","docstring":""} {"signature":"override fun containsKey ( key : Any ) : Boolean","body":"= true","docstring":""} {"signature":"override fun containsValue ( value : Any ) : Boolean","body":"= true","docstring":""} {"signature":"override fun get ( key : Any ) : Any ?","body":"= Any ( )","docstring":""} {"signature":"override fun remove ( key : Any ) : Any ?","body":"= Any ( )","docstring":""} {"signature":"override fun isEmpty ( ) : Boolean","body":"= true","docstring":""} {"signature":"override fun put ( key : Any , value : Any ) : Any ?","body":"= throw UnsupportedOperationException ( )","docstring":""} {"signature":"override fun putAll ( from : Map < out Any , Any > ) : Unit","body":"= throw UnsupportedOperationException ( )","docstring":""} {"signature":"override fun clear ( ) : Unit","body":"= throw UnsupportedOperationException ( )","docstring":""} {"signature":"fun box ( ) : String","body":"{ val n = NotEmptyMap as MutableMap < Any ? , Any ? > if ( n . get ( null ) != null ) return \"\" if ( n . containsKey ( null ) ) return \"\" if ( n . containsValue ( null ) ) return \"\" if ( n . remove ( null ) != null ) return \"\" if ( n . get ( \"\" ) == null ) return \"\" if ( ! n . containsKey ( \"\" ) ) return \"\" if ( ! n . containsValue ( \"\" ) ) return \"\" if ( n . remove ( \"\" ) == null ) return \"\" return \"\" }","docstring":""} {"signature":"protected fun findFirDeclarationToResolve ( ktFile : KtFile , testServices : TestServices , firResolveSession : LLFirResolveSession , ) : Pair < FirElementWithResolveState , ( ( FirResolvePhase ) -> Unit ) >","body":"= when { Directives . RESOLVE_FILE in testServices . moduleStructure . allDirectives -> { val session = firResolveSession . useSiteFirSession as LLFirResolvableModuleSession val file = session . moduleComponents . firFileBuilder . buildRawFirFileWithCaching ( ktFile ) file to fun ( phase : FirResolvePhase ) { file . lazyResolveToPhaseByDirective ( phase , testServices ) } } else -> { val ktDeclaration = if ( Directives . RESOLVE_SCRIPT in testServices . moduleStructure . allDirectives ) { ktFile . script ! ! } else { testServices . expressionMarkerProvider . getElementOfTypeAtCaret < KtDeclaration > ( ktFile ) } val declarationSymbol = ktDeclaration . resolveToFirSymbol ( firResolveSession ) val firDeclaration = chooseMemberDeclarationIfNeeded ( declarationSymbol , testServices . moduleStructure , firResolveSession ) . fir firDeclaration to fun ( phase : FirResolvePhase ) { firDeclaration . lazyResolveToPhaseByDirective ( phase , testServices ) } } }","docstring":""} {"signature":"protected fun chooseMemberDeclarationIfNeeded ( symbol : FirBasedSymbol < * > , moduleStructure : TestModuleStructure , session : LLFirResolveSession , ) : FirBasedSymbol < * >","body":"{ val directives = moduleStructure . allDirectives val memberClassFilters = listOfNotNull ( directives . singleOrZeroValue ( Directives . MEMBER_CLASS_FILTER ) , directives . singleOrZeroValue ( Directives . MEMBER_NAME_FILTER ) , ) . ifEmpty { return symbol } val ( classSymbol , declarations ) = when ( symbol ) { is FirClassSymbol -> symbol to symbol . declarationSymbols is FirScriptSymbol -> { symbol to symbol . fir . let { it . parameters + it . declarations } . map { it . symbol } } else -> error ( \"\" ) } val filter = { declaration : FirBasedSymbol < * > -> memberClassFilters . all { it . invoke ( declaration ) } } val filteredSymbols = declarations . filter ( filter ) return when ( filteredSymbols . size ) { -> { ( classSymbol as? FirClassSymbol ) ? . let { deepSearch ( it , session , filter ) } ? : error ( \"\" ) } -> filteredSymbols . single ( ) else -> error ( \"\" ) } . let { resultSymbol -> val isGetter = directives . singleOrZeroValue ( Directives . IS_GETTER ) if ( isGetter == null ) { resultSymbol } else { requireIsInstance < FirPropertySymbol > ( resultSymbol ) if ( isGetter ) resultSymbol . getterSymbol ! ! else resultSymbol . setterSymbol ! ! } } }","docstring":""} {"signature":"private fun deepSearch ( classSymbol : FirClassSymbol < * > , session : LLFirResolveSession , filter : ( FirBasedSymbol < * > ) -> Boolean , ) : FirBasedSymbol < * > ?","body":"{ val baseScope = classSymbol . unsubstitutedScope ( session . useSiteFirSession , session . getScopeSessionFor ( session . useSiteFirSession ) , false , FirResolvePhase . STATUS , ) val scopes : List < FirContainingNamesAwareScope > = listOfNotNull ( baseScope , FirSyntheticPropertiesScope . createIfSyntheticNamesProviderIsDefined ( session . useSiteFirSession , classSymbol . defaultType ( ) , baseScope , ) ) val declarations = mutableListOf < FirBasedSymbol < * > > ( ) for ( typeScope in scopes ) { val names = typeScope . getCallableNames ( ) for ( name in names ) { typeScope . processFunctionsByName ( name ) { if ( filter ( it ) ) { declarations += it } } typeScope . processPropertiesByName ( name ) { if ( filter ( it ) ) { declarations += it } } typeScope . processDeclaredConstructors { if ( filter ( it ) ) { declarations += it } } } } return declarations . singleOrNull ( ) ? : error ( \"\" ) }","docstring":""} {"signature":"override fun configureTest ( builder : TestConfigurationBuilder )","body":"{ super . configureTest ( builder ) with ( builder ) { useDirectives ( Directives ) } }","docstring":""} {"signature":"protected fun FirElementWithResolveState . lazyResolveToPhaseByDirective ( toPhase : FirResolvePhase , testServices : TestServices )","body":"{ when ( testServices . moduleStructure . allDirectives . singleOrZeroValue ( Directives . LAZY_MODE ) ) { LazyResolveMode . Regular , null -> lazyResolveToPhase ( toPhase ) LazyResolveMode . Recursive -> lazyResolveToPhaseRecursively ( toPhase ) LazyResolveMode . WithCallableMembers -> { if ( this !is FirClass ) { error ( \"\" + \"\" ) } lazyResolveToPhaseWithCallableMembers ( toPhase ) } } }","docstring":""} {"signature":"internal fun lazyResolveRenderer ( builder : StringBuilder ) : FirRenderer","body":"= FirRenderer ( builder = builder , declarationRenderer = FirDeclarationRendererWithFilteredAttributes ( ) , resolvePhaseRenderer = FirResolvePhaseRenderer ( ) , errorExpressionRenderer = FirErrorExpressionExtendedRenderer ( ) , )","docstring":""} {"signature":"internal operator fun List < FirFile > . contains ( element : FirElementWithResolveState ) : Boolean","body":"= if ( element is FirFile ) { element in this } else { any { file -> findElementIn < FirElementWithResolveState > ( file ) { it == element } != null } }","docstring":""} {"signature":"abstract fun markDiagnostic ( diagnostic : KtDiagnostic ) : List < TextRange >","body":"abstract fun markDiagnostic ( diagnostic : KtDiagnostic ) : List < TextRange >","docstring":""} {"signature":"abstract fun isValid ( element : AbstractKtSourceElement ) : Boolean","body":"abstract fun isValid ( element : AbstractKtSourceElement ) : Boolean","docstring":""} {"signature":"@ ParameterizedTest ( name = \"\" ) @ ArgumentsSource ( AllSupportedTestedVersionsArgumentsProvider :: class ) fun execute ( buildVersions : BuildVersions )","body":"{ runAndAssertOutcomeAndContents ( buildVersions , TaskOutcome . SUCCESS ) runAndAssertOutcomeAndContents ( buildVersions , TaskOutcome . FROM_CACHE ) }","docstring":""} {"signature":"@ ParameterizedTest ( name = \"\" ) @ ArgumentsSource ( AllSupportedTestedVersionsArgumentsProvider :: class ) fun localDirectoryPointingToRoot ( buildVersions : BuildVersions )","body":"{ fun String . findAndReplace ( oldValue : String , newValue : String ) : String { assertTrue ( oldValue in this , \"\" ) return replace ( oldValue , newValue ) } val projectKts = projectDir . resolve ( \"\" ) projectKts . readText ( ) . findAndReplace ( \"\" , \"\" , ) . findAndReplace ( \"\" , \"\" , ) . also { projectKts . writeText ( it ) } runAndAssertOutcomeAndContents ( buildVersions , TaskOutcome . SUCCESS ) projectDir . resolve ( \"\" ) . writeText ( \"\" ) runAndAssertOutcomeAndContents ( buildVersions , TaskOutcome . FROM_CACHE ) projectKts . readText ( ) . findAndReplace ( \"\" , \"\" ) . also { projectKts . writeText ( it ) } runAndAssertOutcome ( buildVersions , TaskOutcome . SUCCESS ) }","docstring":""} {"signature":"private fun runAndAssertOutcomeAndContents ( buildVersions : BuildVersions , expectedOutcome : TaskOutcome )","body":"{ runAndAssertOutcome ( buildVersions , expectedOutcome ) File ( projectDir , \"\" ) . assertHtmlOutputDir ( ) }","docstring":""} {"signature":"private fun runAndAssertOutcome ( buildVersions : BuildVersions , expectedOutcome : TaskOutcome )","body":"{ val result = createGradleRunner ( buildVersions , \"\" , \"\" , \"\" , \"\" , \"\" , \"\" ) . buildRelaxed ( ) assertEquals ( expectedOutcome , assertNotNull ( result . task ( \"\" ) ) . outcome ) }","docstring":""} {"signature":"override fun serializeSingleFileMetadata ( file : FirFile ) : ProtoBuf . PackageFragment","body":"{ val session : FirSession val scopeSession : ScopeSession val firProvider : FirProvider val components = fir2IrActualizedResult ? . components if ( components != null ) { session = components . session scopeSession = components . scopeSession firProvider = components . firProvider } else { val sessionAndScopeSession = firFilesAndSessions [ file ] ? : error ( \"\" ) session = sessionAndScopeSession . first scopeSession = sessionAndScopeSession . second firProvider = session . firProvider } return serializeSingleFirFile ( file , session , scopeSession , actualizedExpectDeclarations , FirKLibSerializerExtension ( session , scopeSession , firProvider , metadataVersion , components ? . let ( :: ConstValueProviderImpl ) , allowErrorTypes = false , exportKDoc , components ? . annotationsFromPluginRegistrar ? . createAdditionalMetadataProvider ( ) , ) , languageVersionSettings , produceHeaderKlib , ) }","docstring":""} {"signature":"override fun forEachFile ( block : ( Int , FirFile , KtSourceFile , FqName ) -> Unit )","body":"{ firFilesAndSessions . keys . forEachIndexed { i , firFile -> block ( i , firFile , firFile . sourceFile ! ! , firFile . packageFqName ) } }","docstring":""} {"signature":"fun getNested ( )","body":"= ReturnNestedFQ . getNested ( )","docstring":""} {"signature":"fun box ( )","body":"= X . B . value","docstring":""} {"signature":"override fun getScriptConfigurationResult ( file : KtFile ) : ScriptCompilationConfigurationResult ?","body":"= cacheLock . read { calculateRefinedConfiguration ( file , null ) }","docstring":""} {"signature":"override fun getScriptConfigurationResult ( file : KtFile , providedConfiguration : ScriptCompilationConfiguration ? ) : ScriptCompilationConfigurationResult ?","body":"= cacheLock . read { calculateRefinedConfiguration ( file , providedConfiguration ) }","docstring":""} {"signature":"private fun calculateRefinedConfiguration ( file : KtFile , providedConfiguration : ScriptCompilationConfiguration ? ) : ScriptCompilationConfigurationResult ?","body":"{ val path = file . virtualFilePath val cached = cache [ path ] return if ( cached != null ) cached else { val scriptDef = file . findScriptDefinition ( ) if ( scriptDef != null ) { val result = refineScriptCompilationConfiguration ( KtFileScriptSource ( file ) , scriptDef , project , providedConfiguration , knownVirtualFileSources ) project . getService ( ScriptReportSink :: class . java ) ? . attachReports ( file . virtualFile , result . reports ) cacheLock . write { cache . put ( path , result ) } result } else null } }","docstring":""} {"signature":"fun unwindInstructions ( irFunction : IrFunction , environment : IrInterpreterEnvironment ) : List < Instruction > ?","body":"{ val fqName = irFunction . fqName return fqNameToHandler [ fqName ] ? . unwind ( irFunction , environment ) ? : when { EnumIntrinsics . canHandleFunctionWithName ( fqName , irFunction . origin ) -> EnumIntrinsics . unwind ( irFunction , environment ) else -> null } }","docstring":""} {"signature":"override fun PageContentBuilder . DocumentableContentBuilder . annotationsBlock ( d : AnnotationTarget )","body":"{ annotationsBlockWithIgnored ( d , ignoredAnnotations , strategy , listBrackets , classExtension ) }","docstring":""} {"signature":"override fun PageContentBuilder . DocumentableContentBuilder . annotationsInline ( d : AnnotationTarget )","body":"{ annotationsInlineWithIgnored ( d , ignoredAnnotations , strategy , listBrackets , classExtension ) }","docstring":""} {"signature":"override fun < T : Documentable > WithExtraProperties < T > . modifiers ( ) : SourceSetDependent < Set < ExtraModifiers > >","body":"{ return extra [ AdditionalModifiers ] ? . content ? . entries ? . associate { it . key to it . value . filterIsInstance < ExtraModifiers . KotlinOnlyModifiers > ( ) . toSet ( ) } ? : emptyMap ( ) }","docstring":""} {"signature":"override fun Annotations . Annotation . isIgnored ( ) : Boolean","body":"= this in ignoredAnnotations","docstring":""} {"signature":"fun test ( )","body":"{ Fo < caret > o ( ) }","docstring":""} {"signature":"override fun check ( declaration : KtDeclaration , descriptor : DeclarationDescriptor , context : DeclarationCheckerContext )","body":"{ if ( ! AnnotationsUtils . isNativeObject ( descriptor ) ) return val trace = context . trace if ( ! DescriptorUtils . isTopLevelDeclaration ( descriptor ) ) { if ( isDirectlyExternal ( declaration , descriptor ) && descriptor !is PropertyAccessorDescriptor ) { trace . report ( ErrorsJs . NESTED_EXTERNAL_DECLARATION . on ( declaration ) ) } } if ( descriptor is ClassDescriptor ) { val classKind = when { descriptor . isData -> \"\" descriptor . isInner -> \"\" descriptor . isInline -> \"\" descriptor . isValue -> \"\" descriptor . isFun -> \"\" DescriptorUtils . isAnnotationClass ( descriptor ) -> \"\" else -> null } if ( classKind != null ) { trace . report ( ErrorsJs . WRONG_EXTERNAL_DECLARATION . on ( declaration , classKind ) ) } if ( DescriptorUtils . isEnumClass ( descriptor ) && context . moduleDescriptor . platform ? . isWasm ( ) != true ) { trace . report ( ErrorsJs . ENUM_CLASS_IN_EXTERNAL_DECLARATION_WARNING . on ( declaration ) ) } } if ( descriptor is PropertyAccessorDescriptor && isDirectlyExternal ( declaration , descriptor ) ) { trace . report ( ErrorsJs . WRONG_EXTERNAL_DECLARATION . on ( declaration , \"\" ) ) } else if ( descriptor !is ConstructorDescriptor && descriptor !is FieldDescriptor && isPrivateMemberOfExternalClass ( descriptor ) ) { trace . report ( ErrorsJs . WRONG_EXTERNAL_DECLARATION . on ( declaration , \"\" ) ) } val containingDeclarationsIsInterface = descriptor . containingDeclaration . let { it is ClassDescriptor && it . kind == ClassKind . INTERFACE } if ( descriptor is ClassDescriptor && descriptor . kind != ClassKind . INTERFACE && ( ! allowCompanionInInterface || ! descriptor . isCompanionObject ) && containingDeclarationsIsInterface ) { trace . report ( ErrorsJs . NESTED_CLASS_IN_EXTERNAL_INTERFACE . on ( declaration ) ) } if ( allowCompanionInInterface && descriptor . isCompanionObject ( ) && containingDeclarationsIsInterface && descriptor . name != DEFAULT_NAME_FOR_COMPANION_OBJECT ) { trace . report ( ErrorsJs . NAMED_COMPANION_IN_EXTERNAL_INTERFACE . on ( declaration ) ) } if ( descriptor !is PropertyAccessorDescriptor && descriptor . isExtension ) { val target = when ( descriptor ) { is FunctionDescriptor -> \"\" is PropertyDescriptor -> \"\" else -> \"\" } trace . report ( ErrorsJs . WRONG_EXTERNAL_DECLARATION . on ( declaration , target ) ) } if ( descriptor is ClassDescriptor && descriptor . kind != ClassKind . ANNOTATION_CLASS ) { val superClasses = ( listOfNotNull ( descriptor . getSuperClassNotAny ( ) ) + descriptor . getSuperInterfaces ( ) ) . toMutableSet ( ) if ( descriptor . kind == ClassKind . ENUM_CLASS || descriptor . kind == ClassKind . ENUM_ENTRY ) { superClasses . removeAll { it . fqNameUnsafe == StandardNames . FqNames . _enum } } if ( superClasses . any { ! AnnotationsUtils . isNativeObject ( it ) && it . fqNameSafe != StandardNames . FqNames . throwable } ) { trace . report ( ErrorsJs . EXTERNAL_TYPE_EXTENDS_NON_EXTERNAL_TYPE . on ( declaration ) ) } } if ( descriptor is FunctionDescriptor && descriptor . isInline ) { trace . report ( ErrorsJs . INLINE_EXTERNAL_DECLARATION . on ( declaration ) ) } fun reportOnParametersAndReturnTypesIf ( diagnosticFactory : DiagnosticFactory0 < KtElement > , condition : ( KotlinType ) -> Boolean ) { if ( descriptor is CallableMemberDescriptor && ! ( descriptor is PropertyAccessorDescriptor && descriptor . isDefault ) ) { fun checkTypeIsNotInlineClass ( type : KotlinType , elementToReport : KtElement ) { if ( condition ( type ) ) { trace . report ( diagnosticFactory . on ( elementToReport ) ) } } for ( p in descriptor . valueParameters ) { val ktParam = p . source . getPsi ( ) as? KtParameter ? : declaration checkTypeIsNotInlineClass ( p . varargElementType ? : p . type , ktParam ) } val elementToReport = when ( declaration ) { is KtCallableDeclaration -> declaration . typeReference is KtPropertyAccessor -> declaration . returnTypeReference else -> declaration } elementToReport ? . let { checkTypeIsNotInlineClass ( descriptor . returnType ! ! , it ) } } } val valueClassInExternalDiagnostic = if ( context . languageVersionSettings . supportsFeature ( LanguageFeature . JsAllowValueClassesInExternals ) ) ErrorsJs . INLINE_CLASS_IN_EXTERNAL_DECLARATION_WARNING else ErrorsJs . INLINE_CLASS_IN_EXTERNAL_DECLARATION reportOnParametersAndReturnTypesIf ( valueClassInExternalDiagnostic , KotlinType :: isInlineClassType ) if ( ! context . languageVersionSettings . supportsFeature ( LanguageFeature . JsEnableExtensionFunctionInExternals ) ) { reportOnParametersAndReturnTypesIf ( ErrorsJs . EXTENSION_FUNCTION_IN_EXTERNAL_DECLARATION , KotlinType :: isExtensionFunctionType ) } if ( descriptor is CallableMemberDescriptor && descriptor . isNonAbstractMemberOfInterface ( ) && ! descriptor . isNullableProperty ( ) ) { trace . report ( ErrorsJs . NON_ABSTRACT_MEMBER_OF_EXTERNAL_INTERFACE . on ( declaration ) ) } checkBody ( declaration , descriptor , trace , trace . bindingContext ) checkDelegation ( declaration , descriptor , trace ) checkAnonymousInitializer ( declaration , trace ) checkEnumEntry ( declaration , trace ) if ( ! context . languageVersionSettings . supportsFeature ( LanguageFeature . JsExternalPropertyParameters ) ) { checkConstructorPropertyParam ( declaration , descriptor , trace ) } }","docstring":""} {"signature":"private fun checkBody ( declaration : KtDeclaration , descriptor : DeclarationDescriptor , diagnosticHolder : DiagnosticSink , bindingContext : BindingContext )","body":"{ if ( declaration is KtProperty && descriptor is PropertyAccessorDescriptor ) return if ( declaration is KtDeclarationWithBody && ! declaration . hasValidExternalBody ( bindingContext ) ) { diagnosticHolder . report ( ErrorsJs . WRONG_BODY_OF_EXTERNAL_DECLARATION . on ( declaration . bodyExpression ! ! ) ) } else if ( declaration is KtDeclarationWithInitializer && declaration . initializer ? . isDefinedExternallyExpression ( bindingContext ) == false ) { diagnosticHolder . report ( ErrorsJs . WRONG_INITIALIZER_OF_EXTERNAL_DECLARATION . on ( declaration . initializer ! ! ) ) } if ( declaration is KtCallableDeclaration ) { for ( defaultValue in declaration . valueParameters . mapNotNull { it . defaultValue } ) { if ( ! defaultValue . isDefinedExternallyExpression ( bindingContext ) ) { diagnosticHolder . report ( ErrorsJs . WRONG_DEFAULT_VALUE_FOR_EXTERNAL_FUN_PARAMETER . on ( defaultValue ) ) } } } }","docstring":""} {"signature":"private fun checkDelegation ( declaration : KtDeclaration , descriptor : DeclarationDescriptor , diagnosticHolder : DiagnosticSink )","body":"{ if ( descriptor !is MemberDescriptor || ! descriptor . isEffectivelyExternal ( ) ) return if ( declaration is KtClassOrObject ) { for ( superTypeEntry in declaration . superTypeListEntries ) { when ( superTypeEntry ) { is KtSuperTypeCallEntry -> { diagnosticHolder . report ( ErrorsJs . EXTERNAL_DELEGATED_CONSTRUCTOR_CALL . on ( superTypeEntry . valueArgumentList ! ! ) ) } is KtDelegatedSuperTypeEntry -> { diagnosticHolder . report ( ErrorsJs . EXTERNAL_DELEGATION . on ( superTypeEntry ) ) } } } } else if ( declaration is KtSecondaryConstructor ) { val delegationCall = declaration . getDelegationCall ( ) if ( ! delegationCall . isImplicit ) { diagnosticHolder . report ( ErrorsJs . EXTERNAL_DELEGATED_CONSTRUCTOR_CALL . on ( delegationCall ) ) } } else if ( declaration is KtProperty && descriptor !is PropertyAccessorDescriptor ) { declaration . delegate ? . let { delegate -> diagnosticHolder . report ( ErrorsJs . EXTERNAL_DELEGATION . on ( delegate ) ) } } }","docstring":""} {"signature":"private fun checkAnonymousInitializer ( declaration : KtDeclaration , diagnosticHolder : DiagnosticSink )","body":"{ if ( declaration !is KtClassOrObject ) return for ( anonymousInitializer in declaration . getAnonymousInitializers ( ) ) { diagnosticHolder . report ( ErrorsJs . EXTERNAL_ANONYMOUS_INITIALIZER . on ( anonymousInitializer ) ) } }","docstring":""} {"signature":"private fun checkEnumEntry ( declaration : KtDeclaration , diagnosticHolder : DiagnosticSink )","body":"{ if ( declaration !is KtEnumEntry ) return declaration . body ? . let { diagnosticHolder . report ( ErrorsJs . EXTERNAL_ENUM_ENTRY_WITH_BODY . on ( it ) ) } }","docstring":""} {"signature":"private fun checkConstructorPropertyParam ( declaration : KtDeclaration , descriptor : DeclarationDescriptor , diagnosticHolder : DiagnosticSink )","body":"{ if ( descriptor !is PropertyDescriptor || declaration !is KtParameter ) return val containingClass = descriptor . containingDeclaration as ClassDescriptor if ( containingClass . isData || DescriptorUtils . isAnnotationClass ( containingClass ) ) return diagnosticHolder . report ( ErrorsJs . EXTERNAL_CLASS_CONSTRUCTOR_PROPERTY_PARAMETER . on ( declaration ) ) }","docstring":""} {"signature":"private fun isDirectlyExternal ( declaration : KtDeclaration , descriptor : DeclarationDescriptor ) : Boolean","body":"{ if ( declaration is KtProperty && descriptor is PropertyAccessorDescriptor ) return false return declaration . hasModifier ( KtTokens . EXTERNAL_KEYWORD ) || AnnotationsUtils . hasAnnotation ( descriptor , PredefinedAnnotation . NATIVE ) }","docstring":""} {"signature":"private fun isPrivateMemberOfExternalClass ( descriptor : DeclarationDescriptor ) : Boolean","body":"{ if ( descriptor is PropertyAccessorDescriptor && descriptor . visibility == descriptor . correspondingProperty . visibility ) return false if ( descriptor !is MemberDescriptor || descriptor . visibility != DescriptorVisibilities . PRIVATE ) return false val containingDeclaration = descriptor . containingDeclaration as? ClassDescriptor ? : return false return AnnotationsUtils . isNativeObject ( containingDeclaration ) }","docstring":""} {"signature":"private fun CallableMemberDescriptor . isNonAbstractMemberOfInterface ( )","body":"= modality != Modality . ABSTRACT && DescriptorUtils . isInterface ( containingDeclaration ) && this !is PropertyAccessorDescriptor","docstring":""} {"signature":"private fun CallableMemberDescriptor . isNullableProperty ( )","body":"= this is PropertyDescriptor && TypeUtils . isNullableType ( type )","docstring":""} {"signature":"private fun KtDeclarationWithBody . hasValidExternalBody ( bindingContext : BindingContext ) : Boolean","body":"{ if ( ! hasBody ( ) ) return true val body = bodyExpression ! ! return when { ! hasBlockBody ( ) -> body . isDefinedExternallyExpression ( bindingContext ) body is KtBlockExpression -> { val statement = body . statements . singleOrNull ( ) ? : return false statement . isDefinedExternallyExpression ( bindingContext ) } else -> false } }","docstring":""} {"signature":"private fun KtExpression . isDefinedExternallyExpression ( bindingContext : BindingContext ) : Boolean","body":"{ val descriptor = getResolvedCall ( bindingContext ) ? . resultingDescriptor as? PropertyDescriptor ? : return false val container = descriptor . containingDeclaration as? PackageFragmentDescriptor ? : return false return DEFINED_EXTERNALLY_PROPERTY_NAMES . any { container . fqNameUnsafe == it . parent ( ) && descriptor . name == it . shortName ( ) } }","docstring":""} {"signature":"@ A1 ( , , ) @ A2 ( \"\" , \"\" , \"\" ) @ AA ( A1 ( ) , A1 ( ) , A1 ( ) ) fun test1 ( )","body":"{ }","docstring":""} {"signature":"@ A1 ( ) @ A2 ( ) @ AA ( ) fun test2 ( )","body":"{ }","docstring":""} {"signature":"fun ok ( )","body":"= \"\"","docstring":""} {"signature":"fun box ( ) : String","body":"{ val klass = Obj . Inner :: class . java val cons = klass . getConstructors ( ) ! ! [ ] val inner = cons . newInstance ( * ( arrayOfNulls < String > ( ) as Array < String > ) ) return \"\" }","docstring":""} {"signature":"fun < S : T > takeFoo ( foo : Foo < in S > )","body":"{ }","docstring":""} {"signature":"fun < K : L , L : N , N : Number > main ( )","body":"{ val foo = Foo < K > ( ) Bar < Int > ( ) . takeFoo ( foo ) }","docstring":""} {"signature":"fun readNumbers ( text : String ) : List < Int ? >","body":"{ val result = mutableListOf < Int ? > ( ) for ( line in text . lineSequence ( ) ) { val numberOrNull = line . toIntOrNull ( ) result . add ( numberOrNull ) } return result }","docstring":""} {"signature":"fun addValidNumbers ( numbers : List < Int ? > )","body":"{ var sumOfValidNumbers = var invalidNumbers = for ( number in numbers ) { if ( number != null ) { sumOfValidNumbers += number } else { invalidNumbers ++ } } println ( \"\" ) println ( \"\" ) }","docstring":""} {"signature":"fun main ( )","body":"{ val input = \"\"\"\"\"\" . trimIndent ( ) val numbers = readNumbers ( input ) addValidNumbers ( numbers ) }","docstring":""} {"signature":"fun useCbaz ( )","body":"{ createC ( ) . baz ( ) }","docstring":""} {"signature":"inline fun < reified T : CharSequence > f ( x : Array < out Any > )","body":"= x as Array < T >","docstring":""} {"signature":"fun box ( ) : String","body":"= try { f < String > ( arrayOf < Int > ( ) ) \"\" } catch ( e : Exception ) { \"\" }","docstring":""} {"signature":"@ DisplayName ( \"\" ) @ GradleAndroidTest fun generateStubsTaskShouldRunIncrementallyOnChangesInAndroidVariantJavaSources ( gradleVersion : GradleVersion , agpVersion : String , jdkVersion : JdkVersions . ProvidedJdk , )","body":"{ project ( \"\" . withPrefix , gradleVersion , buildOptions = defaultBuildOptions . copy ( androidVersion = agpVersion ) , buildJdk = jdkVersion . location ) { val javaFile = subProject ( \"\" ) . javaSourcesDir ( ) . resolve ( \"\" ) javaFile . writeText ( \"\"\"\"\"\" . trimIndent ( ) ) build ( \"\" ) { assertTasksExecuted ( \"\" ) } javaFile . writeText ( \"\"\"\"\"\" . trimIndent ( ) ) build ( \"\" ) { assertTasksExecuted ( \"\" ) assertOutputDoesNotContain ( \"\" ) } } }","docstring":""} {"signature":"@ DisplayName ( \"\" ) @ GradleAndroidTest fun testAndroidDaggerIC ( gradleVersion : GradleVersion , agpVersion : String , jdkVersion : JdkVersions . ProvidedJdk , )","body":"{ project ( \"\" , gradleVersion , buildOptions = defaultBuildOptions . copy ( androidVersion = agpVersion ) , buildJdk = jdkVersion . location ) { build ( \"\" ) val androidModuleKt = subProject ( \"\" ) . javaSourcesDir ( ) . resolve ( \"\" ) androidModuleKt . modify { it . replace ( \"\" , \"\" ) } build ( \"\" , buildOptions = buildOptions . copy ( logLevel = LogLevel . DEBUG ) ) { assertTasksExecuted ( \"\" , \"\" , \"\" , \"\" ) val filteredOutput = output . lineSequence ( ) . filter { it . contains ( \"\" ) } . drop ( ) . joinToString ( separator = \"\" ) assertCompiledKotlinSources ( listOf ( androidModuleKt ) . relativizeTo ( projectPath ) , output = filteredOutput ) } } }","docstring":""} {"signature":"@ DisplayName ( \"\" ) @ GradleAndroidTest fun testAndroidWithKaptIncremental ( gradleVersion : GradleVersion , agpVersion : String , jdkVersion : JdkVersions . ProvidedJdk , )","body":"{ project ( \"\" , gradleVersion , buildOptions = defaultBuildOptions . copy ( androidVersion = agpVersion ) , buildJdk = jdkVersion . location ) { val appProject = subProject ( \"\" ) appProject . buildGradle . modify { \"\"\"\"\"\" . trimMargin ( ) } build ( \"\" ) appProject . kotlinSourcesDir ( ) . resolve ( \"\" ) . appendText ( \"\"\"\"\"\" . trimIndent ( ) ) build ( \"\" ) { assertOutputDoesNotContain ( NON_INCREMENTAL_COMPILATION_WILL_BE_PERFORMED ) } } }","docstring":""} {"signature":"@ DisplayName ( \"\" ) @ GradleAndroidTest fun testInterProjectIC ( gradleVersion : GradleVersion , agpVersion : String , jdkVersion : JdkVersions . ProvidedJdk , )","body":"{ project ( \"\" . withPrefix , gradleVersion , buildOptions = defaultBuildOptions . copy ( androidVersion = agpVersion ) , buildJdk = jdkVersion . location ) { build ( \"\" ) { assertKaptSuccessful ( ) } fun modifyAndCheck ( utilKt : Path , useUtilFileName : String ) { utilKt . modify { it . checkedReplace ( \"\" , \"\" ) } build ( \"\" , buildOptions = buildOptions . copy ( logLevel = LogLevel . DEBUG ) ) { val affectedFile = subProject ( \"\" ) . kotlinSourcesDir ( ) . resolve ( \"\" ) . resolve ( useUtilFileName ) . relativeTo ( projectPath ) assertCompiledKotlinSources ( listOf ( affectedFile ) , getOutputForTask ( \"\" ) , errorMessageSuffix = \"\" ) assertCompiledKotlinSources ( listOf ( affectedFile ) , getOutputForTask ( \"\" ) , errorMessageSuffix = \"\" ) } } val libAndroidProject = subProject ( \"\" ) modifyAndCheck ( libAndroidProject . kotlinSourcesDir ( ) . resolve ( \"\" ) , \"\" ) val libJvmProject = subProject ( \"\" ) modifyAndCheck ( libJvmProject . kotlinSourcesDir ( ) . resolve ( \"\" ) , \"\" ) } }","docstring":""} {"signature":"override fun report ( message : ( ) -> String , severity : ReportSeverity )","body":"{ }","docstring":""} {"signature":"override fun reportCompileIteration ( incremental : Boolean , sourceFiles : Collection < File > , exitCode : ExitCode )","body":"{ compiledSourcesMutable . addAll ( sourceFiles ) this . exitCode = exitCode }","docstring":""} {"signature":"override fun createArguments ( )","body":"= K2MetadataCompilerArguments ( )","docstring":""} {"signature":"override fun setupPlatformSpecificArgumentsAndServices ( configuration : CompilerConfiguration , arguments : K2MetadataCompilerArguments , services : Services )","body":"{ }","docstring":""} {"signature":"override fun MutableList < String > . addPlatformOptions ( arguments : K2MetadataCompilerArguments )","body":"{ }","docstring":""} {"signature":"override fun doExecute ( arguments : K2MetadataCompilerArguments , configuration : CompilerConfiguration , rootDisposable : Disposable , paths : KotlinPaths ? ) : ExitCode","body":"{ val collector = configuration . getNotNull ( CLIConfigurationKeys . MESSAGE_COLLECTOR_KEY ) val performanceManager = configuration . getNotNull ( CLIConfigurationKeys . PERF_MANAGER ) val pluginLoadResult = loadPlugins ( paths , arguments , configuration ) if ( pluginLoadResult != ExitCode . OK ) return pluginLoadResult val commonSources = arguments . commonSources ? . toSet ( ) ? : emptySet ( ) val hmppCliModuleStructure = configuration . get ( CommonConfigurationKeys . HMPP_MODULE_STRUCTURE ) if ( hmppCliModuleStructure != null ) { collector . report ( ERROR , \"\" ) return ExitCode . COMPILATION_ERROR } for ( arg in arguments . freeArgs ) { configuration . addKotlinSourceRoot ( arg , isCommon = arg in commonSources , hmppModuleName = null ) } if ( arguments . classpath != null ) { configuration . addJvmClasspathRoots ( arguments . classpath ! ! . split ( File . pathSeparatorChar ) . map ( :: File ) ) } val moduleName = arguments . moduleName ? : JvmProtoBufUtil . DEFAULT_MODULE_NAME configuration . put ( CommonConfigurationKeys . MODULE_NAME , moduleName ) configuration . put ( CLIConfigurationKeys . ALLOW_KOTLIN_PACKAGE , arguments . allowKotlinPackage ) configuration . put ( CLIConfigurationKeys . RENDER_DIAGNOSTIC_INTERNAL_NAME , arguments . renderInternalDiagnosticNames ) configuration . putIfNotNull ( K2MetadataConfigurationKeys . FRIEND_PATHS , arguments . friendPaths ? . toList ( ) ) configuration . putIfNotNull ( K2MetadataConfigurationKeys . REFINES_PATHS , arguments . refinesPaths ? . toList ( ) ) val destination = arguments . destination if ( destination != null ) { if ( destination . endsWith ( \"\" ) ) { collector . report ( STRONG_WARNING , \"\" ) } configuration . put ( CLIConfigurationKeys . METADATA_DESTINATION_DIRECTORY , File ( destination ) ) } val environment = KotlinCoreEnvironment . createForProduction ( rootDisposable , configuration , EnvironmentConfigFiles . METADATA_CONFIG_FILES ) val mode = if ( arguments . metadataKlib ) \"\" else \"\" val sourceFiles = environment . getSourceFiles ( ) performanceManager . notifyCompilerInitialized ( sourceFiles . size , environment . countLinesOfCode ( sourceFiles ) , \"\" ) if ( environment . getSourceFiles ( ) . isEmpty ( ) ) { if ( arguments . version ) { return ExitCode . OK } collector . report ( ERROR , \"\" ) return ExitCode . COMPILATION_ERROR } checkKotlinPackageUsageForPsi ( environment . configuration , environment . getSourceFiles ( ) ) try { val useFir = configuration . getBoolean ( CommonConfigurationKeys . USE_FIR ) val metadataSerializer = when { useFir -> FirMetadataSerializer ( configuration , environment ) arguments . metadataKlib -> K2MetadataKlibSerializer ( configuration , environment ) else -> MetadataSerializer ( configuration , environment , dependOnOldBuiltIns = true ) } metadataSerializer . analyzeAndSerialize ( ) } catch ( e : CompilationException ) { collector . report ( EXCEPTION , OutputMessageUtil . renderException ( e ) , MessageUtil . psiElementToMessageLocation ( e . element ) ) return ExitCode . INTERNAL_ERROR } return ExitCode . OK }","docstring":""} {"signature":"override fun executableScriptFileName ( ) : String","body":"= \"\"","docstring":""} {"signature":"override fun createMetadataVersion ( versionArray : IntArray ) : BinaryVersion","body":"= BuiltInsBinaryVersion ( * versionArray )","docstring":""} {"signature":"@ JvmStatic fun main ( args : Array < String > )","body":"{ doMain ( K2MetadataCompiler ( ) , args ) }","docstring":""} {"signature":"private fun registerImplementsStatement ( declaration : IDLImplementsStatementDeclaration )","body":"{ missingInheritances . putIfAbsent ( declaration . child . name , mutableListOf ( ) ) missingInheritances [ declaration . child . name ] ! ! . add ( IDLSingleTypeDeclaration ( declaration . parent . name , null , false ) ) }","docstring":""} {"signature":"fun getMissingInheritances ( declaration : IDLInterfaceDeclaration ) : List < IDLSingleTypeDeclaration >","body":"{ return missingInheritances [ declaration . name ] ? : listOf ( ) }","docstring":""} {"signature":"override fun lowerImplementStatementDeclaration ( declaration : IDLImplementsStatementDeclaration , owner : IDLFileDeclaration ) : IDLImplementsStatementDeclaration","body":"{ registerImplementsStatement ( declaration ) return declaration }","docstring":""} {"signature":"override fun lowerInterfaceDeclaration ( declaration : IDLInterfaceDeclaration , owner : IDLFileDeclaration ) : IDLInterfaceDeclaration","body":"{ return declaration . copy ( parents = ( declaration . parents + context . getMissingInheritances ( declaration ) ) . distinct ( ) ) }","docstring":""} {"signature":"fun IDLSourceSetDeclaration . resolveImplementsStatements ( ) : IDLSourceSetDeclaration","body":"{ val context = ImplementsStatementContext ( ) return ImplementsStatementResolver ( context ) . lowerSourceSetDeclaration ( context . lowerSourceSetDeclaration ( this ) ) }","docstring":""} {"signature":"fun check ( expected : String , p : KProperty1 < * , * > )","body":"{ var s = p . toString ( ) assert ( s . startsWith ( \"\" ) || s . startsWith ( \"\" ) ) { \"\" } s = s . substring ( ) s = s . substringBeforeLast ( '' ) s = s . substringBeforeLast ( '' ) assertEquals ( expected , s ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ check ( \"\" , Boolean :: x ) check ( \"\" , Char :: x ) check ( \"\" , Byte :: x ) check ( \"\" , Short :: x ) check ( \"\" , Int :: x ) check ( \"\" , Float :: x ) check ( \"\" , Long :: x ) check ( \"\" , Double :: x ) check ( \"\" , BooleanArray :: x ) check ( \"\" , CharArray :: x ) check ( \"\" , ByteArray :: x ) check ( \"\" , ShortArray :: x ) check ( \"\" , IntArray :: x ) check ( \"\" , FloatArray :: x ) check ( \"\" , LongArray :: x ) check ( \"\" , DoubleArray :: x ) check ( \"\" , Any ? :: n1 ) check ( \"\" , Int ? :: n2 ) check ( \"\" , Array < Any > ? :: n3 ) check ( \"\" , Array < Any ? > :: n4 ) check ( \"\" , Array < Any ? > ? :: n5 ) check ( \"\" , Array < Int > :: a1 ) check ( \"\" , Array < Any > :: a2 ) check ( \"\" , Array < Array < String > > :: a3 ) check ( \"\" , Array < BooleanArray > :: a4 ) check ( \"\" , Map < String , Runnable > :: m ) check ( \"\" , List < MutableSet < Array < CharSequence > > > :: l ) return \"\" }","docstring":""} {"signature":"private fun digitToChar ( input : Int ) : Char","body":"{ assert ( input in .. ) return ( CharCodes . _0 . code + input ) . toChar ( ) }","docstring":""} {"signature":"internal fun itoa32 ( inputValue : Int ) : String","body":"{ if ( inputValue == ) return \"\" val isNegative = inputValue < val absValue = if ( isNegative ) - inputValue else inputValue val absValueString = utoa32 ( absValue . toUInt ( ) ) return if ( isNegative ) \"\" else absValueString }","docstring":""} {"signature":"internal fun utoa32 ( inputValue : UInt ) : String","body":"{ if ( inputValue == ) return \"\" val decimals = decimalCount32 ( inputValue ) val buf = WasmCharArray ( decimals ) utoaDecSimple ( buf , inputValue , decimals ) return buf . createString ( ) }","docstring":""} {"signature":"private fun utoaDecSimple ( buffer : WasmCharArray , numInput : UInt , offsetInput : Int )","body":"{ assert ( numInput != ) assert ( buffer . len ( ) > ) assert ( offsetInput > && offsetInput <= buffer . len ( ) ) var num = numInput var offset = offsetInput do { val t = num / val r = num % num = t offset -- buffer . set ( offset , digitToChar ( r . toInt ( ) ) ) } while ( num > ) }","docstring":""} {"signature":"private fun utoaDecSimple64 ( buffer : WasmCharArray , numInput : ULong , offsetInput : Int )","body":"{ assert ( numInput != ) assert ( buffer . len ( ) > ) assert ( offsetInput > && offsetInput <= buffer . len ( ) ) var num = numInput var offset = offsetInput do { val t = num / val r = num % num = t offset -- buffer . set ( offset , digitToChar ( r . toInt ( ) ) ) } while ( num > ) }","docstring":""} {"signature":"private fun Boolean . toInt ( )","body":"= if ( this ) else ","docstring":""} {"signature":"private fun Boolean . toLong ( )","body":"= if ( this ) else ","docstring":""} {"signature":"private fun decimalCount32 ( value : UInt ) : Int","body":"{ if ( value < ) { if ( value < ) { return + ( value >= ) . toInt ( ) } else { return + ( value >= ) . toInt ( ) + ( value >= ) . toInt ( ) } } else { if ( value < ) { return + ( value >= ) . toInt ( ) } else { return + ( value >= ) . toInt ( ) + ( value >= ) . toInt ( ) } } }","docstring":""} {"signature":"internal fun itoa64 ( inputValue : Long ) : String","body":"{ if ( inputValue in Int . MIN_VALUE .. Int . MAX_VALUE ) return itoa32 ( inputValue . toInt ( ) ) val isNegative = inputValue < val absValue = if ( isNegative ) - inputValue else inputValue val absValueString = utoa64 ( absValue . toULong ( ) ) return if ( isNegative ) \"\" else absValueString }","docstring":""} {"signature":"internal fun utoa64 ( inputValue : ULong ) : String","body":"{ if ( inputValue <= UInt . MAX_VALUE ) return utoa32 ( inputValue . toUInt ( ) ) val decimals = decimalCount64High ( inputValue ) val buf = WasmCharArray ( decimals ) utoaDecSimple64 ( buf , inputValue , decimals ) return buf . createString ( ) }","docstring":""} {"signature":"private fun decimalCount64High ( value : ULong ) : Int","body":"{ if ( value < ) { if ( value < ) { return + ( value >= ) . toInt ( ) + ( value >= ) . toInt ( ) } else { return + ( value >= ) . toInt ( ) + ( value >= ) . toInt ( ) } } else { if ( value < ) { return + ( value >= ) . toInt ( ) } else { return + ( value >= ) . toInt ( ) + ( value >= ) . toInt ( ) } } }","docstring":""} {"signature":"internal fun dtoa ( value : Double ) : String","body":"{ if ( value == ) { return if ( value . toRawBits ( ) == ) \"\" else \"\" } if ( ! value . isFinite ( ) ) { if ( value . isNaN ( ) ) return \"\" return if ( value < ) \"\" else \"\" } val buf = WasmCharArray ( MAX_DOUBLE_LENGTH ) val size = dtoaCore ( buf , value ) val ret = WasmCharArray ( size ) buf . copyInto ( ret , , , size ) return ret . createString ( ) }","docstring":""} {"signature":"private fun dtoaCore ( buffer : WasmCharArray , valueInp : Double ) : Int","body":"{ var value = valueInp val sign = ( value < ) . toInt ( ) if ( sign == ) { value = - value buffer . set ( , CharCodes . MINUS . code . toChar ( ) ) } var len = grisu2 ( value , buffer , sign ) len = prettify ( BufferWithOffset ( buffer , sign ) , len - sign , _K ) return len + sign }","docstring":""} {"signature":"private fun grisu2 ( value : Double , buffer : WasmCharArray , sign : Int ) : Int","body":"{ val uv = value . toBits ( ) var exp = ( ( uv and ) ushr ) . toInt ( ) val sid = uv and var frc = ( ( exp != ) . toLong ( ) shl ) + sid exp = ( if ( exp != ) exp else ) - ( + ) normalizedBoundaries ( frc , exp ) getCachedPower ( _exp ) val off = frc . countLeadingZeroBits ( ) frc = frc shl off exp -= off var frc_pow = _frc_pow var exp_pow = _exp_pow var w_frc = umul64f ( frc , frc_pow ) var wp_frc = umul64f ( _frc_plus , frc_pow ) - var wp_exp = umul64e ( _exp , exp_pow ) var wm_frc = umul64f ( _frc_minus , frc_pow ) + var delta = wp_frc - wm_frc return genDigits ( buffer , w_frc , wp_frc , wp_exp , delta , sign ) ; }","docstring":""} {"signature":"private fun umul64f ( u : Long , v : Long ) : Long","body":"{ val u0 = u and val v0 = v and val u1 = u ushr val v1 = v ushr val l = u0 * v0 var t = u1 * v0 + ( l ushr ) var w = u0 * v1 + ( t and ) w += t = t ushr w = w ushr return u1 * v1 + t + w }","docstring":""} {"signature":"private fun umul64e ( e1 : Int , e2 : Int ) : Int","body":"{ return e1 + e2 + }","docstring":""} {"signature":"private fun normalizedBoundaries ( f : Long , e : Int )","body":"{ var frc = ( f shl ) + var exp = e - val off = frc . countLeadingZeroBits ( ) frc = frc shl off exp -= off val m = + ( f == ) . toInt ( ) _frc_plus = frc _frc_minus = ( ( f shl m ) - ) shl e - m - exp _exp = exp }","docstring":""} {"signature":"private fun getCachedPower ( minExp : Int )","body":"{ val c = Double . fromBits ( ) val dk = ( - - minExp ) * c + var k = dk . toInt ( ) k += ( k . toDouble ( ) != dk ) . toInt ( ) val index = ( k shr ) + _K = - ( index shl ) _frc_pow = FRC_POWERS [ index ] _exp_pow = EXP_POWERS [ index ] . toInt ( ) }","docstring":""} {"signature":"private fun genDigits ( buffer : WasmCharArray , w_frc : Long , mp_frc : Long , mp_exp : Int , deltaInp : Long , sign : Int ) : Int","body":"{ var delta = deltaInp val one_exp = - mp_exp val one_frc = shl one_exp val mask = one_frc - var wp_w_frc = mp_frc - w_frc var p1 = ( mp_frc ushr one_exp ) . toInt ( ) var p2 = mp_frc and mask var kappa = decimalCount32 ( p1 . toUInt ( ) ) var len = sign while ( kappa > ) { var d : Int var pow10 : Long when ( kappa ) { -> { d = p1 / ; p1 %= ; pow10 = ; } -> { d = p1 / ; p1 %= ; pow10 = ; } -> { d = p1 / ; p1 %= ; pow10 = ; } -> { d = p1 / ; p1 %= ; pow10 = ; } -> { d = p1 / ; p1 %= ; pow10 = ; } -> { d = p1 / ; p1 %= ; pow10 = ; } -> { d = p1 / ; p1 %= ; pow10 = ; } -> { d = p1 / ; p1 %= ; pow10 = ; } -> { d = p1 / ; p1 %= ; pow10 = ; } -> { d = p1 ; p1 = ; pow10 = ; } else -> { d = ; pow10 = ; } } if ( d or len != ) buffer . set ( len ++ , digitToChar ( d ) ) -- kappa val tmp = ( p1 . toLong ( ) shl one_exp ) + p2 if ( tmp <= delta ) { _K += kappa grisuRound ( buffer , len , delta , tmp , pow10 shl one_exp , wp_w_frc ) return len ; } } var unit = while ( true ) { p2 *= delta *= unit *= val d = p2 ushr one_exp if ( d or len . toLong ( ) != ) buffer . set ( len ++ , digitToChar ( d . toInt ( ) ) ) p2 = p2 and mask -- kappa if ( p2 < delta ) { _K += kappa grisuRound ( buffer , len , delta , p2 , one_frc , wp_w_frc * unit ) return len } } }","docstring":""} {"signature":"private fun grisuRound ( buffer : WasmCharArray , len : Int , delta : Long , restInp : Long , ten_kappa : Long , wp_w : Long )","body":"{ var rest = restInp val lastp = len - var digit = buffer . get ( lastp ) while ( rest < wp_w && delta - rest >= ten_kappa && ( rest + ten_kappa < wp_w || wp_w - rest > rest + ten_kappa - wp_w ) ) { -- digit rest += ten_kappa ; } buffer . set ( lastp , digit ) }","docstring":""} {"signature":"private fun WasmCharArray . copyInto ( destination : WasmCharArray , destinationOffset : Int , sourceOffset : Int , len : Int )","body":"{ var srcIndex : Int var dstIndex : Int var increment : Int if ( destinationOffset <= sourceOffset ) { srcIndex = sourceOffset dstIndex = destinationOffset increment = } else { srcIndex = sourceOffset + len - dstIndex = destinationOffset + len - increment = - } repeat ( len ) { destination . set ( dstIndex , this . get ( srcIndex ) ) srcIndex += increment dstIndex += increment } }","docstring":""} {"signature":"operator fun set ( addr : Int , value : Char )","body":"{ buf . set ( off + addr , value ) }","docstring":""} {"signature":"fun memoryCopy ( destAddr : Int , srcAddr : Int , len : Int )","body":"{ val startIdx = off + srcAddr buf . copyInto ( buf , off + destAddr , startIdx , len ) }","docstring":""} {"signature":"fun offsetABitMore ( anotherOff : Int )","body":"= BufferWithOffset ( buf , off + anotherOff )","docstring":""} {"signature":"private fun prettify ( buffer : BufferWithOffset , lengthInp : Int , k : Int ) : Int","body":"{ var length = lengthInp if ( k == ) { buffer [ length ] = CharCodes . DOT . code . toChar ( ) buffer [ length + ] = CharCodes . _0 . code . toChar ( ) return length + } var kk = length + k if ( length <= kk && kk <= ) { for ( i in length until kk ) { buffer [ i ] = CharCodes . _0 . code . toChar ( ) } buffer [ kk ] = CharCodes . DOT . code . toChar ( ) buffer [ kk + ] = CharCodes . _0 . code . toChar ( ) return kk + } else if ( kk > && kk <= ) { buffer . memoryCopy ( kk + , kk , - k ) buffer [ kk ] = CharCodes . DOT . code . toChar ( ) return length + } else if ( - < kk && kk <= ) { val offset = - kk buffer . memoryCopy ( offset , , length ) buffer [ ] = CharCodes . _0 . code . toChar ( ) buffer [ ] = CharCodes . DOT . code . toChar ( ) for ( i in until offset ) { buffer [ i ] = CharCodes . _0 . code . toChar ( ) } return length + offset } else if ( length == ) { buffer [ ] = CharCodes . e . code . toChar ( ) length = genExponent ( buffer . offsetABitMore ( ) , kk - ) return length + } else { val len = length buffer . memoryCopy ( , , len - ) buffer [ ] = CharCodes . DOT . code . toChar ( ) buffer [ len + ] = CharCodes . e . code . toChar ( ) length += genExponent ( buffer . offsetABitMore ( len + ) , kk - ) return length + } }","docstring":""} {"signature":"private fun genExponent ( buffer : BufferWithOffset , kInp : Int ) : Int","body":"{ var k = kInp val sign = k < if ( sign ) k = - k val kStr = k . toString ( ) for ( i in kStr . indices ) buffer [ i + ] = kStr [ i ] buffer [ ] = if ( sign ) CharCodes . MINUS . code . toChar ( ) else CharCodes . PLUS . code . toChar ( ) return kStr . length + }","docstring":""} {"signature":"fun ff ( ) : String","body":"fun ff ( ) : String","docstring":""} {"signature":"override fun ff ( )","body":"= \"\"","docstring":""} {"signature":"override fun ff ( )","body":"= \"\"","docstring":""} {"signature":"fun box ( ) : String","body":"{ val v = if ( true ) A ( ) else B ( ) return v . ff ( ) }","docstring":""} {"signature":"override fun < R , D > accept ( visitor : IrElementVisitor < R , D > , data : D ) : R","body":"= visitor . visitDoWhileLoop ( this , data )","docstring":""} {"signature":"override fun < D > acceptChildren ( visitor : IrElementVisitor < Unit , D > , data : D )","body":"{ body ? . accept ( visitor , data ) condition . accept ( visitor , data ) }","docstring":""} {"signature":"override fun < D > transformChildren ( transformer : IrElementTransformer < D > , data : D )","body":"{ body = body ? . transform ( transformer , data ) condition = condition . transform ( transformer , data ) }","docstring":""} {"signature":"fun getA ( ) : A","body":"{ holder += \"\" return A }","docstring":""} {"signature":"@ JvmStatic fun a ( ) : String","body":"{ return holder }","docstring":""} {"signature":"fun box ( ) : String","body":"{ return getA ( ) . a ( ) }","docstring":""} {"signature":"actual fun take ( ) : CharArray","body":"= CharArray ( BATCH_SIZE )","docstring":""} {"signature":"actual fun release ( array : CharArray )","body":"= Unit","docstring":""} {"signature":"override fun registerReferenceProviders ( registrar : KotlinPsiReferenceRegistrar )","body":"{ with ( registrar ) { registerProvider ( factory = :: KtFe10SimpleNameReference ) registerProvider ( factory = :: KtFe10ForLoopInReference ) registerProvider ( factory = :: KtFe10InvokeFunctionReference ) registerProvider ( factory = :: KtFe10PropertyDelegationMethodsReference ) registerProvider ( factory = :: KtFe10DestructuringDeclarationEntry ) registerProvider ( factory = :: KtFe10ArrayAccessReference ) registerProvider ( factory = :: KtFe10ConstructorDelegationReference ) registerProvider ( factory = :: KtFe10CollectionLiteralReference ) registerProvider ( factory = :: Fe10KDocReference ) registerMultiProvider < KtNameReferenceExpression > { nameReferenceExpression -> if ( nameReferenceExpression . getReferencedNameElementType ( ) != KtTokens . IDENTIFIER ) { return@registerMultiProvider PsiReference . EMPTY_ARRAY } if ( nameReferenceExpression . parents . any { it is KtImportDirective || it is KtPackageDirective || it is KtUserType } ) { return@registerMultiProvider PsiReference . EMPTY_ARRAY } when ( nameReferenceExpression . readWriteAccess ( useResolveForReadWrite = false ) ) { ReferenceAccess . READ -> arrayOf ( Fe10SyntheticPropertyAccessorReference ( nameReferenceExpression , getter = true ) ) ReferenceAccess . WRITE -> arrayOf ( Fe10SyntheticPropertyAccessorReference ( nameReferenceExpression , getter = false ) ) ReferenceAccess . READ_WRITE -> arrayOf ( Fe10SyntheticPropertyAccessorReference ( nameReferenceExpression , getter = true ) , Fe10SyntheticPropertyAccessorReference ( nameReferenceExpression , getter = false ) ) } } registerProvider < KtValueArgument > provider @ { element : KtValueArgument -> if ( element . isNamed ( ) ) return@provider null val annotationEntry = element . getParentOfTypeAndBranch < KtAnnotationEntry > { valueArgumentList } ? : return@provider null if ( annotationEntry . valueArguments . size != ) return@provider null KtDefaultAnnotationArgumentReference ( element ) } } }","docstring":""} {"signature":"fun foo ( )","body":"{ }","docstring":""} {"signature":"override fun check ( expression : FirQualifiedAccessExpression , context : CheckerContext , reporter : DiagnosticReporter )","body":"{ val callableSymbol = expression . calleeReference . toResolvedCallableSymbol ( ) ? : return if ( callableSymbol . origin . fromSource ) return val isInline = when ( callableSymbol ) { is FirFunctionSymbol < * > -> callableSymbol . isInline is FirPropertySymbol -> { val accessor = if ( expression . isLhsOfAssignment ( context ) ) callableSymbol . setterSymbol else callableSymbol . getterSymbol accessor != null && accessor . isInline } else -> false } if ( isInline ) { checkInlineTargetVersion ( callableSymbol , context , reporter , expression ) } }","docstring":""} {"signature":"private fun checkInlineTargetVersion ( callableSymbol : FirCallableSymbol < * > , context : CheckerContext , reporter : DiagnosticReporter , element : FirElement , )","body":"{ val currentJvmTarget = context . session . jvmTargetProvider ? . jvmTarget ? : return val containingClass = callableSymbol . containingClassLookupTag ( ) val binaryClass = if ( containingClass != null ) { val containingClassSymbol = containingClass . toFirRegularClassSymbol ( context . session ) ? : return @ OptIn ( SymbolInternals :: class ) val sourceElement = containingClassSymbol . fir . sourceElement as? KotlinJvmBinarySourceElement ? : return sourceElement . binaryClass } else { val containerSource = callableSymbol . containerSource as? JvmPackagePartSource ? : return containerSource . knownJvmBinaryClass } val inlinedVersion = ( binaryClass as? FileBasedKotlinClass ) ? . classVersion ? : return val currentVersion = currentJvmTarget . majorVersion if ( currentVersion < inlinedVersion ) { reporter . reportOn ( element . toReference ( context . session ) ? . source ? : element . source , FirJvmErrors . INLINE_FROM_HIGHER_PLATFORM , JvmTarget . getDescription ( inlinedVersion ) , JvmTarget . getDescription ( currentVersion ) , context , ) } }","docstring":""} {"signature":"@ JvmStatic fun shouldGenerateExpectClass ( descriptor : ClassDescriptor ) : Boolean","body":"{ assert ( descriptor . isExpect ) { \"\" } if ( isOptionalAnnotationClass ( descriptor ) ) { return descriptor . findCompatibleActualsForExpected ( descriptor . module ) . isEmpty ( ) } return false }","docstring":""} {"signature":"@ JvmStatic fun isOptionalAnnotationClass ( descriptor : DeclarationDescriptor ) : Boolean","body":"= descriptor is ClassDescriptor && descriptor . kind == ClassKind . ANNOTATION_CLASS && descriptor . isExpect && descriptor . annotations . hasAnnotation ( OPTIONAL_EXPECTATION_FQ_NAME )","docstring":""} {"signature":"@ Test fun doTest ( )","body":"{ NotNullVarTestGeneric ( \"\" , \"\" ) . doTest ( ) }","docstring":""} {"signature":"public fun doTest ( )","body":"{ assertEquals ( \"\" , bDelegate . toString ( ) ) a = a1 b = b1 assertTrue ( a == \"\" , \"\" ) assertTrue ( b == \"\" , \"\" ) assertEquals ( \"\" , bDelegate . toString ( ) ) }","docstring":""} {"signature":"@ Test fun doTest ( )","body":"{ b = assertTrue ( b == , \"\" ) assertTrue ( result , \"\" ) assertEquals ( \"\" , bDelegate . toString ( ) ) }","docstring":""} {"signature":"@ Test fun doTest ( )","body":"{ val firstValue = A ( true ) b = firstValue assertTrue ( b == firstValue , \"\" ) assertTrue ( result , \"\" ) b = A ( false ) assertTrue ( b == firstValue , \"\" ) assertFalse ( result , \"\" ) }","docstring":""} {"signature":"@ Test fun doTest ( )","body":"{ assertEquals ( \"\" , a ) assertEquals ( listOf ( \"\" , \"\" ) , delegatedToProvider ) assertEquals ( \"\" , b ) assertEquals ( \"\" , c ) }","docstring":""} {"signature":"override fun generateFunctions ( callableId : CallableId , context : MemberGenerationContext ? ) : List < FirNamedFunctionSymbol >","body":"{ if ( context != null ) return emptyList ( ) if ( callableId . callableName != TEST_FUN_NAME ) return emptyList ( ) val function = createTopLevelFunction ( Key , callableId , session . builtinTypes . unitType . type ) { visibility = Visibilities . Private status { isSuspend = true } } return listOf ( function . symbol ) }","docstring":""} {"signature":"override fun getTopLevelCallableIds ( ) : Set < CallableId >","body":"{ return matchedPackageNames . map { CallableId ( it , TEST_FUN_NAME ) } . toSet ( ) }","docstring":""} {"signature":"override fun FirDeclarationPredicateRegistrar . registerPredicates ( )","body":"{ register ( PREDICATE ) }","docstring":""} {"signature":"fun checkTrue ( ) : Boolean","body":"{ var hit = false assert ( { hit = true ; true } ( ) ) return hit }","docstring":""} {"signature":"fun checkFalse ( ) : Boolean","body":"{ var hit = false assert ( { hit = true ; true } ( ) ) return hit }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val loader = Dummy :: class . java . classLoader loader . setClassAssertionStatus ( \"\" , true ) loader . setClassAssertionStatus ( \"\" , false ) val c1 = loader . loadClass ( \"\" ) . newInstance ( ) as ShouldBeEnabled val c2 = loader . loadClass ( \"\" ) . newInstance ( ) as ShouldBeDisabled if ( ! c1 . checkTrue ( ) ) return \"\" if ( c2 . checkFalse ( ) ) return \"\" return \"\" }","docstring":""} {"signature":"@ Test fun construction ( )","body":"{ for ( totalSeconds in offsetSecondsRange ) { val hours = totalSeconds / ( * ) val totalMinutes = totalSeconds / val minutes = totalMinutes % val seconds = totalSeconds % val offset = UtcOffset ( hours , minutes , seconds ) val offsetSeconds = UtcOffset ( seconds = totalSeconds ) val offsetMinutes = UtcOffset ( minutes = totalMinutes , seconds = seconds ) assertEquals ( totalSeconds , offset . totalSeconds ) assertEquals ( offset , offsetMinutes ) assertEquals ( offset , offsetSeconds ) } }","docstring":""} {"signature":"@ Test fun constructionErrors ( )","body":"{ assertIllegalArgument { UtcOffset ( hours = - ) } assertIllegalArgument { UtcOffset ( hours = + ) } assertIllegalArgument { UtcOffset ( hours = - , minutes = - ) } assertIllegalArgument { UtcOffset ( hours = - , seconds = - ) } assertIllegalArgument { UtcOffset ( hours = + , seconds = + ) } assertIllegalArgument { UtcOffset ( hours = + , seconds = + ) } assertIllegalArgument { UtcOffset ( seconds = offsetSecondsRange . first - ) } assertIllegalArgument { UtcOffset ( seconds = offsetSecondsRange . last + ) } assertIllegalArgument { UtcOffset ( hours = , minutes = ) } assertIllegalArgument { UtcOffset ( hours = , seconds = - ) } assertIllegalArgument { UtcOffset ( minutes = , seconds = ) } assertIllegalArgument { UtcOffset ( minutes = , seconds = ) } assertIllegalArgument { UtcOffset ( hours = + , minutes = - ) } assertIllegalArgument { UtcOffset ( hours = + , seconds = - ) } assertIllegalArgument { UtcOffset ( hours = - , minutes = + ) } assertIllegalArgument { UtcOffset ( hours = - , seconds = + ) } assertIllegalArgument { UtcOffset ( minutes = + , seconds = - ) } assertIllegalArgument { UtcOffset ( minutes = - , seconds = + ) } }","docstring":""} {"signature":"@ Test fun utcOffsetToString ( )","body":"{ assertEquals ( \"\" , UtcOffset ( hours = , minutes = , seconds = ) . toString ( ) ) assertEquals ( \"\" , UtcOffset ( hours = , minutes = , seconds = ) . toString ( ) ) assertEquals ( \"\" , UtcOffset ( hours = - , minutes = , seconds = - ) . toString ( ) ) assertEquals ( \"\" , UtcOffset . ZERO . toString ( ) ) }","docstring":""} {"signature":"@ Test fun invalidUtcOffsetStrings ( )","body":"{ for ( v in invalidUtcOffsetStrings ) { assertFailsWith < DateTimeFormatException > ( \"\" ) { UtcOffset . parse ( v ) } } for ( v in fixedOffsetTimeZoneIds ) { assertFailsWith < DateTimeFormatException > ( \"\" ) { UtcOffset . parse ( v ) } } }","docstring":""} {"signature":"@ Test fun parseAllValidValues ( )","body":"{ fun Int . pad ( ) = toString ( ) . padStart ( , '' ) fun check ( offsetSeconds : Int , offsetString : String , canonical : Boolean = false ) { val offset = UtcOffset . parse ( offsetString ) if ( offsetSeconds != offset . totalSeconds ) { fail ( \"\" ) } val actualOffsetString = offset . toString ( ) if ( canonical ) { assertEquals ( offsetString , actualOffsetString ) } else { assertNotEquals ( offsetString , actualOffsetString ) val offset2 = UtcOffset . parse ( actualOffsetString ) assertEquals ( offset , offset2 ) } } for ( offsetSeconds in offsetSecondsRange ) { val sign = when { offsetSeconds < -> \"\" else -> \"\" } val hours = abs ( offsetSeconds / / ) val minutes = abs ( offsetSeconds / % ) val seconds = abs ( offsetSeconds % ) check ( offsetSeconds , \"\" , canonical = seconds != ) if ( seconds == ) { check ( offsetSeconds , \"\" , canonical = offsetSeconds != ) } } check ( , \"\" ) check ( , \"\" ) check ( , \"\" , canonical = true ) }","docstring":""} {"signature":"@ Test fun equality ( )","body":"{ val equalOffsets = listOf ( listOf ( \"\" , \"\" , \"\" , \"\" , \"\" ) , listOf ( \"\" , \"\" ) , listOf ( \"\" , \"\" ) , ) for ( equalGroup in equalOffsets ) { val offsets = equalGroup . map { UtcOffset . parse ( it ) } val message = \"\" assertEquals ( , offsets . distinct ( ) . size , message ) assertEquals ( , offsets . map { it . toString ( ) } . distinct ( ) . size , message ) assertEquals ( , offsets . map { it . hashCode ( ) } . distinct ( ) . size , message ) } for ( ( offset1 , offset2 ) in equalOffsets . map { UtcOffset . parse ( it . random ( ) ) } . shuffled ( ) . zipWithNext ( ) ) { assertNotEquals ( offset1 , offset2 ) assertNotEquals ( offset1 . toString ( ) , offset2 . toString ( ) ) } }","docstring":""} {"signature":"@ Test fun asTimeZone ( )","body":"{ val offset = UtcOffset ( hours = , minutes = , seconds = ) val timeZone = offset . asTimeZone ( ) assertIs < FixedOffsetTimeZone > ( timeZone ) assertEquals ( offset , timeZone . offset ) }","docstring":""} {"signature":"fun foo ( i : Int ? )","body":"{ i ? : a < caret > v }","docstring":""} {"signature":"protected fun comparisonPropagation ( @ Language ( \"\" ) unchecked : String , @ Language ( \"\" ) checked : String , dumpTree : Boolean = false )","body":"= verifyGoldenComposeIrTransform ( \"\"\"\"\"\" . trimIndent ( ) , \"\"\"\"\"\" . trimIndent ( ) , dumpTree = dumpTree )","docstring":""} {"signature":"@ Test fun testIfInLambda ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testBasicText ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testArrangement ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testComposableSingletonsAreStatic ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testFunInterfaces ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testFunInterfaces2 ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testSimpleColumn ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testSimplerBox ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testDefaultSkipping ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testLocalComposableFunctions ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testLoopWithContinueAndCallAfter ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testSimpleBoxWithShape ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testSimpleBox ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testComposableLambdaWithStableParams ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testComposableLambdaWithUnstableParams ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testComposableLambdaWithStableParamsAndReturnValue ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testPrimitiveVarargParams ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testStableVarargParams ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testUnstableVarargParams ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testReceiverParamSkippability ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testComposableParameter ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testComposableWithAndWithoutDefaultParams ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testComposableWithReturnValue ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testComposableLambda ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testComposableFunExprBody ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testParamReordering ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testStableUnstableParams ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testOptionalUnstableWithStableExtensionReceiver ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testNoParams ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testSingleStableParam ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testInlineClassDefaultParameter ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testStaticDetection ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testAnnotationChecker ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testSingleStableParamWithDefault ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testSingleStableParamWithComposableDefault ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testSingleUnstableParam ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testSingleUnstableParamWithDefault ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testManyNonOptionalParams ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testRecursiveCall ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testLambdaSkipping ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testPassedExtensionWhenExtensionIsPotentiallyUnstable ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testReceiverIssue ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testDifferentParameters ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testReceiverLambdaCall ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testNestedCalls ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testLocalFunction ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun test15Parameters ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun test16Parameters ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testGrouplessProperty ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testStaticAndNonStaticDefaultValueSkipping ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testComposableLambdaInvoke ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testComposableLambdasWithReturnGetGroups ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testDefaultsIssue ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testSiblingIfsWithoutElseHaveUniqueKeys ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testUnusedParameters ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testExtensionReceiver ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testArrayDefaultArgWithState ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun test_InlineForLoop ( )","body":"= verifyGoldenComposeIrTransform ( source = \"\"\"\"\"\" , extra = \"\"\"\"\"\" )","docstring":""} {"signature":"override fun CompilerConfiguration . updateConfiguration ( )","body":"{ put ( ComposeConfiguration . SOURCE_INFORMATION_ENABLED_KEY , false ) put ( ComposeConfiguration . TRACE_MARKERS_ENABLED_KEY , false ) }","docstring":""} {"signature":"@ Test fun testGrouplessProperty ( ) : Unit","body":"= comparisonPropagation ( \"\"\"\"\"\" , \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun test_InlineForLoop_no_source_info ( )","body":"= verifyGoldenComposeIrTransform ( source = \"\"\"\"\"\" , extra = \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun test_InlineSkipping ( )","body":"= verifyGoldenComposeIrTransform ( source = \"\"\"\"\"\" , extra = \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun test_ComposableLambdaWithUnusedParameter ( )","body":"= verifyGoldenComposeIrTransform ( source = \"\"\"\"\"\" , extra = \"\"\"\"\"\" )","docstring":""} {"signature":"@ Test fun testNonSkippableComposable ( )","body":"= comparisonPropagation ( \"\" , \"\"\"\"\"\" . trimIndent ( ) )","docstring":""} {"signature":"@ Test fun testComposable ( )","body":"= verifyGoldenComposeIrTransform ( source = \"\"\"\"\"\" )","docstring":""} {"signature":"suspend fun foo ( block : Long . ( ) -> String ) : String","body":"{ return . block ( ) }","docstring":""} {"signature":"suspend fun box ( )","body":"{ foo { \"\" } }","docstring":""} {"signature":"override fun check ( resolvedCall : ResolvedCall < * > , reportOn : PsiElement , context : CallCheckerContext )","body":"{ val resultingDescriptor = resolvedCall . resultingDescriptor . original if ( resultingDescriptor !is JavaClassConstructorDescriptor || resultingDescriptor . containingDeclaration . kind != ClassKind . ANNOTATION_CLASS ) return reportErrorsOnPositionedArguments ( resolvedCall , context ) reportDeprecatedJavaAnnotation ( resolvedCall , context ) }","docstring":""} {"signature":"private fun reportDeprecatedJavaAnnotation ( resolvedCall : ResolvedCall < * > , context : CallCheckerContext )","body":"{ val annotationEntry = resolvedCall . call . callElement as? KtAnnotationEntry ? : return val type = context . trace . get ( BindingContext . TYPE , annotationEntry . typeReference ) ? : return javaToKotlinNameMap [ type . constructor . declarationDescriptor ? . let { DescriptorUtils . getFqNameSafe ( it ) } ] ? . let { context . trace . report ( ErrorsJvm . DEPRECATED_JAVA_ANNOTATION . on ( annotationEntry , it ) ) } }","docstring":""} {"signature":"private fun reportErrorsOnPositionedArguments ( resolvedCall : ResolvedCall < * > , context : CallCheckerContext )","body":"{ getJavaAnnotationCallValueArgumentsThatShouldBeNamed ( resolvedCall ) . forEach { reportOnValueArgument ( context , it , ErrorsJvm . POSITIONED_VALUE_ARGUMENT_FOR_JAVA_ANNOTATION ) } }","docstring":""} {"signature":"private fun reportOnValueArgument ( context : CallCheckerContext , arguments : Map . Entry < ValueParameterDescriptor , ResolvedValueArgument > , diagnostic : DiagnosticFactory0 < KtExpression > )","body":"{ for ( valueArgument in arguments . value . arguments ) { val argumentExpression = valueArgument . getArgumentExpression ( ) ? : continue context . trace . report ( diagnostic . on ( argumentExpression ) ) } }","docstring":""} {"signature":"fun getJavaAnnotationCallValueArgumentsThatShouldBeNamed ( resolvedCall : ResolvedCall < * > ) : Map < ValueParameterDescriptor , ResolvedValueArgument >","body":"= resolvedCall . valueArguments . filter { p -> p . key . name != JvmAnnotationNames . DEFAULT_ANNOTATION_MEMBER_NAME && p . value is ExpressionValueArgument && ! ( ( p . value as ExpressionValueArgument ) . valueArgument ? . isNamed ( ) ? : true ) }","docstring":""} {"signature":"fun check ( annotated : KtAnnotated , descriptor : DeclarationDescriptor , trace : BindingTrace , languageVersionSettings : LanguageVersionSettings )","body":"{ trace . checkDeclaration ( annotated , languageVersionSettings , descriptor ) if ( annotated is KtCallableDeclaration ) { annotated . receiverTypeReference ? . let { trace . checkTypeReference ( it , languageVersionSettings , isReceiver = true ) } annotated . typeReference ? . let { trace . checkTypeReference ( it , languageVersionSettings , isReceiver = false ) } } if ( annotated is KtFunction ) { for ( parameter in annotated . valueParameters ) { if ( parameter . hasValOrVar ( ) ) continue val parameterDescriptor = trace . bindingContext [ BindingContext . VALUE_PARAMETER , parameter ] ? : continue trace . checkDeclaration ( parameter , languageVersionSettings , parameterDescriptor ) parameter . typeReference ? . let { trace . checkTypeReference ( it , languageVersionSettings , isReceiver = false ) } } } }","docstring":""} {"signature":"private fun BindingTrace . checkTypeReference ( topLevelTypeReference : KtTypeReference , languageVersionSettings : LanguageVersionSettings , isReceiver : Boolean )","body":"{ checkAsTopLevelTypeReference ( topLevelTypeReference , languageVersionSettings , isReceiver ) topLevelTypeReference . acceptChildren ( typeReferenceRecursiveVisitor { typeReference -> checkAsTopLevelTypeReference ( typeReference , languageVersionSettings , isReceiver = false ) } ) }","docstring":""} {"signature":"private fun BindingTrace . checkAsTopLevelTypeReference ( topLevelTypeReference : KtTypeReference , languageVersionSettings : LanguageVersionSettings , isReceiver : Boolean )","body":"{ for ( annotationEntry in topLevelTypeReference . annotationEntries ) { val target = annotationEntry . useSiteTarget ? . getAnnotationUseSiteTarget ( ) ? : continue if ( target != AnnotationUseSiteTarget . RECEIVER || ! isReceiver ) { val diagnostic = if ( languageVersionSettings . supportsFeature ( LanguageFeature . RestrictionOfWrongAnnotationsWithUseSiteTargetsOnTypes ) ) WRONG_ANNOTATION_TARGET_WITH_USE_SITE_TARGET . on ( annotationEntry , \"\" , target . renderName ) else WRONG_ANNOTATION_TARGET_WITH_USE_SITE_TARGET_ON_TYPE . on ( annotationEntry , target . renderName ) reportDiagnosticOnce ( diagnostic ) } } }","docstring":""} {"signature":"private fun BindingTrace . checkDeclaration ( annotated : KtAnnotated , languageVersionSettings : LanguageVersionSettings , descriptor : DeclarationDescriptor )","body":"{ for ( annotation in annotated . annotationEntries ) { val useSiteTarget = annotation . useSiteTarget val target = useSiteTarget ? . getAnnotationUseSiteTarget ( ) ? : continue when ( target ) { AnnotationUseSiteTarget . FIELD -> checkIfHasBackingField ( annotated , descriptor , annotation ) AnnotationUseSiteTarget . PROPERTY , AnnotationUseSiteTarget . PROPERTY_GETTER -> checkIfProperty ( annotated , annotation , when ( languageVersionSettings . supportsFeature ( LanguageFeature . ProhibitUseSiteGetTargetAnnotations ) ) { true -> INAPPLICABLE_TARGET_ON_PROPERTY false -> INAPPLICABLE_TARGET_ON_PROPERTY_WARNING } ) AnnotationUseSiteTarget . PROPERTY_DELEGATE_FIELD -> checkIfDelegatedProperty ( annotated , annotation ) AnnotationUseSiteTarget . PROPERTY_SETTER -> checkIfMutableProperty ( annotated , annotation ) AnnotationUseSiteTarget . CONSTRUCTOR_PARAMETER -> { if ( annotated !is KtParameter ) { report ( INAPPLICABLE_PARAM_TARGET . on ( annotation ) ) } else { val containingDeclaration = bindingContext [ BindingContext . VALUE_PARAMETER , annotated ] ? . containingDeclaration if ( containingDeclaration !is ConstructorDescriptor || ! containingDeclaration . isPrimary ) { report ( INAPPLICABLE_PARAM_TARGET . on ( annotation ) ) } else if ( ! annotated . hasValOrVar ( ) ) { report ( REDUNDANT_ANNOTATION_TARGET . on ( annotation , target . renderName ) ) } } } AnnotationUseSiteTarget . SETTER_PARAMETER -> checkIfMutableProperty ( annotated , annotation ) AnnotationUseSiteTarget . FILE -> reportDiagnosticOnce ( INAPPLICABLE_FILE_TARGET . on ( useSiteTarget ) ) AnnotationUseSiteTarget . RECEIVER -> reportDiagnosticOnce ( WRONG_ANNOTATION_TARGET_WITH_USE_SITE_TARGET . on ( annotation , \"\" , target . renderName ) ) } } }","docstring":""} {"signature":"private fun BindingTrace . checkIfDelegatedProperty ( annotated : KtAnnotated , annotation : KtAnnotationEntry )","body":"{ if ( annotated is KtProperty && ! annotated . hasDelegate ( ) || annotated is KtParameter && annotated . hasValOrVar ( ) ) { report ( INAPPLICABLE_TARGET_PROPERTY_HAS_NO_DELEGATE . on ( annotation ) ) } }","docstring":""} {"signature":"private fun BindingTrace . checkIfHasBackingField ( annotated : KtAnnotated , descriptor : DeclarationDescriptor , annotation : KtAnnotationEntry )","body":"{ if ( annotated is KtProperty && annotated . hasDelegate ( ) && descriptor is PropertyDescriptor && get ( BindingContext . BACKING_FIELD_REQUIRED , descriptor ) != true ) { report ( INAPPLICABLE_TARGET_PROPERTY_HAS_NO_BACKING_FIELD . on ( annotation ) ) } }","docstring":""} {"signature":"private fun KtAnnotationEntry . useSiteDescription ( )","body":"= useSiteTarget ? . getAnnotationUseSiteTarget ( ) ? . renderName ? : \"\"","docstring":""} {"signature":"private fun BindingTrace . checkIfMutableProperty ( annotated : KtAnnotated , annotation : KtAnnotationEntry )","body":"{ if ( ! checkIfProperty ( annotated , annotation , INAPPLICABLE_TARGET_ON_PROPERTY ) ) return val isMutable = when ( annotated ) { is KtProperty -> annotated . isVar is KtParameter -> annotated . isMutable else -> false } if ( ! isMutable ) { report ( INAPPLICABLE_TARGET_PROPERTY_IMMUTABLE . on ( annotation , annotation . useSiteDescription ( ) ) ) } }","docstring":""} {"signature":"private fun BindingTrace . checkIfProperty ( annotated : KtAnnotated , annotation : KtAnnotationEntry , diagnosticFactory : DiagnosticFactory1 < PsiElement , String > ) : Boolean","body":"{ val isProperty = when ( annotated ) { is KtProperty -> ! annotated . isLocal is KtParameter -> annotated . hasValOrVar ( ) else -> false } if ( ! isProperty ) report ( diagnosticFactory . on ( annotation , annotation . useSiteDescription ( ) ) ) return isProperty }","docstring":""} {"signature":"override fun render ( report : SummaryBenchmarksReport , onlyChanges : Boolean ) : String","body":"{ val results = report . detailedMetricReports . values . map { it . mergedReport } . map { report -> report . map { entry -> buildString { val metric = entry . value . first ! ! . metric append ( \"\" ) append ( \"\" ) append ( \"\" ) } } } . flatten ( ) . joinToString ( \"\" ) return \"\" }","docstring":""} {"signature":"fun convert ( type : KtTypeElement , substitutions : SubstitutionMap ) : JCTree . JCExpression","body":"{ return when ( type ) { is KtUserType -> convertUserType ( type , substitutions ) is KtNullableType -> convert ( type . innerType ? : return defaultType , substitutions ) is KtFunctionType -> convertFunctionType ( type , substitutions ) else -> defaultType } }","docstring":""} {"signature":"private fun convert ( typeReference : KtTypeReference ? , substitutions : SubstitutionMap ) : JCTree . JCExpression","body":"{ val type = typeReference ? . typeElement ? : return defaultType return convert ( type , substitutions ) }","docstring":""} {"signature":"private fun convert ( type : SimpleType ) : JCTree . JCExpression","body":"{ return treeMaker . Type ( KaptTypeMapper . mapType ( type ) ) }","docstring":""} {"signature":"private fun convertUserType ( type : KtUserType , substitutions : SubstitutionMap ) : JCTree . JCExpression","body":"{ val target = bindingContext [ BindingContext . REFERENCE_TARGET , type . referenceExpression ] val baseExpression : JCTree . JCExpression when ( target ) { is TypeAliasDescriptor -> { val typeAlias = target . source . getPsi ( ) as? KtTypeAlias val actualType = typeAlias ? . getTypeReference ( ) ? : return convert ( target . expandedType ) return convert ( actualType , typeAlias . getSubstitutions ( type ) ) } is ClassConstructorDescriptor -> { val asmType = KaptTypeMapper . mapType ( target . constructedClass . defaultType , TypeMappingMode . GENERIC_ARGUMENT ) baseExpression = converter . treeMaker . Type ( asmType ) } is ClassDescriptor -> { val asmType = KaptTypeMapper . mapType ( target . defaultType , TypeMappingMode . GENERIC_ARGUMENT ) baseExpression = converter . treeMaker . Type ( asmType ) } else -> { val referencedName = type . referencedName ? : return defaultType val qualifier = type . qualifier if ( qualifier == null ) { if ( referencedName in substitutions ) { val ( typeParameter , projection ) = substitutions . getValue ( referencedName ) return convertTypeProjection ( projection , typeParameter . variance , emptyMap ( ) ) } aliasedImports [ referencedName ] ? . let { return it } } baseExpression = when { qualifier != null -> { val qualifierType = convertUserType ( qualifier , substitutions ) if ( qualifierType === defaultType ) return defaultType treeMaker . Select ( qualifierType , treeMaker . name ( referencedName ) ) } else -> treeMaker . SimpleName ( referencedName ) } } } val arguments = type . typeArguments if ( arguments . isEmpty ( ) ) return baseExpression val typeReference = PsiTreeUtil . getParentOfType ( type , KtTypeReference :: class . java , true ) val kotlinType = bindingContext [ BindingContext . TYPE , typeReference ] ? : ErrorUtils . createErrorType ( ErrorTypeKind . KAPT_ERROR_TYPE ) val typeSystem = SimpleClassicTypeSystemContext val typeMappingMode = when ( typeKind ) { RETURN_TYPE -> typeSystem . getOptimalModeForReturnType ( kotlinType , false ) METHOD_PARAMETER_TYPE -> typeSystem . getOptimalModeForValueParameter ( kotlinType ) SUPER_TYPE -> TypeMappingMode . SUPER_TYPE ANNOTATION -> TypeMappingMode . DEFAULT } . updateArgumentModeFromAnnotations ( kotlinType , typeSystem ) val typeParameters = ( target as? ClassifierDescriptor ) ? . typeConstructor ? . parameters return treeMaker . TypeApply ( baseExpression , mapJListIndexed ( arguments ) { index , projection -> val typeParameter = typeParameters ? . getOrNull ( index ) val typeArgument = kotlinType . arguments . getOrNull ( index ) val variance = if ( typeArgument != null && typeParameter != null ) { KotlinTypeMapper . getVarianceForWildcard ( typeParameter , typeArgument , typeMappingMode ) } else { null } convertTypeProjection ( projection , variance , substitutions ) } ) }","docstring":""} {"signature":"private fun convertTypeProjection ( projection : KtTypeProjection , variance : Variance ? , substitutions : SubstitutionMap ) : JCTree . JCExpression","body":"{ fun unbounded ( ) = treeMaker . Wildcard ( treeMaker . TypeBoundKind ( BoundKind . UNBOUND ) , null ) val argumentType = projection . typeReference ? : return unbounded ( ) val argumentExpression by lazy { convert ( argumentType , substitutions ) } if ( variance === Variance . INVARIANT ) { return argumentExpression } val projectionKind = projection . projectionKind return when { projectionKind === KtProjectionKind . STAR -> treeMaker . Wildcard ( treeMaker . TypeBoundKind ( BoundKind . UNBOUND ) , null ) projectionKind === KtProjectionKind . IN || variance === Variance . IN_VARIANCE -> treeMaker . Wildcard ( treeMaker . TypeBoundKind ( BoundKind . SUPER ) , argumentExpression ) projectionKind === KtProjectionKind . OUT || variance === Variance . OUT_VARIANCE -> treeMaker . Wildcard ( treeMaker . TypeBoundKind ( BoundKind . EXTENDS ) , argumentExpression ) else -> argumentExpression } }","docstring":""} {"signature":"private fun convertFunctionType ( type : KtFunctionType , substitutions : SubstitutionMap ) : JCTree . JCExpression","body":"{ val receiverType = type . receiverTypeReference var parameterTypes = mapJList ( type . parameters ) { convert ( it . typeReference , substitutions ) } val returnType = convert ( type . returnTypeReference , substitutions ) if ( receiverType != null ) { parameterTypes = parameterTypes . prepend ( convert ( receiverType , substitutions ) ) } parameterTypes = parameterTypes . append ( returnType ) val treeMaker = converter . treeMaker return treeMaker . TypeApply ( treeMaker . SimpleName ( \"\" + ( parameterTypes . size - ) ) , parameterTypes ) }","docstring":""} {"signature":"private fun KtTypeParameterListOwner . getSubstitutions ( actualType : KtUserType ) : SubstitutionMap","body":"{ val arguments = actualType . typeArguments if ( typeParameters . size != arguments . size ) { val kaptContext = converter . kaptContext val error = kaptContext . kaptError ( \"\" ) kaptContext . compiler . log . report ( error ) return emptyMap ( ) } val substitutionMap = mutableMapOf < String , Pair < KtTypeParameter , KtTypeProjection > > ( ) typeParameters . forEachIndexed { index , typeParameter -> val name = typeParameter . name ? : return@forEachIndexed substitutionMap [ name ] = Pair ( typeParameter , arguments [ index ] ) } return substitutionMap }","docstring":""} {"signature":"fun KotlinType . containsErrorTypes ( allowedDepth : Int = ) : Boolean","body":"{ if ( allowedDepth <= ) { return false } if ( this . isError ) return true if ( this . arguments . any { ! it . isStarProjection && it . type . containsErrorTypes ( allowedDepth - ) } ) return true return false }","docstring":""} {"signature":"@ Suppress ( \"\" ) fun Project . excludedDirs ( vararg dirs : String )","body":"{ excludedDirs = excludedDirs + dirs . map { File ( projectDir , it ) } }","docstring":""} {"signature":"@ Suppress ( \"\" ) fun serialize ( )","body":"= mapOf < String , Any ? > ( \"\" to variant ? . name , \"\" to excludedDirs )","docstring":""} {"signature":"override fun resolve ( sourceSet : KotlinSourceSet , dependencies : Set < IdeaKotlinDependency > )","body":"{ val project = sourceSet . project val binaryDependenciesByCoordinates = dependencies . filterIsInstance < IdeaKotlinResolvedBinaryDependency > ( ) . filter { dependency -> dependency . isKotlinCompileBinaryType } . groupBy { Coordinates ( it . coordinates ) } val dependencySourceConfiguration = project . configurations . findByName ( sourceSet . internal . dependencySourcesConfigurationName ) ? : return dependencySourceConfiguration . incoming . artifactView { it . isLenient = true } . artifacts . forEach { artifactDependency -> val coordinates = Coordinates ( artifactDependency . variant ) val binaryDependencies = binaryDependenciesByCoordinates [ coordinates ] ? : return@forEach binaryDependencies . forEach { dependency -> dependency . sourcesClasspath . add ( artifactDependency . file ) } } }","docstring":""} {"signature":"private fun Coordinates ( coordinates : IdeaKotlinBinaryCoordinates ? ) : Coordinates ?","body":"{ if ( coordinates == null ) return null return Coordinates ( group = coordinates . group , module = coordinates . module , version = coordinates . version , capabilities = coordinates . capabilities ) }","docstring":""} {"signature":"private fun Coordinates ( variant : ResolvedVariantResult ) : Coordinates ?","body":"{ val id = ( variant . owner as? ModuleComponentIdentifier ) ? : return null return Coordinates ( group = id . group , module = id . module , version = id . version , capabilities = variant . capabilities . map ( :: IdeaKotlinBinaryCapability ) . toSet ( ) ) }","docstring":""} {"signature":"fun box ( )","body":"= expectThrowableMessage { Wrapper ( ) mustEqual }","docstring":""} {"signature":"override fun apply ( project : Project )","body":"{ logger . info ( \"\" ) project . plugins . withType < JavaBasePlugin > ( ) . configureEach { val toolchainLanguageVersion = project . extensions . getByType < JavaPluginExtension > ( ) . toolchain . languageVersion val dokka = project . extensions . getByType < DokkatooExtension > ( ) dokka . dokkatooSourceSets . configureEach { jdkVersion . set ( toolchainLanguageVersion . map { it . asInt ( ) } . orElse ( ) ) } } }","docstring":""} {"signature":"private fun foo ( ) : Int","body":"= ","docstring":""} {"signature":"fun foo ( ) : String","body":"= \"\"","docstring":""} {"signature":"fun box ( )","body":"= expectThrowableMessage { ( + ) mustEqual ( + ) }","docstring":""} {"signature":"@ Test fun jvmUtilReturns400 ( )","body":"{ assertEquals ( , libJvmPlatformUtil ( ) . toInt ( ) ) }","docstring":""} {"signature":"@ Test fun commonUtilTest ( )","body":"{ assertEquals ( , libCommonFunForLibPlatformTests ( ) ) }","docstring":""} {"signature":"fun < T > getT ( ) : T","body":"= null ! !","docstring":""} {"signature":"fun foo ( x : String ) : String","body":"{ return when ( val y = x ) { \"\" -> \"\" \"\" -> \"\" \"\" -> \"\" \"\" -> \"\" else -> \"\" } }","docstring":""} {"signature":"abstract override fun getUsages ( ) : Set < KotlinUsageContext >","body":"abstract override fun getUsages ( ) : Set < KotlinUsageContext >","docstring":""} {"signature":"@ JvmName ( \"\" ) public fun LinAlg . plu ( mat : MultiArray < Float , D2 > ) : Triple < D2Array < Float > , D2Array < Float > , D2Array < Float > >","body":"= this . linAlgEx . pluF ( mat )","docstring":"/**\n * Returns PLU decomposition of the float matrix\n */"} {"signature":"@ JvmName ( \"\" ) public fun < T : Number > LinAlg . plu ( mat : MultiArray < T , D2 > ) : Triple < D2Array < Double > , D2Array < Double > , D2Array < Double > >","body":"= this . linAlgEx . plu ( mat )","docstring":"/**\n * Returns PLU decomposition of the numeric matrix\n */"} {"signature":"@ JvmName ( \"\" ) public fun < T : Complex > LinAlg . plu ( mat : MultiArray < T , D2 > ) : Triple < D2Array < T > , D2Array < T > , D2Array < T > >","body":"= this . linAlgEx . pluC ( mat )","docstring":"/**\n * Returns PLU decomposition of the complex matrix\n */"} {"signature":"operator fun get ( i : Int )","body":"= value","docstring":""} {"signature":"operator fun set ( i : Int , newValue : Byte )","body":"{ value = newValue }","docstring":""} {"signature":"operator fun get ( i : Int )","body":"= value","docstring":""} {"signature":"operator fun set ( i : Int , newValue : Short )","body":"{ value = newValue }","docstring":""} {"signature":"operator fun get ( i : Int )","body":"= value","docstring":""} {"signature":"operator fun set ( i : Int , newValue : Int )","body":"{ value = newValue }","docstring":""} {"signature":"operator fun get ( i : Int )","body":"= value","docstring":""} {"signature":"operator fun set ( i : Int , newValue : Long )","body":"{ value = newValue }","docstring":""} {"signature":"operator fun get ( i : Int )","body":"= value","docstring":""} {"signature":"operator fun set ( i : Int , newValue : Float )","body":"{ value = newValue }","docstring":""} {"signature":"operator fun get ( i : Int )","body":"= value","docstring":""} {"signature":"operator fun set ( i : Int , newValue : Double )","body":"{ value = newValue }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val aByte = AByte ( ) var bByte : Byte = val aShort = AShort ( ) var bShort : Short = val aInt = AInt ( ) var bInt : Int = val aLong = ALong ( ) var bLong : Long = val aFloat = AFloat ( ) var bFloat : Float = val aDouble = ADouble ( ) var bDouble : Double = aByte [ ] ++ bByte ++ if ( aByte [ ] != bByte ) return \"\" aByte [ ] -- bByte -- if ( aByte [ ] != bByte ) return \"\" aShort [ ] ++ bShort ++ if ( aShort [ ] != bShort ) return \"\" aShort [ ] -- bShort -- if ( aShort [ ] != bShort ) return \"\" aInt [ ] ++ bInt ++ if ( aInt [ ] != bInt ) return \"\" aInt [ ] -- bInt -- if ( aInt [ ] != bInt ) return \"\" aLong [ ] ++ bLong ++ if ( aLong [ ] != bLong ) return \"\" aLong [ ] -- bLong -- if ( aLong [ ] != bLong ) return \"\" aFloat [ ] ++ bFloat ++ if ( aFloat [ ] != bFloat ) return \"\" aFloat [ ] -- bFloat -- if ( aFloat [ ] != bFloat ) return \"\" aDouble [ ] ++ bDouble ++ if ( aDouble [ ] != bDouble ) return \"\" aDouble [ ] -- bDouble -- if ( aDouble [ ] != bDouble ) return \"\" return \"\" }","docstring":""} {"signature":"actual fun foo ( ) : Any","body":"= ","docstring":""} {"signature":"fun bar ( ) : Any","body":"= ","docstring":""} {"signature":"abstract fun extract ( matcher : Matcher ) : E","body":"abstract fun extract ( matcher : Matcher ) : E","docstring":""} {"signature":"override fun extract ( matcher : Matcher ) : E","body":"{ val stringValue = matcher . group ( ) return extractor ( stringValue ) ? : error ( \"\" ) }","docstring":""} {"signature":"override fun extract ( matcher : Matcher ) : Boolean","body":"{ return true }","docstring":""} {"signature":"private fun < E : Any > MutableList < PatternWithExtractor < * > > . createPattern ( directive : String , configurationKey : CompilerConfigurationKey < E > , extractor : ( String ) -> E ? , ) : PatternWithExtractor < E >","body":"{ return ValuePatternWithExtractor ( directive , configurationKey , extractor ) . also { this += it } }","docstring":""} {"signature":"private fun MutableList < PatternWithExtractor < * > > . createPattern ( directive : String , configurationKey : CompilerConfigurationKey < Boolean > ) : PatternWithExtractor < Boolean >","body":"{ return BooleanPatternWithExtractor ( directive , configurationKey ) . also { this += it } }","docstring":""} {"signature":"fun parseAnalysisFlags ( rawFlags : List < String > ) : Map < CompilerConfigurationKey < * > , Any >","body":"{ val result = mutableMapOf < CompilerConfigurationKey < * > , Any > ( ) @ Suppress ( \"\" ) for ( flag in rawFlags ) { var m = BOOLEAN_FLAG_PATTERN . matcher ( flag ) if ( m . matches ( ) ) { val flagEnabled = \"\" != m . group ( ) val flagNamespace = m . group ( ) val flagName = m . group ( ) tryApplyBooleanFlag ( result , flag , flagEnabled , flagNamespace , flagName ) continue } for ( pattern in patterns ) { m = pattern . pattern . matcher ( flag ) if ( m . matches ( ) ) { result [ pattern . configurationKey ] = pattern . extract ( m ) continue } } } return result }","docstring":""} {"signature":"private fun tryApplyBooleanFlag ( destination : MutableMap < CompilerConfigurationKey < * > , Any > , flag : String , flagEnabled : Boolean , flagNamespace : String ? , flagName : String )","body":"{ val configurationKeysClass : Class < * > ? var configurationKeyField : Field ? = null if ( flagNamespace == null ) { for ( flagClass in FLAG_CLASSES ) { try { configurationKeyField = flagClass . getField ( flagName ) break } catch ( ignored : java . lang . Exception ) { } } } else { configurationKeysClass = FLAG_NAMESPACE_TO_CLASS [ flagNamespace ] assert ( configurationKeysClass != null ) { \"\" } configurationKeyField = try { configurationKeysClass ! ! . getField ( flagName ) } catch ( e : java . lang . Exception ) { null } } assert ( configurationKeyField != null ) { \"\" } try { @ Suppress ( \"\" ) val configurationKey = configurationKeyField ! ! [ null ] as CompilerConfigurationKey < Boolean > destination [ configurationKey ] = flagEnabled } catch ( e : java . lang . Exception ) { assert ( false ) { \"\" } } }","docstring":""} {"signature":"actual fun useY ( y : Y ) : Unit","body":"{ y . foo ( ) }","docstring":""} {"signature":"actual fun useZ ( z : Z ) : Unit","body":"{ z . foo ( ) }","docstring":""} {"signature":"fun anonymize ( t : T ) : T","body":"fun anonymize ( t : T ) : T","docstring":""} {"signature":"fun anonymizeOnIdeSize ( ) : Boolean","body":"= false","docstring":""} {"signature":"fun anonymizeComponentVersion ( version : String ) : String","body":"{ val parts = version . toLowerCase ( ) . replace ( '' , '' ) . split ( \"\" ) . plus ( listOf ( \"\" , \"\" , \"\" ) ) . take ( ) val mainVersion = parts . take ( ) . map { s -> s . toIntOrNull ( ) ? . toString ( ) ? : \"\" } val suffix = when { parts [ ] . matches ( \"\" . toRegex ( ) ) -> \"\" parts [ ] . matches ( \"\" . toRegex ( ) ) -> \"\" else -> \"\" } return mainVersion . joinToString ( \"\" ) + suffix }","docstring":""} {"signature":"internal fun sha256 ( s : String ) : String","body":"{ val md = MessageDigest . getInstance ( \"\" ) val digest = md . digest ( s . toByteArray ( ) ) return digest . fold ( \"\" , { str , it -> str + \"\" . format ( it ) } ) }","docstring":""} {"signature":"fun testMemberIncrementDecrement ( d : dynamic )","body":"{ val t1 = ++ d . prefixIncr val t2 = -- d . prefixDecr val t3 = d . postfixIncr ++ val t4 = d . postfixDecr -- }","docstring":""} {"signature":"fun testSafeMemberIncrementDecrement ( d : dynamic )","body":"{ val t1 = ++ d ? . prefixIncr val t2 = -- d ? . prefixDecr val t3 = d ? . postfixIncr ++ val t4 = d ? . postfixDecr -- }","docstring":""} {"signature":"fun test ( )","body":"{ var x = var y = y = x ++ y = x -- }","docstring":""} {"signature":"override fun chars ( ) : IntStream","body":"= error ( \"\" )","docstring":""} {"signature":"override fun codePoints ( ) : IntStream","body":"= error ( \"\" )","docstring":""} {"signature":"override fun get ( index : Int ) : Char","body":"= ''","docstring":""} {"signature":"override fun subSequence ( startIndex : Int , endIndex : Int ) : CharSequence","body":"= MyString ( )","docstring":""} {"signature":"override fun toByte ( ) : Byte","body":"{ TODO ( \"\" ) }","docstring":""} {"signature":"override fun toChar ( ) : Char","body":"{ TODO ( \"\" ) }","docstring":""} {"signature":"override fun toDouble ( ) : Double","body":"{ TODO ( \"\" ) }","docstring":""} {"signature":"override fun toFloat ( ) : Float","body":"{ TODO ( \"\" ) }","docstring":""} {"signature":"override fun toInt ( ) : Int","body":"{ TODO ( \"\" ) }","docstring":""} {"signature":"override fun toLong ( ) : Long","body":"{ TODO ( \"\" ) }","docstring":""} {"signature":"override fun toShort ( ) : Short","body":"{ TODO ( \"\" ) }","docstring":""} {"signature":"public fun foo ( vararg p0 : Int )","body":"public fun foo ( vararg p0 : Int )","docstring":""} {"signature":"public fun dummy ( )","body":"public fun dummy ( )","docstring":""} {"signature":"override fun foo ( vararg p0 : Int )","body":"override fun foo ( vararg p0 : Int )","docstring":""} {"signature":"@ Deprecated ( message = x2 + y2 ) fun mainIos ( )","body":"{ }","docstring":""} {"signature":"@ Test fun testDuration ( )","body":"{ assertJsonFormAndRestored ( DurationHolder . serializer ( ) , DurationHolder ( . toDuration ( DurationUnit . SECONDS ) ) , \"\"\"\"\"\" ) }","docstring":""} {"signature":"internal fun convertToHtml ( content : DocumentationContent , docTagParserContext : DocTagParserContext ) : String ?","body":"{ return contentProviders . firstOrNull { it . canConvert ( content ) } ? . convertToHtml ( content , docTagParserContext ) }","docstring":""} {"signature":"internal fun resolveContent ( context : CommentResolutionContext ) : List < DocumentationContent > ?","body":"{ val javadocTag = context . tag ? : return null return when ( javadocTag ) { is ThrowingExceptionJavadocTag -> { javadocTag . exceptionQualifiedName ? . let { _ -> resolveThrowsTag ( javadocTag , context . comment , ) } ? : return null } is ParamJavadocTag -> resolveParamTag ( context . comment , javadocTag ) is DeprecatedJavadocTag -> resolveGenericTag ( context . comment , DescriptionJavadocTag ) is SeeJavadocTag -> emptyList ( ) else -> resolveGenericTag ( context . comment , javadocTag ) } }","docstring":""} {"signature":"private fun resolveGenericTag ( currentElement : PsiDocComment , tag : JavadocTag ) : List < DocumentationContent >","body":"{ val docComment = when ( val owner = currentElement . owner ) { is PsiClass -> lowestClassWithTag ( owner , tag ) is PsiMethod -> lowestMethodWithTag ( owner , tag ) else -> null } return docComment ? . resolveTag ( tag ) ? . flatMap { it . resolveSiblings ( ) } . orEmpty ( ) }","docstring":""} {"signature":"private fun resolveThrowsTag ( tag : ThrowingExceptionJavadocTag , currentElement : PsiDocComment , ) : List < DocumentationContent >","body":"{ val closestDocsWithThrows = ( currentElement . owner as? PsiMethod ) ? . let { method -> lowestMethodsWithTag ( method , tag ) } . orEmpty ( ) . firstOrNull { docCommentFinder . findClosestToElement ( it ) ? . hasTag ( tag ) == true } ? : return emptyList ( ) return docCommentFactory . fromElement ( closestDocsWithThrows ) ? . resolveTag ( tag ) ? : emptyList ( ) }","docstring":"/**\n * Main resolution point for exception like tags\n *\n * This should be used only with [ThrowsJavadocTag] or [ExceptionJavadocTag] as their resolution path should be the same\n */"} {"signature":"private fun resolveParamTag ( currentElement : PsiDocComment , paramTag : ParamJavadocTag , ) : List < DocumentationContent >","body":"{ val parameterIndex = paramTag . paramIndex if ( parameterIndex < ) return emptyList ( ) val isTypeParameter = paramTag . paramName . startsWith ( \"\" ) val methods = ( currentElement . owner as? PsiMethod ) ? . let { lowestMethodsWithTag ( it , paramTag ) } . orEmpty ( ) return methods . flatMap { val parameterName = when { isTypeParameter -> it . typeParameters . getOrNull ( parameterIndex ) ? . name else -> it . parameterList . parameters . getOrNull ( parameterIndex ) ? . name } ? : return@flatMap emptyList ( ) docCommentFinder . findClosestToElement ( it ) ? . takeIf { it . hasTag ( paramTag ) } ? . resolveTag ( ParamJavadocTag ( parameterName , parameterIndex ) ) ? : emptyList ( ) } }","docstring":""} {"signature":"private fun lowestClassWithTag ( baseClass : PsiClass , javadocTag : JavadocTag ) : DocComment ?","body":"= baseClass . superClass ? . let { docCommentFinder . findClosestToElement ( it ) ? . takeIf { tag -> tag . hasTag ( javadocTag ) } ? : lowestClassWithTag ( it , javadocTag ) }","docstring":""} {"signature":"private fun lowestMethodWithTag ( baseMethod : PsiMethod , javadocTag : JavadocTag , ) : DocComment ?","body":"{ val methodsWithTag = lowestMethodsWithTag ( baseMethod , javadocTag ) . firstOrNull ( ) return methodsWithTag ? . let { it . docComment ? . let { JavaDocComment ( it ) } ? : docCommentFinder . findClosestToElement ( it ) } }","docstring":""} {"signature":"private fun lowestMethodsWithTag ( baseMethod : PsiMethod , javadocTag : JavadocTag ) : List < PsiMethod >","body":"= baseMethod . findSuperMethods ( ) . filter { docCommentFinder . findClosestToElement ( it ) ? . hasTag ( javadocTag ) == true }","docstring":""} {"signature":"fun load ( ) : ResolvedDependencies","body":"fun load ( ) : ResolvedDependencies","docstring":""} {"signature":"override fun load ( ) : ResolvedDependencies","body":"= ResolvedDependencies . EMPTY","docstring":""} {"signature":"fun from ( externalDependenciesFile : File ? , onMalformedExternalDependencies : ( String ) -> Unit ) : ExternalDependenciesLoader","body":"= if ( externalDependenciesFile != null ) object : ExternalDependenciesLoader { override fun load ( ) : ResolvedDependencies { return if ( externalDependenciesFile . exists ) { val externalDependenciesText = String ( externalDependenciesFile . readBytes ( ) ) ResolvedDependenciesSupport . deserialize ( externalDependenciesText ) { lineNo , line -> onMalformedExternalDependencies ( \"\" ) } } else ResolvedDependencies . EMPTY } } else EMPTY","docstring":""} {"signature":"fun getUserVisibleModuleId ( deserializer : IrModuleDeserializer ) : ResolvedDependencyId","body":"{ val nameFromMetadataModuleHeader : String = deserializer . moduleFragment . name . asStringStripSpecialMarkers ( ) val nameFromKlibManifest : String ? = deserializer . asDeserializedKotlinLibrary ? . uniqueName return ResolvedDependencyId ( listOfNotNull ( nameFromMetadataModuleHeader , nameFromKlibManifest ) ) }","docstring":""} {"signature":"open fun getUserVisibleModules ( deserializers : Collection < IrModuleDeserializer > ) : Map < ResolvedDependencyId , ResolvedDependency >","body":"{ return mergedModules ( deserializers ) }","docstring":""} {"signature":"protected open fun modulesFromDeserializers ( deserializers : Collection < IrModuleDeserializer > , excludedModuleIds : Set < ResolvedDependencyId > ) : Map < ResolvedDependencyId , ResolvedDependency >","body":"{ val modules : Map < ResolvedDependencyId , ModuleWithUninitializedDependencies > = deserializers . mapNotNull { deserializer -> val moduleId = getUserVisibleModuleId ( deserializer ) if ( moduleId in excludedModuleIds ) return@mapNotNull null val module = ResolvedDependency ( id = moduleId , selectedVersion = ResolvedDependencyVersion . EMPTY , requestedVersionsByIncomingDependencies = hashMapOf ( ResolvedDependencyId . DEFAULT_SOURCE_CODE_MODULE_ID to ResolvedDependencyVersion . EMPTY ) , artifactPaths = hashSetOf ( ) ) val outgoingDependencyIds = deserializer . moduleDependencies . map { getUserVisibleModuleId ( it ) } moduleId to ModuleWithUninitializedDependencies ( module , outgoingDependencyIds ) } . toMap ( ) return modules . stampDependenciesWithRequestedVersionEqualToSelectedVersion ( ) }","docstring":"/**\n * Load [ResolvedDependency]s that represent all libraries participating in the compilation. Includes external dependencies,\n * but without version and hierarchy information. Also includes the libraries that are not visible to the build system\n * (and therefore are missing in [ExternalDependenciesLoader.load]) but are provided by the compiler. For Kotlin/Native such\n * libraries are stdlib, endorsed and platform libraries.\n */"} {"signature":"protected fun mergedModules ( deserializers : Collection < IrModuleDeserializer > ) : MutableMap < ResolvedDependencyId , ResolvedDependency >","body":"{ val externalDependencyModulesByNames : Map < String , ResolvedDependency > = hashMapOf < String , ResolvedDependency > ( ) . apply { externalDependencyModules . forEach { externalDependency -> externalDependency . id . uniqueNames . forEach { uniqueName -> this [ uniqueName ] = externalDependency } } } fun findMatchingExternalDependencyModule ( moduleId : ResolvedDependencyId ) : ResolvedDependency ? = moduleId . uniqueNames . firstNotNullOfOrNull { uniqueName -> externalDependencyModulesByNames [ uniqueName ] } val artifactPathsToOriginModules : MutableMap < ResolvedDependencyArtifactPath , ResolvedDependency > = hashMapOf ( ) externalDependencyModules . forEach { originModule -> originModule . artifactPaths . forEach { artifactPath -> artifactPathsToOriginModules [ artifactPath ] = originModule } } val providedModules = mutableListOf < ResolvedDependency > ( ) modulesFromDeserializers ( deserializers = deserializers , excludedModuleIds = setOf ( sourceCodeModuleId ) ) . forEach { ( moduleId , module ) -> val externalDependencyModule = findMatchingExternalDependencyModule ( moduleId ) if ( externalDependencyModule != null ) { module . requestedVersionsByIncomingDependencies . forEach { ( incomingDependencyId , requestedVersion ) -> val adjustedIncomingDependencyId = findMatchingExternalDependencyModule ( incomingDependencyId ) ? . id ? : incomingDependencyId if ( adjustedIncomingDependencyId !in externalDependencyModule . requestedVersionsByIncomingDependencies ) { externalDependencyModule . requestedVersionsByIncomingDependencies [ adjustedIncomingDependencyId ] = requestedVersion } } } else { val originModuleVersion = module . artifactPaths . firstNotNullOfOrNull { artifactPathsToOriginModules [ it ] } ? . selectedVersion if ( originModuleVersion != null ) { module . selectedVersion = originModuleVersion val incomingDependencyIdsToStampRequestedVersion = module . requestedVersionsByIncomingDependencies . mapNotNull { ( incomingDependencyId , requestedVersion ) -> if ( requestedVersion . isEmpty ( ) ) incomingDependencyId else null } incomingDependencyIdsToStampRequestedVersion . forEach { incomingDependencyId -> module . requestedVersionsByIncomingDependencies [ incomingDependencyId ] = originModuleVersion } } else { if ( module . requestedVersionsByIncomingDependencies . isEmpty ( ) ) { module . requestedVersionsByIncomingDependencies [ sourceCodeModuleId ] = module . selectedVersion } } module . requestedVersionsByIncomingDependencies . mapNotNull { ( incomingDependencyId , requestedVersion ) -> val adjustedIncomingDependencyId = findMatchingExternalDependencyModule ( incomingDependencyId ) ? . id ? : return@mapNotNull null Triple ( incomingDependencyId , adjustedIncomingDependencyId , requestedVersion ) } . forEach { ( incomingDependencyId , adjustedIncomingDependencyId , requestedVersion ) -> module . requestedVersionsByIncomingDependencies . remove ( incomingDependencyId ) module . requestedVersionsByIncomingDependencies [ adjustedIncomingDependencyId ] = requestedVersion } providedModules += module } } return ( externalDependencyModules + providedModules ) . associateByTo ( hashMapOf ( ) ) { it . id } }","docstring":"/**\n * The result of the merge of [ExternalDependenciesLoader.load] and [modulesFromDeserializers].\n */"} {"signature":"private fun Map < ResolvedDependencyId , ModuleWithUninitializedDependencies > . stampDependenciesWithRequestedVersionEqualToSelectedVersion ( ) : Map < ResolvedDependencyId , ResolvedDependency >","body":"{ return mapValues { ( moduleId , moduleWithUninitializedDependencies ) -> val ( module , outgoingDependencyIds ) = moduleWithUninitializedDependencies outgoingDependencyIds . forEach { outgoingDependencyId -> val dependencyModule = getValue ( outgoingDependencyId ) . module dependencyModule . requestedVersionsByIncomingDependencies [ moduleId ] = dependencyModule . selectedVersion } module } }","docstring":""} {"signature":"private fun getPsiAsFirElementSource ( element : KtElement ) : KtElement ?","body":"{ val deparenthesized = if ( element is KtExpression ) KtPsiUtil . safeDeparenthesize ( element ) else element return when { deparenthesized is KtPropertyDelegate -> deparenthesized . expression ? : element deparenthesized is KtQualifiedExpression && deparenthesized . selectorExpression is KtCallExpression -> { deparenthesized . selectorExpression ? : errorWithAttachment ( \"\" ) { withPsiEntry ( \"\" , deparenthesized ) } } deparenthesized is KtValueArgument -> { deparenthesized . getArgumentExpression ( ) } deparenthesized is KtStringTemplateEntryWithExpression -> deparenthesized . expression deparenthesized is KtUserType && deparenthesized . parent is KtNullableType -> deparenthesized . parent as KtNullableType else -> deparenthesized } }","docstring":""} {"signature":"private fun doKtElementHasCorrespondingFirElement ( ktElement : KtElement ) : Boolean","body":"= when ( ktElement ) { is KtImportList -> false is KtFileAnnotationList -> false is KtAnnotation -> false else -> true }","docstring":""} {"signature":"fun getOrBuildFirFor ( element : KtElement ) : FirElement ?","body":"{ return if ( element is KtFile && element !is KtCodeFragment ) { getOrBuildFirForKtFile ( element ) } else { getFirForNonKtFileElement ( element ) } }","docstring":"/**\n * Returns a [FirElement] in its final resolved state.\n *\n * Note: that it isn't always [BODY_RESOLVE][FirResolvePhase.BODY_RESOLVE]\n * as not all declarations have types/bodies/etc. to resolve.\n *\n * For instance, [KtPackageDirective] has nothing to resolve,\n * so it will be returned as is ([FirPackageDirective][org.jetbrains.kotlin.fir.FirPackageDirective]),\n * with the [RAW_FIR][FirResolvePhase.RAW_FIR] phase.\n *\n * @return associated [FirElement] in final resolved state if it exists.\n *\n * @see getFirForElementInsideAnnotations\n * @see getFirForElementInsideTypes\n * @see getFirForElementInsideFileHeader\n */"} {"signature":"private fun getOrBuildFirForKtFile ( ktFile : KtFile ) : FirFile","body":"{ val firFile = moduleComponents . firFileBuilder . buildRawFirFileWithCaching ( ktFile ) firFile . lazyResolveToPhaseRecursively ( FirResolvePhase . BODY_RESOLVE ) return firFile }","docstring":""} {"signature":"private fun getFirForNonKtFileElement ( element : KtElement ) : FirElement ?","body":"{ require ( element !is KtFile || element is KtCodeFragment ) if ( ! doKtElementHasCorrespondingFirElement ( element ) ) { return null } getFirForElementInsideAnnotations ( element ) ? . let { return it } getFirForElementInsideTypes ( element ) ? . let { return it } getFirForElementInsideFileHeader ( element ) ? . let { return it } val psi = getPsiAsFirElementSource ( element ) ? : return null val firFile = element . containingKtFile val fileStructure = moduleComponents . fileStructureCache . getFileStructure ( firFile ) val structureElement = fileStructure . getStructureElementFor ( element ) val mappings = structureElement . mappings return mappings . getFir ( psi ) }","docstring":""} {"signature":"private inline fun < T : KtElement , E : PsiElement > getFirForNonBodyElement ( element : KtElement , anchorElementProvider : ( KtElement ) -> T ? , elementOwnerProvider : ( T ) -> E ? , resolveAndFindFirForAnchor : ( FirElementWithResolveState , T ) -> FirElement ? , ) : FirElement ?","body":"{ val anchorElement = anchorElementProvider ( element ) ? : return null val elementOwner = elementOwnerProvider ( anchorElement ) ? : return null val firElementContainer = if ( elementOwner is KtFile ) { moduleComponents . firFileBuilder . buildRawFirFileWithCaching ( elementOwner ) } else { val nonLocalDeclaration = elementOwner . getNonLocalContainingOrThisDeclaration ( ) if ( elementOwner != nonLocalDeclaration ) return null nonLocalDeclaration . findSourceNonLocalFirDeclaration ( firFileBuilder = moduleComponents . firFileBuilder , provider = moduleComponents . session . firProvider , ) } val anchorFir = resolveAndFindFirForAnchor ( firElementContainer , anchorElement ) ? : return null if ( element === anchorElement ) return anchorFir return findElementInside ( firElement = anchorFir , element = element , stopAt = anchorElement ) }","docstring":""} {"signature":"private fun PsiElement . annotationOwner ( ) : KtAnnotated ?","body":"{ val modifierList = when ( val parent = parent ) { is KtModifierList -> parent is KtAnnotation -> return parent . annotationOwner ( ) is KtFileAnnotationList -> return parent . parent as? KtFile else -> null } return modifierList ? . owner as? KtDeclaration }","docstring":""} {"signature":"private fun getFirForElementInsideAnnotations ( element : KtElement , ) : FirElement ?","body":"= getFirForNonBodyElement < KtAnnotationEntry , KtAnnotated > ( element = element , anchorElementProvider = { it . parentOfType < KtAnnotationEntry > ( withSelf = true ) } , elementOwnerProvider = { it . annotationOwner ( ) } , resolveAndFindFirForAnchor = { declaration , anchor -> declaration . resolveAndFindAnnotation ( anchor , goDeep = true ) } , )","docstring":""} {"signature":"private fun getFirForElementInsideTypes ( element : KtElement ) : FirElement ?","body":"= getFirForNonBodyElement < KtTypeReference , KtDeclaration > ( element = element , anchorElementProvider = { it . parentsOfType < KtTypeReference > ( withSelf = true ) . lastOrNull ( ) } , elementOwnerProvider = { when ( val parent = it . parent ) { is KtDeclaration -> parent is KtSuperTypeListEntry , is KtConstructorCalleeExpression , is KtTypeConstraint -> parent . parentOfType < KtDeclaration > ( ) else -> null } } , resolveAndFindFirForAnchor = { declaration , anchor -> declaration . resolveAndFindTypeRefAnchor ( anchor ) } , ) ? . let { firElement -> if ( firElement is FirReceiverParameter ) { firElement . typeRef } else { firElement } }","docstring":""} {"signature":"private fun getFirForElementInsideFileHeader ( element : KtElement , ) : FirElement ?","body":"= getFirForNonBodyElement < KtElement , KtAnnotated > ( element = element , anchorElementProvider = { it . fileHeaderAnchorElement ( ) } , elementOwnerProvider = { it . containingKtFile } , resolveAndFindFirForAnchor = { declaration , anchor -> declaration . requireTypeIntersectionWith < FirFile > ( ) when ( anchor ) { is KtPackageDirective -> declaration . packageDirective is KtImportDirective -> { declaration . lazyResolveToPhase ( FirResolvePhase . IMPORTS ) declaration . imports . find { it . psi == anchor } } else -> errorWithAttachment ( \"\" ) { withPsiEntry ( \"\" , anchor ) } } } , )","docstring":""} {"signature":"private fun KtElement . fileHeaderAnchorElement ( ) : KtElement ?","body":"{ return parentsWithSelf . find { it is KtPackageDirective || it is KtImportDirective } as? KtElement }","docstring":""} {"signature":"private fun findElementInside ( firElement : FirElement , element : KtElement , stopAt : PsiElement ) : FirElement ?","body":"{ val elementToSearch = getPsiAsFirElementSource ( element ) ? : return null val mapping = FirElementsRecorder . recordElementsFrom ( firElement , FirElementsRecorder ( ) ) var current : PsiElement ? = elementToSearch while ( current != null && current != stopAt && current !is KtFile ) { if ( current is KtElement ) { mapping [ current ] ? . let { return it } } current = current . parent } return firElement }","docstring":""} {"signature":"private fun FirElementWithResolveState . resolveAndFindTypeRefAnchor ( typeReference : KtTypeReference ) : FirElement ?","body":"{ requireTypeIntersectionWith < FirAnnotationContainer > ( ) lazyResolveToPhase ( FirResolvePhase . ANNOTATION_ARGUMENTS ) if ( this is FirCallableDeclaration ) { returnTypeRef . takeIf { it . psi == typeReference } ? . let { return it } receiverParameter ? . takeIf { it . typeRef . psi == typeReference } ? . let { return it } for ( typeParameterRef in typeParameters ) { typeParameterRef . findTypeRefAnchor ( typeReference ) ? . let { return it } } } if ( this is FirTypeParameter ) { findTypeRefAnchor ( typeReference ) ? . let { return it } } if ( this is FirClass ) { for ( typeRef in superTypeRefs ) { if ( typeRef . psi == typeReference ) { return typeRef } } } return null }","docstring":""} {"signature":"private fun FirTypeParameterRef . findTypeRefAnchor ( typeReference : KtTypeReference ) : FirElement ?","body":"{ if ( this !is FirTypeParameter ) return null for ( typeRef in bounds ) { if ( typeRef . psi == typeReference ) { return typeRef } } return null }","docstring":""} {"signature":"private fun FirElementWithResolveState . resolveAndFindAnnotation ( annotationEntry : KtAnnotationEntry , goDeep : Boolean = false , ) : FirAnnotation ?","body":"{ requireTypeIntersectionWith < FirAnnotationContainer > ( ) lazyResolveToPhase ( FirResolvePhase . ANNOTATION_ARGUMENTS ) findAnnotation ( annotationEntry ) ? . let { return it } if ( this is FirProperty ) { backingField ? . findAnnotation ( annotationEntry ) ? . let { return it } getter ? . findAnnotation ( annotationEntry ) ? . let { return it } setter ? . findAnnotation ( annotationEntry ) ? . let { return it } setter ? . valueParameters ? . first ( ) ? . findAnnotation ( annotationEntry ) ? . let { return it } } return when { ! goDeep -> null this is FirProperty -> correspondingValueParameterFromPrimaryConstructor ? . fir ? . resolveAndFindAnnotation ( annotationEntry ) this is FirValueParameter -> correspondingProperty ? . resolveAndFindAnnotation ( annotationEntry ) else -> null } }","docstring":""} {"signature":"private fun FirAnnotationContainer . findAnnotation ( annotationEntry : KtAnnotationEntry , ) : FirAnnotation ?","body":"= annotations . find { it . psi == annotationEntry }","docstring":""} {"signature":"private fun KtDeclaration . isPartOf ( callableDeclaration : KtCallableDeclaration ) : Boolean","body":"= when ( this ) { is KtPropertyAccessor -> this . property == callableDeclaration is KtParameter -> { val ownerFunction = ownerFunction ownerFunction == callableDeclaration || ownerFunction ? . isPartOf ( callableDeclaration ) == true } is KtTypeParameter -> containingDeclaration == callableDeclaration else -> false }","docstring":""} {"signature":"internal fun PsiElement . getNonLocalContainingOrThisDeclaration ( predicate : ( KtDeclaration ) -> Boolean = { true } ) : KtDeclaration ?","body":"{ return getNonLocalContainingDeclaration ( parentsWithSelf , predicate ) }","docstring":""} {"signature":"internal fun getNonLocalContainingDeclaration ( elementsToCheck : Sequence < PsiElement > , predicate : ( KtDeclaration ) -> Boolean = { true } , ) : KtDeclaration ?","body":"{ var candidate : KtDeclaration ? = null fun propose ( declaration : KtDeclaration ) { if ( candidate == null ) { candidate = declaration } } for ( parent in elementsToCheck ) { candidate ? . let { notNullCandidate -> if ( parent is KtEnumEntry || parent is KtCallableDeclaration && ! notNullCandidate . isPartOf ( parent ) || parent is KtAnonymousInitializer || parent is KtObjectLiteralExpression || parent is KtCallElement || parent is KtCodeFragment || parent is PsiErrorElement ) { candidate = null } } if ( candidate == null ) { when ( parent ) { is KtScript -> propose ( parent ) is KtDestructuringDeclaration -> propose ( parent ) is KtDestructuringDeclarationEntry -> propose ( parent ) is KtScriptInitializer -> propose ( parent ) is KtClassInitializer -> { val container = parent . containingDeclaration if ( ! container . isObjectLiteral ( ) && declarationCanBeLazilyResolved ( container ) && predicate ( parent ) ) { propose ( parent ) } } is KtDeclaration -> { if ( ! parent . isAutonomousDeclaration ) { if ( predicate ( parent ) ) { propose ( parent ) } } val isKindApplicable = when ( parent ) { is KtClassOrObject -> ! parent . isObjectLiteral ( ) is KtDeclarationWithBody , is KtProperty , is KtTypeAlias -> true else -> false } if ( isKindApplicable && declarationCanBeLazilyResolved ( parent ) && predicate ( parent ) ) { propose ( parent ) } } } } } return candidate }","docstring":"/**\n * Returns the first non-local declaration from [elementsToCheck] that contains the given elements,\n * based on the specified predicate.\n *\n * The resulting declaration can be considered reachable at [RAW_FIR][FirResolvePhase.RAW_FIR] phase.\n *\n * @see org.jetbrains.kotlin.analysis.low.level.api.fir.file.structure.FileStructure\n */"} {"signature":"override fun deserialize ( decoder : Decoder ) : ConfigMemorySize","body":"= if ( decoder is HoconDecoder ) decoder . decodeConfigValue { conf , path -> conf . decodeMemorySize ( path ) } else throwUnsupportedFormatException ( \"\" )","docstring":""} {"signature":"override fun serialize ( encoder : Encoder , value : ConfigMemorySize )","body":"{ if ( encoder is HoconEncoder ) { val andVal = BigInteger . valueOf ( ) var bytes = value . toBytesBigInteger ( ) var unitIndex = while ( bytes . and ( andVal ) == BigInteger . ZERO ) { if ( unitIndex < memoryUnitFormats . lastIndex ) { bytes = bytes . shiftRight ( ) unitIndex ++ } else break } encoder . encodeString ( \"\" ) } else { throwUnsupportedFormatException ( \"\" ) } }","docstring":""} {"signature":"private fun Config . decodeMemorySize ( path : String ) : ConfigMemorySize","body":"= try { getMemorySize ( path ) } catch ( e : ConfigException ) { throw SerializationException ( \"\" , e ) }","docstring":""} {"signature":"@ a @ b fun f ( @ a @ b p1 : C ) : Int","body":"= ","docstring":""} {"signature":"fun testJavaConstantChangedUsedInKotlin ( )","body":"{ doTest ( \"\" ) }","docstring":""} {"signature":"fun testJavaConstantUnchangedUsedInKotlin ( )","body":"{ doTest ( \"\" ) }","docstring":""} {"signature":"fun testKotlinConstantChangedUsedInJava ( )","body":"{ doTest ( \"\" ) }","docstring":""} {"signature":"fun testKotlinJvmFieldChangedUsedInJava ( )","body":"{ doTest ( \"\" ) }","docstring":""} {"signature":"fun testKotlinConstantUnchangedUsedInJava ( )","body":"{ doTest ( \"\" ) }","docstring":""} {"signature":"fun testKotlinJvmFieldUnchangedUsedInJava ( )","body":"{ doTest ( \"\" ) }","docstring":""} {"signature":"@ Test fun nothingToCommonize0 ( )","body":"= doTestNothingToCommonize ( emptyMap ( ) )","docstring":""} {"signature":"@ Test fun commonized1 ( )","body":"= doTestSuccessfulCommonization ( mapOf ( \"\" to listOf ( \"\" ) , \"\" to listOf ( \"\" ) ) )","docstring":""} {"signature":"@ Test fun commonized2 ( )","body":"= doTestSuccessfulCommonization ( mapOf ( \"\" to listOf ( \"\" , \"\" ) , \"\" to listOf ( \"\" , \"\" ) ) )","docstring":""} {"signature":"@ Test fun commonized3 ( )","body":"= doTestSuccessfulCommonization ( mapOf ( \"\" to listOf ( \"\" ) ) )","docstring":""} {"signature":"@ Test fun commonizedWithDifferentModules ( )","body":"= doTestNothingToCommonize ( mapOf ( \"\" to listOf ( \"\" ) , \"\" to listOf ( \"\" ) ) )","docstring":""} {"signature":"@ Test fun commonizedWithMissingModules ( )","body":"= doTestSuccessfulCommonization ( mapOf ( \"\" to listOf ( \"\" , \"\" ) , \"\" to listOf ( \"\" , \"\" ) ) )","docstring":""} {"signature":"private fun Map < String , List < String > > . toCommonizerParameters ( resultsConsumer : ResultsConsumer , manifestDataProvider : ( CommonizerTarget ) -> NativeManifestDataProvider = { MockNativeManifestDataProvider ( it ) } , commonizerSettings : CommonizerSettings = DefaultCommonizerSettings , ) : CommonizerParameters","body":"{ val targetDependentModuleNames = mapKeys { ( targetName , _ ) -> LeafCommonizerTarget ( targetName ) } . toTargetDependent ( ) val sharedTarget = SharedCommonizerTarget ( targetDependentModuleNames . targets . allLeaves ( ) ) return CommonizerParameters ( outputTargets = setOf ( sharedTarget ) , dependenciesProvider = TargetDependent ( sharedTarget . withAllLeaves ( ) ) { null } , manifestProvider = TargetDependent ( sharedTarget . withAllLeaves ( ) , manifestDataProvider ) , targetProviders = targetDependentModuleNames . map { target , moduleNames -> TargetProvider ( target = target , modulesProvider = MockModulesProvider . create ( moduleNames ) ) } , resultsConsumer = resultsConsumer , settings = commonizerSettings , ) }","docstring":""} {"signature":"private fun doTestNothingToCommonize ( originalModules : Map < String , List < String > > )","body":"{ val results = MockResultsConsumer ( ) runCommonization ( originalModules . toCommonizerParameters ( results ) ) assertEquals ( Status . NOTHING_TO_DO , results . status ) assertTrue ( results . modulesByTargets . isEmpty ( ) ) }","docstring":""} {"signature":"private fun doTestSuccessfulCommonization ( originalModules : Map < String , List < String > > )","body":"{ val results = MockResultsConsumer ( ) runCommonization ( originalModules . toCommonizerParameters ( results ) ) assertEquals ( Status . DONE , results . status ) val expectedCommonModuleNames = mutableSetOf < String > ( ) originalModules . values . forEachIndexed { index , moduleNames -> if ( index == ) expectedCommonModuleNames . addAll ( moduleNames ) else expectedCommonModuleNames . retainAll ( moduleNames ) } assertModulesMatch ( expectedCommonizedModuleNames = expectedCommonModuleNames , expectedMissingModuleNames = emptySet ( ) , actualModuleResults = results . modulesByTargets . getValue ( results . sharedTarget ) ) results . leafTargets . forEach { target -> val allModuleNames = originalModules . getValue ( target . name ) . toSet ( ) val expectedMissingModuleNames = allModuleNames - expectedCommonModuleNames assertModulesMatch ( expectedCommonizedModuleNames = expectedCommonModuleNames , expectedMissingModuleNames = expectedMissingModuleNames , actualModuleResults = results . modulesByTargets . getValue ( target ) ) } }","docstring":""} {"signature":"private fun assertModulesMatch ( expectedCommonizedModuleNames : Set < String > , expectedMissingModuleNames : Set < String > , actualModuleResults : Collection < ModuleResult > )","body":"{ val actualCommonizedModuleNames = mutableSetOf < String > ( ) val actualMissingModuleNames = mutableSetOf < String > ( ) actualModuleResults . forEach { moduleResult -> actualCommonizedModuleNames += moduleResult . libraryName } assertEquals ( expectedCommonizedModuleNames . size + expectedMissingModuleNames . size , actualModuleResults . size ) assertEquals ( expectedCommonizedModuleNames , actualCommonizedModuleNames ) assertEquals ( expectedMissingModuleNames , actualMissingModuleNames ) }","docstring":""} {"signature":"fun ClassLoader . forAllMatchingFiles ( namePattern : String , vararg keyResourcePaths : String , body : ( String , InputStream ) -> Unit )","body":"{ val processedDirs = HashSet < File > ( ) val processedJars = HashSet < URL > ( ) val nameRegex = namePatternToRegex ( namePattern ) fun iterateResources ( keyResourcePaths : Array < out String > ) { for ( keyResourcePath in keyResourcePaths ) { val resourceRootCalc = ClassLoaderResourceRootFIlePathCalculator ( keyResourcePath ) for ( url in getResources ( keyResourcePath ) ) { if ( url . protocol == \"\" ) { val jarConnection = url . openConnection ( ) as? JarURLConnection val jarUrl = jarConnection ? . jarFileURL if ( jarUrl != null && ! processedJars . contains ( jarUrl ) ) { processedJars . add ( jarUrl ) try { jarConnection . jarFile } catch ( _ : IOException ) { null } ? . let { forAllMatchingFilesInJarFile ( it , nameRegex , body ) } } } else { val rootDir = url . toFileOrNull ( ) ? . let { resourceRootCalc ( it ) } if ( rootDir != null && rootDir . isDirectory && ! processedDirs . contains ( rootDir ) ) { processedDirs . add ( rootDir ) forAllMatchingFilesInDirectory ( rootDir , namePattern , body ) } } } } } iterateResources ( if ( keyResourcePaths . isEmpty ( ) ) arrayOf ( \"\" , JAR_MANIFEST_RESOURCE_NAME ) else keyResourcePaths ) }","docstring":""} {"signature":"private fun Char . escape ( ) : String","body":"= ( if ( this == '' || patternCharsToEscape . contains ( this ) ) \"\" else \"\" ) + this","docstring":""} {"signature":"internal fun String . toUniversalSeparator ( ) : String","body":"= if ( File . separatorChar == '' ) this else replace ( File . separatorChar , '' )","docstring":""} {"signature":"internal fun forAllMatchingFilesInDirectory ( baseDir : File , namePattern : String , body : ( String , InputStream ) -> Unit )","body":"{ val patternStart = namePattern . indexOfAny ( wildcardChars ) if ( patternStart < ) { baseDir . resolve ( namePattern ) . takeIf { it . exists ( ) && it . isFile } ? . let { file -> body ( file . relativeToOrSelf ( baseDir ) . path . toUniversalSeparator ( ) , file . inputStream ( ) ) } } else { val patternDirStart = namePattern . lastIndexOfAny ( pathSeparatorChars , patternStart ) val root = if ( patternDirStart <= ) baseDir else baseDir . resolve ( namePattern . substring ( , patternDirStart ) ) if ( root . exists ( ) && root . isDirectory ) { val re = namePatternToRegex ( namePattern . substring ( patternDirStart + ) ) root . walkTopDown ( ) . filter { re . matches ( it . relativeToOrSelf ( root ) . path ) } . forEach { file -> body ( file . relativeToOrSelf ( baseDir ) . path . toUniversalSeparator ( ) , file . inputStream ( ) ) } } } }","docstring":""} {"signature":"internal fun forAllMatchingFilesInJarStream ( jarInputStream : JarInputStream , nameRegex : Regex , body : ( String , InputStream ) -> Unit )","body":"{ do { val entry = jarInputStream . nextJarEntry if ( entry != null ) { try { if ( ! entry . isDirectory && nameRegex . matches ( entry . name ) ) { body ( entry . name , jarInputStream ) } } finally { jarInputStream . closeEntry ( ) } } } while ( entry != null ) }","docstring":""} {"signature":"internal fun forAllMatchingFilesInJar ( jarFile : File , nameRegex : Regex , body : ( String , InputStream ) -> Unit )","body":"{ JarInputStream ( FileInputStream ( jarFile ) ) . use { forAllMatchingFilesInJarStream ( it , nameRegex , body ) } }","docstring":""} {"signature":"internal fun forAllMatchingFilesInJarFile ( jarFile : JarFile , nameRegex : Regex , body : ( String , InputStream ) -> Unit )","body":"{ jarFile . entries ( ) . asSequence ( ) . forEach { entry -> if ( ! entry . isDirectory && nameRegex . matches ( entry . name ) ) { jarFile . getInputStream ( entry ) . use { stream -> body ( entry . name , stream ) } } } }","docstring":""} {"signature":"internal fun namePatternToRegex ( pattern : String ) : Regex","body":"= Regex ( buildString { var current = loop @ while ( current < pattern . length ) { val nextIndex = pattern . indexOfAny ( specialPatternChars , current ) val next = if ( nextIndex < ) pattern . length else nextIndex append ( pattern . substring ( current , next ) ) current = next + when { next >= pattern . length -> break@loop pathSeparatorChars . contains ( pattern [ next ] ) -> append ( pathSeparatorPattern ) pattern [ next ] == '' -> append ( '' ) pattern [ next ] == '' && next + < pattern . length && pattern [ next + ] == '' -> { append ( \"\" ) current ++ } pattern [ next ] == '' -> append ( pathElementPattern ) else -> { append ( '' ) append ( pattern [ next ] ) } } } } )","docstring":""} {"signature":"override fun conversionDefinitelyNotNeeded ( candidate : ResolutionCandidate , argument : KotlinCallArgument , expectedParameterType : UnwrappedType ) : Boolean","body":"{ if ( argument !is SimpleKotlinCallArgument ) return true val argumentType = argument . receiver . stableType if ( argumentType . isSuspendFunctionType ) return true if ( ! expectedParameterType . isSuspendFunctionType ) return true return false }","docstring":""} {"signature":"override fun conversionIsNeededBeforeSubtypingCheck ( argument : KotlinCallArgument , areSuspendOnlySamConversionsSupported : Boolean ) : Boolean","body":"= argument is SimpleKotlinCallArgument && ( argument . receiver . stableType . isFunctionType || argument . receiver . stableType . isKFunctionType )","docstring":""} {"signature":"override fun conversionIsNeededAfterSubtypingCheck ( argument : KotlinCallArgument ) : Boolean","body":"= argument is SimpleKotlinCallArgument && argument . receiver . stableType . isFunctionTypeOrSubtype","docstring":""} {"signature":"override fun convertParameterType ( candidate : ResolutionCandidate , argument : KotlinCallArgument , parameter : ParameterDescriptor , expectedParameterType : UnwrappedType ) : UnwrappedType","body":"{ val nonSuspendParameterType = createFunctionType ( candidate . callComponents . builtIns , expectedParameterType . annotations , expectedParameterType . getReceiverTypeFromFunctionType ( ) , expectedParameterType . getContextReceiverTypesFromFunctionType ( ) , expectedParameterType . getValueParameterTypesFromFunctionType ( ) . map { it . type } , parameterNames = null , expectedParameterType . getReturnTypeFromFunctionType ( ) , suspendFunction = false ) candidate . resolvedCall . registerArgumentWithSuspendConversion ( argument , nonSuspendParameterType ) candidate . markCandidateForCompatibilityResolve ( ) return nonSuspendParameterType }","docstring":""} {"signature":"override fun < R , D > accept ( visitor : IrElementVisitor < R , D > , data : D ) : R","body":"= visitor . visitSuspensionPoint ( this , data )","docstring":""} {"signature":"override fun < D > acceptChildren ( visitor : IrElementVisitor < Unit , D > , data : D )","body":"{ suspensionPointIdParameter . accept ( visitor , data ) result . accept ( visitor , data ) resumeResult . accept ( visitor , data ) }","docstring":""} {"signature":"override fun < D > transformChildren ( transformer : IrElementTransformer < D > , data : D )","body":"{ suspensionPointIdParameter = suspensionPointIdParameter . transform ( transformer , data ) as IrVariable result = result . transform ( transformer , data ) resumeResult = resumeResult . transform ( transformer , data ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ return if ( A ( ) . run ( ) == \"\" ) \"\" else \"\" }","docstring":""} {"signature":"fun run ( )","body":"= with ( \"\" ) { show ( ) }","docstring":""} {"signature":"private fun String . show ( p : Boolean = false ) : String","body":"= getName ( ) + this","docstring":""} {"signature":"private fun getName ( )","body":"= \"\"","docstring":""} {"signature":"override fun shouldBeSuppressed ( d : Documentable ) : Boolean","body":"{ val annotations = ( d as? WithExtraProperties < * > ) ? . annotations ( ) ? : return false if ( annotations . isEmpty ( ) ) return false val deprecatedAnnotations = filterDeprecatedAnnotations ( annotations ) if ( deprecatedAnnotations . isEmpty ( ) ) return false val kotlinDeprecated = deprecatedAnnotations . find { it . dri . packageName == \"\" } if ( kotlinDeprecated ? . isHidden ( ) == true ) return true return perPackageOptions ( d ) ? . skipDeprecated ? : sourceSet ( d ) . skipDeprecated }","docstring":""} {"signature":"private fun WithExtraProperties < * > . annotations ( ) : List < Annotations . Annotation >","body":"{ return this . extra . allOfType < Annotations > ( ) . flatMap { annotations -> annotations . directAnnotations . values . singleOrNull ( ) ? : emptyList ( ) } }","docstring":""} {"signature":"private fun filterDeprecatedAnnotations ( annotations : List < Annotations . Annotation > ) : List < Annotations . Annotation >","body":"{ return annotations . filter { ( it . dri . packageName == \"\" && it . dri . classNames == \"\" ) || ( it . dri . packageName == \"\" && it . dri . classNames == \"\" ) } }","docstring":""} {"signature":"private fun Annotations . Annotation . isHidden ( ) : Boolean","body":"{ val level = ( this . params [ \"\" ] as? EnumValue ) ? : return false return level . enumName == \"\" }","docstring":""} {"signature":"fun Project . setupHighestLanguageLevel ( )","body":"{ LanguageLevelProjectExtension . getInstance ( this ) . languageLevel = LanguageLevel . entries . firstOrNull { it . name == \"\" } ? : LanguageLevel . entries . firstOrNull { it . name == \"\" } ? : LanguageLevel . JDK_X }","docstring":""} {"signature":"override fun beginStructure ( descriptor : SerialDescriptor ) : CompositeEncoder","body":"= this","docstring":""} {"signature":"override fun endStructure ( descriptor : SerialDescriptor )","body":"{ }","docstring":""} {"signature":"public open fun encodeElement ( descriptor : SerialDescriptor , index : Int ) : Boolean","body":"= true","docstring":"/**\n * Invoked before writing an element that is part of the structure to determine whether it should be encoded.\n * Element information can be obtained from the [descriptor] by the given [index].\n *\n * @return `true` if the value should be encoded, false otherwise\n */"} {"signature":"public open fun encodeValue ( value : Any ) : Unit","body":"= throw SerializationException ( \"\" )","docstring":"/**\n * Invoked to encode a value when specialized `encode*` method was not overridden.\n */"} {"signature":"override fun encodeNull ( )","body":"{ throw SerializationException ( \"\" ) }","docstring":""} {"signature":"override fun encodeBoolean ( value : Boolean ) : Unit","body":"= encodeValue ( value )","docstring":""} {"signature":"override fun encodeByte ( value : Byte ) : Unit","body":"= encodeValue ( value )","docstring":""} {"signature":"override fun encodeShort ( value : Short ) : Unit","body":"= encodeValue ( value )","docstring":""} {"signature":"override fun encodeInt ( value : Int ) : Unit","body":"= encodeValue ( value )","docstring":""} {"signature":"override fun encodeLong ( value : Long ) : Unit","body":"= encodeValue ( value )","docstring":""} {"signature":"override fun encodeFloat ( value : Float ) : Unit","body":"= encodeValue ( value )","docstring":""} {"signature":"override fun encodeDouble ( value : Double ) : Unit","body":"= encodeValue ( value )","docstring":""} {"signature":"override fun encodeChar ( value : Char ) : Unit","body":"= encodeValue ( value )","docstring":""} {"signature":"override fun encodeString ( value : String ) : Unit","body":"= encodeValue ( value )","docstring":""} {"signature":"override fun encodeEnum ( enumDescriptor : SerialDescriptor , index : Int ) : Unit","body":"= encodeValue ( index )","docstring":""} {"signature":"override fun encodeInline ( descriptor : SerialDescriptor ) : Encoder","body":"= this","docstring":""} {"signature":"final override fun encodeBooleanElement ( descriptor : SerialDescriptor , index : Int , value : Boolean )","body":"{ if ( encodeElement ( descriptor , index ) ) encodeBoolean ( value ) }","docstring":""} {"signature":"final override fun encodeByteElement ( descriptor : SerialDescriptor , index : Int , value : Byte )","body":"{ if ( encodeElement ( descriptor , index ) ) encodeByte ( value ) }","docstring":""} {"signature":"final override fun encodeShortElement ( descriptor : SerialDescriptor , index : Int , value : Short )","body":"{ if ( encodeElement ( descriptor , index ) ) encodeShort ( value ) }","docstring":""} {"signature":"final override fun encodeIntElement ( descriptor : SerialDescriptor , index : Int , value : Int )","body":"{ if ( encodeElement ( descriptor , index ) ) encodeInt ( value ) }","docstring":""} {"signature":"final override fun encodeLongElement ( descriptor : SerialDescriptor , index : Int , value : Long )","body":"{ if ( encodeElement ( descriptor , index ) ) encodeLong ( value ) }","docstring":""} {"signature":"final override fun encodeFloatElement ( descriptor : SerialDescriptor , index : Int , value : Float )","body":"{ if ( encodeElement ( descriptor , index ) ) encodeFloat ( value ) }","docstring":""} {"signature":"final override fun encodeDoubleElement ( descriptor : SerialDescriptor , index : Int , value : Double )","body":"{ if ( encodeElement ( descriptor , index ) ) encodeDouble ( value ) }","docstring":""} {"signature":"final override fun encodeCharElement ( descriptor : SerialDescriptor , index : Int , value : Char )","body":"{ if ( encodeElement ( descriptor , index ) ) encodeChar ( value ) }","docstring":""} {"signature":"final override fun encodeStringElement ( descriptor : SerialDescriptor , index : Int , value : String )","body":"{ if ( encodeElement ( descriptor , index ) ) encodeString ( value ) }","docstring":""} {"signature":"final override fun encodeInlineElement ( descriptor : SerialDescriptor , index : Int ) : Encoder","body":"= if ( encodeElement ( descriptor , index ) ) encodeInline ( descriptor . getElementDescriptor ( index ) ) else NoOpEncoder","docstring":""} {"signature":"override fun < T : Any ? > encodeSerializableElement ( descriptor : SerialDescriptor , index : Int , serializer : SerializationStrategy < T > , value : T )","body":"{ if ( encodeElement ( descriptor , index ) ) encodeSerializableValue ( serializer , value ) }","docstring":""} {"signature":"override fun < T : Any > encodeNullableSerializableElement ( descriptor : SerialDescriptor , index : Int , serializer : SerializationStrategy < T > , value : T ? )","body":"{ if ( encodeElement ( descriptor , index ) ) encodeNullableSerializableValue ( serializer , value ) }","docstring":""} {"signature":"fun generateBodies ( )","body":"{ for ( ( delegatedFirDeclaration , delegatedIrDeclaration , irField , delegateToFirSymbol , delegateToLookupTag ) in bodiesInfo ) { when ( delegatedIrDeclaration ) { is IrSimpleFunction -> { val delegateToIrFunctionSymbol = declarationStorage . getIrFunctionSymbol ( delegateToFirSymbol . unwrapCallRepresentative ( c , delegateToLookupTag ) as FirNamedFunctionSymbol , delegateToLookupTag ) as? IrSimpleFunctionSymbol ? : continue val body = createDelegateBody ( irField , delegatedFirDeclaration , delegatedIrDeclaration , delegateToFirSymbol . fir , delegateToIrFunctionSymbol , isSetter = false ) delegatedIrDeclaration . body = body } is IrProperty -> { val delegateToIrPropertySymbol = declarationStorage . getIrPropertySymbol ( delegateToFirSymbol . unwrapCallRepresentative ( c , delegateToLookupTag ) as FirPropertySymbol , delegateToLookupTag ) as? IrPropertySymbol ? : continue val delegateToGetterSymbol = declarationStorage . findGetterOfProperty ( delegateToIrPropertySymbol ) ! ! val getter = delegatedIrDeclaration . getter ! ! getter . body = createDelegateBody ( irField , delegatedFirDeclaration , getter , delegateToFirSymbol . fir , delegateToGetterSymbol , isSetter = false ) if ( delegatedIrDeclaration . isVar ) { val delegateToSetterSymbol = declarationStorage . findSetterOfProperty ( delegateToIrPropertySymbol ) ! ! val setter = delegatedIrDeclaration . setter ! ! setter . body = createDelegateBody ( irField , delegatedFirDeclaration , setter , delegateToFirSymbol . fir , delegateToSetterSymbol , isSetter = true ) } } } } bodiesInfo . clear ( ) }","docstring":""} {"signature":"fun generateWithBodiesIfNeeded ( firField : FirField , irField : IrField , firSubClass : FirClass , subClass : IrClass )","body":"{ delegatedMemberGenerator . generate ( irField , firField , firSubClass , subClass ) if ( firSubClass . isLocalClassOrAnonymousObject ( ) ) { delegatedMemberGenerator . generateBodies ( ) } }","docstring":""} {"signature":"fun generate ( irField : IrField , firField : FirField , firSubClass : FirClass , subClass : IrClass )","body":"{ val subClassScope = firSubClass . unsubstitutedScope ( c ) val delegateToScope = firField . initializer ! ! . resolvedType . fullyExpandedType ( session ) . lowerBoundIfFlexible ( ) . scope ( session , scopeSession , CallableCopyTypeCalculator . Forced , null ) ? : return val subClassLookupTag = firSubClass . symbol . toLookupTag ( ) subClassScope . processAllFunctions { functionSymbol -> val unwrapped = functionSymbol . unwrapDelegateTarget ( subClassLookupTag , firField ) ? : return@processAllFunctions val delegateToSymbol = findDelegateToSymbol ( unwrapped . symbol , delegateToScope :: processFunctionsByName , delegateToScope :: processOverriddenFunctions ) ? : return@processAllFunctions val delegateToLookupTag = delegateToSymbol . dispatchReceiverClassLookupTagOrNull ( ) ? : return@processAllFunctions val delegatedFunction = functionSymbol . fir val irSubFunction = generateDelegatedFunction ( subClass , firSubClass , delegatedFunction ) bodiesInfo += DeclarationBodyInfo ( delegatedFunction , irSubFunction , irField , delegateToSymbol , delegateToLookupTag ) declarationStorage . cacheDelegationFunction ( delegatedFunction , irSubFunction ) } subClassScope . processAllProperties { propertySymbol -> if ( propertySymbol !is FirPropertySymbol ) return@processAllProperties val unwrapped = propertySymbol . unwrapDelegateTarget ( subClassLookupTag , firField ) ? : return@processAllProperties val delegateToSymbol = findDelegateToSymbol ( unwrapped . symbol , { name , processor -> delegateToScope . processPropertiesByName ( name ) { if ( it !is FirPropertySymbol ) return@processPropertiesByName processor ( it ) } } , delegateToScope :: processOverriddenProperties ) ? : return@processAllProperties val delegateToLookupTag = delegateToSymbol . dispatchReceiverClassLookupTagOrNull ( ) ? : return@processAllProperties val delegatedProperty = propertySymbol . fir val irSubProperty = generateDelegatedProperty ( subClass , firSubClass , delegatedProperty ) bodiesInfo += DeclarationBodyInfo ( delegatedProperty , irSubProperty , irField , delegateToSymbol , delegateToLookupTag ) declarationStorage . cacheDelegatedProperty ( delegatedProperty , irSubProperty ) } }","docstring":""} {"signature":"private inline fun < reified S : FirCallableSymbol < * > > findDelegateToSymbol ( symbol : S , processCallables : ( name : Name , processor : ( S ) -> Unit ) -> Unit , crossinline processOverridden : ( base : S , processor : ( S ) -> ProcessorAction ) -> ProcessorAction ) : S ?","body":"{ val unwrappedSymbol = symbol . unwrapUseSiteSubstitutionOverrides ( ) var result : S ? = null processCallables ( unwrappedSymbol . name ) { candidateSymbol -> if ( result != null ) return@processCallables val unwrappedCandidateSymbol = candidateSymbol . unwrapUseSiteSubstitutionOverrides ( ) if ( unwrappedCandidateSymbol === unwrappedSymbol ) { result = candidateSymbol return@processCallables } processOverridden ( candidateSymbol ) { overriddenSymbol -> val unwrappedOverriddenSymbol = overriddenSymbol . unwrapUseSiteSubstitutionOverrides ( ) if ( unwrappedOverriddenSymbol === unwrappedSymbol ) { result = candidateSymbol ProcessorAction . STOP } else { ProcessorAction . NEXT } } } return result }","docstring":""} {"signature":"@ OptIn ( FirBasedFakeOverrideGenerator :: class ) fun bindDelegatedMembersOverriddenSymbols ( irClass : IrClass )","body":"{ if ( ! c . configuration . useFirBasedFakeOverrideGenerator ) return val superClasses by lazy ( LazyThreadSafetyMode . NONE ) { irClass . superTypes . mapNotNullTo ( mutableSetOf ( ) ) { @ OptIn ( UnsafeDuringIrConstructionAPI :: class ) it . classifierOrNull ? . owner as? IrClass } } require ( irClass !is Fir2IrLazyClass ) @ OptIn ( UnsafeDuringIrConstructionAPI :: class ) val declarations = irClass . declarations for ( declaration in declarations ) { if ( declaration . origin != IrDeclarationOrigin . DELEGATED_MEMBER ) continue when ( declaration ) { is IrSimpleFunction -> { val symbol = declaration . symbol declaration . overriddenSymbols = baseFunctionSymbols [ declaration ] ? . flatMap { fakeOverrideGenerator . getOverriddenSymbolsInSupertypes ( it , superClasses ) } ? . filter { it != symbol } . orEmpty ( ) } is IrProperty -> { val symbol = declaration . symbol declaration . overriddenSymbols = basePropertySymbols [ declaration ] ? . flatMap { fakeOverrideGenerator . getOverriddenSymbolsInSupertypes ( it , superClasses ) } ? . filter { it != symbol } . orEmpty ( ) declaration . getter ! ! . overriddenSymbols = declaration . overriddenSymbols . mapNotNull { declarationStorage . findGetterOfProperty ( it ) } if ( declaration . isVar ) { declaration . setter ! ! . overriddenSymbols = declaration . overriddenSymbols . mapNotNull { declarationStorage . findSetterOfProperty ( it ) } } } else -> continue } } }","docstring":""} {"signature":"private fun generateDelegatedFunction ( subClass : IrClass , firSubClass : FirClass , delegateOverride : FirSimpleFunction ) : IrSimpleFunction","body":"{ val delegateFunction = declarationStorage . createAndCacheIrFunction ( delegateOverride , subClass , predefinedOrigin = IrDeclarationOrigin . DELEGATED_MEMBER , fakeOverrideOwnerLookupTag = firSubClass . symbol . toLookupTag ( ) ) val baseSymbols = mutableSetOf < FirNamedFunctionSymbol > ( ) delegateOverride . processOverriddenFunctionSymbols ( firSubClass , c ) { baseSymbols . add ( it ) } baseFunctionSymbols [ delegateFunction ] = baseSymbols annotationGenerator . generate ( delegateFunction , delegateOverride ) return delegateFunction }","docstring":""} {"signature":"private fun createDelegateBody ( irField : IrField , delegatedFirDeclaration : FirCallableDeclaration , delegatedIrFunction : IrSimpleFunction , originalFirDeclaration : FirCallableDeclaration , originalFunctionSymbol : IrSimpleFunctionSymbol , isSetter : Boolean ) : IrBlockBody","body":"{ val startOffset = SYNTHETIC_OFFSET val endOffset = SYNTHETIC_OFFSET val body = irFactory . createBlockBody ( startOffset , endOffset ) val typeOrigin = when { originalFirDeclaration is FirPropertyAccessor && originalFirDeclaration . isSetter -> ConversionTypeOrigin . SETTER else -> ConversionTypeOrigin . DEFAULT } val callTypeCanBeNullable : Boolean val callReturnType = when ( isSetter ) { false -> { val substitution = originalFirDeclaration . typeParameters . zip ( delegatedFirDeclaration . typeParameters ) . map { ( original , delegated ) -> original . symbol to delegated . symbol . defaultType } . toMap ( ) val substitutor = substitutorByMap ( substitution , session ) val substitutedType = substitutor . substituteOrSelf ( originalFirDeclaration . returnTypeRef . coneType ) callTypeCanBeNullable = Fir2IrImplicitCastInserter . typeCanBeEnhancedOrFlexibleNullable ( substitutedType , session ) substitutedType . toIrType ( c , typeOrigin ) } true -> { callTypeCanBeNullable = false irBuiltIns . unitType } } val irCall = IrCallImpl ( startOffset , endOffset , callReturnType , originalFunctionSymbol , originalFirDeclaration . typeParameters . size , originalFirDeclaration . numberOfIrValueParameters ( isSetter ) ) . apply { val getField = IrGetFieldImpl ( startOffset , endOffset , irField . symbol , irField . type , IrGetValueImpl ( startOffset , endOffset , delegatedIrFunction . dispatchReceiverParameter ? . type ! ! , delegatedIrFunction . dispatchReceiverParameter ? . symbol ! ! ) ) val superFunctionDispatchReceiverType = originalFirDeclaration . dispatchReceiverType val superFunctionDispatchReceiverLookupTag = ( superFunctionDispatchReceiverType as? ConeClassLikeType ) ? . lookupTag val superFunctionParentSymbol = superFunctionDispatchReceiverLookupTag ? . let { classifierStorage . getIrClassSymbol ( it ) } dispatchReceiver = if ( superFunctionParentSymbol == null || irField . type . isSubtypeOfClass ( superFunctionParentSymbol ) ) { getField } else { Fir2IrImplicitCastInserter . implicitCastOrExpression ( getField , superFunctionDispatchReceiverType . toIrType ( c ) ) } extensionReceiver = delegatedIrFunction . extensionReceiverParameter ? . let { extensionReceiver -> IrGetValueImpl ( startOffset , endOffset , extensionReceiver . type , extensionReceiver . symbol ) } delegatedIrFunction . valueParameters . forEach { putValueArgument ( it . index , IrGetValueImpl ( startOffset , endOffset , it . type , it . symbol ) ) } for ( index in originalFirDeclaration . typeParameters . indices ) { putTypeArgument ( index , IrSimpleTypeImpl ( delegatedIrFunction . typeParameters [ index ] . symbol , hasQuestionMark = false , arguments = emptyList ( ) , annotations = emptyList ( ) ) ) } } val resultType = delegatedIrFunction . returnType val irCastOrCall = if ( callTypeCanBeNullable && ! resultType . isNullable ( ) ) Fir2IrImplicitCastInserter . implicitNotNullCast ( irCall ) else irCall val originalDeclarationReturnType = originalFirDeclaration . returnTypeRef . coneType if ( isSetter || originalDeclarationReturnType . isUnit || originalDeclarationReturnType . isNothing ) { body . statements . add ( irCastOrCall ) } else { val irReturn = IrReturnImpl ( startOffset , endOffset , irBuiltIns . nothingType , delegatedIrFunction . symbol , irCastOrCall ) body . statements . add ( irReturn ) } return body }","docstring":"/**\n * interface Base {\n * fun foo(): String\n * }\n *\n * class Impl : Base {\n * override fun foo(): String { <-------------- [originalFirFunction], [originalFunctionSymbol]\n * return \"OK\"\n * }\n * }\n *\n * class Delegated(impl: Impl) : Base by impl {\n * private field delegate_xxx: Impl = impl <-------------- [irField]\n * generated override fun foo(): String <-------------- [delegateFunction]\n * }\n *\n */"} {"signature":"private fun FirCallableDeclaration . numberOfIrValueParameters ( isSetter : Boolean ) : Int","body":"{ var result = contextReceivers . size when { this is FirFunction -> result += valueParameters . size this is FirProperty && isSetter -> result += } return result }","docstring":""} {"signature":"private fun generateDelegatedProperty ( subClass : IrClass , firSubClass : FirClass , firDelegateProperty : FirProperty ) : IrProperty","body":"{ val delegateProperty = declarationStorage . createAndCacheIrProperty ( firDelegateProperty , subClass , predefinedOrigin = IrDeclarationOrigin . DELEGATED_MEMBER , fakeOverrideOwnerLookupTag = firSubClass . symbol . toLookupTag ( ) ) val baseSymbols = mutableSetOf < FirPropertySymbol > ( ) firDelegateProperty . processOverriddenPropertySymbols ( firSubClass , c ) { baseSymbols . add ( it ) } basePropertySymbols [ delegateProperty ] = baseSymbols firDelegateProperty . getter ? . let { firGetter -> annotationGenerator . generate ( delegateProperty . getter ! ! , firGetter ) } firDelegateProperty . setter ? . let { firSetter -> annotationGenerator . generate ( delegateProperty . setter ! ! , firSetter ) } return delegateProperty }","docstring":""} {"signature":"private fun < S : FirCallableSymbol < D > , D : FirCallableDeclaration > S . unwrapDelegateTarget ( subClassLookupTag : ConeClassLikeLookupTag , firField : FirField , ) : D ?","body":"{ val callable = this . fir val delegatedWrapperData = callable . delegatedWrapperData ? : return null if ( delegatedWrapperData . containingClass != subClassLookupTag ) return null if ( delegatedWrapperData . delegateField != firField ) return null val wrapped = delegatedWrapperData . wrapped @ Suppress ( \"\" ) val wrappedSymbol = wrapped . symbol as? S ? : return null @ Suppress ( \"\" ) return ( wrappedSymbol . unwrapCallRepresentative ( c ) . fir as D ) . takeIf { ! shouldSkipDelegationFor ( it , session ) } }","docstring":""} {"signature":"private fun shouldSkipDelegationFor ( unwrapped : FirCallableDeclaration , session : FirSession ) : Boolean","body":"{ return ( unwrapped is FirSimpleFunction && unwrapped . isDefaultJavaMethod ( ) ) || unwrapped . hasAnnotation ( JVM_DEFAULT_CLASS_ID , session ) || unwrapped . hasAnnotation ( PLATFORM_DEPENDENT_CLASS_ID , session ) }","docstring":""} {"signature":"private fun FirSimpleFunction . isDefaultJavaMethod ( ) : Boolean","body":"= when { isIntersectionOverride -> baseForIntersectionOverride ! ! . isDefaultJavaMethod ( ) isSubstitutionOverride -> originalForSubstitutionOverride ! ! . isDefaultJavaMethod ( ) else -> { isJavaOrEnhancement && modality == Modality . OPEN } }","docstring":""} {"signature":"fun fn ( value : String = x ) : String","body":"= value","docstring":""} {"signature":"fun box ( ) : String","body":"{ return X . fn ( ) }","docstring":""} {"signature":"override fun configure ( builder : TestConfigurationBuilder )","body":"{ super . configure ( builder ) builder . configureDumpHandlersForCodegenTest ( ) }","docstring":""} {"signature":"override fun configure ( builder : TestConfigurationBuilder )","body":"{ super . configure ( builder ) builder . useIrInliner ( ) }","docstring":""} {"signature":"override fun configure ( builder : TestConfigurationBuilder )","body":"{ super . configure ( builder ) builder . configureDumpHandlersForCodegenTest ( ) builder . configureFirParser ( parser ) }","docstring":""} {"signature":"public inline fun BarContext . background ( crossinline block : BackgroundStyle . ( ) -> Unit )","body":"{ BackgroundStyle ( this ) . apply ( block ) }","docstring":"/**\n * Sets background style for [bars][org.jetbrains.kotlinx.kandy.echarts.layers.bars].\n *\n * - [color][BackgroundStyle.color] - background [color][org.jetbrains.kotlinx.kandy.util.color.Color].\n * - [borderColor][BackgroundStyle.borderColor] -\n * background border [color][org.jetbrains.kotlinx.kandy.util.color.Color].\n * - [borderWidth][BackgroundStyle.borderWidth] - background border width.\n * By default `0`.\n * - [borderType][BackgroundStyle.borderType] - border [type][LineType].\n * By default `solid`.\n * - [borderRadius][BackgroundStyle.borderRadius] - background border radius.\n * By default `0`.\n * - [shadowBlur][BackgroundStyle.shadowBlur] - background shadow blur.\n * - [shadowColor][BackgroundStyle.shadowColor] -\n * background shadow [color][org.jetbrains.kotlinx.kandy.util.color.Color].\n * - [alpha][BackgroundStyle.alpha] - background opacity.\n *\n * ```kotlin\n * plot {\n * bars {\n * background {\n * color = Color.GREY\n * borderColor = Color.BLACK\n * borderWidth = 1.0\n * borderType = LineType.DASHED\n * borderRadius = 1.3\n * shadowBlur = 10.0\n * shadowColor = Color.GREEN\n * alpha = 0.7\n * }\n * }\n * }\n * ```\n *\n * @see org.jetbrains.kotlinx.kandy.echarts.layers.bars\n */"} {"signature":"public fun < T > color ( column : ColumnReference < T > , params : EchartsNonPositionalMappingParameters < T , Color > . ( ) -> Unit = { } ) : NonPositionalMapping < T , Color >","body":"= context . nonPosMappingCont ( BACKGROUND_COLOR , column , params )","docstring":""} {"signature":"public fun < T > color ( column : KProperty < T > , params : EchartsNonPositionalMappingParameters < T , Color > . ( ) -> Unit = { } ) : NonPositionalMapping < T , Color >","body":"= context . nonPosMappingCont ( BACKGROUND_COLOR , column , params )","docstring":""} {"signature":"public fun color ( column : String , params : EchartsNonPositionalMappingParameters < * , Color > . ( ) -> Unit = { } ) : NonPositionalMapping < * , Color >","body":"= context . nonPosMappingCont ( BACKGROUND_COLOR , column , params )","docstring":""} {"signature":"public fun < T > color ( values : Iterable < T > , name : String ? = null , params : NonPositionalMappingParameters < T , Color > . ( ) -> Unit = { } ) : NonPositionalMapping < T , Color >","body":"= context . nonPosMappingCont ( BACKGROUND_COLOR , values , name , params )","docstring":""} {"signature":"public fun < T > color ( values : DataColumn < T > , params : EchartsNonPositionalMappingParameters < T , Color > . ( ) -> Unit = { } ) : NonPositionalMapping < T , Color >","body":"= context . nonPosMappingCont ( BACKGROUND_COLOR , values , params )","docstring":""} {"signature":"public fun < T > borderColor ( column : ColumnReference < T > , params : EchartsNonPositionalMappingParameters < T , Color > . ( ) -> Unit = { } ) : NonPositionalMapping < T , Color >","body":"= context . nonPosMappingCont ( BACKGROUND_BORDER_COLOR , column , params )","docstring":""} {"signature":"public fun < T > borderColor ( column : KProperty < T > , params : EchartsNonPositionalMappingParameters < T , Color > . ( ) -> Unit = { } ) : NonPositionalMapping < T , Color >","body":"= context . nonPosMappingCont ( BACKGROUND_BORDER_COLOR , column , params )","docstring":""} {"signature":"public fun borderColor ( column : String , params : EchartsNonPositionalMappingParameters < * , Color > . ( ) -> Unit = { } ) : NonPositionalMapping < * , Color >","body":"= context . nonPosMappingCont ( BACKGROUND_BORDER_COLOR , column , params )","docstring":""} {"signature":"public fun < T > borderColor ( values : Iterable < T > , name : String ? = null , params : NonPositionalMappingParameters < T , Color > . ( ) -> Unit = { } ) : NonPositionalMapping < T , Color >","body":"= context . nonPosMappingCont ( BACKGROUND_BORDER_COLOR , values , name , params )","docstring":""} {"signature":"public fun < T > borderColor ( values : DataColumn < T > , params : EchartsNonPositionalMappingParameters < T , Color > . ( ) -> Unit = { } ) : NonPositionalMapping < T , Color >","body":"= context . nonPosMappingCont ( BACKGROUND_BORDER_COLOR , values , params )","docstring":""} {"signature":"public fun < T > borderWidth ( column : ColumnReference < T > , params : EchartsNonPositionalMappingParameters < T , Color > . ( ) -> Unit = { } ) : NonPositionalMapping < T , Color >","body":"= context . nonPosMappingCont ( BACKGROUND_BORDER_WIDTH , column , params )","docstring":""} {"signature":"public fun < T > borderWidth ( column : KProperty < T > , params : EchartsNonPositionalMappingParameters < T , Color > . ( ) -> Unit = { } ) : NonPositionalMapping < T , Color >","body":"= context . nonPosMappingCont ( BACKGROUND_BORDER_WIDTH , column , params )","docstring":""} {"signature":"public fun borderWidth ( column : String , params : EchartsNonPositionalMappingParameters < * , Color > . ( ) -> Unit = { } ) : NonPositionalMapping < * , Color >","body":"= context . nonPosMappingCont ( BACKGROUND_BORDER_WIDTH , column , params )","docstring":""} {"signature":"public fun < T > borderWidth ( values : Iterable < T > , name : String ? = null , params : NonPositionalMappingParameters < T , Color > . ( ) -> Unit = { } ) : NonPositionalMapping < T , Color >","body":"= context . nonPosMappingCont ( BACKGROUND_BORDER_WIDTH , values , name , params )","docstring":""} {"signature":"public fun < T > borderWidth ( values : DataColumn < T > , params : EchartsNonPositionalMappingParameters < T , Color > . ( ) -> Unit = { } ) : NonPositionalMapping < T , Color >","body":"= context . nonPosMappingCont ( BACKGROUND_BORDER_WIDTH , values , params )","docstring":""} {"signature":"public fun < T > borderType ( column : ColumnReference < T > , params : EchartsNonPositionalMappingParameters < T , LineType > . ( ) -> Unit = { } ) : NonPositionalMapping < T , LineType >","body":"= context . nonPosMappingCont ( BACKGROUND_BORDER_TYPE , column , params )","docstring":""} {"signature":"public fun < T > borderType ( column : KProperty < T > , params : EchartsNonPositionalMappingParameters < T , LineType > . ( ) -> Unit = { } ) : NonPositionalMapping < T , LineType >","body":"= context . nonPosMappingCont ( BACKGROUND_BORDER_TYPE , column , params )","docstring":""} {"signature":"public fun borderType ( column : String , params : EchartsNonPositionalMappingParameters < * , LineType > . ( ) -> Unit = { } ) : NonPositionalMapping < * , LineType >","body":"= context . nonPosMappingCont ( BACKGROUND_BORDER_TYPE , column , params )","docstring":""} {"signature":"public fun < T > borderType ( values : Iterable < T > , name : String ? = null , params : NonPositionalMappingParameters < T , LineType > . ( ) -> Unit = { } ) : NonPositionalMapping < T , LineType >","body":"= context . nonPosMappingCont ( BACKGROUND_BORDER_TYPE , values , name , params )","docstring":""} {"signature":"public fun < T > borderType ( values : DataColumn < T > , params : EchartsNonPositionalMappingParameters < T , LineType > . ( ) -> Unit = { } ) : NonPositionalMapping < T , LineType >","body":"= context . nonPosMappingCont ( BACKGROUND_BORDER_TYPE , values , params )","docstring":""} {"signature":"public fun < T > borderRadius ( column : ColumnReference < T > , params : EchartsNonPositionalMappingParameters < T , Number > . ( ) -> Unit = { } ) : NonPositionalMapping < T , Number >","body":"= context . nonPosMappingCont ( BACKGROUND_BORDER_RADIUS , column , params )","docstring":""} {"signature":"public fun < T > borderRadius ( column : KProperty < T > , params : EchartsNonPositionalMappingParameters < T , Number > . ( ) -> Unit = { } ) : NonPositionalMapping < T , Number >","body":"= context . nonPosMappingCont ( BACKGROUND_BORDER_RADIUS , column , params )","docstring":""} {"signature":"public fun borderRadius ( column : String , params : EchartsNonPositionalMappingParameters < * , Number > . ( ) -> Unit = { } ) : NonPositionalMapping < * , Number >","body":"= context . nonPosMappingCont ( BACKGROUND_BORDER_RADIUS , column , params )","docstring":""} {"signature":"public fun < T > borderRadius ( values : Iterable < T > , name : String ? = null , params : NonPositionalMappingParameters < T , Number > . ( ) -> Unit = { } ) : NonPositionalMapping < T , Number >","body":"= context . nonPosMappingCont ( BACKGROUND_BORDER_RADIUS , values , name , params )","docstring":""} {"signature":"public fun < T > borderRadius ( values : DataColumn < T > , params : EchartsNonPositionalMappingParameters < T , Number > . ( ) -> Unit = { } ) : NonPositionalMapping < T , Number >","body":"= context . nonPosMappingCont ( BACKGROUND_BORDER_RADIUS , values , params )","docstring":""} {"signature":"public fun < T > shadowBlur ( column : ColumnReference < T > , params : EchartsNonPositionalMappingParameters < T , Number > . ( ) -> Unit = { } ) : NonPositionalMapping < T , Number >","body":"= context . nonPosMappingCont ( BACKGROUND_SHADOW_BLUR , column , params )","docstring":""} {"signature":"public fun < T > shadowBlur ( column : KProperty < T > , params : EchartsNonPositionalMappingParameters < T , Number > . ( ) -> Unit = { } ) : NonPositionalMapping < T , Number >","body":"= context . nonPosMappingCont ( BACKGROUND_SHADOW_BLUR , column , params )","docstring":""} {"signature":"public fun shadowBlur ( column : String , params : EchartsNonPositionalMappingParameters < * , Number > . ( ) -> Unit = { } ) : NonPositionalMapping < * , Number >","body":"= context . nonPosMappingCont ( BACKGROUND_SHADOW_BLUR , column , params )","docstring":""} {"signature":"public fun < T > shadowBlur ( values : Iterable < T > , name : String ? = null , params : NonPositionalMappingParameters < T , Number > . ( ) -> Unit = { } ) : NonPositionalMapping < T , Number >","body":"= context . nonPosMappingCont ( BACKGROUND_SHADOW_BLUR , values , name , params )","docstring":""} {"signature":"public fun < T > shadowBlur ( values : DataColumn < T > , params : EchartsNonPositionalMappingParameters < T , Number > . ( ) -> Unit = { } ) : NonPositionalMapping < T , Number >","body":"= context . nonPosMappingCont ( BACKGROUND_SHADOW_BLUR , values , params )","docstring":""} {"signature":"public fun < T > shadowColor ( column : ColumnReference < T > , params : EchartsNonPositionalMappingParameters < T , Color > . ( ) -> Unit = { } ) : NonPositionalMapping < T , Color >","body":"= context . nonPosMappingCont ( BACKGROUND_SHADOW_COLOR , column , params )","docstring":""} {"signature":"public fun < T > shadowColor ( column : KProperty < T > , params : EchartsNonPositionalMappingParameters < T , Color > . ( ) -> Unit = { } ) : NonPositionalMapping < T , Color >","body":"= context . nonPosMappingCont ( BACKGROUND_SHADOW_COLOR , column , params )","docstring":""} {"signature":"public fun shadowColor ( column : String , params : EchartsNonPositionalMappingParameters < * , Color > . ( ) -> Unit = { } ) : NonPositionalMapping < * , Color >","body":"= context . nonPosMappingCont ( BACKGROUND_SHADOW_COLOR , column , params )","docstring":""} {"signature":"public fun < T > shadowColor ( values : Iterable < T > , name : String ? = null , params : NonPositionalMappingParameters < T , Color > . ( ) -> Unit = { } ) : NonPositionalMapping < T , Color >","body":"= context . nonPosMappingCont ( BACKGROUND_SHADOW_COLOR , values , name , params )","docstring":""} {"signature":"public fun < T > shadowColor ( values : DataColumn < T > , params : EchartsNonPositionalMappingParameters < T , Color > . ( ) -> Unit = { } ) : NonPositionalMapping < T , Color >","body":"= context . nonPosMappingCont ( BACKGROUND_SHADOW_COLOR , values , params )","docstring":""} {"signature":"public fun < T > alpha ( column : ColumnReference < T > , params : EchartsNonPositionalMappingParameters < T , Number > . ( ) -> Unit = { } ) : NonPositionalMapping < T , Number >","body":"= context . nonPosMappingCont ( BACKGROUND_ALPHA , column , params )","docstring":""} {"signature":"public fun < T > alpha ( column : KProperty < T > , params : EchartsNonPositionalMappingParameters < T , Number > . ( ) -> Unit = { } ) : NonPositionalMapping < T , Number >","body":"= context . nonPosMappingCont ( BACKGROUND_ALPHA , column , params )","docstring":""} {"signature":"public fun alpha ( column : String , params : EchartsNonPositionalMappingParameters < * , Number > . ( ) -> Unit = { } ) : NonPositionalMapping < * , Number >","body":"= context . nonPosMappingCont ( BACKGROUND_ALPHA , column , params )","docstring":""} {"signature":"public fun < T > alpha ( values : Iterable < T > , name : String ? = null , params : NonPositionalMappingParameters < T , Number > . ( ) -> Unit = { } ) : NonPositionalMapping < T , Number >","body":"= context . nonPosMappingCont ( BACKGROUND_ALPHA , values , name , params )","docstring":""} {"signature":"public fun < T > alpha ( values : DataColumn < T > , params : EchartsNonPositionalMappingParameters < T , Number > . ( ) -> Unit = { } ) : NonPositionalMapping < T , Number >","body":"= context . nonPosMappingCont ( BACKGROUND_ALPHA , values , params )","docstring":""} {"signature":"override fun equals ( other : Any ? ) : Boolean","body":"= other is KTypeImpl && classifier == other . classifier && arguments == other . arguments && isMarkedNullable == other . isMarkedNullable","docstring":""} {"signature":"override fun hashCode ( ) : Int","body":"= ( classifier . hashCode ( ) * + arguments . hashCode ( ) ) * + isMarkedNullable . hashCode ( )","docstring":""} {"signature":"override fun toString ( ) : String","body":"{ val kClass = ( classifier as? KClass < * > ) val classifierName = when { kClass == null -> classifier . toString ( ) kClass . simpleName != null -> kClass . simpleName else -> \"\" } val args = if ( arguments . isEmpty ( ) ) \"\" else arguments . joinToString ( \"\" , \"\" , \">\" ) val nullable = if ( isMarkedNullable ) \"\" else \"\" return classifierName + args + nullable }","docstring":""} {"signature":"abstract fun resolveToDescriptor ( declaration : KtDeclaration ) : DeclarationDescriptor ?","body":"abstract fun resolveToDescriptor ( declaration : KtDeclaration ) : DeclarationDescriptor ?","docstring":""} {"signature":"abstract fun analyze ( element : KtElement ) : BindingContext","body":"abstract fun analyze ( element : KtElement ) : BindingContext","docstring":""} {"signature":"abstract fun analyzeAnnotation ( element : KtAnnotationEntry ) : AnnotationDescriptor ?","body":"abstract fun analyzeAnnotation ( element : KtAnnotationEntry ) : AnnotationDescriptor ?","docstring":""} {"signature":"abstract fun analyzeWithContent ( element : KtClassOrObject ) : BindingContext","body":"abstract fun analyzeWithContent ( element : KtClassOrObject ) : BindingContext","docstring":""} {"signature":"protected abstract fun getUltraLightClassSupport ( element : KtElement ) : KtUltraLightSupport","body":"protected abstract fun getUltraLightClassSupport ( element : KtElement ) : KtUltraLightSupport","docstring":""} {"signature":"fun createConstantEvaluator ( expression : KtExpression ) : ConstantExpressionEvaluator","body":"= getUltraLightClassSupport ( expression ) . run { ConstantExpressionEvaluator ( moduleDescriptor , languageVersionSettings ) }","docstring":""} {"signature":"fun createUltraLightClassForFacade ( facadeClassFqName : FqName , files : Collection < KtFile > ) : KtUltraLightClassForFacade","body":"{ val filesToSupports : List < Pair < KtFile , KtUltraLightSupport > > = files . map { it to getUltraLightClassSupport ( it ) } return KtUltraLightClassForFacade ( facadeClassFqName , files , filesToSupports ) }","docstring":""} {"signature":"fun createUltraLightClass ( element : KtClassOrObject ) : KtUltraLightClass","body":"= getUltraLightClassSupport ( element ) . let { support -> if ( support . languageVersionSettings . getFlag ( AnalysisFlags . eagerResolveOfLightClasses ) ) { val descriptor = resolveToDescriptor ( element ) ( descriptor as? LazyClassDescriptor ) ? . forceResolveAllContents ( ) } when { element is KtObjectDeclaration && element . isObjectLiteral ( ) -> KtUltraLightClassForAnonymousDeclaration ( element , support ) element . safeIsLocal ( ) -> KtUltraLightClassForLocalDeclaration ( element , support ) ( element . hasModifier ( KtTokens . INLINE_KEYWORD ) ) -> KtUltraLightInlineClass ( element , support ) else -> KtUltraLightClass ( element , support ) } }","docstring":""} {"signature":"fun createUltraLightClassForScript ( script : KtScript ) : KtUltraLightClassForScript","body":"= KtUltraLightClassForScript ( script , support = getUltraLightClassSupport ( script ) )","docstring":""} {"signature":"@ JvmStatic fun getInstance ( project : Project ) : LightClassGenerationSupport","body":"{ return project . getService ( LightClassGenerationSupport :: class . java ) }","docstring":""} {"signature":"fun box ( )","body":"= expectThrowableMessage { assert ( \"\" !in listOf ( \"\" , \"\" ) ) } + \"\" + expectThrowableMessage { assert ( \"\" !in listOf ( \"\" ) ) } + \"\" + expectThrowableMessage { assert ( \"\" !in listOf ( \"\" ) ) } + \"\" + expectThrowableMessage { assert ( \"\" !in/*!in*/ listOf ( \"\" , \"\" ) ) } + \"\" + expectThrowableMessage { assert ( ( \"\" !in listOf ( \"\" , \"\" ) ) !in listOf ( false ) ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val l = ArrayList < Int > ( ) l . add ( ) val x = l [ ] / if ( x != ) return \"\" return \"\" }","docstring":""} {"signature":"@ SinceKotlin ( \"\" ) @ WasExperimental ( ExperimentalUnsignedTypes :: class , ExperimentalStdlibApi :: class ) @ kotlin . internal . InlineOnly public inline fun UInt . countOneBits ( ) : Int","body":"= toInt ( ) . countOneBits ( )","docstring":"/**\n * Counts the number of set bits in the binary representation of this [UInt] number.\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ WasExperimental ( ExperimentalUnsignedTypes :: class , ExperimentalStdlibApi :: class ) @ kotlin . internal . InlineOnly public inline fun UInt . countLeadingZeroBits ( ) : Int","body":"= toInt ( ) . countLeadingZeroBits ( )","docstring":"/**\n * Counts the number of consecutive most significant bits that are zero in the binary representation of this [UInt] number.\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ WasExperimental ( ExperimentalUnsignedTypes :: class , ExperimentalStdlibApi :: class ) @ kotlin . internal . InlineOnly public inline fun UInt . countTrailingZeroBits ( ) : Int","body":"= toInt ( ) . countTrailingZeroBits ( )","docstring":"/**\n * Counts the number of consecutive least significant bits that are zero in the binary representation of this [UInt] number.\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ WasExperimental ( ExperimentalUnsignedTypes :: class , ExperimentalStdlibApi :: class ) @ kotlin . internal . InlineOnly public inline fun UInt . takeHighestOneBit ( ) : UInt","body":"= toInt ( ) . takeHighestOneBit ( ) . toUInt ( )","docstring":"/**\n * Returns a number having a single bit set in the position of the most significant set bit of this [UInt] number,\n * or zero, if this number is zero.\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ WasExperimental ( ExperimentalUnsignedTypes :: class , ExperimentalStdlibApi :: class ) @ kotlin . internal . InlineOnly public inline fun UInt . takeLowestOneBit ( ) : UInt","body":"= toInt ( ) . takeLowestOneBit ( ) . toUInt ( )","docstring":"/**\n * Returns a number having a single bit set in the position of the least significant set bit of this [UInt] number,\n * or zero, if this number is zero.\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ WasExperimental ( ExperimentalStdlibApi :: class , ExperimentalUnsignedTypes :: class ) @ kotlin . internal . InlineOnly public inline fun UInt . rotateLeft ( bitCount : Int ) : UInt","body":"= toInt ( ) . rotateLeft ( bitCount ) . toUInt ( )","docstring":"/**\n * Rotates the binary representation of this [UInt] number left by the specified [bitCount] number of bits.\n * The most significant bits pushed out from the left side reenter the number as the least significant bits on the right side.\n *\n * Rotating the number left by a negative bit count is the same as rotating it right by the negated bit count:\n * `number.rotateLeft(-n) == number.rotateRight(n)`\n *\n * Rotating by a multiple of [UInt.SIZE_BITS] (32) returns the same number, or more generally\n * `number.rotateLeft(n) == number.rotateLeft(n % 32)`\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ WasExperimental ( ExperimentalStdlibApi :: class , ExperimentalUnsignedTypes :: class ) @ kotlin . internal . InlineOnly public inline fun UInt . rotateRight ( bitCount : Int ) : UInt","body":"= toInt ( ) . rotateRight ( bitCount ) . toUInt ( )","docstring":"/**\n * Rotates the binary representation of this [UInt] number right by the specified [bitCount] number of bits.\n * The least significant bits pushed out from the right side reenter the number as the most significant bits on the left side.\n *\n * Rotating the number right by a negative bit count is the same as rotating it left by the negated bit count:\n * `number.rotateRight(-n) == number.rotateLeft(n)`\n *\n * Rotating by a multiple of [UInt.SIZE_BITS] (32) returns the same number, or more generally\n * `number.rotateRight(n) == number.rotateRight(n % 32)`\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ WasExperimental ( ExperimentalUnsignedTypes :: class , ExperimentalStdlibApi :: class ) @ kotlin . internal . InlineOnly public inline fun ULong . countOneBits ( ) : Int","body":"= toLong ( ) . countOneBits ( )","docstring":"/**\n * Counts the number of set bits in the binary representation of this [ULong] number.\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ WasExperimental ( ExperimentalUnsignedTypes :: class , ExperimentalStdlibApi :: class ) @ kotlin . internal . InlineOnly public inline fun ULong . countLeadingZeroBits ( ) : Int","body":"= toLong ( ) . countLeadingZeroBits ( )","docstring":"/**\n * Counts the number of consecutive most significant bits that are zero in the binary representation of this [ULong] number.\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ WasExperimental ( ExperimentalUnsignedTypes :: class , ExperimentalStdlibApi :: class ) @ kotlin . internal . InlineOnly public inline fun ULong . countTrailingZeroBits ( ) : Int","body":"= toLong ( ) . countTrailingZeroBits ( )","docstring":"/**\n * Counts the number of consecutive least significant bits that are zero in the binary representation of this [ULong] number.\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ WasExperimental ( ExperimentalUnsignedTypes :: class , ExperimentalStdlibApi :: class ) @ kotlin . internal . InlineOnly public inline fun ULong . takeHighestOneBit ( ) : ULong","body":"= toLong ( ) . takeHighestOneBit ( ) . toULong ( )","docstring":"/**\n * Returns a number having a single bit set in the position of the most significant set bit of this [ULong] number,\n * or zero, if this number is zero.\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ WasExperimental ( ExperimentalUnsignedTypes :: class , ExperimentalStdlibApi :: class ) @ kotlin . internal . InlineOnly public inline fun ULong . takeLowestOneBit ( ) : ULong","body":"= toLong ( ) . takeLowestOneBit ( ) . toULong ( )","docstring":"/**\n * Returns a number having a single bit set in the position of the least significant set bit of this [ULong] number,\n * or zero, if this number is zero.\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ WasExperimental ( ExperimentalStdlibApi :: class , ExperimentalUnsignedTypes :: class ) @ kotlin . internal . InlineOnly public inline fun ULong . rotateLeft ( bitCount : Int ) : ULong","body":"= toLong ( ) . rotateLeft ( bitCount ) . toULong ( )","docstring":"/**\n * Rotates the binary representation of this [ULong] number left by the specified [bitCount] number of bits.\n * The most significant bits pushed out from the left side reenter the number as the least significant bits on the right side.\n *\n * Rotating the number left by a negative bit count is the same as rotating it right by the negated bit count:\n * `number.rotateLeft(-n) == number.rotateRight(n)`\n *\n * Rotating by a multiple of [ULong.SIZE_BITS] (64) returns the same number, or more generally\n * `number.rotateLeft(n) == number.rotateLeft(n % 64)`\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ WasExperimental ( ExperimentalStdlibApi :: class , ExperimentalUnsignedTypes :: class ) @ kotlin . internal . InlineOnly public inline fun ULong . rotateRight ( bitCount : Int ) : ULong","body":"= toLong ( ) . rotateRight ( bitCount ) . toULong ( )","docstring":"/**\n * Rotates the binary representation of this [ULong] number right by the specified [bitCount] number of bits.\n * The least significant bits pushed out from the right side reenter the number as the most significant bits on the left side.\n *\n * Rotating the number right by a negative bit count is the same as rotating it left by the negated bit count:\n * `number.rotateRight(-n) == number.rotateLeft(n)`\n *\n * Rotating by a multiple of [ULong.SIZE_BITS] (64) returns the same number, or more generally\n * `number.rotateRight(n) == number.rotateRight(n % 64)`\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ WasExperimental ( ExperimentalUnsignedTypes :: class , ExperimentalStdlibApi :: class ) @ kotlin . internal . InlineOnly public inline fun UByte . countOneBits ( ) : Int","body":"= toUInt ( ) . countOneBits ( )","docstring":"/**\n * Counts the number of set bits in the binary representation of this [UByte] number.\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ WasExperimental ( ExperimentalUnsignedTypes :: class , ExperimentalStdlibApi :: class ) @ kotlin . internal . InlineOnly public inline fun UByte . countLeadingZeroBits ( ) : Int","body":"= toByte ( ) . countLeadingZeroBits ( )","docstring":"/**\n * Counts the number of consecutive most significant bits that are zero in the binary representation of this [UByte] number.\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ WasExperimental ( ExperimentalUnsignedTypes :: class , ExperimentalStdlibApi :: class ) @ kotlin . internal . InlineOnly public inline fun UByte . countTrailingZeroBits ( ) : Int","body":"= toByte ( ) . countTrailingZeroBits ( )","docstring":"/**\n * Counts the number of consecutive least significant bits that are zero in the binary representation of this [UByte] number.\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ WasExperimental ( ExperimentalUnsignedTypes :: class , ExperimentalStdlibApi :: class ) @ kotlin . internal . InlineOnly public inline fun UByte . takeHighestOneBit ( ) : UByte","body":"= toInt ( ) . takeHighestOneBit ( ) . toUByte ( )","docstring":"/**\n * Returns a number having a single bit set in the position of the most significant set bit of this [UByte] number,\n * or zero, if this number is zero.\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ WasExperimental ( ExperimentalUnsignedTypes :: class , ExperimentalStdlibApi :: class ) @ kotlin . internal . InlineOnly public inline fun UByte . takeLowestOneBit ( ) : UByte","body":"= toInt ( ) . takeLowestOneBit ( ) . toUByte ( )","docstring":"/**\n * Returns a number having a single bit set in the position of the least significant set bit of this [UByte] number,\n * or zero, if this number is zero.\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ WasExperimental ( ExperimentalStdlibApi :: class , ExperimentalUnsignedTypes :: class ) @ kotlin . internal . InlineOnly public inline fun UByte . rotateLeft ( bitCount : Int ) : UByte","body":"= toByte ( ) . rotateLeft ( bitCount ) . toUByte ( )","docstring":"/**\n * Rotates the binary representation of this [UByte] number left by the specified [bitCount] number of bits.\n * The most significant bits pushed out from the left side reenter the number as the least significant bits on the right side.\n *\n * Rotating the number left by a negative bit count is the same as rotating it right by the negated bit count:\n * `number.rotateLeft(-n) == number.rotateRight(n)`\n *\n * Rotating by a multiple of [UByte.SIZE_BITS] (8) returns the same number, or more generally\n * `number.rotateLeft(n) == number.rotateLeft(n % 8)`\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ WasExperimental ( ExperimentalStdlibApi :: class , ExperimentalUnsignedTypes :: class ) @ kotlin . internal . InlineOnly public inline fun UByte . rotateRight ( bitCount : Int ) : UByte","body":"= toByte ( ) . rotateRight ( bitCount ) . toUByte ( )","docstring":"/**\n * Rotates the binary representation of this [UByte] number right by the specified [bitCount] number of bits.\n * The least significant bits pushed out from the right side reenter the number as the most significant bits on the left side.\n *\n * Rotating the number right by a negative bit count is the same as rotating it left by the negated bit count:\n * `number.rotateRight(-n) == number.rotateLeft(n)`\n *\n * Rotating by a multiple of [UByte.SIZE_BITS] (8) returns the same number, or more generally\n * `number.rotateRight(n) == number.rotateRight(n % 8)`\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ WasExperimental ( ExperimentalUnsignedTypes :: class , ExperimentalStdlibApi :: class ) @ kotlin . internal . InlineOnly public inline fun UShort . countOneBits ( ) : Int","body":"= toUInt ( ) . countOneBits ( )","docstring":"/**\n * Counts the number of set bits in the binary representation of this [UShort] number.\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ WasExperimental ( ExperimentalUnsignedTypes :: class , ExperimentalStdlibApi :: class ) @ kotlin . internal . InlineOnly public inline fun UShort . countLeadingZeroBits ( ) : Int","body":"= toShort ( ) . countLeadingZeroBits ( )","docstring":"/**\n * Counts the number of consecutive most significant bits that are zero in the binary representation of this [UShort] number.\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ WasExperimental ( ExperimentalUnsignedTypes :: class , ExperimentalStdlibApi :: class ) @ kotlin . internal . InlineOnly public inline fun UShort . countTrailingZeroBits ( ) : Int","body":"= toShort ( ) . countTrailingZeroBits ( )","docstring":"/**\n * Counts the number of consecutive least significant bits that are zero in the binary representation of this [UShort] number.\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ WasExperimental ( ExperimentalUnsignedTypes :: class , ExperimentalStdlibApi :: class ) @ kotlin . internal . InlineOnly public inline fun UShort . takeHighestOneBit ( ) : UShort","body":"= toInt ( ) . takeHighestOneBit ( ) . toUShort ( )","docstring":"/**\n * Returns a number having a single bit set in the position of the most significant set bit of this [UShort] number,\n * or zero, if this number is zero.\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ WasExperimental ( ExperimentalUnsignedTypes :: class , ExperimentalStdlibApi :: class ) @ kotlin . internal . InlineOnly public inline fun UShort . takeLowestOneBit ( ) : UShort","body":"= toInt ( ) . takeLowestOneBit ( ) . toUShort ( )","docstring":"/**\n * Returns a number having a single bit set in the position of the least significant set bit of this [UShort] number,\n * or zero, if this number is zero.\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ WasExperimental ( ExperimentalStdlibApi :: class , ExperimentalUnsignedTypes :: class ) @ kotlin . internal . InlineOnly public inline fun UShort . rotateLeft ( bitCount : Int ) : UShort","body":"= toShort ( ) . rotateLeft ( bitCount ) . toUShort ( )","docstring":"/**\n * Rotates the binary representation of this [UShort] number left by the specified [bitCount] number of bits.\n * The most significant bits pushed out from the left side reenter the number as the least significant bits on the right side.\n *\n * Rotating the number left by a negative bit count is the same as rotating it right by the negated bit count:\n * `number.rotateLeft(-n) == number.rotateRight(n)`\n *\n * Rotating by a multiple of [UShort.SIZE_BITS] (16) returns the same number, or more generally\n * `number.rotateLeft(n) == number.rotateLeft(n % 16)`\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ WasExperimental ( ExperimentalStdlibApi :: class , ExperimentalUnsignedTypes :: class ) @ kotlin . internal . InlineOnly public inline fun UShort . rotateRight ( bitCount : Int ) : UShort","body":"= toShort ( ) . rotateRight ( bitCount ) . toUShort ( )","docstring":"/**\n * Rotates the binary representation of this [UShort] number right by the specified [bitCount] number of bits.\n * The least significant bits pushed out from the right side reenter the number as the most significant bits on the left side.\n *\n * Rotating the number right by a negative bit count is the same as rotating it left by the negated bit count:\n * `number.rotateRight(-n) == number.rotateLeft(n)`\n *\n * Rotating by a multiple of [UShort.SIZE_BITS] (16) returns the same number, or more generally\n * `number.rotateRight(n) == number.rotateRight(n % 16)`\n */"} {"signature":"override fun < R , D > accept ( visitor : IrElementVisitor < R , D > , data : D ) : R","body":"= visitor . visitSyntheticBody ( this , data )","docstring":""} {"signature":"override fun isApplicable ( project : MavenProject , execution : MojoExecution ) : Boolean","body":"{ logger . info ( \"\" ) return true }","docstring":""} {"signature":"override fun getCompilerPluginId ( )","body":"= TestCommandLineProcessor . TestPluginId","docstring":""} {"signature":"override fun getPluginOptions ( project : MavenProject , execution : MojoExecution ) : List < PluginOption >","body":"{ logger . info ( \"\" ) return listOf ( PluginOption ( \"\" , TestCommandLineProcessor . TestPluginId , TestCommandLineProcessor . MyTestOption . optionName , \"\" ) ) }","docstring":""} {"signature":"fun isValid ( ) : Boolean","body":"{ return substitutor . isValid }","docstring":"/**\n * Checks if the [ResolutionResult] is valid.\n *\n * The [PsiSubstitutor] which is contained inside [ResolutionResult] might become\n * invalidated as it contains [PsiType]s inside\n *\n * @return true if the substitutor is valid, false otherwise.\n */"} {"signature":"private fun resolve ( ) : ResolutionResult","body":"{ while ( true ) { val snapshot = resolutionResult @ Suppress ( \"\" ) when { snapshot != null && snapshot . isValid ( ) -> { return snapshot } else -> { val computedResult = computeResolveResult ( ) if ( ! resolutionResultAtomicFieldUpdater . compareAndSet ( this , snapshot , computedResult ) ) { continue } return computedResult } } } }","docstring":"/**\n * Resolves the current [JavaClassifierType]\n *\n * The code is thread safe and the logic is the following:\n * 1. Try to get a cached resolution result and return it if it's not invalidated\n * 2. Otherwise, resolve the current [JavaClassifierType], update the cache and return the result.\n *\n * @returns [ResolutionResult] to which the [JavaClassifierType] resovled\n */"} {"signature":"private fun computeResolveResult ( ) : ResolutionResult","body":"{ val result = psi . resolveGenerics ( ) val psiClass = result . element val substitutor = result . substitutor return ResolutionResult ( psiClass ? . let { JavaClassifierImpl . create ( it , sourceFactory ) } , substitutor , PsiClassType . isRaw ( result ) ) }","docstring":""} {"signature":"private fun getTypeParameters ( owner : PsiClass ) : List < PsiTypeParameter >","body":"{ var result : List < PsiTypeParameter > ? = null var currentOwner : PsiTypeParameterListOwner ? = owner while ( currentOwner != null ) { val typeParameters = currentOwner . typeParameters if ( typeParameters . isNotEmpty ( ) ) { result = result ? . let { it + typeParameters } ? : typeParameters . toList ( ) } if ( currentOwner . hasModifierProperty ( PsiModifier . STATIC ) ) break currentOwner = currentOwner . containingClass } return result ? : emptyList ( ) }","docstring":""} {"signature":"fun foo ( f : SuspendWithContext )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( \"\" , ReplaceWith ( \"\" ) ) fun FirFunctionSymbol < * > . getSingleExpectForActualOrNull ( ) : FirFunctionSymbol < * > ?","body":"= getSingleMatchedExpectForActualOrNull ( )","docstring":""} {"signature":"fun FirFunctionSymbol < * > . getSingleMatchedExpectForActualOrNull ( ) : FirFunctionSymbol < * > ?","body":"= ( this as FirBasedSymbol < * > ) . getSingleMatchedExpectForActualOrNull ( ) as? FirFunctionSymbol < * >","docstring":"/**\n * @see expectForActual\n */"} {"signature":"fun FirBasedSymbol < * > . getSingleMatchedExpectForActualOrNull ( ) : FirBasedSymbol < * > ?","body":"= expectForActual ? . get ( ExpectActualMatchingCompatibility . MatchedSuccessfully ) ? . singleOrNull ( )","docstring":"/**\n * @see expectForActual\n */"} {"signature":"override fun < R , D > accept ( visitor : FirVisitor < R , D > , data : D ) : R","body":"= visitor . visitSafeCallExpression ( this , data )","docstring":""} {"signature":"@ Suppress ( \"\" ) override fun < E : FirElement , D > transform ( transformer : FirTransformer < D > , data : D ) : E","body":"= transformer . transformSafeCallExpression ( this , data ) as E","docstring":""} {"signature":"abstract override fun replaceConeTypeOrNull ( newConeTypeOrNull : ConeKotlinType ? )","body":"abstract override fun replaceConeTypeOrNull ( newConeTypeOrNull : ConeKotlinType ? )","docstring":""} {"signature":"abstract override fun replaceAnnotations ( newAnnotations : List < FirAnnotation > )","body":"abstract override fun replaceAnnotations ( newAnnotations : List < FirAnnotation > )","docstring":""} {"signature":"abstract fun replaceSelector ( newSelector : FirStatement )","body":"abstract fun replaceSelector ( newSelector : FirStatement )","docstring":""} {"signature":"abstract override fun < D > transformAnnotations ( transformer : FirTransformer < D > , data : D ) : FirSafeCallExpression","body":"abstract override fun < D > transformAnnotations ( transformer : FirTransformer < D > , data : D ) : FirSafeCallExpression","docstring":""} {"signature":"abstract fun < D > transformReceiver ( transformer : FirTransformer < D > , data : D ) : FirSafeCallExpression","body":"abstract fun < D > transformReceiver ( transformer : FirTransformer < D > , data : D ) : FirSafeCallExpression","docstring":""} {"signature":"abstract fun < D > transformSelector ( transformer : FirTransformer < D > , data : D ) : FirSafeCallExpression","body":"abstract fun < D > transformSelector ( transformer : FirTransformer < D > , data : D ) : FirSafeCallExpression","docstring":""} {"signature":"@ Test fun `top-level functions should be generated` ( )","body":"{ val configuration = dokkaConfiguration { sourceSets { sourceSet { sourceRoots = listOf ( \"\" ) } } } testInline ( \"\"\"\"\"\" . trimMargin ( ) , configuration , cleanupOutput = true ) { pagesGenerationStage = { root -> val content = ( root . children . single ( ) . children . first { it . name == \"\" } as ContentPage ) . content val functionRows = content . findTableWithKind ( kind = ContentKind . Functions ) . children functionRows . assertCount ( ) val propRows = content . findTableWithKind ( kind = ContentKind . Properties ) . children propRows . assertCount ( ) } } }","docstring":""} {"signature":"private fun ContentNode . findTableWithKind ( kind : ContentKind ) : ContentNode","body":"= dfs { node -> node is ContentTable && node . dci . kind === kind } . let { assertNotNull ( it , \"\" ) }","docstring":""} {"signature":"@ Test fun topLevelWithClassTest ( )","body":"{ val configuration = dokkaConfiguration { sourceSets { sourceSet { sourceRoots = listOf ( \"\" ) } } } testInline ( \"\"\"\"\"\" . trimMargin ( ) , configuration , cleanupOutput = true ) { pagesGenerationStage = { root -> val contentList = root . children . flatMap { it . children < ContentPage > ( ) } contentList . find { it . name == \"\" } . apply { assertNotNull ( this ) content . findTableWithKind ( ContentKind . Functions ) . children . assertCount ( ) content . findTableWithKind ( ContentKind . Properties ) . children . assertCount ( ) } contentList . find { it . name == \"\" } . apply { assertNotNull ( this ) content . findTableWithKind ( ContentKind . Functions ) . children . assertCount ( ) content . findTableWithKind ( ContentKind . Properties ) . children . assertCount ( ) } } } }","docstring":""} {"signature":"@ Test fun kotlinAndJavaTest ( )","body":"{ val configuration = dokkaConfiguration { sourceSets { sourceSet { sourceRoots = listOf ( \"\" ) } } } testInline ( \"\"\"\"\"\" . trimMargin ( ) , configuration , cleanupOutput = true ) { pagesGenerationStage = { root -> val classes = root . children . first ( ) . children . associateBy { it . name } classes . values . assertCount ( , \"\" ) classes [ \"\" ] . let { it ? . children . orEmpty ( ) . assertCount ( , \"\" ) it ! ! . children . first ( ) . let { assertEquals ( \"\" , it . name , \"\" ) } } classes [ \"\" ] . let { it ? . children . orEmpty ( ) . assertCount ( , \"\" ) it ! ! . children . map { it . name } . let { assertTrue ( it . containsAll ( setOf ( \"\" , \"\" ) ) , \"\" ) } } } } }","docstring":""} {"signature":"@ Test fun `public kotlin properties should have a getter with same visibilities` ( )","body":"{ val configuration = dokkaConfiguration { sourceSets { sourceSet { sourceRoots = listOf ( \"\" ) } } } testInline ( \"\"\"\"\"\" . trimMargin ( ) , configuration , cleanupOutput = true ) { pagesTransformationStage = { rootPageNode -> val propertyGetter = rootPageNode . dfs { it is MemberPageNode && it . name == \"\" } as? MemberPageNode assertNotNull ( propertyGetter ) propertyGetter . content . assertNode { group { header ( ) { + \"\" } } divergentGroup { divergentInstance { divergent { group { + \"\" group { link { + \"\" } } link { + \"\" } + \"\" } } } } } } } }","docstring":""} {"signature":"@ Test fun `java properties should keep its modifiers` ( )","body":"{ val configuration = dokkaConfiguration { sourceSets { sourceSet { sourceRoots = listOf ( \"\" ) } } } testInline ( \"\"\"\"\"\" . trimMargin ( ) , configuration , cleanupOutput = true ) { pagesGenerationStage = { root -> val testClass = root . dfs { it . name == \"\" } as? ClasslikePageNode assertNotNull ( testClass ) ( testClass . content as ContentGroup ) . children . last ( ) . children . last ( ) . assertNode { group { header ( ) { + \"\" } table { group { link { + \"\" } divergentGroup { divergentInstance { divergent { group { group { + \"\" link { + \"\" } } } } } } } } } } } } }","docstring":""} {"signature":"@ Test fun `koltin interfaces and classes should be split to extends and implements` ( )","body":"{ val configuration = dokkaConfiguration { sourceSets { sourceSet { sourceRoots = listOf ( \"\" ) } } } testInline ( \"\"\"\"\"\" . trimMargin ( ) , configuration , cleanupOutput = true ) { pagesGenerationStage = { root -> val testClass = root . dfs { it . name == \"\" } as? ClasslikePageNode assertNotNull ( testClass ) testClass . content . assertNode { group { header ( expectedLevel = ) { + \"\" } platformHinted { group { + \"\" link { + \"\" } + \"\" group { link { + \"\" } } + \"\" group { link { + \"\" } } } } } skipAllNotMatching ( ) } } } }","docstring":""} {"signature":"private fun < T > Collection < T > . assertCount ( n : Int , prefix : String = \"\" )","body":"= assertEquals ( n , count ( ) , \"\" )","docstring":""} {"signature":"@ Test fun `typealias` ( )","body":"{ val writerPlugin = TestOutputWriterPlugin ( ) val configuration = dokkaConfiguration { sourceSets { sourceSet { sourceRoots = listOf ( \"\" ) externalDocumentationLinks = listOf ( DokkaConfiguration . ExternalDocumentationLink . jdk ( ) ) } } } testInline ( \"\"\"\"\"\" . trimMargin ( ) , configuration , pluginOverrides = listOf ( writerPlugin ) , cleanupOutput = true ) { renderingStage = { _ , _ -> writerPlugin . writer . renderedContent ( \"\" ) . firstSignature ( ) . match ( \"\" , A ( \"\" ) , A ( \"\" ) , \"\" , Parameters ( Parameter ( A ( \"\" ) , \"\" ) ) , \"\" , ignoreSpanWithTokenStyle = true ) } } }","docstring":""} {"signature":"@ Test fun `typealias with generic` ( )","body":"{ val writerPlugin = TestOutputWriterPlugin ( ) val configuration = dokkaConfiguration { sourceSets { sourceSet { sourceRoots = listOf ( \"\" ) externalDocumentationLinks = listOf ( DokkaConfiguration . ExternalDocumentationLink . jdk ( ) , stdlibExternalDocumentationLink ) classpath = listOfNotNull ( jvmStdlibPath ) } } } testInline ( \"\"\"\"\"\" . trimMargin ( ) , configuration , pluginOverrides = listOf ( writerPlugin ) , cleanupOutput = true ) { renderingStage = { _ , _ -> writerPlugin . writer . renderedContent ( \"\" ) . firstSignature ( ) . match ( \"\" , A ( \"\" ) , A ( \"\" ) , \"\" , Parameters ( Parameter ( A ( \"\" ) , \"\" , A ( \"\" ) , \"\" , A ( \"\" ) , \"\" ) , ) , \"\" , ignoreSpanWithTokenStyle = true ) } } }","docstring":""} {"signature":"@ Test fun `const in top level` ( )","body":"{ val writerPlugin = TestOutputWriterPlugin ( ) val configuration = dokkaConfiguration { sourceSets { sourceSet { sourceRoots = listOf ( \"\" ) externalDocumentationLinks = listOf ( DokkaConfiguration . ExternalDocumentationLink . jdk ( ) , stdlibExternalDocumentationLink ) } } } testInline ( \"\"\"\"\"\" . trimMargin ( ) , configuration , pluginOverrides = listOf ( writerPlugin ) , cleanupOutput = true ) { renderingStage = { _ , _ -> assertNull ( writerPlugin . writer . contents [ \"\" ] ) } } }","docstring":""} {"signature":"@ Test fun `function in top level` ( )","body":"{ val writerPlugin = TestOutputWriterPlugin ( ) val configuration = dokkaConfiguration { sourceSets { sourceSet { sourceRoots = listOf ( \"\" ) externalDocumentationLinks = listOf ( DokkaConfiguration . ExternalDocumentationLink . jdk ( ) , stdlibExternalDocumentationLink ) } } } testInline ( \"\"\"\"\"\" . trimMargin ( ) , configuration , pluginOverrides = listOf ( writerPlugin ) , cleanupOutput = true ) { renderingStage = { _ , _ -> writerPlugin . writer . renderedContent ( \"\" ) . firstSignature ( ) . match ( \"\" , A ( \"\" ) , A ( \"\" ) , \"\" , Parameters ( Parameter ( A ( \"\" ) , \"\" ) , ) , \"\" , ignoreSpanWithTokenStyle = true ) } } }","docstring":""} {"signature":"@ Test fun `should render primary kotlin constructor as a java constructor` ( )","body":"{ val writerPlugin = TestOutputWriterPlugin ( ) val configuration = dokkaConfiguration { sourceSets { sourceSet { sourceRoots = listOf ( \"\" ) externalDocumentationLinks = listOf ( DokkaConfiguration . ExternalDocumentationLink . jdk ( ) , stdlibExternalDocumentationLink ) } } } testInline ( \"\"\"\"\"\" . trimMargin ( ) , configuration , pluginOverrides = listOf ( writerPlugin ) , cleanupOutput = true ) { pagesGenerationStage = { root -> val content = root . children . flatMap { it . children < ContentPage > ( ) } . map { it . content } . single ( ) . mainContents val text = content . single { it is ContentHeader } . children . single ( ) as ContentText assertEquals ( \"\" , text . text ) } renderingStage = { _ , _ -> writerPlugin . writer . renderedContent ( \"\" ) . firstSignature ( ) . match ( A ( \"\" ) , A ( \"\" ) , \"\" , Parameters ( Parameter ( A ( \"\" ) , \"\" ) ) , \"\" , ignoreSpanWithTokenStyle = true ) } } }","docstring":""} {"signature":"@ Test fun `Java primitive annotations work` ( )","body":"{ val writerPlugin = TestOutputWriterPlugin ( ) val configuration = dokkaConfiguration { sourceSets { sourceSet { sourceRoots = listOf ( \"\" ) externalDocumentationLinks = listOf ( DokkaConfiguration . ExternalDocumentationLink . jdk ( ) , stdlibExternalDocumentationLink ) } } } testInline ( \"\"\"\"\"\" . trimMargin ( ) , configuration , pluginOverrides = listOf ( writerPlugin ) , cleanupOutput = true ) { documentablesTransformationStage = { module -> val type = module . packages . single ( ) . classlikes . first { it . name == \"\" } . functions . single ( ) . type as GenericTypeConstructor assertEquals ( Annotations . Annotation ( DRI ( \"\" , \"\" ) , emptyMap ( ) ) , type . extra [ Annotations ] ? . directAnnotations ? . values ? . single ( ) ? . single ( ) ) assertEquals ( \"\" , type . dri . toString ( ) ) } } }","docstring":"/**\n * Kotlin Int becomes java int. Java int cannot be annotated in source, but Kotlin Int can be.\n * This is paired with DefaultDescriptorToDocumentableTranslatorTest.`Java primitive annotations work`()\n *\n * This test currently does not do anything because Kotlin.Int currently becomes java.lang.Integer not primitive int\n */"} {"signature":"@ Test fun `Java function should keep its access modifier` ( )","body":"{ val className = \"\" val accessModifier = \"\" val methodName = \"\" val testClassQuery = \"\"\"\"\"\" . trimMargin ( ) val configuration = dokkaConfiguration { sourceSets { sourceSet { sourceRoots = listOf ( \"\" ) } } } val writerPlugin = TestOutputWriterPlugin ( ) testInline ( testClassQuery , configuration , pluginOverrides = listOf ( writerPlugin ) , cleanupOutput = true ) { renderingStage = { _ , _ -> val methodDocumentation = \"\" writerPlugin . writer . renderedContent ( methodDocumentation ) . firstSignature ( ) . match ( \"\" , A ( methodName ) , \"\" , ignoreSpanWithTokenStyle = true ) } } }","docstring":""} {"signature":"fun hello ( )","body":"{ val a = So < caret > }","docstring":""} {"signature":"internal fun < T > Stack < T > . push ( item : T )","body":"= add ( item )","docstring":"/**\n * Pushes item to [Stack]\n * @param item Item to be pushed\n */"} {"signature":"internal fun < T > Stack < T > . pop ( ) : T ?","body":"= if ( isNotEmpty ( ) ) removeAt ( lastIndex ) else null","docstring":"/**\n * Pops (removes and return) last item from [Stack]\n * @return item Last item if [Stack] is not empty, null otherwise\n */"} {"signature":"internal fun < T > Stack < T > . peek ( ) : T ?","body":"= if ( isNotEmpty ( ) ) this [ lastIndex ] else null","docstring":"/**\n * Peeks (return) last item from [Stack]\n * @return item Last item if [Stack] is not empty, null otherwise\n */"} {"signature":"@ Benchmark fun channelPipeline ( ) : Int","body":"= runBlocking { run ( unconfined ) }","docstring":""} {"signature":"@ Benchmark fun channelPipelineOneThreadLocal ( ) : Int","body":"= runBlocking { run ( unconfinedOneElement ) }","docstring":""} {"signature":"@ Benchmark fun channelPipelineTwoThreadLocals ( ) : Int","body":"= runBlocking { run ( unconfinedTwoElements ) }","docstring":""} {"signature":"private suspend inline fun run ( context : CoroutineContext ) : Int","body":"{ return Channel . range ( , , context ) . filter ( context ) { it % == } . fold ( ) { a , b -> a + b } }","docstring":""} {"signature":"private fun Channel . Factory . range ( start : Int , count : Int , context : CoroutineContext )","body":"= GlobalScope . produce ( context ) { for ( i in start until ( start + count ) ) send ( i ) }","docstring":""} {"signature":"private fun < E > ReceiveChannel < E > . filter ( context : CoroutineContext = Dispatchers . Unconfined , predicate : suspend ( E ) -> Boolean ) : ReceiveChannel < E >","body":"= GlobalScope . produce ( context , onCompletion = { cancel ( ) } ) { for ( e in this @ filter ) { if ( predicate ( e ) ) send ( e ) } }","docstring":""} {"signature":"private suspend inline fun < E , R > ReceiveChannel < E > . fold ( initial : R , operation : ( acc : R , E ) -> R ) : R","body":"{ var accumulator = initial consumeEach { accumulator = operation ( accumulator , it ) } return accumulator }","docstring":""} {"signature":"fun Receiver . ext ( )","body":"{ }","docstring":""} {"signature":"fun usage ( )","body":"{ }","docstring":"/**\n * [Receiver.ext]\n */"} {"signature":"fun baz ( )","body":"fun baz ( )","docstring":""} {"signature":"open fun boo ( )","body":"open fun boo ( )","docstring":""} {"signature":"external fun d ( a : Boolean , b : Any , c : SomeType )","body":"external fun d ( a : Boolean , b : Any , c : SomeType )","docstring":""} {"signature":"fun foo1 ( x : Int ) : Boolean","body":"{ when ( x ) { + -> return true else -> return false } }","docstring":""} {"signature":"fun foo2 ( x : Int ) : Boolean","body":"{ when ( x ) { Int . MAX_VALUE -> return true else -> return false } }","docstring":""} {"signature":"fun box ( ) : String","body":"{ if ( ! foo1 ( ) ) return \"\" if ( foo1 ( ) ) return \"\" if ( ! foo2 ( Int . MAX_VALUE ) ) return \"\" if ( foo2 ( ) ) return \"\" return \"\" }","docstring":""} {"signature":"override fun iterator ( ) : MutableIterator < E >","body":"override fun iterator ( ) : MutableIterator < E >","docstring":""} {"signature":"override fun applyHierarchyTemplate ( template : KotlinHierarchyTemplate )","body":"{ if ( ! appliedTemplatesImpl . add ( template ) ) return applyHierarchyTemplateToAllCompilations ( template ) }","docstring":""} {"signature":"override fun applyHierarchyTemplate ( template : KotlinHierarchyBuilder . Root . ( ) -> Unit )","body":"{ applyHierarchyTemplate ( KotlinHierarchyTemplate ( template ) ) }","docstring":""} {"signature":"override fun applyHierarchyTemplate ( template : KotlinHierarchyTemplate , extension : KotlinHierarchyBuilder . Root . ( ) -> Unit )","body":"{ applyHierarchyTemplate ( template . extend ( extension ) ) }","docstring":""} {"signature":"private fun applyHierarchyTemplateToAllCompilations ( template : KotlinHierarchyTemplate )","body":"{ targets . matching { target -> target . platformType != KotlinPlatformType . common } . all { target -> target . compilations . all { compilation -> target . project . kotlinPluginLifecycle . launch { withRestrictedStages ( KotlinPluginLifecycle . Stage . upTo ( FinaliseRefinesEdges ) ) { val hierarchy = template . buildHierarchy ( compilation ) ? : return@withRestrictedStages applyKotlinHierarchy ( hierarchy , compilation ) } } } } }","docstring":""} {"signature":"private suspend fun applyKotlinHierarchy ( hierarchy : KotlinHierarchy , compilation : KotlinCompilation < * > ) : KotlinSourceSet ?","body":"{ val sharedSourceSet = createSharedSourceSetOrNull ( hierarchy . node , compilation ) val childSourceSets = hierarchy . children . mapNotNull { childHierarchy -> applyKotlinHierarchy ( childHierarchy , compilation ) } if ( sharedSourceSet == null ) return null if ( hierarchy . children . isNotEmpty ( ) ) { childSourceSets . forEach { childSourceSet -> redundantDependsOnEdgesTracker . addDependsOnEdgeFromTemplate ( childSourceSet , sharedSourceSet ) } } else { compilation . internal . kotlinSourceSets . forAll { compilationSourceSet -> redundantDependsOnEdgesTracker . addDependsOnEdgeFromTemplate ( compilationSourceSet , sharedSourceSet ) } } return sharedSourceSet }","docstring":""} {"signature":"private suspend fun createSharedSourceSetOrNull ( node : KotlinHierarchy . Node , compilation : KotlinCompilation < * > , ) : KotlinSourceSet ?","body":"{ val sharedSourceSetName = node . sharedSourceSetName ( compilation ) ? : return null return sourceSets . maybeCreate ( sharedSourceSetName ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val b = B < Any > ( ) assertEquals ( b , b ) return \"\" }","docstring":""} {"signature":"@ Test fun withDescendents ( )","body":"{ val dClass = DClass ( dri = DRI ( ) , name = \"\" , constructors = emptyList ( ) , classlikes = emptyList ( ) , companion = null , documentation = emptyMap ( ) , expectPresentInSet = null , extra = PropertyContainer . empty ( ) , visibility = emptyMap ( ) , generics = emptyList ( ) , modifier = emptyMap ( ) , properties = emptyList ( ) , sources = emptyMap ( ) , sourceSets = emptySet ( ) , supertypes = emptyMap ( ) , isExpectActual = false , functions = listOf ( DFunction ( dri = DRI ( ) , name = \"\" , documentation = emptyMap ( ) , expectPresentInSet = null , extra = PropertyContainer . empty ( ) , visibility = emptyMap ( ) , generics = emptyList ( ) , modifier = emptyMap ( ) , sources = emptyMap ( ) , sourceSets = emptySet ( ) , type = Void , receiver = null , isConstructor = false , isExpectActual = false , parameters = listOf ( DParameter ( dri = DRI ( ) , name = \"\" , documentation = emptyMap ( ) , expectPresentInSet = null , extra = PropertyContainer . empty ( ) , sourceSets = emptySet ( ) , type = Void ) , DParameter ( dri = DRI ( ) , name = \"\" , documentation = emptyMap ( ) , expectPresentInSet = null , extra = PropertyContainer . empty ( ) , sourceSets = emptySet ( ) , type = Void ) ) ) , DFunction ( dri = DRI ( ) , name = \"\" , documentation = emptyMap ( ) , expectPresentInSet = null , extra = PropertyContainer . empty ( ) , visibility = emptyMap ( ) , generics = emptyList ( ) , modifier = emptyMap ( ) , sources = emptyMap ( ) , sourceSets = emptySet ( ) , type = Void , receiver = null , isConstructor = false , isExpectActual = false , parameters = listOf ( DParameter ( dri = DRI ( ) , name = \"\" , documentation = emptyMap ( ) , expectPresentInSet = null , extra = PropertyContainer . empty ( ) , sourceSets = emptySet ( ) , type = Void ) , DParameter ( dri = DRI ( ) , name = \"\" , documentation = emptyMap ( ) , expectPresentInSet = null , extra = PropertyContainer . empty ( ) , sourceSets = emptySet ( ) , type = Void ) ) ) ) ) assertEquals ( listOf ( \"\" , \"\" , \"\" , \"\" , \"\" , \"\" , \"\" ) , dClass . withDescendants ( ) . map { it . name } . toList ( ) ) }","docstring":""} {"signature":"override fun equals ( other : Any ? ) : Boolean","body":"{ if ( this === other ) return true if ( other == null || this :: class != other :: class ) return false other as TypesUmbrella if ( str != other . str ) return false if ( i != other . i ) return false if ( nullable != other . nullable ) return false if ( list != other . list ) return false if ( map != other . map ) return false if ( inner != other . inner ) return false if ( innersList != other . innersList ) return false if ( ! byteString . contentEquals ( other . byteString ) ) return false if ( ! byteArray . contentEquals ( other . byteArray ) ) return false return true }","docstring":""} {"signature":"override fun hashCode ( ) : Int","body":"{ var result = str . hashCode ( ) result = * result + i result = * result + ( nullable ? . hashCode ( ) ? : ) result = * result + list . hashCode ( ) result = * result + map . hashCode ( ) result = * result + inner . hashCode ( ) result = * result + innersList . hashCode ( ) result = * result + byteString . contentHashCode ( ) result = * result + byteArray . contentHashCode ( ) return result }","docstring":""} {"signature":"override fun equals ( other : Any ? ) : Boolean","body":"{ if ( this === other ) return true if ( other == null || this :: class != other :: class ) return false other as NullableByteString if ( byteString != null ) { if ( other . byteString == null ) return false if ( ! byteString . contentEquals ( other . byteString ) ) return false } else if ( other . byteString != null ) return false return true }","docstring":""} {"signature":"override fun hashCode ( ) : Int","body":"{ return byteString ? . contentHashCode ( ) ? : }","docstring":""} {"signature":"override fun serialize ( encoder : Encoder , value : CustomByteString )","body":"{ encoder . encodeSerializableValue ( ByteArraySerializer ( ) , byteArrayOf ( value . a , value . b , value . c ) ) }","docstring":""} {"signature":"override fun deserialize ( decoder : Decoder ) : CustomByteString","body":"{ val array = decoder . decodeSerializableValue ( ByteArraySerializer ( ) ) return CustomByteString ( array [ ] , array [ ] , array [ ] ) }","docstring":""} {"signature":"fun f1 ( name : String ) : String","body":"{ return \"\" }","docstring":""} {"signature":"override fun getName ( )","body":"= name","docstring":""} {"signature":"override fun addCommonSourceSetToPlatformSourceSet ( commonSourceSet : Named , platformProject : Project )","body":"{ val commonSourceSetName = commonSourceSet . name platformProject . konanMultiplatformTasks . filter { it . commonSourceSets . contains ( commonSourceSetName ) } . forEach { task : KonanCompileTask -> getKotlinSourceDirectorySetSafe ( commonSourceSet ) ! ! . srcDirs . forEach { task . commonSrcDir ( it ) } } }","docstring":""} {"signature":"override fun namedSourceSetsContainer ( project : Project ) : NamedDomainObjectContainer < * >","body":"= project . container ( RequestedCommonSourceSet :: class . java ) . apply { project . konanMultiplatformTasks . forEach { task -> task . commonSourceSets . forEach { maybeCreate ( it ) } } }","docstring":""} {"signature":"fun lold ( )","body":"= \"\"","docstring":""} {"signature":"fun box ( ) : String","body":"{ return A ( ) . p ( ) }","docstring":""} {"signature":"override fun mergeStrategyFor ( left : InheritedMember , right : InheritedMember ) : MergeStrategy < Documentable >","body":"= MergeStrategy . Replace ( InheritedMember ( left . inheritedFrom + right . inheritedFrom ) )","docstring":""} {"signature":"public fun isInherited ( sourceSetDependent : DokkaSourceSet ) : Boolean","body":"= inheritedFrom [ sourceSetDependent ] != null","docstring":""} {"signature":"override fun mergeStrategyFor ( left : ImplementedInterfaces , right : ImplementedInterfaces ) : MergeStrategy < Documentable >","body":"= MergeStrategy . Replace ( ImplementedInterfaces ( left . interfaces + right . interfaces ) )","docstring":""} {"signature":"override fun mergeStrategyFor ( left : ExceptionInSupertypes , right : ExceptionInSupertypes ) : MergeStrategy < Documentable >","body":"= MergeStrategy . Replace ( ExceptionInSupertypes ( left . exceptions + right . exceptions ) )","docstring":""} {"signature":"override fun mergeStrategyFor ( left : IsAlsoParameter , right : IsAlsoParameter ) : MergeStrategy < DProperty >","body":"= MergeStrategy . Replace ( IsAlsoParameter ( left . inSourceSets + right . inSourceSets ) )","docstring":""} {"signature":"override fun mergeStrategyFor ( left : CheckedExceptions , right : CheckedExceptions ) : MergeStrategy < Documentable >","body":"= MergeStrategy . Replace ( CheckedExceptions ( left . exceptions + right . exceptions ) )","docstring":""} {"signature":"@ Test fun testNothingWasRead ( )","body":"{ val size = val descriptor = createClassDescriptor ( size ) val reader = ElementMarker ( descriptor ) { _ , _ -> true } for ( i in until size ) { assertEquals ( i , reader . nextUnmarkedIndex ( ) ) } assertEquals ( CompositeDecoder . DECODE_DONE , reader . nextUnmarkedIndex ( ) ) }","docstring":""} {"signature":"@ Test fun testAllWasRead ( )","body":"{ val size = val descriptor = createClassDescriptor ( size ) val reader = ElementMarker ( descriptor ) { _ , _ -> true } for ( i in until size ) { reader . mark ( i ) } assertEquals ( CompositeDecoder . DECODE_DONE , reader . nextUnmarkedIndex ( ) ) }","docstring":""} {"signature":"@ Test fun testFilteredRead ( )","body":"{ val size = val readIndex = val predicate : ( Any ? , Int ) -> Boolean = { _ , i -> i % == } val descriptor = createClassDescriptor ( size ) val reader = ElementMarker ( descriptor , predicate ) reader . mark ( readIndex ) for ( i in until size ) { if ( predicate ( descriptor , i ) && i != readIndex ) { assertEquals ( i , reader . nextUnmarkedIndex ( ) ) } } assertEquals ( CompositeDecoder . DECODE_DONE , reader . nextUnmarkedIndex ( ) ) }","docstring":""} {"signature":"@ Test fun testSmallPartiallyRead ( )","body":"{ testPartiallyRead ( Long . SIZE_BITS / ) }","docstring":""} {"signature":"@ Test fun test64PartiallyRead ( )","body":"{ testPartiallyRead ( Long . SIZE_BITS ) }","docstring":""} {"signature":"@ Test fun test128PartiallyRead ( )","body":"{ testPartiallyRead ( Long . SIZE_BITS * ) }","docstring":""} {"signature":"@ Test fun testLargePartiallyRead ( )","body":"{ testPartiallyRead ( Long . SIZE_BITS * + Long . SIZE_BITS / ) }","docstring":""} {"signature":"private fun testPartiallyRead ( size : Int )","body":"{ val descriptor = createClassDescriptor ( size ) val reader = ElementMarker ( descriptor ) { _ , _ -> true } for ( i in until size ) { if ( i % == ) { reader . mark ( i ) } } for ( i in until size ) { if ( i % != ) { assertEquals ( i , reader . nextUnmarkedIndex ( ) ) } } assertEquals ( CompositeDecoder . DECODE_DONE , reader . nextUnmarkedIndex ( ) ) }","docstring":""} {"signature":"private fun createClassDescriptor ( size : Int ) : SerialDescriptor","body":"{ return buildClassSerialDescriptor ( \"\" ) { for ( i in until size ) { element ( \"\" , buildSerialDescriptor ( \"\" , PrimitiveKind . INT ) ) } } }","docstring":""} {"signature":"fun foo ( block : ( ) -> String )","body":"= block ( )","docstring":""} {"signature":"inline fun < reified T : Any > className ( ) : String","body":"= T :: class . java . getName ( )","docstring":""} {"signature":"fun f ( ) : String","body":"fun f ( ) : String","docstring":""} {"signature":"fun g ( ) : String","body":"fun g ( ) : String","docstring":""} {"signature":"fun box ( ) : String","body":"{ val x = foo ( ) { className < String > ( ) } assertEquals ( \"\" , x ) val y : A = object : A { override fun f ( ) : String = foo { className < String > ( ) } override fun g ( ) : String = foo { className < Int > ( ) } } assertEquals ( \"\" , y . f ( ) ) assertEquals ( \"\" , y . g ( ) ) return \"\" }","docstring":""} {"signature":"override fun toString ( ) : String","body":"= \"\"","docstring":""} {"signature":"fun getValue ( ) : B","body":"fun getValue ( ) : B","docstring":""} {"signature":"fun < V , R > NotMap < V > . mapValuesOriginal ( ff : ( Entry < V > ) -> R ) : NotMap < R >","body":"= throw Exception ( )","docstring":""} {"signature":"fun < B , C > NotMap < B > . mapValuesOnly ( f : ( B ) -> C )","body":"= mapValuesOriginal { e -> f ( e . getValue ( ) ) }","docstring":""} {"signature":"@ nativeGetter operator fun get ( key : String ) : Any ?","body":"@ nativeGetter operator fun get ( key : String ) : Any ?","docstring":""} {"signature":"@ nativeSetter operator fun set ( key : String , value : Any )","body":"@ nativeSetter operator fun set ( key : String , value : Any )","docstring":""} {"signature":"open fun runInContext ( contextifiedSandbox : Context , options : RunningScriptOptions ? = definedExternally ) : Any","body":"open fun runInContext ( contextifiedSandbox : Context , options : RunningScriptOptions ? = definedExternally ) : Any","docstring":""} {"signature":"open fun runInNewContext ( sandbox : Context ? = definedExternally , options : RunningScriptOptions ? = definedExternally ) : Any","body":"open fun runInNewContext ( sandbox : Context ? = definedExternally , options : RunningScriptOptions ? = definedExternally ) : Any","docstring":""} {"signature":"open fun runInThisContext ( options : RunningScriptOptions ? = definedExternally ) : Any","body":"open fun runInThisContext ( options : RunningScriptOptions ? = definedExternally ) : Any","docstring":""} {"signature":"open fun createCachedData ( ) : Buffer","body":"open fun createCachedData ( ) : Buffer","docstring":""} {"signature":"external fun createContext ( sandbox : Context ? = definedExternally , options : CreateContextOptions ? = definedExternally ) : Context","body":"external fun createContext ( sandbox : Context ? = definedExternally , options : CreateContextOptions ? = definedExternally ) : Context","docstring":""} {"signature":"external fun isContext ( sandbox : Context ) : Boolean","body":"external fun isContext ( sandbox : Context ) : Boolean","docstring":""} {"signature":"external fun runInContext ( code : String , contextifiedSandbox : Context , options : RunningScriptOptions ? = definedExternally ) : Any","body":"external fun runInContext ( code : String , contextifiedSandbox : Context , options : RunningScriptOptions ? = definedExternally ) : Any","docstring":""} {"signature":"external fun runInContext ( code : String , contextifiedSandbox : Context , options : String ? = definedExternally ) : Any","body":"external fun runInContext ( code : String , contextifiedSandbox : Context , options : String ? = definedExternally ) : Any","docstring":""} {"signature":"external fun runInNewContext ( code : String , sandbox : Context ? = definedExternally , options : RunningScriptOptions ? = definedExternally ) : Any","body":"external fun runInNewContext ( code : String , sandbox : Context ? = definedExternally , options : RunningScriptOptions ? = definedExternally ) : Any","docstring":""} {"signature":"external fun runInNewContext ( code : String , sandbox : Context ? = definedExternally , options : String ? = definedExternally ) : Any","body":"external fun runInNewContext ( code : String , sandbox : Context ? = definedExternally , options : String ? = definedExternally ) : Any","docstring":""} {"signature":"external fun runInThisContext ( code : String , options : RunningScriptOptions ? = definedExternally ) : Any","body":"external fun runInThisContext ( code : String , options : RunningScriptOptions ? = definedExternally ) : Any","docstring":""} {"signature":"external fun runInThisContext ( code : String , options : String ? = definedExternally ) : Any","body":"external fun runInThisContext ( code : String , options : String ? = definedExternally ) : Any","docstring":""} {"signature":"external fun compileFunction ( code : String , params : Array < String > , options : CompileFunctionOptions ) : Function < * >","body":"external fun compileFunction ( code : String , params : Array < String > , options : CompileFunctionOptions ) : Function < * >","docstring":""} {"signature":"external fun runInContext ( code : String , contextifiedSandbox : Context ) : Any","body":"external fun runInContext ( code : String , contextifiedSandbox : Context ) : Any","docstring":""} {"signature":"external fun runInNewContext ( code : String ) : Any","body":"external fun runInNewContext ( code : String ) : Any","docstring":""} {"signature":"external fun runInThisContext ( code : String ) : Any","body":"external fun runInThisContext ( code : String ) : Any","docstring":""} {"signature":"fun appendFile ( data : Any , options : `T$38` ? = definedExternally ) : Promise < Unit >","body":"fun appendFile ( data : Any , options : `T$38` ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"fun appendFile ( data : Any , options : String ? = definedExternally ) : Promise < Unit >","body":"fun appendFile ( data : Any , options : String ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"fun appendFile ( data : Any , options : Nothing ? = definedExternally ) : Promise < Unit >","body":"fun appendFile ( data : Any , options : Nothing ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"fun chown ( uid : Number , gid : Number ) : Promise < Unit >","body":"fun chown ( uid : Number , gid : Number ) : Promise < Unit >","docstring":""} {"signature":"fun chmod ( mode : String ) : Promise < Unit >","body":"fun chmod ( mode : String ) : Promise < Unit >","docstring":""} {"signature":"fun chmod ( mode : Number ) : Promise < Unit >","body":"fun chmod ( mode : Number ) : Promise < Unit >","docstring":""} {"signature":"fun datasync ( ) : Promise < Unit >","body":"fun datasync ( ) : Promise < Unit >","docstring":""} {"signature":"fun sync ( ) : Promise < Unit >","body":"fun sync ( ) : Promise < Unit >","docstring":""} {"signature":"fun < TBuffer : Uint8Array > read ( buffer : TBuffer , offset : Number ? = definedExternally , length : Number ? = definedExternally , position : Number ? = definedExternally ) : Promise < `T$39` >","body":"fun < TBuffer : Uint8Array > read ( buffer : TBuffer , offset : Number ? = definedExternally , length : Number ? = definedExternally , position : Number ? = definedExternally ) : Promise < `T$39` >","docstring":""} {"signature":"fun readFile ( options : `T$40` ? = definedExternally ) : Promise < Buffer >","body":"fun readFile ( options : `T$40` ? = definedExternally ) : Promise < Buffer >","docstring":""} {"signature":"fun readFile ( options : Nothing ? = definedExternally ) : Promise < Buffer >","body":"fun readFile ( options : Nothing ? = definedExternally ) : Promise < Buffer >","docstring":""} {"signature":"fun readFile ( options : `T$41` ) : Promise < String >","body":"fun readFile ( options : `T$41` ) : Promise < String >","docstring":""} {"signature":"fun readFile ( options : String ) : Promise < String >","body":"fun readFile ( options : String ) : Promise < String >","docstring":""} {"signature":"fun readFile ( options : String ) : Promise < String >","body":"fun readFile ( options : String ) : Promise < String >","docstring":""} {"signature":"fun readFile ( options : String ) : Promise < String >","body":"fun readFile ( options : String ) : Promise < String >","docstring":""} {"signature":"fun readFile ( options : String ) : Promise < String >","body":"fun readFile ( options : String ) : Promise < String >","docstring":""} {"signature":"fun readFile ( options : String ) : Promise < String >","body":"fun readFile ( options : String ) : Promise < String >","docstring":""} {"signature":"fun readFile ( options : String ) : Promise < String >","body":"fun readFile ( options : String ) : Promise < String >","docstring":""} {"signature":"fun readFile ( options : String ) : Promise < String >","body":"fun readFile ( options : String ) : Promise < String >","docstring":""} {"signature":"fun readFile ( options : String ) : Promise < String >","body":"fun readFile ( options : String ) : Promise < String >","docstring":""} {"signature":"fun readFile ( options : String ) : Promise < String >","body":"fun readFile ( options : String ) : Promise < String >","docstring":""} {"signature":"fun readFile ( options : String ) : Promise < String >","body":"fun readFile ( options : String ) : Promise < String >","docstring":""} {"signature":"fun readFile ( options : `T$42` ? = definedExternally ) : Promise < dynamic >","body":"fun readFile ( options : `T$42` ? = definedExternally ) : Promise < dynamic >","docstring":""} {"signature":"fun readFile ( options : String ? = definedExternally ) : Promise < dynamic >","body":"fun readFile ( options : String ? = definedExternally ) : Promise < dynamic >","docstring":""} {"signature":"fun readFile ( options : Nothing ? = definedExternally ) : Promise < dynamic >","body":"fun readFile ( options : Nothing ? = definedExternally ) : Promise < dynamic >","docstring":""} {"signature":"fun stat ( ) : Promise < fs . Stats >","body":"fun stat ( ) : Promise < fs . Stats >","docstring":""} {"signature":"fun truncate ( len : Number ? = definedExternally ) : Promise < Unit >","body":"fun truncate ( len : Number ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"fun utimes ( atime : String , mtime : String ) : Promise < Unit >","body":"fun utimes ( atime : String , mtime : String ) : Promise < Unit >","docstring":""} {"signature":"fun utimes ( atime : String , mtime : Number ) : Promise < Unit >","body":"fun utimes ( atime : String , mtime : Number ) : Promise < Unit >","docstring":""} {"signature":"fun utimes ( atime : String , mtime : Date ) : Promise < Unit >","body":"fun utimes ( atime : String , mtime : Date ) : Promise < Unit >","docstring":""} {"signature":"fun utimes ( atime : Number , mtime : String ) : Promise < Unit >","body":"fun utimes ( atime : Number , mtime : String ) : Promise < Unit >","docstring":""} {"signature":"fun utimes ( atime : Number , mtime : Number ) : Promise < Unit >","body":"fun utimes ( atime : Number , mtime : Number ) : Promise < Unit >","docstring":""} {"signature":"fun utimes ( atime : Number , mtime : Date ) : Promise < Unit >","body":"fun utimes ( atime : Number , mtime : Date ) : Promise < Unit >","docstring":""} {"signature":"fun utimes ( atime : Date , mtime : String ) : Promise < Unit >","body":"fun utimes ( atime : Date , mtime : String ) : Promise < Unit >","docstring":""} {"signature":"fun utimes ( atime : Date , mtime : Number ) : Promise < Unit >","body":"fun utimes ( atime : Date , mtime : Number ) : Promise < Unit >","docstring":""} {"signature":"fun utimes ( atime : Date , mtime : Date ) : Promise < Unit >","body":"fun utimes ( atime : Date , mtime : Date ) : Promise < Unit >","docstring":""} {"signature":"fun < TBuffer : Uint8Array > write ( buffer : TBuffer , offset : Number ? = definedExternally , length : Number ? = definedExternally , position : Number ? = definedExternally ) : Promise < `T$43` >","body":"fun < TBuffer : Uint8Array > write ( buffer : TBuffer , offset : Number ? = definedExternally , length : Number ? = definedExternally , position : Number ? = definedExternally ) : Promise < `T$43` >","docstring":""} {"signature":"fun write ( data : Any , position : Number ? = definedExternally , encoding : String ? = definedExternally ) : Promise < `T$44` >","body":"fun write ( data : Any , position : Number ? = definedExternally , encoding : String ? = definedExternally ) : Promise < `T$44` >","docstring":""} {"signature":"fun writeFile ( data : Any , options : `T$38` ? = definedExternally ) : Promise < Unit >","body":"fun writeFile ( data : Any , options : `T$38` ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"fun writeFile ( data : Any , options : String ? = definedExternally ) : Promise < Unit >","body":"fun writeFile ( data : Any , options : String ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"fun writeFile ( data : Any , options : Nothing ? = definedExternally ) : Promise < Unit >","body":"fun writeFile ( data : Any , options : Nothing ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"fun writev ( buffers : Array < dynamic > , position : Number ? = definedExternally ) : Promise < fs . WriteVResult >","body":"fun writev ( buffers : Array < dynamic > , position : Number ? = definedExternally ) : Promise < fs . WriteVResult >","docstring":""} {"signature":"fun close ( ) : Promise < Unit >","body":"fun close ( ) : Promise < Unit >","docstring":""} {"signature":"fun appendFile ( data : Any ) : Promise < Unit >","body":"fun appendFile ( data : Any ) : Promise < Unit >","docstring":""} {"signature":"fun readFile ( ) : Promise < Buffer >","body":"fun readFile ( ) : Promise < Buffer >","docstring":""} {"signature":"fun writeFile ( data : Any ) : Promise < Unit >","body":"fun writeFile ( data : Any ) : Promise < Unit >","docstring":""} {"signature":"external fun access ( path : String , mode : Number ? = definedExternally ) : Promise < Unit >","body":"external fun access ( path : String , mode : Number ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun access ( path : Buffer , mode : Number ? = definedExternally ) : Promise < Unit >","body":"external fun access ( path : Buffer , mode : Number ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun access ( path : URL , mode : Number ? = definedExternally ) : Promise < Unit >","body":"external fun access ( path : URL , mode : Number ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun copyFile ( src : String , dest : String , flags : Number ? = definedExternally ) : Promise < Unit >","body":"external fun copyFile ( src : String , dest : String , flags : Number ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun copyFile ( src : String , dest : Buffer , flags : Number ? = definedExternally ) : Promise < Unit >","body":"external fun copyFile ( src : String , dest : Buffer , flags : Number ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun copyFile ( src : String , dest : URL , flags : Number ? = definedExternally ) : Promise < Unit >","body":"external fun copyFile ( src : String , dest : URL , flags : Number ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun copyFile ( src : Buffer , dest : String , flags : Number ? = definedExternally ) : Promise < Unit >","body":"external fun copyFile ( src : Buffer , dest : String , flags : Number ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun copyFile ( src : Buffer , dest : Buffer , flags : Number ? = definedExternally ) : Promise < Unit >","body":"external fun copyFile ( src : Buffer , dest : Buffer , flags : Number ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun copyFile ( src : Buffer , dest : URL , flags : Number ? = definedExternally ) : Promise < Unit >","body":"external fun copyFile ( src : Buffer , dest : URL , flags : Number ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun copyFile ( src : URL , dest : String , flags : Number ? = definedExternally ) : Promise < Unit >","body":"external fun copyFile ( src : URL , dest : String , flags : Number ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun copyFile ( src : URL , dest : Buffer , flags : Number ? = definedExternally ) : Promise < Unit >","body":"external fun copyFile ( src : URL , dest : Buffer , flags : Number ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun copyFile ( src : URL , dest : URL , flags : Number ? = definedExternally ) : Promise < Unit >","body":"external fun copyFile ( src : URL , dest : URL , flags : Number ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun open ( path : String , flags : String , mode : String ? = definedExternally ) : Promise < FileHandle >","body":"external fun open ( path : String , flags : String , mode : String ? = definedExternally ) : Promise < FileHandle >","docstring":""} {"signature":"external fun open ( path : String , flags : String , mode : Number ? = definedExternally ) : Promise < FileHandle >","body":"external fun open ( path : String , flags : String , mode : Number ? = definedExternally ) : Promise < FileHandle >","docstring":""} {"signature":"external fun open ( path : String , flags : Number , mode : String ? = definedExternally ) : Promise < FileHandle >","body":"external fun open ( path : String , flags : Number , mode : String ? = definedExternally ) : Promise < FileHandle >","docstring":""} {"signature":"external fun open ( path : String , flags : Number , mode : Number ? = definedExternally ) : Promise < FileHandle >","body":"external fun open ( path : String , flags : Number , mode : Number ? = definedExternally ) : Promise < FileHandle >","docstring":""} {"signature":"external fun open ( path : Buffer , flags : String , mode : String ? = definedExternally ) : Promise < FileHandle >","body":"external fun open ( path : Buffer , flags : String , mode : String ? = definedExternally ) : Promise < FileHandle >","docstring":""} {"signature":"external fun open ( path : Buffer , flags : String , mode : Number ? = definedExternally ) : Promise < FileHandle >","body":"external fun open ( path : Buffer , flags : String , mode : Number ? = definedExternally ) : Promise < FileHandle >","docstring":""} {"signature":"external fun open ( path : Buffer , flags : Number , mode : String ? = definedExternally ) : Promise < FileHandle >","body":"external fun open ( path : Buffer , flags : Number , mode : String ? = definedExternally ) : Promise < FileHandle >","docstring":""} {"signature":"external fun open ( path : Buffer , flags : Number , mode : Number ? = definedExternally ) : Promise < FileHandle >","body":"external fun open ( path : Buffer , flags : Number , mode : Number ? = definedExternally ) : Promise < FileHandle >","docstring":""} {"signature":"external fun open ( path : URL , flags : String , mode : String ? = definedExternally ) : Promise < FileHandle >","body":"external fun open ( path : URL , flags : String , mode : String ? = definedExternally ) : Promise < FileHandle >","docstring":""} {"signature":"external fun open ( path : URL , flags : String , mode : Number ? = definedExternally ) : Promise < FileHandle >","body":"external fun open ( path : URL , flags : String , mode : Number ? = definedExternally ) : Promise < FileHandle >","docstring":""} {"signature":"external fun open ( path : URL , flags : Number , mode : String ? = definedExternally ) : Promise < FileHandle >","body":"external fun open ( path : URL , flags : Number , mode : String ? = definedExternally ) : Promise < FileHandle >","docstring":""} {"signature":"external fun open ( path : URL , flags : Number , mode : Number ? = definedExternally ) : Promise < FileHandle >","body":"external fun open ( path : URL , flags : Number , mode : Number ? = definedExternally ) : Promise < FileHandle >","docstring":""} {"signature":"external fun < TBuffer : Uint8Array > read ( handle : FileHandle , buffer : TBuffer , offset : Number ? = definedExternally , length : Number ? = definedExternally , position : Number ? = definedExternally ) : Promise < `T$45` < TBuffer > >","body":"external fun < TBuffer : Uint8Array > read ( handle : FileHandle , buffer : TBuffer , offset : Number ? = definedExternally , length : Number ? = definedExternally , position : Number ? = definedExternally ) : Promise < `T$45` < TBuffer > >","docstring":""} {"signature":"external fun < TBuffer : Uint8Array > write ( handle : FileHandle , buffer : TBuffer , offset : Number ? = definedExternally , length : Number ? = definedExternally , position : Number ? = definedExternally ) : Promise < `T$46` < TBuffer > >","body":"external fun < TBuffer : Uint8Array > write ( handle : FileHandle , buffer : TBuffer , offset : Number ? = definedExternally , length : Number ? = definedExternally , position : Number ? = definedExternally ) : Promise < `T$46` < TBuffer > >","docstring":""} {"signature":"external fun write ( handle : FileHandle , string : Any , position : Number ? = definedExternally , encoding : String ? = definedExternally ) : Promise < `T$44` >","body":"external fun write ( handle : FileHandle , string : Any , position : Number ? = definedExternally , encoding : String ? = definedExternally ) : Promise < `T$44` >","docstring":""} {"signature":"external fun rename ( oldPath : String , newPath : String ) : Promise < Unit >","body":"external fun rename ( oldPath : String , newPath : String ) : Promise < Unit >","docstring":""} {"signature":"external fun rename ( oldPath : String , newPath : Buffer ) : Promise < Unit >","body":"external fun rename ( oldPath : String , newPath : Buffer ) : Promise < Unit >","docstring":""} {"signature":"external fun rename ( oldPath : String , newPath : URL ) : Promise < Unit >","body":"external fun rename ( oldPath : String , newPath : URL ) : Promise < Unit >","docstring":""} {"signature":"external fun rename ( oldPath : Buffer , newPath : String ) : Promise < Unit >","body":"external fun rename ( oldPath : Buffer , newPath : String ) : Promise < Unit >","docstring":""} {"signature":"external fun rename ( oldPath : Buffer , newPath : Buffer ) : Promise < Unit >","body":"external fun rename ( oldPath : Buffer , newPath : Buffer ) : Promise < Unit >","docstring":""} {"signature":"external fun rename ( oldPath : Buffer , newPath : URL ) : Promise < Unit >","body":"external fun rename ( oldPath : Buffer , newPath : URL ) : Promise < Unit >","docstring":""} {"signature":"external fun rename ( oldPath : URL , newPath : String ) : Promise < Unit >","body":"external fun rename ( oldPath : URL , newPath : String ) : Promise < Unit >","docstring":""} {"signature":"external fun rename ( oldPath : URL , newPath : Buffer ) : Promise < Unit >","body":"external fun rename ( oldPath : URL , newPath : Buffer ) : Promise < Unit >","docstring":""} {"signature":"external fun rename ( oldPath : URL , newPath : URL ) : Promise < Unit >","body":"external fun rename ( oldPath : URL , newPath : URL ) : Promise < Unit >","docstring":""} {"signature":"external fun truncate ( path : String , len : Number ? = definedExternally ) : Promise < Unit >","body":"external fun truncate ( path : String , len : Number ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun truncate ( path : Buffer , len : Number ? = definedExternally ) : Promise < Unit >","body":"external fun truncate ( path : Buffer , len : Number ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun truncate ( path : URL , len : Number ? = definedExternally ) : Promise < Unit >","body":"external fun truncate ( path : URL , len : Number ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun ftruncate ( handle : FileHandle , len : Number ? = definedExternally ) : Promise < Unit >","body":"external fun ftruncate ( handle : FileHandle , len : Number ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun rmdir ( path : String , options : fs . RmDirAsyncOptions = definedExternally ) : Promise < Unit >","body":"external fun rmdir ( path : String , options : fs . RmDirAsyncOptions = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun rmdir ( path : Buffer , options : fs . RmDirAsyncOptions = definedExternally ) : Promise < Unit >","body":"external fun rmdir ( path : Buffer , options : fs . RmDirAsyncOptions = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun rmdir ( path : URL , options : fs . RmDirAsyncOptions = definedExternally ) : Promise < Unit >","body":"external fun rmdir ( path : URL , options : fs . RmDirAsyncOptions = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun fdatasync ( handle : FileHandle ) : Promise < Unit >","body":"external fun fdatasync ( handle : FileHandle ) : Promise < Unit >","docstring":""} {"signature":"external fun fsync ( handle : FileHandle ) : Promise < Unit >","body":"external fun fsync ( handle : FileHandle ) : Promise < Unit >","docstring":""} {"signature":"external fun mkdir ( path : String , options : Number ? = definedExternally ) : Promise < Unit >","body":"external fun mkdir ( path : String , options : Number ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun mkdir ( path : String , options : String ? = definedExternally ) : Promise < Unit >","body":"external fun mkdir ( path : String , options : String ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun mkdir ( path : String , options : fs . MakeDirectoryOptions = definedExternally ) : Promise < Unit >","body":"external fun mkdir ( path : String , options : fs . MakeDirectoryOptions = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun mkdir ( path : String , options : Nothing ? = definedExternally ) : Promise < Unit >","body":"external fun mkdir ( path : String , options : Nothing ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun mkdir ( path : Buffer , options : Number ? = definedExternally ) : Promise < Unit >","body":"external fun mkdir ( path : Buffer , options : Number ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun mkdir ( path : Buffer , options : String ? = definedExternally ) : Promise < Unit >","body":"external fun mkdir ( path : Buffer , options : String ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun mkdir ( path : Buffer , options : fs . MakeDirectoryOptions = definedExternally ) : Promise < Unit >","body":"external fun mkdir ( path : Buffer , options : fs . MakeDirectoryOptions = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun mkdir ( path : Buffer , options : Nothing ? = definedExternally ) : Promise < Unit >","body":"external fun mkdir ( path : Buffer , options : Nothing ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun mkdir ( path : URL , options : Number ? = definedExternally ) : Promise < Unit >","body":"external fun mkdir ( path : URL , options : Number ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun mkdir ( path : URL , options : String ? = definedExternally ) : Promise < Unit >","body":"external fun mkdir ( path : URL , options : String ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun mkdir ( path : URL , options : fs . MakeDirectoryOptions = definedExternally ) : Promise < Unit >","body":"external fun mkdir ( path : URL , options : fs . MakeDirectoryOptions = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun mkdir ( path : URL , options : Nothing ? = definedExternally ) : Promise < Unit >","body":"external fun mkdir ( path : URL , options : Nothing ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun readdir ( path : String , options : dynamic = definedExternally ) : Promise < Array < String > >","body":"external fun readdir ( path : String , options : dynamic = definedExternally ) : Promise < Array < String > >","docstring":""} {"signature":"external fun readdir ( path : Buffer , options : dynamic = definedExternally ) : Promise < Array < String > >","body":"external fun readdir ( path : Buffer , options : dynamic = definedExternally ) : Promise < Array < String > >","docstring":""} {"signature":"external fun readdir ( path : URL , options : dynamic = definedExternally ) : Promise < Array < String > >","body":"external fun readdir ( path : URL , options : dynamic = definedExternally ) : Promise < Array < String > >","docstring":""} {"signature":"external fun readdir ( path : String , options : `T$48` ) : Promise < Array < Buffer > >","body":"external fun readdir ( path : String , options : `T$48` ) : Promise < Array < Buffer > >","docstring":""} {"signature":"external fun readdir ( path : String , options : String ) : Promise < Array < Buffer > >","body":"external fun readdir ( path : String , options : String ) : Promise < Array < Buffer > >","docstring":""} {"signature":"external fun readdir ( path : Buffer , options : `T$48` ) : Promise < Array < Buffer > >","body":"external fun readdir ( path : Buffer , options : `T$48` ) : Promise < Array < Buffer > >","docstring":""} {"signature":"external fun readdir ( path : Buffer , options : String ) : Promise < Array < Buffer > >","body":"external fun readdir ( path : Buffer , options : String ) : Promise < Array < Buffer > >","docstring":""} {"signature":"external fun readdir ( path : URL , options : `T$48` ) : Promise < Array < Buffer > >","body":"external fun readdir ( path : URL , options : `T$48` ) : Promise < Array < Buffer > >","docstring":""} {"signature":"external fun readdir ( path : URL , options : String ) : Promise < Array < Buffer > >","body":"external fun readdir ( path : URL , options : String ) : Promise < Array < Buffer > >","docstring":""} {"signature":"external fun readdir ( path : String , options : `T$49` ? = definedExternally ) : Promise < dynamic >","body":"external fun readdir ( path : String , options : `T$49` ? = definedExternally ) : Promise < dynamic >","docstring":""} {"signature":"external fun readdir ( path : String , options : String ? = definedExternally ) : Promise < dynamic >","body":"external fun readdir ( path : String , options : String ? = definedExternally ) : Promise < dynamic >","docstring":""} {"signature":"external fun readdir ( path : String , options : Nothing ? = definedExternally ) : Promise < dynamic >","body":"external fun readdir ( path : String , options : Nothing ? = definedExternally ) : Promise < dynamic >","docstring":""} {"signature":"external fun readdir ( path : Buffer , options : `T$49` ? = definedExternally ) : Promise < dynamic >","body":"external fun readdir ( path : Buffer , options : `T$49` ? = definedExternally ) : Promise < dynamic >","docstring":""} {"signature":"external fun readdir ( path : Buffer , options : String ? = definedExternally ) : Promise < dynamic >","body":"external fun readdir ( path : Buffer , options : String ? = definedExternally ) : Promise < dynamic >","docstring":""} {"signature":"external fun readdir ( path : Buffer , options : Nothing ? = definedExternally ) : Promise < dynamic >","body":"external fun readdir ( path : Buffer , options : Nothing ? = definedExternally ) : Promise < dynamic >","docstring":""} {"signature":"external fun readdir ( path : URL , options : `T$49` ? = definedExternally ) : Promise < dynamic >","body":"external fun readdir ( path : URL , options : `T$49` ? = definedExternally ) : Promise < dynamic >","docstring":""} {"signature":"external fun readdir ( path : URL , options : String ? = definedExternally ) : Promise < dynamic >","body":"external fun readdir ( path : URL , options : String ? = definedExternally ) : Promise < dynamic >","docstring":""} {"signature":"external fun readdir ( path : URL , options : Nothing ? = definedExternally ) : Promise < dynamic >","body":"external fun readdir ( path : URL , options : Nothing ? = definedExternally ) : Promise < dynamic >","docstring":""} {"signature":"external fun readdir ( path : String , options : `T$50` ) : Promise < Array < fs . Dirent > >","body":"external fun readdir ( path : String , options : `T$50` ) : Promise < Array < fs . Dirent > >","docstring":""} {"signature":"external fun readdir ( path : Buffer , options : `T$50` ) : Promise < Array < fs . Dirent > >","body":"external fun readdir ( path : Buffer , options : `T$50` ) : Promise < Array < fs . Dirent > >","docstring":""} {"signature":"external fun readdir ( path : URL , options : `T$50` ) : Promise < Array < fs . Dirent > >","body":"external fun readdir ( path : URL , options : `T$50` ) : Promise < Array < fs . Dirent > >","docstring":""} {"signature":"external fun readlink ( path : String , options : dynamic = definedExternally ) : Promise < String >","body":"external fun readlink ( path : String , options : dynamic = definedExternally ) : Promise < String >","docstring":""} {"signature":"external fun readlink ( path : Buffer , options : dynamic = definedExternally ) : Promise < String >","body":"external fun readlink ( path : Buffer , options : dynamic = definedExternally ) : Promise < String >","docstring":""} {"signature":"external fun readlink ( path : URL , options : dynamic = definedExternally ) : Promise < String >","body":"external fun readlink ( path : URL , options : dynamic = definedExternally ) : Promise < String >","docstring":""} {"signature":"external fun readlink ( path : String , options : `T$52` ) : Promise < Buffer >","body":"external fun readlink ( path : String , options : `T$52` ) : Promise < Buffer >","docstring":""} {"signature":"external fun readlink ( path : String , options : String ) : Promise < Buffer >","body":"external fun readlink ( path : String , options : String ) : Promise < Buffer >","docstring":""} {"signature":"external fun readlink ( path : Buffer , options : `T$52` ) : Promise < Buffer >","body":"external fun readlink ( path : Buffer , options : `T$52` ) : Promise < Buffer >","docstring":""} {"signature":"external fun readlink ( path : Buffer , options : String ) : Promise < Buffer >","body":"external fun readlink ( path : Buffer , options : String ) : Promise < Buffer >","docstring":""} {"signature":"external fun readlink ( path : URL , options : `T$52` ) : Promise < Buffer >","body":"external fun readlink ( path : URL , options : `T$52` ) : Promise < Buffer >","docstring":""} {"signature":"external fun readlink ( path : URL , options : String ) : Promise < Buffer >","body":"external fun readlink ( path : URL , options : String ) : Promise < Buffer >","docstring":""} {"signature":"external fun readlink ( path : String , options : `T$53` ? = definedExternally ) : Promise < dynamic >","body":"external fun readlink ( path : String , options : `T$53` ? = definedExternally ) : Promise < dynamic >","docstring":""} {"signature":"external fun readlink ( path : String , options : String ? = definedExternally ) : Promise < dynamic >","body":"external fun readlink ( path : String , options : String ? = definedExternally ) : Promise < dynamic >","docstring":""} {"signature":"external fun readlink ( path : String , options : Nothing ? = definedExternally ) : Promise < dynamic >","body":"external fun readlink ( path : String , options : Nothing ? = definedExternally ) : Promise < dynamic >","docstring":""} {"signature":"external fun readlink ( path : Buffer , options : `T$53` ? = definedExternally ) : Promise < dynamic >","body":"external fun readlink ( path : Buffer , options : `T$53` ? = definedExternally ) : Promise < dynamic >","docstring":""} {"signature":"external fun readlink ( path : Buffer , options : String ? = definedExternally ) : Promise < dynamic >","body":"external fun readlink ( path : Buffer , options : String ? = definedExternally ) : Promise < dynamic >","docstring":""} {"signature":"external fun readlink ( path : Buffer , options : Nothing ? = definedExternally ) : Promise < dynamic >","body":"external fun readlink ( path : Buffer , options : Nothing ? = definedExternally ) : Promise < dynamic >","docstring":""} {"signature":"external fun readlink ( path : URL , options : `T$53` ? = definedExternally ) : Promise < dynamic >","body":"external fun readlink ( path : URL , options : `T$53` ? = definedExternally ) : Promise < dynamic >","docstring":""} {"signature":"external fun readlink ( path : URL , options : String ? = definedExternally ) : Promise < dynamic >","body":"external fun readlink ( path : URL , options : String ? = definedExternally ) : Promise < dynamic >","docstring":""} {"signature":"external fun readlink ( path : URL , options : Nothing ? = definedExternally ) : Promise < dynamic >","body":"external fun readlink ( path : URL , options : Nothing ? = definedExternally ) : Promise < dynamic >","docstring":""} {"signature":"external fun symlink ( target : String , path : String , type : String ? = definedExternally ) : Promise < Unit >","body":"external fun symlink ( target : String , path : String , type : String ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun symlink ( target : String , path : Buffer , type : String ? = definedExternally ) : Promise < Unit >","body":"external fun symlink ( target : String , path : Buffer , type : String ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun symlink ( target : String , path : URL , type : String ? = definedExternally ) : Promise < Unit >","body":"external fun symlink ( target : String , path : URL , type : String ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun symlink ( target : Buffer , path : String , type : String ? = definedExternally ) : Promise < Unit >","body":"external fun symlink ( target : Buffer , path : String , type : String ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun symlink ( target : Buffer , path : Buffer , type : String ? = definedExternally ) : Promise < Unit >","body":"external fun symlink ( target : Buffer , path : Buffer , type : String ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun symlink ( target : Buffer , path : URL , type : String ? = definedExternally ) : Promise < Unit >","body":"external fun symlink ( target : Buffer , path : URL , type : String ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun symlink ( target : URL , path : String , type : String ? = definedExternally ) : Promise < Unit >","body":"external fun symlink ( target : URL , path : String , type : String ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun symlink ( target : URL , path : Buffer , type : String ? = definedExternally ) : Promise < Unit >","body":"external fun symlink ( target : URL , path : Buffer , type : String ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun symlink ( target : URL , path : URL , type : String ? = definedExternally ) : Promise < Unit >","body":"external fun symlink ( target : URL , path : URL , type : String ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun fstat ( handle : FileHandle ) : Promise < fs . Stats >","body":"external fun fstat ( handle : FileHandle ) : Promise < fs . Stats >","docstring":""} {"signature":"external fun lstat ( path : String ) : Promise < fs . Stats >","body":"external fun lstat ( path : String ) : Promise < fs . Stats >","docstring":""} {"signature":"external fun lstat ( path : Buffer ) : Promise < fs . Stats >","body":"external fun lstat ( path : Buffer ) : Promise < fs . Stats >","docstring":""} {"signature":"external fun lstat ( path : URL ) : Promise < fs . Stats >","body":"external fun lstat ( path : URL ) : Promise < fs . Stats >","docstring":""} {"signature":"external fun stat ( path : String ) : Promise < fs . Stats >","body":"external fun stat ( path : String ) : Promise < fs . Stats >","docstring":""} {"signature":"external fun stat ( path : Buffer ) : Promise < fs . Stats >","body":"external fun stat ( path : Buffer ) : Promise < fs . Stats >","docstring":""} {"signature":"external fun stat ( path : URL ) : Promise < fs . Stats >","body":"external fun stat ( path : URL ) : Promise < fs . Stats >","docstring":""} {"signature":"external fun link ( existingPath : String , newPath : String ) : Promise < Unit >","body":"external fun link ( existingPath : String , newPath : String ) : Promise < Unit >","docstring":""} {"signature":"external fun link ( existingPath : String , newPath : Buffer ) : Promise < Unit >","body":"external fun link ( existingPath : String , newPath : Buffer ) : Promise < Unit >","docstring":""} {"signature":"external fun link ( existingPath : String , newPath : URL ) : Promise < Unit >","body":"external fun link ( existingPath : String , newPath : URL ) : Promise < Unit >","docstring":""} {"signature":"external fun link ( existingPath : Buffer , newPath : String ) : Promise < Unit >","body":"external fun link ( existingPath : Buffer , newPath : String ) : Promise < Unit >","docstring":""} {"signature":"external fun link ( existingPath : Buffer , newPath : Buffer ) : Promise < Unit >","body":"external fun link ( existingPath : Buffer , newPath : Buffer ) : Promise < Unit >","docstring":""} {"signature":"external fun link ( existingPath : Buffer , newPath : URL ) : Promise < Unit >","body":"external fun link ( existingPath : Buffer , newPath : URL ) : Promise < Unit >","docstring":""} {"signature":"external fun link ( existingPath : URL , newPath : String ) : Promise < Unit >","body":"external fun link ( existingPath : URL , newPath : String ) : Promise < Unit >","docstring":""} {"signature":"external fun link ( existingPath : URL , newPath : Buffer ) : Promise < Unit >","body":"external fun link ( existingPath : URL , newPath : Buffer ) : Promise < Unit >","docstring":""} {"signature":"external fun link ( existingPath : URL , newPath : URL ) : Promise < Unit >","body":"external fun link ( existingPath : URL , newPath : URL ) : Promise < Unit >","docstring":""} {"signature":"external fun unlink ( path : String ) : Promise < Unit >","body":"external fun unlink ( path : String ) : Promise < Unit >","docstring":""} {"signature":"external fun unlink ( path : Buffer ) : Promise < Unit >","body":"external fun unlink ( path : Buffer ) : Promise < Unit >","docstring":""} {"signature":"external fun unlink ( path : URL ) : Promise < Unit >","body":"external fun unlink ( path : URL ) : Promise < Unit >","docstring":""} {"signature":"external fun fchmod ( handle : FileHandle , mode : String ) : Promise < Unit >","body":"external fun fchmod ( handle : FileHandle , mode : String ) : Promise < Unit >","docstring":""} {"signature":"external fun fchmod ( handle : FileHandle , mode : Number ) : Promise < Unit >","body":"external fun fchmod ( handle : FileHandle , mode : Number ) : Promise < Unit >","docstring":""} {"signature":"external fun chmod ( path : String , mode : String ) : Promise < Unit >","body":"external fun chmod ( path : String , mode : String ) : Promise < Unit >","docstring":""} {"signature":"external fun chmod ( path : String , mode : Number ) : Promise < Unit >","body":"external fun chmod ( path : String , mode : Number ) : Promise < Unit >","docstring":""} {"signature":"external fun chmod ( path : Buffer , mode : String ) : Promise < Unit >","body":"external fun chmod ( path : Buffer , mode : String ) : Promise < Unit >","docstring":""} {"signature":"external fun chmod ( path : Buffer , mode : Number ) : Promise < Unit >","body":"external fun chmod ( path : Buffer , mode : Number ) : Promise < Unit >","docstring":""} {"signature":"external fun chmod ( path : URL , mode : String ) : Promise < Unit >","body":"external fun chmod ( path : URL , mode : String ) : Promise < Unit >","docstring":""} {"signature":"external fun chmod ( path : URL , mode : Number ) : Promise < Unit >","body":"external fun chmod ( path : URL , mode : Number ) : Promise < Unit >","docstring":""} {"signature":"external fun lchmod ( path : String , mode : String ) : Promise < Unit >","body":"external fun lchmod ( path : String , mode : String ) : Promise < Unit >","docstring":""} {"signature":"external fun lchmod ( path : String , mode : Number ) : Promise < Unit >","body":"external fun lchmod ( path : String , mode : Number ) : Promise < Unit >","docstring":""} {"signature":"external fun lchmod ( path : Buffer , mode : String ) : Promise < Unit >","body":"external fun lchmod ( path : Buffer , mode : String ) : Promise < Unit >","docstring":""} {"signature":"external fun lchmod ( path : Buffer , mode : Number ) : Promise < Unit >","body":"external fun lchmod ( path : Buffer , mode : Number ) : Promise < Unit >","docstring":""} {"signature":"external fun lchmod ( path : URL , mode : String ) : Promise < Unit >","body":"external fun lchmod ( path : URL , mode : String ) : Promise < Unit >","docstring":""} {"signature":"external fun lchmod ( path : URL , mode : Number ) : Promise < Unit >","body":"external fun lchmod ( path : URL , mode : Number ) : Promise < Unit >","docstring":""} {"signature":"external fun lchown ( path : String , uid : Number , gid : Number ) : Promise < Unit >","body":"external fun lchown ( path : String , uid : Number , gid : Number ) : Promise < Unit >","docstring":""} {"signature":"external fun lchown ( path : Buffer , uid : Number , gid : Number ) : Promise < Unit >","body":"external fun lchown ( path : Buffer , uid : Number , gid : Number ) : Promise < Unit >","docstring":""} {"signature":"external fun lchown ( path : URL , uid : Number , gid : Number ) : Promise < Unit >","body":"external fun lchown ( path : URL , uid : Number , gid : Number ) : Promise < Unit >","docstring":""} {"signature":"external fun fchown ( handle : FileHandle , uid : Number , gid : Number ) : Promise < Unit >","body":"external fun fchown ( handle : FileHandle , uid : Number , gid : Number ) : Promise < Unit >","docstring":""} {"signature":"external fun chown ( path : String , uid : Number , gid : Number ) : Promise < Unit >","body":"external fun chown ( path : String , uid : Number , gid : Number ) : Promise < Unit >","docstring":""} {"signature":"external fun chown ( path : Buffer , uid : Number , gid : Number ) : Promise < Unit >","body":"external fun chown ( path : Buffer , uid : Number , gid : Number ) : Promise < Unit >","docstring":""} {"signature":"external fun chown ( path : URL , uid : Number , gid : Number ) : Promise < Unit >","body":"external fun chown ( path : URL , uid : Number , gid : Number ) : Promise < Unit >","docstring":""} {"signature":"external fun utimes ( path : String , atime : String , mtime : dynamic ) : Promise < Unit >","body":"external fun utimes ( path : String , atime : String , mtime : dynamic ) : Promise < Unit >","docstring":""} {"signature":"external fun utimes ( path : String , atime : Number , mtime : dynamic ) : Promise < Unit >","body":"external fun utimes ( path : String , atime : Number , mtime : dynamic ) : Promise < Unit >","docstring":""} {"signature":"external fun utimes ( path : String , atime : Date , mtime : dynamic ) : Promise < Unit >","body":"external fun utimes ( path : String , atime : Date , mtime : dynamic ) : Promise < Unit >","docstring":""} {"signature":"external fun utimes ( path : Buffer , atime : String , mtime : dynamic ) : Promise < Unit >","body":"external fun utimes ( path : Buffer , atime : String , mtime : dynamic ) : Promise < Unit >","docstring":""} {"signature":"external fun utimes ( path : Buffer , atime : Number , mtime : dynamic ) : Promise < Unit >","body":"external fun utimes ( path : Buffer , atime : Number , mtime : dynamic ) : Promise < Unit >","docstring":""} {"signature":"external fun utimes ( path : Buffer , atime : Date , mtime : dynamic ) : Promise < Unit >","body":"external fun utimes ( path : Buffer , atime : Date , mtime : dynamic ) : Promise < Unit >","docstring":""} {"signature":"external fun utimes ( path : URL , atime : String , mtime : dynamic ) : Promise < Unit >","body":"external fun utimes ( path : URL , atime : String , mtime : dynamic ) : Promise < Unit >","docstring":""} {"signature":"external fun utimes ( path : URL , atime : Number , mtime : dynamic ) : Promise < Unit >","body":"external fun utimes ( path : URL , atime : Number , mtime : dynamic ) : Promise < Unit >","docstring":""} {"signature":"external fun utimes ( path : URL , atime : Date , mtime : dynamic ) : Promise < Unit >","body":"external fun utimes ( path : URL , atime : Date , mtime : dynamic ) : Promise < Unit >","docstring":""} {"signature":"external fun futimes ( handle : FileHandle , atime : String , mtime : String ) : Promise < Unit >","body":"external fun futimes ( handle : FileHandle , atime : String , mtime : String ) : Promise < Unit >","docstring":""} {"signature":"external fun futimes ( handle : FileHandle , atime : String , mtime : Number ) : Promise < Unit >","body":"external fun futimes ( handle : FileHandle , atime : String , mtime : Number ) : Promise < Unit >","docstring":""} {"signature":"external fun futimes ( handle : FileHandle , atime : String , mtime : Date ) : Promise < Unit >","body":"external fun futimes ( handle : FileHandle , atime : String , mtime : Date ) : Promise < Unit >","docstring":""} {"signature":"external fun futimes ( handle : FileHandle , atime : Number , mtime : String ) : Promise < Unit >","body":"external fun futimes ( handle : FileHandle , atime : Number , mtime : String ) : Promise < Unit >","docstring":""} {"signature":"external fun futimes ( handle : FileHandle , atime : Number , mtime : Number ) : Promise < Unit >","body":"external fun futimes ( handle : FileHandle , atime : Number , mtime : Number ) : Promise < Unit >","docstring":""} {"signature":"external fun futimes ( handle : FileHandle , atime : Number , mtime : Date ) : Promise < Unit >","body":"external fun futimes ( handle : FileHandle , atime : Number , mtime : Date ) : Promise < Unit >","docstring":""} {"signature":"external fun futimes ( handle : FileHandle , atime : Date , mtime : String ) : Promise < Unit >","body":"external fun futimes ( handle : FileHandle , atime : Date , mtime : String ) : Promise < Unit >","docstring":""} {"signature":"external fun futimes ( handle : FileHandle , atime : Date , mtime : Number ) : Promise < Unit >","body":"external fun futimes ( handle : FileHandle , atime : Date , mtime : Number ) : Promise < Unit >","docstring":""} {"signature":"external fun futimes ( handle : FileHandle , atime : Date , mtime : Date ) : Promise < Unit >","body":"external fun futimes ( handle : FileHandle , atime : Date , mtime : Date ) : Promise < Unit >","docstring":""} {"signature":"external fun realpath ( path : String , options : dynamic = definedExternally ) : Promise < String >","body":"external fun realpath ( path : String , options : dynamic = definedExternally ) : Promise < String >","docstring":""} {"signature":"external fun realpath ( path : Buffer , options : dynamic = definedExternally ) : Promise < String >","body":"external fun realpath ( path : Buffer , options : dynamic = definedExternally ) : Promise < String >","docstring":""} {"signature":"external fun realpath ( path : URL , options : dynamic = definedExternally ) : Promise < String >","body":"external fun realpath ( path : URL , options : dynamic = definedExternally ) : Promise < String >","docstring":""} {"signature":"external fun realpath ( path : String , options : `T$52` ) : Promise < Buffer >","body":"external fun realpath ( path : String , options : `T$52` ) : Promise < Buffer >","docstring":""} {"signature":"external fun realpath ( path : String , options : String ) : Promise < Buffer >","body":"external fun realpath ( path : String , options : String ) : Promise < Buffer >","docstring":""} {"signature":"external fun realpath ( path : Buffer , options : `T$52` ) : Promise < Buffer >","body":"external fun realpath ( path : Buffer , options : `T$52` ) : Promise < Buffer >","docstring":""} {"signature":"external fun realpath ( path : Buffer , options : String ) : Promise < Buffer >","body":"external fun realpath ( path : Buffer , options : String ) : Promise < Buffer >","docstring":""} {"signature":"external fun realpath ( path : URL , options : `T$52` ) : Promise < Buffer >","body":"external fun realpath ( path : URL , options : `T$52` ) : Promise < Buffer >","docstring":""} {"signature":"external fun realpath ( path : URL , options : String ) : Promise < Buffer >","body":"external fun realpath ( path : URL , options : String ) : Promise < Buffer >","docstring":""} {"signature":"external fun realpath ( path : String , options : `T$53` ? = definedExternally ) : Promise < dynamic >","body":"external fun realpath ( path : String , options : `T$53` ? = definedExternally ) : Promise < dynamic >","docstring":""} {"signature":"external fun realpath ( path : String , options : String ? = definedExternally ) : Promise < dynamic >","body":"external fun realpath ( path : String , options : String ? = definedExternally ) : Promise < dynamic >","docstring":""} {"signature":"external fun realpath ( path : String , options : Nothing ? = definedExternally ) : Promise < dynamic >","body":"external fun realpath ( path : String , options : Nothing ? = definedExternally ) : Promise < dynamic >","docstring":""} {"signature":"external fun realpath ( path : Buffer , options : `T$53` ? = definedExternally ) : Promise < dynamic >","body":"external fun realpath ( path : Buffer , options : `T$53` ? = definedExternally ) : Promise < dynamic >","docstring":""} {"signature":"external fun realpath ( path : Buffer , options : String ? = definedExternally ) : Promise < dynamic >","body":"external fun realpath ( path : Buffer , options : String ? = definedExternally ) : Promise < dynamic >","docstring":""} {"signature":"external fun realpath ( path : Buffer , options : Nothing ? = definedExternally ) : Promise < dynamic >","body":"external fun realpath ( path : Buffer , options : Nothing ? = definedExternally ) : Promise < dynamic >","docstring":""} {"signature":"external fun realpath ( path : URL , options : `T$53` ? = definedExternally ) : Promise < dynamic >","body":"external fun realpath ( path : URL , options : `T$53` ? = definedExternally ) : Promise < dynamic >","docstring":""} {"signature":"external fun realpath ( path : URL , options : String ? = definedExternally ) : Promise < dynamic >","body":"external fun realpath ( path : URL , options : String ? = definedExternally ) : Promise < dynamic >","docstring":""} {"signature":"external fun realpath ( path : URL , options : Nothing ? = definedExternally ) : Promise < dynamic >","body":"external fun realpath ( path : URL , options : Nothing ? = definedExternally ) : Promise < dynamic >","docstring":""} {"signature":"external fun mkdtemp ( prefix : String , options : `T$51` ? = definedExternally ) : Promise < String >","body":"external fun mkdtemp ( prefix : String , options : `T$51` ? = definedExternally ) : Promise < String >","docstring":""} {"signature":"external fun mkdtemp ( prefix : String , options : String = definedExternally ) : Promise < String >","body":"external fun mkdtemp ( prefix : String , options : String = definedExternally ) : Promise < String >","docstring":""} {"signature":"external fun mkdtemp ( prefix : String , options : Nothing ? = definedExternally ) : Promise < String >","body":"external fun mkdtemp ( prefix : String , options : Nothing ? = definedExternally ) : Promise < String >","docstring":""} {"signature":"external fun mkdtemp ( prefix : String , options : `T$52` ) : Promise < Buffer >","body":"external fun mkdtemp ( prefix : String , options : `T$52` ) : Promise < Buffer >","docstring":""} {"signature":"external fun mkdtemp ( prefix : String , options : String ) : Promise < Buffer >","body":"external fun mkdtemp ( prefix : String , options : String ) : Promise < Buffer >","docstring":""} {"signature":"external fun mkdtemp ( prefix : String , options : `T$53` ? = definedExternally ) : Promise < dynamic >","body":"external fun mkdtemp ( prefix : String , options : `T$53` ? = definedExternally ) : Promise < dynamic >","docstring":""} {"signature":"external fun mkdtemp ( prefix : String , options : String ? = definedExternally ) : Promise < dynamic >","body":"external fun mkdtemp ( prefix : String , options : String ? = definedExternally ) : Promise < dynamic >","docstring":""} {"signature":"external fun mkdtemp ( prefix : String , options : Nothing ? = definedExternally ) : Promise < dynamic >","body":"external fun mkdtemp ( prefix : String , options : Nothing ? = definedExternally ) : Promise < dynamic >","docstring":""} {"signature":"external fun writeFile ( path : String , data : Any , options : `T$38` ? = definedExternally ) : Promise < Unit >","body":"external fun writeFile ( path : String , data : Any , options : `T$38` ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun writeFile ( path : String , data : Any , options : String ? = definedExternally ) : Promise < Unit >","body":"external fun writeFile ( path : String , data : Any , options : String ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun writeFile ( path : String , data : Any , options : Nothing ? = definedExternally ) : Promise < Unit >","body":"external fun writeFile ( path : String , data : Any , options : Nothing ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun writeFile ( path : Buffer , data : Any , options : `T$38` ? = definedExternally ) : Promise < Unit >","body":"external fun writeFile ( path : Buffer , data : Any , options : `T$38` ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun writeFile ( path : Buffer , data : Any , options : String ? = definedExternally ) : Promise < Unit >","body":"external fun writeFile ( path : Buffer , data : Any , options : String ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun writeFile ( path : Buffer , data : Any , options : Nothing ? = definedExternally ) : Promise < Unit >","body":"external fun writeFile ( path : Buffer , data : Any , options : Nothing ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun writeFile ( path : URL , data : Any , options : `T$38` ? = definedExternally ) : Promise < Unit >","body":"external fun writeFile ( path : URL , data : Any , options : `T$38` ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun writeFile ( path : URL , data : Any , options : String ? = definedExternally ) : Promise < Unit >","body":"external fun writeFile ( path : URL , data : Any , options : String ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun writeFile ( path : URL , data : Any , options : Nothing ? = definedExternally ) : Promise < Unit >","body":"external fun writeFile ( path : URL , data : Any , options : Nothing ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun writeFile ( path : FileHandle , data : Any , options : `T$38` ? = definedExternally ) : Promise < Unit >","body":"external fun writeFile ( path : FileHandle , data : Any , options : `T$38` ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun writeFile ( path : FileHandle , data : Any , options : String ? = definedExternally ) : Promise < Unit >","body":"external fun writeFile ( path : FileHandle , data : Any , options : String ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun writeFile ( path : FileHandle , data : Any , options : Nothing ? = definedExternally ) : Promise < Unit >","body":"external fun writeFile ( path : FileHandle , data : Any , options : Nothing ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun appendFile ( path : String , data : Any , options : `T$38` ? = definedExternally ) : Promise < Unit >","body":"external fun appendFile ( path : String , data : Any , options : `T$38` ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun appendFile ( path : String , data : Any , options : String ? = definedExternally ) : Promise < Unit >","body":"external fun appendFile ( path : String , data : Any , options : String ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun appendFile ( path : String , data : Any , options : Nothing ? = definedExternally ) : Promise < Unit >","body":"external fun appendFile ( path : String , data : Any , options : Nothing ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun appendFile ( path : Buffer , data : Any , options : `T$38` ? = definedExternally ) : Promise < Unit >","body":"external fun appendFile ( path : Buffer , data : Any , options : `T$38` ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun appendFile ( path : Buffer , data : Any , options : String ? = definedExternally ) : Promise < Unit >","body":"external fun appendFile ( path : Buffer , data : Any , options : String ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun appendFile ( path : Buffer , data : Any , options : Nothing ? = definedExternally ) : Promise < Unit >","body":"external fun appendFile ( path : Buffer , data : Any , options : Nothing ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun appendFile ( path : URL , data : Any , options : `T$38` ? = definedExternally ) : Promise < Unit >","body":"external fun appendFile ( path : URL , data : Any , options : `T$38` ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun appendFile ( path : URL , data : Any , options : String ? = definedExternally ) : Promise < Unit >","body":"external fun appendFile ( path : URL , data : Any , options : String ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun appendFile ( path : URL , data : Any , options : Nothing ? = definedExternally ) : Promise < Unit >","body":"external fun appendFile ( path : URL , data : Any , options : Nothing ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun appendFile ( path : FileHandle , data : Any , options : `T$38` ? = definedExternally ) : Promise < Unit >","body":"external fun appendFile ( path : FileHandle , data : Any , options : `T$38` ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun appendFile ( path : FileHandle , data : Any , options : String ? = definedExternally ) : Promise < Unit >","body":"external fun appendFile ( path : FileHandle , data : Any , options : String ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun appendFile ( path : FileHandle , data : Any , options : Nothing ? = definedExternally ) : Promise < Unit >","body":"external fun appendFile ( path : FileHandle , data : Any , options : Nothing ? = definedExternally ) : Promise < Unit >","docstring":""} {"signature":"external fun readFile ( path : String , options : `T$40` ? = definedExternally ) : Promise < Buffer >","body":"external fun readFile ( path : String , options : `T$40` ? = definedExternally ) : Promise < Buffer >","docstring":""} {"signature":"external fun readFile ( path : String , options : Nothing ? = definedExternally ) : Promise < Buffer >","body":"external fun readFile ( path : String , options : Nothing ? = definedExternally ) : Promise < Buffer >","docstring":""} {"signature":"external fun readFile ( path : Buffer , options : `T$40` ? = definedExternally ) : Promise < Buffer >","body":"external fun readFile ( path : Buffer , options : `T$40` ? = definedExternally ) : Promise < Buffer >","docstring":""} {"signature":"external fun readFile ( path : Buffer , options : Nothing ? = definedExternally ) : Promise < Buffer >","body":"external fun readFile ( path : Buffer , options : Nothing ? = definedExternally ) : Promise < Buffer >","docstring":""} {"signature":"external fun readFile ( path : URL , options : `T$40` ? = definedExternally ) : Promise < Buffer >","body":"external fun readFile ( path : URL , options : `T$40` ? = definedExternally ) : Promise < Buffer >","docstring":""} {"signature":"external fun readFile ( path : URL , options : Nothing ? = definedExternally ) : Promise < Buffer >","body":"external fun readFile ( path : URL , options : Nothing ? = definedExternally ) : Promise < Buffer >","docstring":""} {"signature":"external fun readFile ( path : FileHandle , options : `T$40` ? = definedExternally ) : Promise < Buffer >","body":"external fun readFile ( path : FileHandle , options : `T$40` ? = definedExternally ) : Promise < Buffer >","docstring":""} {"signature":"external fun readFile ( path : FileHandle , options : Nothing ? = definedExternally ) : Promise < Buffer >","body":"external fun readFile ( path : FileHandle , options : Nothing ? = definedExternally ) : Promise < Buffer >","docstring":""} {"signature":"external fun readFile ( path : String , options : dynamic ) : Promise < String >","body":"external fun readFile ( path : String , options : dynamic ) : Promise < String >","docstring":""} {"signature":"external fun readFile ( path : Buffer , options : dynamic ) : Promise < String >","body":"external fun readFile ( path : Buffer , options : dynamic ) : Promise < String >","docstring":""} {"signature":"external fun readFile ( path : URL , options : dynamic ) : Promise < String >","body":"external fun readFile ( path : URL , options : dynamic ) : Promise < String >","docstring":""} {"signature":"external fun readFile ( path : FileHandle , options : dynamic ) : Promise < String >","body":"external fun readFile ( path : FileHandle , options : dynamic ) : Promise < String >","docstring":""} {"signature":"external fun readFile ( path : String , options : `T$42` ? = definedExternally ) : Promise < dynamic >","body":"external fun readFile ( path : String , options : `T$42` ? = definedExternally ) : Promise < dynamic >","docstring":""} {"signature":"external fun readFile ( path : String , options : String ? = definedExternally ) : Promise < dynamic >","body":"external fun readFile ( path : String , options : String ? = definedExternally ) : Promise < dynamic >","docstring":""} {"signature":"external fun readFile ( path : String , options : Nothing ? = definedExternally ) : Promise < dynamic >","body":"external fun readFile ( path : String , options : Nothing ? = definedExternally ) : Promise < dynamic >","docstring":""} {"signature":"external fun readFile ( path : Buffer , options : `T$42` ? = definedExternally ) : Promise < dynamic >","body":"external fun readFile ( path : Buffer , options : `T$42` ? = definedExternally ) : Promise < dynamic >","docstring":""} {"signature":"external fun readFile ( path : Buffer , options : String ? = definedExternally ) : Promise < dynamic >","body":"external fun readFile ( path : Buffer , options : String ? = definedExternally ) : Promise < dynamic >","docstring":""} {"signature":"external fun readFile ( path : Buffer , options : Nothing ? = definedExternally ) : Promise < dynamic >","body":"external fun readFile ( path : Buffer , options : Nothing ? = definedExternally ) : Promise < dynamic >","docstring":""} {"signature":"external fun readFile ( path : URL , options : `T$42` ? = definedExternally ) : Promise < dynamic >","body":"external fun readFile ( path : URL , options : `T$42` ? = definedExternally ) : Promise < dynamic >","docstring":""} {"signature":"external fun readFile ( path : URL , options : String ? = definedExternally ) : Promise < dynamic >","body":"external fun readFile ( path : URL , options : String ? = definedExternally ) : Promise < dynamic >","docstring":""} {"signature":"external fun readFile ( path : URL , options : Nothing ? = definedExternally ) : Promise < dynamic >","body":"external fun readFile ( path : URL , options : Nothing ? = definedExternally ) : Promise < dynamic >","docstring":""} {"signature":"external fun readFile ( path : FileHandle , options : `T$42` ? = definedExternally ) : Promise < dynamic >","body":"external fun readFile ( path : FileHandle , options : `T$42` ? = definedExternally ) : Promise < dynamic >","docstring":""} {"signature":"external fun readFile ( path : FileHandle , options : String ? = definedExternally ) : Promise < dynamic >","body":"external fun readFile ( path : FileHandle , options : String ? = definedExternally ) : Promise < dynamic >","docstring":""} {"signature":"external fun readFile ( path : FileHandle , options : Nothing ? = definedExternally ) : Promise < dynamic >","body":"external fun readFile ( path : FileHandle , options : Nothing ? = definedExternally ) : Promise < dynamic >","docstring":""} {"signature":"external fun open ( path : String , flags : String ) : Promise < FileHandle >","body":"external fun open ( path : String , flags : String ) : Promise < FileHandle >","docstring":""} {"signature":"external fun open ( path : String , flags : Number ) : Promise < FileHandle >","body":"external fun open ( path : String , flags : Number ) : Promise < FileHandle >","docstring":""} {"signature":"external fun open ( path : Buffer , flags : String ) : Promise < FileHandle >","body":"external fun open ( path : Buffer , flags : String ) : Promise < FileHandle >","docstring":""} {"signature":"external fun open ( path : Buffer , flags : Number ) : Promise < FileHandle >","body":"external fun open ( path : Buffer , flags : Number ) : Promise < FileHandle >","docstring":""} {"signature":"external fun open ( path : URL , flags : String ) : Promise < FileHandle >","body":"external fun open ( path : URL , flags : String ) : Promise < FileHandle >","docstring":""} {"signature":"external fun open ( path : URL , flags : Number ) : Promise < FileHandle >","body":"external fun open ( path : URL , flags : Number ) : Promise < FileHandle >","docstring":""} {"signature":"external fun mkdir ( path : String ) : Promise < Unit >","body":"external fun mkdir ( path : String ) : Promise < Unit >","docstring":""} {"signature":"external fun mkdir ( path : Buffer ) : Promise < Unit >","body":"external fun mkdir ( path : Buffer ) : Promise < Unit >","docstring":""} {"signature":"external fun mkdir ( path : URL ) : Promise < Unit >","body":"external fun mkdir ( path : URL ) : Promise < Unit >","docstring":""} {"signature":"external fun readdir ( path : String ) : Promise < Array < String > >","body":"external fun readdir ( path : String ) : Promise < Array < String > >","docstring":""} {"signature":"external fun readdir ( path : Buffer ) : Promise < Array < String > >","body":"external fun readdir ( path : Buffer ) : Promise < Array < String > >","docstring":""} {"signature":"external fun readdir ( path : URL ) : Promise < Array < String > >","body":"external fun readdir ( path : URL ) : Promise < Array < String > >","docstring":""} {"signature":"external fun readlink ( path : String ) : Promise < String >","body":"external fun readlink ( path : String ) : Promise < String >","docstring":""} {"signature":"external fun readlink ( path : Buffer ) : Promise < String >","body":"external fun readlink ( path : Buffer ) : Promise < String >","docstring":""} {"signature":"external fun readlink ( path : URL ) : Promise < String >","body":"external fun readlink ( path : URL ) : Promise < String >","docstring":""} {"signature":"external fun realpath ( path : String ) : Promise < String >","body":"external fun realpath ( path : String ) : Promise < String >","docstring":""} {"signature":"external fun realpath ( path : Buffer ) : Promise < String >","body":"external fun realpath ( path : Buffer ) : Promise < String >","docstring":""} {"signature":"external fun realpath ( path : URL ) : Promise < String >","body":"external fun realpath ( path : URL ) : Promise < String >","docstring":""} {"signature":"external fun mkdtemp ( prefix : String ) : Promise < String >","body":"external fun mkdtemp ( prefix : String ) : Promise < String >","docstring":""} {"signature":"external fun writeFile ( path : String , data : Any ) : Promise < Unit >","body":"external fun writeFile ( path : String , data : Any ) : Promise < Unit >","docstring":""} {"signature":"external fun writeFile ( path : Buffer , data : Any ) : Promise < Unit >","body":"external fun writeFile ( path : Buffer , data : Any ) : Promise < Unit >","docstring":""} {"signature":"external fun writeFile ( path : URL , data : Any ) : Promise < Unit >","body":"external fun writeFile ( path : URL , data : Any ) : Promise < Unit >","docstring":""} {"signature":"external fun writeFile ( path : FileHandle , data : Any ) : Promise < Unit >","body":"external fun writeFile ( path : FileHandle , data : Any ) : Promise < Unit >","docstring":""} {"signature":"external fun appendFile ( path : String , data : Any ) : Promise < Unit >","body":"external fun appendFile ( path : String , data : Any ) : Promise < Unit >","docstring":""} {"signature":"external fun appendFile ( path : Buffer , data : Any ) : Promise < Unit >","body":"external fun appendFile ( path : Buffer , data : Any ) : Promise < Unit >","docstring":""} {"signature":"external fun appendFile ( path : URL , data : Any ) : Promise < Unit >","body":"external fun appendFile ( path : URL , data : Any ) : Promise < Unit >","docstring":""} {"signature":"external fun appendFile ( path : FileHandle , data : Any ) : Promise < Unit >","body":"external fun appendFile ( path : FileHandle , data : Any ) : Promise < Unit >","docstring":""} {"signature":"external fun readFile ( path : String ) : Promise < Buffer >","body":"external fun readFile ( path : String ) : Promise < Buffer >","docstring":""} {"signature":"external fun readFile ( path : Buffer ) : Promise < Buffer >","body":"external fun readFile ( path : Buffer ) : Promise < Buffer >","docstring":""} {"signature":"external fun readFile ( path : URL ) : Promise < Buffer >","body":"external fun readFile ( path : URL ) : Promise < Buffer >","docstring":""} {"signature":"external fun readFile ( path : FileHandle ) : Promise < Buffer >","body":"external fun readFile ( path : FileHandle ) : Promise < Buffer >","docstring":""} {"signature":"fun box ( ) : String","body":"{ return \"\" }","docstring":""} {"signature":"override fun write ( rangeStart : List < Int > , rangeEnd : List < Int > , rangeCategory : List < Int > , writer : FileWriter )","body":"{ writer . appendLine ( isWhitespaceImpl ( rangeStart , rangeEnd ) ) }","docstring":""} {"signature":"private fun isWhitespaceImpl ( rangeStart : List < Int > , rangeEnd : List < Int > ) : String","body":"{ val checks = rangeChecks ( rangeStart , rangeEnd , \"\" ) return \"\"\"\"\"\" . trimIndent ( ) }","docstring":""} {"signature":"private fun rangeChecks ( rangeStart : List < Int > , rangeEnd : List < Int > , ch : String ) : String","body":"{ val tab = \"\" var tabCount = val builder = StringBuilder ( ) for ( i in rangeStart . indices ) { if ( i != ) { builder . append ( tab . repeat ( tabCount ) ) . append ( \"\" ) } val start = rangeStart [ i ] val end = rangeEnd [ i ] if ( start > && tabCount == ) { builder . appendLine ( \"\" ) tabCount = builder . append ( tab . repeat ( tabCount ) ) } builder . appendLine ( ( start .. end ) . rangeCheck ( ch , tab . repeat ( tabCount ) ) ) } return builder . append ( tab . repeat ( ) ) . append ( \"\" ) . toString ( ) }","docstring":""} {"signature":"internal fun parseSourceSet ( moduleName : String , args : Array < String > ) : DokkaConfiguration . DokkaSourceSet","body":"{ if ( moduleName . contains ( '' ) ) { throw IllegalArgumentException ( \"\" ) } val parser = ArgParser ( \"\" , prefixStyle = ArgParser . OptionPrefixStyle . JVM ) val sourceSetName by parser . option ( ArgType . String , description = \"\" ) . default ( \"\" ) val displayName by parser . option ( ArgType . String , description = \"\" ) . default ( DokkaDefaults . sourceSetDisplayName ) val classpath by parser . option ( ArgTypeFile , description = \"\" ) . delimiter ( \"\" ) val sourceRoots by parser . option ( ArgTypeFile , description = \"\" , fullName = \"\" ) . delimiter ( \"\" ) val dependentSourceSets by parser . option ( ArgType . String , description = \"\" + \"\" ) . delimiter ( \"\" ) val samples by parser . option ( ArgTypeFile , description = \"\" + \"\" ) . delimiter ( \"\" ) val includes by parser . option ( ArgTypeFile , description = \"\" + \"\" ) . delimiter ( \"\" ) val includeNonPublic : Boolean by parser . option ( ArgType . Boolean , description = \"\" ) . default ( DokkaDefaults . includeNonPublic ) val documentedVisibilities by parser . option ( ArgTypeVisibility , description = \"\" ) . delimiter ( \"\" ) val reportUndocumented by parser . option ( ArgType . Boolean , description = \"\" ) . default ( DokkaDefaults . reportUndocumented ) val noSkipEmptyPackages by parser . option ( ArgType . Boolean , description = \"\" ) . default ( ! DokkaDefaults . skipEmptyPackages ) val skipEmptyPackages by lazy { ! noSkipEmptyPackages } val skipDeprecated by parser . option ( ArgType . Boolean , description = \"\" ) . default ( DokkaDefaults . skipDeprecated ) val jdkVersion by parser . option ( ArgType . Int , description = \"\" ) . default ( DokkaDefaults . jdkVersion ) val languageVersion by parser . option ( ArgType . String , description = \"\" ) val apiVersion by parser . option ( ArgType . String , description = \"\" ) val noStdlibLink by parser . option ( ArgType . Boolean , description = \"\" ) . default ( DokkaDefaults . noStdlibLink ) val noJdkLink by parser . option ( ArgType . Boolean , description = \"\" ) . default ( DokkaDefaults . noJdkLink ) val suppressedFiles by parser . option ( ArgTypeFile , description = \"\" ) . delimiter ( \"\" ) val analysisPlatform : Platform by parser . option ( ArgTypePlatform , description = \"\" ) . default ( DokkaDefaults . analysisPlatform ) val perPackageOptions by parser . option ( ArgType . String , description = \"\" + \"\" + \"\" ) . delimiter ( \"\" ) val externalDocumentationLinks by parser . option ( ArgType . String , description = \"\" + \"\" ) . delimiter ( \"\" ) val sourceLinks by parser . option ( ArgTypeSourceLinkDefinition , description = \"\" + \"\" , fullName = \"\" ) . delimiter ( \"\" ) parser . parse ( args ) return object : DokkaConfiguration . DokkaSourceSet { override val displayName = displayName override val sourceSetID = DokkaSourceSetID ( moduleName , sourceSetName ) override val classpath = classpath . toMutableList ( ) override val sourceRoots = sourceRoots . toMutableSet ( ) override val dependentSourceSets = dependentSourceSets . map { dependentSourceSetName -> dependentSourceSetName . split ( '' ) . let { DokkaSourceSetID ( it [ ] , it [ ] ) } } . toMutableSet ( ) override val samples = samples . toMutableSet ( ) override val includes = includes . toMutableSet ( ) @ Deprecated ( \"\" ) override val includeNonPublic = includeNonPublic override val reportUndocumented = reportUndocumented override val skipEmptyPackages = skipEmptyPackages override val skipDeprecated = skipDeprecated override val jdkVersion = jdkVersion override val sourceLinks = sourceLinks . toMutableSet ( ) override val analysisPlatform = analysisPlatform override val perPackageOptions = parsePerPackageOptions ( perPackageOptions ) . toMutableList ( ) override val externalDocumentationLinks = parseLinks ( externalDocumentationLinks ) . toMutableSet ( ) override val languageVersion = languageVersion override val apiVersion = apiVersion override val noStdlibLink = noStdlibLink override val noJdkLink = noJdkLink override val suppressedFiles = suppressedFiles . toMutableSet ( ) override val documentedVisibilities : Set < DokkaConfiguration . Visibility > = documentedVisibilities . toSet ( ) . ifEmpty { DokkaDefaults . documentedVisibilities } override fun equals ( other : Any ? ) : Boolean { return sourceSetID == ( other as? DokkaConfiguration . DokkaSourceSet ) ? . sourceSetID } override fun hashCode ( ) : Int { return sourceSetID . hashCode ( ) } } }","docstring":""} {"signature":"override fun toString ( ) : String","body":"= \"\"","docstring":""} {"signature":"override fun toString ( ) : String","body":"= \"\"","docstring":""} {"signature":"override fun toString ( ) : String","body":"= \"\" + \"\"","docstring":""} {"signature":"override fun toString ( ) : String","body":"= \"\"","docstring":""} {"signature":"override fun toString ( ) : String","body":"= \"\"","docstring":""} {"signature":"override fun toString ( ) : String","body":"= \"\"","docstring":""} {"signature":"override fun toString ( ) : String","body":"= \"\"","docstring":""} {"signature":"override fun toString ( ) : String","body":"= \"\"","docstring":""} {"signature":"override fun toString ( ) : String","body":"= \"\"","docstring":""} {"signature":"override fun toString ( ) : String","body":"= \"\"","docstring":""} {"signature":"override fun toString ( ) : String","body":"= \"\"","docstring":""} {"signature":"override fun toString ( ) : String","body":"{ return \"\" }","docstring":""} {"signature":"override fun toString ( ) : String","body":"= \"\"","docstring":""} {"signature":"override fun toString ( ) : String","body":"= \"\"","docstring":""} {"signature":"override fun toString ( ) : String","body":"= \"\"","docstring":""} {"signature":"override fun toString ( ) : String","body":"{ return \"\" }","docstring":""} {"signature":"fun Constraint . isExpectedTypePosition ( )","body":"= position . from is ExpectedTypeConstraintPosition < * > || position . from is DelegatedPropertyConstraintPosition < * >","docstring":""} {"signature":"fun NewConstraintError . transformToWarning ( )","body":"= NewConstraintWarning ( lowerType , upperType , position )","docstring":""} {"signature":"@ Test fun `test - sourceSetClassifier - default` ( )","body":"= project . runLifecycleAwareTest { val target = kotlin . createExternalKotlinTarget < FakeTarget > { defaults ( ) } val mainCompilation = target . createCompilation < FakeCompilation > { defaults ( kotlin ) } val fakeCompilation = target . createCompilation < FakeCompilation > { defaults ( kotlin ) compilationName = \"\" defaultSourceSet = kotlin . sourceSets . create ( \"\" ) } assertEquals ( KotlinSourceSetTree . main , KotlinSourceSetTree . orNull ( mainCompilation ) ) assertEquals ( KotlinSourceSetTree ( \"\" ) , KotlinSourceSetTree . orNull ( fakeCompilation ) ) }","docstring":""} {"signature":"@ Test fun `test - sourceSetClassifier - custom name` ( )","body":"= project . runLifecycleAwareTest { val target = kotlin . createExternalKotlinTarget < FakeTarget > { defaults ( ) } val compilation = target . createCompilation < FakeCompilation > { defaults ( kotlin ) sourceSetTreeClassifierV2 = KotlinSourceSetTreeClassifier . Name ( \"\" ) } assertEquals ( KotlinSourceSetTree ( \"\" ) , KotlinSourceSetTree . orNull ( compilation ) ) }","docstring":""} {"signature":"@ Test fun `test - sourceSetClassifier - custom property` ( )","body":"= project . runLifecycleAwareTest { val kotlin = multiplatformExtension val myProperty = project . objects . property < KotlinSourceSetTree > ( ) val nullProperty = project . objects . property < KotlinSourceSetTree > ( ) val target = kotlin . createExternalKotlinTarget < FakeTarget > { defaults ( ) } val mainCompilation = target . createCompilation < FakeCompilation > { defaults ( kotlin ) sourceSetTreeClassifierV2 = KotlinSourceSetTreeClassifier . Property ( myProperty ) } val auxCompilation = target . createCompilation < FakeCompilation > ( ) { compilationName = \"\" compilationFactory = CompilationFactory ( :: FakeCompilation ) defaultSourceSet = kotlin . sourceSets . create ( \"\" ) sourceSetTreeClassifierV2 = KotlinSourceSetTreeClassifier . Property ( nullProperty ) } launchInStage ( KotlinPluginLifecycle . Stage . FinaliseDsl ) { myProperty . set ( KotlinSourceSetTree . main ) } assertEquals ( KotlinSourceSetTree . main , KotlinSourceSetTree . orNull ( mainCompilation ) ) assertNull ( KotlinSourceSetTree . orNull ( auxCompilation ) ) }","docstring":""} {"signature":"@ Test fun `test - compilation associator - default` ( )","body":"{ val target = kotlin . createExternalKotlinTarget < FakeTarget > { defaults ( ) } val mainCompilation = target . createCompilation < FakeCompilation > { assertEquals ( CompilationAssociator . default , compilationAssociator , \"\" ) defaults ( kotlin , \"\" ) compileTaskName = \"\" } val auxCompilation = target . createCompilation < FakeCompilation > { defaults ( kotlin , \"\" ) compilationName = \"\" } auxCompilation . associateWith ( mainCompilation ) assertEquals ( setOf ( mainCompilation ) , auxCompilation . associatedCompilations . toSet ( ) ) }","docstring":""} {"signature":"@ Test fun `test - compilation associator - custom` ( )","body":"{ val target = kotlin . createExternalKotlinTarget < FakeTarget > { defaults ( ) } val testTraceKey = extrasKeyOf < String > ( \"\" ) val compilationAssociator = CompilationAssociator < FakeCompilation > { auxiliary , main -> auxiliary . extras [ testTraceKey ] = \"\" main . extras [ testTraceKey ] = \"\" } val mainCompilation = target . createCompilation < FakeCompilation > { defaults ( kotlin , \"\" ) this . compilationAssociator = compilationAssociator this . compileTaskName = \"\" } val auxCompilation = target . createCompilation < FakeCompilation > { defaults ( kotlin , \"\" ) this . compilationName = \"\" this . compilationAssociator = compilationAssociator } auxCompilation . associateWith ( mainCompilation ) assertEquals ( \"\" , auxCompilation . extras [ testTraceKey ] ) assertEquals ( \"\" , mainCompilation . extras [ testTraceKey ] ) }","docstring":""} {"signature":"@ Test fun `test - sourcesElements - default configuration` ( )","body":"= project . runLifecycleAwareTest { val target = kotlin . createExternalKotlinTarget < FakeTarget > { defaults ( ) } target . createCompilation < FakeCompilation > { defaults ( kotlin ) } assertNotEquals ( target . sourcesElementsConfiguration , target . sourcesElementsPublishedConfiguration ) assertEquals ( target . sourcesElementsConfigurationName , target . sourcesElementsConfiguration . name ) assertEquals ( target . sourcesElementsConfiguration . attributes . toMap ( ) , target . sourcesElementsPublishedConfiguration . attributes . toMap ( ) , \"\" ) assertEquals ( KotlinPlatformType . jvm , target . sourcesElementsPublishedConfiguration . attributes . getAttribute ( KotlinPlatformType . attribute ) , \"\" ) assertEquals ( Category . DOCUMENTATION , target . sourcesElementsPublishedConfiguration . attributes . getAttribute ( Category . CATEGORY_ATTRIBUTE ) ? . name , \"\" ) assertEquals ( DocsType . SOURCES , target . sourcesElementsPublishedConfiguration . attributes . getAttribute ( DocsType . DOCS_TYPE_ATTRIBUTE ) ? . name , \"\" ) }","docstring":""} {"signature":"@ Test fun `test - sourcesElements - configure` ( )","body":"= project . runLifecycleAwareTest { val testAttribute = Attribute . of ( \"\" , String :: class . java ) val target = kotlin . createExternalKotlinTarget < FakeTarget > { defaults ( ) sourcesElements . configure { target , configuration -> assertEquals ( target . sourcesElementsConfiguration , configuration ) configuration . attributes . attributeProvider ( testAttribute , provider { \"\" } ) } sourcesElementsPublished . configure { target , configuration -> assertEquals ( target . sourcesElementsPublishedConfiguration , configuration ) configuration . attributes . attributeProvider ( testAttribute , provider { \"\" } ) } } target . createCompilation < FakeCompilation > { defaults ( kotlin ) } assertEquals ( \"\" , target . sourcesElementsConfiguration . attributes . getAttribute ( testAttribute ) ) assertEquals ( \"\" , target . sourcesElementsPublishedConfiguration . attributes . getAttribute ( testAttribute ) ) }","docstring":""} {"signature":"@ Test fun `test - sourcesElements - publication` ( )","body":"= project . runLifecycleAwareTest { val target = kotlin . createExternalKotlinTarget < FakeTarget > { defaults ( ) } target . createCompilation < FakeCompilation > { defaults ( kotlin ) } KotlinPluginLifecycle . Stage . AfterFinaliseCompilations . await ( ) val component = target . delegate . kotlinComponents . singleOrNull ( ) ? : fail ( \"\" ) component . internal . usages . find { it . dependencyConfigurationName == target . sourcesElementsPublishedConfiguration . name } ? : fail ( \"\" ) }","docstring":""} {"signature":"@ Test fun `test - sourcesElements - publication - withSourcesJar set to false` ( )","body":"= project . runLifecycleAwareTest { val target = kotlin . createExternalKotlinTarget < FakeTarget > { defaults ( ) } target . withSourcesJar ( false ) target . createCompilation < FakeCompilation > { defaults ( kotlin ) } val component = target . delegate . components . singleOrNull ( ) ? : fail ( \"\" ) val sourcesUsage = component . usages . find { it . name . contains ( \"\" , true ) } if ( sourcesUsage != null ) { fail ( \"\" ) } }","docstring":""} {"signature":"@ Test fun `test - gradle usage component contains the same usages as kotlin component` ( )","body":"= project . runLifecycleAwareTest { val target = kotlin . createExternalKotlinTarget < FakeTarget > { defaults ( ) } target . createCompilation < FakeCompilation > { defaults ( kotlin ) } val kotlinComponent = target . delegate . kotlinComponents . singleOrNull ( ) ? : fail ( \"\" ) val gradleComponent = target . delegate . components . singleOrNull ( ) ? : fail ( \"\" ) configurationResult . await ( ) val kotlinUsagesNames = kotlinComponent . internal . usages . map { it . dependencyConfigurationName } val gradleUsagesNames = ( gradleComponent as SoftwareComponentInternal ) . usages . map { it . name } if ( kotlinUsagesNames . toSet ( ) != gradleUsagesNames . toSet ( ) ) fail ( \"\" ) }","docstring":""} {"signature":"@ Test fun `test - gradle usage component contains the same usages as kotlin component after project evaluation` ( )","body":"{ val target = kotlin . createExternalKotlinTarget < FakeTarget > { defaults ( ) } target . createCompilation < FakeCompilation > { defaults ( kotlin ) } project . evaluate ( ) val kotlinComponent = target . kotlinComponents . singleOrNull ( ) ? : fail ( \"\" ) val gradleComponent = target . components . singleOrNull ( ) ? : fail ( \"\" ) if ( kotlinComponent !is SoftwareComponentInternal ) error ( \"\" ) val kotlinUsagesNames = kotlinComponent . usages . map { it . name } val gradleUsagesNames = gradleComponent . usages . map { it . name } if ( kotlinUsagesNames . toSet ( ) != gradleUsagesNames . toSet ( ) ) fail ( \"\" ) }","docstring":""} {"signature":"@ Test fun `test - project structure metadata contains external target variants` ( )","body":"{ val target = kotlin . createExternalKotlinTarget < FakeTarget > { defaults ( ) } val mainCompilation = target . createCompilation < FakeCompilation > { defaults ( kotlin ) } val testCompilation = target . createCompilation < FakeCompilation > { defaults ( kotlin ) compilationName = \"\" defaultSourceSet = kotlin . sourceSets . create ( \"\" ) } kotlin . linuxX64 ( ) kotlin . macosX64 ( ) fun KotlinHierarchyBuilder . withFakeTarget ( ) = withCompilations { it == mainCompilation || it == testCompilation } kotlin . applyHierarchyTemplate { sourceSetTrees ( KotlinSourceSetTree . main , KotlinSourceSetTree . test ) common { group ( \"\" ) { withLinux ( ) withFakeTarget ( ) } withMacos ( ) } } project . evaluate ( ) val projectStructureMetadata = kotlin . kotlinProjectStructureMetadata val fakeApiElementsSourceSets = projectStructureMetadata . sourceSetNamesByVariantName [ \"\" ] ? : fail ( \"\" ) assertEquals ( setOf ( \"\" , \"\" ) , fakeApiElementsSourceSets ) val fakeRuntimeElementsSourceSets = projectStructureMetadata . sourceSetNamesByVariantName [ \"\" ] ? : fail ( \"\" ) assertEquals ( setOf ( \"\" , \"\" ) , fakeRuntimeElementsSourceSets ) }","docstring":""} {"signature":"@ Test fun `test - published component contain user defined attributes` ( )","body":"{ val userAttribute = Attribute . of ( \"\" , String :: class . java ) val target = kotlin . createExternalKotlinTarget < FakeTarget > { defaults ( ) } target . createCompilation < FakeCompilation > { defaults ( kotlin ) } target . attributes . attributeProvider ( userAttribute , target . project . provider { \"\" } ) project . evaluate ( ) val component = target . internal . components . singleOrNull ( ) ? : fail ( \"\" ) if ( component . usages . isEmpty ( ) ) fail ( \"\" ) component . usages . forEach { usage -> if ( ! usage . attributes . contains ( userAttribute ) ) fail ( \"\" ) assertEquals ( \"\" , usage . attributes . getAttribute ( userAttribute ) ) } }","docstring":""} {"signature":"fun < T > bar ( x : T , y : ( T ) -> Boolean ) : Boolean","body":"= y ( x ) && jsTypeOf ( x . asDynamic ( ) ) != \"\"","docstring":""} {"signature":"fun typeOf ( x : dynamic )","body":"= js ( \"\" )","docstring":""} {"signature":"fun box ( ) : String","body":"{ val f = { x : Char -> val a : Char = x val b : Any = x typeOf ( a ) == \"\" && typeOf ( b ) == \"\" } if ( ! f ( '' ) ) return \"\" if ( ! bar ( '' , f ) ) return \"\" return \"\" }","docstring":""} {"signature":"override fun lower ( irBody : IrBody , container : IrDeclaration )","body":"{ if ( ! context . es6mode ) return val containerFunction = container as? IrFunction val shouldRemoveBoxRelatedDeclarationsAndStatements = containerFunction ? . isEs6ConstructorReplacement == true && ! containerFunction . parentAsClass . requiredToHaveBoxParameter ( ) if ( containerFunction != null && shouldRemoveBoxRelatedDeclarationsAndStatements && irBody is IrBlockBody ) { containerFunction . valueParameters = containerFunction . valueParameters . memoryOptimizedFilterNot { it . isBoxParameter } } irBody . transformChildrenVoid ( object : IrElementTransformerVoid ( ) { override fun visitWhen ( expression : IrWhen ) : IrExpression { return if ( shouldRemoveBoxRelatedDeclarationsAndStatements && expression . isBoxParameterDefaultResolution ) { irEmpty ( context ) } else { super . visitWhen ( expression ) } } override fun visitCall ( expression : IrCall ) : IrExpression { val callee = expression . symbol . owner return when { shouldRemoveBoxRelatedDeclarationsAndStatements && ( callee . symbol == context . intrinsics . jsCreateThisSymbol || callee . symbol == context . intrinsics . jsCreateExternalThisSymbol ) -> { expression . putValueArgument ( expression . valueArgumentsCount - , context . getVoid ( ) ) super . visitCall ( expression ) } callee . isEs6ConstructorReplacement && ( ! callee . parentAsClass . requiredToHaveBoxParameter ( ) || shouldRemoveBoxRelatedDeclarationsAndStatements ) -> { val newArgumentsSize = expression . valueArgumentsCount - super . visitCall ( IrCallImpl ( expression . startOffset , expression . endOffset , expression . type , expression . symbol , expression . typeArgumentsCount , newArgumentsSize , expression . origin , superQualifierSymbol = expression . superQualifierSymbol ) . apply { copyTypeArgumentsFrom ( expression ) dispatchReceiver = expression . dispatchReceiver extensionReceiver = expression . extensionReceiver for ( i in until newArgumentsSize ) { putValueArgument ( i , expression . getValueArgument ( i ) ) } } ) } else -> super . visitCall ( expression ) } } } ) }","docstring":""} {"signature":"private fun IrClass . requiredToHaveBoxParameter ( ) : Boolean","body":"{ return needsOfBoxParameter == true }","docstring":""} {"signature":"override fun transformFlat ( declaration : IrDeclaration ) : List < IrDeclaration > ?","body":"{ if ( ! context . es6mode || declaration !is IrClass ) return null val hasSuperClass = declaration . superClass != null if ( hasSuperClass && declaration . isInner ) { declaration . addToClassListWhichNeedBoxParameter ( ) } if ( hasSuperClass && declaration . isLocal && declaration . containsCapturedValues ( ) ) { declaration . addToClassListWhichNeedBoxParameter ( ) } return null }","docstring":""} {"signature":"private fun IrClass . containsCapturedValues ( ) : Boolean","body":"{ if ( superClass == null ) return false declarations . filterIsInstanceAnd < IrFunction > { it . isEs6ConstructorReplacement } . forEach { var meetCapturing = false val boxParameter = it . boxParameter it . body ? . acceptChildrenVoid ( object : IrElementVisitorVoid { override fun visitSetField ( expression : IrSetField ) { val receiver = expression . receiver as? IrGetValue if ( receiver != null && receiver . symbol == boxParameter ? . symbol ) { meetCapturing = true } super . visitSetField ( expression ) } } ) if ( meetCapturing ) return true } return false }","docstring":""} {"signature":"private fun IrClass . addToClassListWhichNeedBoxParameter ( )","body":"{ if ( isExternal ) return needsOfBoxParameter = true superClass ? . addToClassListWhichNeedBoxParameter ( ) }","docstring":""} {"signature":"override fun getSession ( moduleData : FirModuleData ) : FirSession ?","body":"{ return sessionCache [ moduleData ] }","docstring":""} {"signature":"fun registerSession ( moduleData : FirModuleData , session : FirSession )","body":"{ sessionCache [ moduleData ] = session }","docstring":""} {"signature":"@ Test fun testTheSameValueIsComputedFromDifferentThreads ( )","body":"{ val valueWithPostCompute = ValueWithPostCompute ( key = , calculate = { Thread . currentThread ( ) . name to Unit } , postCompute = { _ , _ , _ -> } ) val results = ConcurrentLinkedQueue < String > ( ) val threads = ( .. ) . map { threadIndex -> thread ( name = \"\" , start = false ) { results . offer ( valueWithPostCompute . getValue ( ) ) } } threads . forEach { it . start ( ) } threads . forEach { it . join ( ) } val resultsList = results . toList ( ) Assertions . assertEquals ( threads . size , results . size ) Assertions . assertTrue ( resultsList . all { it == resultsList [ ] } , \"\" ) }","docstring":"/**\n * Tests the following scenario:\n * - thread `t1` access the cache and executes `calculate()` and then `postCompute()` under a lock hold\n * - while the lock hold by `t1`, `t2` tries to also access the value and waits for the lock to be released by `t1`\n * - t1: during the post compute, some recoverable (e.g., PCE) exception happens inside the `postCompute()` and exception is not saved in the cache and rethrown\n * - t1 releases the lock with the `value` set to `ValueIsNotComputed`\n * - t2 acquires the lock and should try to recalculate the value in this case\n */"} {"signature":"@ Test fun testPCEIsRethrownAndNotSavedInCache ( )","body":"{ val valueWithPostCompute = ValueWithPostCompute ( key = , calculate = { \"\" to Unit } , postCompute = { _ , _ , _ -> throw ProcessCanceledException ( ) } ) val pceOnFirstAccess = kotlin . runCatching { valueWithPostCompute . getValue ( ) } . exceptionOrNull ( ) Assertions . assertInstanceOf ( ProcessCanceledException :: class . java , pceOnFirstAccess ) val pceOnSecondAccess = kotlin . runCatching { valueWithPostCompute . getValue ( ) } . exceptionOrNull ( ) Assertions . assertInstanceOf ( ProcessCanceledException :: class . java , pceOnSecondAccess ) Assertions . assertNotEquals ( pceOnFirstAccess , pceOnSecondAccess , \"\" ) }","docstring":""} {"signature":"@ Test fun testPCEFromPostCompute ( )","body":"{ for ( i in .. ) { val t1CalledCalculate = CountDownLatch ( ) val t2AccessedTheCache = CountDownLatch ( ) val resultRef = AtomicReference < Any ? > ( null ) val valueWithPostCompute = ValueWithPostCompute ( key = , calculate = { if ( Thread . currentThread ( ) . name == \"\" ) { t1CalledCalculate . countDown ( ) } Thread . currentThread ( ) . name to Unit } , postCompute = { _ , _ , _ -> t2AccessedTheCache . await ( ) if ( Thread . currentThread ( ) . name == \"\" ) { throw ProcessCanceledException ( ) } } ) val t1 = thread ( name = \"\" ) { try { valueWithPostCompute . getValue ( ) } catch ( _ : ProcessCanceledException ) { } } val t2 = thread ( name = \"\" ) { t1CalledCalculate . await ( ) t2AccessedTheCache . countDown ( ) try { resultRef . set ( valueWithPostCompute . getValue ( ) ) } catch ( e : Throwable ) { resultRef . set ( e ) } } t2 . join ( ) t1 . join ( ) when ( val result = resultRef . get ( ) ) { is Throwable -> throw result else -> Assertions . assertEquals ( \"\" , result ) } } }","docstring":"/**\n * Tests the following scenario:\n * - thread `t1` access the cache and executes `calculate()` and then `postCompute()` under a lock hold\n * - while the lock hold by `t1`, `t2` tries to also access the value and waits for the lock to be released by `t1`\n * - t1: during the post compute, some recoverable (e.g., PCE) exception happens inside the `postCompute()` and exception is not saved in the cache and rethrown\n * - t1 releases the lock with the `value` set to `ValueIsNotComputed`\n * - t2 acquires the lock and should try to recalculate the value in this case\n */"} {"signature":"@ Suppress ( \"\" ) internal fun CborDecodingException ( expected : String , foundByte : Int )","body":"= CborDecodingException ( \"\" )","docstring":""} {"signature":"internal fun printByte ( b : Int ) : String","body":"{ val hexCode = \"\" return buildString { append ( hexCode [ b shr and ] ) append ( hexCode [ b and ] ) } }","docstring":""} {"signature":"override fun getInstance ( project : Project ) : ProjectIsolationStartParameterAccessor","body":"{ return ProjectIsolationStartParameterAccessorG75 ( project . gradle ) }","docstring":""} {"signature":"fun resolveByVersionNumber ( versionNumber : Int ) : AbiSignatureVersion","body":"= Supported . entries . firstOrNull { it . versionNumber == versionNumber } ? : Unsupported ( versionNumber )","docstring":""} {"signature":"override operator fun get ( signatureVersion : AbiSignatureVersion ) : String ?","body":"= when ( signatureVersion ) { is AbiSignatureVersions . Supported -> when ( signatureVersion ) { AbiSignatureVersions . Supported . V1 -> signatureV1 AbiSignatureVersions . Supported . V2 -> signatureV2 } else -> error ( \"\" ) }","docstring":""} {"signature":"override fun hasAnnotation ( annotationClassName : AbiQualifiedName )","body":"= annotationClassName in annotations","docstring":""} {"signature":"override fun hasAnnotation ( annotationClassName : AbiQualifiedName )","body":"= annotationClassName in annotations","docstring":""} {"signature":"override fun hasAnnotation ( annotationClassName : AbiQualifiedName )","body":"= annotationClassName in annotations","docstring":""} {"signature":"override fun hasAnnotation ( annotationClassName : AbiQualifiedName )","body":"= annotationClassName in annotations","docstring":""} {"signature":"override fun hasAnnotation ( annotationClassName : AbiQualifiedName )","body":"= annotationClassName in annotations","docstring":""} {"signature":"override fun hasAnnotation ( annotationClassName : AbiQualifiedName )","body":"= annotationClassName in annotations","docstring":""} {"signature":"fun < T > Array < out T > . intersect ( other : Iterable < T > )","body":"{ val set = toMutableSet ( ) set . retainAll ( other ) }","docstring":""} {"signature":"fun < X > Array < out X > . toMutableSet ( ) : MutableSet < X >","body":"= TODO ( )","docstring":""} {"signature":"fun < Y > MutableCollection < in Y > . retainAll ( elements : Iterable < Y > )","body":"{ }","docstring":""} {"signature":"open fun foo ( x : String , y : String ? = null ) : String","body":"= x + ( y ? : \"\" )","docstring":""} {"signature":"fun box ( ) : String","body":"{ return run { class MyClass : A ( ) { override fun foo ( x : String , y : String ? ) = super . foo ( x , y ) } MyClass ( ) } . foo ( \"\" ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ var a : Any = A ( ) if ( a is I ) return \"\" a = B ( ) if ( a !is I ) return \"\" a = D ( ) if ( a !is I ) return \"\" a = C ( ) if ( a is I ) return \"\" return \"\" }","docstring":""} {"signature":"private fun checkKernelVersionRequirements ( name : String , library : LibraryDefinition , )","body":"{ library . minKernelVersion ? . let { minVersion -> kernelVersion ? . let { currentVersion -> if ( currentVersion < minVersion ) { throw ReplException ( \"\"\"\"\"\" . trimIndent ( ) , ) } } } }","docstring":""} {"signature":"override fun processNewLibraries ( arg : String ) : List < LibraryDefinitionProducer >","body":"= splitLibraryCalls ( arg ) . map { val ( libRef , vars ) = libraryReferenceParser . parseReferenceWithArgs ( it ) val library = libraryResolver ? . resolve ( libRef , vars ) ? : throw ReplException ( \"\" ) _requests . add ( LibraryResolutionRequest ( libRef , vars , library ) ) checkKernelVersionRequirements ( libRef . toString ( ) , library ) TrivialLibraryDefinitionProducer ( library ) }","docstring":""} {"signature":"public fun f ( p0 : Collection < CharSequence ? > ? )","body":"public fun f ( p0 : Collection < CharSequence ? > ? )","docstring":""} {"signature":"public fun f ( p0 : Comparable < CharSequence ? > ? )","body":"public fun f ( p0 : Comparable < CharSequence ? > ? )","docstring":""} {"signature":"fun foo ( )","body":"{ fun bar ( ) { } }","docstring":""} {"signature":"fun box ( )","body":"{ foo ( ) }","docstring":""} {"signature":"fun invoke ( )","body":"{ }","docstring":""} {"signature":"fun bar ( f : Foo )","body":"{ f < caret > ( ) }","docstring":""} {"signature":"override fun configureCompilerConfiguration ( configuration : CompilerConfiguration , module : TestModule )","body":"{ if ( module . files . any { it . isKtsFile } ) { loadScriptingPlugin ( configuration ) } }","docstring":""} {"signature":"fun < T > assertEquals ( a : T , b : T )","body":"{ if ( a != b ) throw AssertionError ( \"\" ) }","docstring":""} {"signature":"fun Double . Companion . MAX ( )","body":"= MAX_VALUE","docstring":""} {"signature":"fun Double . Companion . MIN ( )","body":"= MIN_VALUE","docstring":""} {"signature":"fun < T > test ( o : T )","body":"{ assertEquals ( o === Double . Companion , true ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ assertEquals ( , Double . MAX_VALUE ) assertEquals ( Double . MIN_VALUE , Double . MIN ( ) ) assertEquals ( Double . MAX_VALUE , Double . Companion . MAX ( ) ) test ( Double ) test ( Double . Companion ) return \"\" }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val m = listOf ( \"\" , \"\" ) . stream ( ) . collect ( Collectors . groupingBy ( Function . identity ( ) , Collectors . counting ( ) ) ) if ( m [ \"\" ] != ) return \"\" return \"\" }","docstring":""} {"signature":"override fun getLibraries ( target : CommonizerTarget ) : Set < NativeLibrary >","body":"{ return targetedDependencies [ target ] ? . value . orEmpty ( ) + nonTargetedDependencyRepository . getLibraries ( target ) }","docstring":""} {"signature":"fun test ( ) : Int","body":"{ val v = PublicClassHeir ( ) return v . foo ( ) + v . bar + v . baz ( ) }","docstring":""} {"signature":"fun main ( )","body":"= runBlocking < Unit > { val request = launch { val job1 = GlobalScope . launch { delay ( ) println ( \"\" ) } val job2 = launch { delay ( ) println ( \"\" ) } job1 . join ( ) job2 . join ( ) } delay ( ) request . cancelAndJoin ( ) delay ( ) }","docstring":""} {"signature":"inline fun transition ( from : State , to : State , block : ( ) -> Unit ) : State","body":"= if ( this == from ) { block ( ) to } else this","docstring":""} {"signature":"fun stop ( )","body":"{ state = State . STOPPED }","docstring":""} {"signature":"fun pause ( )","body":"{ when ( state ) { State . PAUSED -> { state = State . PLAYING audio . resume ( ) } State . PLAYING -> { state = State . PAUSED audio . pause ( ) } State . STOPPED -> throw Error ( \"\" ) } }","docstring":""} {"signature":"private fun getTime ( ) : Double","body":"{ clock_gettime ( CLOCK_MONOTONIC , now ) return now . pointed . tv_sec + now . pointed . tv_nsec / }","docstring":""} {"signature":"fun playFile ( fileName : String , mode : PlayMode )","body":"{ println ( \"\" ) val file = AVFile ( fileName ) try { file . dumpFormat ( ) val info = decoder . initDecode ( file . context , mode . useVideo , mode . useAudio ) val videoSize = requestedSize ? : info . video ? . size ? : Dimensions ( , ) info . video ? . let { video . start ( videoSize ) } val videoOutput = VideoOutput ( videoSize , video . pixelFormat ( ) ) val audioOutput = AudioOutput ( , , SampleFormat . S16 ) decoder . start ( videoOutput , audioOutput ) info . audio ? . let { audio . start ( audioOutput ) } lastFrameTime = getTime ( ) state = State . PLAYING decoder . requestDecodeChunk ( ) while ( state != State . STOPPED ) { info . video ? . let { playVideoFrame ( it ) } input . check ( ) checkPause ( ) if ( state == State . PLAYING ) syncAV ( info ) if ( decoder . done ( ) ) stop ( ) } } finally { stop ( ) audio . stop ( ) video . stop ( ) decoder . stop ( ) file . dispose ( ) } }","docstring":""} {"signature":"private fun playVideoFrame ( videoInfo : VideoInfo )","body":"{ val frame = decoder . nextVideoFrame ( ) ? : return val now = getTime ( ) val frameDuration = / videoInfo . fps val passedTime = now - lastFrameTime lastFrameTime += frameDuration if ( passedTime < frameDuration ) { usleep ( ( * ( frameDuration - passedTime ) ) . toInt ( ) . toUInt ( ) ) } else if ( passedTime > frameDuration * ) { lastFrameTime = now } video . nextFrame ( frame . buffer . pointed . data ! ! , frame . lineSize ) frame . unref ( ) }","docstring":""} {"signature":"private fun checkPause ( )","body":"{ while ( state == State . PAUSED ) { audio . pause ( ) input . check ( ) usleep ( * ) } audio . resume ( ) }","docstring":""} {"signature":"private fun syncAV ( info : CodecInfo )","body":"{ if ( info . hasVideo ) { if ( info . hasAudio ) { if ( ! decoder . audioVideoSynced ( ) ) { println ( \"\" ) while ( ! decoder . audioVideoSynced ( ) && state == State . PLAYING ) { usleep ( ) input . check ( ) } } } } else { usleep ( * ) } }","docstring":""} {"signature":"fun main ( args : Array < String > )","body":"{ val argParser = ArgParser ( \"\" ) val mode by argParser . option ( ArgType . Choice < PlayMode > ( ) , shortName = \"\" , description = \"\" ) . default ( PlayMode . BOTH ) val size by argParser . option ( ArgType . Int , shortName = \"\" , description = \"\" ) . delimiter ( \"\" ) val fileName by argParser . argument ( ArgType . String , description = \"\" ) argParser . parse ( args ) av_register_all ( ) val requestedSize = if ( size . size != ) { if ( size . isNotEmpty ( ) ) println ( \"\" ) null } else Dimensions ( size [ ] , size [ ] ) val player = VideoPlayer ( requestedSize ) try { player . playFile ( fileName , mode ) } finally { player . dispose ( ) } }","docstring":""} {"signature":"fun f ( ) : Int","body":"fun f ( ) : Int","docstring":""} {"signature":"fun compute ( )","body":"= f ( ) * p1 * p2","docstring":""} {"signature":"override fun f ( )","body":"= ","docstring":""} {"signature":"fun foo ( x : Int ) : String","body":"{ log += \"\" return when ( x ) { -> \"\" -> \"\" three ( x ) -> \"\" -> \"\" -> \"\" else -> \"\" } }","docstring":""} {"signature":"fun three ( x : Int ) : Int","body":"{ log += \"\" return }","docstring":""} {"signature":"fun box ( ) : String","body":"{ var result = ( .. ) . map ( :: foo ) . joinToString ( ) if ( result != \"\" ) return \"\" if ( log != \"\" ) return \"\" return \"\" }","docstring":""} {"signature":"suspend fun foo ( p : P = P ( ) )","body":"{ }","docstring":""} {"signature":"suspend fun bar ( p : P )","body":"{ }","docstring":""} {"signature":"fun main ( )","body":"{ val data : Project = OwnedProject ( \"\" , \"\" ) println ( Json . encodeToString ( data ) ) }","docstring":""} {"signature":"internal actual fun Continuation < * > . toDebugString ( ) : String","body":"= when ( this ) { is DispatchedContinuation -> toString ( ) else -> runCatching { \"\" } . getOrElse { \"\" } }","docstring":""} {"signature":"fun if_else ( b : Boolean ) : Int","body":"{ if ( b ) return else return }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val res = if_else ( false ) if ( res != ) return \"\" return \"\" }","docstring":""} {"signature":"fun bar ( )","body":"= \"\"","docstring":""} {"signature":"fun box ( ) : String","body":"{ var module1 = bar ( ) assertEquals ( \"\" , module1 ) return \"\" }","docstring":""} {"signature":"fun foo ( k : String ) : String","body":"fun foo ( k : String ) : String","docstring":""} {"signature":"fun fooK ( iFoo : IFoo )","body":"= iFoo . foo ( \"\" )","docstring":""} {"signature":"fun box ( )","body":"= fooK { fooK { fooK { k -> \"\" + k } } }","docstring":""} {"signature":"override fun checkType ( expression : KtExpression , expressionType : KotlinType , expressionTypeWithSmartCast : KotlinType , c : ResolutionContext < * > )","body":"{ if ( c . isDebuggerContext ) return val inaccessibleClasses = findInaccessibleJavaClasses ( expressionType , c ) if ( inaccessibleClasses . isNotEmpty ( ) ) { c . trace . report ( Errors . INACCESSIBLE_TYPE . on ( expression , expressionType , inaccessibleClasses ) ) return } if ( expressionTypeWithSmartCast != expressionType ) { val inaccessibleClassesWithSmartCast = findInaccessibleJavaClasses ( expressionTypeWithSmartCast , c ) if ( inaccessibleClassesWithSmartCast . isNotEmpty ( ) ) { c . trace . report ( Errors . INACCESSIBLE_TYPE . on ( expression , expressionType , inaccessibleClassesWithSmartCast ) ) } } }","docstring":""} {"signature":"private fun findInaccessibleJavaClasses ( type : KotlinType , c : ResolutionContext < * > ) : Collection < ClassDescriptor >","body":"{ val scopeOwner = c . scope . ownerDescriptor val inaccessibleJavaClasses = LinkedHashSet < ClassDescriptor > ( ) findInaccessibleJavaClassesRec ( type , scopeOwner , inaccessibleJavaClasses , c . languageVersionSettings ) return inaccessibleJavaClasses }","docstring":""} {"signature":"private fun findInaccessibleJavaClassesRec ( type : KotlinType , scopeOwner : DeclarationDescriptor , inaccessibleClasses : MutableCollection < ClassDescriptor > , languageVersionSettings : LanguageVersionSettings )","body":"{ val declarationDescriptor = type . constructor . declarationDescriptor if ( declarationDescriptor is JavaClassDescriptor ) { if ( ! DescriptorVisibilityUtils . isVisibleIgnoringReceiver ( declarationDescriptor , scopeOwner , languageVersionSettings ) ) { inaccessibleClasses . add ( declarationDescriptor ) } } for ( typeProjection in type . arguments ) { if ( typeProjection . isStarProjection ) continue findInaccessibleJavaClassesRec ( typeProjection . type , scopeOwner , inaccessibleClasses , languageVersionSettings ) } }","docstring":""} {"signature":"internal fun ResolvedCall < * > . isImplicitInvoke ( ) : Boolean","body":"{ if ( resultingDescriptor . name != OperatorNameConventions . INVOKE ) return false val callExpression = call . callElement as? KtCallExpression ? : return false val calleeExpression = callExpression . calleeExpression as? KtSimpleNameExpression ? : return true return calleeExpression . getReferencedName ( ) != OperatorNameConventions . INVOKE . asString ( ) }","docstring":""} {"signature":"internal fun ResolvedCall < * > . isImplicitGet ( ) : Boolean","body":"= resultingDescriptor . name == OperatorNameConventions . GET && call . callElement is KtArrayAccessExpression","docstring":""} {"signature":"internal fun ResolvedCall < * > . isImplicitSet ( ) : Boolean","body":"= resultingDescriptor . name == OperatorNameConventions . SET && call . callElement is KtArrayAccessExpression","docstring":""} {"signature":"internal fun KtElement . getDynamicOperator ( ) : IrDynamicOperator","body":"{ return when ( this ) { is KtUnaryExpression -> when ( operationToken ) { KtTokens . PLUS -> IrDynamicOperator . UNARY_PLUS KtTokens . MINUS -> IrDynamicOperator . UNARY_MINUS KtTokens . EXCL -> IrDynamicOperator . EXCL else -> throw AssertionError ( \"\" ) } is KtBinaryExpression -> when ( operationToken ) { KtTokens . PLUS -> IrDynamicOperator . BINARY_PLUS KtTokens . MINUS -> IrDynamicOperator . BINARY_MINUS KtTokens . MUL -> IrDynamicOperator . MUL KtTokens . DIV -> IrDynamicOperator . DIV KtTokens . PERC -> IrDynamicOperator . MOD KtTokens . LT -> IrDynamicOperator . LT KtTokens . LTEQ -> IrDynamicOperator . LE KtTokens . GT -> IrDynamicOperator . GT KtTokens . GTEQ -> IrDynamicOperator . GE KtTokens . ANDAND -> IrDynamicOperator . ANDAND KtTokens . OROR -> IrDynamicOperator . OROR KtTokens . EQEQ -> IrDynamicOperator . EQEQ KtTokens . EQEQEQ -> IrDynamicOperator . EQEQEQ KtTokens . EXCLEQ -> IrDynamicOperator . EXCLEQ KtTokens . EXCLEQEQEQ -> IrDynamicOperator . EXCLEQEQ else -> throw AssertionError ( \"\" ) } else -> throw AssertionError ( \"\" ) } }","docstring":""} {"signature":"fun MainViewController ( )","body":"= ComposeUIViewController { App ( ) }","docstring":""} {"signature":"fun toList ( ) : List < String >","body":"= mutableListOf < String > ( ) . also { args -> if ( include . isNotEmpty ( ) ) { args . add ( \"\" ) args . add ( include . joinToString ( \"\" ) ) } if ( exclude . isNotEmpty ( ) ) { args . add ( \"\" ) args . add ( exclude . joinToString ( \"\" ) ) } if ( ignoredTestSuites !== IgnoredTestSuitesReporting . reportAllInnerTestsAsIgnored ) { args . add ( \"\" ) args . add ( ignoredTestSuites . name ) } args . addAll ( moduleNames ) }","docstring":""} {"signature":"fun foo ( ) : String","body":"= \"\"","docstring":""} {"signature":"fun foo ( ) : String","body":"= \"\"","docstring":""} {"signature":"fun lib ( ) : String","body":"= when { Y ( ) . foo ( ) != \"\" -> \"\" Y ( ) . bar != \"\" -> \"\" else -> \"\" }","docstring":""} {"signature":"fun box ( ) : String","body":"= lib ( )","docstring":""} {"signature":"fun foo ( )","body":"{ }","docstring":""} {"signature":"inline fun f ( x : Int = )","body":"= x","docstring":""} {"signature":"override fun lowerStringLiteralDeclaration ( literal : StringLiteralExpressionDeclaration ) : StringLiteralExpressionDeclaration","body":"{ return literal . copy ( value = replacements . entries . fold ( literal . value ) { string , replacement -> string . replace ( replacement . key , replacement . value ) } ) }","docstring":""} {"signature":"override fun lower ( source : SourceSetDeclaration ) : SourceSetDeclaration","body":"{ return source . copy ( sources = source . sources . map { sourceFileDeclaration -> sourceFileDeclaration . copy ( root = EscapeLiteralsLowering ( ) . lowerSourceDeclaration ( sourceFileDeclaration . root ) ) } ) }","docstring":""} {"signature":"fun box ( )","body":"= when ( val y = x ) { in .. -> \"\" else -> \"\" }","docstring":""} {"signature":"fun logged ( message : String , value : Int )","body":"= value . also { log . append ( message ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ var sum = for ( i in ( ( logged ( \"\" , ) downTo logged ( \"\" , ) ) . reversed ( ) step logged ( \"\" , ) ) . reversed ( ) ) { sum = sum * + i } assertEquals ( , sum ) assertEquals ( \"\" , log . toString ( ) ) return \"\" }","docstring":""} {"signature":"override fun apply ( project : Project )","body":"{ KernelBuildConfigurator ( project ) . configure ( ) }","docstring":""} {"signature":"fun catchSomeExceptions ( e : Exception )","body":"{ try { throw e } catch ( e : NullPointerException ) { } catch ( e : IllegalArgumentException ) { } fail ( \"\" ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ try { catchSomeExceptions ( RuntimeException ( ) ) } catch ( e : RuntimeException ) { return \"\" } return \"\" }","docstring":""} {"signature":"external fun foo ( )","body":"external fun foo ( )","docstring":""} {"signature":"external fun foo ( )","body":"external fun foo ( )","docstring":""} {"signature":"external fun foo ( )","body":"external fun foo ( )","docstring":""} {"signature":"external fun foo ( )","body":"external fun foo ( )","docstring":""} {"signature":"fun test ( )","body":"{ class Local { external fun foo ( ) } object { external fun foo ( ) } }","docstring":""} {"signature":"override fun printCustomTaskMetrics ( statisticsData : CompileStatisticsData < JpsBuildTime , JpsBuildPerformanceMetric > , printer : Printer )","body":"{ val changedFiles = statisticsData . getChanges ( ) . let { changes -> changedFileListPerLimit ? . let { changes . subList ( , min ( it , changes . size ) ) } ? : changes } printer . println ( \"\" ) printer . println ( \"\" ) }","docstring":""} {"signature":"fun foo ( ) : String ? ?","body":"= \"\" ! ! as String ? ?","docstring":""} {"signature":"fun coroutineCreation ( ) : StackTraceElement","body":"= Exception ( ) . artificialFrame ( _CREATION :: class . java . simpleName )","docstring":"/**\n * Returns an artificial stack trace element denoting the boundary between coroutine creation and its execution.\n *\n * Appearance of this function in stack traces does not mean that it was called. Instead, it is used as a marker\n * that separates the part of the stack trace with the code executed in a coroutine from the stack trace of the code\n * that launched the coroutine.\n *\n * In earlier versions of kotlinx-coroutines, this was displayed as \"(Coroutine creation stacktrace)\", which caused\n * problems for tooling that processes stack traces: https://github.com/Kotlin/kotlinx.coroutines/issues/2291\n *\n * Note that presence of this marker in a stack trace implies that coroutine creation stack traces were enabled.\n */"} {"signature":"fun coroutineBoundary ( ) : StackTraceElement","body":"= Exception ( ) . artificialFrame ( _BOUNDARY :: class . java . simpleName )","docstring":"/**\n * Returns an artificial stack trace element denoting a coroutine boundary.\n *\n * Appearance of this function in stack traces does not mean that it was called. Instead, when one coroutine invokes\n * another, this is used as a marker in the stack trace to denote where the execution of one coroutine ends and that\n * of another begins.\n *\n * In earlier versions of kotlinx-coroutines, this was displayed as \"(Coroutine boundary)\", which caused\n * problems for tooling that processes stack traces: https://github.com/Kotlin/kotlinx.coroutines/issues/2291\n */"} {"signature":"private fun Throwable . artificialFrame ( name : String ) : StackTraceElement","body":"= with ( stackTrace [ ] ) { StackTraceElement ( ARTIFICIAL_FRAME_PACKAGE_NAME + \"\" + name , \"\" , fileName , lineNumber ) }","docstring":"/**\n * Forms an artificial stack frame with the given class name.\n *\n * It consists of the following parts:\n * 1. The package name, it seems, is needed for the IDE to detect stack trace elements reliably. It is `_COROUTINE` since\n * this is a valid identifier.\n * 2. Class names represents what type of artificial frame this is.\n * 3. The method name is `_`. The methods not being present in class definitions does not seem to affect navigation.\n */"} {"signature":"public fun breaks ( breaks : List < DomainType > ? = null , format : String ? = null )","body":"{ this . breaks = breaks this . format = format }","docstring":"/**\n * Sets legend breaks with formatting.\n *\n * @param breaks list of breaks.\n * @param format format string.\n */"} {"signature":"public fun breaksLabeled ( vararg breaksToLabels : Pair < DomainType , String > )","body":"{ breaks = breaksToLabels . map { it . first } labels = breaksToLabels . map { it . second } }","docstring":"/**\n * Sets legend breaks with labels.\n *\n * @param breaksToLabels list of breaks with corresponding labels.\n */"} {"signature":"public fun breaksLabeled ( breaks : List < DomainType > , labels : List < String > )","body":"{ this . breaks = breaks this . labels = labels }","docstring":"/**\n * Sets legend breaks with labels.\n *\n * @param breaks list of breaks.\n * @param labels list of corresponding labels.\n */"} {"signature":"suspend fun Long . ext ( ) : String","body":"= suspendCoroutineUninterceptedOrReturn { x -> x . resume ( this . toString ( ) + w ) COROUTINE_SUSPENDED }","docstring":""} {"signature":"suspend fun A . coroutinebug ( v : Long ? ) : String","body":"{ val r = v ? . ext ( ) if ( r == null ) return \"\" return r }","docstring":""} {"signature":"suspend fun A . coroutinebug2 ( v : Long ? ) : String","body":"{ val r = v ? . ext ( ) ? : \"\" return r }","docstring":""} {"signature":"fun builder ( c : suspend ( ) -> Unit )","body":"{ c . startCoroutine ( EmptyContinuation ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ var result = \"\" builder { val a = A ( \"\" ) val x1 = a . coroutinebug ( null ) if ( x1 != \"\" ) throw RuntimeException ( \"\" ) val x2 = a . coroutinebug ( ) if ( x2 != \"\" ) throw RuntimeException ( \"\" ) val x3 = a . coroutinebug2 ( null ) if ( x3 != \"\" ) throw RuntimeException ( \"\" ) val x4 = a . coroutinebug2 ( ) if ( x4 != \"\" ) throw RuntimeException ( \"\" ) result = \"\" } return result }","docstring":""} {"signature":"@ Test fun testVarargs ( )","body":"{ codegen ( \"\"\"\"\"\" ) }","docstring":""} {"signature":"@ Test fun testComposableLambdaCall ( )","body":"{ codegen ( \"\"\"\"\"\" ) }","docstring":""} {"signature":"@ Test fun testProperties ( )","body":"{ codegen ( \"\"\"\"\"\" ) }","docstring":""} {"signature":"@ Test fun testUnboundSymbolIssue ( )","body":"{ codegenNoImports ( \"\"\"\"\"\" ) }","docstring":""} {"signature":"@ Test fun testComposableLambdaCallWithGenerics ( )","body":"{ codegen ( \"\"\"\"\"\" ) }","docstring":""} {"signature":"@ Test fun testMethodInvocations ( )","body":"{ codegen ( \"\"\"\"\"\" ) }","docstring":""} {"signature":"@ Test fun testReceiverLambdaInvocation ( )","body":"{ codegen ( \"\"\"\"\"\" ) }","docstring":""} {"signature":"@ Test fun testReceiverLambda2 ( )","body":"{ codegen ( \"\"\"\"\"\" ) }","docstring":""} {"signature":"@ Test fun testInlineChildren ( )","body":"{ codegen ( \"\"\"\"\"\" ) }","docstring":""} {"signature":"@ Test fun testNoComposerImport ( )","body":"{ codegenNoImports ( \"\"\"\"\"\" . trimIndent ( ) ) }","docstring":""} {"signature":"@ Test fun testInlineNoinline ( )","body":"{ codegen ( \"\"\"\"\"\" . trimIndent ( ) ) }","docstring":""} {"signature":"@ Test fun testInlinedComposable ( )","body":"{ codegen ( \"\"\"\"\"\" ) }","docstring":""} {"signature":"@ Test fun testGenericParameterOrderIssue ( )","body":"{ codegen ( \"\"\"\"\"\" ) }","docstring":""} {"signature":"@ Test fun testArgumentOrderIssue ( )","body":"{ codegen ( \"\"\"\"\"\" ) }","docstring":""} {"signature":"@ Test fun testObjectName ( )","body":"{ codegen ( \"\"\"\"\"\" ) }","docstring":""} {"signature":"@ Test fun testStuffThatIWantTo ( )","body":"{ codegen ( \"\"\"\"\"\" ) }","docstring":""} {"signature":"@ Test fun testSetContent ( )","body":"{ codegen ( \"\"\"\"\"\" ) }","docstring":""} {"signature":"@ Test fun testInlineClassesAsComposableParameters ( )","body":"{ codegen ( \"\"\"\"\"\" ) }","docstring":""} {"signature":"@ Test fun testForDevelopment ( )","body":"{ codegen ( \"\"\"\"\"\" ) }","docstring":""} {"signature":"fun codegen ( text : String , dumpClasses : Boolean = false )","body":"{ codegenNoImports ( \"\"\"\"\"\" , dumpClasses ) }","docstring":""} {"signature":"fun codegenNoImports ( text : String , dumpClasses : Boolean = false )","body":"{ val className = \"\" val fileName = \"\" classLoader ( text , fileName , dumpClasses ) }","docstring":""} {"signature":"override fun doSubstitute ( configuration : CopyConfiguration ) : FunctionDescriptor ?","body":"{ val substituted = super . doSubstitute ( configuration ) as FunctionInvokeDescriptor ? ? : return null if ( substituted . valueParameters . none { it . type . extractParameterNameFromFunctionTypeArgument ( ) != null } ) return substituted val parameterNames = substituted . valueParameters . map { it . type . extractParameterNameFromFunctionTypeArgument ( ) } return substituted . replaceParameterNames ( parameterNames ) }","docstring":""} {"signature":"override fun createSubstitutedCopy ( newOwner : DeclarationDescriptor , original : FunctionDescriptor ? , kind : CallableMemberDescriptor . Kind , newName : Name ? , annotations : Annotations , source : SourceElement ) : FunctionDescriptorImpl","body":"{ return FunctionInvokeDescriptor ( newOwner , original as FunctionInvokeDescriptor ? , kind , isSuspend ) }","docstring":""} {"signature":"override fun isExternal ( ) : Boolean","body":"= false","docstring":""} {"signature":"override fun isInline ( ) : Boolean","body":"= false","docstring":""} {"signature":"override fun isTailrec ( ) : Boolean","body":"= false","docstring":""} {"signature":"private fun replaceParameterNames ( parameterNames : List < Name ? > ) : FunctionDescriptor","body":"{ val indexShift = valueParameters . size - parameterNames . size assert ( indexShift == || indexShift == ) if ( indexShift == && parameterNames . zip ( valueParameters ) . all { ( name , parameter ) -> name == parameter . name } ) { return this } val newValueParameters = valueParameters . map { var newName = it . name val parameterIndex = it . index val nameIndex = parameterIndex - indexShift if ( nameIndex >= ) { val parameterName = parameterNames [ nameIndex ] if ( parameterName != null ) { newName = parameterName } } it . copy ( this , newName , parameterIndex ) } val copyConfiguration = newCopyBuilder ( TypeSubstitutor . EMPTY ) . setHasSynthesizedParameterNames ( parameterNames . any { it == null } ) . setValueParameters ( newValueParameters ) . setOriginal ( original ) return super . doSubstitute ( copyConfiguration ) ! ! }","docstring":""} {"signature":"fun create ( functionClass : FunctionClassDescriptor , isSuspend : Boolean ) : FunctionInvokeDescriptor","body":"{ val typeParameters = functionClass . declaredTypeParameters val result = FunctionInvokeDescriptor ( functionClass , null , CallableMemberDescriptor . Kind . DECLARATION , isSuspend ) result . initialize ( null , functionClass . thisAsReceiverParameter , listOf ( ) , listOf ( ) , typeParameters . takeWhile { it . variance == Variance . IN_VARIANCE } . withIndex ( ) . map { createValueParameter ( result , it . index , it . value ) } , typeParameters . last ( ) . defaultType , Modality . ABSTRACT , DescriptorVisibilities . PUBLIC ) result . setHasSynthesizedParameterNames ( true ) return result }","docstring":""} {"signature":"private fun createValueParameter ( containingDeclaration : FunctionInvokeDescriptor , index : Int , typeParameter : TypeParameterDescriptor ) : ValueParameterDescriptor","body":"{ val name = when ( val typeParameterName = typeParameter . name . asString ( ) ) { \"\" -> \"\" \"\" -> \"\" else -> { typeParameterName . lowercase ( ) } } return ValueParameterDescriptorImpl ( containingDeclaration , null , index , Annotations . EMPTY , Name . identifier ( name ) , typeParameter . defaultType , declaresDefaultValue = false , isCrossinline = false , isNoinline = false , varargElementType = null , SourceElement . NO_SOURCE ) }","docstring":""} {"signature":"fun main ( )","body":"{ println ( \"\" ) }","docstring":""} {"signature":"fun String . foo ( count : Int )","body":"{ val x = false block b1 @ { val y = false block b2 @ { val z = true block b3 @ { this@foo + this@b1 + this@b2 + this@b3 + x + y + z + count } } } }","docstring":""} {"signature":"fun block ( block : Long . ( ) -> Unit )","body":"= . block ( )","docstring":""} {"signature":"private fun process ( )","body":"{ var arguments = getArguments ( ) val parameters = getParameters ( ) if ( arguments . size > parameters . size ) { assert ( arguments . size == parameters . size + ) { \"\" } arguments = arguments . subList ( , parameters . size ) } removeDefaultInitializers ( arguments , parameters , body ) aliasArgumentsIfNeeded ( namingContext , arguments , parameters , call . source ) renameLocalNames ( namingContext , invokedFunction ) processReturns ( ) namingContext . applyRenameTo ( body ) resultExpr = resultExpr ? . let { namingContext . applyRenameTo ( it ) as JsNameRef } }","docstring":""} {"signature":"private fun uncoverClosure ( invokedFunction : JsFunction ) : JsFunction","body":"{ val innerFunction = invokedFunction . getInnerFunction ( ) val innerCall = getInnerCall ( call . qualifier ) return if ( innerCall != null && innerFunction != null ) { innerFunction . apply { replaceThis ( body ) applyCapturedArgs ( innerCall , this , invokedFunction ) } } else { invokedFunction . apply { replaceThis ( body ) } } }","docstring":""} {"signature":"private fun getInnerCall ( qualifier : JsExpression ) : JsInvocation ?","body":"{ return when ( qualifier ) { is JsInvocation -> qualifier is JsNameRef -> { val callee = if ( qualifier . ident == Namer . CALL_FUNCTION ) qualifier . qualifier else ( qualifier . name ? . staticRef as? JsExpression ) callee ? . let { getInnerCall ( it ) } } else -> null } }","docstring":""} {"signature":"private fun applyCapturedArgs ( call : JsInvocation , inner : JsFunction , outer : JsFunction )","body":"{ val namingContext = inliningContext . newNamingContext ( ) val arguments = call . arguments val parameters = outer . parameters aliasArgumentsIfNeeded ( namingContext , arguments , parameters , call . source ) namingContext . applyRenameTo ( inner ) }","docstring":""} {"signature":"private fun replaceThis ( block : JsBlock )","body":"{ if ( ! hasThisReference ( block ) ) return var thisReplacement = getThisReplacement ( call ) if ( thisReplacement == null || thisReplacement is JsThisRef ) return val thisName = JsScope . declareTemporaryName ( getThisAlias ( ) ) namingContext . newVar ( thisName , thisReplacement , source = call . source ) thisReplacement = thisName . makeRef ( ) replaceThisReference ( block , thisReplacement ) }","docstring":""} {"signature":"private fun processReturns ( )","body":"{ resultExpr = getResultReference ( ) val breakName = JsScope . declareTemporaryName ( getBreakLabel ( ) ) this . breakLabel = JsLabel ( breakName ) . apply { synthetic = true } val visitor = ReturnReplacingVisitor ( resultExpr , breakName . makeRef ( ) , invokedFunction , call . isSuspend ) visitor . accept ( body ) }","docstring":""} {"signature":"private fun getResultReference ( ) : JsNameRef ?","body":"{ if ( ! isResultNeeded ( call ) ) return null val resultName = JsScope . declareTemporaryName ( getResultLabel ( ) ) this . resultName = resultName namingContext . newVar ( resultName , source = call . source ) return resultName . makeRef ( ) }","docstring":""} {"signature":"private fun getArguments ( ) : List < JsExpression >","body":"{ val arguments = call . arguments if ( isCallInvocation ( call ) ) { return arguments . subList ( , arguments . size ) } return arguments }","docstring":""} {"signature":"private fun isResultNeeded ( call : JsInvocation ) : Boolean","body":"{ return currentStatement !is JsExpressionStatement || call != currentStatement . expression }","docstring":""} {"signature":"private fun getParameters ( ) : List < JsParameter >","body":"{ return invokedFunction . parameters }","docstring":""} {"signature":"private fun getResultLabel ( ) : String","body":"{ return getLabelPrefix ( ) + \"\" }","docstring":""} {"signature":"private fun getBreakLabel ( ) : String","body":"{ return getLabelPrefix ( ) + \"\" }","docstring":""} {"signature":"private fun getThisAlias ( ) : String","body":"{ return \"\" }","docstring":""} {"signature":"fun getLabelPrefix ( ) : String","body":"{ val ident = getSimpleIdent ( call ) val labelPrefix = ident ? : \"\" if ( labelPrefix . endsWith ( \"\" ) ) { return labelPrefix } return labelPrefix + \"\" }","docstring":""} {"signature":"@ JvmStatic fun getInlineableCallReplacement ( call : JsInvocation , function : JsFunction , inliningContext : InliningContext ) : InlineableResult","body":"{ val mutator = FunctionInlineMutator ( call , inliningContext , function ) mutator . process ( ) var inlineableBody : JsStatement = mutator . body val breakLabel = mutator . breakLabel if ( breakLabel != null ) { breakLabel . statement = inlineableBody inlineableBody = breakLabel } return InlineableResult ( inlineableBody , mutator . resultExpr ) }","docstring":""} {"signature":"@ JvmStatic private fun getThisReplacement ( call : JsInvocation ) : JsExpression ?","body":"{ if ( isCallInvocation ( call ) ) { return call . arguments [ ] } if ( hasCallerQualifier ( call ) ) { return getCallerQualifier ( call ) } return null }","docstring":""} {"signature":"private fun hasThisReference ( body : JsBlock ) : Boolean","body":"{ val thisRefs = collectInstances ( JsThisRef :: class . java , body ) return ! thisRefs . isEmpty ( ) }","docstring":""} {"signature":"fun getContributedDescriptors ( s : String = \"\" ) : String","body":"fun getContributedDescriptors ( s : String = \"\" ) : String","docstring":""} {"signature":"override fun getContributedDescriptors ( s : String ) : String","body":"= s","docstring":""} {"signature":"fun box ( ) : String","body":"= Impl ( ) . getContributedDescriptors ( )","docstring":""} {"signature":"protected open fun IrExpression . useAs ( type : IrType ) : IrExpression","body":"= this","docstring":""} {"signature":"protected open fun IrExpression . useAsStatement ( ) : IrExpression","body":"= this","docstring":""} {"signature":"protected open fun IrExpression . useInTypeOperator ( operator : IrTypeOperator , typeOperand : IrType ) : IrExpression","body":"= this","docstring":""} {"signature":"protected open fun IrExpression . useAsValue ( value : IrValueDeclaration ) : IrExpression","body":"= this . useAs ( value . type )","docstring":""} {"signature":"protected open fun IrExpression . useAsArgument ( parameter : IrValueParameter ) : IrExpression","body":"= this . useAsValue ( parameter )","docstring":""} {"signature":"protected open fun IrExpression . useAsDispatchReceiver ( expression : IrFunctionAccessExpression ) : IrExpression","body":"= this . useAsArgument ( expression . symbol . owner . dispatchReceiverParameter ! ! )","docstring":""} {"signature":"protected open fun IrExpression . useAsExtensionReceiver ( expression : IrFunctionAccessExpression ) : IrExpression","body":"= this . useAsArgument ( expression . symbol . owner . extensionReceiverParameter ! ! )","docstring":""} {"signature":"protected open fun IrExpression . useAsValueArgument ( expression : IrFunctionAccessExpression , parameter : IrValueParameter ) : IrExpression","body":"= this . useAsArgument ( parameter )","docstring":""} {"signature":"private fun IrExpression . useForVariable ( variable : IrVariable ) : IrExpression","body":"= this . useAsValue ( variable )","docstring":""} {"signature":"private fun IrExpression . useForField ( field : IrField ) : IrExpression","body":"= this . useAs ( field . type )","docstring":""} {"signature":"protected open fun IrExpression . useAsReturnValue ( returnTarget : IrReturnTargetSymbol ) : IrExpression","body":"= when ( returnTarget ) { is IrSimpleFunctionSymbol -> this . useAs ( returnTarget . owner . returnType ) is IrConstructorSymbol -> this . useAs ( irBuiltIns . unitType ) is IrReturnableBlockSymbol -> this . useAs ( returnTarget . owner . type ) }","docstring":""} {"signature":"protected open fun IrExpression . useAsResult ( enclosing : IrExpression ) : IrExpression","body":"= this . useAs ( enclosing . type )","docstring":""} {"signature":"protected open fun useAsVarargElement ( element : IrExpression , expression : IrVararg ) : IrExpression","body":"= element","docstring":""} {"signature":"override fun visitPropertyReference ( expression : IrPropertyReference ) : IrExpression","body":"{ TODO ( ) }","docstring":""} {"signature":"override fun visitLocalDelegatedPropertyReference ( expression : IrLocalDelegatedPropertyReference ) : IrExpression","body":"{ TODO ( ) }","docstring":""} {"signature":"override fun visitFunctionAccess ( expression : IrFunctionAccessExpression ) : IrExpression","body":"{ expression . transformChildrenVoid ( this ) with ( expression ) { dispatchReceiver = dispatchReceiver ? . useAsDispatchReceiver ( expression ) extensionReceiver = extensionReceiver ? . useAsExtensionReceiver ( expression ) for ( index in until valueArgumentsCount ) { val argument = getValueArgument ( index ) ? : continue val parameter = symbol . owner . valueParameters [ index ] putValueArgument ( index , argument . useAsValueArgument ( expression , parameter ) ) } } return expression }","docstring":""} {"signature":"override fun visitBlockBody ( body : IrBlockBody ) : IrBody","body":"{ body . transformChildrenVoid ( this ) body . statements . forEachIndexed { i , irStatement -> if ( irStatement is IrExpression ) { body . statements [ i ] = irStatement . useAsStatement ( ) } } return body }","docstring":""} {"signature":"override fun visitContainerExpression ( expression : IrContainerExpression ) : IrExpression","body":"{ if ( ! replaceTypesInsideInlinedFunctionBlock && expression is IrInlinedFunctionBlock ) { expression . transformChildrenVoid ( this ) return expression } expression . transformChildrenVoid ( this ) if ( expression . statements . isEmpty ( ) ) { return expression } val container = expression . innerInlinedBlockOrThis val lastIndex = container . statements . lastIndex container . statements . forEachIndexed { i , irStatement -> if ( irStatement is IrExpression ) { container . statements [ i ] = when ( i ) { lastIndex -> irStatement . useAsResult ( expression ) else -> irStatement . useAsStatement ( ) } } } return expression }","docstring":""} {"signature":"override fun visitReturn ( expression : IrReturn ) : IrExpression","body":"{ expression . transformChildrenVoid ( this ) expression . value = expression . value . useAsReturnValue ( expression . returnTargetSymbol ) return expression }","docstring":""} {"signature":"override fun visitSetValue ( expression : IrSetValue ) : IrExpression","body":"{ expression . transformChildrenVoid ( this ) expression . value = expression . value . useAsValue ( expression . symbol . owner ) return expression }","docstring":""} {"signature":"override fun visitSetField ( expression : IrSetField ) : IrExpression","body":"{ expression . transformChildrenVoid ( this ) expression . value = expression . value . useForField ( expression . symbol . owner ) return expression }","docstring":""} {"signature":"override fun visitField ( declaration : IrField ) : IrStatement","body":"{ declaration . transformChildrenVoid ( this ) declaration . initializer ? . let { it . expression = it . expression . useForField ( declaration ) } return declaration }","docstring":""} {"signature":"override fun visitVariable ( declaration : IrVariable ) : IrVariable","body":"{ declaration . transformChildrenVoid ( this ) declaration . initializer = declaration . initializer ? . useForVariable ( declaration ) return declaration }","docstring":""} {"signature":"override fun visitWhen ( expression : IrWhen ) : IrExpression","body":"{ expression . transformChildrenVoid ( this ) for ( irBranch in expression . branches ) { irBranch . condition = irBranch . condition . useAs ( irBuiltIns . booleanType ) irBranch . result = irBranch . result . useAsResult ( expression ) } return expression }","docstring":""} {"signature":"override fun visitLoop ( loop : IrLoop ) : IrExpression","body":"{ loop . transformChildrenVoid ( this ) loop . condition = loop . condition . useAs ( irBuiltIns . booleanType ) loop . body = loop . body ? . useAsStatement ( ) return loop }","docstring":""} {"signature":"override fun visitThrow ( expression : IrThrow ) : IrExpression","body":"{ expression . transformChildrenVoid ( this ) expression . value = expression . value . useAs ( irBuiltIns . throwableType ) return expression }","docstring":""} {"signature":"override fun visitTry ( aTry : IrTry ) : IrExpression","body":"{ aTry . transformChildrenVoid ( this ) aTry . tryResult = aTry . tryResult . useAsResult ( aTry ) for ( aCatch in aTry . catches ) { aCatch . result = aCatch . result . useAsResult ( aTry ) } aTry . finallyExpression = aTry . finallyExpression ? . useAsStatement ( ) return aTry }","docstring":""} {"signature":"override fun visitVararg ( expression : IrVararg ) : IrExpression","body":"{ expression . transformChildrenVoid ( this ) expression . elements . forEachIndexed { i , element -> when ( element ) { is IrSpreadElement -> element . expression = element . expression . useAs ( expression . type ) is IrExpression -> { expression . putElement ( i , useAsVarargElement ( element , expression ) ) } } } return expression }","docstring":""} {"signature":"override fun visitTypeOperator ( expression : IrTypeOperatorCall ) : IrExpression","body":"{ expression . transformChildrenVoid ( this ) expression . argument = expression . argument . useInTypeOperator ( expression . operator , expression . typeOperand ) return expression }","docstring":""} {"signature":"override fun visitFunction ( declaration : IrFunction ) : IrStatement","body":"{ declaration . transformChildrenVoid ( this ) declaration . valueParameters . forEach { parameter -> val defaultValue = parameter . defaultValue if ( defaultValue is IrExpressionBody ) { defaultValue . expression = defaultValue . expression . useAsArgument ( parameter ) } } declaration . body ? . let { if ( it is IrExpressionBody ) { it . expression = it . expression . useAsReturnValue ( declaration . symbol ) } } return declaration }","docstring":""} {"signature":"override fun visitStringConcatenation ( expression : IrStringConcatenation ) : IrExpression","body":"{ expression . transformChildrenVoid ( ) if ( expression is IrStringConcatenationImpl ) { for ( ( i , arg ) in expression . arguments . withIndex ( ) ) { expression . arguments [ i ] = arg . useAs ( irBuiltIns . anyNType ) } } return expression }","docstring":""} {"signature":"private fun IndexerResult . getObjCClass ( name : String )","body":"= index . objCClasses . first { it . name == name }","docstring":""} {"signature":"private fun IndexerResult . getObjCCategory ( name : String )","body":"= index . objCCategories . first { it . name == name }","docstring":""} {"signature":"@ BeforeTest fun checkPlatform ( )","body":"{ Assume . assumeTrue ( HostManager . hostIsMac ) }","docstring":""} {"signature":"@ Test fun `smoke 0` ( )","body":"{ val index = buildNativeIndex ( \"\" , \"\" ) val myClass = index . getObjCClass ( \"\" ) val myClassCategories = myClass . includedCategories . map { it . name } assertContains ( myClassCategories , \"\" ) assertContains ( myClassCategories , \"\" ) }","docstring":""} {"signature":"@ Test fun `only specific classes include categories` ( )","body":"{ val index = buildNativeIndex ( \"\" , \"\" ) val skipClass = index . getObjCClass ( \"\" ) assertTrue ( skipClass . includedCategories . isEmpty ( ) ) }","docstring":""} {"signature":"@ Test fun `category from another header is not included` ( )","body":"{ val index = buildNativeIndex ( \"\" , \"\" ) val myClass = index . getObjCClass ( \"\" ) val myClassCategories = myClass . includedCategories . map { it . name } assertContains ( myClassCategories , \"\" ) assertFalse ( \"\" in myClassCategories ) }","docstring":""} {"signature":"@ Test fun `external category is not included into index` ( )","body":"{ val dependencyIndex = buildNativeIndex ( \"\" , \"\" ) val index = buildNativeIndex ( \"\" , \"\" , mockImports ( dependencyIndex ) ) val derivedClass = index . getObjCClass ( \"\" ) val myClass = derivedClass . baseClass ! ! assertEquals ( \"\" , myClass . name ) assertFalse ( myClass in index . index . objCClasses ) val myClassCategories = myClass . includedCategories assertTrue ( myClassCategories . isNotEmpty ( ) ) assertTrue ( myClassCategories . all { it !in index . index . objCCategories } ) }","docstring":""} {"signature":"@ Test fun `category is not included into dependency class` ( )","body":"{ val dependencyIndex = buildNativeIndex ( \"\" , \"\" ) val index = buildNativeIndex ( \"\" , \"\" , mockImports ( dependencyIndex ) ) val category = index . getObjCCategory ( \"\" ) assertFalse ( category in category . clazz . includedCategories ) }","docstring":""} {"signature":"fun printInt ( x : Int )","body":"= sb . appendLine ( x )","docstring":""} {"signature":"fun foo ( arg : Any )","body":"{ val argAsInt = try { arg as Int } catch ( e : ClassCastException ) { } printInt ( argAsInt ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ foo ( ) foo ( \"\" ) val nonConstInt = val nonConstString = \"\" foo ( nonConstInt ) foo ( nonConstString ) assertEquals ( \"\" , sb . toString ( ) ) return \"\" }","docstring":""} {"signature":"fun < T > foo ( vararg ts : T ) : T ?","body":"= null","docstring":""} {"signature":"fun box ( ) : String","body":"{ val v = foo ( Pair ( ) ) return if ( v == null ) \"\" else \"\" }","docstring":""} {"signature":"override fun < R , D > accept ( visitor : FirVisitor < R , D > , data : D ) : R","body":"= visitor . visitConstructedClassTypeParameterRef ( this , data )","docstring":""} {"signature":"@ Suppress ( \"\" ) override fun < E : FirElement , D > transform ( transformer : FirTransformer < D > , data : D ) : E","body":"= transformer . transformConstructedClassTypeParameterRef ( this , data ) as E","docstring":""} {"signature":"fun box ( ) : String","body":"{ val mutableListOf = mutableListOf ( \"\" , \"\" , \"\" ) return test ( ( mutableListOf as java . util . Collection < String > ) . stream ( ) ) as String }","docstring":""} {"signature":"fun test ( a : Stream < String > )","body":"= a . collect ( Collectors . toList ( ) ) . first ( )","docstring":""} {"signature":"@ GCUnsafeCall ( \"\" ) public external operator fun get ( index : Int ) : Byte","body":"@ GCUnsafeCall ( \"\" ) public external operator fun get ( index : Int ) : Byte","docstring":""} {"signature":"@ GCUnsafeCall ( \"\" ) private external fun getArrayLength ( ) : Int","body":"@ GCUnsafeCall ( \"\" ) private external fun getArrayLength ( ) : Int","docstring":""} {"signature":"public operator fun iterator ( ) : ByteIterator","body":"{ return ImmutableBlobIteratorImpl ( this ) }","docstring":"/** Creates an iterator over the elements of the array. */"} {"signature":"public override fun nextByte ( ) : Byte","body":"{ if ( ! hasNext ( ) ) throw NoSuchElementException ( \"\" ) return blob [ index ++ ] }","docstring":""} {"signature":"public override operator fun hasNext ( ) : Boolean","body":"{ return index < blob . size }","docstring":""} {"signature":"@ Suppress ( \"\" ) @ Deprecated ( \"\" ) @ DeprecatedSinceKotlin ( warningSince = \"\" ) @ GCUnsafeCall ( \"\" ) public external fun ImmutableBlob . toByteArray ( startIndex : Int = , endIndex : Int = size ) : ByteArray","body":"@ Suppress ( \"\" ) @ Deprecated ( \"\" ) @ DeprecatedSinceKotlin ( warningSince = \"\" ) @ GCUnsafeCall ( \"\" ) public external fun ImmutableBlob . toByteArray ( startIndex : Int = , endIndex : Int = size ) : ByteArray","docstring":"/**\n * Copies the data from this blob into a new [ByteArray].\n *\n * @param startIndex the beginning (inclusive) of the subrange to copy, 0 by default.\n * @param endIndex the end (exclusive) of the subrange to copy, size of this blob by default.\n */"} {"signature":"@ Suppress ( \"\" ) @ Deprecated ( \"\" ) @ DeprecatedSinceKotlin ( warningSince = \"\" ) @ ExperimentalUnsignedTypes @ GCUnsafeCall ( \"\" ) public external fun ImmutableBlob . toUByteArray ( startIndex : Int = , endIndex : Int = size ) : UByteArray","body":"@ Suppress ( \"\" ) @ Deprecated ( \"\" ) @ DeprecatedSinceKotlin ( warningSince = \"\" ) @ ExperimentalUnsignedTypes @ GCUnsafeCall ( \"\" ) public external fun ImmutableBlob . toUByteArray ( startIndex : Int = , endIndex : Int = size ) : UByteArray","docstring":"/**\n * Copies the data from this blob into a new [UByteArray].\n *\n * @param startIndex the beginning (inclusive) of the subrange to copy, 0 by default.\n * @param endIndex the end (exclusive) of the subrange to copy, size of this blob by default.\n */"} {"signature":"@ Suppress ( \"\" ) @ Deprecated ( \"\" ) @ DeprecatedSinceKotlin ( warningSince = \"\" ) public fun ImmutableBlob . asCPointer ( offset : Int = ) : CPointer < ByteVar >","body":"= interpretCPointer < ByteVar > ( asCPointerImpl ( offset ) ) ! !","docstring":"/**\n * Returns stable C pointer to data at certain [offset], useful as a way to pass resource\n * to C APIs.\n *\n * `ImmutableBlob` is deprecated since Kotlin 1.9. It is recommended to use `ByteArray` instead.\n * To get a stable C pointer to `ByteArray` data the array needs to be pinned first.\n * ```\n * byteArray.usePinned {\n * val cpointer = it.addressOf(offset)\n * // use the stable C pointer\n * }\n * ```\n * @see kotlinx.cinterop.CPointer\n */"} {"signature":"@ Suppress ( \"\" ) @ Deprecated ( \"\" ) @ DeprecatedSinceKotlin ( warningSince = \"\" ) public fun ImmutableBlob . asUCPointer ( offset : Int = ) : CPointer < UByteVar >","body":"= interpretCPointer < UByteVar > ( asCPointerImpl ( offset ) ) ! !","docstring":"/**\n * Returns stable C pointer to data at certain [offset], useful as a way to pass resource\n * to C APIs.\n *\n * `ImmutableBlob` is deprecated since Kotlin 1.9. It is recommended to use `ByteArray` instead.\n * To get a stable C pointer to `ByteArray` data the array needs to be pinned first.\n * ```\n * byteArray.usePinned {\n * val cpointer = it.addressOf(offset)\n * // use the stable C pointer\n * }\n * ```\n * @see kotlinx.cinterop.CPointer\n */"} {"signature":"@ Suppress ( \"\" ) @ GCUnsafeCall ( \"\" ) private external fun ImmutableBlob . asCPointerImpl ( offset : Int ) : kotlin . native . internal . NativePtr","body":"@ Suppress ( \"\" ) @ GCUnsafeCall ( \"\" ) private external fun ImmutableBlob . asCPointerImpl ( offset : Int ) : kotlin . native . internal . NativePtr","docstring":""} {"signature":"@ Suppress ( \"\" ) @ Deprecated ( \"\" , ReplaceWith ( \"\" ) ) @ DeprecatedSinceKotlin ( warningSince = \"\" ) @ TypedIntrinsic ( IntrinsicType . IMMUTABLE_BLOB ) public external fun immutableBlobOf ( vararg elements : Short ) : ImmutableBlob","body":"@ Suppress ( \"\" ) @ Deprecated ( \"\" , ReplaceWith ( \"\" ) ) @ DeprecatedSinceKotlin ( warningSince = \"\" ) @ TypedIntrinsic ( IntrinsicType . IMMUTABLE_BLOB ) public external fun immutableBlobOf ( vararg elements : Short ) : ImmutableBlob","docstring":"/**\n * Creates [ImmutableBlob] out of compile-time constant data.\n *\n * This method accepts values of [Short] type in range `0x00..0xff`, other values are prohibited.\n *\n * One element still represent one byte in the output data.\n * This is the only way to create ImmutableBlob for now.\n */"} {"signature":"open fun f ( ) : Int","body":"= ","docstring":""} {"signature":"fun useA ( a : A ) : Int","body":"= a . f ( )","docstring":""} {"signature":"fun useList ( xs : List < Int > )","body":"{ }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val result = useA ( A ( ) ) if ( result != ) return \"\" return \"\" }","docstring":""} {"signature":"@ Test fun testTrivial ( )","body":"{ verifyTokens ( \"\" , Token . COMMA ) }","docstring":""} {"signature":"@ Test fun testWhitespace ( )","body":"{ verifyTokens ( \"\" , Token . COMMA ) }","docstring":""} {"signature":"@ Test fun testAllSingleChars ( )","body":"{ verifyTokens ( \"\" , Token . LBRACKET , Token . RBRACKET , Token . LBRACE , Token . RBRACE , Token . COLON , Token . COMMA ) }","docstring":""} {"signature":"@ Test fun testBoolean ( )","body":"{ verifyTokens ( \"\" , Token . TRUE ) verifyTokens ( \"\" , Token . FALSE ) }","docstring":""} {"signature":"@ Test fun testNull ( )","body":"{ verifyTokens ( \"\" , Token . NullValue ) }","docstring":""} {"signature":"@ Test fun testEscapeSequences ( )","body":"{ verifyTokens ( \"\"\"\"\"\" , Token . StringValue ( \"\" ) ) verifyTokens ( \"\"\"\"\"\" , Token . StringValue ( \"\" ) ) verifyTokens ( \"\"\"\"\"\" , Token . StringValue ( \"\" ) ) verifyTokens ( \"\"\"\"\"\" , Token . StringValue ( \"\" ) ) verifyTokens ( \"\"\"\"\"\" , Token . StringValue ( \"\" ) ) }","docstring":""} {"signature":"@ Test fun testNullMalformed ( )","body":"{ verifyMalformed ( \"\" ) }","docstring":""} {"signature":"@ Test fun testString ( )","body":"{ verifyTokens ( \"\" , Token . StringValue ( \"\" ) ) }","docstring":""} {"signature":"@ Test fun testInt ( )","body":"{ verifyTokens ( \"\" , Token . LongValue ( ) ) }","docstring":""} {"signature":"@ Test fun testNegativeInt ( )","body":"{ verifyTokens ( \"\" , Token . LongValue ( - ) ) }","docstring":""} {"signature":"@ Test fun testDouble ( )","body":"{ verifyTokens ( \"\" , Token . DoubleValue ( ) ) }","docstring":""} {"signature":"@ Test fun testNegativeDouble ( )","body":"{ verifyTokens ( \"\" , Token . DoubleValue ( - ) ) }","docstring":""} {"signature":"private fun verifyTokens ( text : String , vararg tokens : Token )","body":"{ val lexer = Lexer ( StringReader ( text ) ) for ( expectedToken in tokens ) { assertEquals ( expectedToken , lexer . nextToken ( ) ) } assertNull ( lexer . nextToken ( ) , \"\" ) }","docstring":""} {"signature":"private fun verifyMalformed ( text : String )","body":"{ assertFailsWith < MalformedJSONException > { Lexer ( StringReader ( text ) ) . nextToken ( ) } }","docstring":""} {"signature":"override fun dispose ( )","body":"{ val originalBindingContext = bindingContext as? CleanableBindingContext ? : error ( \"\" ) originalBindingContext . clear ( ) }","docstring":""} {"signature":"fun cond ( )","body":"= true","docstring":""} {"signature":"fun test ( mh : MethodHandle ? , mt : MethodType ? )","body":"{ val constable = if ( cond ( ) ) mh else mt }","docstring":""} {"signature":"fun box ( ) : String","body":"{ test ( null , null ) return \"\" }","docstring":""} {"signature":"fun foo ( )","body":"fun foo ( )","docstring":""} {"signature":"fun bar ( )","body":"fun bar ( )","docstring":""} {"signature":"override fun bar ( )","body":"{ throw UnsupportedOperationException ( ) }","docstring":""} {"signature":"private fun checkSerializationException ( action : ( ) -> Unit , assertions : SerializationException . ( String ) -> Unit )","body":"{ val e = assertFailsWith ( SerializationException :: class , action ) assertNotNull ( e . message ) e . assertions ( e . message ! ! ) }","docstring":""} {"signature":"@ Test fun testNotRegisteredMessage ( )","body":"= parametrizedTest { mode -> val input = \"\"\"\"\"\" checkSerializationException ( { default . decodeFromString < Holder > ( input , mode ) } , { message -> if ( mode == JsonTestingMode . STREAMING ) assertContains ( message , \"\" ) else assertContains ( message , \"\" ) } ) }","docstring":""} {"signature":"@ Test fun testDiscriminatorMissingNoDefaultMessage ( )","body":"= parametrizedTest { mode -> val input = \"\"\"\"\"\" checkSerializationException ( { default . decodeFromString < Holder > ( input , mode ) } , { message -> assertContains ( message , \"\" ) } ) }","docstring":""} {"signature":"@ Test fun testClassDiscriminatorIsNull ( )","body":"= parametrizedTest { mode -> val input = \"\"\"\"\"\" checkSerializationException ( { default . decodeFromString < Holder > ( input , mode ) } , { message -> assertContains ( message , \"\" ) } ) }","docstring":""} {"signature":"override fun iterator ( )","body":"= object : Iterator < Int > { var i = override fun next ( ) = i ++ override fun hasNext ( ) = i < n }","docstring":""} {"signature":"fun < T > Iterable < T > . stringify ( ) : String","body":"{ var s = \"\" for ( i in this ) s += i return s }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val a = FromAny ( ) val it = FromIterable ( ) val s = it . stringify ( ) if ( s != \"\" ) return \"\" var ao = object : Any ( ) { } var ito = object : Iterable < Int > { override public fun iterator ( ) = object : Iterator < Int > { var i = override fun next ( ) : Int { var r = i i += return r } override fun hasNext ( ) = i < } } val so = ito . stringify ( ) if ( so != \"\" ) return \"\" return \"\" }","docstring":""} {"signature":"fun < StringifyTP > stringify ( collection : StringifyTP , size : ( StringifyTP ) -> Int , get : StringifyTP . ( Int ) -> Any ? ) : String","body":"{ var res = \"\" for ( i in until size ( collection ) ) { if ( i > ) res += \"\" res += collection . get ( i ) . toString ( ) } res += \"\" return res }","docstring":""} {"signature":"fun < StringifyArrayTP : I > stringifyArray ( array : Array < StringifyArrayTP > )","body":"= stringify ( array , { it . size } , Array < * > :: get )","docstring":""} {"signature":"fun stringifyIntArray ( array : Array < Int > )","body":"= stringify ( array , { it . size } , Array < Int > :: get )","docstring":""} {"signature":"override fun toString ( )","body":"= v . toString ( )","docstring":""} {"signature":"@ Suppress ( \"\" ) fun < BazTP0 , BazTP1 > foo ( p1 : BazTP0 , p2 : BazTP1 )","body":"{ }","docstring":""} {"signature":"fun < QuxTP > bar ( )","body":"{ val ref : KFunction2 < QuxTP , QuxTP , Unit > = :: foo println ( ref ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ println ( stringifyArray ( arrayOf ( N ( ) , N ( ) ) ) ) println ( stringifyIntArray ( arrayOf ( , , ) ) ) bar < Int > ( ) bar < String > ( ) val ref : KFunction2 < Int , Int , Unit > = :: foo println ( ref ) return \"\" }","docstring":""} {"signature":"fun foo ( p : Int )","body":"{ val i : Int = foo ( i ) }","docstring":""} {"signature":"override fun Timer . generate ( )","body":"{ report ( \"\" ) processSubmodules ( ) report ( \"\" ) finishProcessing ( ) }","docstring":""} {"signature":"fun processSubmodules ( )","body":"= templatingPlugin . querySingle { submoduleTemplateProcessor } . process ( context . configuration . modules )","docstring":""} {"signature":"fun finishProcessing ( )","body":"= templatingPlugin . query { templateProcessingStrategy } . forEach { it . finish ( context . configuration . outputDir ) }","docstring":""} {"signature":"fun ok ( )","body":"= \"\"","docstring":""} {"signature":"fun box ( )","body":"= A ( ) . foo","docstring":""} {"signature":"@ Test fun `test - regular class` ( )","body":"{ val file = inlineSourceCodeAnalysis . createKtFile ( \"\"\"\"\"\" . trimIndent ( ) ) analyze ( file ) { val fooSymbol = file . getClassOrFail ( \"\" ) assertEquals ( listOf ( \"\" , \"\" ) , fooSymbol . getCallableSymbolsForObjCMemberTranslation ( ) . map { it as KtFunctionSymbol } . map { it . name . asString ( ) } ) } }","docstring":""} {"signature":"@ Test fun `test - data class` ( )","body":"{ val file = inlineSourceCodeAnalysis . createKtFile ( \"\"\"\"\"\" . trimIndent ( ) ) analyze ( file ) { val foo = file . getClassOrFail ( \"\" ) assertEquals ( listOf ( \"\" , \"\" , \"\" , \"\" , \"\" , \"\" ) , foo . getCallableSymbolsForObjCMemberTranslation ( ) . sortedWith ( StableCallableOrder ) . map { it as KtNamedSymbol } . map { it . name . asString ( ) } ) } }","docstring":""} {"signature":"@ Test fun `test - enum class` ( )","body":"{ val file = inlineSourceCodeAnalysis . createKtFile ( \"\"\"\"\"\" . trimIndent ( ) ) analyze ( file ) { val foo = file . getClassOrFail ( \"\" ) assertEquals ( emptyList ( ) , foo . getCallableSymbolsForObjCMemberTranslation ( ) . sortedWith ( StableCallableOrder ) . map { it as KtNamedSymbol } . map { it . name . asString ( ) } ) } }","docstring":""} {"signature":"fun `test simple type alias` ( )","body":"{ val aTree = createCirTreeFromSourceCode ( \"\" ) val bTree = createCirTreeFromSourceCode ( \"\" ) val merged = mergeCirTree ( \"\" to aTree , \"\" to bTree ) val typeAlias = merged . assertSingleModule ( ) . assertSinglePackage ( ) . assertSingleTypeAlias ( ) typeAlias . assertNoMissingTargetDeclaration ( ) }","docstring":""} {"signature":"fun `test missing target declarations` ( )","body":"{ val aTree = createCirTreeFromSourceCode ( \"\" ) val bTree = createCirTreeFromSourceCode ( \"\" ) val merged = mergeCirTree ( \"\" to aTree , \"\" to bTree ) val pkg = merged . assertSingleModule ( ) . assertSinglePackage ( ) assertEquals ( , pkg . typeAliases . size , \"\" ) val a = pkg . typeAliases [ CirName . create ( \"\" ) ] ? : kotlin . test . fail ( \"\" ) val b = pkg . typeAliases [ CirName . create ( \"\" ) ] ? : kotlin . test . fail ( \"\" ) kotlin . test . assertNotNull ( a . targetDeclarations [ ] , \"\" ) kotlin . test . assertNotNull ( b . targetDeclarations [ ] , \"\" ) kotlin . test . assertNull ( a . targetDeclarations [ ] , \"\" ) kotlin . test . assertNull ( b . targetDeclarations [ ] , \"\" ) }","docstring":""} {"signature":"public fun ColumnSet < * > . colGroups ( filter : Predicate < ColumnGroup < * > > = { true } ) : TransformableColumnSet < AnyRow >","body":"= columnGroupsInternal ( filter )","docstring":"/**\n * @include [CommonColGroupsDocs]\n * @set [CommonColGroupsDocs.ExampleArg]\n *\n * `df.`[select][DataFrame.select]` { `[cols][ColumnsSelectionDsl.cols]` { it.`[name][ColumnReference.name]`.`[startsWith][String.startsWith]`(\"my\") }.`[colGroups][ColumnSet.colGroups]`() }`\n *\n * `// NOTE: This can be shortened to just:`\n *\n * `df.`[select][DataFrame.select]` { `[colGroups][ColumnsSelectionDsl.colGroups]` { it.`[name][ColumnReference.name]`.`[startsWith][String.startsWith]`(\"my\") } }`\n */"} {"signature":"public fun ColumnsSelectionDsl < * > . colGroups ( filter : Predicate < ColumnGroup < * > > = { true } ) : TransformableColumnSet < AnyRow >","body":"= asSingleColumn ( ) . columnGroupsInternal ( filter )","docstring":"/**\n * @include [CommonColGroupsDocs]\n * @set [CommonColGroupsDocs.ExampleArg]\n *\n * `df.`[select][DataFrame.select]` { `[colGroups][ColumnsSelectionDsl.colGroups]`() }`\n *\n * `df.`[select][DataFrame.select]` { `[colGroups][ColumnsSelectionDsl.colGroups]` { it.`[name][ColumnReference.name]`.`[startsWith][String.startsWith]`(\"my\") } }`\n */"} {"signature":"public fun SingleColumn < DataRow < * > > . colGroups ( filter : Predicate < ColumnGroup < * > > = { true } ) : TransformableColumnSet < AnyRow >","body":"= this . ensureIsColumnGroup ( ) . columnGroupsInternal ( filter )","docstring":"/**\n * @include [CommonColGroupsDocs]\n * @set [CommonColGroupsDocs.ExampleArg]\n *\n * `df.`[select][DataFrame.select]` { myColGroup.`[colGroups][SingleColumn.colGroups]`() }`\n *\n * `df.`[select][DataFrame.select]` { myColGroup.`[colGroups][SingleColumn.colGroups]` { it.`[name][ColumnReference.name]`.`[startsWith][String.startsWith]`(\"my\") } }`\n */"} {"signature":"public fun String . colGroups ( filter : Predicate < ColumnGroup < * > > = { true } ) : TransformableColumnSet < AnyRow >","body":"= columnGroup ( this ) . colGroups ( filter )","docstring":"/**\n * @include [CommonColGroupsDocs]\n * @set [CommonColGroupsDocs.ExampleArg]\n *\n * `df.`[select][DataFrame.select]` { \"myColGroup\".`[colGroups][String.colGroups]` { it.`[name][ColumnReference.name]`.`[startsWith][String.startsWith]`(\"my\") } }`\n *\n * `df.`[select][DataFrame.select]` { \"myColGroup\".`[colGroups][String.colGroups]`() }`\n */"} {"signature":"public fun KProperty < * > . colGroups ( filter : Predicate < ColumnGroup < * > > = { true } ) : TransformableColumnSet < AnyRow >","body":"= columnGroup ( this ) . colGroups ( filter )","docstring":"/**\n * @include [CommonColGroupsDocs]\n * @set [CommonColGroupsDocs.ExampleArg]\n *\n * `df.`[select][DataFrame.select]` { `[colGroup][ColumnsSelectionDsl.colGroup]`(Type::myColGroup).`[colGroups][SingleColumn.colGroups]` { it.`[name][ColumnReference.name]`.`[startsWith][String.startsWith]`(\"my\") } }`\n *\n * `df.`[select][DataFrame.select]` { DataSchemaType::myColGroup.`[colGroups][KProperty.colGroups]`() }`\n */"} {"signature":"public fun ColumnPath . colGroups ( filter : Predicate < ColumnGroup < * > > = { true } ) : TransformableColumnSet < AnyRow >","body":"= columnGroup ( this ) . colGroups ( filter )","docstring":"/**\n * @include [CommonColGroupsDocs]\n * @set [CommonColGroupsDocs.ExampleArg]\n *\n * `df.`[select][DataFrame.select]` { \"pathTo\"[\"myGroupCol\"].`[colGroups][ColumnPath.colGroups]`() }`\n */"} {"signature":"@ Deprecated ( COLS_SELECT_DSL_GROUP , ReplaceWith ( COLS_SELECT_DSL_GROUP_REPLACE ) , DeprecationLevel . ERROR ) public fun ColumnSet < * > . groups ( filter : Predicate < ColumnGroup < * > > = { true } ) : TransformableColumnSet < AnyRow >","body":"= columnGroupsInternal ( filter )","docstring":""} {"signature":"@ Deprecated ( COLS_SELECT_DSL_GROUP , ReplaceWith ( COLS_SELECT_DSL_GROUP_REPLACE ) , DeprecationLevel . ERROR ) public fun SingleColumn < DataRow < * > > . groups ( filter : Predicate < ColumnGroup < * > > = { true } ) : TransformableColumnSet < AnyRow >","body":"= this . ensureIsColumnGroup ( ) . columnGroupsInternal ( filter )","docstring":""} {"signature":"@ Deprecated ( COLS_SELECT_DSL_GROUP , ReplaceWith ( COLS_SELECT_DSL_GROUP_REPLACE ) , DeprecationLevel . ERROR ) public fun ColumnsSelectionDsl < * > . groups ( filter : Predicate < ColumnGroup < * > > = { true } ) : TransformableColumnSet < AnyRow >","body":"= this . asSingleColumn ( ) . columnGroupsInternal ( filter )","docstring":""} {"signature":"@ Deprecated ( COLS_SELECT_DSL_GROUP , ReplaceWith ( COLS_SELECT_DSL_GROUP_REPLACE ) , DeprecationLevel . ERROR ) public fun String . groups ( filter : Predicate < ColumnGroup < * > > = { true } ) : TransformableColumnSet < AnyRow >","body":"= columnGroup ( this ) . colGroups ( filter )","docstring":""} {"signature":"@ Deprecated ( COLS_SELECT_DSL_GROUP , ReplaceWith ( COLS_SELECT_DSL_GROUP_REPLACE ) , DeprecationLevel . ERROR ) public fun KProperty < * > . groups ( filter : Predicate < ColumnGroup < * > > = { true } ) : TransformableColumnSet < AnyRow >","body":"= columnGroup ( this ) . colGroups ( filter )","docstring":""} {"signature":"@ Deprecated ( COLS_SELECT_DSL_GROUP , ReplaceWith ( COLS_SELECT_DSL_GROUP_REPLACE ) , DeprecationLevel . ERROR ) public fun ColumnPath . groups ( filter : Predicate < ColumnGroup < * > > = { true } ) : TransformableColumnSet < AnyRow >","body":"= columnGroup ( this ) . colGroups ( filter )","docstring":""} {"signature":"@ Suppress ( \"\" ) internal fun ColumnsResolver < * > . columnGroupsInternal ( filter : ( ColumnGroup < * > ) -> Boolean ) : TransformableColumnSet < AnyRow >","body":"= colsInternal { it . isColumnGroup ( ) && filter ( it . asColumnGroup ( ) ) } as TransformableColumnSet < AnyRow >","docstring":"/**\n * Returns a TransformableColumnSet containing the column groups that satisfy the given filter.\n *\n * @param filter The filter function to apply on each column group. Must accept a ColumnGroup object and return a Boolean.\n * @return A [TransformableColumnSet] containing the column groups that satisfy the filter.\n */"} {"signature":"fun test ( )","body":"{ null ? . run { return } }","docstring":""} {"signature":"fun box ( ) : String","body":"{ test ( ) return \"\" }","docstring":""} {"signature":"fun useFieldMissingOptimization ( ) : Boolean","body":"{ return throwMissedFieldExceptionFunc != null && throwMissedFieldExceptionArrayFunc != null }","docstring":""} {"signature":"fun IrDeclaration . excludeFromJsExport ( )","body":"{ if ( ! compilerContext . platform . isJs ( ) ) { return } val jsExportIgnore = compilerContext . jsExportIgnoreClass ? : return val jsExportIgnoreCtor = jsExportIgnore . primaryConstructor ? : return annotations += IrConstructorCallImpl ( UNDEFINED_OFFSET , UNDEFINED_OFFSET , jsExportIgnore . defaultType , jsExportIgnoreCtor . symbol , jsExportIgnore . typeParameters . size , jsExportIgnoreCtor . typeParameters . size , jsExportIgnoreCtor . valueParameters . size , ) }","docstring":""} {"signature":"private fun getClassListFromFileAnnotation ( annotationFqName : FqName ) : List < IrClassSymbol >","body":"{ val annotation = currentClass . fileParent . annotations . findAnnotation ( annotationFqName ) ? : return emptyList ( ) val vararg = annotation . getValueArgument ( ) as? IrVararg ? : return emptyList ( ) return vararg . elements . mapNotNull { ( it as? IrClassReference ) ? . symbol as? IrClassSymbol } }","docstring":""} {"signature":"fun IrBlockBodyBuilder . generateGoldenMaskCheck ( seenVars : List < IrValueDeclaration > , properties : IrSerializableProperties , serialDescriptor : IrExpression )","body":"{ val fieldsMissedTest : IrExpression val throwErrorExpr : IrExpression val maskSlotCount = seenVars . size if ( maskSlotCount == ) { val goldenMask = properties . goldenMask throwErrorExpr = irInvoke ( null , throwMissedFieldExceptionFunc ! ! , irGet ( seenVars [ ] ) , irInt ( goldenMask ) , serialDescriptor , typeHint = compilerContext . irBuiltIns . unitType ) fieldsMissedTest = irNotEquals ( irInt ( goldenMask ) , irBinOp ( OperatorNameConventions . AND , irInt ( goldenMask ) , irGet ( seenVars [ ] ) ) ) } else { val goldenMaskList = properties . goldenMaskList var compositeExpression : IrExpression ? = null for ( i in goldenMaskList . indices ) { val singleCheckExpr = irNotEquals ( irInt ( goldenMaskList [ i ] ) , irBinOp ( OperatorNameConventions . AND , irInt ( goldenMaskList [ i ] ) , irGet ( seenVars [ i ] ) ) ) compositeExpression = if ( compositeExpression == null ) { singleCheckExpr } else { irBinOp ( OperatorNameConventions . OR , compositeExpression , singleCheckExpr ) } } fieldsMissedTest = compositeExpression ! ! throwErrorExpr = irBlock { + irInvoke ( null , throwMissedFieldExceptionArrayFunc ! ! , createIntArrayOfExpression ( goldenMaskList . indices . map { irGet ( seenVars [ it ] ) } ) , createIntArrayOfExpression ( goldenMaskList . map { irInt ( it ) } ) , serialDescriptor , typeHint = compilerContext . irBuiltIns . unitType ) } } + irIfThen ( compilerContext . irBuiltIns . unitType , fieldsMissedTest , throwErrorExpr ) }","docstring":""} {"signature":"fun IrBlockBodyBuilder . serializeAllProperties ( serializableProperties : List < IrSerializableProperty > , objectToSerialize : IrValueDeclaration , localOutput : IrValueDeclaration , localSerialDesc : IrValueDeclaration , kOutputClass : IrClassSymbol , ignoreIndexTo : Int , initializerAdapter : ( IrExpressionBody ) -> IrExpression , cachedChildSerializerByIndex : ( Int ) -> IrExpression ? , genericGetter : ( ( Int , IrType ) -> IrExpression ) ? )","body":"{ fun IrSerializableProperty . irGet ( ) : IrExpression { val ownerType = objectToSerialize . symbol . owner . type return getProperty ( irGet ( type = ownerType , variable = objectToSerialize . symbol ) , ir ) } for ( ( index , property ) in serializableProperties . withIndex ( ) ) { if ( index < ignoreIndexTo ) continue val elementCall = formEncodeDecodePropertyCall ( irGet ( localOutput ) , property , { innerSerial , sti -> val f = kOutputClass . functionByName ( \"\" ) f to listOf ( irGet ( localSerialDesc ) , irInt ( index ) , innerSerial , property . irGet ( ) ) } , { val f = kOutputClass . functionByName ( \"\" ) val args : MutableList < IrExpression > = mutableListOf ( irGet ( localSerialDesc ) , irInt ( index ) ) if ( it . elementMethodPrefix != \"\" ) args . add ( property . irGet ( ) ) f to args } , cachedChildSerializerByIndex ( index ) , genericGetter ) val encodeDefaults = property . ir . getEncodeDefaultAnnotationValue ( ) val field = property . ir . backingField val initializer = field ? . initializer if ( ! property . optional || encodeDefaults == true || field == null || initializer == null ) { + elementCall } else { val partB = irNotEquals ( property . irGet ( ) , initializerAdapter ( initializer ) ) val condition = if ( encodeDefaults == false ) { partB } else { val shouldEncodeFunc = kOutputClass . functionByName ( CallingConventions . shouldEncodeDefault ) val partA = irInvoke ( irGet ( localOutput ) , shouldEncodeFunc , irGet ( localSerialDesc ) , irInt ( index ) ) irIfThenElse ( compilerContext . irBuiltIns . booleanType , partA , irTrue ( ) , partB ) } + irIfThen ( condition , elementCall ) } } }","docstring":""} {"signature":"fun IrBlockBodyBuilder . formEncodeDecodePropertyCall ( encoder : IrExpression , property : IrSerializableProperty , whenHaveSerializer : ( serializer : IrExpression , sti : IrSerialTypeInfo ) -> FunctionWithArgs , whenDoNot : ( sti : IrSerialTypeInfo ) -> FunctionWithArgs , cachedSerializer : IrExpression ? , genericGetter : ( ( Int , IrType ) -> IrExpression ) ? = null , returnTypeHint : IrType ? = null ) : IrExpression","body":"{ val sti = getIrSerialTypeInfo ( property , compilerContext ) val innerSerial = cachedSerializer ? : serializerInstance ( sti . serializer , compilerContext , property . type , property . genericIndex , property . ir . parentClassOrNull , genericGetter ) val ( functionToCall , args : List < IrExpression > ) = if ( innerSerial != null ) whenHaveSerializer ( innerSerial , sti ) else whenDoNot ( sti ) val typeArgs = if ( functionToCall . owner . typeParameters . isNotEmpty ( ) ) listOf ( property . type ) else listOf ( ) return irInvoke ( encoder , functionToCall , typeArguments = typeArgs , valueArguments = args , returnTypeHint = returnTypeHint ) }","docstring":""} {"signature":"private fun IrBuilderWithScope . callSerializerFromCompanion ( thisIrType : IrSimpleType , typeArgs : List < IrType > , args : List < IrExpression > , expectedSerializer : ClassId ? ) : IrExpression ?","body":"{ val baseClass = thisIrType . getClass ( ) ? : return null val companionClass = baseClass . companionObject ( ) ? : return null val serializerProviderFunction = companionClass . declarations . singleOrNull { it is IrFunction && it . name == SerialEntityNames . SERIALIZER_PROVIDER_NAME && it . valueParameters . size == baseClass . typeParameters . size } ? : return null val replaceArgsWithUnitSerializer = expectedSerializer == polymorphicSerializerId || expectedSerializer == sealedSerializerId val adjustedArgs : List < IrExpression > = if ( replaceArgsWithUnitSerializer ) { val serializer = findStandardKotlinTypeSerializer ( compilerContext , context . irBuiltIns . unitType ) ! ! List ( baseClass . typeParameters . size ) { irGetObject ( serializer ) } } else { args } val adjustedTypeArgs : List < IrType > = if ( replaceArgsWithUnitSerializer ) thisIrType . argumentTypesOrUpperBounds ( ) else typeArgs with ( serializerProviderFunction as IrFunction ) { return irInvoke ( irGetObject ( companionClass ) , symbol , adjustedTypeArgs . takeIf { it . size == typeParameters . size } . orEmpty ( ) , adjustedArgs . takeIf { it . size == valueParameters . size } . orEmpty ( ) ) } }","docstring":""} {"signature":"private fun IrBuilderWithScope . callSerializerFromObject ( thisIrType : IrSimpleType , args : List < IrExpression > , ) : IrExpression ?","body":"{ val baseClass = thisIrType . getClass ( ) ? : return null val serializerProviderFunction = baseClass . declarations . singleOrNull { it is IrFunction && it . name == SerialEntityNames . SERIALIZER_PROVIDER_NAME && it . valueParameters . size == baseClass . typeParameters . size } ? : return null with ( serializerProviderFunction as IrFunction ) { return irInvoke ( irGetObject ( baseClass ) , symbol , emptyList ( ) , args . takeIf { it . size == valueParameters . size } . orEmpty ( ) ) } }","docstring":""} {"signature":"fun IrBuilderWithScope . serializerTower ( generator : SerializerIrGenerator , dispatchReceiverParameter : IrValueParameter , property : IrSerializableProperty , cachedSerializer : IrExpression ? ) : IrExpression ?","body":"{ val nullableSerClass = compilerContext . referenceProperties ( SerialEntityNames . wrapIntoNullableCallableId ) . single ( ) val serializerExpression = if ( cachedSerializer != null ) { cachedSerializer } else { val serializerClassSymbol = property . serializableWith ( compilerContext ) ? : if ( ! property . type . isTypeParameter ( ) ) generator . findTypeSerializerOrContext ( compilerContext , property . type ) else null serializerInstance ( serializerClassSymbol , compilerContext , property . type , genericIndex = property . genericIndex , property . ir . parentClassOrNull , ) { it , _ -> val ir = generator . localSerializersFieldsDescriptors [ it ] irGetField ( irGet ( dispatchReceiverParameter ) , ir . backingField ! ! ) } } return serializerExpression ? . let { expr -> wrapWithNullableSerializerIfNeeded ( property . type , expr , nullableSerClass ) } }","docstring":""} {"signature":"private fun IrBuilderWithScope . wrapWithNullableSerializerIfNeeded ( type : IrType , expression : IrExpression , nullableProp : IrPropertySymbol ) : IrExpression","body":"= if ( type . isMarkedNullable ( ) ) { val resultType = type . makeNotNull ( ) val typeArguments = listOf ( resultType ) val callee = nullableProp . owner . getter ! ! val returnType = callee . returnType . substitute ( callee . typeParameters , typeArguments ) irInvoke ( callee = callee . symbol , typeArguments = typeArguments , valueArguments = emptyList ( ) , returnTypeHint = returnType ) . apply { extensionReceiver = expression } } else { expression }","docstring":""} {"signature":"fun wrapIrTypeIntoKSerializerIrType ( type : IrType , variance : Variance = Variance . INVARIANT ) : IrType","body":"{ val kSerClass = compilerContext . referenceClass ( ClassId ( SerializationPackages . packageFqName , SerialEntityNames . KSERIALIZER_NAME ) ) ? : error ( \"\" ) return IrSimpleTypeImpl ( kSerClass , hasQuestionMark = false , arguments = listOf ( makeTypeProjection ( type , variance ) ) , annotations = emptyList ( ) ) }","docstring":""} {"signature":"internal fun IrClass . addCachedChildSerializersProperty ( cacheableSerializers : List < IrExpression ? > ) : IrProperty ?","body":"{ cacheableSerializers . firstOrNull { it != null } ? : return null val kSerializerClass = compilerContext . kSerializerClass ? : error ( \"\" ) val kSerializerType = kSerializerClass . typeWith ( compilerContext . irBuiltIns . anyType ) val arrayType = compilerContext . irBuiltIns . arrayClass . typeWith ( kSerializerType ) val property = addValPropertyWithJvmFieldInitializer ( arrayType , SerialEntityNames . CACHED_CHILD_SERIALIZERS_PROPERTY_NAME ) { createArrayOfExpression ( kSerializerType , cacheableSerializers . map { it ? : irNull ( ) } ) } if ( declarations . removeIf { declaration -> declaration === property } ) { declarations . add ( , property ) } return property }","docstring":""} {"signature":"internal fun IrStatementsBuilder < * > . createCacheableChildSerializersFactory ( cacheProperty : IrProperty ? , cacheableSerializers : List < Boolean > , containingClassProducer : ( ) -> IrClass ) : ( Int ) -> IrExpression ?","body":"{ cacheProperty ? : return { null } val variable = irTemporary ( irInvoke ( irGetObject ( containingClassProducer ( ) ) , cacheProperty . getter ! ! . symbol ) , \"\" ) return { index : Int -> if ( cacheableSerializers [ index ] ) { irInvoke ( irGet ( variable ) , compilerContext . arrayValueGetter . symbol , irInt ( index ) ) } else { null } } }","docstring":"/**\n * Factory to getting cached serializers via variable.\n * Must be used only in one place because for each factory creates one variable.\n *\n * Class from [containingClassProducer] used only if [cacheProperty] is not null.\n */"} {"signature":"fun IrClass . createCachedChildSerializers ( serializableClass : IrClass , serializableProperties : List < IrSerializableProperty > ) : List < IrExpression ? >","body":"{ return DeclarationIrBuilder ( compilerContext , symbol ) . run { serializableProperties . map { cacheableChildSerializerInstance ( serializableClass , it ) } } }","docstring":""} {"signature":"private fun IrBuilderWithScope . cacheableChildSerializerInstance ( serializableClass : IrClass , property : IrSerializableProperty ) : IrExpression ?","body":"{ if ( serializableClass . symbol == property . type . classifier ) { return null } if ( property . type . checkTypeArgumentsHasSelf ( serializableClass . symbol ) ) { return null } val serializer = getIrSerialTypeInfo ( property , compilerContext ) . serializer ? : return null if ( serializer . owner . kind == ClassKind . OBJECT ) return null return serializerInstance ( serializer , compilerContext , property . type , null , serializableClass , null ) }","docstring":""} {"signature":"private fun IrSimpleType . checkTypeArgumentsHasSelf ( itselfClass : IrClassSymbol ) : Boolean","body":"{ arguments . forEach { typeArgument -> if ( typeArgument . typeOrNull ? . classifierOrNull == itselfClass ) return true if ( typeArgument is IrSimpleType ) { if ( typeArgument . checkTypeArgumentsHasSelf ( itselfClass ) ) return true } } return false }","docstring":""} {"signature":"fun IrBuilderWithScope . serializerInstance ( serializerClassOriginal : IrClassSymbol ? , pluginContext : SerializationPluginContext , kType : IrType , genericIndex : Int ? = null , rootSerializableClass : IrClass ? = null , genericGetter : ( ( Int , IrType ) -> IrExpression ) ? = null , ) : IrExpression ?","body":"{ val nullableSerClass = compilerContext . referenceProperties ( SerialEntityNames . wrapIntoNullableCallableId ) . single ( ) if ( serializerClassOriginal == null ) { if ( genericIndex == null ) return null return genericGetter ? . invoke ( genericIndex , kType ) } if ( serializerClassOriginal . owner . kind == ClassKind . OBJECT ) { val serializerClass = serializerClassOriginal . owner val samePackage = serializerClass . packageFqName == rootSerializableClass ? . packageFqName return if ( rootSerializableClass == null || serializerClass . visibility != DescriptorVisibilities . PRIVATE || samePackage ) { irGetObject ( serializerClassOriginal ) } else { val simpleType = ( kType as? IrSimpleType ) ? : error ( \"\" ) if ( simpleType . getClass ( ) ? . isObject == true ) { callSerializerFromObject ( simpleType , emptyList ( ) ) ? : error ( \"\" ) } else { callSerializerFromCompanion ( simpleType , emptyList ( ) , emptyList ( ) , serializerClassOriginal . owner . classId ) ? : error ( \"\" ) } } } fun instantiate ( serializer : IrClassSymbol ? , type : IrType ) : IrExpression ? { val expr = serializerInstance ( serializer , pluginContext , type , type . genericIndex , rootSerializableClass , genericGetter ) ? : return null return wrapWithNullableSerializerIfNeeded ( type , expr , nullableSerClass ) } var serializerClass = serializerClassOriginal var args : List < IrExpression > var typeArgs : List < IrType > @ Suppress ( \"\" ) val kType = ( kType as? IrSimpleType ) ? : error ( \"\" ) val typeArgumentsAsTypes = kType . argumentTypesOrUpperBounds ( ) var needToCopyAnnotations = false when ( serializerClassOriginal . owner . classId ) { polymorphicSerializerId -> { needToCopyAnnotations = true args = listOf ( classReference ( kType . classOrUpperBound ( ) ! ! ) ) typeArgs = listOf ( kType ) } contextSerializerId -> { if ( genericIndex == null && kType . genericIndex != null ) { return null } args = listOf ( classReference ( kType . classOrUpperBound ( ) ! ! ) ) typeArgs = listOf ( kType ) val hasNewCtxSerCtor = compilerContext . referenceConstructors ( contextSerializerId ) . any { it . owner . valueParameters . size == } if ( hasNewCtxSerCtor ) { args = args + mutableListOf < IrExpression > ( ) . apply { val fallbackDefaultSerializer = findTypeSerializer ( pluginContext , kType ) . takeIf { it ? . owner ? . classId != contextSerializerId } add ( instantiate ( fallbackDefaultSerializer , kType ) ? : irNull ( ) ) add ( createArrayOfExpression ( wrapIrTypeIntoKSerializerIrType ( kType , variance = Variance . OUT_VARIANCE ) , typeArgumentsAsTypes . map { val argSer = findTypeSerializerOrContext ( compilerContext , it ) instantiate ( argSer , it ) ? : return null } ) ) } } } objectSerializerId -> { needToCopyAnnotations = true args = listOf ( irString ( kType . serialName ( ) ) , irGetObject ( kType . classOrUpperBound ( ) ! ! ) ) typeArgs = listOf ( kType ) } sealedSerializerId -> { needToCopyAnnotations = true args = mutableListOf < IrExpression > ( ) . apply { add ( irString ( kType . serialName ( ) ) ) add ( classReference ( kType . classOrUpperBound ( ) ! ! ) ) val ( subclasses , subSerializers ) = allSealedSerializableSubclassesFor ( kType . classOrUpperBound ( ) ! ! . owner , pluginContext ) val projectedOutCurrentKClass = compilerContext . irBuiltIns . kClassClass . typeWithArguments ( listOf ( makeTypeProjection ( kType , Variance . OUT_VARIANCE ) ) ) add ( createArrayOfExpression ( projectedOutCurrentKClass , subclasses . map { classReference ( it . classOrUpperBound ( ) ! ! ) } ) ) add ( createArrayOfExpression ( wrapIrTypeIntoKSerializerIrType ( kType , variance = Variance . OUT_VARIANCE ) , subSerializers . mapIndexed { i , serializer -> val type = subclasses [ i ] val expr = serializerInstance ( serializer , pluginContext , type , type . genericIndex , rootSerializableClass ) { _ , genericType -> serializerInstance ( pluginContext . referenceClass ( polymorphicSerializerId ) , pluginContext , ( genericType . classifierOrNull as IrTypeParameterSymbol ) . owner . representativeUpperBound ) ! ! } ! ! wrapWithNullableSerializerIfNeeded ( type , expr , nullableSerClass ) } ) ) } typeArgs = listOf ( kType ) } enumSerializerId -> { serializerClass = pluginContext . referenceClass ( enumSerializerId ) val enumDescriptor = kType . classOrNull ! ! typeArgs = listOf ( kType ) if ( this @ BaseIrGenerator !is SerializableCompanionIrGenerator ) { callSerializerFromCompanion ( kType , typeArgs , emptyList ( ) , enumSerializerId ) ? . let { return it } } val enumArgs = mutableListOf ( irString ( kType . serialName ( ) ) , irCall ( enumDescriptor . owner . findEnumValuesMethod ( ) ) , ) if ( enumSerializerFactoryFunc != null && annotatedEnumSerializerFactoryFunc != null ) { val factoryFunc : IrSimpleFunctionSymbol = if ( enumDescriptor . owner . isEnumWithSerialInfoAnnotation ( ) ) { val enumEntries = enumDescriptor . owner . enumEntries ( ) val entriesNames = enumEntries . map { it . annotations . serialNameValue ? . let { n -> irString ( n ) } ? : irNull ( ) } val entriesAnnotations = enumEntries . map { val annotationsConstructors = copyAnnotationsFrom ( it . annotations ) if ( annotationsConstructors . isEmpty ( ) ) { irNull ( ) } else { createArrayOfExpression ( compilerContext . irBuiltIns . annotationType , annotationsConstructors ) } } val classAnnotationsConstructors = copyAnnotationsFrom ( enumDescriptor . owner . annotations ) val classAnnotations = if ( classAnnotationsConstructors . isEmpty ( ) ) { irNull ( ) } else { createArrayOfExpression ( compilerContext . irBuiltIns . annotationType , classAnnotationsConstructors ) } val annotationArrayType = compilerContext . irBuiltIns . arrayClass . typeWith ( compilerContext . irBuiltIns . annotationType . makeNullable ( ) ) enumArgs += createArrayOfExpression ( compilerContext . irBuiltIns . stringType . makeNullable ( ) , entriesNames ) enumArgs += createArrayOfExpression ( annotationArrayType , entriesAnnotations ) enumArgs += classAnnotations annotatedEnumSerializerFactoryFunc } else { enumSerializerFactoryFunc } val factoryReturnType = factoryFunc . owner . returnType . substitute ( factoryFunc . owner . typeParameters , typeArgs ) return irInvoke ( null , factoryFunc , typeArgs , enumArgs , factoryReturnType ) } else { args = enumArgs } } else -> { args = typeArgumentsAsTypes . map { val argSer = findTypeSerializerOrContext ( pluginContext , it ) instantiate ( argSer , it ) ? : return null } typeArgs = typeArgumentsAsTypes } } if ( serializerClassOriginal . owner . classId == referenceArraySerializerId ) { args = listOf ( wrapperClassReference ( typeArgumentsAsTypes . single ( ) ) ) + args typeArgs = listOf ( typeArgs [ ] . makeNotNull ( ) ) + typeArgs } if ( ! kType . isInterface ( ) && serializerClassOriginal == kType . classOrUpperBound ( ) ? . owner . classSerializer ( pluginContext ) && this @ BaseIrGenerator !is SerializableCompanionIrGenerator ) { callSerializerFromCompanion ( kType , typeArgs , args , serializerClassOriginal . owner . classId ) ? . let { return it } } val serializable = serializerClass ? . owner ? . let { compilerContext . getSerializableClassDescriptorBySerializer ( it ) } requireNotNull ( serializerClass ) val ctor = if ( serializable ? . typeParameters ? . isNotEmpty ( ) == true ) { requireNotNull ( findSerializerConstructorForTypeArgumentsSerializers ( serializerClass . owner ) ) { \"\" } } else { val constructors = serializerClass . constructors if ( ! needToCopyAnnotations ) { constructors . single { it . owner . isPrimary } } else { constructors . find { it . owner . lastArgumentIsAnnotationArray ( ) } ? : run { needToCopyAnnotations = false constructors . single { it . owner . isPrimary } } } } assert ( ctor . isBound ) val ctorDecl = ctor . owner if ( needToCopyAnnotations ) { val classAnnotations = copyAnnotationsFrom ( kType . getClass ( ) ? . let { collectSerialInfoAnnotations ( it ) } . orEmpty ( ) ) args = args + createArrayOfExpression ( compilerContext . irBuiltIns . annotationType , classAnnotations ) } val typeParameters = ctorDecl . parentAsClass . typeParameters val substitutedReturnType = ctorDecl . returnType . substitute ( typeParameters , typeArgs ) return irInvoke ( null , ctor , typeArguments = typeArgs . takeIf { it . size == ctorDecl . typeParameters . size } . orEmpty ( ) , valueArguments = args . takeIf { it . size == ctorDecl . valueParameters . size } . orEmpty ( ) , returnTypeHint = substitutedReturnType ) }","docstring":""} {"signature":"fun File . getFileByName ( name : String ) : File","body":"= findFileByName ( name ) ? : throw AssertionError ( \"\" )","docstring":""} {"signature":"fun File . getFilesByNames ( vararg names : String ) : List < File >","body":"= names . map { getFileByName ( it ) }","docstring":""} {"signature":"fun File . findFileByName ( name : String ) : File ?","body":"= walk ( ) . filter { it . isFile && it . name . equals ( name , ignoreCase = true ) } . firstOrNull ( )","docstring":""} {"signature":"fun File . allKotlinFiles ( ) : Iterable < File >","body":"= allFilesWithExtension ( \"\" )","docstring":""} {"signature":"fun File . allJavaFiles ( ) : Iterable < File >","body":"= allFilesWithExtension ( \"\" )","docstring":""} {"signature":"fun File . allFilesWithExtension ( ext : String ) : Iterable < File >","body":"= walk ( ) . filter { it . isFile && it . extension . equals ( ext , ignoreCase = true ) } . toList ( )","docstring":""} {"signature":"fun File . modify ( transform : ( String ) -> String )","body":"{ writeText ( transform ( readText ( ) ) ) }","docstring":""} {"signature":"fun File . addNewLine ( )","body":"{ modify { \"\" } }","docstring":""} {"signature":"fun createTempDir ( prefix : String ) : File","body":"= createTempDirDeleteOnExit ( prefix ) . toFile ( )","docstring":""} {"signature":"fun normalizePath ( path : String ) : String","body":"{ var start = var separator = false if ( isWindows ) { if ( path . startsWith ( \"\" ) ) { start = separator = true } else if ( path . startsWith ( \"\" ) ) { return normalizeTail ( , path , false ) } } for ( i in start until path . length ) { val c = path [ i ] if ( c == '' ) { if ( separator ) { return normalizeTail ( i , path , true ) } separator = true } else if ( c == '' ) { return normalizeTail ( i , path , separator ) } else { separator = false } } return path }","docstring":"/**\n * converts back slashes to forward slashes\n * removes double slashes inside the path, e.g. \"x/y//z\" => \"x/y/z\"\n *\n * Converted from com.intellij.openapi.util.io.FileUtil.normalize\n */"} {"signature":"private fun normalizeTail ( prefixEnd : Int , path : String , separator : Boolean ) : String","body":"{ @ Suppress ( \"\" ) var separator = separator val result = StringBuilder ( path . length ) result . append ( path , , prefixEnd ) var start = prefixEnd if ( start == && isWindows && ( path . startsWith ( \"\" ) || path . startsWith ( \"\" ) ) ) { start = result . append ( \"\" ) separator = true } for ( i in start until path . length ) { val c = path [ i ] if ( c == '' || c == '' ) { if ( ! separator ) result . append ( '' ) separator = true } else { result . append ( c ) separator = false } } return result . toString ( ) }","docstring":""} {"signature":"fun Path . replaceText ( oldValue : String , newValue : String )","body":"{ writeText ( readText ( ) . replace ( oldValue , newValue ) ) }","docstring":""} {"signature":"fun File . replaceText ( oldValue : String , newValue : String )","body":"{ writeText ( readText ( ) . replace ( oldValue , newValue ) ) }","docstring":""} {"signature":"fun File . replaceText ( regex : Regex , replacement : String )","body":"{ writeText ( readText ( ) . replace ( regex , replacement ) ) }","docstring":""} {"signature":"fun Path . replaceFirst ( oldValue : String , newValue : String )","body":"{ writeText ( readText ( ) . replaceFirst ( oldValue , newValue ) ) }","docstring":""} {"signature":"fun Path . replaceWithVersion ( versionSuffix : String ) : Path","body":"{ val otherVersion = resolveSibling ( \"\" ) otherVersion . copyTo ( this , overwrite = true ) return this }","docstring":""} {"signature":"fun builder ( c : suspend ( ) -> Unit )","body":"{ c . startCoroutine ( handleExceptionContinuation { result = it . message ! ! } ) }","docstring":""} {"signature":"suspend fun < T > suspendMe ( ) : T","body":"= suspendCoroutine { @ Suppress ( \"\" ) c = it as Continuation < Any > }","docstring":""} {"signature":"fun suspendFunId ( block : suspend ( ) -> IC )","body":"= block","docstring":""} {"signature":"suspend fun < T > foo ( value : T ) : T","body":"= value","docstring":""} {"signature":"suspend fun qux ( ss : IC ) : IC","body":"= IC ( ss . s )","docstring":""} {"signature":"suspend fun < T > quz ( t : T ) : T","body":"= t","docstring":""} {"signature":"suspend fun bar ( ) : IC","body":"{ return suspendFunId { foo ( qux ( quz ( suspendMe ( ) ) ) ) } ( ) }","docstring":""} {"signature":"suspend fun test ( )","body":"= bar ( ) . s","docstring":""} {"signature":"fun box ( ) : String","body":"{ builder { Test1 ( ) . test ( ) } c ? . resumeWithException ( IllegalStateException ( \"\" ) ) if ( result != \"\" ) return \"\" return result }","docstring":""} {"signature":"fun < T > content ( value : T )","body":"= Content ( value )","docstring":""} {"signature":"@ ExperimentalContracts inline fun < R , T : R > Content < T > . getOrElse ( onException : ( exception : Exception ) -> R , ) : R","body":"= fold ( { it } , onException )","docstring":""} {"signature":"@ ExperimentalContracts inline fun < R , T > Content < T > . fold ( onContent : ( value : T ) -> R , onException : ( exception : Exception ) -> R , ) : R","body":"{ contract { callsInPlace ( onContent , InvocationKind . AT_MOST_ONCE ) callsInPlace ( onException , InvocationKind . AT_MOST_ONCE ) } return onContent ( value ) }","docstring":""} {"signature":"@ ExperimentalContracts fun box ( ) : String","body":"{ val t = content ( ) . getOrElse { } if ( t != ) return \"\" return \"\" }","docstring":""} {"signature":"fun box ( )","body":"= \"\"","docstring":""} {"signature":"override fun < E : FirElement > transformElement ( element : E , data : D ) : E","body":"{ @ Suppress ( \"\" ) return ( element . transformChildren ( this , data ) as E ) }","docstring":""} {"signature":"open fun beforeCollectingForElement ( element : FirElement )","body":"{ }","docstring":""} {"signature":"open fun beforeGoingNestedDeclaration ( declaration : FirDeclaration , context : CheckerContext )","body":"{ }","docstring":""} {"signature":"@ Suppress ( \"\" ) inline fun < T > foo ( i1 : T , i2 : T ) : List < T >","body":"{ val j1 = i1 val j2 = i2 return listOf ( j1 , j2 ) }","docstring":""} {"signature":"fun bar ( ) : List < Int >","body":"{ return foo < Int > ( , ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ assertEquals ( \"\" , bar ( ) . toString ( ) ) return \"\" }","docstring":""} {"signature":"fun getImplementation ( context : Context ) : IrSimpleFunction ?","body":"{ val target = function . target val implementation = if ( ! needBridge ) target else { val bridgeOwner = if ( inheritsBridge ) { target } else { function } context . bridgesSupport . getBridge ( OverriddenFunctionInfo ( bridgeOwner , overriddenFunction ) ) } return if ( implementation . modality == Modality . ABSTRACT ) null else implementation }","docstring":""} {"signature":"override fun toString ( ) : String","body":"{ return \"\" }","docstring":""} {"signature":"override fun equals ( other : Any ? ) : Boolean","body":"{ if ( this === other ) return true if ( other !is OverriddenFunctionInfo ) return false if ( function != other . function ) return false if ( overriddenFunction != other . overriddenFunction ) return false return true }","docstring":""} {"signature":"override fun hashCode ( ) : Int","body":"{ var result = function . hashCode ( ) result = * result + overriddenFunction . hashCode ( ) return result }","docstring":""} {"signature":"fun run ( )","body":"{ val interfaceColors = assignColorsToInterfaces ( ) val maxColor = interfaceColors . values . maxOrNull ( ) ? : var bitsPerColor = var x = maxColor while ( x > ) { ++ bitsPerColor x /= } val maxInterfaceId = Int . MAX_VALUE shr bitsPerColor val colorCounts = IntArray ( maxColor + ) val root = context . irBuiltIns . anyClass . owner val immediateInheritors = mutableMapOf < IrClass , MutableList < IrClass > > ( ) val allClasses = mutableListOf < IrClass > ( ) irModule . acceptVoid ( object : IrElementVisitorVoid { override fun visitElement ( element : IrElement ) { element . acceptChildrenVoid ( this ) } override fun visitClass ( declaration : IrClass ) { if ( declaration . isInterface ) { val color = interfaceColors [ declaration ] ! ! val interfaceId = ++ colorCounts [ color ] assert ( interfaceId <= maxInterfaceId ) { \"\" } context . getLayoutBuilder ( declaration ) . hierarchyInfo = ClassGlobalHierarchyInfo ( , , color or ( interfaceId shl bitsPerColor ) ) } else { allClasses += declaration if ( declaration != root ) { val superClass = declaration . getSuperClassNotAny ( ) ? : root val inheritors = immediateInheritors . getOrPut ( superClass ) { mutableListOf ( ) } inheritors . add ( declaration ) } } super . visitClass ( declaration ) } } ) var time = fun dfs ( irClass : IrClass ) { ++ time val enterTime = if ( irClass == root ) - else time immediateInheritors [ irClass ] ? . forEach { dfs ( it ) } val exitTime = time context . getLayoutBuilder ( irClass ) . hierarchyInfo = ClassGlobalHierarchyInfo ( enterTime , exitTime , ) } dfs ( root ) context . globalHierarchyAnalysisResult = GlobalHierarchyAnalysisResult ( bitsPerColor ) }","docstring":""} {"signature":"fun computeColoringGreedy ( ) : IntArray","body":"{ val colors = IntArray ( nodes . size ) { - } var numberOfColors = val usedColors = BooleanArray ( nodes . size ) for ( v in nodes . indices ) { for ( c in until numberOfColors ) usedColors [ c ] = false for ( u in forbidden [ v ] ) if ( colors [ u ] >= ) usedColors [ colors [ u ] ] = true var found = false for ( c in until numberOfColors ) if ( ! usedColors [ c ] ) { colors [ v ] = c found = true break } if ( ! found ) colors [ v ] = numberOfColors ++ } return colors }","docstring":""} {"signature":"fun build ( irModuleFragment : IrModuleFragment ) : InterfacesForbiddennessGraph","body":"{ val interfaceIndices = mutableMapOf < IrClass , Int > ( ) val interfaces = mutableListOf < IrClass > ( ) val forbidden = mutableListOf < MutableList < Int > > ( ) irModuleFragment . acceptVoid ( object : IrElementVisitorVoid { override fun visitElement ( element : IrElement ) { element . acceptChildrenVoid ( this ) } fun registerInterface ( iface : IrClass ) { interfaceIndices . getOrPut ( iface ) { forbidden . add ( mutableListOf ( ) ) interfaces . add ( iface ) interfaces . size - } } override fun visitClass ( declaration : IrClass ) { if ( declaration . isInterface ) registerInterface ( declaration ) else { val implementedInterfaces = declaration . implementedInterfaces implementedInterfaces . forEach { registerInterface ( it ) } for ( i in until implementedInterfaces . size ) for ( j in i + until implementedInterfaces . size ) { val v = interfaceIndices [ implementedInterfaces [ i ] ] ! ! val u = interfaceIndices [ implementedInterfaces [ j ] ] ! ! forbidden [ v ] . add ( u ) forbidden [ u ] . add ( v ) } } super . visitClass ( declaration ) } } ) return InterfacesForbiddennessGraph ( interfaces , forbidden ) }","docstring":""} {"signature":"private fun assignColorsToInterfaces ( ) : Map < IrClass , Int >","body":"{ val graph = InterfacesForbiddennessGraph . build ( irModule ) val coloring = graph . computeColoringGreedy ( ) return graph . nodes . mapIndexed { v , irClass -> irClass to coloring [ v ] } . toMap ( ) }","docstring":""} {"signature":"internal fun IrField . requiredAlignment ( llvm : CodegenLlvmHelpers ) : Int","body":"{ val llvmType = type . toLLVMType ( llvm ) val abiAlignment = if ( llvmType == llvm . vector128Type ) { } else { LLVMABIAlignmentOfType ( llvm . runtime . targetData , llvmType ) } return if ( hasAnnotation ( KonanFqNames . volatile ) ) { val size = LLVMABISizeOfType ( llvm . runtime . targetData , llvmType ) . toInt ( ) val alignment = maxOf ( size , abiAlignment ) require ( alignment % size == ) { \"\" } require ( alignment % abiAlignment == ) { \"\" } alignment } else { abiAlignment } }","docstring":""} {"signature":"private fun IrField . toFieldInfo ( llvm : CodegenLlvmHelpers ) : FieldInfo","body":"{ val isConst = correspondingPropertySymbol ? . owner ? . isConst ? : false require ( ! isConst || initializer ? . expression is IrConst < * > ) { \"\" } return FieldInfo ( name . asString ( ) , type , isConst , symbol , requiredAlignment ( llvm ) ) }","docstring":""} {"signature":"fun vtableIndex ( function : IrSimpleFunction ) : Int","body":"{ val bridgeDirections = function . target . bridgeDirectionsTo ( function ) val index = vtableEntries . indexOfFirst { it . function == function && it . bridgeDirections == bridgeDirections } require ( index >= ) { \"\" } return index }","docstring":""} {"signature":"fun overridingOf ( function : IrSimpleFunction )","body":"= overridableOrOverridingMethods . firstOrNull { function in it . allOverriddenFunctions } ? . let { OverriddenFunctionInfo ( it , function ) . getImplementation ( context ) }","docstring":""} {"signature":"fun itablePlace ( function : IrSimpleFunction ) : InterfaceTablePlace","body":"{ require ( irClass . isInterface ) { \"\" } val interfaceVTable = interfaceVTableEntries val index = interfaceVTable . indexOf ( function ) if ( index >= ) return InterfaceTablePlace ( classId , interfaceVTable . size , index ) val superFunction = function . overriddenSymbols . first ( ) . owner return context . getLayoutBuilder ( superFunction . parentAsClass ) . itablePlace ( superFunction ) }","docstring":""} {"signature":"fun getFields ( llvm : CodegenLlvmHelpers ) : List < FieldInfo >","body":"= getFieldsInternal ( llvm ) . map { fieldInfo -> val mappedField = fieldInfo . irField ? . let { context . mapping . lateInitFieldToNullableField [ it ] ? : it } if ( mappedField == fieldInfo . irField ) fieldInfo else mappedField ! ! . toFieldInfo ( llvm ) }","docstring":"/**\n * All fields of the class instance.\n * The order respects the class hierarchy, i.e. a class [fields] contains superclass [fields] as a prefix.\n */"} {"signature":"private fun getFieldsInternal ( llvm : CodegenLlvmHelpers ) : List < FieldInfo >","body":"{ fields ? . let { return it } val superClass = irClass . getSuperClassNotAny ( ) val superFields = if ( superClass != null ) context . getLayoutBuilder ( superClass ) . getFieldsInternal ( llvm ) else emptyList ( ) val declaredFields = getDeclaredFields ( llvm ) val sortedDeclaredFields = if ( irClass . hasAnnotation ( KonanFqNames . noReorderFields ) ) declaredFields else declaredFields . sortedByDescending { with ( llvm ) { LLVMStoreSizeOfType ( runtime . targetData , it . type . toLLVMType ( this ) ) } } return ( superFields + sortedDeclaredFields ) . also { fields = it } }","docstring":""} {"signature":"fun getDeclaredFields ( llvm : CodegenLlvmHelpers ) : List < FieldInfo >","body":"{ val outerThisField = if ( irClass . isInner ) context . innerClassesSupport . getOuterThisField ( irClass ) else null val moduleDeserializer = context . irLinker . getCachedDeclarationModuleDeserializer ( irClass ) if ( moduleDeserializer != null ) return moduleDeserializer . deserializeClassFields ( irClass , outerThisField ? . toFieldInfo ( llvm ) ) val declarations = irClass . declarations . toMutableList ( ) outerThisField ? . let { if ( ! declarations . contains ( it ) ) declarations += it } return declarations . mapNotNull { when ( it ) { is IrField -> it . takeIf { it . isReal && ! it . isStatic } ? . toFieldInfo ( llvm ) is IrProperty -> it . takeIf { it . isReal } ? . backingField ? . takeIf { ! it . isStatic } ? . toFieldInfo ( llvm ) else -> null } } }","docstring":"/**\n * Fields declared in the class.\n */"} {"signature":"fun IrSimpleFunction . getLoweredVersion ( )","body":"= when { isSuspend -> this . getOrCreateFunctionWithContinuationStub ( context ) else -> this }","docstring":"/**\n * Normally, function should be already replaced. But if the function come from LazyIr, it can be not replaced.\n */"} {"signature":"override fun check ( expression : FirFunctionCall , context : CheckerContext , reporter : DiagnosticReporter )","body":"{ val resolvedCalleeSymbol = expression . calleeReference . toResolvedNamedFunctionSymbol ( ) ? : return val resolvedCalleeName = resolvedCalleeSymbol . name if ( expression . origin != FirFunctionCallOrigin . Operator || resolvedCalleeName !in FirOperationNameConventions . ASSIGNMENT_NAMES ) { return } if ( ! expression . resolvedType . isUnit ) { reporter . reportOn ( expression . source , FirErrors . ASSIGNMENT_OPERATOR_SHOULD_RETURN_UNIT , resolvedCalleeSymbol , FirOperationNameConventions . ASSIGNMENT_NAMES [ resolvedCalleeName ] ! ! . operator , context ) } }","docstring":""} {"signature":"@ OptIn ( kotlin . contracts . ExperimentalContracts :: class ) fun check ( actual : Boolean )","body":"{ contract { returns ( ) implies actual } assertTrue ( actual ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val s : S = P ( ) check ( s is P ) assertEquals ( s . str , \"\" ) return \"\" }","docstring":""} {"signature":"inline fun foo ( i1 : Int , i2 : Double ) : Int","body":"{ val o = object : Comparable < Int > { override fun compareTo ( other : Int ) = i1 - other } return o . compareTo ( i2 . toInt ( ) ) }","docstring":""} {"signature":"fun bar ( i : Int ) : Int","body":"{ class Cmp2 ( ) : Comparable < Int > { override fun compareTo ( other : Int ) = - other } return Cmp2 ( ) . compareTo ( i ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ if ( foo ( , ) + bar ( - ) != ) return \"\" return \"\" }","docstring":""} {"signature":"fun builder ( c : suspend ( ) -> Unit )","body":"{ c . startCoroutine ( handleExceptionContinuation { result = it . message ! ! } ) }","docstring":""} {"signature":"suspend fun < T > call ( fn : suspend ( ) -> T )","body":"= fn ( )","docstring":""} {"signature":"fun useR ( r : R )","body":"= if ( r . x == \"\" ) \"\" else \"\"","docstring":""} {"signature":"fun box ( ) : String","body":"{ var c : Continuation < R > ? = null builder { useR ( call { suspendCoroutine { c = it } } ) } c ? . resumeWithException ( IllegalStateException ( \"\" ) ) return result }","docstring":""} {"signature":"open fun generate ( )","body":"{ val frameMapAtStart = codegen . frameMap . mark ( ) prepareConfiguration ( ) val hasElse = expression . elseExpression != null defaultLabel = if ( hasElse || ! isStatement || isExhaustive ) elseLabel else endLabel generateSubjectValue ( ) generateSubjectValueToIndex ( ) val beginLabel = Label ( ) v . mark ( beginLabel ) generateSwitchInstructionByTransitionsTable ( ) generateEntries ( ) if ( ! hasElse && ( ! isStatement || isExhaustive ) ) { v . visitLabel ( elseLabel ) codegen . putUnitInstanceOntoStackForNonExhaustiveWhen ( expression , isStatement ) } codegen . markLineNumber ( expression , isStatement ) v . mark ( endLabel ) frameMapAtStart . dropTo ( ) subjectVariableDescriptor ? . let { v . visitLocalVariable ( it . name . asString ( ) , subjectType . descriptor , null , beginLabel , endLabel , subjectLocal ) } }","docstring":"/**\n * Generates bytecode for entire when expression\n */"} {"signature":"private fun prepareConfiguration ( )","body":"{ for ( entry in expression . entries ) { val entryLabel = Label ( ) for ( constant in switchCodegenProvider . getConstantsFromEntry ( entry ) ) { if ( constant is NullValue || constant == null ) continue processConstant ( constant , entryLabel , entry ) } if ( entry . isElse ) { elseLabel = entryLabel } entryLabels . add ( entryLabel ) } }","docstring":"/**\n * Sets up transitionsTable and maybe something else needed in a special case\n * Behaviour may be changed by overriding processConstant\n */"} {"signature":"protected abstract fun processConstant ( constant : ConstantValue < * > , entryLabel : Label , entry : KtWhenEntry )","body":"protected abstract fun processConstant ( constant : ConstantValue < * > , entryLabel : Label , entry : KtWhenEntry )","docstring":""} {"signature":"protected fun putTransitionOnce ( value : Int , entryLabel : Label )","body":"{ if ( ! transitionsTable . containsKey ( value ) ) { transitionsTable [ value ] = entryLabel } }","docstring":""} {"signature":"private fun generateSubjectValue ( )","body":"{ if ( subjectVariable != null ) { val mySubjectVariable = bindingContext [ BindingContext . VARIABLE , subjectVariable ] ? : throw AssertionError ( \"\" ) subjectLocal = codegen . frameMap . enter ( mySubjectVariable , subjectType ) codegen . visitProperty ( subjectVariable , null ) StackValue . local ( subjectLocal , subjectType , subjectKotlinType ) . put ( subjectType , subjectKotlinType , codegen . v ) subjectVariableDescriptor = mySubjectVariable } else { codegen . gen ( subjectExpression , subjectType , subjectKotlinType ) subjectVariableDescriptor = null } }","docstring":"/**\n * Generates subject value on top of the stack.\n * If the subject is a variable, it's stored and loaded.\n */"} {"signature":"protected abstract fun generateSubjectValueToIndex ( )","body":"protected abstract fun generateSubjectValueToIndex ( )","docstring":"/**\n * Given a subject value on stack (after [generateSubjectValue]),\n * produces int value to be used in switch.\n */"} {"signature":"protected fun generateNullCheckIfNeeded ( )","body":"{ if ( TypeUtils . isNullableType ( subjectKotlinType ) ) { val nullEntryIndex = findNullEntryIndex ( expression ) val nullLabel = if ( nullEntryIndex == - ) defaultLabel else entryLabels [ nullEntryIndex ] val notNullLabel = Label ( ) with ( v ) { dup ( ) ifnonnull ( notNullLabel ) pop ( ) goTo ( nullLabel ) visitLabel ( notNullLabel ) } } }","docstring":""} {"signature":"private fun findNullEntryIndex ( expression : KtWhenExpression )","body":"= expression . entries . withIndex ( ) . firstOrNull { ( _ , entry ) -> switchCodegenProvider . getConstantsFromEntry ( entry ) . any { it is NullValue } } ? . index ? : - ","docstring":""} {"signature":"private fun generateSwitchInstructionByTransitionsTable ( )","body":"{ val keys = transitionsTable . keys . toIntArray ( ) val labelsNumber = keys . size val maxValue = keys . last ( ) val minValue = keys . first ( ) val rangeLength = maxValue . toLong ( ) - minValue . toLong ( ) + if ( preferLookupOverSwitch ( labelsNumber , rangeLength ) ) { val labels = transitionsTable . values . toTypedArray ( ) v . lookupswitch ( defaultLabel , keys , labels ) return } val sparseLabels = Array ( rangeLength . toInt ( ) ) { index -> transitionsTable [ index + minValue ] ? : defaultLabel } v . tableswitch ( minValue , maxValue , defaultLabel , * sparseLabels ) }","docstring":""} {"signature":"protected open fun generateEntries ( )","body":"{ val entryLabelsIterator = entryLabels . iterator ( ) for ( entry in expression . entries ) { v . visitLabel ( entryLabelsIterator . next ( ) ) val mark = codegen . myFrameMap . mark ( ) codegen . gen ( entry . expression , resultType , resultKotlinType ) mark . dropTo ( ) if ( ! entry . isElse ) { v . goTo ( endLabel ) } } }","docstring":""} {"signature":"fun preferLookupOverSwitch ( labelsNumber : Int , rangeLength : Long )","body":"= rangeLength > * labelsNumber || rangeLength > Int . MAX_VALUE","docstring":""} {"signature":"fun foo ( )","body":"{ }","docstring":""} {"signature":"inline fun test1 ( v : Int )","body":"{ if ( v == ) { try { foo ( ) } catch ( e : Exception ) { } } }","docstring":""} {"signature":"inline fun test2 ( v : Int )","body":"{ try { if ( v == ) { foo ( ) } } catch ( e : Exception ) { } }","docstring":""} {"signature":"inline fun test3 ( v : Boolean )","body":"{ if ( v ) { try { foo ( ) } catch ( e : Exception ) { } } }","docstring":""} {"signature":"inline fun test4 ( v : Boolean )","body":"{ try { if ( v ) { foo ( ) } } catch ( e : Exception ) { } }","docstring":""} {"signature":"fun box ( ) : String","body":"{ test1 ( ) test2 ( ) test3 ( false ) test4 ( false ) return \"\" }","docstring":""} {"signature":"@ JsName ( \"\" ) fun foo ( ) : String","body":"@ JsName ( \"\" ) fun foo ( ) : String","docstring":""} {"signature":"override fun foo ( ) : String","body":"override fun foo ( ) : String","docstring":""} {"signature":"fun box ( ) : String","body":"{ val c = js ( \"\" ) val a : A = c val b : B = c assertEquals ( a . name , \"\" ) assertEquals ( a . asDynamic ( ) . __name , \"\" ) assertEquals ( b . name , \"\" ) assertEquals ( b . asDynamic ( ) . __name , \"\" ) assertEquals ( a . foo ( ) , \"\" ) assertEquals ( a . asDynamic ( ) . bar ( ) , \"\" ) assertEquals ( b . foo ( ) , \"\" ) assertEquals ( b . asDynamic ( ) . bar ( ) , \"\" ) return \"\" }","docstring":""} {"signature":"operator fun Any ? . getValue ( thisRef : Any ? , property : Any ? )","body":"= if ( this == && thisRef == null ) \"\" else \"\"","docstring":""} {"signature":"fun box ( )","body":"= s","docstring":""} {"signature":"override fun isEmpty ( )","body":"= membersDiffList . isEmpty ( ) && functionReports . areAllEmpty ( ) && propertyReports . areAllEmpty ( ) && typeAliasReports . areAllEmpty ( ) && localDelegatedPropertyReport . areAllEmpty ( )","docstring":""} {"signature":"override fun writeAsHtml ( output : PrintWriter )","body":"{ if ( isEmpty ( ) ) return output . tag ( \"\" , \"\" ) output . listDiff ( header1 , header2 , membersDiffList ) for ( report in listOf ( functionReports , propertyReports , typeAliasReports , localDelegatedPropertyReport ) . flatten ( ) ) { report . writeAsHtml ( output ) } }","docstring":""} {"signature":"fun addMembersListDiffs ( diffs : List < ListEntryDiff > )","body":"{ for ( diff in diffs ) { membersDiffList . add ( diff . toDiffEntry ( ) ) } }","docstring":""} {"signature":"fun functionReport ( id : String )","body":"= MetadataPropertyReport ( \"\" , header1 , header2 ) . also { functionReports . add ( it ) }","docstring":""} {"signature":"fun propertyReport ( id : String )","body":"= MetadataPropertyReport ( \"\" , header1 , header2 ) . also { propertyReports . add ( it ) }","docstring":""} {"signature":"fun typeAliasReport ( id : String )","body":"= MetadataPropertyReport ( \"\" , header1 , header2 ) . also { typeAliasReports . add ( it ) }","docstring":""} {"signature":"fun localDelegatedPropertyReport ( id : String )","body":"= MetadataPropertyReport ( \"\" , header1 , header2 ) . also { localDelegatedPropertyReport . add ( it ) }","docstring":""} {"signature":"fun TextTreeBuilderContext . appendPackageMetadataReport ( )","body":"{ if ( isNotEmpty ( ) ) { node ( \"\" ) { appendDiffEntries ( header1 , header2 , membersDiffList ) for ( report in listOf ( functionReports , propertyReports , typeAliasReports , localDelegatedPropertyReport ) . flatten ( ) ) { with ( report ) { appendReport ( ) } } } } }","docstring":""} {"signature":"public fun write ( arg : String = \"\" )","body":"public fun write ( arg : String = \"\" )","docstring":""} {"signature":"fun write ( arg : String )","body":"{ }","docstring":""} {"signature":"override fun write ( arg : String )","body":"override fun write ( arg : String )","docstring":""} {"signature":"public actual fun write ( arg : String ) : Unit","body":"public actual fun write ( arg : String ) : Unit","docstring":""} {"signature":"override fun getClasses ( nameFilter : ( Name ) -> Boolean )","body":"= javac . findClassesFromPackage ( fqName ) . filter { nameFilter ( it . fqName ! ! . shortName ( ) ) }","docstring":""} {"signature":"override fun equals ( other : Any ? )","body":"= ( other as? TreeBasedPackage ) ? . name == name","docstring":""} {"signature":"override fun hashCode ( )","body":"= name . hashCode ( )","docstring":""} {"signature":"override fun toString ( )","body":"= name","docstring":""} {"signature":"fun < caret > test ( )","body":"{ }","docstring":""} {"signature":"override fun createCommonizer ( )","body":"= TypeParameterCommonizer ( TypeCommonizer ( MOCK_CLASSIFIERS , DefaultCommonizerSettings ) )","docstring":""} {"signature":"@ Test fun allAreReified ( )","body":"= doTestSuccess ( expected = mockTypeParam ( isReified = true ) , mockTypeParam ( isReified = true ) , mockTypeParam ( isReified = true ) , mockTypeParam ( isReified = true ) )","docstring":""} {"signature":"@ Test fun allAreNotReified ( )","body":"= doTestSuccess ( expected = mockTypeParam ( isReified = false ) , mockTypeParam ( isReified = false ) , mockTypeParam ( isReified = false ) , mockTypeParam ( isReified = false ) )","docstring":""} {"signature":"@ Test ( expected = IllegalCommonizerStateException :: class ) fun someAreReified1 ( )","body":"= doTestFailure ( mockTypeParam ( isReified = true ) , mockTypeParam ( isReified = true ) , mockTypeParam ( isReified = false ) )","docstring":""} {"signature":"@ Test ( expected = IllegalCommonizerStateException :: class ) fun someAreReified2 ( )","body":"= doTestFailure ( mockTypeParam ( isReified = false ) , mockTypeParam ( isReified = false ) , mockTypeParam ( isReified = true ) )","docstring":""} {"signature":"@ Test ( expected = IllegalCommonizerStateException :: class ) fun differentVariance1 ( )","body":"= doTestFailure ( mockTypeParam ( variance = Variance . IN_VARIANCE ) , mockTypeParam ( variance = Variance . IN_VARIANCE ) , mockTypeParam ( variance = Variance . OUT_VARIANCE ) )","docstring":""} {"signature":"@ Test ( expected = IllegalCommonizerStateException :: class ) fun differentVariance2 ( )","body":"= doTestFailure ( mockTypeParam ( variance = Variance . OUT_VARIANCE ) , mockTypeParam ( variance = Variance . OUT_VARIANCE ) , mockTypeParam ( variance = Variance . INVARIANT ) )","docstring":""} {"signature":"@ Test ( expected = IllegalCommonizerStateException :: class ) fun differentUpperBounds1 ( )","body":"= doTestFailure ( mockTypeParam ( upperBounds = listOf ( \"\" ) ) , mockTypeParam ( upperBounds = listOf ( \"\" ) ) , mockTypeParam ( upperBounds = listOf ( \"\" ) ) )","docstring":""} {"signature":"@ Test ( expected = IllegalCommonizerStateException :: class ) fun differentUpperBounds2 ( )","body":"= doTestFailure ( mockTypeParam ( upperBounds = listOf ( \"\" , \"\" ) ) , mockTypeParam ( upperBounds = listOf ( \"\" , \"\" ) ) , mockTypeParam ( upperBounds = listOf ( \"\" ) ) )","docstring":""} {"signature":"@ Test ( expected = IllegalCommonizerStateException :: class ) fun differentUpperBounds3 ( )","body":"= doTestFailure ( mockTypeParam ( upperBounds = listOf ( \"\" , \"\" ) ) , mockTypeParam ( upperBounds = listOf ( \"\" , \"\" ) ) , mockTypeParam ( upperBounds = listOf ( \"\" , \"\" ) ) )","docstring":""} {"signature":"fun mockTypeParam ( name : String = \"\" , isReified : Boolean = false , variance : Variance = Variance . INVARIANT , upperBounds : List < String > = listOf ( \"\" ) )","body":"= CirTypeParameter ( annotations = emptyList ( ) , name = CirName . create ( name ) , isReified = isReified , variance = variance , upperBounds = upperBounds . map ( :: mockClassType ) )","docstring":""} {"signature":"private fun initKotlinMultiplatformProject ( config : GradleProjectTest . ( ) -> Unit = { } , ) : GradleProjectTest","body":"{ return gradleKtsProjectTest ( \"\" ) { settingsGradleKts += \"\"\"\"\"\" . trimMargin ( ) buildGradleKts = \"\"\"\"\"\" . trimMargin ( ) dir ( \"\" ) { createKotlinFile ( \"\" , \"\"\"\"\"\" . trimMargin ( ) ) createKotlinFile ( \"\" , \"\"\"\"\"\" . trimMargin ( ) ) } dir ( \"\" ) { createKotlinFile ( \"\" , \"\"\"\"\"\" . trimMargin ( ) ) } dir ( \"\" ) { createKotlinFile ( \"\" , \"\"\"\"\"\" . trimMargin ( ) ) } config ( ) } }","docstring":""} {"signature":"override fun deserialize ( decoder : Decoder ) : CustomULong","body":"= CustomULong ( decoder . decodeInline ( descriptor ) . decodeSerializableValue ( ULong . serializer ( ) ) )","docstring":""} {"signature":"override fun serialize ( encoder : Encoder , value : CustomULong )","body":"{ encoder . encodeInline ( descriptor ) . encodeSerializableValue ( ULong . serializer ( ) , value . value ) }","docstring":""} {"signature":"@ Test fun testInlineClassAsMapKey ( )","body":"{ println ( Long . MAX_VALUE . toULong ( ) + ) val c = Carrier ( mapOf ( to ) , mapOf ( Long . MAX_VALUE . toULong ( ) + to ) , mapOf ( WrappedLong ( ) to ) , mapOf ( WrappedULong ( Long . MAX_VALUE . toULong ( ) + ) to ) , mapOf ( CustomULong ( Long . MAX_VALUE . toULong ( ) + ) to ) ) assertJsonFormAndRestored ( serializer < Carrier > ( ) , c , \"\"\"\"\"\" ) }","docstring":""} {"signature":"fun getProvider ( project : Project ) : SyntheticJavaPartsProvider","body":"{ val instances = getInstances ( project ) val providers = instances . map { it . buildProvider ( ) } return if ( providers . isEmpty ( ) ) { SyntheticJavaPartsProvider . EMPTY } else { CompositeSyntheticJavaPartsProvider ( providers ) } }","docstring":""} {"signature":"fun buildProvider ( ) : SyntheticJavaPartsProvider","body":"fun buildProvider ( ) : SyntheticJavaPartsProvider","docstring":""} {"signature":"public fun foo ( p0 : IntArray ? )","body":"public fun foo ( p0 : IntArray ? )","docstring":""} {"signature":"public fun dummy ( )","body":"public fun dummy ( )","docstring":""} {"signature":"override fun foo ( p0 : IntArray ? )","body":"override fun foo ( p0 : IntArray ? )","docstring":""} {"signature":"fun byName ( name : String )","body":"= name . baseId ( )","docstring":""} {"signature":"fun reflectByName ( name : String )","body":"= name . reflectId ( )","docstring":""} {"signature":"@ Suppress ( \"\" ) fun FunctionN ( n : Int ) : ClassId","body":"{ return \"\" . baseId ( ) }","docstring":""} {"signature":"@ Suppress ( \"\" ) fun SuspendFunctionN ( n : Int ) : ClassId","body":"{ return \"\" . coroutinesId ( ) }","docstring":""} {"signature":"@ Suppress ( \"\" ) fun KFunctionN ( n : Int ) : ClassId","body":"{ return \"\" . reflectId ( ) }","docstring":""} {"signature":"@ Suppress ( \"\" ) fun KSuspendFunctionN ( n : Int ) : ClassId","body":"{ return \"\" . reflectId ( ) }","docstring":""} {"signature":"private fun String . baseId ( )","body":"= ClassId ( StandardClassIds . BASE_KOTLIN_PACKAGE , Name . identifier ( this ) )","docstring":""} {"signature":"private fun ClassId . unsignedId ( )","body":"= ClassId ( StandardClassIds . BASE_KOTLIN_PACKAGE , Name . identifier ( \"\" + shortClassName . identifier ) )","docstring":""} {"signature":"private fun String . reflectId ( )","body":"= ClassId ( StandardClassIds . BASE_REFLECT_PACKAGE , Name . identifier ( this ) )","docstring":""} {"signature":"private fun Name . primitiveArrayId ( )","body":"= ClassId ( StandardClassIds . Array . packageFqName , Name . identifier ( identifier + StandardClassIds . Array . shortClassName . identifier ) )","docstring":""} {"signature":"private fun String . collectionsId ( )","body":"= ClassId ( StandardClassIds . BASE_COLLECTIONS_PACKAGE , Name . identifier ( this ) )","docstring":""} {"signature":"private fun String . rangesId ( )","body":"= ClassId ( StandardClassIds . BASE_RANGES_PACKAGE , Name . identifier ( this ) )","docstring":""} {"signature":"private fun String . annotationId ( )","body":"= ClassId ( StandardClassIds . BASE_ANNOTATION_PACKAGE , Name . identifier ( this ) )","docstring":""} {"signature":"private fun String . jvmId ( )","body":"= ClassId ( StandardClassIds . BASE_JVM_PACKAGE , Name . identifier ( this ) )","docstring":""} {"signature":"private fun String . jvmInternalId ( )","body":"= ClassId ( StandardClassIds . BASE_JVM_INTERNAL_PACKAGE , Name . identifier ( this ) )","docstring":""} {"signature":"private fun String . jvmFunctionsId ( )","body":"= ClassId ( StandardClassIds . BASE_JVM_FUNCTIONS_PACKAGE , Name . identifier ( this ) )","docstring":""} {"signature":"private fun String . internalId ( )","body":"= ClassId ( StandardClassIds . BASE_INTERNAL_PACKAGE , Name . identifier ( this ) )","docstring":""} {"signature":"private fun String . internalIrId ( )","body":"= ClassId ( StandardClassIds . BASE_INTERNAL_IR_PACKAGE , Name . identifier ( this ) )","docstring":""} {"signature":"private fun String . coroutinesId ( )","body":"= ClassId ( StandardClassIds . BASE_COROUTINES_PACKAGE , Name . identifier ( this ) )","docstring":""} {"signature":"private fun String . enumsId ( )","body":"= ClassId ( StandardClassIds . BASE_ENUMS_PACKAGE , Name . identifier ( this ) )","docstring":""} {"signature":"private fun String . concurrentId ( )","body":"= ClassId ( StandardClassIds . BASE_CONCURRENT_PACKAGE , Name . identifier ( this ) )","docstring":""} {"signature":"private fun String . testId ( )","body":"= ClassId ( StandardClassIds . BASE_TEST_PACKAGE , Name . identifier ( this ) )","docstring":""} {"signature":"private fun String . callableId ( packageName : FqName )","body":"= CallableId ( packageName , Name . identifier ( this ) )","docstring":""} {"signature":"private fun String . callableId ( classId : ClassId )","body":"= CallableId ( classId , Name . identifier ( this ) )","docstring":""} {"signature":"private fun < K , V > Map < K , V > . inverseMap ( ) : Map < V , K >","body":"= entries . associate { ( k , v ) -> v to k }","docstring":""} {"signature":"@ Test fun `test toLayer` ( )","body":"{ val mockGeom = mockk < Geom > ( ) val layersInheritMappings = true val layerContextInterface = object : LayerContextInterface { override val geom : Geom = mockGeom override val layerFeatures : MutableMap < FeatureName , LayerFeature > = mutableMapOf ( ) override val requiredAes : Set < Aes > = setOf ( ) override fun toLayer ( layersInheritMappings : Boolean ) : Layer { return Layer ( , geom , bindingCollector . mappings , bindingCollector . settings , layerFeatures , bindingCollector . freeScales , layersInheritMappings ) } override val bindingCollector : BindingCollector = BindingCollector ( ) } val layer = layerContextInterface . toLayer ( layersInheritMappings ) assertEquals ( mockGeom , layer . geom ) assertEquals ( layerContextInterface . bindingCollector . mappings , layer . mappings ) assertEquals ( layerContextInterface . bindingCollector . settings , layer . settings ) assertEquals ( layerContextInterface . bindingCollector . freeScales , layer . freeScales ) assertEquals ( layerContextInterface . layerFeatures , layer . features ) assertEquals ( layersInheritMappings , layer . inheritsBindings ) }","docstring":""} {"signature":"override fun doRawFirTest ( filePath : String )","body":"{ val ignoreTreeAccess = InTextDirectivesUtils . isDirectiveDefined ( File ( filePath ) . readText ( ) , \"\" ) var treeAccessFound = false try { super . doRawFirTest ( filePath ) } catch ( e : Throwable ) { if ( ! ignoreTreeAccess || e . message ? . startsWith ( \"\" ) != true ) { throw e } treeAccessFound = true } assertEquals ( \"\" , ignoreTreeAccess , treeAccessFound ) }","docstring":""} {"signature":"override fun createKtFile ( filePath : String ) : KtFile","body":"{ val originalFile = super . createKtFile ( filePath ) val originalProvider = originalFile . viewProvider val updatedProvider = object : SingleRootFileViewProvider ( originalProvider . manager , originalProvider . virtualFile , originalProvider . isEventSystemEnabled , originalProvider . fileType , ) { override fun isPhysical ( ) : Boolean = true } updatedProvider . manager . setAssertOnFileLoadingFilter ( VirtualFileFilter . ALL , testRootDisposable ) val fileWithStub = object : KtFile ( updatedProvider , false ) { override fun getStub ( ) : KotlinFileStub ? = stubTree ? . root as? KotlinFileStub } updatedProvider . forceCachedPsi ( fileWithStub ) assertNotNull ( \"\" , fileWithStub . stub ) return fileWithStub }","docstring":""} {"signature":"fun box ( ) : String","body":"{ return if ( ( p == ) && ( c == ) ) \"\" else \"\" }","docstring":""} {"signature":"fun box ( )","body":"= \"\"","docstring":""} {"signature":"fun getVariablesWithConstraintsContainingGivenTypeVariable ( variableConstructorMarker : TypeConstructorMarker , ) : Collection < VariableWithConstraints >","body":"fun getVariablesWithConstraintsContainingGivenTypeVariable ( variableConstructorMarker : TypeConstructorMarker , ) : Collection < VariableWithConstraints >","docstring":""} {"signature":"fun getTypeVariable ( typeConstructor : TypeConstructorMarker ) : TypeVariableMarker ?","body":"fun getTypeVariable ( typeConstructor : TypeConstructorMarker ) : TypeVariableMarker ?","docstring":""} {"signature":"fun getConstraintsForVariable ( typeVariable : TypeVariableMarker ) : List < Constraint >","body":"fun getConstraintsForVariable ( typeVariable : TypeVariableMarker ) : List < Constraint >","docstring":""} {"signature":"fun addNewIncorporatedConstraint ( lowerType : KotlinTypeMarker , upperType : KotlinTypeMarker , shouldTryUseDifferentFlexibilityForUpperType : Boolean , isFromNullabilityConstraint : Boolean = false , isFromDeclaredUpperBound : Boolean = false , )","body":"fun addNewIncorporatedConstraint ( lowerType : KotlinTypeMarker , upperType : KotlinTypeMarker , shouldTryUseDifferentFlexibilityForUpperType : Boolean , isFromNullabilityConstraint : Boolean = false , isFromDeclaredUpperBound : Boolean = false , )","docstring":""} {"signature":"fun addNewIncorporatedConstraint ( typeVariable : TypeVariableMarker , type : KotlinTypeMarker , constraintContext : ConstraintContext )","body":"fun addNewIncorporatedConstraint ( typeVariable : TypeVariableMarker , type : KotlinTypeMarker , constraintContext : ConstraintContext )","docstring":""} {"signature":"fun incorporate ( c : Context , typeVariable : TypeVariableMarker , constraint : Constraint )","body":"{ ProgressIndicatorAndCompilationCanceledStatus . checkCanceled ( ) if ( c . areThereRecursiveConstraints ( typeVariable , constraint ) ) return c . directWithVariable ( typeVariable , constraint ) c . insideOtherConstraint ( typeVariable , constraint ) }","docstring":""} {"signature":"private fun Context . areThereRecursiveConstraints ( typeVariable : TypeVariableMarker , constraint : Constraint )","body":"= constraint . type . contains { it . typeConstructor ( ) . unwrapStubTypeVariableConstructor ( ) == typeVariable . freshTypeConstructor ( ) }","docstring":""} {"signature":"private fun Context . directWithVariable ( typeVariable : TypeVariableMarker , constraint : Constraint , )","body":"{ val shouldBeTypeVariableFlexible = if ( useRefinedBoundsForTypeVariableInFlexiblePosition ( ) ) false else with ( utilContext ) { typeVariable . shouldBeFlexible ( ) } if ( constraint . kind != ConstraintKind . LOWER ) { forEachConstraint ( typeVariable ) { if ( it . kind != ConstraintKind . UPPER ) { addNewIncorporatedConstraint ( it . type , constraint . type , shouldBeTypeVariableFlexible , it . isNullabilityConstraint ) } } } if ( constraint . kind != ConstraintKind . UPPER ) { forEachConstraint ( typeVariable ) { if ( it . kind != ConstraintKind . LOWER ) { val isFromDeclaredUpperBound = it . position . from is DeclaredUpperBoundConstraintPosition < * > && ! it . type . typeConstructor ( ) . isTypeVariable ( ) addNewIncorporatedConstraint ( constraint . type , it . type , shouldBeTypeVariableFlexible , isFromDeclaredUpperBound = isFromDeclaredUpperBound ) } } } }","docstring":""} {"signature":"private inline fun Context . forEachConstraint ( typeVariable : TypeVariableMarker , action : ( Constraint ) -> Unit )","body":"{ val constraints = getConstraintsForVariable ( typeVariable ) var i = while ( i < constraints . size ) { action ( constraints [ i ++ ] ) } }","docstring":""} {"signature":"private fun Context . insideOtherConstraint ( typeVariable : TypeVariableMarker , constraint : Constraint , )","body":"{ val freshTypeConstructor = typeVariable . freshTypeConstructor ( ) for ( storageForOtherVariable in getVariablesWithConstraintsContainingGivenTypeVariable ( freshTypeConstructor ) ) { for ( otherConstraint in storageForOtherVariable . getConstraintsContainedSpecifiedTypeVariable ( freshTypeConstructor ) ) { generateNewConstraint ( typeVariable , constraint , storageForOtherVariable . typeVariable , otherConstraint ) } } }","docstring":""} {"signature":"private fun Context . generateNewConstraint ( causeOfIncorporationVariable : TypeVariableMarker , causeOfIncorporationConstraint : Constraint , otherVariable : TypeVariableMarker , otherConstraint : Constraint , )","body":"{ val isBaseGenericType = otherConstraint . type . argumentsCount ( ) != val isBaseOrOtherCapturedType = otherConstraint . type . isCapturedType ( ) || causeOfIncorporationConstraint . type . isCapturedType ( ) val ( type , needApproximation ) = when ( causeOfIncorporationConstraint . kind ) { ConstraintKind . EQUALITY -> { causeOfIncorporationConstraint . type to false } ConstraintKind . UPPER -> { if ( otherConstraint . kind == ConstraintKind . LOWER && ! isBaseGenericType && ! isBaseOrOtherCapturedType ) { nothingType ( ) to false } else if ( otherConstraint . kind == ConstraintKind . UPPER && ! isBaseGenericType && ! isBaseOrOtherCapturedType ) { causeOfIncorporationConstraint . type to false } else { createCapturedType ( createTypeArgument ( causeOfIncorporationConstraint . type , TypeVariance . OUT ) , listOf ( causeOfIncorporationConstraint . type ) , null , CaptureStatus . FOR_INCORPORATION ) to true } } ConstraintKind . LOWER -> { if ( otherConstraint . kind == ConstraintKind . UPPER && ! isBaseGenericType && ! isBaseOrOtherCapturedType ) { nullableAnyType ( ) to false } else if ( otherConstraint . kind == ConstraintKind . LOWER && ! isBaseGenericType && ! isBaseOrOtherCapturedType ) { causeOfIncorporationConstraint . type to false } else { createCapturedType ( createTypeArgument ( causeOfIncorporationConstraint . type , TypeVariance . IN ) , emptyList ( ) , causeOfIncorporationConstraint . type , CaptureStatus . FOR_INCORPORATION ) to true } } } approximateIfNeededAndAddNewConstraint ( causeOfIncorporationVariable , causeOfIncorporationConstraint , otherVariable , otherConstraint , type , needApproximation ) }","docstring":""} {"signature":"private fun Context . approximateIfNeededAndAddNewConstraint ( causeOfIncorporationVariable : TypeVariableMarker , causeOfIncorporationConstraint : Constraint , targetVariable : TypeVariableMarker , otherConstraint : Constraint , type : KotlinTypeMarker , needApproximation : Boolean = true , )","body":"{ val typeWithSubstitution = otherConstraint . type . substitute ( this , causeOfIncorporationVariable , type ) val prepareType = { toSuper : Boolean -> if ( needApproximation ) approximateCapturedTypes ( typeWithSubstitution , toSuper ) else typeWithSubstitution } if ( otherConstraint . kind != ConstraintKind . LOWER ) { addNewConstraint ( causeOfIncorporationVariable , causeOfIncorporationConstraint , targetVariable , otherConstraint , prepareType ( true ) , isSubtype = false ) } if ( otherConstraint . kind != ConstraintKind . UPPER ) { addNewConstraint ( causeOfIncorporationVariable , causeOfIncorporationConstraint , targetVariable , otherConstraint , prepareType ( false ) , isSubtype = true ) } }","docstring":""} {"signature":"private fun Context . addNewConstraint ( causeOfIncorporationVariable : TypeVariableMarker , causeOfIncorporationConstraint : Constraint , targetVariable : TypeVariableMarker , otherConstraint : Constraint , newConstraintType : KotlinTypeMarker , isSubtype : Boolean , )","body":"{ if ( targetVariable in getNestedTypeVariables ( newConstraintType ) ) return val isUsefulForNullabilityConstraint = isPotentialUsefulNullabilityConstraint ( newConstraintType , causeOfIncorporationConstraint . type , causeOfIncorporationConstraint . kind , ) val isFromVariableFixation = otherConstraint . position . from is FixVariableConstraintPosition < * > || causeOfIncorporationConstraint . position . from is FixVariableConstraintPosition < * > if ( ! causeOfIncorporationConstraint . kind . isEqual ( ) && ! isUsefulForNullabilityConstraint && ! isFromVariableFixation && ! containsConstrainingTypeWithoutProjection ( newConstraintType , causeOfIncorporationConstraint ) ) return if ( trivialConstraintTypeInferenceOracle . isGeneratedConstraintTrivial ( otherConstraint , causeOfIncorporationConstraint , newConstraintType , isSubtype ) ) return val derivedFrom = SmartSet . create ( otherConstraint . derivedFrom ) . also { it . addAll ( causeOfIncorporationConstraint . derivedFrom ) } if ( causeOfIncorporationVariable in derivedFrom ) return derivedFrom . add ( causeOfIncorporationVariable ) val kind = if ( isSubtype ) ConstraintKind . LOWER else ConstraintKind . UPPER val inputTypePosition = otherConstraint . position . from as? OnlyInputTypeConstraintPosition ? : otherConstraint . inputTypePositionBeforeIncorporation val isNewConstraintUsefulForNullability = isUsefulForNullabilityConstraint && newConstraintType . isNullableNothing ( ) val isOtherConstraintUsefulForNullability = causeOfIncorporationConstraint . isNullabilityConstraint && causeOfIncorporationConstraint . type . isNullableNothing ( ) val isNullabilityConstraint = isNewConstraintUsefulForNullability || isOtherConstraintUsefulForNullability val constraintContext = ConstraintContext ( kind , derivedFrom , inputTypePosition , isNullabilityConstraint ) addNewIncorporatedConstraint ( targetVariable , newConstraintType , constraintContext ) }","docstring":""} {"signature":"private fun Context . containsConstrainingTypeWithoutProjection ( newConstraint : KotlinTypeMarker , otherConstraint : Constraint , ) : Boolean","body":"{ return getNestedArguments ( newConstraint ) . any { it . getType ( ) . typeConstructor ( ) == otherConstraint . type . typeConstructor ( ) && it . getVariance ( ) == TypeVariance . INV } }","docstring":""} {"signature":"private fun Context . isPotentialUsefulNullabilityConstraint ( newConstraint : KotlinTypeMarker , otherConstraint : KotlinTypeMarker , kind : ConstraintKind , ) : Boolean","body":"{ if ( trivialConstraintTypeInferenceOracle . isSuitableResultedType ( newConstraint ) ) return false val otherConstraintCanAddNullabilityToNewOne = ! newConstraint . isNullableType ( ) && otherConstraint . isNullableType ( ) && kind == ConstraintKind . LOWER val newConstraintCanAddNullabilityToOtherOne = newConstraint . isNullableType ( ) && ! otherConstraint . isNullableType ( ) && kind == ConstraintKind . UPPER return otherConstraintCanAddNullabilityToNewOne || newConstraintCanAddNullabilityToOtherOne }","docstring":""} {"signature":"private fun Context . getNestedTypeVariables ( type : KotlinTypeMarker ) : List < TypeVariableMarker >","body":"= getNestedArguments ( type ) . mapNotNullTo ( SmartList ( ) ) { getTypeVariable ( it . getType ( ) . typeConstructor ( ) . unwrapStubTypeVariableConstructor ( ) ) }","docstring":""} {"signature":"private fun KotlinTypeMarker . substitute ( c : Context , typeVariable : TypeVariableMarker , value : KotlinTypeMarker ) : KotlinTypeMarker","body":"{ val substitutor = c . typeSubstitutorByTypeConstructor ( mapOf ( typeVariable . freshTypeConstructor ( c ) to value ) ) return substitutor . safeSubstitute ( c , this ) }","docstring":""} {"signature":"private fun approximateCapturedTypes ( type : KotlinTypeMarker , toSuper : Boolean ) : KotlinTypeMarker","body":"= if ( toSuper ) typeApproximator . approximateToSuperType ( type , TypeApproximatorConfiguration . IncorporationConfiguration ) ? : type else typeApproximator . approximateToSubType ( type , TypeApproximatorConfiguration . IncorporationConfiguration ) ? : type","docstring":""} {"signature":"private fun TypeSystemInferenceExtensionContext . getNestedArguments ( type : KotlinTypeMarker ) : List < TypeArgumentMarker >","body":"{ val result = SmartList < TypeArgumentMarker > ( ) val stack = ArrayDeque < TypeArgumentMarker > ( ) when ( type ) { is FlexibleTypeMarker -> { stack . push ( createTypeArgument ( type . lowerBound ( ) , TypeVariance . INV ) ) stack . push ( createTypeArgument ( type . upperBound ( ) , TypeVariance . INV ) ) } else -> stack . push ( createTypeArgument ( type , TypeVariance . INV ) ) } stack . push ( createTypeArgument ( type , TypeVariance . INV ) ) val addArgumentsToStack = { projectedType : KotlinTypeMarker -> for ( argumentIndex in until projectedType . argumentsCount ( ) ) { stack . add ( projectedType . getArgument ( argumentIndex ) ) } } while ( ! stack . isEmpty ( ) ) { val typeProjection = stack . pop ( ) if ( typeProjection . isStarProjection ( ) ) continue result . add ( typeProjection ) when ( val projectedType = typeProjection . getType ( ) ) { is FlexibleTypeMarker -> { addArgumentsToStack ( projectedType . lowerBound ( ) ) addArgumentsToStack ( projectedType . upperBound ( ) ) } else -> addArgumentsToStack ( projectedType ) } } return result }","docstring":""} {"signature":"override fun getInstance ( project : Project ) : JavaSourceSetsAccessor","body":"= JavaSourceSetsAccessorG70 ( project . convention )","docstring":""} {"signature":"override fun lower ( module : IrModuleFragment )","body":"{ if ( context . platform . isJvm ( ) ) { module . transformChildrenVoid ( this ) } }","docstring":""} {"signature":"override fun visitTypeOperator ( expression : IrTypeOperatorCall ) : IrExpression","body":"{ val functionExpr = expression . findSamFunctionExpr ( ) if ( functionExpr != null && expression . typeOperand . isComposableFunInterface ( ) ) { val argument = functionExpr . transform ( this , null ) as IrFunctionExpression val superType = expression . typeOperand val superClass = superType . classOrNull ? : error ( \"\" ) return FunctionReferenceBuilder ( argument , superClass , superType , currentDeclarationParent ! ! , context , currentScope ! ! . scope . scopeOwnerSymbol , IrTypeSystemContextImpl ( context . irBuiltIns ) ) . build ( ) } return super . visitTypeOperator ( expression ) }","docstring":""} {"signature":"private fun IrType . isComposableFunInterface ( ) : Boolean","body":"= classOrNull ? . functions ? . single { it . owner . modality == Modality . ABSTRACT } ? . owner ? . hasComposableAnnotation ( ) == true","docstring":""} {"signature":"internal fun IrTypeOperatorCall . findSamFunctionExpr ( ) : IrFunctionExpression ?","body":"{ val argument = argument val operator = operator val type = typeOperand val functionClass = type . classOrNull val isFunInterfaceConversion = operator == SAM_CONVERSION && functionClass != null && functionClass . owner . isFun return if ( isFunInterfaceConversion ) { when { argument is IrFunctionExpression && argument . origin . isLambda -> argument argument is IrTypeOperatorCall && argument . operator == IMPLICIT_CAST -> { val functionExpr = argument . argument functionExpr as? IrFunctionExpression } else -> null } } else { null } }","docstring":""} {"signature":"fun dispose ( )","body":"{ strong . dispose ( ) }","docstring":""} {"signature":"fun create ( )","body":"= ReferenceWrapper ( Data ( ) )","docstring":""} {"signature":"private fun ReferenceWrapper . stress ( )","body":"= ( .. REPEAT_COUNT ) . sumOf { this . value }","docstring":""} {"signature":"fun aliveReference ( )","body":"{ assertNotEquals ( , aliveRef . stress ( ) ) }","docstring":""} {"signature":"fun deadReference ( )","body":"{ assertEquals ( , deadRef . stress ( ) ) }","docstring":""} {"signature":"fun dyingReference ( )","body":"{ val ref = ReferenceWrapper . create ( ) ref . dispose ( ) GC . schedule ( ) Blackhole . consume ( ref . stress ( ) ) }","docstring":""} {"signature":"fun clean ( )","body":"{ weight . forEach { it . dispose ( ) } }","docstring":""} {"signature":"fun B . foo ( a : A ? )","body":"{ list . plusAssign ( mutableListOf ( \"\" ) ) with ( a ) { list . plusAssign ( mutableListOf ( \"\" ) ) list += mutableListOf ( \"\" ) } }","docstring":""} {"signature":"fun runBenchmark ( )","body":"{ main ( ) hello ( ) console . log ( \"\" ) }","docstring":""} {"signature":"abstract fun f ( ) : String","body":"abstract fun f ( ) : String","docstring":""} {"signature":"override fun toString ( )","body":"= f ( )","docstring":""} {"signature":"abstract fun bar ( ) : Any","body":"abstract fun bar ( ) : Any","docstring":""} {"signature":"inline fun < reified T > foo ( ) : G","body":"{ return object : G ( ) { override fun bar ( ) : Any { return object : A < T > ( ) { override fun f ( ) : String = \"\" } } } }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val y = foo < String > ( ) . bar ( ) ; assertEquals ( \"\" , y . toString ( ) ) assertEquals ( \"\" , y . javaClass . getGenericSuperclass ( ) ? . toString ( ) ) return \"\" }","docstring":""} {"signature":"public suspend fun < S , T : S > Flow < T > . reduce ( operation : suspend ( accumulator : S , value : T ) -> S ) : S","body":"{ var accumulator : Any ? = NULL collect { value -> accumulator = if ( accumulator !== NULL ) { @ Suppress ( \"\" ) operation ( accumulator as S , value ) } else { value } } if ( accumulator === NULL ) throw NoSuchElementException ( \"\" ) @ Suppress ( \"\" ) return accumulator as S }","docstring":"/**\n * Accumulates value starting with the first element and applying [operation] to current accumulator value and each element.\n * Throws [NoSuchElementException] if flow was empty.\n */"} {"signature":"public suspend inline fun < T , R > Flow < T > . fold ( initial : R , crossinline operation : suspend ( acc : R , value : T ) -> R ) : R","body":"{ var accumulator = initial collect { value -> accumulator = operation ( accumulator , value ) } return accumulator }","docstring":"/**\n * Accumulates value starting with [initial] value and applying [operation] current accumulator value and each element\n */"} {"signature":"public suspend fun < T > Flow < T > . single ( ) : T","body":"{ var result : Any ? = NULL collect { value -> require ( result === NULL ) { \"\" } result = value } if ( result === NULL ) throw NoSuchElementException ( \"\" ) return result as T }","docstring":"/**\n * The terminal operator that awaits for one and only one value to be emitted.\n * Throws [NoSuchElementException] for empty flow and [IllegalArgumentException] for flow\n * that contains more than one element.\n */"} {"signature":"public suspend fun < T > Flow < T > . singleOrNull ( ) : T ?","body":"{ var result : Any ? = NULL collectWhile { if ( result === NULL ) { result = it true } else { result = NULL false } } return if ( result === NULL ) null else result as T }","docstring":"/**\n * The terminal operator that awaits for one and only one value to be emitted.\n * Returns the single value or `null`, if the flow was empty or emitted more than one value.\n */"} {"signature":"public suspend fun < T > Flow < T > . first ( ) : T","body":"{ var result : Any ? = NULL collectWhile { result = it false } if ( result === NULL ) throw NoSuchElementException ( \"\" ) return result as T }","docstring":"/**\n * The terminal operator that returns the first element emitted by the flow and then cancels flow's collection.\n * Throws [NoSuchElementException] if the flow was empty.\n */"} {"signature":"public suspend fun < T > Flow < T > . first ( predicate : suspend ( T ) -> Boolean ) : T","body":"{ var result : Any ? = NULL collectWhile { if ( predicate ( it ) ) { result = it false } else { true } } if ( result === NULL ) throw NoSuchElementException ( \"\" ) return result as T }","docstring":"/**\n * The terminal operator that returns the first element emitted by the flow matching the given [predicate] and then cancels flow's collection.\n * Throws [NoSuchElementException] if the flow has not contained elements matching the [predicate].\n */"} {"signature":"public suspend fun < T > Flow < T > . firstOrNull ( ) : T ?","body":"{ var result : T ? = null collectWhile { result = it false } return result }","docstring":"/**\n * The terminal operator that returns the first element emitted by the flow and then cancels flow's collection.\n * Returns `null` if the flow was empty.\n */"} {"signature":"public suspend fun < T > Flow < T > . firstOrNull ( predicate : suspend ( T ) -> Boolean ) : T ?","body":"{ var result : T ? = null collectWhile { if ( predicate ( it ) ) { result = it false } else { true } } return result }","docstring":"/**\n * The terminal operator that returns the first element emitted by the flow matching the given [predicate] and then cancels flow's collection.\n * Returns `null` if the flow did not contain an element matching the [predicate].\n */"} {"signature":"public suspend fun < T > Flow < T > . last ( ) : T","body":"{ var result : Any ? = NULL collect { result = it } if ( result === NULL ) throw NoSuchElementException ( \"\" ) return result as T }","docstring":"/**\n * The terminal operator that returns the last element emitted by the flow.\n *\n * Throws [NoSuchElementException] if the flow was empty.\n */"} {"signature":"public suspend fun < T > Flow < T > . lastOrNull ( ) : T ?","body":"{ var result : T ? = null collect { result = it } return result }","docstring":"/**\n * The terminal operator that returns the last element emitted by the flow or `null` if the flow was empty.\n */"} {"signature":"private fun Json ( discriminator : String , useArrayPolymorphism : Boolean = false )","body":"= Json { classDiscriminator = discriminator this . useArrayPolymorphism = useArrayPolymorphism }","docstring":""} {"signature":"@ Test fun testCollisionWithDiscriminator ( )","body":"{ assertFailsWith < IllegalStateException > { Json ( \"\" ) . encodeToString ( Base . serializer ( ) , Base . Child ( \"\" ) ) } assertFailsWith < IllegalStateException > { Json ( \"\" ) . encodeToString ( Base . serializer ( ) , Base . Child ( \"\" ) ) } Json ( \"\" ) . encodeToString ( Base . serializer ( ) , Base . Child ( \"\" ) ) }","docstring":""} {"signature":"@ Test fun testNoCollisionWithArrayPolymorphism ( )","body":"{ Json ( \"\" , true ) . encodeToString ( Base . serializer ( ) , Base . Child ( \"\" ) ) }","docstring":""} {"signature":"@ Test fun testDescriptorInitializerFailure ( )","body":"{ BaseCollision . Child ( ) BaseCollision . ChildCollided ( ) BaseCollision . ChildCollided . serializer ( ) . descriptor assertFailsWith < IllegalStateException > { BaseCollision . serializer ( ) . descriptor } }","docstring":""} {"signature":"abstract fun interestedIn ( key : GeneratedDeclarationKey ? ) : Boolean","body":"abstract fun interestedIn ( key : GeneratedDeclarationKey ? ) : Boolean","docstring":""} {"signature":"abstract fun generateBodyForFunction ( function : IrSimpleFunction , key : GeneratedDeclarationKey ? ) : IrBody ?","body":"abstract fun generateBodyForFunction ( function : IrSimpleFunction , key : GeneratedDeclarationKey ? ) : IrBody ?","docstring":""} {"signature":"abstract fun generateBodyForConstructor ( constructor : IrConstructor , key : GeneratedDeclarationKey ? ) : IrBody ?","body":"abstract fun generateBodyForConstructor ( constructor : IrConstructor , key : GeneratedDeclarationKey ? ) : IrBody ?","docstring":""} {"signature":"final override fun visitElement ( element : IrElement )","body":"{ if ( visitBodies ) { element . acceptChildrenVoid ( this ) } else { when ( element ) { is IrDeclaration , is IrFile , is IrModuleFragment -> element . acceptChildrenVoid ( this ) else -> { } } } }","docstring":""} {"signature":"final override fun visitSimpleFunction ( declaration : IrSimpleFunction )","body":"{ val origin = declaration . origin if ( origin !is GeneratedByPlugin || ! interestedIn ( origin . pluginKey ) ) { if ( visitBodies ) { visitElement ( declaration ) } return } require ( declaration . body == null ) declaration . body = generateBodyForFunction ( declaration , origin . pluginKey ) }","docstring":""} {"signature":"final override fun visitConstructor ( declaration : IrConstructor )","body":"{ val origin = declaration . origin if ( origin !is GeneratedByPlugin || ! interestedIn ( origin . pluginKey ) || declaration . body != null ) { if ( visitBodies ) { visitElement ( declaration ) } return } declaration . body = generateBodyForConstructor ( declaration , origin . pluginKey ) }","docstring":""} {"signature":"protected fun generateDefaultBodyForMaterializeFunction ( function : IrSimpleFunction ) : IrBody ?","body":"{ val constructedType = function . returnType as? IrSimpleType ? : return null val constructedClassSymbol = constructedType . classifier val constructedClass = constructedClassSymbol . owner as? IrClass ? : return null val constructor = constructedClass . primaryConstructor ? : return null val constructorCall = IrConstructorCallImpl ( - , - , constructedType , constructor . symbol , typeArgumentsCount = , constructorTypeArgumentsCount = , valueArgumentsCount = ) val returnStatement = IrReturnImpl ( - , - , irBuiltIns . nothingType , function . symbol , constructorCall ) return irFactory . createBlockBody ( - , - , listOf ( returnStatement ) ) }","docstring":""} {"signature":"protected fun generateBodyForDefaultConstructor ( declaration : IrConstructor ) : IrBody ?","body":"{ val type = declaration . returnType as? IrSimpleType ? : return null val delegatingAnyCall = IrDelegatingConstructorCallImpl ( - , - , irBuiltIns . anyType , irBuiltIns . anyClass . owner . primaryConstructor ? . symbol ? : return null , typeArgumentsCount = , valueArgumentsCount = ) val initializerCall = IrInstanceInitializerCallImpl ( - , - , ( declaration . parent as? IrClass ) ? . symbol ? : return null , type ) return irFactory . createBlockBody ( - , - , listOf ( delegatingAnyCall , initializerCall ) ) }","docstring":""} {"signature":"override fun create ( entries : Array < out Map . Entry < String , String > > ) : Map < String , String >","body":"{ return persistentHashMapOf ( * entries . map { it . key to it . value } . toTypedArray ( ) ) }","docstring":""} {"signature":"override fun create ( entries : Array < out Map . Entry < String , String > > ) : Map < String , String >","body":"{ val map = mutableMapOf < String , String > ( ) . apply { entries . forEach { this [ it . key ] = it . value } } return persistentHashMapOf < String , String > ( ) . putAll ( map ) }","docstring":""} {"signature":"override fun create ( entries : Array < out Map . Entry < String , String > > ) : Map < String , String >","body":"{ return entries . fold ( persistentHashMapOf ( ) ) { map , entry -> map . put ( entry . key , entry . value ) } }","docstring":""} {"signature":"override fun create ( entries : Array < out Map . Entry < String , String > > ) : Map < String , String >","body":"{ val map = mutableMapOf < String , String > ( ) . apply { entries . forEach { this [ it . key ] = it . value } } return persistentHashMapOf < String , String > ( ) . mutate { it . putAll ( map ) } }","docstring":""} {"signature":"override fun create ( entries : Array < out Map . Entry < String , String > > ) : Map < String , String >","body":"{ return persistentHashMapOf < String , String > ( ) . mutate { builder -> entries . forEach { builder [ it . key ] = it . value } } }","docstring":""} {"signature":"override fun create ( entries : Array < out Map . Entry < String , String > > ) : MutableMap < String , String >","body":"{ return persistentHashMapOf ( * entries . map { it . key to it . value } . toTypedArray ( ) ) . builder ( ) }","docstring":""} {"signature":"override fun create ( entries : Array < out Map . Entry < String , String > > ) : MutableMap < String , String >","body":"{ val map = mutableMapOf < String , String > ( ) . apply { entries . forEach { this [ it . key ] = it . value } } return persistentHashMapOf < String , String > ( ) . builder ( ) . apply { putAll ( map ) } }","docstring":""} {"signature":"override fun create ( entries : Array < out Map . Entry < String , String > > ) : MutableMap < String , String >","body":"{ return persistentHashMapOf < String , String > ( ) . builder ( ) . apply { entries . forEach { this [ it . key ] = it . value } } }","docstring":""} {"signature":"override fun create ( entries : Array < out Map . Entry < String , String > > ) : Map < String , String >","body":"{ return persistentMapOf ( * entries . map { it . key to it . value } . toTypedArray ( ) ) }","docstring":""} {"signature":"override fun create ( entries : Array < out Map . Entry < String , String > > ) : Map < String , String >","body":"{ val map = mutableMapOf < String , String > ( ) . apply { entries . forEach { this [ it . key ] = it . value } } return persistentMapOf < String , String > ( ) . putAll ( map ) }","docstring":""} {"signature":"override fun create ( entries : Array < out Map . Entry < String , String > > ) : Map < String , String >","body":"{ return entries . fold ( persistentMapOf ( ) ) { map , entry -> map . put ( entry . key , entry . value ) } }","docstring":""} {"signature":"override fun create ( entries : Array < out Map . Entry < String , String > > ) : Map < String , String >","body":"{ val map = mutableMapOf < String , String > ( ) . apply { entries . forEach { this [ it . key ] = it . value } } return persistentMapOf < String , String > ( ) . mutate { it . putAll ( map ) } }","docstring":""} {"signature":"override fun create ( entries : Array < out Map . Entry < String , String > > ) : Map < String , String >","body":"{ return persistentMapOf < String , String > ( ) . mutate { builder -> entries . forEach { builder [ it . key ] = it . value } } }","docstring":""} {"signature":"override fun create ( entries : Array < out Map . Entry < String , String > > ) : MutableMap < String , String >","body":"{ return persistentMapOf ( * entries . map { it . key to it . value } . toTypedArray ( ) ) . builder ( ) }","docstring":""} {"signature":"override fun create ( entries : Array < out Map . Entry < String , String > > ) : MutableMap < String , String >","body":"{ val map = mutableMapOf < String , String > ( ) . apply { entries . forEach { this [ it . key ] = it . value } } return persistentMapOf < String , String > ( ) . builder ( ) . apply { putAll ( map ) } }","docstring":""} {"signature":"override fun create ( entries : Array < out Map . Entry < String , String > > ) : MutableMap < String , String >","body":"{ return persistentMapOf < String , String > ( ) . builder ( ) . apply { entries . forEach { this [ it . key ] = it . value } } }","docstring":""} {"signature":"public fun < T : Number , D : Dimension > MultiArray < T , D > . toSortedSet ( ) : java . util . SortedSet < T >","body":"{ return toCollection ( java . util . TreeSet ( ) ) }","docstring":"/**\n * Returns a [SortedSet][java.util.SortedSet] of all elements.\n */"} {"signature":"public fun < T , D : Dimension > MultiArray < T , D > . toSortedSet ( comparator : Comparator < in T > ) : java . util . SortedSet < T >","body":"{ return toCollection ( java . util . TreeSet ( comparator ) ) }","docstring":"/**\n * Returns a [SortedSet][java.util.SortedSet] of all elements.\n *\n * Elements in the set returned are sorted according to the given [comparator].\n */"} {"signature":"fun < T : In < T > > foo ( o : Out < T > ) : Recursive < T > ?","body":"= null","docstring":""} {"signature":"fun test ( o : Out < Parent > )","body":"{ foo ( o ) ? : return }","docstring":""} {"signature":"private inline fun < reified T : NativeBinary > getBinary ( namePrefix : String , buildType : NativeBuildType , outputKind : NativeOutputKind ) : T","body":"{ val classifier = outputKind . taskNameClassifier val name = generateBinaryName ( namePrefix , buildType , classifier ) val binary = getByName ( name ) require ( binary is T && binary . buildType == buildType ) { \"\" + \"\" } return binary }","docstring":""} {"signature":"private inline fun < reified T : NativeBinary > findBinary ( namePrefix : String , buildType : NativeBuildType , outputKind : NativeOutputKind ) : T ?","body":"{ val classifier = outputKind . taskNameClassifier val name = generateBinaryName ( namePrefix , buildType , classifier ) val binary = findByName ( name ) return if ( binary is T && binary . buildType == buildType ) { binary } else { null } }","docstring":""} {"signature":"override fun getByName ( name : String ) : NativeBinary","body":"= nameToBinary . getValue ( name )","docstring":""} {"signature":"override fun findByName ( name : String ) : NativeBinary ?","body":"= nameToBinary [ name ]","docstring":""} {"signature":"override fun getExecutable ( namePrefix : String , buildType : NativeBuildType ) : Executable","body":"{ return getBinary ( namePrefix , buildType , NativeOutputKind . EXECUTABLE ) }","docstring":""} {"signature":"override fun getStaticLib ( namePrefix : String , buildType : NativeBuildType ) : StaticLibrary","body":"= getBinary ( namePrefix , buildType , NativeOutputKind . STATIC )","docstring":""} {"signature":"override fun getSharedLib ( namePrefix : String , buildType : NativeBuildType ) : SharedLibrary","body":"= getBinary ( namePrefix , buildType , NativeOutputKind . DYNAMIC )","docstring":""} {"signature":"override fun getFramework ( namePrefix : String , buildType : NativeBuildType ) : Framework","body":"= getBinary ( namePrefix , buildType , NativeOutputKind . FRAMEWORK )","docstring":""} {"signature":"override fun getTest ( namePrefix : String , buildType : NativeBuildType ) : TestExecutable","body":"= getBinary ( namePrefix , buildType , NativeOutputKind . TEST )","docstring":""} {"signature":"override fun findExecutable ( namePrefix : String , buildType : NativeBuildType ) : Executable ?","body":"{ return findBinary ( namePrefix , buildType , NativeOutputKind . EXECUTABLE ) }","docstring":""} {"signature":"override fun findStaticLib ( namePrefix : String , buildType : NativeBuildType ) : StaticLibrary ?","body":"= findBinary ( namePrefix , buildType , NativeOutputKind . STATIC )","docstring":""} {"signature":"override fun findSharedLib ( namePrefix : String , buildType : NativeBuildType ) : SharedLibrary ?","body":"= findBinary ( namePrefix , buildType , NativeOutputKind . DYNAMIC )","docstring":""} {"signature":"override fun findFramework ( namePrefix : String , buildType : NativeBuildType ) : Framework ?","body":"= findBinary ( namePrefix , buildType , NativeOutputKind . FRAMEWORK )","docstring":""} {"signature":"override fun findTest ( namePrefix : String , buildType : NativeBuildType ) : TestExecutable ?","body":"= findBinary ( namePrefix , buildType , NativeOutputKind . TEST )","docstring":""} {"signature":"override fun < T : NativeBinary > createBinaries ( namePrefix : String , baseName : String , outputKind : NativeOutputKind , buildTypes : Collection < NativeBuildType > , create : ( name : String , baseName : String , buildType : NativeBuildType , compilation : KotlinNativeCompilation ) -> T , configure : T . ( ) -> Unit )","body":"{ val prefixGroup = prefixGroups . findByName ( namePrefix ) ? : PrefixGroup ( namePrefix ) . also { prefixGroups . add ( it ) } buildTypes . forEach { buildType -> val name = generateBinaryName ( namePrefix , buildType , outputKind . taskNameClassifier ) require ( name !in nameToBinary ) { \"\" } require ( outputKind . availableFor ( target . konanTarget ) ) { \"\" } val compilation = if ( outputKind == NativeOutputKind . TEST ) defaultTestCompilation else defaultCompilation val binary = create ( name , baseName , buildType , compilation ) add ( binary ) prefixGroup . binaries . add ( binary ) nameToBinary [ binary . name ] = binary if ( this is ExtensionAware ) { extensions . add ( binary . name , binary ) } binary . configure ( ) } }","docstring":""} {"signature":"internal fun generateBinaryName ( prefix : String , buildType : NativeBuildType , outputKindClassifier : String )","body":"= lowerCamelCaseName ( prefix , buildType . getName ( ) , outputKindClassifier )","docstring":""} {"signature":"internal fun extractPrefixFromBinaryName ( name : String , buildType : NativeBuildType , outputKindClassifier : String ) : String","body":"{ val suffix = lowerCamelCaseName ( buildType . getName ( ) , outputKindClassifier ) return if ( name == suffix ) \"\" else name . substringBeforeLast ( suffix . capitalizeAsciiOnly ( ) ) }","docstring":""} {"signature":"override fun getName ( ) : String","body":"= name","docstring":""} {"signature":"@ PublishedApi internal fun < T : Enum < T > > enumValuesIntrinsic ( ) : Array < T >","body":"= throw IllegalStateException ( \"\" )","docstring":""} {"signature":"@ PublishedApi internal fun < T : Enum < T > > enumValueOfIntrinsic ( @ Suppress ( \"\" ) name : String ) : T","body":"= throw IllegalStateException ( \"\" )","docstring":""} {"signature":"@ Deprecated ( \"\" , level = DeprecationLevel . HIDDEN ) internal fun safePropertyGet ( self : dynamic , getterName : String , propName : String ) : dynamic","body":"{ val getter = self [ getterName ] return if ( getter != null ) getter . call ( self ) else self [ propName ] }","docstring":""} {"signature":"@ Deprecated ( \"\" , level = DeprecationLevel . HIDDEN ) internal fun safePropertySet ( self : dynamic , setterName : String , propName : String , value : dynamic )","body":"{ val setter = self [ setterName ] if ( setter != null ) setter . call ( self , value ) else self [ propName ] = value }","docstring":""} {"signature":"fun main ( )","body":"{ fun foo ( ) { } fun bar ( x : Int ) { } fun baz ( ) = \"\" val x = :: foo val y = :: bar val z = :: baz checkSubtype < KFunction0 < Unit > > ( x ) checkSubtype < KFunction1 < Int , Unit > > ( y ) checkSubtype < KFunction0 < String > > ( z ) }","docstring":""} {"signature":"override fun invoke ( modules : List < DModule > ) : List < DModule >","body":"{ return modules . filter { it . children . isNotEmpty ( ) } }","docstring":""} {"signature":"internal fun __ieee754_log ( _x : Double ) : Double","body":"{ var x : Double = _x var hfsq : Double var f : Double var s : Double var z : Double var R : Double var w : Double var t1 : Double var t2 : Double var dk : Double var k : Int var hx : Int var i : Int var j : Int var lx : UInt hx = __HI ( x ) lx = __LOu ( x ) k = if ( hx < ) { if ( ( ( hx and ) or lx . toInt ( ) ) == ) return Double . NEGATIVE_INFINITY if ( hx < ) return Double . NaN k -= ; x *= two54 hx = __HI ( x ) } if ( hx >= ) return x + x k += ( hx shr ) - hx = hx and i = ( hx + ) and x = doubleSetWord ( d = x , hi = hx or ( i xor ) ) k += ( i shr ) f = x - if ( ( and ( + hx ) ) < ) { if ( f == zero ) if ( k == ) return zero ; else { dk = k . toDouble ( ) return dk * ln2_hi + dk * ln2_lo } R = f * f * ( - * f ) if ( k == ) return f - R ; else { dk = k . toDouble ( ) return dk * ln2_hi - ( ( R - dk * ln2_lo ) - f ) } } s = f / ( + f ) dk = k . toDouble ( ) z = s * s i = hx - w = z * z j = - hx t1 = w * ( Lg2 + w * ( Lg4 + w * Lg6 ) ) t2 = z * ( Lg1 + w * ( Lg3 + w * ( Lg5 + w * Lg7 ) ) ) i = i or j R = t2 + t1 if ( i > ) { hfsq = * f * f if ( k == ) return f - ( hfsq - s * ( hfsq + R ) ) ; else return dk * ln2_hi - ( ( hfsq - ( s * ( hfsq + R ) + dk * ln2_lo ) ) - f ) } else { if ( k == ) return f - s * ( f - R ) ; else return dk * ln2_hi - ( ( s * ( f - R ) - dk * ln2_lo ) - f ) } }","docstring":""} {"signature":"fun < T > eval ( fn : ( ) -> T )","body":"= fn ( )","docstring":""} {"signature":"fun bar ( ) : Any","body":"{ return eval { eval { class Local : Inner ( ) { override fun toString ( ) = foo ( ) } Local ( ) } } }","docstring":""} {"signature":"fun foo ( )","body":"= \"\"","docstring":""} {"signature":"fun box ( ) : String","body":"= A ( ) . bar ( ) . toString ( )","docstring":""} {"signature":"fun foo ( x : Int )","body":"{ when ( x ) { -> } }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val s = StringBuilder ( ) for ( ( index , x ) in xs . withIndex ( ) ) { return \"\" } return \"\" }","docstring":""} {"signature":"fun ffgg ( ) : List < CharSequence >","body":"= ArrayList ( )","docstring":""} {"signature":"fun f ( x : String = \"\" ) : String","body":"fun f ( x : String = \"\" ) : String","docstring":""} {"signature":"fun g ( x : String = \"\" ) : String","body":"fun g ( x : String = \"\" ) : String","docstring":""} {"signature":"fun h ( x : T = prop ) : T","body":"fun h ( x : T = prop ) : T","docstring":""} {"signature":"override fun f ( x : String ) : String","body":"override fun f ( x : String ) : String","docstring":""} {"signature":"override fun g ( x : String ) : String","body":"override fun g ( x : String ) : String","docstring":""} {"signature":"override fun h ( x : T ) : T","body":"override fun h ( x : T ) : T","docstring":""} {"signature":"open fun f ( x : String )","body":"= x","docstring":""} {"signature":"open fun g ( x : T )","body":"= x","docstring":""} {"signature":"open fun h ( x : String )","body":"= x","docstring":""} {"signature":"fun box ( ) : String","body":"{ val i : I < String > = B ( ) var result = i . f ( ) + i . g ( ) + i . h ( ) if ( result != \"\" ) return \"\" val b = B ( ) result = b . f ( ) + b . g ( ) + b . h ( ) if ( result != \"\" ) return \"\" val a : A < String > = B ( ) result = a . f ( \"\" ) + a . g ( \"\" ) + a . h ( \"\" ) if ( result != \"\" ) return \"\" return \"\" }","docstring":""} {"signature":"fun test ( ) : String","body":"{ z = \"\" return z }","docstring":""} {"signature":"fun box ( ) : String","body":"{ return Test ( ) . test ( ) }","docstring":""} {"signature":"fun Project . overridePublicationArtifactId ( artifactId : String , publicationName : String = PublicationName . JVM )","body":"{ extensions . configure < PublishingExtension > { publications . withType < MavenPublication > ( ) . named ( publicationName ) { this . artifactId = artifactId } } }","docstring":""} {"signature":"open fun asObject ( ) : JsonObject","body":"= throw NotImplementedError ( \"\" + toString ( ) )","docstring":""} {"signature":"open fun asArray ( ) : JsonArray","body":"= throw NotImplementedError ( \"\" + toString ( ) )","docstring":""} {"signature":"fun test1 ( )","body":"= ok","docstring":""} {"signature":"fun test2 ( x : String )","body":"= x","docstring":""} {"signature":"fun test3 ( ) : String","body":"{ val x = \"\" return x }","docstring":""} {"signature":"fun test4 ( )","body":"= ok3","docstring":""} {"signature":"fun String . test5 ( )","body":"= okext","docstring":""} {"signature":"override fun check ( declaration : FirSimpleFunction , context : CheckerContext , reporter : DiagnosticReporter )","body":"{ if ( ! declaration . isTailRec ) return if ( ! ( declaration . isEffectivelyFinal ( context ) || declaration . visibility == Visibilities . Private ) ) { reporter . reportOn ( declaration . source , FirErrors . TAILREC_ON_VIRTUAL_MEMBER_ERROR , context ) } val graph = declaration . controlFlowGraphReference ? . controlFlowGraph ? : return var tryScopeCount = var catchScopeCount = var finallyScopeCount = var tailrecCount = graph . traverse ( object : ControlFlowGraphVisitorVoid ( ) { override fun visitNode ( node : CFGNode < * > ) { } override fun visitTryMainBlockEnterNode ( node : TryMainBlockEnterNode ) { tryScopeCount ++ } override fun visitTryMainBlockExitNode ( node : TryMainBlockExitNode ) { tryScopeCount -- } override fun visitCatchClauseEnterNode ( node : CatchClauseEnterNode ) { catchScopeCount ++ } override fun visitCatchClauseExitNode ( node : CatchClauseExitNode ) { catchScopeCount -- } override fun visitFinallyBlockEnterNode ( node : FinallyBlockEnterNode ) { finallyScopeCount ++ } override fun visitFinallyBlockExitNode ( node : FinallyBlockExitNode ) { finallyScopeCount -- } override fun visitFunctionCallNode ( node : FunctionCallNode ) { val functionCall = node . fir val resolvedSymbol = functionCall . calleeReference . toResolvedCallableSymbol ( ) as? FirNamedFunctionSymbol ? : return if ( resolvedSymbol != declaration . symbol ) return if ( functionCall . arguments . size != resolvedSymbol . valueParameterSymbols . size && resolvedSymbol . isOverride ) { reporter . reportOn ( functionCall . source , FirErrors . NON_TAIL_RECURSIVE_CALL , context ) return } val dispatchReceiver = functionCall . dispatchReceiver val dispatchReceiverOwner = declaration . dispatchReceiverType ? . toSymbol ( context . session ) as? FirClassSymbol < * > val sameReceiver = dispatchReceiver == null || ( dispatchReceiver is FirThisReceiverExpression && dispatchReceiver . calleeReference . boundSymbol == dispatchReceiverOwner ) || dispatchReceiverOwner ? . classKind ? . isSingleton == true if ( ! sameReceiver ) { reporter . reportOn ( functionCall . source , FirErrors . NON_TAIL_RECURSIVE_CALL , context ) } else if ( tryScopeCount > || catchScopeCount > || finallyScopeCount > ) { reporter . reportOn ( functionCall . source , FirErrors . TAIL_RECURSION_IN_TRY_IS_NOT_SUPPORTED , context ) } else if ( node . hasMoreFollowingInstructions ( declaration ) ) { reporter . reportOn ( functionCall . source , FirErrors . NON_TAIL_RECURSIVE_CALL , context ) } else if ( ! node . isDead ) { tailrecCount ++ } } } ) if ( tailrecCount == ) { reporter . reportOn ( declaration . source , FirErrors . NO_TAIL_CALLS_FOUND , context ) } }","docstring":""} {"signature":"private fun CFGNode < * > . hasMoreFollowingInstructions ( tailrecFunction : FirSimpleFunction ) : Boolean","body":"{ for ( next in followingNodes ) { val edge = edgeTo ( next ) if ( ! edge . kind . usedInCfa || edge . kind . isDead ) continue if ( edge . kind . isBack ) return true val hasMore = when ( next ) { is FunctionExitNode -> return next . fir != tailrecFunction is JumpNode , is BinaryAndExitNode , is BinaryOrExitNode , is WhenBranchResultExitNode , is WhenExitNode , is BlockExitNode , is ExitSafeCallNode -> next . hasMoreFollowingInstructions ( tailrecFunction ) else -> return true } if ( hasMore ) return hasMore } return false }","docstring":""} {"signature":"override fun create ( typeSpecificityComparator : TypeSpecificityComparator , components : InferenceComponents , transformerComponents : BodyResolveComponents ) : ConeCompositeConflictResolver","body":"{ val specificityComparator = TypeSpecificityComparator . NONE return ConeCompositeConflictResolver ( ConeEquivalentCallConflictResolver ( specificityComparator , components , transformerComponents ) , ConeIntegerOperatorConflictResolver , ConeOverloadConflictResolver ( specificityComparator , components , transformerComponents ) , ) }","docstring":""} {"signature":"fun builder ( c : suspend ( ) -> Unit )","body":"{ c . startCoroutine ( EmptyContinuation ) }","docstring":""} {"signature":"suspend fun < T , R > foo ( x : T ) : R","body":"= TODO ( )","docstring":""} {"signature":"suspend fun < T > fooReturnLong ( x : T ) : Long","body":"= ","docstring":""} {"signature":"suspend fun Int . suspendToString ( ) : String","body":"= toString ( )","docstring":""} {"signature":"suspend inline fun < reified T , reified R > check ( x : T , y : R , f : suspend ( T ) -> R , tType : String , rType : String )","body":"{ assertEquals ( tType , T :: class . simpleName ) assertEquals ( rType , R :: class . simpleName ) }","docstring":""} {"signature":"suspend inline fun < reified T , reified R > check ( f : suspend ( T ) -> R , g : suspend ( T ) -> R , tType : String , rType : String )","body":"{ assertEquals ( tType , T :: class . simpleName ) assertEquals ( rType , R :: class . simpleName ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ builder { check ( \"\" , , :: foo , \"\" , \"\" ) check ( \"\" , , :: fooReturnLong , \"\" , \"\" ) check ( \"\" , \"\" , :: fooReturnLong , \"\" , \"\" ) check ( Int :: suspendToString , :: foo , \"\" , \"\" ) } return \"\" }","docstring":""} {"signature":"override fun write ( rangeStart : List < Int > , rangeEnd : List < Int > , rangeCategory : List < Int > , writer : FileWriter )","body":"{ check ( rangeStart . indices . all { rangeEnd [ it ] - rangeStart [ it ] == } ) strategy . beforeWritingRanges ( writer ) writer . writeIntArray ( \"\" , rangeStart , strategy ) strategy . afterWritingRanges ( writer ) writer . appendLine ( ) writer . appendLine ( binarySearchRange ( ) ) writer . appendLine ( ) writer . appendLine ( digitToIntImpl ( ) ) writer . appendLine ( ) writer . appendLine ( isDigitImpl ( ) ) }","docstring":""} {"signature":"private fun binarySearchRange ( ) : String","body":"= \"\"\"\"\"\" . trimIndent ( )","docstring":""} {"signature":"private fun digitToIntImpl ( ) : String","body":"{ val rangeStart = strategy . rangeRef ( \"\" ) return \"\"\"\"\"\" . trimIndent ( ) }","docstring":""} {"signature":"private fun isDigitImpl ( ) : String","body":"{ return \"\"\"\"\"\" . trimIndent ( ) }","docstring":""} {"signature":"fun serializeTo ( element : Element ) : Element","body":"fun serializeTo ( element : Element ) : Element","docstring":""} {"signature":"override fun serializeTo ( element : Element ) : Element","body":"= Element ( COMPILER_ARGUMENTS_ELEMENT_NAME ) . apply { val newInstance = arguments :: class . java . getConstructor ( ) . newInstance ( ) val flagArgumentsByName = CompilerArgumentsContentProspector . getFlagCompilerArgumentProperties ( arguments :: class ) . mapNotNull { prop -> prop . safeAs < KProperty1 < T , Boolean ? > > ( ) ? . takeIf { it . get ( arguments ) != it . get ( newInstance ) } ? . get ( arguments ) ? . let { prop . name to it } } . toMap ( ) saveFlagArguments ( this , flagArgumentsByName ) val stringArgumentsByName = CompilerArgumentsContentProspector . getStringCompilerArgumentProperties ( arguments :: class ) . mapNotNull { prop -> prop . safeAs < KProperty1 < T , String ? > > ( ) ? . takeIf { it . get ( arguments ) != it . get ( newInstance ) } ? . get ( arguments ) ? . let { prop . name to it } } . toMap ( ) saveStringArguments ( this , stringArgumentsByName ) val arrayArgumentsByName = CompilerArgumentsContentProspector . getArrayCompilerArgumentProperties ( arguments :: class ) . mapNotNull { prop -> prop . safeAs < KProperty1 < T , Array < String > ? > > ( ) ? . takeIf { it . get ( arguments ) ? . contentEquals ( it . get ( newInstance ) ) != true } ? . get ( arguments ) ? . let { prop . name to it } } . toMap ( ) saveArrayArguments ( this , arrayArgumentsByName ) val freeArgs = CompilerArgumentsContentProspector . freeArgsProperty . get ( arguments ) saveElementsList ( this , FREE_ARGS_ROOT_ELEMENTS_NAME , FREE_ARGS_ELEMENT_NAME , freeArgs ) val internalArguments = CompilerArgumentsContentProspector . internalArgumentsProperty . get ( arguments ) . map { it . stringRepresentation } saveElementsList ( this , INTERNAL_ARGS_ROOT_ELEMENTS_NAME , INTERNAL_ARGS_ELEMENT_NAME , internalArguments ) restoreNormalOrdering ( arguments ) element . addContent ( this ) }","docstring":""} {"signature":"private fun saveElementConfigurable ( element : Element , rootElementName : String , configurable : Element . ( ) -> Unit )","body":"{ element . addContent ( Element ( rootElementName ) . apply { configurable ( this ) } ) }","docstring":""} {"signature":"private fun saveStringArguments ( element : Element , argumentsByName : Map < String , String > )","body":"{ if ( argumentsByName . isEmpty ( ) ) return saveElementConfigurable ( element , STRING_ROOT_ELEMENTS_NAME ) { argumentsByName . entries . forEach { ( name , arg ) -> Element ( STRING_ELEMENT_NAME ) . also { it . setAttribute ( NAME_ATTR_NAME , name ) if ( name == \"\" ) { saveElementsList ( it , ARGS_ATTR_NAME , ARG_ATTR_NAME , arg . split ( File . pathSeparator ) ) } else { it . setAttribute ( ARG_ATTR_NAME , arg ) } addContent ( it ) } } } }","docstring":""} {"signature":"private fun saveFlagArguments ( element : Element , argumentsByName : Map < String , Boolean > )","body":"{ if ( argumentsByName . isEmpty ( ) ) return saveElementConfigurable ( element , FLAG_ROOT_ELEMENTS_NAME ) { argumentsByName . entries . forEach { ( name , arg ) -> Element ( FLAG_ELEMENT_NAME ) . also { it . setAttribute ( NAME_ATTR_NAME , name ) it . setAttribute ( ARG_ATTR_NAME , arg . toString ( ) ) addContent ( it ) } } } }","docstring":""} {"signature":"private fun saveElementsList ( element : Element , rootElementName : String , elementName : String , elementList : List < String > )","body":"{ if ( elementList . isEmpty ( ) ) return saveElementConfigurable ( element , rootElementName ) { val singleModule = elementList . singleOrNull ( ) if ( singleModule != null ) { addContent ( singleModule ) } else { elementList . forEach { elementValue -> addContent ( Element ( elementName ) . also { it . addContent ( elementValue ) } ) } } } }","docstring":""} {"signature":"private fun saveArrayArguments ( element : Element , arrayArgumentsByName : Map < String , Array < String > > )","body":"{ if ( arrayArgumentsByName . isEmpty ( ) ) return saveElementConfigurable ( element , ARRAY_ROOT_ELEMENTS_NAME ) { arrayArgumentsByName . entries . forEach { ( name , arg ) -> Element ( ARRAY_ELEMENT_NAME ) . also { it . setAttribute ( NAME_ATTR_NAME , name ) saveElementsList ( it , ARGS_ATTR_NAME , ARG_ATTR_NAME , arg . toList ( ) ) addContent ( it ) } } } }","docstring":""} {"signature":"override fun check ( declarations : List < JsKlibExportingDeclaration > , context : JsKlibDiagnosticContext , reporter : IrDiagnosticReporter )","body":"{ val allExportedNameClashes = declarations . groupBy { it . exportingName } . filterValues { it . size > } for ( exportedDeclarationClashes in allExportedNameClashes . values ) { for ( ( index , exportedDeclaration ) in exportedDeclarationClashes . withIndex ( ) ) { val declaration = exportedDeclaration . declaration ? : continue val clashedWith = exportedDeclarationClashes . filterIndexed { i , _ -> i != index } reporter . at ( declaration , context ) . report ( JsKlibErrors . EXPORTING_JS_NAME_CLASH_ES , exportedDeclaration . exportingName , clashedWith ) } } }","docstring":""} {"signature":"fun getDescriptorByPath ( path : String ) : ModuleDescriptor","body":"{ return stdlibPathToDescriptor [ path ] ? : testServices . assertions . fail { \"\" } }","docstring":""} {"signature":"fun setDescriptorAndLibraryByName ( name : String , descriptor : ModuleDescriptor , library : KotlinLibrary )","body":"{ stdlibPathToDescriptor [ name ] = descriptor descriptorToLibrary [ descriptor ] = library }","docstring":""} {"signature":"fun getCompiledLibraryByDescriptor ( descriptor : ModuleDescriptor ) : KotlinLibrary","body":"{ return descriptorToLibrary [ descriptor ] ? : testServices . assertions . fail { \"\" } }","docstring":""} {"signature":"fun getPathByDescriptor ( descriptor : ModuleDescriptor ) : String","body":"{ return stdlibPathToDescriptor . entries . single { it . value == descriptor } . key }","docstring":""} {"signature":"fun getDescriptorByCompiledLibrary ( library : KotlinLibrary ) : ModuleDescriptor","body":"{ return descriptorToLibrary . filterValues { it == library } . keys . singleOrNull ( ) ? : testServices . assertions . fail { \"\" } }","docstring":""} {"signature":"fun getOrCreateStdlibByPath ( path : String , create : ( String ) -> Pair < ModuleDescriptor , KotlinLibrary > ) : ModuleDescriptor","body":"{ return stdlibPathToDescriptor . getOrPut ( path ) { create ( path ) . let { descriptorToLibrary += it it . first } } }","docstring":""} {"signature":"@ Test fun testDeclaringClass ( )","body":"{ assertEquals ( TestEnum :: class . java , TestEnum . E . declaringJavaClass ) assertEquals ( TimeUnit :: class . java , TimeUnit . MILLISECONDS . declaringJavaClass ) assertEquals ( DurationUnit :: class . java , DurationUnit . MILLISECONDS . declaringJavaClass ) }","docstring":""} {"signature":"private inline fun < reified E : Enum < E > > E . declaring ( )","body":"= declaringJavaClass","docstring":""} {"signature":"@ Test fun testReified ( )","body":"{ assertEquals ( TestEnum :: class . java , TestEnum . E . declaring ( ) ) assertEquals ( TimeUnit :: class . java , TimeUnit . MILLISECONDS . declaring ( ) ) }","docstring":""} {"signature":"@ Test fun testEnumSet ( )","body":"{ val set = EnumSet . noneOf ( TestEnum . E . declaringJavaClass ) set . addAll ( TestEnum . E . declaringJavaClass . enumConstants . toList ( ) ) assertEquals ( EnumSet . of ( TestEnum . E ) , set ) }","docstring":""} {"signature":"@ Test fun worksOnGenericEnum ( )","body":"{ fun < T : Enum < T > > check ( e : Enum < T > ) { assertEquals < Class < * > > ( e . declaringJavaClass , TestEnum :: class . java ) } check ( TestEnum . E ) }","docstring":""} {"signature":"public abstract fun provideExtensionsFor ( module : KtModule ) : List < KtResolveExtension >","body":"public abstract fun provideExtensionsFor ( module : KtModule ) : List < KtResolveExtension >","docstring":"/**\n * Provides a list of [KtResolveExtension]s for a given [KtModule].\n *\n * Should not perform any heavy analysis and the generation of the actual files. All file generation should be performed only in [KtResolveExtensionFile.buildFileText].\n *\n * Implementations should consider caching the results, so the subsequent invocations should be performed instantly.\n *\n * Implementation cannot use the Kotlin resolve inside, as this function is called during session initialization, so Analysis API access is forbidden.\n */"} {"signature":"public fun provideExtensionsFor ( module : KtModule ) : List < KtResolveExtension >","body":"{ return EP_NAME . getExtensionList ( module . project ) . flatMap { it . provideExtensionsFor ( module ) } }","docstring":""} {"signature":"fun work ( ) : String","body":"{ return param }","docstring":""} {"signature":"fun box ( ) : String","body":"{ return Father ( \"\" ) . Child ( \"\" ) . Child2 ( ) . work ( ) }","docstring":""} {"signature":"fun fromExtension ( ext : String )","body":"= when ( ext ) { \"\" -> SVG \"\" -> PNG else -> throw IllegalArgumentException ( \"\" ) }","docstring":""} {"signature":"override fun visit ( b : Block . CodeBlock ) : Block","body":"{ if ( \"\" !in b . attr . classes ) return super . visit ( b ) val props = b . attr . propertiesMap val altText = props [ \"\" ] val imageFormat = props [ \"\" ] ? : defaultFormat ? : \"\" val scaling = if ( format . isHTML ( ) ) else val dprops = DiagramProperties ( fontSpec = \"\" , textScale = , diagramScale = scaling ) val diag = Diagram . fromMatrix ( CharMatrix . read ( b . text . reader ( ) . buffered ( ) ) , dprops ) return blocks { div { clazz = \"\" id = b . attr . id plain { renderToFile ( ImgFormat . fromExtension ( imageFormat ) , diag , altText , imageDirectory , embed , format ) } } } . first ( ) }","docstring":""} {"signature":"private fun InlineBuilder . renderToFile ( imageFormat : ImgFormat , diag : Diagram , altText : String ? , imageDirectory : File ? , embed : Boolean , format : Format )","body":"{ if ( format . isHTML ( ) && embed ) { when ( imageFormat ) { ImgFormat . SVG -> rawInline ( format = Format . HTML ) { \"\" } ImgFormat . PNG -> rawInline ( format = Format . HTML ) { \"\" } } return } val file = File . createTempFile ( \"\" , imageFormat . suffix , imageDirectory ) when ( imageFormat ) { ImgFormat . SVG -> exportAsSVG ( diag , file ) ImgFormat . PNG -> exportAsPNG ( diag , file ) } image ( Target ( file . absolutePath , altText ? : file . absolutePath ) ) }","docstring":""} {"signature":"override fun run ( )","body":"{ makeFilter ( SpecInlineDiagramFilterVisitor ( defaultFormat , format , imageDirectory , embed ) ) }","docstring":""} {"signature":"fun main ( args : Array < String > )","body":"= Main . main ( args )","docstring":""} {"signature":"override fun apply ( input : Bitmap ) : FloatData","body":"{ require ( input . config == Bitmap . Config . ARGB_8888 ) { \"\" } val w = input . width val h = input . height val encodedPixels = IntArray ( w * h ) input . getPixels ( encodedPixels , , w , , , w , h ) val tensor = when ( layout ) { NCHW -> argB8888ToNCHWArray ( encodedPixels , w , h , channels ) NHWC -> argB8888ToNHWCArray ( encodedPixels , w , h , channels ) } val shape = when ( layout ) { NCHW -> TensorShape ( channels . toLong ( ) , h . toLong ( ) , w . toLong ( ) ) NHWC -> TensorShape ( h . toLong ( ) , w . toLong ( ) , channels . toLong ( ) ) } return tensor to shape }","docstring":""} {"signature":"override fun getOutputShape ( inputShape : TensorShape ) : TensorShape","body":"{ return when ( inputShape . rank ( ) ) { , -> when ( layout ) { NCHW -> TensorShape ( channels . toLong ( ) , inputShape [ ] , inputShape [ ] ) NHWC -> TensorShape ( inputShape [ ] , inputShape [ ] , channels . toLong ( ) ) } else -> throw IllegalArgumentException ( \"\" ) } }","docstring":""} {"signature":"internal expect fun ensurePlatformExceptionHandlerLoaded ( callback : CoroutineExceptionHandler )","body":"internal expect fun ensurePlatformExceptionHandlerLoaded ( callback : CoroutineExceptionHandler )","docstring":"/**\n * Ensures that the given [callback] is present in the [platformExceptionHandlers] list.\n */"} {"signature":"internal expect fun propagateExceptionFinalResort ( exception : Throwable )","body":"internal expect fun propagateExceptionFinalResort ( exception : Throwable )","docstring":"/**\n * The platform-dependent global exception handler, used so that the exception is logged at least *somewhere*.\n */"} {"signature":"internal fun handleUncaughtCoroutineException ( context : CoroutineContext , exception : Throwable )","body":"{ for ( handler in platformExceptionHandlers ) { try { handler . handleException ( context , exception ) } catch ( _ : ExceptionSuccessfullyProcessed ) { return } catch ( t : Throwable ) { propagateExceptionFinalResort ( handlerException ( exception , t ) ) } } try { exception . addSuppressed ( DiagnosticCoroutineContextException ( context ) ) } catch ( e : Throwable ) { } propagateExceptionFinalResort ( exception ) }","docstring":"/**\n * Deal with exceptions that happened in coroutines and weren't programmatically dealt with.\n *\n * First, it notifies every [CoroutineExceptionHandler] in the [platformExceptionHandlers] list.\n * If one of them throws [ExceptionSuccessfullyProcessed], it means that that handler believes that the exception was\n * dealt with sufficiently well and doesn't need any further processing.\n * Otherwise, the platform-dependent global exception handler is also invoked.\n */"} {"signature":"fun foo ( )","body":"{ Foo ( ) }","docstring":""} {"signature":"override fun configure ( builder : TestConfigurationBuilder )","body":"{ super . configure ( builder ) builder . commonFirWithPluginFrontendConfiguration ( ) }","docstring":""} {"signature":"override fun configure ( builder : TestConfigurationBuilder )","body":"{ super . configure ( builder ) builder . commonFirWithPluginFrontendConfiguration ( ) }","docstring":""} {"signature":"override fun configure ( builder : TestConfigurationBuilder )","body":"{ super . configure ( builder ) with ( builder ) { commonFirWithPluginFrontendConfiguration ( ) configureIrHandlersStep { useHandlers ( :: IrPrettyKotlinDumpHandler ) } } }","docstring":""} {"signature":"override fun configure ( builder : TestConfigurationBuilder )","body":"{ super . configure ( builder ) builder . commonFirWithPluginFrontendConfiguration ( ) }","docstring":""} {"signature":"fun TestConfigurationBuilder . commonFirWithPluginFrontendConfiguration ( )","body":"{ enableLazyResolvePhaseChecking ( ) defaultDirectives { + ENABLE_PLUGIN_PHASES + FIR_DUMP } useConfigurators ( :: PluginAnnotationsProvider , :: ExtensionRegistrarConfigurator ) useCustomRuntimeClasspathProviders ( :: PluginRuntimeAnnotationsProvider ) }","docstring":""} {"signature":"public fun getFloatArray ( result : R , index : Int ) : FloatArray","body":"public fun getFloatArray ( result : R , index : Int ) : FloatArray","docstring":"/**\n * Returns the output at [index] as a [FloatArray].\n */"} {"signature":"public fun getLongArray ( result : R , index : Int ) : LongArray","body":"public fun getLongArray ( result : R , index : Int ) : LongArray","docstring":"/**\n * Returns the output at [index] as a [LongArray].\n */"} {"signature":"@ JvmOverloads fun initialize ( typeParameters : List < TypeParameterDescriptor > = emptyList ( ) )","body":"{ this . typeParameters = typeParameters }","docstring":""} {"signature":"override fun getModality ( )","body":"= modality","docstring":""} {"signature":"override fun getVisibility ( )","body":"= visibility","docstring":""} {"signature":"override fun getKind ( )","body":"= kind","docstring":""} {"signature":"override fun isCompanionObject ( )","body":"= isCompanionObject","docstring":""} {"signature":"override fun isInner ( )","body":"= false","docstring":""} {"signature":"override fun isData ( )","body":"= false","docstring":""} {"signature":"override fun isInline ( )","body":"= false","docstring":""} {"signature":"override fun isExpect ( )","body":"= false","docstring":""} {"signature":"override fun isActual ( )","body":"= false","docstring":""} {"signature":"override fun isFun ( )","body":"= false","docstring":""} {"signature":"override fun isValue ( )","body":"= false","docstring":""} {"signature":"override fun getCompanionObjectDescriptor ( ) : ClassDescriptorWithResolutionScopes ?","body":"= null","docstring":""} {"signature":"override fun getTypeConstructor ( ) : TypeConstructor","body":"= typeConstructor","docstring":""} {"signature":"override fun getUnsubstitutedPrimaryConstructor ( )","body":"= _unsubstitutedPrimaryConstructor ( )","docstring":""} {"signature":"override fun getConstructors ( )","body":"= listOf ( _unsubstitutedPrimaryConstructor ( ) ) + secondaryConstructors","docstring":""} {"signature":"override fun getDeclaredTypeParameters ( )","body":"= typeParameters","docstring":""} {"signature":"override fun getStaticScope ( )","body":"= MemberScope . Empty","docstring":""} {"signature":"override fun getUnsubstitutedMemberScope ( kotlinTypeRefiner : KotlinTypeRefiner )","body":"= unsubstitutedMemberScope","docstring":""} {"signature":"override fun getSealedSubclasses ( )","body":"= emptyList < ClassDescriptor > ( )","docstring":""} {"signature":"override fun getValueClassRepresentation ( ) : ValueClassRepresentation < SimpleType > ?","body":"= null","docstring":""} {"signature":"override fun getDeclaredCallableMembers ( ) : List < CallableMemberDescriptor >","body":"= DescriptorUtils . getAllDescriptors ( unsubstitutedMemberScope ) . filterIsInstance < CallableMemberDescriptor > ( ) . filter { it . kind != CallableMemberDescriptor . Kind . FAKE_OVERRIDE }","docstring":""} {"signature":"override fun getScopeForClassHeaderResolution ( ) : LexicalScope","body":"= resolutionScopesSupport . scopeForClassHeaderResolution ( )","docstring":""} {"signature":"override fun getScopeForConstructorHeaderResolution ( ) : LexicalScope","body":"= resolutionScopesSupport . scopeForConstructorHeaderResolution ( )","docstring":""} {"signature":"override fun getScopeForCompanionObjectHeaderResolution ( ) : LexicalScope","body":"= resolutionScopesSupport . scopeForCompanionObjectHeaderResolution ( )","docstring":""} {"signature":"override fun getScopeForMemberDeclarationResolution ( ) : LexicalScope","body":"= resolutionScopesSupport . scopeForMemberDeclarationResolution ( )","docstring":""} {"signature":"override fun getScopeForStaticMemberDeclarationResolution ( ) : LexicalScope","body":"= resolutionScopesSupport . scopeForStaticMemberDeclarationResolution ( )","docstring":""} {"signature":"override fun getScopeForInitializerResolution ( ) : LexicalScope","body":"= throw UnsupportedOperationException ( \"\" )","docstring":""} {"signature":"override fun toString ( ) : String","body":"= \"\" + name . toString ( ) + \"\" + containingDeclaration","docstring":""} {"signature":"private fun createUnsubstitutedPrimaryConstructor ( constructorVisibility : DescriptorVisibility ) : ClassConstructorDescriptor","body":"{ val constructor = DescriptorFactory . createPrimaryConstructorForObject ( thisDescriptor , source ) constructor . visibility = constructorVisibility constructor . returnType = getDefaultType ( ) return constructor }","docstring":""} {"signature":"override fun getParameters ( ) : List < TypeParameterDescriptor >","body":"= typeParameters","docstring":""} {"signature":"override fun isDenotable ( ) : Boolean","body":"= true","docstring":""} {"signature":"override fun getDeclarationDescriptor ( ) : ClassDescriptor","body":"= thisDescriptor","docstring":""} {"signature":"override fun computeSupertypes ( ) : Collection < KotlinType >","body":"= syntheticSupertypes","docstring":""} {"signature":"override fun getDeclarations ( kindFilter : DescriptorKindFilter , nameFilter : ( Name ) -> Boolean ) : List < KtDeclaration >","body":"= emptyList ( )","docstring":""} {"signature":"override fun getFunctionDeclarations ( name : Name ) : Collection < KtNamedFunction >","body":"= emptyList ( )","docstring":""} {"signature":"override fun getPropertyDeclarations ( name : Name ) : Collection < KtProperty >","body":"= emptyList ( )","docstring":""} {"signature":"override fun getDestructuringDeclarationsEntries ( name : Name ) : Collection < KtDestructuringDeclarationEntry >","body":"= emptyList ( )","docstring":""} {"signature":"override fun getClassOrObjectDeclarations ( name : Name ) : Collection < KtClassOrObjectInfo < * > >","body":"= emptyList ( )","docstring":""} {"signature":"override fun getScriptDeclarations ( name : Name ) : Collection < KtScriptInfo >","body":"= emptyList ( )","docstring":""} {"signature":"override fun getTypeAliasDeclarations ( name : Name ) : Collection < KtTypeAlias >","body":"= emptyList ( )","docstring":""} {"signature":"override fun getDeclarationNames ( )","body":"= emptySet < Name > ( )","docstring":""} {"signature":"fun descriptor ( )","body":"= thisDescriptor","docstring":""} {"signature":"override fun getName ( ) : String ?","body":"= _name","docstring":""} {"signature":"override fun isLocal ( ) : Boolean","body":"= false","docstring":""} {"signature":"override fun getDeclarations ( ) : List < KtDeclaration >","body":"= emptyList ( )","docstring":""} {"signature":"override fun getSuperTypeListEntries ( ) : List < KtSuperTypeListEntry >","body":"= emptyList ( )","docstring":""} {"signature":"override fun getCompanionObjects ( ) : List < KtObjectDeclaration >","body":"= emptyList ( )","docstring":""} {"signature":"override fun hasExplicitPrimaryConstructor ( ) : Boolean","body":"= false","docstring":""} {"signature":"override fun hasPrimaryConstructor ( ) : Boolean","body":"= false","docstring":""} {"signature":"override fun getPrimaryConstructor ( ) : KtPrimaryConstructor ?","body":"= null","docstring":""} {"signature":"override fun getPrimaryConstructorModifierList ( ) : KtModifierList ?","body":"= null","docstring":""} {"signature":"override fun getPrimaryConstructorParameters ( ) : List < KtParameter >","body":"= emptyList ( )","docstring":""} {"signature":"override fun getSecondaryConstructors ( ) : List < KtSecondaryConstructor >","body":"= emptyList ( )","docstring":""} {"signature":"override fun getContextReceivers ( ) : List < KtContextReceiver >","body":"= emptyList ( )","docstring":""} {"signature":"override fun getPsiOrParent ( )","body":"= _parent . psiOrParent","docstring":""} {"signature":"override fun getParent ( )","body":"= _parent . psiOrParent","docstring":""} {"signature":"@ Suppress ( \"\" ) override fun getContainingKtFile ( )","body":"= _parent . containingKtFile ? : throw IllegalStateException ( \"\" )","docstring":""} {"signature":"override fun getBody ( ) : KtClassBody ?","body":"= null","docstring":""} {"signature":"fun KtPureElement . findClassDescriptor ( bindingContext : BindingContext ) : ClassDescriptor","body":"= when ( this ) { is PsiElement -> BindingContextUtils . getNotNull ( bindingContext , BindingContext . CLASS , this ) is SyntheticClassOrObjectDescriptor . SyntheticDeclaration -> descriptor ( ) else -> throw IllegalArgumentException ( \"\" ) }","docstring":""} {"signature":"fun create ( data : Buffer ) : Sink","body":"fun create ( data : Buffer ) : Sink","docstring":""} {"signature":"override fun create ( data : Buffer ) : Sink","body":"{ return data }","docstring":""} {"signature":"override fun create ( data : Buffer ) : Sink","body":"{ return ( data as RawSink ) . buffered ( ) }","docstring":""} {"signature":"fun foo ( )","body":"= ","docstring":""} {"signature":"fun box ( ) : String","body":"{ if ( A . foo ( ) != ) return \"\" return A . bar }","docstring":""} {"signature":"open fun `access$foo` ( d : Derived )","body":"{ }","docstring":""} {"signature":"open fun `access$getBar$p` ( d : Derived ) : Int","body":"= ","docstring":""} {"signature":"open fun `access$setBar$p` ( d : Derived , i : Int )","body":"{ }","docstring":""} {"signature":"open fun `access$getBaz$p` ( d : Derived ) : Int","body":"= ","docstring":""} {"signature":"open fun `access$getBoo$p` ( d : Derived ) : Int","body":"= ","docstring":""} {"signature":"open fun `access$setBar1$p` ( d : Derived , i : Int )","body":"{ }","docstring":""} {"signature":"private fun foo ( )","body":"{ }","docstring":""} {"signature":"fun test ( )","body":"{ foo ( ) bar += baz += val s = boo bar1 += }","docstring":""} {"signature":"fun getRendererForDiagnostic ( diagnostic : KtDiagnostic ) : KtDiagnosticRenderer","body":"{ val factory = diagnostic . factory return MAP [ factory ] ? : factory . ktRenderer }","docstring":""} {"signature":"fun foo ( x : Out < out Open > , y : Out < out Final > ) : Out < out Open >","body":"= Out ( )","docstring":""} {"signature":"fun bar ( x : In < in Open > , y : In < in Any ? > ) : In < in Open >","body":"= In ( )","docstring":""} {"signature":"fun t ( )","body":"{ X . C ( ) }","docstring":""} {"signature":"@ Test fun freezeIsNoopForObjects ( )","body":"{ val a = A ( ) a . freeze ( ) a . x = assertEquals ( , a . x ) }","docstring":""} {"signature":"@ Test fun freezeIsNoopForArrays ( )","body":"{ val a = arrayOf ( , , ) a . freeze ( ) a [ ] = assertContentEquals ( arrayOf ( , , ) , a ) }","docstring":""} {"signature":"@ Test fun freezeIsNoopForPrimitiveArrays ( )","body":"{ val a = intArrayOf ( , , ) a . freeze ( ) a [ ] = assertContentEquals ( intArrayOf ( , , ) , a ) }","docstring":""} {"signature":"fun `(Y)` ( ) : String","body":"{ fun foo ( ) : String { return bar { baz ( ) } } return foo ( ) }","docstring":""} {"signature":"fun baz ( )","body":"= \"\"","docstring":""} {"signature":"fun bar ( p : ( ) -> String )","body":"= p ( )","docstring":""} {"signature":"fun box ( ) : String","body":"{ return `(X)` ( ) . `(Y)` ( ) }","docstring":""} {"signature":"fun main ( )","body":"{ val step1 = DataFrame . read ( pathToCsv ) . convertTo < Movie > ( ) . split { genres } . by ( \"\" ) . inplace ( ) . split { title } . by { listOf ( \"\"\"\"\"\" . toRegex ( ) . replace ( it , \"\" ) , \"\" . toRegex ( ) . findAll ( it ) . lastOrNull ( ) ? . value ? . toIntOrNull ( ) ? : - ) } . into ( \"\" , \"\" ) . explode ( \"\" ) step1 . print ( ) val step2 = step1 . filter { \"\" < Int > ( ) >= && genres != \"\" } . groupBy ( \"\" ) . sortBy ( \"\" ) . pivot ( \"\" , inward = false ) . aggregate { count ( ) into \"\" mean ( ) into \"\" } step2 . print ( ) }","docstring":""} {"signature":"override fun equals ( other : Any ? ) : Boolean","body":"{ if ( this === other ) return true if ( javaClass != other ? . javaClass ) return false other as MovieExpanded return if ( id != other . id ) false else genres . contentEquals ( other . genres ) }","docstring":""} {"signature":"override fun hashCode ( ) : Int","body":"{ var result = id . hashCode ( ) result = * result + genres . contentHashCode ( ) return result }","docstring":""} {"signature":"@ Throws ( ) fun none ( )","body":"{ }","docstring":""} {"signature":"@ Throws ( E1 :: class ) fun one ( )","body":"{ }","docstring":""} {"signature":"@ Throws ( E1 :: class , E2 :: class ) fun two ( )","body":"{ }","docstring":""} {"signature":"fun tryRenderStructOrUnion ( def : StructDef ) : String ?","body":"= when ( def . kind ) { StructDef . Kind . STRUCT -> tryRenderStruct ( def ) StructDef . Kind . UNION -> tryRenderUnion ( def ) StructDef . Kind . CLASS -> null }","docstring":""} {"signature":"private fun tryRenderStruct ( def : StructDef ) : String ?","body":"{ val baseOffset = def . fields . firstOrNull ( ) ? . offsetBytes ? : var offset = val isPackedStruct = def . isPacked val maxAlign = def . members . filterIsInstance < Field > ( ) . maxOfOrNull { it . typeAlign } val forceAlign = maxAlign ? . let { def . align > maxAlign } ? : ( def . align > ) return buildString { append ( \"\" ) def . members . forEach { it -> val decl = when ( it ) { is Field -> { val immediateOffset = it . offsetBytes - baseOffset val defaultAlignment = if ( isPackedStruct ) else it . typeAlign val alignment = guessAlignment ( offset , immediateOffset , defaultAlignment ) ? : return null offset = immediateOffset + it . typeSize tryRenderVar ( it . type , it . name ) ? . plus ( if ( alignment == defaultAlignment ) \"\" else \"\" ) } is BitField , is IncompleteField -> null is AnonymousInnerRecord -> { assert ( it . offsetBytes != null || it . typeSize == ) it . offsetBytes ? . let { offsetBytes -> offset = offsetBytes - baseOffset + it . typeSize } tryRenderStructOrUnion ( it . def ) } } ? : return null append ( \"\" ) } append ( \"\" ) if ( isPackedStruct ) append ( \"\" ) if ( forceAlign ) append ( \"\" ) } }","docstring":""} {"signature":"private fun guessAlignment ( offset : Long , paddedOffset : Long , defaultAlignment : Long ) : Long ?","body":"= longArrayOf ( defaultAlignment , , , , , , ) . firstOrNull { alignUp ( offset , it ) == paddedOffset }","docstring":""} {"signature":"private fun alignUp ( x : Long , alignment : Long ) : Long","body":"= ( x + alignment - ) and ( ( alignment - ) . inv ( ) )","docstring":""} {"signature":"private fun tryRenderUnion ( def : StructDef ) : String ?","body":"{ val maxAlign = def . members . filterIsInstance < Field > ( ) . maxOfOrNull { it . typeAlign } val forceAlign = maxAlign ? . let { def . align > maxAlign } ? : ( def . align > ) return buildString { append ( \"\" ) def . members . forEach { it -> val name = it . name val decl = when ( it ) { is Field -> tryRenderVar ( it . type , name ) is BitField , is IncompleteField -> null is AnonymousInnerRecord -> tryRenderStructOrUnion ( it . def ) } ? : return null append ( \"\" ) } append ( \"\" ) if ( forceAlign ) append ( \"\" ) } }","docstring":""} {"signature":"private fun tryRenderVar ( type : Type , name : String ) : String ?","body":"= when ( type ) { CharType , is BoolType -> \"\" is IntegerType -> \"\" is FloatingType -> \"\" is VectorType -> \"\" is RecordType -> tryRenderStructOrUnion ( type . decl . def ! ! ) ? . let { \"\" } is EnumType -> tryRenderVar ( type . def . baseType , name ) is PointerType -> \"\" is ConstArrayType -> tryRenderVar ( type . elemType , \"\" ) is IncompleteArrayType -> tryRenderVar ( type . elemType , \"\" ) is Typedef -> tryRenderVar ( type . def . aliased , name ) is ObjCPointer -> \"\" else -> null }","docstring":""} {"signature":"fun clear ( byteByffer : java . nio . ByteBuffer )","body":"= byteByffer . clear ( )","docstring":""} {"signature":"fun box ( ) : String","body":"{ if ( clear ( java . nio . ByteBuffer . allocateDirect ( ) ) . capacity ( ) != ) return \"\" return \"\" }","docstring":""} {"signature":"abstract fun isVisible ( receiver : ReceiverValue ? , what : DeclarationDescriptorWithVisibility , from : DeclarationDescriptor , useSpecialRulesForPrivateSealedConstructors : Boolean ) : Boolean","body":"abstract fun isVisible ( receiver : ReceiverValue ? , what : DeclarationDescriptorWithVisibility , from : DeclarationDescriptor , useSpecialRulesForPrivateSealedConstructors : Boolean ) : Boolean","docstring":"/**\n * @param receiver can be used to determine callee accessibility for some special receiver value\n *\n * 'null'-value basically means that receiver is absent in current call\n *\n * In case if it's needed to perform basic checks ignoring ones considering receiver (e.g. when checks happen beyond any call),\n * special value Visibilities.ALWAYS_SUITABLE_RECEIVER should be used.\n * If it's needed to determine whether visibility accepts any receiver, Visibilities.IRRELEVANT_RECEIVER should be used.\n *\n * NB: Currently Visibilities.IRRELEVANT_RECEIVER has the same effect as 'null'\n *\n * Also it's important that implementation that take receiver into account do aware about these special values.\n */"} {"signature":"abstract fun mustCheckInImports ( ) : Boolean","body":"abstract fun mustCheckInImports ( ) : Boolean","docstring":"/**\n * True, if it makes sense to check this visibility in imports and not import inaccessible declarations with such visibility.\n * Hint: return true, if this visibility can be checked on file's level.\n * Examples:\n * it returns false for PROTECTED because protected members of classes can be imported to be used in subclasses of their containers,\n * so when we are looking at the import, we don't know whether it is legal somewhere in this file or not.\n * it returns true for INTERNAL, because an internal declaration is either visible everywhere in a file, or invisible everywhere in the same file.\n * it returns true for PRIVATE, because there's no point in importing privates: they are inaccessible unless their short name is\n * already available without an import\n */"} {"signature":"fun compareTo ( visibility : DescriptorVisibility ) : Int ?","body":"{ return delegate . compareTo ( visibility . delegate ) }","docstring":"/**\n * @return null if the answer is unknown\n */"} {"signature":"final override fun toString ( ) : String","body":"= delegate . toString ( )","docstring":""} {"signature":"abstract fun normalize ( ) : DescriptorVisibility","body":"abstract fun normalize ( ) : DescriptorVisibility","docstring":""} {"signature":"fun customEffectiveVisibility ( ) : EffectiveVisibility ?","body":"= delegate . customEffectiveVisibility ( )","docstring":""} {"signature":"open fun visibleFromPackage ( fromPackage : FqName , myPackage : FqName ) : Boolean","body":"= true","docstring":""} {"signature":"override fun mustCheckInImports ( ) : Boolean","body":"{ return delegate . mustCheckInImports ( ) }","docstring":""} {"signature":"override fun normalize ( ) : DescriptorVisibility","body":"= DescriptorVisibilities . toDescriptorVisibility ( delegate . normalize ( ) )","docstring":""} {"signature":"inline fun < reified R : FirExpression > getAsFirExpression ( expression : LighterASTNode ? , errorReason : String = \"\" , sourceWhenInvalidExpression : LighterASTNode ? = expression , isValidExpression : ( R ) -> Boolean = { ! it . isStatementLikeExpression } , ) : R","body":"{ val converted = expression ? . let { convertExpression ( it , errorReason ) } return when { converted is R -> when { isValidExpression ( converted ) -> converted else -> buildErrorExpression ( sourceWhenInvalidExpression ? . toFirSourceElement ( ) , ConeSimpleDiagnostic ( errorReason , DiagnosticKind . ExpressionExpected ) , converted , ) } else -> buildErrorExpression ( converted ? . source ? . realElement ( ) ? : expression ? . toFirSourceElement ( ) , if ( expression == null ) ConeSyntaxDiagnostic ( errorReason ) else ConeSimpleDiagnostic ( errorReason , DiagnosticKind . ExpressionExpected ) , converted , ) } as R }","docstring":""} {"signature":"fun getAsFirStatement ( expression : LighterASTNode , errorReason : String = \"\" ) : FirStatement","body":"{ return when ( val converted = convertExpression ( expression , errorReason ) ) { is FirStatement -> converted else -> buildErrorExpression ( expression . toFirSourceElement ( ) , ConeSimpleDiagnostic ( errorReason , DiagnosticKind . ExpressionExpected ) , converted , ) } }","docstring":""} {"signature":"fun convertExpression ( expression : LighterASTNode , errorReason : String ) : FirElement","body":"{ return when ( expression . tokenType ) { LAMBDA_EXPRESSION -> convertLambdaExpression ( expression ) BINARY_EXPRESSION -> convertBinaryExpression ( expression ) BINARY_WITH_TYPE -> convertBinaryWithTypeRHSExpression ( expression ) { this . getOperationSymbol ( ) . toFirOperation ( ) } IS_EXPRESSION -> convertBinaryWithTypeRHSExpression ( expression ) { if ( this == \"\" ) FirOperation . IS else FirOperation . NOT_IS } LABELED_EXPRESSION -> convertLabeledExpression ( expression ) PREFIX_EXPRESSION , POSTFIX_EXPRESSION -> convertUnaryExpression ( expression ) ANNOTATED_EXPRESSION -> convertAnnotatedExpression ( expression ) CLASS_LITERAL_EXPRESSION -> convertClassLiteralExpression ( expression ) CALLABLE_REFERENCE_EXPRESSION -> convertCallableReferenceExpression ( expression ) in QUALIFIED_ACCESS -> convertQualifiedExpression ( expression ) CALL_EXPRESSION -> convertCallExpression ( expression ) WHEN -> convertWhenExpression ( expression ) ARRAY_ACCESS_EXPRESSION -> convertArrayAccessExpression ( expression ) COLLECTION_LITERAL_EXPRESSION -> convertCollectionLiteralExpression ( expression ) STRING_TEMPLATE -> convertStringTemplate ( expression ) is KtConstantExpressionElementType -> convertConstantExpression ( expression ) REFERENCE_EXPRESSION -> convertSimpleNameExpression ( expression ) DO_WHILE -> convertDoWhile ( expression ) WHILE -> convertWhile ( expression ) FOR -> convertFor ( expression ) TRY -> convertTryExpression ( expression ) IF -> convertIfExpression ( expression ) BREAK , CONTINUE -> convertLoopJump ( expression ) RETURN -> convertReturn ( expression ) THROW -> convertThrow ( expression ) PARENTHESIZED -> { val content = expression . getExpressionInParentheses ( ) context . forwardLabelUsagePermission ( expression , content ) getAsFirExpression ( content , \"\" ) } PROPERTY_DELEGATE , INDICES , CONDITION , LOOP_RANGE -> getAsFirExpression ( expression . getChildExpression ( ) , errorReason ) THIS_EXPRESSION -> convertThisExpression ( expression ) SUPER_EXPRESSION -> convertSuperExpression ( expression ) OBJECT_LITERAL -> declarationBuilder . convertObjectLiteral ( expression ) FUN -> declarationBuilder . convertFunctionDeclaration ( expression ) DESTRUCTURING_DECLARATION -> declarationBuilder . convertDestructingDeclaration ( expression ) . toFirDestructingDeclaration ( this , baseModuleData ) else -> buildErrorExpression ( expression . toFirSourceElement ( KtFakeSourceElementKind . ErrorTypeRef ) , ConeSimpleDiagnostic ( errorReason , DiagnosticKind . ExpressionExpected ) ) } }","docstring":"/***** EXPRESSIONS *****/"} {"signature":"private fun convertLambdaExpression ( lambdaExpression : LighterASTNode ) : FirExpression","body":"{ val valueParameterList = mutableListOf < ValueParameter > ( ) var block : LighterASTNode ? = null var hasArrow = false val functionSymbol = FirAnonymousFunctionSymbol ( ) lambdaExpression . getChildNodesByType ( FUNCTION_LITERAL ) . first ( ) . forEachChildren { when ( it . tokenType ) { VALUE_PARAMETER_LIST -> valueParameterList += declarationBuilder . convertValueParameters ( it , functionSymbol , ValueParameterDeclaration . LAMBDA ) BLOCK -> block = it ARROW -> hasArrow = true } } val expressionSource = lambdaExpression . toFirSourceElement ( ) val target : FirFunctionTarget val anonymousFunction = buildAnonymousFunction { source = expressionSource moduleData = baseModuleData origin = FirDeclarationOrigin . Source returnTypeRef = implicitType receiverParameter = expressionSource . asReceiverParameter ( ) symbol = functionSymbol isLambda = true hasExplicitParameterList = hasArrow label = context . getLastLabel ( lambdaExpression ) ? : context . calleeNamesForLambda . lastOrNull ( ) ? . let { buildLabel { source = expressionSource . fakeElement ( KtFakeSourceElementKind . GeneratedLambdaLabel ) name = it . asString ( ) } } target = FirFunctionTarget ( labelName = label ? . name , isLambda = true ) context . firFunctionTargets += target val destructuringStatements = mutableListOf < FirStatement > ( ) for ( valueParameter in valueParameterList ) { val multiDeclaration = valueParameter . destructuringDeclaration valueParameters += if ( multiDeclaration != null ) { val name = SpecialNames . DESTRUCT val multiParameter = buildValueParameter { source = valueParameter . firValueParameter . source containingFunctionSymbol = functionSymbol moduleData = baseModuleData origin = FirDeclarationOrigin . Source returnTypeRef = valueParameter . firValueParameter . returnTypeRef this . name = name symbol = FirValueParameterSymbol ( name ) defaultValue = null isCrossinline = false isNoinline = false isVararg = false } addDestructuringStatements ( destructuringStatements , baseModuleData , multiDeclaration , multiParameter , tmpVariable = false , forceLocal = true , ) multiParameter } else { valueParameter . firValueParameter } } body = withForcedLocalContext { if ( block != null ) { val kind = runIf ( destructuringStatements . isNotEmpty ( ) ) { KtFakeSourceElementKind . LambdaDestructuringBlock } val bodyBlock = declarationBuilder . convertBlockExpressionWithoutBuilding ( block ! ! , kind ) . apply { statements . firstOrNull ( ) ? . let { if ( it . isContractBlockFirCheck ( ) ) { this@buildAnonymousFunction . contractDescription = it . toLegacyRawContractDescription ( ) statements [ ] = FirContractCallBlock ( it ) } } if ( statements . isEmpty ( ) ) { statements . add ( buildReturnExpression { source = expressionSource . fakeElement ( KtFakeSourceElementKind . ImplicitReturn . FromExpressionBody ) this . target = target result = buildUnitExpression { source = expressionSource . fakeElement ( KtFakeSourceElementKind . ImplicitUnit . LambdaCoercion ) } } ) } } . build ( ) if ( destructuringStatements . isNotEmpty ( ) ) { buildBlock { source = bodyBlock . source ? . realElement ( ) statements . addAll ( destructuringStatements ) statements . add ( bodyBlock ) } } else { bodyBlock } } else { buildSingleExpressionBlock ( buildErrorExpression ( null , ConeSyntaxDiagnostic ( \"\" ) ) ) } } context . firFunctionTargets . removeLast ( ) } . also { target . bind ( it ) } return buildAnonymousFunctionExpression { source = expressionSource this . anonymousFunction = anonymousFunction } }","docstring":"/**\n * @see org.jetbrains.kotlin.parsing.KotlinExpressionParsing.parseFunctionLiteral\n * @see org.jetbrains.kotlin.fir.builder.RawFirBuilder.Visitor.visitLambdaExpression\n */"} {"signature":"private fun convertBinaryExpression ( binaryExpression : LighterASTNode ) : FirStatement","body":"{ var isLeftArgument = true lateinit var operationTokenName : String var leftArgNode : LighterASTNode ? = null var rightArg : LighterASTNode ? = null var operationReferenceSource : KtLightSourceElement ? = null binaryExpression . forEachChildren { when ( it . tokenType ) { OPERATION_REFERENCE -> { isLeftArgument = false operationTokenName = it . asText operationReferenceSource = it . toFirSourceElement ( ) } else -> if ( it . isExpression ( ) ) { if ( isLeftArgument ) { leftArgNode = it } else { rightArg = it } } } } val baseSource = binaryExpression . toFirSourceElement ( ) val operationToken = operationTokenName . getOperationSymbol ( ) if ( operationToken == IDENTIFIER ) { context . calleeNamesForLambda += operationTokenName . nameAsSafeName ( ) } else { context . calleeNamesForLambda += null } val rightArgAsFir = if ( rightArg != null ) getAsFirExpression < FirExpression > ( rightArg , \"\" ) else buildErrorExpression ( null , ConeSyntaxDiagnostic ( \"\" ) ) val leftArgAsFir = getAsFirExpression < FirExpression > ( leftArgNode , \"\" ) context . calleeNamesForLambda . removeLast ( ) when ( operationToken ) { ELVIS -> return leftArgAsFir . generateNotNullOrOther ( rightArgAsFir , baseSource ) ANDAND , OROR -> return leftArgAsFir . generateLazyLogicalOperation ( rightArgAsFir , operationToken == ANDAND , baseSource ) in OperatorConventions . IN_OPERATIONS -> return rightArgAsFir . generateContainsOperation ( leftArgAsFir , operationToken == NOT_IN , baseSource , operationReferenceSource ) in OperatorConventions . COMPARISON_OPERATIONS -> return leftArgAsFir . generateComparisonExpression ( rightArgAsFir , operationToken , baseSource , operationReferenceSource ) } val conventionCallName = operationToken . toBinaryName ( ) return if ( conventionCallName != null || operationToken == IDENTIFIER ) { buildFunctionCall { source = binaryExpression . toFirSourceElement ( ) calleeReference = buildSimpleNamedReference { source = operationReferenceSource ? : this@buildFunctionCall . source name = conventionCallName ? : operationTokenName . nameAsSafeName ( ) } explicitReceiver = leftArgAsFir argumentList = buildUnaryArgumentList ( rightArgAsFir ) origin = if ( conventionCallName != null ) FirFunctionCallOrigin . Operator else FirFunctionCallOrigin . Infix } } else { val firOperation = operationToken . toFirOperation ( ) if ( firOperation in FirOperation . ASSIGNMENTS ) { return leftArgNode . generateAssignment ( binaryExpression . toFirSourceElement ( ) , leftArgNode ? . toFirSourceElement ( ) , rightArgAsFir , firOperation , leftArgAsFir . annotations , rightArg , ) { getAsFirExpression < FirExpression > ( this , \"\" , sourceWhenInvalidExpression = binaryExpression , isValidExpression = { ! it . isStatementLikeExpression || it . isArraySet } , ) } } else { buildEqualityOperatorCall { source = binaryExpression . toFirSourceElement ( ) operation = firOperation argumentList = buildBinaryArgumentList ( leftArgAsFir , rightArgAsFir ) } } } }","docstring":"/**\n * @see org.jetbrains.kotlin.parsing.KotlinExpressionParsing.parseBinaryExpression\n * @see org.jetbrains.kotlin.fir.builder.RawFirBuilder.Visitor.visitBinaryExpression\n */"} {"signature":"private fun convertBinaryWithTypeRHSExpression ( binaryExpression : LighterASTNode , toFirOperation : String . ( ) -> FirOperation ) : FirTypeOperatorCall","body":"{ lateinit var operationTokenName : String var leftArgAsFir : FirExpression ? = null lateinit var firType : FirTypeRef binaryExpression . forEachChildren { when ( it . tokenType ) { OPERATION_REFERENCE -> operationTokenName = it . asText TYPE_REFERENCE -> firType = declarationBuilder . convertType ( it ) else -> if ( it . isExpression ( ) ) leftArgAsFir = getAsFirExpression ( it , \"\" ) } } return buildTypeOperatorCall { source = binaryExpression . toFirSourceElement ( ) operation = operationTokenName . toFirOperation ( ) conversionTypeRef = firType argumentList = buildUnaryArgumentList ( leftArgAsFir ? : buildErrorExpression ( null , ConeSyntaxDiagnostic ( \"\" ) ) ) } }","docstring":"/**\n * @see org.jetbrains.kotlin.parsing.KotlinExpressionParsing.Precedence.parseRightHandSide\n * @see org.jetbrains.kotlin.fir.builder.RawFirBuilder.Visitor.visitBinaryWithTypeRHSExpression\n * @see org.jetbrains.kotlin.fir.builder.RawFirBuilder.Visitor.visitIsExpression\n */"} {"signature":"private fun convertLabeledExpression ( labeledExpression : LighterASTNode ) : FirElement","body":"{ var firExpression : FirElement ? = null var labelSource : KtSourceElement ? = null var forbiddenLabelKind : ForbiddenLabelKind ? = null val isRepetitiveLabel = labeledExpression . getLabeledExpression ( ) ? . tokenType == LABELED_EXPRESSION labeledExpression . forEachChildren { context . setNewLabelUserNode ( it ) when ( it . tokenType ) { LABEL_QUALIFIER -> { val name = it . asText . dropLast ( ) labelSource = it . getChildNodesByType ( LABEL ) . single ( ) . toFirSourceElement ( ) context . addNewLabel ( buildLabel ( name , labelSource ! ! ) ) forbiddenLabelKind = getForbiddenLabelKind ( name , isRepetitiveLabel ) } BLOCK -> firExpression = declarationBuilder . convertBlock ( it ) PROPERTY -> firExpression = declarationBuilder . convertPropertyDeclaration ( it ) else -> if ( it . isExpression ( ) ) firExpression = getAsFirStatement ( it ) } } context . dropLastLabel ( ) return buildExpressionHandlingErrors ( firExpression , labeledExpression . toFirSourceElement ( ) , forbiddenLabelKind , labelSource ) }","docstring":"/**\n * @see org.jetbrains.kotlin.parsing.KotlinExpressionParsing.parseLabeledExpression\n * @see org.jetbrains.kotlin.fir.builder.RawFirBuilder.Visitor.visitLabeledExpression\n */"} {"signature":"private fun convertUnaryExpression ( unaryExpression : LighterASTNode ) : FirExpression","body":"{ lateinit var operationTokenName : String var argument : LighterASTNode ? = null var operationReference : LighterASTNode ? = null unaryExpression . forEachChildren { when ( it . tokenType ) { OPERATION_REFERENCE -> { operationReference = it operationTokenName = it . asText } else -> if ( it . isExpression ( ) ) argument = it } } val operationToken = operationTokenName . getOperationSymbol ( ) val conventionCallName = operationToken . toUnaryName ( ) return when { operationToken == EXCLEXCL -> { buildCheckNotNullCall { source = unaryExpression . toFirSourceElement ( ) argumentList = buildUnaryArgumentList ( getAsFirExpression < FirExpression > ( argument , \"\" ) ) } } conventionCallName != null -> { if ( operationToken in OperatorConventions . INCREMENT_OPERATIONS ) { return generateIncrementOrDecrementBlock ( unaryExpression , operationReference , argument , callName = conventionCallName , prefix = unaryExpression . tokenType == PREFIX_EXPRESSION ) { getAsFirExpression ( this ) } } val receiver = getAsFirExpression < FirExpression > ( argument , \"\" ) convertUnaryPlusMinusCallOnIntegerLiteralIfNecessary ( unaryExpression , receiver , operationToken ) ? . let { return it } buildFunctionCall { source = unaryExpression . toFirSourceElement ( ) calleeReference = buildSimpleNamedReference { source = operationReference ? . toFirSourceElement ( ) ? : this@buildFunctionCall . source name = conventionCallName } explicitReceiver = receiver origin = FirFunctionCallOrigin . Operator } } else -> throw IllegalStateException ( \"\" ) } }","docstring":"/**\n * @see org.jetbrains.kotlin.parsing.KotlinExpressionParsing.parsePostfixExpression\n * @see org.jetbrains.kotlin.parsing.KotlinExpressionParsing.parsePrefixExpression\n * @see org.jetbrains.kotlin.fir.builder.RawFirBuilder.Visitor.visitUnaryExpression\n */"} {"signature":"private fun convertAnnotatedExpression ( annotatedExpression : LighterASTNode ) : FirElement","body":"{ var firExpression : FirElement ? = null val firAnnotationList = mutableListOf < FirAnnotation > ( ) annotatedExpression . forEachChildren { when ( it . tokenType ) { ANNOTATION -> firAnnotationList += declarationBuilder . convertAnnotation ( it ) ANNOTATION_ENTRY -> firAnnotationList += declarationBuilder . convertAnnotationEntry ( it ) BLOCK -> firExpression = declarationBuilder . convertBlockExpression ( it ) else -> if ( it . isExpression ( ) ) { context . forwardLabelUsagePermission ( annotatedExpression , it ) firExpression = getAsFirStatement ( it ) } } } val result = firExpression ? : buildErrorExpression ( null , ConeNotAnnotationContainer ( \"\" ) ) require ( result is FirAnnotationContainer ) result . replaceAnnotations ( result . annotations . smartPlus ( firAnnotationList ) ) return result }","docstring":"/**\n * @see org.jetbrains.kotlin.parsing.KotlinExpressionParsing.parsePrefixExpression\n * @see org.jetbrains.kotlin.fir.builder.RawFirBuilder.Visitor.visitAnnotatedExpression\n */"} {"signature":"private fun convertClassLiteralExpression ( classLiteralExpression : LighterASTNode ) : FirExpression","body":"{ var firReceiverExpression : FirExpression ? = null classLiteralExpression . forEachChildren { if ( it . isExpression ( ) ) firReceiverExpression = getAsFirExpression ( it , \"\" ) } val classLiteralSource = classLiteralExpression . toFirSourceElement ( ) return buildGetClassCall { source = classLiteralSource argumentList = buildUnaryArgumentList ( firReceiverExpression ? : buildErrorExpression ( classLiteralSource , ConeUnsupportedClassLiteralsWithEmptyLhs ) ) } }","docstring":"/**\n * @see org.jetbrains.kotlin.parsing.KotlinExpressionParsing.parseDoubleColonSuffix\n * @see org.jetbrains.kotlin.fir.builder.RawFirBuilder.Visitor.visitClassLiteralExpression\n */"} {"signature":"private fun convertCallableReferenceExpression ( callableReferenceExpression : LighterASTNode ) : FirExpression","body":"{ var isReceiver = true var hasQuestionMarkAtLHS = false var firReceiverExpression : FirExpression ? = null lateinit var namedReference : FirNamedReference callableReferenceExpression . forEachChildren { when ( it . tokenType ) { COLONCOLON -> isReceiver = false QUEST -> hasQuestionMarkAtLHS = true else -> if ( it . isExpression ( ) ) { if ( isReceiver ) { firReceiverExpression = getAsFirExpression ( it , \"\" ) } else { namedReference = createSimpleNamedReference ( it . toFirSourceElement ( ) , it ) } } } } return buildCallableReferenceAccess { source = callableReferenceExpression . toFirSourceElement ( ) calleeReference = namedReference explicitReceiver = firReceiverExpression this . hasQuestionMarkAtLHS = hasQuestionMarkAtLHS } }","docstring":"/**\n * @see org.jetbrains.kotlin.parsing.KotlinExpressionParsing.parseDoubleColonSuffix\n * @see org.jetbrains.kotlin.fir.builder.RawFirBuilder.Visitor.visitCallableReferenceExpression\n */"} {"signature":"private fun convertQualifiedExpression ( dotQualifiedExpression : LighterASTNode ) : FirExpression","body":"{ var isSelector = false var isSafe = false var firSelector : FirExpression ? = null var firReceiver : FirExpression ? = null dotQualifiedExpression . forEachChildren { when ( val tokenType = it . tokenType ) { DOT -> isSelector = true SAFE_ACCESS -> { isSafe = true isSelector = true } else -> { val isEffectiveSelector = isSelector && tokenType != TokenType . ERROR_ELEMENT val firExpression = getAsFirExpression < FirExpression > ( it , \"\" ) if ( isEffectiveSelector ) { val callExpressionCallee = if ( tokenType == CALL_EXPRESSION ) it . getFirstChildExpressionUnwrapped ( ) else null firSelector = if ( tokenType is KtNameReferenceExpressionElementType || ( tokenType == CALL_EXPRESSION && callExpressionCallee ? . tokenType != LAMBDA_EXPRESSION ) ) { firExpression } else { buildErrorExpression { source = callExpressionCallee ? . toFirSourceElement ( ) ? : it . toFirSourceElement ( ) diagnostic = ConeSimpleDiagnostic ( \"\" , if ( callExpressionCallee == null ) DiagnosticKind . IllegalSelector else DiagnosticKind . NoReceiverAllowed ) expression = firExpression } } } else { firReceiver = firExpression } } } } var result = firSelector ( firSelector as? FirQualifiedAccessExpression ) ? . let { if ( isSafe ) { @ OptIn ( FirImplementationDetail :: class ) it . replaceSource ( dotQualifiedExpression . toFirSourceElement ( KtFakeSourceElementKind . DesugaredSafeCallExpression ) ) return it . createSafeCall ( firReceiver ! ! , dotQualifiedExpression . toFirSourceElement ( ) ) } result = convertFirSelector ( it , dotQualifiedExpression . toFirSourceElement ( ) , firReceiver ! ! ) } val receiver = firReceiver if ( receiver != null ) { ( firSelector as? FirErrorExpression ) ? . let { errorExpression -> return buildQualifiedErrorAccessExpression { this . receiver = receiver this . selector = errorExpression source = dotQualifiedExpression . toFirSourceElement ( ) diagnostic = ConeSyntaxDiagnostic ( \"\" ) } } } return result ? : buildErrorExpression { source = dotQualifiedExpression . toFirSourceElement ( ) diagnostic = ConeSyntaxDiagnostic ( \"\" ) expression = firReceiver } }","docstring":"/**\n * @see org.jetbrains.kotlin.parsing.KotlinExpressionParsing.parsePostfixExpression\n * @see org.jetbrains.kotlin.fir.builder.RawFirBuilder.Visitor.visitQualifiedExpression\n */"} {"signature":"private fun convertCallExpression ( callSuffix : LighterASTNode ) : FirExpression","body":"{ var name : String ? = null val firTypeArguments = mutableListOf < FirTypeProjection > ( ) val valueArguments = mutableListOf < LighterASTNode > ( ) var additionalArgument : FirExpression ? = null var hasArguments = false var superNode : LighterASTNode ? = null callSuffix . forEachChildren { child -> fun process ( node : LighterASTNode ) { when ( node . tokenType ) { REFERENCE_EXPRESSION -> { name = node . asText } SUPER_EXPRESSION -> { superNode = node } PARENTHESIZED -> if ( node . tokenType != TokenType . ERROR_ELEMENT ) { additionalArgument = getAsFirExpression ( node . getExpressionInParentheses ( ) , \"\" ) } TYPE_ARGUMENT_LIST -> { firTypeArguments += declarationBuilder . convertTypeArguments ( node , allowedUnderscoredTypeArgument = true ) } VALUE_ARGUMENT_LIST , LAMBDA_ARGUMENT -> { hasArguments = true valueArguments += node } else -> if ( node . tokenType != TokenType . ERROR_ELEMENT ) { additionalArgument = getAsFirExpression ( node , \"\" ) } } } process ( child ) } val source = callSuffix . toFirSourceElement ( ) val ( calleeReference , explicitReceiver , isImplicitInvoke ) = when { name != null -> CalleeAndReceiver ( buildSimpleNamedReference { this . source = callSuffix . getFirstChildExpressionUnwrapped ( ) ? . toFirSourceElement ( ) ? : source this . name = name . nameAsSafeName ( ) } ) superNode != null || ( additionalArgument as? FirResolvable ) ? . calleeReference is FirSuperReference -> { CalleeAndReceiver ( buildErrorNamedReference { this . source = superNode ? . toFirSourceElement ( ) ? : ( additionalArgument as? FirResolvable ) ? . calleeReference ? . source diagnostic = ConeSimpleDiagnostic ( \"\" , DiagnosticKind . SuperNotAllowed ) } ) } additionalArgument != null -> { CalleeAndReceiver ( buildSimpleNamedReference { this . source = source this . name = OperatorNameConventions . INVOKE } , additionalArgument ! ! , isImplicitInvoke = true ) } else -> CalleeAndReceiver ( buildErrorNamedReference { this . source = source diagnostic = ConeSyntaxDiagnostic ( \"\" ) } ) } val builder : FirQualifiedAccessExpressionBuilder = if ( hasArguments ) { val builder = if ( isImplicitInvoke ) FirImplicitInvokeCallBuilder ( ) else FirFunctionCallBuilder ( ) builder . apply { this . source = source this . calleeReference = calleeReference context . calleeNamesForLambda += calleeReference . name this . extractArgumentsFrom ( valueArguments . flatMap { convertValueArguments ( it ) } ) context . calleeNamesForLambda . removeLast ( ) } } else { FirPropertyAccessExpressionBuilder ( ) . apply { this . source = source this . calleeReference = calleeReference } } return builder . apply { this . explicitReceiver = explicitReceiver typeArguments += firTypeArguments } . build ( ) }","docstring":"/**\n * @see org.jetbrains.kotlin.parsing.KotlinExpressionParsing.parseCallSuffix\n */"} {"signature":"private fun convertStringTemplate ( stringTemplate : LighterASTNode ) : FirExpression","body":"{ return stringTemplate . getChildrenAsArray ( ) . toInterpolatingCall ( stringTemplate ) { convertShortOrLongStringTemplate ( it ) } }","docstring":"/**\n * @see org.jetbrains.kotlin.parsing.KotlinExpressionParsing.parseStringTemplate\n */"} {"signature":"private fun LighterASTNode ? . convertShortOrLongStringTemplate ( errorReason : String ) : FirExpression","body":"{ var firExpression : FirExpression ? = null this ? . forEachChildren ( LONG_TEMPLATE_ENTRY_START , LONG_TEMPLATE_ENTRY_END ) { firExpression = getAsFirExpression ( it , errorReason ) } return firExpression ? : buildErrorExpression ( null , ConeSyntaxDiagnostic ( errorReason ) ) }","docstring":""} {"signature":"private fun convertConstantExpression ( constantExpression : LighterASTNode ) : FirExpression","body":"{ return generateConstantExpressionByLiteral ( constantExpression ) }","docstring":"/**\n * @see org.jetbrains.kotlin.parsing.KotlinExpressionParsing.parseLiteralConstant\n */"} {"signature":"private fun convertWhenExpression ( whenExpression : LighterASTNode ) : FirExpression","body":"{ var subjectExpression : FirExpression ? = null var subjectVariable : FirVariable ? = null val whenEntryNodes = mutableListOf < LighterASTNode > ( ) val whenEntries = mutableListOf < WhenEntry > ( ) whenExpression . forEachChildren { when ( it . tokenType ) { PROPERTY -> subjectVariable = ( declarationBuilder . convertPropertyDeclaration ( it ) as FirVariable ) . let { variable -> buildProperty { source = it . toFirSourceElement ( ) origin = FirDeclarationOrigin . Source moduleData = baseModuleData returnTypeRef = variable . returnTypeRef name = variable . name initializer = variable . initializer isVar = false symbol = FirPropertySymbol ( variable . name ) isLocal = true status = FirDeclarationStatusImpl ( Visibilities . Local , Modality . FINAL ) annotations += variable . annotations } } DESTRUCTURING_DECLARATION -> subjectExpression = getAsFirExpression ( it , \"\" ) WHEN_ENTRY -> whenEntryNodes += it else -> if ( it . isExpression ( ) ) subjectExpression = getAsFirExpression ( it , \"\" ) } } subjectExpression = subjectVariable ? . initializer ? : subjectExpression val hasSubject = subjectExpression != null @ OptIn ( FirContractViolation :: class ) val subject = FirExpressionRef < FirWhenExpression > ( ) var shouldBind = hasSubject whenEntryNodes . mapTo ( whenEntries ) { convertWhenEntry ( it , subject , hasSubject ) } return buildWhenExpression { source = whenExpression . toFirSourceElement ( ) this . subject = subjectExpression this . subjectVariable = subjectVariable usedAsExpression = whenExpression . usedAsExpression for ( entry in whenEntries ) { shouldBind = shouldBind || entry . shouldBindSubject val branch = entry . firBlock val entrySource = entry . node . toFirSourceElement ( ) branches += if ( ! entry . isElse ) { if ( hasSubject ) { val firCondition = entry . toFirWhenCondition ( ) buildWhenBranch { source = entrySource condition = firCondition result = branch } } else { val firCondition = entry . toFirWhenConditionWithoutSubject ( ) buildWhenBranch { source = entrySource condition = firCondition result = branch } } } else { buildWhenBranch { source = entrySource condition = buildElseIfTrueCondition ( ) result = branch } } } } . also { if ( shouldBind ) { subject . bind ( it ) } } }","docstring":"/**\n * @see org.jetbrains.kotlin.parsing.KotlinExpressionParsing.parseWhen\n * @see org.jetbrains.kotlin.fir.builder.RawFirBuilder.Visitor.visitWhenExpression\n */"} {"signature":"private fun convertWhenEntry ( whenEntry : LighterASTNode , whenRefWithSubject : FirExpressionRef < FirWhenExpression > , hasSubject : Boolean , ) : WhenEntry","body":"{ var isElse = false var firBlock : FirBlock = buildEmptyExpressionBlock ( ) val conditions = mutableListOf < FirExpression > ( ) var shouldBindSubject = false whenEntry . forEachChildren { when ( it . tokenType ) { WHEN_CONDITION_EXPRESSION -> conditions += convertWhenConditionExpression ( it , whenRefWithSubject . takeIf { hasSubject } ) WHEN_CONDITION_IN_RANGE -> { val ( condition , shouldBind ) = convertWhenConditionInRange ( it , whenRefWithSubject , hasSubject ) conditions += condition shouldBindSubject = shouldBindSubject || shouldBind } WHEN_CONDITION_IS_PATTERN -> { val ( condition , shouldBind ) = convertWhenConditionIsPattern ( it , whenRefWithSubject , hasSubject ) conditions += condition shouldBindSubject = shouldBindSubject || shouldBind } ELSE_KEYWORD -> isElse = true BLOCK -> firBlock = declarationBuilder . convertBlock ( it ) else -> if ( it . isExpression ( ) ) firBlock = declarationBuilder . convertBlock ( it ) } } return WhenEntry ( conditions , firBlock , whenEntry , isElse , shouldBindSubject ) }","docstring":"/**\n * @see org.jetbrains.kotlin.parsing.KotlinExpressionParsing.parseWhenEntry\n * @see org.jetbrains.kotlin.parsing.KotlinExpressionParsing.parseWhenEntryNotElse\n */"} {"signature":"private fun convertWhenConditionExpression ( whenCondition : LighterASTNode , whenRefWithSubject : FirExpressionRef < FirWhenExpression > ? ) : FirExpression","body":"{ var firExpression : FirExpression ? = null whenCondition . forEachChildren { when ( it . tokenType ) { else -> if ( it . isExpression ( ) ) firExpression = getAsFirExpression ( it , \"\" ) } } val calculatedFirExpression = firExpression ? : buildErrorExpression ( source = null , ConeSyntaxDiagnostic ( \"\" ) ) if ( whenRefWithSubject == null ) { return calculatedFirExpression } return buildEqualityOperatorCall { source = whenCondition . toFirSourceElement ( KtFakeSourceElementKind . WhenCondition ) operation = FirOperation . EQ argumentList = buildBinaryArgumentList ( left = buildWhenSubjectExpression { source = whenCondition . toFirSourceElement ( ) whenRef = whenRefWithSubject } , right = calculatedFirExpression ) } }","docstring":""} {"signature":"private fun convertWhenConditionInRange ( whenCondition : LighterASTNode , whenRefWithSubject : FirExpressionRef < FirWhenExpression > , hasSubject : Boolean , ) : WhenConditionConvertedResults","body":"{ var isNegate = false var firExpression : FirExpression ? = null var conditionSource : KtLightSourceElement ? = null whenCondition . forEachChildren { when { it . tokenType == OPERATION_REFERENCE && it . asText == NOT_IN . value -> { conditionSource = it . toFirSourceElement ( ) isNegate = true } it . tokenType == OPERATION_REFERENCE -> { conditionSource = it . toFirSourceElement ( ) } else -> if ( it . isExpression ( ) ) firExpression = getAsFirExpression ( it , \"\" ) } } val subjectExpression = buildWhenSubjectExpression { whenRef = whenRefWithSubject source = whenCondition . toFirSourceElement ( ) } val calculatedFirExpression = firExpression ? : buildErrorExpression ( null , ConeSyntaxDiagnostic ( \"\" ) ) val result = calculatedFirExpression . generateContainsOperation ( subjectExpression , inverted = isNegate , baseSource = whenCondition . toFirSourceElement ( ) , operationReferenceSource = conditionSource ) return createWhenConditionConvertedResults ( hasSubject , result , whenCondition ) }","docstring":""} {"signature":"private fun convertWhenConditionIsPattern ( whenCondition : LighterASTNode , whenRefWithSubject : FirExpressionRef < FirWhenExpression > , hasSubject : Boolean , ) : WhenConditionConvertedResults","body":"{ lateinit var firOperation : FirOperation var firType : FirTypeRef ? = null whenCondition . forEachChildren { when ( it . tokenType ) { TYPE_REFERENCE -> firType = declarationBuilder . convertType ( it ) IS_KEYWORD -> firOperation = FirOperation . IS NOT_IS -> firOperation = FirOperation . NOT_IS } } val subjectExpression = buildWhenSubjectExpression { source = whenCondition . toFirSourceElement ( ) whenRef = whenRefWithSubject } val result = buildTypeOperatorCall { source = whenCondition . toFirSourceElement ( ) operation = firOperation conversionTypeRef = firType ? : buildErrorTypeRef { diagnostic = ConeSyntaxDiagnostic ( \"\" ) } argumentList = buildUnaryArgumentList ( subjectExpression ) } return createWhenConditionConvertedResults ( hasSubject , result , whenCondition ) }","docstring":""} {"signature":"private fun createWhenConditionConvertedResults ( hasSubject : Boolean , result : FirExpression , whenCondition : LighterASTNode , ) : WhenConditionConvertedResults","body":"{ return if ( hasSubject ) { WhenConditionConvertedResults ( result , false ) } else { WhenConditionConvertedResults ( buildErrorExpression { source = whenCondition . toFirSourceElement ( ) diagnostic = ConeSimpleDiagnostic ( \"\" , DiagnosticKind . ExpressionExpected ) nonExpressionElement = result } , true , ) } }","docstring":""} {"signature":"private fun convertArrayAccessExpression ( arrayAccess : LighterASTNode ) : FirExpression","body":"{ var firExpression : FirExpression ? = null val indices : MutableList < FirExpression > = mutableListOf ( ) arrayAccess . forEachChildren { when ( it . tokenType ) { INDICES -> indices += convertIndices ( it ) else -> if ( it . isExpression ( ) ) firExpression = getAsFirExpression ( it , \"\" ) } } val getArgument = context . arraySetArgument . remove ( arrayAccess ) return buildFunctionCall { val isGet = getArgument == null source = ( if ( isGet ) arrayAccess else arrayAccess . getParent ( ) ! ! ) . toFirSourceElement ( ) calleeReference = buildSimpleNamedReference { source = arrayAccess . toFirSourceElement ( ) . fakeElement ( KtFakeSourceElementKind . ArrayAccessNameReference ) name = if ( isGet ) OperatorNameConventions . GET else OperatorNameConventions . SET } explicitReceiver = firExpression ? : buildErrorExpression ( null , ConeSyntaxDiagnostic ( \"\" ) ) argumentList = buildArgumentList { arguments += indices getArgument ? . let { arguments += it } } origin = FirFunctionCallOrigin . Operator } . pullUpSafeCallIfNecessary ( ) }","docstring":"/**\n * @see org.jetbrains.kotlin.parsing.KotlinExpressionParsing.parseArrayAccess\n * @see org.jetbrains.kotlin.fir.builder.RawFirBuilder.Visitor.visitArrayAccessExpression\n */"} {"signature":"private fun convertCollectionLiteralExpression ( expression : LighterASTNode ) : FirExpression","body":"{ val firExpressionList = mutableListOf < FirExpression > ( ) expression . forEachChildren { if ( it . isExpression ( ) ) firExpressionList += getAsFirExpression < FirExpression > ( it , \"\" ) } return buildArrayLiteral { source = expression . toFirSourceElement ( ) argumentList = buildArgumentList { arguments += firExpressionList } } }","docstring":"/**\n * @see org.jetbrains.kotlin.parsing.KotlinExpressionParsing.parseCollectionLiteralExpression\n */"} {"signature":"private fun convertIndices ( indices : LighterASTNode ) : List < FirExpression >","body":"{ val firExpressionList : MutableList < FirExpression > = mutableListOf ( ) indices . forEachChildren { if ( it . isExpression ( ) ) firExpressionList += getAsFirExpression < FirExpression > ( it , \"\" ) } return firExpressionList }","docstring":"/**\n * @see org.jetbrains.kotlin.parsing.KotlinExpressionParsing.parseAsCollectionLiteralExpression\n */"} {"signature":"private fun convertSimpleNameExpression ( referenceExpression : LighterASTNode ) : FirQualifiedAccessExpression","body":"{ val nameSource = referenceExpression . toFirSourceElement ( ) val referenceSourceElement = if ( nameSource . kind is KtFakeSourceElementKind ) { nameSource } else { nameSource . fakeElement ( KtFakeSourceElementKind . ReferenceInAtomicQualifiedAccess ) } return buildPropertyAccessExpression { val rawText = referenceExpression . asText if ( rawText . isUnderscore ) { nonFatalDiagnostics . add ( ConeUnderscoreUsageWithoutBackticks ( nameSource ) ) } source = nameSource calleeReference = createSimpleNamedReference ( referenceSourceElement , referenceExpression ) } }","docstring":"/**\n * @see org.jetbrains.kotlin.parsing.KotlinExpressionParsing.parseSimpleNameExpression\n * @see org.jetbrains.kotlin.fir.builder.RawFirBuilder.Visitor.visitSimpleNameExpression\n */"} {"signature":"private fun createSimpleNamedReference ( sourceElement : KtSourceElement , referenceExpression : LighterASTNode ) : FirNamedReference","body":"{ return buildSimpleNamedReference { source = sourceElement name = referenceExpression . asText . nameAsSafeName ( ) } }","docstring":""} {"signature":"private fun convertDoWhile ( doWhileLoop : LighterASTNode ) : FirElement","body":"{ var block : LighterASTNode ? = null var firCondition : FirExpression ? = null val target : FirLoopTarget return FirDoWhileLoopBuilder ( ) . apply { source = doWhileLoop . toFirSourceElement ( ) target = prepareTarget ( doWhileLoop ) doWhileLoop . forEachChildren { when ( it . tokenType ) { BODY -> block = it CONDITION -> firCondition = getAsFirExpression ( it , \"\" ) } } condition = firCondition ? : buildErrorExpression ( null , ConeSyntaxDiagnostic ( \"\" ) ) } . configure ( target ) { convertLoopBody ( block ) } }","docstring":"/**\n * @see org.jetbrains.kotlin.parsing.KotlinExpressionParsing.parseDoWhile\n * @see org.jetbrains.kotlin.fir.builder.RawFirBuilder.Visitor.visitDoWhileExpression\n */"} {"signature":"private fun convertWhile ( whileLoop : LighterASTNode ) : FirElement","body":"{ var block : LighterASTNode ? = null var firCondition : FirExpression ? = null whileLoop . forEachChildren { when ( it . tokenType ) { BODY -> block = it CONDITION -> firCondition = getAsFirExpression ( it , \"\" ) } } val target : FirLoopTarget return FirWhileLoopBuilder ( ) . apply { source = whileLoop . toFirSourceElement ( ) condition = firCondition ? : buildErrorExpression ( null , ConeSyntaxDiagnostic ( \"\" ) ) target = prepareTarget ( whileLoop ) } . configure ( target ) { convertLoopBody ( block ) } }","docstring":"/**\n * @see org.jetbrains.kotlin.parsing.KotlinExpressionParsing.parseWhile\n * @see org.jetbrains.kotlin.fir.builder.RawFirBuilder.Visitor.visitWhileExpression\n */"} {"signature":"private fun convertFor ( forLoop : LighterASTNode ) : FirElement","body":"{ var parameter : ValueParameter ? = null var rangeExpression : FirExpression ? = null var blockNode : LighterASTNode ? = null forLoop . forEachChildren { when ( it . tokenType ) { VALUE_PARAMETER -> parameter = declarationBuilder . convertValueParameter ( it , null , ValueParameterDeclaration . FOR_LOOP ) LOOP_RANGE -> rangeExpression = getAsFirExpression ( it , \"\" ) BODY -> blockNode = it } } val calculatedRangeExpression = rangeExpression ? : buildErrorExpression ( null , ConeSyntaxDiagnostic ( \"\" ) ) val fakeSource = forLoop . toFirSourceElement ( KtFakeSourceElementKind . DesugaredForLoop ) val rangeSource = calculatedRangeExpression . source ? . fakeElement ( KtFakeSourceElementKind . DesugaredForLoop ) ? : fakeSource val target : FirLoopTarget return buildBlock { source = fakeSource val iteratorVal = generateTemporaryVariable ( baseModuleData , rangeSource , SpecialNames . ITERATOR , buildFunctionCall { source = rangeSource calleeReference = buildSimpleNamedReference { source = rangeSource name = OperatorNameConventions . ITERATOR } explicitReceiver = calculatedRangeExpression origin = FirFunctionCallOrigin . Operator } ) statements += iteratorVal statements += FirWhileLoopBuilder ( ) . apply { source = fakeSource condition = buildFunctionCall { source = rangeSource calleeReference = buildSimpleNamedReference { source = rangeSource name = OperatorNameConventions . HAS_NEXT } explicitReceiver = generateResolvedAccessExpression ( rangeSource , iteratorVal ) origin = FirFunctionCallOrigin . Operator } target = prepareTarget ( forLoop ) } . configure ( target ) { buildBlock block @ { source = blockNode ? . toFirSourceElement ( ) val valueParameter = parameter ? : return@block val multiDeclaration = valueParameter . destructuringDeclaration val firLoopParameter = generateTemporaryVariable ( baseModuleData , valueParameter . source , if ( multiDeclaration != null ) SpecialNames . DESTRUCT else valueParameter . name , buildFunctionCall { source = rangeSource calleeReference = buildSimpleNamedReference { source = rangeSource name = OperatorNameConventions . NEXT } explicitReceiver = generateResolvedAccessExpression ( rangeSource , iteratorVal ) origin = FirFunctionCallOrigin . Operator } , valueParameter . returnTypeRef , extractedAnnotations = valueParameter . annotations ) if ( multiDeclaration != null ) { addDestructuringStatements ( statements , baseModuleData , multiDeclaration , firLoopParameter , tmpVariable = true , forceLocal = true , ) } else { statements . add ( firLoopParameter ) } statements += convertLoopBody ( blockNode ) } } } }","docstring":"/**\n * @see org.jetbrains.kotlin.parsing.KotlinExpressionParsing.parseFor\n * @see org.jetbrains.kotlin.fir.builder.RawFirBuilder.Visitor.visitForExpression\n */"} {"signature":"private fun convertLoopBody ( body : LighterASTNode ? ) : FirBlock","body":"{ return convertLoopOrIfBody ( body ) ? : buildEmptyExpressionBlock ( ) }","docstring":"/**\n * @see org.jetbrains.kotlin.parsing.KotlinExpressionParsing.parseLoopBody\n * @see org.jetbrains.kotlin.fir.builder.RawFirBuilder.Visitor.toFirBlock\n */"} {"signature":"private fun convertLoopOrIfBody ( body : LighterASTNode ? ) : FirBlock ?","body":"{ var firBlock : FirBlock ? = null var firStatement : FirStatement ? = null body ? . forEachChildren { when ( it . tokenType ) { BLOCK -> firBlock = declarationBuilder . convertBlockExpression ( it ) ANNOTATED_EXPRESSION -> { if ( it . getChildNodeByType ( BLOCK ) != null ) { firBlock = getAsFirExpression ( it ) } else { firStatement = getAsFirStatement ( it ) } } else -> if ( it . isExpression ( ) ) firStatement = getAsFirStatement ( it ) } } return firStatement ? . let { FirSingleExpressionBlock ( it ) } ? : firBlock }","docstring":""} {"signature":"private fun convertTryExpression ( tryExpression : LighterASTNode ) : FirExpression","body":"{ lateinit var tryBlock : FirBlock val catchClauses = mutableListOf < Triple < ValueParameter ? , FirBlock , KtLightSourceElement > > ( ) var finallyBlock : FirBlock ? = null tryExpression . forEachChildren { when ( it . tokenType ) { BLOCK -> tryBlock = declarationBuilder . convertBlock ( it ) CATCH -> convertCatchClause ( it ) ? . also { oneClause -> catchClauses += oneClause } FINALLY -> finallyBlock = convertFinally ( it ) } } return buildTryExpression { source = tryExpression . toFirSourceElement ( ) this . tryBlock = tryBlock this . finallyBlock = finallyBlock for ( ( parameter , block , clauseSource ) in catchClauses ) { if ( parameter == null ) continue catches += buildCatch { this . parameter = buildProperty { source = parameter . source moduleData = baseModuleData origin = FirDeclarationOrigin . Source returnTypeRef = parameter . returnTypeRef isVar = false status = FirResolvedDeclarationStatusImpl ( Visibilities . Local , Modality . FINAL , EffectiveVisibility . Local ) isLocal = true this . name = parameter . name symbol = FirPropertySymbol ( CallableId ( name ) ) annotations += parameter . annotations } . also { it . isCatchParameter = true } this . block = block this . source = clauseSource } } } }","docstring":"/**\n * @see org.jetbrains.kotlin.parsing.KotlinExpressionParsing.parseTry\n * @see org.jetbrains.kotlin.fir.builder.RawFirBuilder.Visitor.visitTryExpression\n */"} {"signature":"private fun convertCatchClause ( catchClause : LighterASTNode ) : Triple < ValueParameter ? , FirBlock , KtLightSourceElement > ?","body":"{ var valueParameter : ValueParameter ? = null var blockNode : LighterASTNode ? = null catchClause . forEachChildren { when ( it . tokenType ) { VALUE_PARAMETER_LIST -> valueParameter = declarationBuilder . convertValueParameters ( it , FirAnonymousFunctionSymbol ( ) , ValueParameterDeclaration . CATCH ) . firstOrNull ( ) ? : return null BLOCK -> blockNode = it } } return Triple ( valueParameter , declarationBuilder . convertBlock ( blockNode ) , catchClause . toFirSourceElement ( ) ) }","docstring":"/**\n * @see org.jetbrains.kotlin.parsing.KotlinExpressionParsing.parseTry\n */"} {"signature":"private fun convertFinally ( finallyExpression : LighterASTNode ) : FirBlock","body":"{ var blockNode : LighterASTNode ? = null finallyExpression . forEachChildren { when ( it . tokenType ) { BLOCK -> blockNode = it } } return declarationBuilder . convertBlock ( blockNode ) }","docstring":"/**\n * @see org.jetbrains.kotlin.parsing.KotlinExpressionParsing.parseTry\n */"} {"signature":"private fun convertIfExpression ( ifExpression : LighterASTNode ) : FirExpression","body":"{ return buildWhenExpression { source = ifExpression . toFirSourceElement ( ) with ( parseIfExpression ( ifExpression ) ) { val trueBranch = convertLoopBody ( thenBlock ) branches += buildWhenBranch { source = firCondition ? . source condition = firCondition ? : buildErrorExpression ( null , ConeSyntaxDiagnostic ( \"\" ) ) result = trueBranch } if ( elseBlock != null ) { val elseBranch = convertLoopOrIfBody ( elseBlock ) if ( elseBranch != null ) { branches += buildWhenBranch { source = elseBlock . toFirSourceElement ( ) condition = buildElseIfTrueCondition ( ) result = elseBranch } } } } usedAsExpression = ifExpression . usedAsExpression } }","docstring":"/**\n * @see org.jetbrains.kotlin.parsing.KotlinExpressionParsing.parseIf\n * @see org.jetbrains.kotlin.fir.builder.RawFirBuilder.Visitor.visitIfExpression\n */"} {"signature":"private fun parseIfExpression ( ifExpression : LighterASTNode ) : IfNodeComponents","body":"{ var firCondition : FirExpression ? = null var thenBlock : LighterASTNode ? = null var elseBlock : LighterASTNode ? = null ifExpression . forEachChildren { when ( it . tokenType ) { CONDITION -> firCondition = getAsFirExpression ( it , \"\" ) THEN -> thenBlock = it ELSE -> elseBlock = it } } return IfNodeComponents ( firCondition , thenBlock , elseBlock ) }","docstring":""} {"signature":"private fun convertLoopJump ( jump : LighterASTNode ) : FirExpression","body":"{ var isBreak = true jump . forEachChildren { when ( it . tokenType ) { CONTINUE_KEYWORD -> isBreak = false } } val jumpBuilder = if ( isBreak ) FirBreakExpressionBuilder ( ) else FirContinueExpressionBuilder ( ) val sourceElement = jump . toFirSourceElement ( ) return jumpBuilder . apply { source = sourceElement } . bindLabel ( jump ) . build ( ) }","docstring":"/**\n * @see org.jetbrains.kotlin.parsing.KotlinExpressionParsing.parseJump\n * @see org.jetbrains.kotlin.fir.builder.RawFirBuilder.Visitor.visitBreakExpression\n * @see org.jetbrains.kotlin.fir.builder.RawFirBuilder.Visitor.visitContinueExpression\n */"} {"signature":"private fun convertReturn ( returnExpression : LighterASTNode ) : FirExpression","body":"{ var labelName : String ? = null var firExpression : FirExpression ? = null returnExpression . forEachChildren { when ( it . tokenType ) { LABEL_QUALIFIER -> labelName = it . getAsStringWithoutBacktick ( ) . replace ( \"\" , \"\" ) else -> if ( it . isExpression ( ) ) firExpression = getAsFirExpression ( it , \"\" ) } } val calculatedFirExpression = firExpression ? : buildUnitExpression { source = returnExpression . toFirSourceElement ( KtFakeSourceElementKind . ImplicitUnit . Return ) } return calculatedFirExpression . toReturn ( baseSource = returnExpression . toFirSourceElement ( ) , labelName = labelName , fromKtReturnExpression = true ) }","docstring":"/**\n * @see org.jetbrains.kotlin.parsing.KotlinExpressionParsing.parseReturn\n * @see org.jetbrains.kotlin.fir.builder.RawFirBuilder.Visitor.visitReturnExpression\n */"} {"signature":"private fun convertThrow ( throwExpression : LighterASTNode ) : FirExpression","body":"{ var firExpression : FirExpression ? = null throwExpression . forEachChildren { if ( it . isExpression ( ) ) firExpression = getAsFirExpression ( it , \"\" ) } return buildThrowExpression { source = throwExpression . toFirSourceElement ( ) exception = firExpression ? : buildErrorExpression ( null , ConeSyntaxDiagnostic ( \"\" ) ) } }","docstring":"/**\n * @see org.jetbrains.kotlin.parsing.KotlinExpressionParsing.parseThrow\n * @see org.jetbrains.kotlin.fir.builder.RawFirBuilder.Visitor.visitThrowExpression\n */"} {"signature":"private fun convertThisExpression ( thisExpression : LighterASTNode ) : FirQualifiedAccessExpression","body":"{ val label : String ? = thisExpression . getLabelName ( ) return buildThisReceiverExpression { val sourceElement = thisExpression . toFirSourceElement ( ) source = sourceElement calleeReference = buildExplicitThisReference { labelName = label source = sourceElement . fakeElement ( KtFakeSourceElementKind . ReferenceInAtomicQualifiedAccess ) } } }","docstring":"/**\n * @see org.jetbrains.kotlin.parsing.KotlinExpressionParsing.parseThisExpression\n * @see org.jetbrains.kotlin.fir.builder.RawFirBuilder.Visitor.visitThisExpression\n */"} {"signature":"private fun convertSuperExpression ( superExpression : LighterASTNode ) : FirQualifiedAccessExpression","body":"{ val label : String ? = superExpression . getLabelName ( ) var superTypeRef : FirTypeRef = implicitType superExpression . forEachChildren { when ( it . tokenType ) { TYPE_REFERENCE -> superTypeRef = declarationBuilder . convertType ( it ) } } return buildPropertyAccessExpression { val sourceElement = superExpression . toFirSourceElement ( ) source = sourceElement calleeReference = buildExplicitSuperReference { labelName = label this . superTypeRef = superTypeRef source = sourceElement . fakeElement ( KtFakeSourceElementKind . ReferenceInAtomicQualifiedAccess ) } } }","docstring":"/**\n * @see org.jetbrains.kotlin.parsing.KotlinExpressionParsing.parseSuperExpression\n * @see org.jetbrains.kotlin.fir.builder.RawFirBuilder.Visitor.visitSuperExpression\n */"} {"signature":"fun convertValueArguments ( valueArguments : LighterASTNode ) : List < FirExpression >","body":"{ return valueArguments . forEachChildrenReturnList { node , container -> when ( node . tokenType ) { VALUE_ARGUMENT -> container += convertValueArgument ( node ) LAMBDA_EXPRESSION , LABELED_EXPRESSION , ANNOTATED_EXPRESSION , -> container += getAsFirExpression < FirAnonymousFunctionExpression > ( node ) . apply { @ OptIn ( RawFirApi :: class ) replaceIsTrailingLambda ( newIsTrailingLambda = true ) } } } }","docstring":"/**\n * @see org.jetbrains.kotlin.parsing.KotlinExpressionParsing.parseValueArgumentList\n */"} {"signature":"private fun convertValueArgument ( valueArgument : LighterASTNode ) : FirExpression","body":"{ var identifier : String ? = null var isSpread = false var firExpression : FirExpression ? = null valueArgument . forEachChildren { when ( it . tokenType ) { VALUE_ARGUMENT_NAME -> identifier = it . asText MUL -> isSpread = true STRING_TEMPLATE -> firExpression = convertStringTemplate ( it ) is KtConstantExpressionElementType -> firExpression = convertConstantExpression ( it ) else -> if ( it . isExpression ( ) ) firExpression = getAsFirExpression ( it , \"\" ) } } val calculatedFirExpression = firExpression ? : buildErrorExpression ( null , ConeSyntaxDiagnostic ( \"\" ) ) return when { identifier != null -> buildNamedArgumentExpression { source = valueArgument . toFirSourceElement ( ) expression = calculatedFirExpression this . isSpread = isSpread name = identifier . nameAsSafeName ( ) } isSpread -> buildSpreadArgumentExpression { source = valueArgument . toFirSourceElement ( ) expression = calculatedFirExpression } else -> calculatedFirExpression } }","docstring":"/**\n * @see org.jetbrains.kotlin.parsing.KotlinExpressionParsing.parseValueArgument\n * @see org.jetbrains.kotlin.fir.builder.RawFirBuilder.Visitor.toFirExpression(org.jetbrains.kotlin.psi.ValueArgument)\n */"} {"signature":"override fun chooseMaximallySpecificCandidates ( candidates : Set < Candidate > , discriminateAbstracts : Boolean ) : Set < Candidate >","body":"{ if ( candidates . size <= ) return candidates var currentCandidates = candidates var index = while ( currentCandidates . size > && index < conflictResolvers . size ) { val conflictResolver = conflictResolvers [ index ++ ] currentCandidates = conflictResolver . chooseMaximallySpecificCandidates ( currentCandidates , discriminateAbstracts ) } return currentCandidates }","docstring":""} {"signature":"fun box ( ) : String","body":"{ testCast < TestKlass > ( TestKlass ( ) , true ) testCast < TestKlass > ( null , false ) testCastToNullable < TestKlass > ( null , true ) return \"\" }","docstring":""} {"signature":"fun ensure ( b : Boolean )","body":"{ if ( ! b ) { println ( \"\" ) } }","docstring":""} {"signature":"fun < T : Any > testCast ( x : Any ? , expectSuccess : Boolean )","body":"{ try { x as T } catch ( e : Throwable ) { ensure ( ! expectSuccess ) return } ensure ( expectSuccess ) }","docstring":""} {"signature":"fun < T : Any > testCastToNullable ( x : Any ? , expectSuccess : Boolean )","body":"{ try { x as T ? } catch ( e : Throwable ) { ensure ( ! expectSuccess ) return } ensure ( expectSuccess ) }","docstring":""} {"signature":"fun evaluateArg ( ) : Int","body":"{ return expr . length }","docstring":""} {"signature":"fun main ( )","body":"{ val averageMobileDuration = log . filter { it . os in setOf ( OS . IOS , OS . ANDROID ) } . map ( SiteVisit :: duration ) . average ( ) println ( averageMobileDuration ) }","docstring":""} {"signature":"fun kill ( signal : String ? = definedExternally )","body":"fun kill ( signal : String ? = definedExternally )","docstring":""} {"signature":"fun send ( message : Any , callback : ( ( error : Error ? ) -> Unit ) ? = definedExternally ) : Boolean","body":"fun send ( message : Any , callback : ( ( error : Error ? ) -> Unit ) ? = definedExternally ) : Boolean","docstring":""} {"signature":"fun send ( message : Any , sendHandle : net . Socket ? = definedExternally , callback : ( ( error : Error ? ) -> Unit ) ? = definedExternally ) : Boolean","body":"fun send ( message : Any , sendHandle : net . Socket ? = definedExternally , callback : ( ( error : Error ? ) -> Unit ) ? = definedExternally ) : Boolean","docstring":""} {"signature":"fun send ( message : Any , sendHandle : net . Server ? = definedExternally , callback : ( ( error : Error ? ) -> Unit ) ? = definedExternally ) : Boolean","body":"fun send ( message : Any , sendHandle : net . Server ? = definedExternally , callback : ( ( error : Error ? ) -> Unit ) ? = definedExternally ) : Boolean","docstring":""} {"signature":"fun send ( message : Any , sendHandle : net . Socket ? = definedExternally , options : MessageOptions ? = definedExternally , callback : ( ( error : Error ? ) -> Unit ) ? = definedExternally ) : Boolean","body":"fun send ( message : Any , sendHandle : net . Socket ? = definedExternally , options : MessageOptions ? = definedExternally , callback : ( ( error : Error ? ) -> Unit ) ? = definedExternally ) : Boolean","docstring":""} {"signature":"fun send ( message : Any , sendHandle : net . Server ? = definedExternally , options : MessageOptions ? = definedExternally , callback : ( ( error : Error ? ) -> Unit ) ? = definedExternally ) : Boolean","body":"fun send ( message : Any , sendHandle : net . Server ? = definedExternally , options : MessageOptions ? = definedExternally , callback : ( ( error : Error ? ) -> Unit ) ? = definedExternally ) : Boolean","docstring":""} {"signature":"fun disconnect ( )","body":"fun disconnect ( )","docstring":""} {"signature":"fun unref ( )","body":"fun unref ( )","docstring":""} {"signature":"fun ref ( )","body":"fun ref ( )","docstring":""} {"signature":"fun addListener ( event : String , listener : ( args : Array < Any > ) -> Unit ) : ChildProcess","body":"fun addListener ( event : String , listener : ( args : Array < Any > ) -> Unit ) : ChildProcess","docstring":""} {"signature":"fun addListener ( event : String , listener : ( code : Number , signal : String ) -> Unit ) : ChildProcess","body":"fun addListener ( event : String , listener : ( code : Number , signal : String ) -> Unit ) : ChildProcess","docstring":""} {"signature":"fun addListener ( event : String , listener : ( ) -> Unit ) : ChildProcess","body":"fun addListener ( event : String , listener : ( ) -> Unit ) : ChildProcess","docstring":""} {"signature":"fun addListener ( event : String , listener : ( err : Error ) -> Unit ) : ChildProcess","body":"fun addListener ( event : String , listener : ( err : Error ) -> Unit ) : ChildProcess","docstring":""} {"signature":"fun addListener ( event : String , listener : ( code : Number ? , signal : String ? ) -> Unit ) : ChildProcess","body":"fun addListener ( event : String , listener : ( code : Number ? , signal : String ? ) -> Unit ) : ChildProcess","docstring":""} {"signature":"fun addListener ( event : String , listener : ( message : Any , sendHandle : dynamic ) -> Unit ) : ChildProcess","body":"fun addListener ( event : String , listener : ( message : Any , sendHandle : dynamic ) -> Unit ) : ChildProcess","docstring":""} {"signature":"fun emit ( event : String , vararg args : Any ) : Boolean","body":"fun emit ( event : String , vararg args : Any ) : Boolean","docstring":""} {"signature":"fun emit ( event : Any , vararg args : Any ) : Boolean","body":"fun emit ( event : Any , vararg args : Any ) : Boolean","docstring":""} {"signature":"fun emit ( event : String , code : Number , signal : String ) : Boolean","body":"fun emit ( event : String , code : Number , signal : String ) : Boolean","docstring":""} {"signature":"fun emit ( event : String ) : Boolean","body":"fun emit ( event : String ) : Boolean","docstring":""} {"signature":"fun emit ( event : String , err : Error ) : Boolean","body":"fun emit ( event : String , err : Error ) : Boolean","docstring":""} {"signature":"fun emit ( event : String , code : Number ? , signal : String ? ) : Boolean","body":"fun emit ( event : String , code : Number ? , signal : String ? ) : Boolean","docstring":""} {"signature":"fun emit ( event : String , message : Any , sendHandle : net . Socket ) : Boolean","body":"fun emit ( event : String , message : Any , sendHandle : net . Socket ) : Boolean","docstring":""} {"signature":"fun emit ( event : String , message : Any , sendHandle : net . Server ) : Boolean","body":"fun emit ( event : String , message : Any , sendHandle : net . Server ) : Boolean","docstring":""} {"signature":"fun on ( event : String , listener : ( args : Array < Any > ) -> Unit ) : ChildProcess","body":"fun on ( event : String , listener : ( args : Array < Any > ) -> Unit ) : ChildProcess","docstring":""} {"signature":"fun on ( event : String , listener : ( code : Number , signal : String ) -> Unit ) : ChildProcess","body":"fun on ( event : String , listener : ( code : Number , signal : String ) -> Unit ) : ChildProcess","docstring":""} {"signature":"fun on ( event : String , listener : ( ) -> Unit ) : ChildProcess","body":"fun on ( event : String , listener : ( ) -> Unit ) : ChildProcess","docstring":""} {"signature":"fun on ( event : String , listener : ( err : Error ) -> Unit ) : ChildProcess","body":"fun on ( event : String , listener : ( err : Error ) -> Unit ) : ChildProcess","docstring":""} {"signature":"fun on ( event : String , listener : ( code : Number ? , signal : String ? ) -> Unit ) : ChildProcess","body":"fun on ( event : String , listener : ( code : Number ? , signal : String ? ) -> Unit ) : ChildProcess","docstring":""} {"signature":"fun on ( event : String , listener : ( message : Any , sendHandle : dynamic ) -> Unit ) : ChildProcess","body":"fun on ( event : String , listener : ( message : Any , sendHandle : dynamic ) -> Unit ) : ChildProcess","docstring":""} {"signature":"fun once ( event : String , listener : ( args : Array < Any > ) -> Unit ) : ChildProcess","body":"fun once ( event : String , listener : ( args : Array < Any > ) -> Unit ) : ChildProcess","docstring":""} {"signature":"fun once ( event : String , listener : ( code : Number , signal : String ) -> Unit ) : ChildProcess","body":"fun once ( event : String , listener : ( code : Number , signal : String ) -> Unit ) : ChildProcess","docstring":""} {"signature":"fun once ( event : String , listener : ( ) -> Unit ) : ChildProcess","body":"fun once ( event : String , listener : ( ) -> Unit ) : ChildProcess","docstring":""} {"signature":"fun once ( event : String , listener : ( err : Error ) -> Unit ) : ChildProcess","body":"fun once ( event : String , listener : ( err : Error ) -> Unit ) : ChildProcess","docstring":""} {"signature":"fun once ( event : String , listener : ( code : Number ? , signal : String ? ) -> Unit ) : ChildProcess","body":"fun once ( event : String , listener : ( code : Number ? , signal : String ? ) -> Unit ) : ChildProcess","docstring":""} {"signature":"fun once ( event : String , listener : ( message : Any , sendHandle : dynamic ) -> Unit ) : ChildProcess","body":"fun once ( event : String , listener : ( message : Any , sendHandle : dynamic ) -> Unit ) : ChildProcess","docstring":""} {"signature":"fun prependListener ( event : String , listener : ( args : Array < Any > ) -> Unit ) : ChildProcess","body":"fun prependListener ( event : String , listener : ( args : Array < Any > ) -> Unit ) : ChildProcess","docstring":""} {"signature":"fun prependListener ( event : String , listener : ( code : Number , signal : String ) -> Unit ) : ChildProcess","body":"fun prependListener ( event : String , listener : ( code : Number , signal : String ) -> Unit ) : ChildProcess","docstring":""} {"signature":"fun prependListener ( event : String , listener : ( ) -> Unit ) : ChildProcess","body":"fun prependListener ( event : String , listener : ( ) -> Unit ) : ChildProcess","docstring":""} {"signature":"fun prependListener ( event : String , listener : ( err : Error ) -> Unit ) : ChildProcess","body":"fun prependListener ( event : String , listener : ( err : Error ) -> Unit ) : ChildProcess","docstring":""} {"signature":"fun prependListener ( event : String , listener : ( code : Number ? , signal : String ? ) -> Unit ) : ChildProcess","body":"fun prependListener ( event : String , listener : ( code : Number ? , signal : String ? ) -> Unit ) : ChildProcess","docstring":""} {"signature":"fun prependListener ( event : String , listener : ( message : Any , sendHandle : dynamic ) -> Unit ) : ChildProcess","body":"fun prependListener ( event : String , listener : ( message : Any , sendHandle : dynamic ) -> Unit ) : ChildProcess","docstring":""} {"signature":"fun prependOnceListener ( event : String , listener : ( args : Array < Any > ) -> Unit ) : ChildProcess","body":"fun prependOnceListener ( event : String , listener : ( args : Array < Any > ) -> Unit ) : ChildProcess","docstring":""} {"signature":"fun prependOnceListener ( event : String , listener : ( code : Number , signal : String ) -> Unit ) : ChildProcess","body":"fun prependOnceListener ( event : String , listener : ( code : Number , signal : String ) -> Unit ) : ChildProcess","docstring":""} {"signature":"fun prependOnceListener ( event : String , listener : ( ) -> Unit ) : ChildProcess","body":"fun prependOnceListener ( event : String , listener : ( ) -> Unit ) : ChildProcess","docstring":""} {"signature":"fun prependOnceListener ( event : String , listener : ( err : Error ) -> Unit ) : ChildProcess","body":"fun prependOnceListener ( event : String , listener : ( err : Error ) -> Unit ) : ChildProcess","docstring":""} {"signature":"fun prependOnceListener ( event : String , listener : ( code : Number ? , signal : String ? ) -> Unit ) : ChildProcess","body":"fun prependOnceListener ( event : String , listener : ( code : Number ? , signal : String ? ) -> Unit ) : ChildProcess","docstring":""} {"signature":"fun prependOnceListener ( event : String , listener : ( message : Any , sendHandle : dynamic ) -> Unit ) : ChildProcess","body":"fun prependOnceListener ( event : String , listener : ( message : Any , sendHandle : dynamic ) -> Unit ) : ChildProcess","docstring":""} {"signature":"external fun spawn ( command : String , options : SpawnOptionsWithoutStdio ? = definedExternally ) : ChildProcessWithoutNullStreams","body":"external fun spawn ( command : String , options : SpawnOptionsWithoutStdio ? = definedExternally ) : ChildProcessWithoutNullStreams","docstring":""} {"signature":"external fun spawn ( command : String , options : SpawnOptionsWithStdioTuple < String ? , String ? , String ? > ) : ChildProcessByStdio < Writable , Readable , Readable >","body":"external fun spawn ( command : String , options : SpawnOptionsWithStdioTuple < String ? , String ? , String ? > ) : ChildProcessByStdio < Writable , Readable , Readable >","docstring":""} {"signature":"external fun spawn ( command : String , options : SpawnOptionsWithStdioTuple < String ? , String ? , dynamic > ) : ChildProcessByStdio < Writable , Readable , Nothing ? >","body":"external fun spawn ( command : String , options : SpawnOptionsWithStdioTuple < String ? , String ? , dynamic > ) : ChildProcessByStdio < Writable , Readable , Nothing ? >","docstring":""} {"signature":"external fun spawn ( command : String , options : SpawnOptionsWithStdioTuple < String ? , dynamic , String ? > ) : ChildProcessByStdio < Writable , Nothing ? , Readable >","body":"external fun spawn ( command : String , options : SpawnOptionsWithStdioTuple < String ? , dynamic , String ? > ) : ChildProcessByStdio < Writable , Nothing ? , Readable >","docstring":""} {"signature":"external fun spawn ( command : String , options : SpawnOptionsWithStdioTuple < dynamic , String ? , String ? > ) : ChildProcessByStdio < Nothing ? , Readable , Readable >","body":"external fun spawn ( command : String , options : SpawnOptionsWithStdioTuple < dynamic , String ? , String ? > ) : ChildProcessByStdio < Nothing ? , Readable , Readable >","docstring":""} {"signature":"external fun spawn ( command : String , options : SpawnOptionsWithStdioTuple < String ? , dynamic , dynamic > ) : ChildProcessByStdio < Writable , Nothing ? , Nothing ? >","body":"external fun spawn ( command : String , options : SpawnOptionsWithStdioTuple < String ? , dynamic , dynamic > ) : ChildProcessByStdio < Writable , Nothing ? , Nothing ? >","docstring":""} {"signature":"external fun spawn ( command : String , options : SpawnOptionsWithStdioTuple < dynamic , String ? , dynamic > ) : ChildProcessByStdio < Nothing ? , Readable , Nothing ? >","body":"external fun spawn ( command : String , options : SpawnOptionsWithStdioTuple < dynamic , String ? , dynamic > ) : ChildProcessByStdio < Nothing ? , Readable , Nothing ? >","docstring":""} {"signature":"external fun spawn ( command : String , options : SpawnOptionsWithStdioTuple < dynamic , dynamic , String ? > ) : ChildProcessByStdio < Nothing ? , Nothing ? , Readable >","body":"external fun spawn ( command : String , options : SpawnOptionsWithStdioTuple < dynamic , dynamic , String ? > ) : ChildProcessByStdio < Nothing ? , Nothing ? , Readable >","docstring":""} {"signature":"external fun spawn ( command : String , options : SpawnOptionsWithStdioTuple < dynamic , dynamic , dynamic > ) : ChildProcessByStdio < Nothing ? , Nothing ? , Nothing ? >","body":"external fun spawn ( command : String , options : SpawnOptionsWithStdioTuple < dynamic , dynamic , dynamic > ) : ChildProcessByStdio < Nothing ? , Nothing ? , Nothing ? >","docstring":""} {"signature":"external fun spawn ( command : String , options : SpawnOptions ) : ChildProcess","body":"external fun spawn ( command : String , options : SpawnOptions ) : ChildProcess","docstring":""} {"signature":"external fun spawn ( command : String , args : ReadonlyArray < String > ? = definedExternally , options : SpawnOptionsWithoutStdio ? = definedExternally ) : ChildProcessWithoutNullStreams","body":"external fun spawn ( command : String , args : ReadonlyArray < String > ? = definedExternally , options : SpawnOptionsWithoutStdio ? = definedExternally ) : ChildProcessWithoutNullStreams","docstring":""} {"signature":"external fun spawn ( command : String , args : ReadonlyArray < String > , options : SpawnOptionsWithStdioTuple < String ? , String ? , String ? > ) : ChildProcessByStdio < Writable , Readable , Readable >","body":"external fun spawn ( command : String , args : ReadonlyArray < String > , options : SpawnOptionsWithStdioTuple < String ? , String ? , String ? > ) : ChildProcessByStdio < Writable , Readable , Readable >","docstring":""} {"signature":"external fun spawn ( command : String , args : ReadonlyArray < String > , options : SpawnOptionsWithStdioTuple < String ? , String ? , dynamic > ) : ChildProcessByStdio < Writable , Readable , Nothing ? >","body":"external fun spawn ( command : String , args : ReadonlyArray < String > , options : SpawnOptionsWithStdioTuple < String ? , String ? , dynamic > ) : ChildProcessByStdio < Writable , Readable , Nothing ? >","docstring":""} {"signature":"external fun spawn ( command : String , args : ReadonlyArray < String > , options : SpawnOptionsWithStdioTuple < String ? , dynamic , String ? > ) : ChildProcessByStdio < Writable , Nothing ? , Readable >","body":"external fun spawn ( command : String , args : ReadonlyArray < String > , options : SpawnOptionsWithStdioTuple < String ? , dynamic , String ? > ) : ChildProcessByStdio < Writable , Nothing ? , Readable >","docstring":""} {"signature":"external fun spawn ( command : String , args : ReadonlyArray < String > , options : SpawnOptionsWithStdioTuple < dynamic , String ? , String ? > ) : ChildProcessByStdio < Nothing ? , Readable , Readable >","body":"external fun spawn ( command : String , args : ReadonlyArray < String > , options : SpawnOptionsWithStdioTuple < dynamic , String ? , String ? > ) : ChildProcessByStdio < Nothing ? , Readable , Readable >","docstring":""} {"signature":"external fun spawn ( command : String , args : ReadonlyArray < String > , options : SpawnOptionsWithStdioTuple < String ? , dynamic , dynamic > ) : ChildProcessByStdio < Writable , Nothing ? , Nothing ? >","body":"external fun spawn ( command : String , args : ReadonlyArray < String > , options : SpawnOptionsWithStdioTuple < String ? , dynamic , dynamic > ) : ChildProcessByStdio < Writable , Nothing ? , Nothing ? >","docstring":""} {"signature":"external fun spawn ( command : String , args : ReadonlyArray < String > , options : SpawnOptionsWithStdioTuple < dynamic , String ? , dynamic > ) : ChildProcessByStdio < Nothing ? , Readable , Nothing ? >","body":"external fun spawn ( command : String , args : ReadonlyArray < String > , options : SpawnOptionsWithStdioTuple < dynamic , String ? , dynamic > ) : ChildProcessByStdio < Nothing ? , Readable , Nothing ? >","docstring":""} {"signature":"external fun spawn ( command : String , args : ReadonlyArray < String > , options : SpawnOptionsWithStdioTuple < dynamic , dynamic , String ? > ) : ChildProcessByStdio < Nothing ? , Nothing ? , Readable >","body":"external fun spawn ( command : String , args : ReadonlyArray < String > , options : SpawnOptionsWithStdioTuple < dynamic , dynamic , String ? > ) : ChildProcessByStdio < Nothing ? , Nothing ? , Readable >","docstring":""} {"signature":"external fun spawn ( command : String , args : ReadonlyArray < String > , options : SpawnOptionsWithStdioTuple < dynamic , dynamic , dynamic > ) : ChildProcessByStdio < Nothing ? , Nothing ? , Nothing ? >","body":"external fun spawn ( command : String , args : ReadonlyArray < String > , options : SpawnOptionsWithStdioTuple < dynamic , dynamic , dynamic > ) : ChildProcessByStdio < Nothing ? , Nothing ? , Nothing ? >","docstring":""} {"signature":"external fun spawn ( command : String , args : ReadonlyArray < String > , options : SpawnOptions ) : ChildProcess","body":"external fun spawn ( command : String , args : ReadonlyArray < String > , options : SpawnOptions ) : ChildProcess","docstring":""} {"signature":"external fun exec ( command : String , callback : ( ( error : ExecException ? , stdout : String , stderr : String ) -> Unit ) ? = definedExternally ) : ChildProcess","body":"external fun exec ( command : String , callback : ( ( error : ExecException ? , stdout : String , stderr : String ) -> Unit ) ? = definedExternally ) : ChildProcess","docstring":""} {"signature":"external fun exec ( command : String , options : `T$0` , callback : ( ( error : ExecException ? , stdout : Buffer , stderr : Buffer ) -> Unit ) ? = definedExternally ) : ChildProcess","body":"external fun exec ( command : String , options : `T$0` , callback : ( ( error : ExecException ? , stdout : Buffer , stderr : Buffer ) -> Unit ) ? = definedExternally ) : ChildProcess","docstring":""} {"signature":"external fun exec ( command : String , options : `T$1` , callback : ( ( error : ExecException ? , stdout : String , stderr : String ) -> Unit ) ? = definedExternally ) : ChildProcess","body":"external fun exec ( command : String , options : `T$1` , callback : ( ( error : ExecException ? , stdout : String , stderr : String ) -> Unit ) ? = definedExternally ) : ChildProcess","docstring":""} {"signature":"external fun exec ( command : String , options : `T$2` , callback : ( ( error : ExecException ? , stdout : dynamic , stderr : dynamic ) -> Unit ) ? = definedExternally ) : ChildProcess","body":"external fun exec ( command : String , options : `T$2` , callback : ( ( error : ExecException ? , stdout : dynamic , stderr : dynamic ) -> Unit ) ? = definedExternally ) : ChildProcess","docstring":""} {"signature":"external fun exec ( command : String , options : ExecOptions , callback : ( ( error : ExecException ? , stdout : String , stderr : String ) -> Unit ) ? = definedExternally ) : ChildProcess","body":"external fun exec ( command : String , options : ExecOptions , callback : ( ( error : ExecException ? , stdout : String , stderr : String ) -> Unit ) ? = definedExternally ) : ChildProcess","docstring":""} {"signature":"external fun exec ( command : String , options : `T$3` , callback : ( ( error : ExecException ? , stdout : dynamic , stderr : dynamic ) -> Unit ) ? = definedExternally ) : ChildProcess","body":"external fun exec ( command : String , options : `T$3` , callback : ( ( error : ExecException ? , stdout : dynamic , stderr : dynamic ) -> Unit ) ? = definedExternally ) : ChildProcess","docstring":""} {"signature":"external fun execFile ( file : String ) : ChildProcess","body":"external fun execFile ( file : String ) : ChildProcess","docstring":""} {"signature":"external fun execFile ( file : String , options : `T$3` ) : ChildProcess","body":"external fun execFile ( file : String , options : `T$3` ) : ChildProcess","docstring":""} {"signature":"external fun execFile ( file : String , args : ReadonlyArray < String > ? = definedExternally ) : ChildProcess","body":"external fun execFile ( file : String , args : ReadonlyArray < String > ? = definedExternally ) : ChildProcess","docstring":""} {"signature":"external fun execFile ( file : String , args : ReadonlyArray < String > ? , options : `T$3` ) : ChildProcess","body":"external fun execFile ( file : String , args : ReadonlyArray < String > ? , options : `T$3` ) : ChildProcess","docstring":""} {"signature":"external fun execFile ( file : String , callback : ( error : Error ? , stdout : String , stderr : String ) -> Unit ) : ChildProcess","body":"external fun execFile ( file : String , callback : ( error : Error ? , stdout : String , stderr : String ) -> Unit ) : ChildProcess","docstring":""} {"signature":"external fun execFile ( file : String , args : ReadonlyArray < String > ? , callback : ( error : Error ? , stdout : String , stderr : String ) -> Unit ) : ChildProcess","body":"external fun execFile ( file : String , args : ReadonlyArray < String > ? , callback : ( error : Error ? , stdout : String , stderr : String ) -> Unit ) : ChildProcess","docstring":""} {"signature":"external fun execFile ( file : String , options : ExecFileOptionsWithBufferEncoding , callback : ( error : Error ? , stdout : Buffer , stderr : Buffer ) -> Unit ) : ChildProcess","body":"external fun execFile ( file : String , options : ExecFileOptionsWithBufferEncoding , callback : ( error : Error ? , stdout : Buffer , stderr : Buffer ) -> Unit ) : ChildProcess","docstring":""} {"signature":"external fun execFile ( file : String , args : ReadonlyArray < String > ? , options : ExecFileOptionsWithBufferEncoding , callback : ( error : Error ? , stdout : Buffer , stderr : Buffer ) -> Unit ) : ChildProcess","body":"external fun execFile ( file : String , args : ReadonlyArray < String > ? , options : ExecFileOptionsWithBufferEncoding , callback : ( error : Error ? , stdout : Buffer , stderr : Buffer ) -> Unit ) : ChildProcess","docstring":""} {"signature":"external fun execFile ( file : String , options : ExecFileOptionsWithStringEncoding , callback : ( error : Error ? , stdout : String , stderr : String ) -> Unit ) : ChildProcess","body":"external fun execFile ( file : String , options : ExecFileOptionsWithStringEncoding , callback : ( error : Error ? , stdout : String , stderr : String ) -> Unit ) : ChildProcess","docstring":""} {"signature":"external fun execFile ( file : String , args : ReadonlyArray < String > ? , options : ExecFileOptionsWithStringEncoding , callback : ( error : Error ? , stdout : String , stderr : String ) -> Unit ) : ChildProcess","body":"external fun execFile ( file : String , args : ReadonlyArray < String > ? , options : ExecFileOptionsWithStringEncoding , callback : ( error : Error ? , stdout : String , stderr : String ) -> Unit ) : ChildProcess","docstring":""} {"signature":"external fun execFile ( file : String , options : ExecFileOptionsWithOtherEncoding , callback : ( error : Error ? , stdout : dynamic , stderr : dynamic ) -> Unit ) : ChildProcess","body":"external fun execFile ( file : String , options : ExecFileOptionsWithOtherEncoding , callback : ( error : Error ? , stdout : dynamic , stderr : dynamic ) -> Unit ) : ChildProcess","docstring":""} {"signature":"external fun execFile ( file : String , args : ReadonlyArray < String > ? , options : ExecFileOptionsWithOtherEncoding , callback : ( error : Error ? , stdout : dynamic , stderr : dynamic ) -> Unit ) : ChildProcess","body":"external fun execFile ( file : String , args : ReadonlyArray < String > ? , options : ExecFileOptionsWithOtherEncoding , callback : ( error : Error ? , stdout : dynamic , stderr : dynamic ) -> Unit ) : ChildProcess","docstring":""} {"signature":"external fun execFile ( file : String , options : ExecFileOptions , callback : ( error : Error ? , stdout : String , stderr : String ) -> Unit ) : ChildProcess","body":"external fun execFile ( file : String , options : ExecFileOptions , callback : ( error : Error ? , stdout : String , stderr : String ) -> Unit ) : ChildProcess","docstring":""} {"signature":"external fun execFile ( file : String , args : ReadonlyArray < String > ? , options : ExecFileOptions , callback : ( error : Error ? , stdout : String , stderr : String ) -> Unit ) : ChildProcess","body":"external fun execFile ( file : String , args : ReadonlyArray < String > ? , options : ExecFileOptions , callback : ( error : Error ? , stdout : String , stderr : String ) -> Unit ) : ChildProcess","docstring":""} {"signature":"external fun execFile ( file : String , options : `T$3` , callback : ( ( error : Error ? , stdout : dynamic , stderr : dynamic ) -> Unit ) ? ) : ChildProcess","body":"external fun execFile ( file : String , options : `T$3` , callback : ( ( error : Error ? , stdout : dynamic , stderr : dynamic ) -> Unit ) ? ) : ChildProcess","docstring":""} {"signature":"external fun execFile ( file : String , args : ReadonlyArray < String > ? , options : `T$3` , callback : ( ( error : Error ? , stdout : dynamic , stderr : dynamic ) -> Unit ) ? ) : ChildProcess","body":"external fun execFile ( file : String , args : ReadonlyArray < String > ? , options : `T$3` , callback : ( ( error : Error ? , stdout : dynamic , stderr : dynamic ) -> Unit ) ? ) : ChildProcess","docstring":""} {"signature":"external fun fork ( modulePath : String , args : ReadonlyArray < String > ? = definedExternally , options : ForkOptions ? = definedExternally ) : ChildProcess","body":"external fun fork ( modulePath : String , args : ReadonlyArray < String > ? = definedExternally , options : ForkOptions ? = definedExternally ) : ChildProcess","docstring":""} {"signature":"external fun spawnSync ( command : String ) : SpawnSyncReturns < Buffer >","body":"external fun spawnSync ( command : String ) : SpawnSyncReturns < Buffer >","docstring":""} {"signature":"external fun spawnSync ( command : String , options : SpawnSyncOptionsWithStringEncoding ? = definedExternally ) : SpawnSyncReturns < String >","body":"external fun spawnSync ( command : String , options : SpawnSyncOptionsWithStringEncoding ? = definedExternally ) : SpawnSyncReturns < String >","docstring":""} {"signature":"external fun spawnSync ( command : String , options : SpawnSyncOptionsWithBufferEncoding ? = definedExternally ) : SpawnSyncReturns < Buffer >","body":"external fun spawnSync ( command : String , options : SpawnSyncOptionsWithBufferEncoding ? = definedExternally ) : SpawnSyncReturns < Buffer >","docstring":""} {"signature":"external fun spawnSync ( command : String , options : SpawnSyncOptions ? = definedExternally ) : SpawnSyncReturns < Buffer >","body":"external fun spawnSync ( command : String , options : SpawnSyncOptions ? = definedExternally ) : SpawnSyncReturns < Buffer >","docstring":""} {"signature":"external fun spawnSync ( command : String , args : ReadonlyArray < String > ? = definedExternally , options : SpawnSyncOptionsWithStringEncoding ? = definedExternally ) : SpawnSyncReturns < String >","body":"external fun spawnSync ( command : String , args : ReadonlyArray < String > ? = definedExternally , options : SpawnSyncOptionsWithStringEncoding ? = definedExternally ) : SpawnSyncReturns < String >","docstring":""} {"signature":"external fun spawnSync ( command : String , args : ReadonlyArray < String > ? = definedExternally , options : SpawnSyncOptionsWithBufferEncoding ? = definedExternally ) : SpawnSyncReturns < Buffer >","body":"external fun spawnSync ( command : String , args : ReadonlyArray < String > ? = definedExternally , options : SpawnSyncOptionsWithBufferEncoding ? = definedExternally ) : SpawnSyncReturns < Buffer >","docstring":""} {"signature":"external fun spawnSync ( command : String , args : ReadonlyArray < String > ? = definedExternally , options : SpawnSyncOptions ? = definedExternally ) : SpawnSyncReturns < Buffer >","body":"external fun spawnSync ( command : String , args : ReadonlyArray < String > ? = definedExternally , options : SpawnSyncOptions ? = definedExternally ) : SpawnSyncReturns < Buffer >","docstring":""} {"signature":"external fun execSync ( command : String ) : Buffer","body":"external fun execSync ( command : String ) : Buffer","docstring":""} {"signature":"external fun execSync ( command : String , options : ExecSyncOptionsWithStringEncoding ? = definedExternally ) : String","body":"external fun execSync ( command : String , options : ExecSyncOptionsWithStringEncoding ? = definedExternally ) : String","docstring":""} {"signature":"external fun execSync ( command : String , options : ExecSyncOptionsWithBufferEncoding ? = definedExternally ) : Buffer","body":"external fun execSync ( command : String , options : ExecSyncOptionsWithBufferEncoding ? = definedExternally ) : Buffer","docstring":""} {"signature":"external fun execSync ( command : String , options : ExecSyncOptions ? = definedExternally ) : Buffer","body":"external fun execSync ( command : String , options : ExecSyncOptions ? = definedExternally ) : Buffer","docstring":""} {"signature":"external fun execFileSync ( command : String ) : Buffer","body":"external fun execFileSync ( command : String ) : Buffer","docstring":""} {"signature":"external fun execFileSync ( command : String , options : ExecFileSyncOptionsWithStringEncoding ? = definedExternally ) : String","body":"external fun execFileSync ( command : String , options : ExecFileSyncOptionsWithStringEncoding ? = definedExternally ) : String","docstring":""} {"signature":"external fun execFileSync ( command : String , options : ExecFileSyncOptionsWithBufferEncoding ? = definedExternally ) : Buffer","body":"external fun execFileSync ( command : String , options : ExecFileSyncOptionsWithBufferEncoding ? = definedExternally ) : Buffer","docstring":""} {"signature":"external fun execFileSync ( command : String , options : ExecFileSyncOptions ? = definedExternally ) : Buffer","body":"external fun execFileSync ( command : String , options : ExecFileSyncOptions ? = definedExternally ) : Buffer","docstring":""} {"signature":"external fun execFileSync ( command : String , args : ReadonlyArray < String > ? = definedExternally , options : ExecFileSyncOptionsWithStringEncoding ? = definedExternally ) : String","body":"external fun execFileSync ( command : String , args : ReadonlyArray < String > ? = definedExternally , options : ExecFileSyncOptionsWithStringEncoding ? = definedExternally ) : String","docstring":""} {"signature":"external fun execFileSync ( command : String , args : ReadonlyArray < String > ? = definedExternally , options : ExecFileSyncOptionsWithBufferEncoding ? = definedExternally ) : Buffer","body":"external fun execFileSync ( command : String , args : ReadonlyArray < String > ? = definedExternally , options : ExecFileSyncOptionsWithBufferEncoding ? = definedExternally ) : Buffer","docstring":""} {"signature":"external fun execFileSync ( command : String , args : ReadonlyArray < String > ? = definedExternally , options : ExecFileSyncOptions ? = definedExternally ) : Buffer","body":"external fun execFileSync ( command : String , args : ReadonlyArray < String > ? = definedExternally , options : ExecFileSyncOptions ? = definedExternally ) : Buffer","docstring":""} {"signature":"override fun check ( declaration : FirDeclaration , context : CheckerContext , reporter : DiagnosticReporter )","body":"{ val annotations = declaration . annotations if ( annotations . isEmpty ( ) ) return val annotationsMap = hashMapOf < ConeKotlinType , MutableList < AnnotationUseSiteTarget ? > > ( ) val session = context . session for ( annotation in annotations ) { val unexpandedClassId = annotation . unexpandedClassId ? : continue val annotationClassId = annotation . toAnnotationClassId ( session ) ? : continue if ( annotationClassId . isLocal ) continue val annotationClass = session . symbolProvider . getClassLikeSymbolByClassId ( annotationClassId ) ? : continue val useSiteTarget = annotation . useSiteTarget val expandedType = annotation . annotationTypeRef . coneType . fullyExpandedType ( context . session ) val existingTargetsForAnnotation = annotationsMap . getOrPut ( expandedType ) { arrayListOf ( ) } val duplicateAnnotation = useSiteTarget in existingTargetsForAnnotation || existingTargetsForAnnotation . any { ( it == null ) != ( useSiteTarget == null ) } if ( duplicateAnnotation && session . annotationPlatformSupport . symbolContainsRepeatableAnnotation ( annotationClass , session ) && annotationClass . getAnnotationRetention ( session ) != AnnotationRetention . SOURCE ) { if ( session . languageVersionSettings . supportsFeature ( LanguageFeature . RepeatableAnnotations ) ) { val explicitContainer = annotationClass . resolveContainerAnnotation ( session ) if ( explicitContainer != null && annotations . any { it . toAnnotationClassId ( session ) == explicitContainer } ) { reporter . reportOn ( annotation . source , FirJvmErrors . REPEATED_ANNOTATION_WITH_CONTAINER , unexpandedClassId , explicitContainer , context ) } } else { reporter . reportOn ( annotation . source , FirJvmErrors . NON_SOURCE_REPEATED_ANNOTATION , context ) } } existingTargetsForAnnotation . add ( useSiteTarget ) } if ( declaration is FirRegularClass ) { val javaRepeatable = annotations . getAnnotationByClassId ( JvmStandardClassIds . Annotations . Java . Repeatable , session ) if ( javaRepeatable != null ) { checkJavaRepeatableAnnotationDeclaration ( javaRepeatable , declaration , context , reporter ) } else { val kotlinRepeatable = annotations . getAnnotationByClassId ( StandardClassIds . Annotations . Repeatable , session ) if ( kotlinRepeatable != null ) { checkKotlinRepeatableAnnotationDeclaration ( kotlinRepeatable , declaration , context , reporter ) } } } }","docstring":""} {"signature":"private fun FirClassLikeSymbol < * > . resolveContainerAnnotation ( session : FirSession ) : ClassId ?","body":"{ val repeatableAnnotation = getAnnotationByClassId ( StandardClassIds . Annotations . Repeatable , session ) ? : getAnnotationByClassId ( JvmStandardClassIds . Annotations . Java . Repeatable , session ) ? : return null return repeatableAnnotation . resolveContainerAnnotation ( ) }","docstring":""} {"signature":"private fun FirAnnotation . resolveContainerAnnotation ( ) : ClassId ?","body":"{ val value = findArgumentByName ( StandardClassIds . Annotations . ParameterNames . value ) ? : return null val classCallArgument = ( value as? FirGetClassCall ) ? . argument ? : return null if ( classCallArgument is FirResolvedQualifier ) { return classCallArgument . classId } else if ( classCallArgument is FirClassReferenceExpression ) { val type = classCallArgument . classTypeRef . coneType . lowerBoundIfFlexible ( ) as? ConeClassLikeType ? : return null return type . lookupTag . classId } return null }","docstring":""} {"signature":"private fun checkJavaRepeatableAnnotationDeclaration ( javaRepeatable : FirAnnotation , annotationClass : FirRegularClass , context : CheckerContext , reporter : DiagnosticReporter )","body":"{ val containerClassId = javaRepeatable . resolveContainerAnnotation ( ) ? : return val containerClassSymbol = context . session . symbolProvider . getClassLikeSymbolByClassId ( containerClassId ) as? FirRegularClassSymbol ? : return checkRepeatableAnnotationContainer ( annotationClass , containerClassSymbol , javaRepeatable . source , context , reporter ) }","docstring":""} {"signature":"private fun checkKotlinRepeatableAnnotationDeclaration ( kotlinRepeatable : FirAnnotation , declaration : FirRegularClass , context : CheckerContext , reporter : DiagnosticReporter )","body":"{ val unsubsitutedScope = declaration . unsubstitutedScope ( context ) if ( unsubsitutedScope . getSingleClassifier ( REPEATABLE_ANNOTATION_CONTAINER_NAME ) != null ) { reporter . reportOn ( kotlinRepeatable . source , FirJvmErrors . REPEATABLE_ANNOTATION_HAS_NESTED_CLASS_NAMED_CONTAINER , context ) } }","docstring":""} {"signature":"private fun checkRepeatableAnnotationContainer ( annotationClass : FirRegularClass , containerClass : FirRegularClassSymbol , annotationSource : KtSourceElement ? , context : CheckerContext , reporter : DiagnosticReporter )","body":"{ checkContainerParameters ( containerClass , annotationClass , annotationSource , context , reporter ) checkContainerRetention ( containerClass , annotationClass , annotationSource , context , reporter ) checkContainerTarget ( containerClass , annotationClass , annotationSource , context , reporter ) }","docstring":""} {"signature":"private fun checkContainerParameters ( containerClass : FirRegularClassSymbol , annotationClass : FirRegularClass , annotationSource : KtSourceElement ? , context : CheckerContext , reporter : DiagnosticReporter )","body":"{ val containerCtor = containerClass . declarationSymbols . find { it is FirConstructorSymbol && it . isPrimary } as? FirConstructorSymbol ? : return val valueParameterSymbols = containerCtor . valueParameterSymbols val parameterName = StandardClassIds . Annotations . ParameterNames . value val value = valueParameterSymbols . find { it . name == parameterName } if ( value == null || ! value . resolvedReturnTypeRef . coneType . fullyExpandedType ( context . session ) . isArrayType || value . resolvedReturnTypeRef . type . typeArguments . single ( ) . type != annotationClass . defaultType ( ) ) { reporter . reportOn ( annotationSource , FirJvmErrors . REPEATABLE_CONTAINER_MUST_HAVE_VALUE_ARRAY , containerClass . classId , annotationClass . classId , context ) return } val otherNonDefault = valueParameterSymbols . find { it . name != parameterName && ! it . hasDefaultValue } if ( otherNonDefault != null ) { reporter . reportOn ( annotationSource , FirJvmErrors . REPEATABLE_CONTAINER_HAS_NON_DEFAULT_PARAMETER , containerClass . classId , otherNonDefault . name , context ) return } }","docstring":""} {"signature":"private fun checkContainerRetention ( containerClass : FirRegularClassSymbol , annotationClass : FirRegularClass , annotationSource : KtSourceElement ? , context : CheckerContext , reporter : DiagnosticReporter )","body":"{ val annotationRetention = annotationClass . symbol . getAnnotationRetention ( context . session ) val containerRetention = containerClass . getAnnotationRetention ( context . session ) if ( containerRetention < annotationRetention ) { reporter . reportOn ( annotationSource , FirJvmErrors . REPEATABLE_CONTAINER_HAS_SHORTER_RETENTION , containerClass . classId , containerRetention . name , annotationClass . classId , annotationRetention . name , context ) } }","docstring":""} {"signature":"private fun checkContainerTarget ( containerClass : FirRegularClassSymbol , annotationClass : FirRegularClass , annotationSource : KtSourceElement ? , context : CheckerContext , reporter : DiagnosticReporter )","body":"{ val annotationTargets = annotationClass . getAllowedAnnotationTargets ( context . session ) val containerTargets = containerClass . getAllowedAnnotationTargets ( context . session ) for ( target in containerTargets ) { val ok = when ( target ) { in annotationTargets -> true KotlinTarget . ANNOTATION_CLASS -> KotlinTarget . CLASS in annotationTargets || KotlinTarget . TYPE in annotationTargets KotlinTarget . CLASS -> KotlinTarget . TYPE in annotationTargets KotlinTarget . TYPE_PARAMETER -> KotlinTarget . TYPE in annotationTargets else -> false } if ( ! ok ) { reporter . reportOn ( annotationSource , FirJvmErrors . REPEATABLE_CONTAINER_TARGET_SET_NOT_A_SUBSET , containerClass . classId , annotationClass . classId , context ) return } } }","docstring":""} {"signature":"fun < S : T > takeFoo ( foo : Foo < in S > )","body":"{ }","docstring":""} {"signature":"fun < K : Inv < out Inv < out Number > > > main ( )","body":"{ val foo = Foo < K > ( ) Bar < Inv < Inv < Int > > > ( ) . takeFoo ( foo ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ assertEquals ( , C ( ) . testClassVal ) assertEquals ( , C ( ) . testJvmFieldVal ) assertEquals ( , C . testCompanionObjectVal ) assertEquals ( , C . testJvmStaticCompanionObjectVal ) assertEquals ( , C . testJvmFieldCompanionObjectVal ) assertEquals ( , IFoo . testInterfaceCompanionObjectVal ) assertEquals ( , IBar . testJvmFieldInInterfaceCompanionObject ) assertEquals ( , Obj . testObjectVal ) assertEquals ( , Obj . testJvmStaticObjectVal ) assertEquals ( , Obj . testJvmFieldObjectVal ) assertEquals ( , testTopLevelVal ) return \"\" }","docstring":""} {"signature":"override fun getResolveExtensionScopeWithTopLevelDeclarations ( ) : KtScope","body":"{ val tools = analysisSession . extensionTools if ( tools . isEmpty ( ) ) return KtEmptyScope ( token ) return KtFirResolveExtensionScope ( analysisSession , tools ) }","docstring":""} {"signature":"@ OptIn ( KtModuleStructureInternals :: class ) override fun isResolveExtensionFile ( file : VirtualFile ) : Boolean","body":"= file . navigationTargetsProvider != null","docstring":""} {"signature":"@ OptIn ( KtModuleStructureInternals :: class ) override fun getResolveExtensionNavigationElements ( originalPsi : KtElement ) : Collection < PsiElement >","body":"{ val targetsProvider = originalPsi . containingFile ? . virtualFile ? . navigationTargetsProvider ? : return emptyList ( ) return with ( targetsProvider ) { analysisSession . getNavigationTargets ( originalPsi ) } }","docstring":""} {"signature":"override fun getCallableSymbols ( nameFilter : KtScopeNameFilter ) : Sequence < KtCallableSymbol >","body":"= withValidityAssertion { getTopLevelDeclarations ( nameFilter ) { it . getTopLevelCallables ( ) } }","docstring":""} {"signature":"override fun getCallableSymbols ( names : Collection < Name > ) : Sequence < KtCallableSymbol >","body":"= withValidityAssertion { if ( names . isEmpty ( ) ) return emptySequence ( ) val namesSet = names . toSet ( ) return getCallableSymbols { it in namesSet } }","docstring":""} {"signature":"override fun getClassifierSymbols ( nameFilter : KtScopeNameFilter ) : Sequence < KtClassifierSymbol >","body":"= withValidityAssertion { getTopLevelDeclarations ( nameFilter ) { it . getTopLevelClassifiers ( ) } }","docstring":""} {"signature":"override fun getClassifierSymbols ( names : Collection < Name > ) : Sequence < KtClassifierSymbol >","body":"= withValidityAssertion { if ( names . isEmpty ( ) ) return emptySequence ( ) val namesSet = names . toSet ( ) return getClassifierSymbols { it in namesSet } }","docstring":""} {"signature":"private inline fun < D : KtNamedDeclaration , reified S : KtDeclarationSymbol > getTopLevelDeclarations ( crossinline nameFilter : KtScopeNameFilter , crossinline getDeclarationsByProvider : ( LLFirResolveExtensionToolDeclarationProvider ) -> Sequence < D > , ) : Sequence < S >","body":"= sequence { for ( tool in tools ) { for ( declaration in getDeclarationsByProvider ( tool . declarationProvider ) ) { val declarationName = declaration . nameAsName ? : continue if ( ! nameFilter ( declarationName ) ) continue with ( analysisSession ) { yield ( declaration . getSymbol ( ) as S ) } } } }","docstring":""} {"signature":"override fun getConstructors ( ) : Sequence < KtConstructorSymbol >","body":"= withValidityAssertion { emptySequence ( ) }","docstring":""} {"signature":"override fun getPackageSymbols ( nameFilter : KtScopeNameFilter ) : Sequence < KtPackageSymbol >","body":"= withValidityAssertion { sequence { val seenTopLevelPackages = mutableSetOf < Name > ( ) for ( tool in tools ) { for ( packageName in tool . packageFilter . getAllSubPackages ( FqName . ROOT ) ) { if ( seenTopLevelPackages . add ( packageName ) && nameFilter ( packageName ) ) { yield ( analysisSession . firSymbolBuilder . createPackageSymbol ( FqName . ROOT . child ( packageName ) ) ) } } } } }","docstring":""} {"signature":"override fun getPossibleCallableNames ( ) : Set < Name >","body":"= withValidityAssertion { tools . flatMapTo ( mutableSetOf ( ) ) { it . declarationProvider . getTopLevelCallableNames ( ) } }","docstring":""} {"signature":"override fun getPossibleClassifierNames ( ) : Set < Name >","body":"= withValidityAssertion { tools . flatMapTo ( mutableSetOf ( ) ) { it . declarationProvider . getTopLevelClassifierNames ( ) } }","docstring":""} {"signature":"actual override fun < T : Number > pow ( mat : MultiArray < T , D2 > , n : Int ) : NDArray < T , D2 >","body":"= ktLinAlg . pow ( mat , n )","docstring":""} {"signature":"@ Input internal fun getUrlString ( )","body":"= url . map ( URL :: toString )","docstring":""} {"signature":"@ Input @ Optional internal fun getPackageListUrlString ( )","body":"= packageListUrl . map ( URL :: toString )","docstring":""} {"signature":"override fun build ( ) : ExternalDocumentationLinkImpl","body":"= ExternalDocumentationLink ( url = checkNotNull ( url . get ( ) ) { \"\" } , packageListUrl = packageListUrl . orNull , )","docstring":""} {"signature":"fun func1 ( x : Any )","body":"{ }","docstring":""} {"signature":"fun func2 ( )","body":"{ func1 ( WeakReference ( Any ( ) ) . get ( ) ! ! ) }","docstring":""} {"signature":"fun excludeUnused ( headerName : String ? ) : Boolean","body":"fun excludeUnused ( headerName : String ? ) : Boolean","docstring":"/**\n * Whether unused declarations from given header should be excluded.\n *\n * @param headerName header path relative to the appropriate include path element (e.g. `time.h` or `curl/curl.h`),\n * or `null` for builtin declarations.\n */"} {"signature":"fun excludeAll ( headerId : HeaderId ) : Boolean","body":"fun excludeAll ( headerId : HeaderId ) : Boolean","docstring":"/**\n * Whether all declarations from this header should be excluded.\n *\n * Note: the declarations from such headers can be actually present in the internal representation,\n * but not included into the root collections.\n */"} {"signature":"fun defaultCompilerArgs ( language : Language ) : List < String >","body":"= listOf ( \"\" , \"\" , ) + when ( language ) { Language . C -> emptyList ( ) Language . CPP -> emptyList ( ) Language . OBJECTIVE_C -> listOf ( \"\" , \"\" ) }","docstring":""} {"signature":"fun buildNativeIndex ( library : NativeLibrary , verbose : Boolean ) : IndexerResult","body":"= buildNativeIndexImpl ( library , verbose )","docstring":"/**\n * Retrieves the definitions from given C header file using given compiler arguments (e.g. defines).\n */"} {"signature":"fun containsInstancetype ( ) : Boolean","body":"= returnType . containsInstancetype ( )","docstring":""} {"signature":"fun getReturnType ( container : ObjCClassOrProtocol ) : Type","body":"= if ( returnType . containsInstancetype ( ) ) { returnType . substituteInstancetype ( container ) } else { returnType }","docstring":""} {"signature":"private fun Type . containsInstancetype ( ) : Boolean","body":"= when ( this ) { is ObjCInstanceType -> true is ObjCBlockPointer -> this . returnType . containsInstancetype ( ) is FunctionType -> this . returnType . containsInstancetype ( ) is PointerType -> this . pointeeType . containsInstancetype ( ) else -> false }","docstring":""} {"signature":"private fun Type . substituteInstancetype ( container : ObjCClassOrProtocol ) : Type","body":"= when ( this ) { is ObjCInstanceType -> when ( container ) { is ObjCClass -> ObjCObjectPointer ( container , this . nullability , protocols = emptyList ( ) ) is ObjCProtocol -> ObjCIdType ( this . nullability , protocols = listOf ( container ) ) } is ObjCBlockPointer -> this . copy ( returnType = this . returnType . substituteInstancetype ( container ) ) is FunctionType -> this . copy ( returnType = this . returnType . substituteInstancetype ( container ) ) is PointerType -> this . copy ( pointeeType = this . pointeeType . substituteInstancetype ( container ) ) else -> this }","docstring":""} {"signature":"fun getType ( container : ObjCClassOrProtocol ) : Type","body":"= getter . getReturnType ( container )","docstring":""} {"signature":"fun CxxMethodInfo . isConst ( ) : Boolean","body":"= receiverType . pointeeIsConst","docstring":""} {"signature":"private fun fromCArray ( ptr : CPointer < CPointerVar < ByteVar > > , count : Int )","body":"= Array ( count , { index -> ( ptr + index ) ! ! . pointed . value ! ! . toKString ( ) } )","docstring":""} {"signature":"fun execute ( command : String , callback : ( ( Array < String > , Array < String > ) -> Int ) ? = null )","body":"{ memScoped { val error = this . alloc < CPointerVar < ByteVar > > ( ) val callbackStable = if ( callback != null ) StableRef . create ( callback ) else null try { if ( sqlite3_exec ( db , command , if ( callback != null ) staticCFunction { ptr , count , data , columns -> val callbackFunction = ptr ! ! . asStableRef < ( Array < String > , Array < String > ) -> Int > ( ) . get ( ) val columnsArray = fromCArray ( columns ! ! , count ) val dataArray = fromCArray ( data ! ! , count ) callbackFunction ( columnsArray , dataArray ) } else null , callbackStable ? . asCPointer ( ) , error . ptr ) != ) throw KSqliteError ( \"\" ) } finally { callbackStable ? . dispose ( ) sqlite3_free ( error . value ) } } }","docstring":""} {"signature":"fun escape ( input : String ) : String","body":"= input . replace ( \"\" , \"\" )","docstring":""} {"signature":"override fun toString ( ) : String","body":"= \"\"","docstring":""} {"signature":"fun close ( )","body":"{ if ( db != null ) { sqlite3_close ( db ) db = null } }","docstring":""} {"signature":"inline fun withSqlite ( path : String , function : ( KSqlite ) -> Unit )","body":"{ val db = KSqlite ( path ) try { function ( db ) } finally { db . close ( ) } }","docstring":""} {"signature":"inline fun withSqlite ( db : KSqlite , function : ( KSqlite ) -> Unit )","body":"{ try { function ( db ) } finally { db . close ( ) } }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val p = < ; if ( ! ! ! ! ! p ) { return \"\" } else { return \"\" } }","docstring":""} {"signature":"fun invoke ( i : Int )","body":"= i","docstring":""} {"signature":"fun test ( )","body":"= A < caret > ( )","docstring":""} {"signature":"fun defineNativeTargets ( platform : String , archs : List < String > ) : List < KonanTarget >","body":"{ class UnknownArchitectureException ( platform : String , arch : String ) : IllegalArgumentException ( \"\" ) val targets : MutableSet < KonanTarget > = mutableSetOf ( ) when { platform . startsWith ( \"\" ) -> { targets . addAll ( archs . map { arch -> when ( arch ) { \"\" , \"\" -> KonanTarget . IOS_ARM64 else -> throw UnknownArchitectureException ( platform , arch ) } } ) } platform . startsWith ( \"\" ) -> { targets . addAll ( archs . map { arch -> when ( arch ) { \"\" , \"\" -> KonanTarget . IOS_SIMULATOR_ARM64 \"\" -> KonanTarget . IOS_X64 else -> throw UnknownArchitectureException ( platform , arch ) } } ) } platform . startsWith ( \"\" ) -> { targets . addAll ( archs . map { arch -> when ( arch ) { \"\" -> KonanTarget . WATCHOS_ARM32 \"\" -> KonanTarget . WATCHOS_ARM64 \"\" -> KonanTarget . WATCHOS_DEVICE_ARM64 else -> throw UnknownArchitectureException ( platform , arch ) } } ) } platform . startsWith ( \"\" ) -> { targets . addAll ( archs . map { arch -> when ( arch ) { \"\" , \"\" -> KonanTarget . WATCHOS_SIMULATOR_ARM64 \"\" -> KonanTarget . WATCHOS_X64 else -> throw UnknownArchitectureException ( platform , arch ) } } ) } platform . startsWith ( \"\" ) -> { targets . addAll ( archs . map { arch -> when ( arch ) { \"\" , \"\" -> KonanTarget . TVOS_ARM64 else -> throw UnknownArchitectureException ( platform , arch ) } } ) } platform . startsWith ( \"\" ) -> { targets . addAll ( archs . map { arch -> when ( arch ) { \"\" , \"\" -> KonanTarget . TVOS_SIMULATOR_ARM64 \"\" -> KonanTarget . TVOS_X64 else -> throw UnknownArchitectureException ( platform , arch ) } } ) } platform . startsWith ( \"\" ) -> { targets . addAll ( archs . map { arch -> when ( arch ) { \"\" -> KonanTarget . MACOS_ARM64 \"\" -> KonanTarget . MACOS_X64 else -> throw UnknownArchitectureException ( platform , arch ) } } ) } else -> throw IllegalArgumentException ( \"\" ) } return targets . toList ( ) }","docstring":""} {"signature":"override fun visitFunction ( declaration : IrFunction , data : JsGenerationContext ) : JsStatement","body":"{ error ( \"\" ) }","docstring":""} {"signature":"override fun visitBlockBody ( body : IrBlockBody , context : JsGenerationContext ) : JsStatement","body":"{ return JsBlock ( body . statements . map { it . accept ( this , context ) } . toSmartList ( ) ) . withSource ( body , context , container = context . currentFunction ) }","docstring":""} {"signature":"override fun visitBlock ( expression : IrBlock , context : JsGenerationContext ) : JsStatement","body":"{ val newContext = ( expression as? IrReturnableBlock ) ? . inlineFunction ? . let { context . newFile ( it . file , context . currentFunction , context . localNames ) } ? : context val container = expression . innerInlinedBlockOrThis . statements val statements = container . map { it . accept ( this , newContext ) } . toSmartList ( ) return if ( expression is IrReturnableBlock ) { val label = context . getNameForReturnableBlock ( expression ) val wrappedStatements = statements . wrapInCommentsInlineFunctionCall ( expression ) if ( label != null ) { JsLabel ( label , JsBlock ( wrappedStatements ) ) } else { JsCompositeBlock ( wrappedStatements ) } } else { JsBlock ( statements ) } . withSource ( expression , context ) }","docstring":""} {"signature":"private fun List < JsStatement > . wrapInCommentsInlineFunctionCall ( expression : IrReturnableBlock ) : List < JsStatement >","body":"{ val inlineFunction = expression . inlineFunction ? : return this val correspondingProperty = ( inlineFunction as? IrSimpleFunction ) ? . correspondingPropertySymbol val owner = correspondingProperty ? . owner ? : inlineFunction val funName = owner . fqNameWhenAvailable ? : owner . name return listOf ( JsSingleLineComment ( \"\" ) ) + this }","docstring":""} {"signature":"override fun visitComposite ( expression : IrComposite , context : JsGenerationContext ) : JsStatement","body":"{ return if ( expression . statements . isEmpty ( ) ) { JsEmpty } else { JsBlock ( expression . statements . map { it . accept ( this , context ) } . toSmartList ( ) ) . withSource ( expression , context ) } }","docstring":""} {"signature":"override fun visitExpression ( expression : IrExpression , context : JsGenerationContext ) : JsStatement","body":"{ return expression . accept ( IrElementToJsExpressionTransformer ( ) , context ) . makeStmt ( ) }","docstring":""} {"signature":"override fun visitFunctionExpression ( expression : IrFunctionExpression , context : JsGenerationContext ) : JsStatement","body":"{ return expression . function . accept ( IrFunctionToJsTransformer ( ) , context ) . makeStmt ( ) }","docstring":""} {"signature":"override fun visitBreak ( jump : IrBreak , context : JsGenerationContext ) : JsStatement","body":"{ return JsBreak ( context . getNameForLoop ( jump . loop ) ? . let { JsNameRef ( it ) } ) . withSource ( jump , context ) }","docstring":""} {"signature":"override fun visitContinue ( jump : IrContinue , context : JsGenerationContext ) : JsStatement","body":"{ return JsContinue ( context . getNameForLoop ( jump . loop ) ? . let { JsNameRef ( it ) } ) . withSource ( jump , context ) }","docstring":""} {"signature":"private fun IrExpression . maybeOptimizeIntoSwitch ( context : JsGenerationContext , transformer : ( ( ) -> JsExpression ) -> JsStatement ) : JsStatement","body":"{ if ( this is IrWhen ) { val stmtTransformer : ( ( ) -> JsStatement ) -> JsStatement = { transformer { val stmt = it ( ) assert ( stmt is JsExpressionStatement ) { \"\" } ( stmt as JsExpressionStatement ) . expression } } SwitchOptimizer ( context , isExpression = true , stmtTransformer ) . tryOptimize ( this ) ? . let { return it } } return transformer { accept ( IrElementToJsExpressionTransformer ( ) , context ) } }","docstring":""} {"signature":"override fun visitSetField ( expression : IrSetField , context : JsGenerationContext ) : JsStatement","body":"{ val fieldName = context . getNameForField ( expression . symbol . owner ) val expressionTransformer = IrElementToJsExpressionTransformer ( ) val dest = jsElementAccess ( fieldName , expression . receiver ? . accept ( expressionTransformer , context ) ) return expression . value . maybeOptimizeIntoSwitch ( context ) { jsAssignment ( dest , it ( ) ) . withSource ( expression , context ) . makeStmt ( ) } }","docstring":""} {"signature":"override fun visitSetValue ( expression : IrSetValue , context : JsGenerationContext ) : JsStatement","body":"{ val owner = expression . symbol . owner val ref = JsNameRef ( context . getNameForValueDeclaration ( owner ) ) return expression . value . maybeOptimizeIntoSwitch ( context ) { jsAssignment ( ref , it ( ) ) . withSource ( expression , context ) . makeStmt ( ) } }","docstring":""} {"signature":"override fun visitReturn ( expression : IrReturn , context : JsGenerationContext ) : JsStatement","body":"{ val lastStatementTransformer : ( ( ) -> JsExpression ) -> JsStatement = when ( val targetSymbol = expression . returnTargetSymbol ) { is IrReturnableBlockSymbol -> { { context . getNameForReturnableBlock ( targetSymbol . owner ) . takeIf { ! expression . isTheLastReturnStatementIn ( targetSymbol ) } ? . run { JsBreak ( makeRef ( ) ) } ? : JsEmpty } } is IrFunctionSymbol -> { { JsReturn ( it ( ) ) } } } return expression . value . maybeOptimizeIntoSwitch ( context , lastStatementTransformer ) . withSource ( expression , context ) }","docstring":""} {"signature":"override fun visitThrow ( expression : IrThrow , context : JsGenerationContext ) : JsStatement","body":"{ return expression . value . maybeOptimizeIntoSwitch ( context ) { JsThrow ( it ( ) ) } . withSource ( expression , context ) }","docstring":""} {"signature":"override fun visitVariable ( declaration : IrVariable , context : JsGenerationContext ) : JsStatement","body":"{ val varName = context . getNameForValueDeclaration ( declaration ) val value = declaration . initializer if ( value is IrWhen ) { val varRef = varName . makeRef ( ) val transformer : ( ( ) -> JsStatement ) -> JsStatement = { val expr = ( it ( ) as JsExpressionStatement ) . expression JsBinaryOperation ( JsBinaryOperator . ASG , varRef , expr ) . makeStmt ( ) } SwitchOptimizer ( context , isExpression = true , transformer ) . tryOptimize ( value ) ? . let { return JsBlock ( JsVars ( JsVars . JsVar ( varName ) ) , it ) . withSource ( declaration , context ) } } val jsInitializer = value ? . accept ( IrElementToJsExpressionTransformer ( ) , context ) val syntheticVariable = when ( declaration . origin ) { IrDeclarationOrigin . IR_TEMPORARY_VARIABLE -> true IrDeclarationOrigin . IR_TEMPORARY_VARIABLE_FOR_INLINED_PARAMETER -> true IrDeclarationOrigin . IR_TEMPORARY_VARIABLE_FOR_INLINED_EXTENSION_RECEIVER -> true ES6_DELEGATING_CONSTRUCTOR_CALL_REPLACEMENT -> true else -> false } val variable = JsVars . JsVar ( varName , jsInitializer ) . apply { withSource ( declaration , context , useNameOf = declaration ) synthetic = syntheticVariable } return JsVars ( variable ) . apply { synthetic = syntheticVariable } }","docstring":""} {"signature":"override fun visitDelegatingConstructorCall ( expression : IrDelegatingConstructorCall , context : JsGenerationContext ) : JsStatement","body":"{ if ( expression . symbol . owner . constructedClassType . isAny ( ) ) { return JsEmpty } return expression . accept ( IrElementToJsExpressionTransformer ( ) , context ) . makeStmt ( ) }","docstring":""} {"signature":"override fun visitCall ( expression : IrCall , data : JsGenerationContext ) : JsStatement","body":"{ if ( expression . symbol . isUnitInstanceFunction ( data . staticContext . backendContext ) ) { return JsEmpty } if ( data . checkIfJsCode ( expression . symbol ) || data . checkIfHasAssociatedJsCode ( expression . symbol ) ) { return JsCallTransformer ( expression , data ) . generateStatement ( ) } return translateCall ( expression , data , IrElementToJsExpressionTransformer ( ) ) . withSource ( expression , data ) . makeStmt ( ) }","docstring":""} {"signature":"override fun visitInstanceInitializerCall ( expression : IrInstanceInitializerCall , context : JsGenerationContext ) : JsStatement","body":"{ return JsEmpty }","docstring":""} {"signature":"override fun visitTry ( aTry : IrTry , context : JsGenerationContext ) : JsStatement","body":"{ val jsTryBlock = aTry . tryResult . accept ( this , context ) . asBlock ( ) val jsCatch = aTry . catches . singleOrNull ( ) ? . let { val name = context . getNameForValueDeclaration ( it . catchParameter ) val jsCatchBlock = it . result . accept ( this , context ) JsCatch ( emptyScope , name . ident , jsCatchBlock ) . withSource ( it , context ) } val jsFinallyBlock = aTry . finallyExpression ? . accept ( this , context ) ? . asBlock ( ) return JsTry ( jsTryBlock , jsCatch , jsFinallyBlock ) . withSource ( aTry , context ) }","docstring":""} {"signature":"override fun visitWhen ( expression : IrWhen , context : JsGenerationContext ) : JsStatement","body":"{ return SwitchOptimizer ( context ) . tryOptimize ( expression ) ? : expression . toJsNode ( this , context , :: JsIf ) ? : JsEmpty }","docstring":""} {"signature":"override fun visitWhileLoop ( loop : IrWhileLoop , context : JsGenerationContext ) : JsStatement","body":"{ val label = context . getNameForLoop ( loop ) val loopStatement = JsWhile ( loop . condition . accept ( IrElementToJsExpressionTransformer ( ) , context ) , loop . body ? . accept ( this , context ) ? : JsEmpty ) return label ? . let { JsLabel ( it , loopStatement ) } ? : loopStatement }","docstring":""} {"signature":"override fun visitDoWhileLoop ( loop : IrDoWhileLoop , context : JsGenerationContext ) : JsStatement","body":"{ val label = context . getNameForLoop ( loop ) val loopStatement = JsDoWhile ( loop . condition . accept ( IrElementToJsExpressionTransformer ( ) , context ) , loop . body ? . accept ( this , context ) ? : JsEmpty ) return label ? . let { JsLabel ( it , loopStatement ) } ? : loopStatement }","docstring":""} {"signature":"override fun dispose ( )","body":"{ isDisposed = true }","docstring":""} {"signature":"override fun toString ( ) : String","body":"= debugName","docstring":""} {"signature":"fun foo1 ( i : ( Int ) -> Unit )","body":"{ }","docstring":""} {"signature":"fun foo2 ( i : ( Int , Int ) -> Unit )","body":"{ }","docstring":""} {"signature":"fun foo3 ( i : ( Pair ) -> Unit )","body":"{ }","docstring":""} {"signature":"fun bar ( x : Int , y : Int )","body":"{ foo1 { x -> x } foo2 { x : Int , y : Int -> val x = x } foo3 { ( x , y ) -> val x = x } }","docstring":""} {"signature":"override fun computePackagePartsInfos ( packageFqName : FqName ) : List < PackagePartsCacheData >","body":"= packagePartProvider . findPackageParts ( packageFqName . asString ( ) ) . mapNotNull { partName -> computePackagePartInfo ( packageFqName , partName ) }","docstring":""} {"signature":"private fun computePackagePartInfo ( packageFqName : FqName , partName : String ) : PackagePartsCacheData ?","body":"{ if ( partName in KotlinBuiltins ) return null val classId = ClassId . topLevel ( JvmClassName . byInternalName ( partName ) . fqNameForTopLevelClassMaybeWithDollars ) if ( ! javaFacade . hasTopLevelClassOf ( classId ) ) return null val ( kotlinClass , byteContent ) = kotlinClassFinder . findKotlinClassOrContent ( classId , ownMetadataVersion ) as? KotlinClassFinder . Result . KotlinClass ? : return null val facadeName = kotlinClass . classHeader . multifileClassName ? . takeIf { it . isNotEmpty ( ) } val facadeFqName = facadeName ? . let { JvmClassName . byInternalName ( it ) . fqNameForTopLevelClassMaybeWithDollars } val facadeBinaryClass = facadeFqName ? . let { kotlinClassFinder . findKotlinClass ( ClassId . topLevel ( it ) , ownMetadataVersion ) } val moduleData = moduleDataProvider . getModuleData ( kotlinClass . containingLibrary . toPath ( ) ) ? : return null val header = kotlinClass . classHeader val data = header . data ? : header . incompatibleData ? : return null val strings = header . strings ? : return null val ( nameResolver , packageProto ) = parseProto ( kotlinClass ) { JvmProtoBufUtil . readPackageDataFrom ( data , strings ) } ? : return null val source = JvmPackagePartSource ( kotlinClass , packageProto , nameResolver , kotlinClass . incompatibility , kotlinClass . isPreReleaseInvisible , kotlinClass . abiStability , ) return PackagePartsCacheData ( packageProto , FirDeserializationContext . createForPackage ( packageFqName , packageProto , nameResolver , moduleData , JvmBinaryAnnotationDeserializer ( session , kotlinClass , kotlinClassFinder , byteContent ) , JavaAwareFlexibleTypeFactory , FirJvmConstDeserializer ( session , facadeBinaryClass ? : kotlinClass , BuiltInSerializerProtocol ) , source ) , ) }","docstring":""} {"signature":"override fun createFlexibleType ( proto : ProtoBuf . Type , lowerBound : ConeSimpleKotlinType , upperBound : ConeSimpleKotlinType , ) : ConeFlexibleType","body":"= when ( proto . hasExtension ( JvmProtoBuf . isRaw ) ) { true -> ConeRawType . create ( lowerBound , upperBound ) false -> ConeFlexibleType ( lowerBound , upperBound ) }","docstring":""} {"signature":"override fun computePackageSetWithNonClassDeclarations ( ) : Set < String >","body":"= packagePartProvider . computePackageSetWithNonClassDeclarations ( )","docstring":""} {"signature":"override fun knownTopLevelClassesInPackage ( packageFqName : FqName ) : Set < String > ?","body":"= javaFacade . knownClassNamesInPackage ( packageFqName )","docstring":""} {"signature":"override fun extractClassMetadata ( classId : ClassId , parentContext : FirDeserializationContext ? ) : ClassMetadataFindResult ?","body":"{ if ( ! javaFacade . hasTopLevelClassOf ( classId ) ) return null val result = kotlinClassFinder . findKotlinClassOrContent ( classId , ownMetadataVersion ) if ( result !is KotlinClassFinder . Result . KotlinClass ) { if ( parentContext != null || ( classId . isNestedClass && getClass ( classId . outermostClassId ) ? . fir !is FirJavaClass ) ) { return null } val knownContent = ( result as? KotlinClassFinder . Result . ClassFileContent ) ? . content val javaClass = javaFacade . findClass ( classId , knownContent ) ? : return null return ClassMetadataFindResult . NoMetadata { symbol -> javaFacade . convertJavaClassToFir ( symbol , classId . outerClassId ? . let ( :: getClass ) , javaClass ) } } val kotlinClass = result . kotlinJvmBinaryClass if ( kotlinClass . classHeader . kind != KotlinClassHeader . Kind . CLASS || kotlinClass . classId != classId ) return null val data = kotlinClass . classHeader . data ? : kotlinClass . classHeader . incompatibleData ? : return null val strings = kotlinClass . classHeader . strings ? : return null val ( nameResolver , classProto ) = parseProto ( kotlinClass ) { JvmProtoBufUtil . readClassDataFrom ( data , strings ) } ? : return null return ClassMetadataFindResult . Metadata ( nameResolver , classProto , JvmBinaryAnnotationDeserializer ( session , kotlinClass , kotlinClassFinder , result . byteContent ) , moduleDataProvider . getModuleData ( kotlinClass . containingLibrary ? . toPath ( ) ) , KotlinJvmBinarySourceElement ( kotlinClass , kotlinClass . incompatibility , kotlinClass . isPreReleaseInvisible , kotlinClass . abiStability , ) , classPostProcessor = { loadAnnotationsFromClassFile ( result , it ) } , JavaAwareFlexibleTypeFactory , ) }","docstring":""} {"signature":"override fun isNewPlaceForBodyGeneration ( classProto : ProtoBuf . Class ) : Boolean","body":"= JvmFlags . IS_COMPILED_IN_JVM_DEFAULT_MODE . get ( classProto . getExtension ( JvmProtoBuf . jvmClassFlags ) )","docstring":""} {"signature":"override fun getPackage ( fqName : FqName ) : FqName ?","body":"= javaFacade . getPackage ( fqName )","docstring":""} {"signature":"private fun loadAnnotationsFromClassFile ( kotlinClass : KotlinClassFinder . Result . KotlinClass , symbol : FirRegularClassSymbol )","body":"{ val annotations = mutableListOf < FirAnnotation > ( ) var hasPublishedApi = false kotlinClass . kotlinJvmBinaryClass . loadClassAnnotations ( object : KotlinJvmBinaryClass . AnnotationVisitor { override fun visitAnnotation ( classId : ClassId , source : SourceElement ) : KotlinJvmBinaryClass . AnnotationArgumentVisitor ? { if ( classId == StandardClassIds . Annotations . PublishedApi ) { hasPublishedApi = true } return annotationsLoader . loadAnnotationIfNotSpecial ( classId , annotations ) } override fun visitEnd ( ) { } } , kotlinClass . byteContent , ) symbol . fir . run { replaceAnnotations ( annotations . toMutableOrEmpty ( ) ) replaceDeprecationsProvider ( symbol . fir . getDeprecationsProvider ( session ) ) setLazyPublishedVisibility ( hasPublishedApi , null , session ) } }","docstring":""} {"signature":"private fun String ? . toPath ( ) : Path ?","body":"{ return this ? . let { Paths . get ( it ) . normalize ( ) } }","docstring":""} {"signature":"private inline fun < T : Any > parseProto ( klass : KotlinJvmBinaryClass , block : ( ) -> T ) : T ?","body":"= try { block ( ) } catch ( e : Throwable ) { if ( session . languageVersionSettings . getFlag ( AnalysisFlags . skipMetadataVersionCheck ) || klass . classHeader . metadataVersion . isCompatible ( ownMetadataVersion ) ) { throw if ( e is InvalidProtocolBufferException ) IllegalStateException ( \"\" , e ) else e } null }","docstring":""} {"signature":"fun up ( s : String , value : Int ) : Int","body":"{ global += s return value }","docstring":""} {"signature":"fun box ( ) : String","body":"{ var n : Int = for ( i in .. ) n ++ assertEquals ( , n ) for ( i in .. ) n ++ assertEquals ( , n ) for ( i in up ( \"\" , ) .. up ( \"\" , ) ) { } assertEquals ( \"\" , global ) global = \"\" for ( i in try { up ( \"\" , ) } finally { } .. up ( \"\" , ) ) { } assertEquals ( \"\" , global ) global = \"\" for ( i in up ( \"\" , ) .. try { up ( \"\" , ) } finally { } ) { } assertEquals ( \"\" , global ) global = \"\" for ( i in try { up ( \"\" , ) } finally { } .. try { up ( \"\" , ) } finally { } ) { } assertEquals ( \"\" , global ) var sLong = for ( i in .. ) sLong += i assertEquals ( , sLong ) global = \"\" for ( s in \"\" ) global += s assertEquals ( \"\" , global ) for ( s in ( ( \"\" ) ) ) global += s assertEquals ( \"\" , global ) for ( s in ( ( \"\" ) ) ) global += s assertEquals ( \"\" , global ) return \"\" }","docstring":""} {"signature":"@ Benchmark fun base ( )","body":"= json . decodeFromString ( Impl . serializer ( ) , implString )","docstring":""} {"signature":"@ Benchmark fun poly ( )","body":"= json . decodeFromString ( serializer , polyString )","docstring":""} {"signature":"@ Benchmark fun polyChildDecode ( )","body":"= json . decodeFromString ( wrapperSerializer , wrapperString )","docstring":""} {"signature":"@ Benchmark fun polyChildEncode ( )","body":"= json . encodeToString ( wrapperSerializer , wrapper )","docstring":""} {"signature":"fun compareJarsInternal ( oldSnapshot : AbiSnapshot , newSnapshot : AbiSnapshot , caches : IncrementalCacheCommon )","body":"= diffCache . computeIfAbsent ( Pair ( oldSnapshot , newSnapshot ) ) { ( snapshot , actual ) -> doCompute ( snapshot , actual , caches , emptyList ( ) ) }","docstring":""} {"signature":"fun inScope ( fqName : FqName , scopes : Collection < String > )","body":"= scopes . any { scope -> fqName . toString ( ) . startsWith ( scope ) }","docstring":""} {"signature":"fun doCompute ( snapshot : AbiSnapshot , actual : AbiSnapshot , caches : IncrementalCacheCommon , scopes : Collection < String > ) : DirtyData","body":"{ val dirtyFqNames = mutableListOf < FqName > ( ) val dirtyLookupSymbols = mutableListOf < LookupSymbol > ( ) for ( ( fqName , protoData ) in snapshot . protos ) { if ( ! inScope ( fqName , scopes ) ) continue val newProtoData = actual . protos [ fqName ] if ( newProtoData == null ) { val ( fqNames , symbols ) = addProtoInfo ( protoData , fqName ) dirtyFqNames . addAll ( fqNames ) dirtyLookupSymbols . addAll ( symbols ) } else { if ( protoData is ClassProtoData && newProtoData is ClassProtoData ) { ProtoCompareGenerated ( protoData . nameResolver , newProtoData . nameResolver , protoData . proto . typeTable , newProtoData . proto . typeTable ) val diff = DifferenceCalculatorForClass ( protoData , newProtoData ) . difference ( ) if ( diff . isClassAffected ) { dirtyFqNames . add ( fqName ) assert ( ! fqName . isRoot ) { \"\" } val scope = fqName . parent ( ) . asString ( ) val name = fqName . shortName ( ) . identifier dirtyLookupSymbols . add ( LookupSymbol ( name , scope ) ) } for ( member in diff . changedMembersNames ) { val subtypeFqNames = withSubtypes ( fqName , listOf ( caches ) ) dirtyFqNames . addAll ( subtypeFqNames ) for ( subtypeFqName in subtypeFqNames ) { dirtyLookupSymbols . add ( LookupSymbol ( member , subtypeFqName . asString ( ) ) ) dirtyLookupSymbols . add ( LookupSymbol ( SAM_LOOKUP_NAME . asString ( ) , subtypeFqName . asString ( ) ) ) } } } else if ( protoData is PackagePartProtoData && newProtoData is PackagePartProtoData ) { val diff = DifferenceCalculatorForPackageFacade ( protoData , newProtoData ) . difference ( ) for ( member in diff . changedMembersNames ) { dirtyLookupSymbols . add ( LookupSymbol ( member , fqName . asString ( ) ) ) } } else { throw IllegalStateException ( \"\" ) } } } DirtyData ( dirtyLookupSymbols , dirtyFqNames ) val oldFqNames = snapshot . protos . keys dirtyFqNames . addAll ( actual . protos . keys . filter { ! oldFqNames . contains ( it ) } ) return DirtyData ( dirtyLookupSymbols , dirtyFqNames ) }","docstring":""} {"signature":"private fun addProtoInfo ( protoData : ProtoData , fqName : FqName , ) : Pair < List < FqName > , List < LookupSymbol > >","body":"{ val fqNames = ArrayList < FqName > ( ) val symbols = ArrayList < LookupSymbol > ( ) when ( protoData ) { is ClassProtoData -> { fqNames . add ( fqName ) symbols . addAll ( protoData . getNonPrivateMembers ( ) . map { LookupSymbol ( it , fqName . asString ( ) ) } ) } is PackagePartProtoData -> { symbols . addAll ( protoData . proto . functionOrBuilderList . filterNot { Flags . VISIBILITY . get ( it . flags ) == PRIVATE } . map { LookupSymbol ( protoData . nameResolver . getString ( it . name ) , fqName . asString ( ) ) } . toSet ( ) ) } } return Pair ( fqNames , symbols ) }","docstring":""} {"signature":"@ BeforeClass @ JvmStatic fun setUpClass ( )","body":"{ connection = DriverManager . getConnection ( URL , USER_NAME , PASSWORD ) connection . createStatement ( ) . use { st -> val dropDatabaseQuery = \"\" st . executeUpdate ( dropDatabaseQuery ) val createDatabaseQuery = \"\" st . executeUpdate ( createDatabaseQuery ) val useDatabaseQuery = \"\" st . executeUpdate ( useDatabaseQuery ) } connection . createStatement ( ) . use { st -> st . execute ( \"\" ) } connection . createStatement ( ) . use { st -> st . execute ( \"\" ) } @ Language ( \"\" ) val createTableQuery = \"\"\"\"\"\" connection . createStatement ( ) . execute ( createTableQuery . trimIndent ( ) ) @ Language ( \"\" ) val createTableQuery2 = \"\"\"\"\"\" connection . createStatement ( ) . execute ( createTableQuery2 . trimIndent ( ) ) @ Language ( \"\" ) val insertData1 = \"\"\"\"\"\" . trimIndent ( ) @ Language ( \"\" ) val insertData2 = \"\"\"\"\"\" . trimIndent ( ) connection . prepareStatement ( insertData1 ) . use { st -> for ( i in .. ) { st . setBoolean ( , true ) st . setByte ( , i . toByte ( ) ) st . setShort ( , ( i * ) . toShort ( ) ) st . setInt ( , i * ) st . setInt ( , i * ) st . setInt ( , i * ) st . setInt ( , i * ) st . setInt ( , i * ) st . setInt ( , i * ) st . setFloat ( , i * ) st . setDouble ( , i * ) st . setBigDecimal ( , BigDecimal ( i * ) ) st . setDate ( , java . sql . Date ( System . currentTimeMillis ( ) ) ) st . setTimestamp ( , java . sql . Timestamp ( System . currentTimeMillis ( ) ) ) st . setTimestamp ( , java . sql . Timestamp ( System . currentTimeMillis ( ) ) ) st . setTime ( , java . sql . Time ( System . currentTimeMillis ( ) ) ) st . setInt ( , ) st . setString ( , \"\" ) st . setString ( , \"\" ) st . setBytes ( , \"\" . toByteArray ( ) ) st . setBytes ( , \"\" . toByteArray ( ) ) st . setBytes ( , \"\" . toByteArray ( ) ) st . setBytes ( , \"\" . toByteArray ( ) ) st . setBytes ( , \"\" . toByteArray ( ) ) st . setBytes ( , \"\" . toByteArray ( ) ) st . setString ( , \"\" ) st . setString ( , \"\" ) st . setString ( , \"\" ) st . setString ( , \"\" ) st . setString ( , \"\" ) st . setString ( , \"\" ) st . executeUpdate ( ) } } connection . prepareStatement ( insertData2 ) . use { st -> for ( i in .. ) { st . setBoolean ( , false ) st . setByte ( , ( i * ) . toByte ( ) ) st . setShort ( , ( i * ) . toShort ( ) ) st . setInt ( , i * ) st . setInt ( , i * ) st . setInt ( , i * ) st . setInt ( , i * ) st . setInt ( , i * ) st . setInt ( , i * ) st . setFloat ( , i * ) st . setDouble ( , i * ) st . setBigDecimal ( , BigDecimal ( i * ) ) st . setDate ( , java . sql . Date ( System . currentTimeMillis ( ) ) ) st . setTimestamp ( , java . sql . Timestamp ( System . currentTimeMillis ( ) ) ) st . setTimestamp ( , java . sql . Timestamp ( System . currentTimeMillis ( ) ) ) st . setTime ( , java . sql . Time ( System . currentTimeMillis ( ) ) ) st . setInt ( , ) st . setString ( , \"\" ) st . setString ( , \"\" ) st . setBytes ( , \"\" . toByteArray ( ) ) st . setBytes ( , \"\" . toByteArray ( ) ) st . setBytes ( , \"\" . toByteArray ( ) ) st . setBytes ( , \"\" . toByteArray ( ) ) st . setBytes ( , \"\" . toByteArray ( ) ) st . setBytes ( , \"\" . toByteArray ( ) ) st . setString ( , null ) st . setString ( , null ) st . setString ( , \"\" ) st . setString ( , \"\" ) st . setString ( , \"\" ) st . setString ( , \"\" ) st . executeUpdate ( ) } } }","docstring":""} {"signature":"@ AfterClass @ JvmStatic fun tearDownClass ( )","body":"{ try { connection . createStatement ( ) . use { st -> st . execute ( \"\" ) } connection . createStatement ( ) . use { st -> st . execute ( \"\" ) } connection . createStatement ( ) . use { st -> st . execute ( \"\" ) } connection . close ( ) } catch ( e : SQLException ) { e . printStackTrace ( ) } }","docstring":""} {"signature":"@ Test fun `basic test for reading sql tables` ( )","body":"{ val df1 = DataFrame . readSqlTable ( connection , \"\" ) . cast < Table1MySql > ( ) val result = df1 . filter { it [ Table1MySql :: id ] == } result [ ] [ ] shouldBe \"\" val schema = DataFrame . getSchemaForSqlTable ( connection , \"\" ) schema . columns [ \"\" ] ! ! . type shouldBe typeOf < Int > ( ) schema . columns [ \"\" ] ! ! . type shouldBe typeOf < String > ( ) val df2 = DataFrame . readSqlTable ( connection , \"\" ) . cast < Table2MySql > ( ) val result2 = df2 . filter { it [ Table2MySql :: id ] == } result2 [ ] [ ] shouldBe null val schema2 = DataFrame . getSchemaForSqlTable ( connection , \"\" ) schema2 . columns [ \"\" ] ! ! . type shouldBe typeOf < Int > ( ) schema2 . columns [ \"\" ] ! ! . type shouldBe typeOf < String ? > ( ) }","docstring":""} {"signature":"@ Test fun `read from sql query` ( )","body":"{ @ Language ( \"\" ) val sqlQuery = \"\"\"\"\"\" . trimIndent ( ) val df = DataFrame . readSqlQuery ( connection , sqlQuery = sqlQuery ) . cast < Table3MySql > ( ) val result = df . filter { it [ Table3MySql :: id ] == } result [ ] [ ] shouldBe \"\" val schema = DataFrame . getSchemaForSqlQuery ( connection , sqlQuery = sqlQuery ) schema . columns [ \"\" ] ! ! . type shouldBe typeOf < Int > ( ) schema . columns [ \"\" ] ! ! . type shouldBe typeOf < Char > ( ) schema . columns [ \"\" ] ! ! . type shouldBe typeOf < Char ? > ( ) }","docstring":""} {"signature":"@ Test fun `read from all tables` ( )","body":"{ val dataframes = DataFrame . readAllSqlTables ( connection ) val table1Df = dataframes [ ] . cast < Table1MySql > ( ) table1Df . rowsCount ( ) shouldBe table1Df . filter { it [ Table1MySql :: integerCol ] > } . rowsCount ( ) shouldBe table1Df [ ] [ ] shouldBe table1Df [ ] [ ] shouldBe \"\" val table2Df = dataframes [ ] . cast < Table2MySql > ( ) table2Df . rowsCount ( ) shouldBe table2Df . filter { it [ Table2MySql :: integerCol ] != null && it [ Table2MySql :: integerCol ] ! ! > } . rowsCount ( ) shouldBe table2Df [ ] [ ] shouldBe table2Df [ ] [ ] shouldBe null }","docstring":""} {"signature":"@ Test fun `reading numeric types` ( )","body":"{ val df1 = DataFrame . readSqlTable ( connection , \"\" ) . cast < Table1MySql > ( ) val result = df1 . select ( \"\" ) . add ( \"\" ) { it [ Table1MySql :: tinyintCol ] } result [ ] [ ] shouldBe . toByte ( ) val result1 = df1 . select ( \"\" ) . add ( \"\" ) { it [ Table1MySql :: smallintCol ] } result1 [ ] [ ] shouldBe . toShort ( ) val result2 = df1 . select ( \"\" ) . add ( \"\" ) { it [ Table1MySql :: mediumintCol ] } result2 [ ] [ ] shouldBe val result3 = df1 . select ( \"\" ) . add ( \"\" ) { it [ Table1MySql :: mediumintUnsignedCol ] } result3 [ ] [ ] shouldBe val result4 = df1 . select ( \"\" ) . add ( \"\" ) { it [ Table1MySql :: integerUnsignedCol ] } result4 [ ] [ ] shouldBe val result5 = df1 . select ( \"\" ) . add ( \"\" ) { it [ Table1MySql :: bigintCol ] } result5 [ ] [ ] shouldBe val result6 = df1 . select ( \"\" ) . add ( \"\" ) { it [ Table1MySql :: floatCol ] } result6 [ ] [ ] shouldBe val result7 = df1 . select ( \"\" ) . add ( \"\" ) { it [ Table1MySql :: doubleCol ] } result7 [ ] [ ] shouldBe val result8 = df1 . select ( \"\" ) . add ( \"\" ) { it [ Table1MySql :: decimalCol ] } result8 [ ] [ ] shouldBe BigDecimal ( \"\" ) val schema = DataFrame . getSchemaForSqlTable ( connection , \"\" ) schema . columns [ \"\" ] ! ! . type shouldBe typeOf < Int > ( ) schema . columns [ \"\" ] ! ! . type shouldBe typeOf < Int > ( ) schema . columns [ \"\" ] ! ! . type shouldBe typeOf < Int > ( ) schema . columns [ \"\" ] ! ! . type shouldBe typeOf < Int > ( ) schema . columns [ \"\" ] ! ! . type shouldBe typeOf < Long > ( ) schema . columns [ \"\" ] ! ! . type shouldBe typeOf < Long > ( ) schema . columns [ \"\" ] ! ! . type shouldBe typeOf < Float > ( ) schema . columns [ \"\" ] ! ! . type shouldBe typeOf < Double > ( ) schema . columns [ \"\" ] ! ! . type shouldBe typeOf < BigDecimal > ( ) }","docstring":""} {"signature":"suspend fun suspendHere ( )","body":"= suspendCoroutine < Unit > { c -> i ++ proceed = { c . resume ( Unit ) } }","docstring":""} {"signature":"suspend fun callLocal ( )","body":"{ suspend fun local ( ) { suspendHere ( ) suspendHere ( ) suspendHere ( ) suspendHere ( ) suspendHere ( ) } local ( ) local ( ) }","docstring":""} {"signature":"fun builder ( c : suspend ( ) -> Unit )","body":"{ val continuation = object : Continuation < Unit > { override val context : CoroutineContext get ( ) = EmptyCoroutineContext override fun resumeWith ( value : Result < Unit > ) { value . getOrThrow ( ) proceed = { result = \"\" finished = true } } } c . startCoroutine ( continuation ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ builder { callLocal ( ) } for ( counter in until ) { if ( i != counter + ) return \"\" proceed ( ) } if ( i != ) return \"\" if ( finished ) return \"\" proceed ( ) if ( ! finished ) return \"\" return result }","docstring":""} {"signature":"fun < S : T > takeFoo ( foo : Foo < in S > )","body":"{ }","docstring":""} {"signature":"fun < K : Out < L > , L : N , N : Number > main ( )","body":"{ val foo = Foo < K > ( ) Bar < Out < Int > > ( ) . takeFoo ( foo ) }","docstring":""} {"signature":"override fun handleContentChange ( element : KtStringTemplateExpression , range : TextRange , newContent : String ) : KtStringTemplateExpression ?","body":"{ val node = element . node val oldText = node . text fun wrapAsInOld ( content : String ) = oldText . substring ( , range . startOffset ) + content + oldText . substring ( range . endOffset ) fun makeKtExpressionFromText ( text : String ) : KtExpression { val ktExpression = KtPsiFactory ( element . project ) . createExpression ( text ) if ( ktExpression !is KtStringTemplateExpression ) { LOG . error ( \"\" ) } return ktExpression } val newContentPreprocessed : String = if ( element . isSingleQuoted ( ) ) { val expressionFromText = makeKtExpressionFromText ( \"\" ) if ( expressionFromText is KtStringTemplateExpression ) { expressionFromText . entries . joinToString ( \"\" ) { entry -> when ( entry ) { is KtStringTemplateEntryWithExpression -> entry . text else -> StringUtil . escapeStringCharacters ( entry . text ) } } } else newContent } else newContent val newKtExpression = makeKtExpressionFromText ( wrapAsInOld ( newContentPreprocessed ) ) node . replaceAllChildrenToChildrenOf ( newKtExpression . node ) return node . getPsi ( KtStringTemplateExpression :: class . java ) }","docstring":""} {"signature":"override fun getRangeInElement ( element : KtStringTemplateExpression ) : TextRange","body":"{ return element . getContentRange ( ) }","docstring":""} {"signature":"public fun ColumnSet < * > . colsOfKind ( kind : ColumnKind , vararg others : ColumnKind , filter : ColumnFilter < * > = { true } , ) : TransformableColumnSet < * >","body":"= columnsOfKindInternal ( kinds = headPlusArray ( kind , others ) . toSet ( ) , filter = filter )","docstring":"/**\n * @include [CommonColsOfKindDocs]\n * @set [CommonColsOfKindDocs.ExampleArg]\n *\n * `df.`[select][DataFrame.select]` { `[cols][ColumnsSelectionDsl.cols]` { it.`[name][ColumnReference.name]`.`[startsWith][String.startsWith]`(\"my\") }.`[colsOfKind][ColumnSet.colsOfKind]`(`[Value][ColumnKind.Value]`, `[Frame][ColumnKind.Frame]`) }`\n *\n * `// NOTE: This can be shortened to just:`\n *\n * `df.`[select][DataFrame.select]` { `[colsOfKind][ColumnsSelectionDsl.colsOfKind]`(`[Value][ColumnKind.Value]`, `[Frame][ColumnKind.Frame]`) { it.`[name][ColumnReference.name]`.`[startsWith][String.startsWith]`(\"my\") } }`\n */"} {"signature":"public fun ColumnsSelectionDsl < * > . colsOfKind ( kind : ColumnKind , vararg others : ColumnKind , filter : ColumnFilter < * > = { true } , ) : TransformableColumnSet < * >","body":"= asSingleColumn ( ) . columnsOfKindInternal ( kinds = headPlusArray ( kind , others ) . toSet ( ) , filter = filter )","docstring":"/**\n * @include [CommonColsOfKindDocs]\n * @set [CommonColsOfKindDocs.ExampleArg]\n *\n * `df.`[select][DataFrame.select]` { `[colsOfKind][ColumnsSelectionDsl.colsOfKind]`(`[Value][ColumnKind.Value]`, `[Frame][ColumnKind.Frame]`) { it.`[name][ColumnReference.name]`.`[startsWith][String.startsWith]`(\"my\") } }`\n */"} {"signature":"public fun SingleColumn < DataRow < * > > . colsOfKind ( kind : ColumnKind , vararg others : ColumnKind , filter : ColumnFilter < * > = { true } , ) : TransformableColumnSet < * >","body":"= this . ensureIsColumnGroup ( ) . columnsOfKindInternal ( kinds = headPlusArray ( kind , others ) . toSet ( ) , filter = filter )","docstring":"/**\n * @include [CommonColsOfKindDocs]\n * @set [CommonColsOfKindDocs.ExampleArg]\n *\n * `df.`[select][DataFrame.select]` { myColumnGroup.`[colsOfKind][SingleColumn.colsOfKind]`(`[Value][ColumnKind.Value]`, `[Frame][ColumnKind.Frame]`) }`\n */"} {"signature":"public fun String . colsOfKind ( kind : ColumnKind , vararg others : ColumnKind , filter : ColumnFilter < * > = { true } , ) : TransformableColumnSet < * >","body":"= columnGroup ( this ) . colsOfKind ( kind , * others , filter = filter )","docstring":"/**\n * @include [CommonColsOfKindDocs]\n * @set [CommonColsOfKindDocs.ExampleArg]\n *\n * `df.`[select][DataFrame.select]` { \"myColumnGroup\".`[colsOfKind][SingleColumn.colsOfKind]`(`[Value][ColumnKind.Value]`, `[Frame][ColumnKind.Frame]`) }`\n */"} {"signature":"public fun KProperty < * > . colsOfKind ( kind : ColumnKind , vararg others : ColumnKind , filter : ColumnFilter < * > = { true } , ) : TransformableColumnSet < * >","body":"= columnGroup ( this ) . colsOfKind ( kind , * others , filter = filter )","docstring":"/**\n * @include [CommonColsOfKindDocs]\n * @set [CommonColsOfKindDocs.ExampleArg]\n *\n * `df.`[select][DataFrame.select]` { Type::myColumnGroup.`[colsOfKind][KProperty.colsOfKind]`(`[Value][ColumnKind.Value]`, `[Frame][ColumnKind.Frame]`) }`\n */"} {"signature":"public fun ColumnPath . colsOfKind ( kind : ColumnKind , vararg others : ColumnKind , filter : ColumnFilter < * > = { true } , ) : TransformableColumnSet < * >","body":"= columnGroup ( this ) . colsOfKind ( kind , * others , filter = filter )","docstring":"/**\n * @include [CommonColsOfKindDocs]\n * @set [CommonColsOfKindDocs.ExampleArg]\n *\n * `df.`[select][DataFrame.select]` { \"pathTo\"[\"myColumnGroup\"].`[colsOfKind][ColumnPath.colsOfKind]`(`[Value][ColumnKind.Value]`, `[Frame][ColumnKind.Frame]`) }`\n */"} {"signature":"internal fun ColumnsResolver < * > . columnsOfKindInternal ( kinds : Set < ColumnKind > , filter : ColumnFilter < * > , ) : TransformableColumnSet < * >","body":"= colsInternal { it . kind ( ) in kinds && filter ( it ) }","docstring":"/**\n * Returns a TransformableColumnSet containing the columns of given kind(s) that satisfy the given filter.\n *\n * @param filter The filter function to apply on each column. Must accept a ColumnWithPath object and return a Boolean.\n * @return A [TransformableColumnSet] containing the columns of given kinds that satisfy the filter.\n */"} {"signature":"fun foo ( dir : Direction ) : Int","body":"{ when ( dir ) { Direction . NORTH -> return Direction . SOUTH -> return Direction . WEST -> return Direction . EAST -> return } }","docstring":""} {"signature":"@ OptIn ( DokkaPluginApiPreview :: class ) override fun pluginApiPreviewAcknowledgement ( ) : PluginApiPreviewAcknowledgement","body":"= PluginApiPreviewAcknowledgement","docstring":""} {"signature":"@ Test fun canCreateALazyScheme ( )","body":"{ val scheme = schemeOf ( \"\" ) val lazyScheme = LazyScheme ( scheme ) val schemeCopy = lazyScheme . toScheme ( ) assertEquals ( scheme , schemeCopy ) }","docstring":""} {"signature":"@ Test fun canCreateALazySchemeWithOpenParameters ( )","body":"{ val scheme = schemeOf ( \"\" ) val lazyScheme = LazyScheme ( scheme ) val schemeCopy = lazyScheme . toScheme ( ) assertEquals ( scheme , schemeCopy ) }","docstring":""} {"signature":"@ Test fun canCreateALazySchemeWithAnonymousParameters ( )","body":"{ val scheme = schemeOf ( \"\" ) val lazyScheme = LazyScheme ( scheme ) val schemeCopy = lazyScheme . toScheme ( ) assertEquals ( scheme , schemeCopy ) }","docstring":""} {"signature":"@ Test fun canUpdateLazySchemeThroughBindings ( )","body":"{ val lazyScheme = LazyScheme ( schemeOf ( \"\" ) ) val bindings = lazyScheme . bindings bindings . unify ( lazyScheme . target , lazyScheme . parameters . first ( ) . target ) assertEquals ( schemeOf ( \"\" ) , lazyScheme . toScheme ( ) ) }","docstring":""} {"signature":"@ Test fun canUpdateResult ( )","body":"{ val lazyScheme = LazyScheme ( schemeOf ( \"\" ) ) val bindings = lazyScheme . bindings val a = bindings . closed ( \"\" ) val b = bindings . closed ( \"\" ) val c = bindings . closed ( \"\" ) bindings . unify ( lazyScheme . target , a ) bindings . unify ( lazyScheme . parameters [ ] . target , b ) bindings . unify ( lazyScheme . parameters [ ] . target , c ) assertEquals ( schemeOf ( \"\" ) , lazyScheme . toScheme ( ) ) }","docstring":""} {"signature":"@ Test fun canCreateAnyParameterScheme ( )","body":"{ val lazyScheme = LazyScheme ( schemeOf ( \"\" ) ) assertTrue ( lazyScheme . anyParameters ) assertTrue ( lazyScheme . parameters . isEmpty ( ) ) }","docstring":""} {"signature":"internal fun schemeOf ( text : String ) : Scheme","body":"{ val eos = '' var current = fun skipWhiteSpace ( ) { while ( current < text . length ) { when ( text [ current ] ) { '' , '' , '' , '' -> { current ++ continue } } break } } fun expect ( c : Char ) { if ( c == eos ) return if ( current < text . length && text [ current ] != c ) error ( \"\" ) current ++ skipWhiteSpace ( ) } fun isChar ( c : Char ) = if ( current < text . length && c == text [ current ] ) { current ++ true } else false fun expectToken ( ) : String = buildString { var charSeen = false while ( current < text . length ) { val ch = text [ current ] if ( ( ch in '' .. '' ) || ( ch in '' .. '' ) ) { append ( ch ) current ++ charSeen = true continue } break } if ( ! charSeen ) error ( \"\" ) skipWhiteSpace ( ) } fun expectNumber ( ) : Int { var numberSeen = false var result = while ( current < text . length ) { val ch = text [ current ] if ( ch in '' .. '' ) { result = result * + ( ch - '' ) current ++ numberSeen = true continue } break } if ( ! numberSeen ) error ( \"\" ) skipWhiteSpace ( ) return result } fun < T > delimited ( start : Char , end : Char , block : ( ) -> T ) : T { skipWhiteSpace ( ) expect ( start ) return block ( ) . also { expect ( end ) } } fun < T > optional ( start : Char , end : Char = '' , block : ( ) -> T ) : T ? = run { skipWhiteSpace ( ) if ( text [ current ] == start ) { delimited ( start , end , block ) } else null } fun isVariableStart ( ) = current < text . length && when ( text [ current ] ) { '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' -> true else -> false } fun item ( ) : Item = if ( isVariableStart ( ) ) { if ( text [ current ] == '' ) expect ( '' ) if ( text [ current ] == '' ) { expect ( '' ) Open ( - ) } else { Open ( expectNumber ( ) ) } } else Token ( expectToken ( ) ) fun < T > list ( continueBlock : ( first : Boolean ) -> Boolean , block : ( ) -> T ) : List < T > = if ( continueBlock ( true ) ) { skipWhiteSpace ( ) val result = mutableListOf < T > ( ) while ( true ) { result . add ( block ( ) ) if ( ! continueBlock ( false ) ) break skipWhiteSpace ( ) } result } else emptyList ( ) fun scheme ( ) : Scheme = delimited ( '' , '' ) { val target = item ( ) val anyParameters = isChar ( '' ) val parameters = if ( anyParameters ) emptyList ( ) else list ( { ( text [ current ] == '' ) . also { if ( it ) expect ( '' ) } } ) { scheme ( ) } val result = optional ( '' ) { scheme ( ) } Scheme ( target , parameters , result , anyParameters ) } return scheme ( ) }","docstring":""} {"signature":"override fun invoke ( )","body":"= get ( )","docstring":""} {"signature":"override fun get ( ) : String","body":"= \"\"","docstring":""} {"signature":"fun box ( ) : String","body":"{ return Impl ( ) ( ) }","docstring":""} {"signature":"private fun getCompilationResults ( tasksPaths : Iterable < String > , success : Boolean ) : String","body":"{ val status = success && tasksPaths . all { timeListener . tasksTimes . containsKey ( it ) } val time = tasksPaths . map { timeListener . getTime ( it ) } . sum ( ) return \"\" }","docstring":""} {"signature":"private fun getAllExecutedTasks ( compilation : KotlinCompilation < * > ) : List < Task >","body":"{ val tasks = mutableListOf ( compilation . compileTaskProvider . get ( ) as Task ) compilation . associatedCompilations . toList ( ) . forEach { tasks += getAllExecutedTasks ( it ) } return tasks }","docstring":""} {"signature":"private fun folderSize ( directory : File ) : Long","body":"{ var length : Long = directory . listFiles ( ) ? . forEach { length += if ( it . isFile ) it . length ( ) else folderSize ( it ) } return length }","docstring":""} {"signature":"private fun compilerFlagsFromBinary ( ) : List < String >","body":"{ val result = mutableListOf < String > ( ) if ( binary . buildType . optimized ) { result . add ( \"\" ) } if ( binary . buildType . debuggable ) { result . add ( \"\" ) } result . addAll ( binary . freeCompilerArgs ) return result }","docstring":""} {"signature":"private fun getPerformanceCompilerOptions ( )","body":"= ( compilerFlagsFromBinary ( ) + binary . linkTask . toolOptions . freeCompilerArgs . get ( ) ) . filter { it in listOf ( \"\" , \"\" , \"\" ) } . map { \"\" }","docstring":""} {"signature":"@ TaskAction fun generate ( )","body":"{ val compileTasks = if ( settings . includeAssociatedTasks ) getAllExecutedTasks ( binary . compilation ) else listOf ( binary . compilation . compileTaskProvider . get ( ) ) val allExecutedTasks = listOf ( binary . linkTask ) + compileTasks val upToDateTasks = allExecutedTasks . filter { it . state . upToDate } . map { it . name } if ( upToDateTasks . isNotEmpty ( ) ) { if ( outputFile . exists ( ) ) { project . delete ( outputFile . absolutePath ) } project . logger . warn ( \"\" + \"\" ) return } val successStatus = allExecutedTasks . all { it . state . failure == null } var codeSize : String ? = null if ( TrackableMetric . CODE_SIZE in settings . metrics ) { codeSize = binary . outputFile . let { if ( it . exists ( ) ) { val size = if ( it . isDirectory ) folderSize ( it ) else it . length ( ) \"\" } else null } } var compileTime : String ? = null if ( TrackableMetric . COMPILE_TIME in settings . metrics ) { compileTime = getCompilationResults ( allExecutedTasks . map { it . path } , successStatus ) } if ( ! reportDirectory . exists ( ) ) { project . mkdir ( reportDirectory . absolutePath ) } val name = settings . binaryNamesForReport [ binary ] ! ! outputFile . writeText ( name ) outputFile . appendText ( \"\" ) if ( compileTime != null ) { outputFile . appendText ( \"\" ) } if ( codeSize != null ) { outputFile . appendText ( \"\" ) } }","docstring":""} {"signature":"protected fun doTestWithJavac ( ktFilePath : String )","body":"{ doTest ( ktFilePath , true ) }","docstring":""} {"signature":"protected fun doTestWithoutJavac ( ktFilePath : String )","body":"{ doTest ( ktFilePath , false ) }","docstring":""} {"signature":"protected open fun doTest ( ktFilePath : String , useJavac : Boolean )","body":"{ Assert . assertTrue ( ktFilePath . endsWith ( \"\" ) ) val ktFile = File ( ktFilePath ) val javaFile = File ( ktFilePath . replaceFirst ( \"\" . toRegex ( ) , \"\" ) ) val javaErrorFile = File ( ktFilePath . replaceFirst ( \"\" . toRegex ( ) , \"\" ) ) val out = File ( tmpdir , \"\" ) val directives = KotlinTestUtils . parseDirectives ( ktFile . readText ( ) ) if ( useFir && directives . contains ( \"\" ) ) return val compiledSuccessfully = if ( useJavac ) { compileKotlinWithJava ( listOf ( javaFile ) , listOf ( ktFile ) , out , testRootDisposable ) } else { KotlinTestUtils . compileKotlinWithJava ( listOf ( javaFile ) , listOf ( ktFile ) , out , testRootDisposable , javaErrorFile , this :: updateConfiguration ) } if ( ! compiledSuccessfully ) return val configuration = newConfiguration ( ConfigurationKind . ALL , TestJdkKind . FULL_JDK , KtTestUtil . getAnnotationsJar ( ) , out ) configuration . put ( JVMConfigurationKeys . USE_PSI_CLASS_FILES_READING , true ) val environment = KotlinCoreEnvironment . createForTests ( testRootDisposable , configuration , EnvironmentConfigFiles . JVM_CONFIG_FILES ) setupLanguageVersionSettingsForCompilerTests ( ktFile . readText ( ) , environment ) val analysisResult = JvmResolveUtil . analyze ( environment ) val packageView = analysisResult . moduleDescriptor . getPackage ( LoadDescriptorUtil . TEST_PACKAGE_FQNAME ) assertFalse ( \"\" , packageView . isEmpty ( ) ) val expectedFile = File ( ktFilePath . replaceFirst ( \"\" . toRegex ( ) , \"\" ) ) validateAndCompareDescriptorWithFile ( packageView , CONFIGURATION , expectedFile ) }","docstring":""} {"signature":"fun updateConfiguration ( configuration : CompilerConfiguration )","body":"{ configureIrFir ( configuration ) }","docstring":""} {"signature":"@ Throws ( IOException :: class ) fun compileKotlinWithJava ( javaFiles : List < File > , ktFiles : List < File > , outDir : File , disposable : Disposable ) : Boolean","body":"{ val environment = createEnvironmentWithMockJdkAndIdeaAnnotations ( disposable ) setupLanguageVersionSettingsForMultifileCompilerTests ( ktFiles , environment ) environment . configuration . put ( JVMConfigurationKeys . USE_JAVAC , true ) environment . configuration . put ( JVMConfigurationKeys . COMPILE_JAVA , true ) environment . configuration . put ( JVMConfigurationKeys . OUTPUT_DIRECTORY , outDir ) environment . configuration . put ( CLIConfigurationKeys . MESSAGE_COLLECTOR_KEY , MessageCollector . NONE ) updateConfiguration ( environment . configuration ) environment . registerJavac ( javaFiles = javaFiles , kotlinFiles = listOf ( KotlinTestUtils . loadKtFile ( environment . project , ktFiles . first ( ) ) ) ) if ( ! ktFiles . isEmpty ( ) ) { LoadDescriptorUtil . compileKotlinToDirAndGetModule ( ktFiles , outDir , environment ) } else { val mkdirs = outDir . mkdirs ( ) assert ( mkdirs ) { \"\" } } return JavacWrapper . getInstance ( environment . project ) . use { it . compile ( ) } }","docstring":""} {"signature":"inline fun bar ( block : ( ) -> String ) : String","body":"{ return block ( ) }","docstring":""} {"signature":"inline fun bar2 ( ) : String","body":"{ while ( true ) break return bar { return \"\" } }","docstring":""} {"signature":"fun foobar ( x : String , y : String , z : String )","body":"= x + y + z","docstring":""} {"signature":"fun box ( ) : String","body":"{ val test = foobar ( \"\" , bar2 ( ) , \"\" ) return if ( test == \"\" ) \"\" else \"\" }","docstring":""} {"signature":"override fun getLoggerInstance ( p0 : String ) : Logger","body":"= NoopIntellijLogger","docstring":""} {"signature":"override fun isDebugEnabled ( ) : Boolean","body":"= false","docstring":""} {"signature":"override fun isTraceEnabled ( ) : Boolean","body":"= false","docstring":""} {"signature":"override fun debug ( message : String ? )","body":"{ }","docstring":""} {"signature":"override fun debug ( t : Throwable ? )","body":"{ }","docstring":""} {"signature":"override fun debug ( message : String ? , t : Throwable ? )","body":"{ }","docstring":""} {"signature":"override fun debug ( message : String , vararg details : Any ? )","body":"{ }","docstring":""} {"signature":"override fun debugValues ( header : String , values : MutableCollection < * > )","body":"{ }","docstring":""} {"signature":"override fun trace ( message : String ? )","body":"{ }","docstring":""} {"signature":"override fun trace ( t : Throwable ? )","body":"{ }","docstring":""} {"signature":"override fun info ( message : String ? )","body":"{ }","docstring":""} {"signature":"override fun info ( message : String ? , t : Throwable ? )","body":"{ }","docstring":""} {"signature":"override fun info ( t : Throwable )","body":"{ }","docstring":""} {"signature":"override fun warn ( message : String ? , t : Throwable ? )","body":"{ }","docstring":""} {"signature":"override fun warn ( message : String ? )","body":"{ }","docstring":""} {"signature":"override fun warn ( t : Throwable )","body":"{ }","docstring":""} {"signature":"override fun error ( message : String ? , t : Throwable ? , vararg details : String ? )","body":"{ }","docstring":""} {"signature":"override fun error ( message : String ? )","body":"{ }","docstring":""} {"signature":"override fun error ( message : Any ? )","body":"{ }","docstring":""} {"signature":"override fun error ( message : String ? , vararg attachments : Attachment ? )","body":"{ }","docstring":""} {"signature":"override fun error ( message : String ? , t : Throwable ? , vararg attachments : Attachment ? )","body":"{ }","docstring":""} {"signature":"override fun error ( message : String ? , vararg details : String ? )","body":"{ }","docstring":""} {"signature":"override fun error ( message : String ? , t : Throwable ? )","body":"{ }","docstring":""} {"signature":"override fun error ( t : Throwable )","body":"{ }","docstring":""} {"signature":"override fun check ( metadata1 : KotlinClassMetadata . MultiFileClassFacade , metadata2 : KotlinClassMetadata . MultiFileClassFacade , report : MultiFileClassFacadeMetadataReport , )","body":"{ val list1 = getList ( metadata1 ) val list2 = getList ( metadata2 ) val diff = compareLists ( list1 . sorted ( ) , list2 . sorted ( ) ) ? : return report . addMembersListDiffs ( diff ) }","docstring":""} {"signature":"abstract fun getList ( metadata : KotlinClassMetadata . MultiFileClassFacade ) : List < String >","body":"abstract fun getList ( metadata : KotlinClassMetadata . MultiFileClassFacade ) : List < String >","docstring":""} {"signature":"fun multiFileClassFacadeMetadataListChecker ( name : String , listGetter : ( KotlinClassMetadata . MultiFileClassFacade ) -> List < String > )","body":"= object : MultiFileClassFacadeMetadataListChecker ( name ) { override fun getList ( metadata : KotlinClassMetadata . MultiFileClassFacade ) = listGetter ( metadata ) }","docstring":""} {"signature":"fun getNp ( ) : NativePtr ?","body":"= null","docstring":""} {"signature":"fun getOp ( ) : COpaquePointer ?","body":"= null","docstring":""} {"signature":"fun box ( ) : String","body":"{ if ( ( null as NativePtr ? ) != null ) return \"\" if ( ( null as? NativePtr ) != null ) return \"\" if ( null !is NativePtr ? ) return \"\" if ( null is NativePtr ) return \"\" if ( ( null as COpaquePointer ? ) != null ) return \"\" if ( ( null as? COpaquePointer ) != null ) return \"\" if ( null !is COpaquePointer ? ) return \"\" if ( null is COpaquePointer ) return \"\" if ( ( getNp ( ) as NativePtr ? ) != null ) return \"\" if ( ( getNp ( ) as? NativePtr ) != null ) return \"\" if ( getNp ( ) !is NativePtr ? ) return \"\" if ( getNp ( ) is NativePtr ) return \"\" if ( ( getOp ( ) as COpaquePointer ? ) != null ) return \"\" if ( ( getOp ( ) as? COpaquePointer ) != null ) return \"\" if ( getOp ( ) !is COpaquePointer ? ) return \"\" if ( getOp ( ) is COpaquePointer ) return \"\" return \"\" }","docstring":""} {"signature":"inline fun bar ( )","body":"= A :: foo","docstring":""} {"signature":"fun get ( ) : T","body":"fun get ( ) : T","docstring":""} {"signature":"fun < T > expectsSam ( sam : Sam < T > )","body":"= sam . get ( )","docstring":""} {"signature":"fun foo ( ) : String","body":"= \"\"","docstring":""} {"signature":"fun specializedSam ( ) : String","body":"= expectsSam ( :: foo )","docstring":""} {"signature":"@ Test fun initialize ( )","body":"{ val actual = Array ( ) { FloatArray ( ) { } } val expected = Array ( ) { FloatArray ( ) { } } expected [ ] [ ] = expected [ ] [ ] = - expected [ ] [ ] = expected [ ] [ ] = - val shape = Shape . make ( , ) EagerSession . create ( ) . use { session -> val tf = Ops . create ( session ) val instance = GlorotNormal ( seed = SEED ) val operand = instance . initialize ( FAN_IN , FAN_OUT , tf , shapeOperand ( tf , shape ) , DEFAULT_LAYER_NAME ) operand . asOutput ( ) . tensor ( ) . copyTo ( actual ) assertArrayEquals ( expected [ ] , actual [ ] , EPS ) assertArrayEquals ( expected [ ] , actual [ ] , EPS ) assertEquals ( \"\" , instance . toString ( ) ) } }","docstring":""} {"signature":"fun Project . checkExpectedGradlePropertyValues ( )","body":"{ val expectSuffix = \"\" val expectKeys = properties . keys . filter { it . endsWith ( expectSuffix ) } val issues = expectKeys . mapNotNull { expectKey -> val actualKey = expectKey . removeSuffix ( expectSuffix ) val expectedValue = properties [ expectKey ] ? . toString ( ) ? : return@mapNotNull null if ( ! properties . containsKey ( actualKey ) ) return@mapNotNull MissingProperty ( actualKey , expectedValue ) val actualValue = properties [ actualKey ] . toString ( ) if ( expectedValue != actualValue ) return@mapNotNull UnexpectedPropertyValue ( actualKey , expectedValue , actualValue ) null } . toSet ( ) if ( issues . isEmpty ( ) ) { return } val unexpectedPropertyValues = issues . filterIsInstance < UnexpectedPropertyValue > ( ) val missingProperties = issues . filterIsInstance < MissingProperty > ( ) throw IllegalArgumentException ( buildString { if ( unexpectedPropertyValues . isNotEmpty ( ) ) { appendLine ( \"\" ) unexpectedPropertyValues . forEach { issue -> appendLine ( \"\" ) } } if ( missingProperties . isNotEmpty ( ) ) { if ( unexpectedPropertyValues . isNotEmpty ( ) ) appendLine ( ) appendLine ( \"\" ) missingProperties . forEach { issue -> appendLine ( \"\" ) } } } ) }","docstring":"/**\n * Mechanism to warn developers when a given Gradle property does not match the developer's expectation.\n *\n * There may be some Gradle properties, that are defined in the project and will change over time (e.g. defaultSnapshotVersion).\n * Some developers (and QA) will need to be very clear about the value of this property.\n *\n * In order to get notified about the value of the property changing, it is possible to define the same property in\n * ~/.gradle/gradle.properties with a given `.kotlin_build.expected_value` suffix to ensure the value.\n *\n * e.g. if a developer set's\n *\n * `defaultSnapshotVersion.kotlin_build.expected_value=1.6.255-SNAPSHOT` and the value gets bumped to `2.0.255-SNAPSHOT` after pulling from master,\n * the developer will notice this during project configuration phase.\n */"} {"signature":"fun matchIrFileWithTestFile ( irModuleFragment : IrModuleFragment , module : TestModule ) : List < Pair < IrFile , TestFile > >","body":"{ val irFileWithTestFile = irModuleFragment . files . map { irFile -> irFile to module . files . firstOrNull { testFile -> testFile . relativePath == irFile . fileEntry . name . drop ( ) } } @ Suppress ( \"\" ) return irFileWithTestFile . filterNot { ( _ , testFile ) -> testFile == null || testFile . isAdditional } as List < Pair < IrFile , TestFile > > }","docstring":""} {"signature":"override fun processAfterAllModules ( someAssertionWasFailed : Boolean )","body":"{ }","docstring":""} {"signature":"override fun processModule ( module : TestModule , info : IrBackendInput )","body":"{ val evaluator = Evaluator ( IrInterpreter ( info . irModuleFragment . irBuiltins ) , globalMetadataInfoHandler ) for ( ( irFile , testFile ) in matchIrFileWithTestFile ( info . irModuleFragment , module ) ) { evaluator . evaluate ( irFile , testFile ) } }","docstring":""} {"signature":"fun evaluate ( irFile : IrFile , testFile : TestFile )","body":"{ object : IrElementTransformerVoid ( ) { private fun IrExpression . report ( original : IrExpression , startOffsetForDiagnostic : Int ? = null ) : IrExpression { if ( this == original ) return this val isError = this is IrErrorExpression val message = when ( this ) { is IrConst < * > -> this . value . toString ( ) is IrErrorExpression -> this . description else -> TODO ( \"\" ) } val startOffset = when { startOffsetForDiagnostic != null -> startOffsetForDiagnostic original is IrCall && original . symbol . owner . fqNameWhenAvailable ? . asString ( ) == \"\" -> endOffset - else -> original . startOffset } val metaInfo = IrInterpreterCodeMetaInfo ( startOffset , this . endOffset , message , isError ) globalMetadataInfoHandler . addMetadataInfosForFile ( testFile , listOf ( metaInfo ) ) return if ( this !is IrErrorExpression ) this else original } override fun visitCall ( expression : IrCall ) : IrExpression { expression . symbol . owner . valueParameters . forEachIndexed { index , parameter -> if ( expression . getValueArgument ( index ) != null || ! expression . symbol . owner . isInline ) return@forEachIndexed val default = parameter . defaultValue ? . expression as? IrCall ? : return@forEachIndexed val callWithNewOffsets = IrCallImpl ( expression . startOffset , expression . endOffset , default . type , default . symbol , default . typeArgumentsCount , default . valueArgumentsCount , default . origin , default . superQualifierSymbol ) callWithNewOffsets . copyTypeAndValueArgumentsFrom ( default ) interpreter . interpret ( callWithNewOffsets , irFile ) . report ( callWithNewOffsets ) . takeIf { it != callWithNewOffsets } ? . apply { expression . putArgument ( parameter , this ) } } return super . visitCall ( expression ) } override fun visitField ( declaration : IrField ) : IrStatement { val initializer = declaration . initializer val expression = initializer ? . expression ? : return declaration if ( expression is IrConst < * > ) return declaration val isConst = declaration . correspondingPropertySymbol ? . owner ? . isConst == true if ( isConst ) { val startOffsetForDiagnostic = declaration . startOffset + \"\" . length + declaration . name . asString ( ) . length initializer . expression = interpreter . interpret ( expression , irFile ) . report ( expression , startOffsetForDiagnostic ) } return declaration } } . visitFile ( irFile ) }","docstring":""} {"signature":"operator fun A ? . get ( i : Int ) : A ?","body":"= this","docstring":""} {"signature":"operator fun A ? . set ( i : Int , v : A ? ) : A ?","body":"{ cnt ++ return this }","docstring":""} {"signature":"operator fun A ? . plus ( a : A ? )","body":"= this","docstring":""} {"signature":"fun test ( a : A ? )","body":"{ a ? . b += null a ? . b ? . c += null a ? . b . c += null a ? . b [ ] += null a ? . b ? . c [ ] += null a ? . b . c [ ] += null a ? . b [ ] [ ] += null a ? . b ? . c [ ] [ ] += null a ? . b . c [ ] [ ] += null }","docstring":""} {"signature":"fun box ( ) : String","body":"{ test ( null ) if ( cnt != ) return \"\" cnt = test ( A ( ) ) if ( cnt != ) return \"\" return \"\" }","docstring":""} {"signature":"private fun stringifyTree ( builder : StringBuilder , node : KotlinParseTree , depth : Int = ) : StringBuilder","body":"= builder . apply { node . children . forEach { child -> when ( child . type ) { KotlinParseTreeNodeType . RULE -> append ( \"\" . repeat ( depth ) + child . name + ls ) KotlinParseTreeNodeType . TERMINAL -> append ( \"\" . repeat ( depth ) + child . name + \"\" + child . text ! ! . replace ( ls , Pattern . quote ( ls ) ) + \"\" + ls ) } stringifyTree ( builder , child , depth + ) } }","docstring":""} {"signature":"fun stringifyTree ( root : String )","body":"= root + ls + stringifyTree ( StringBuilder ( ) , this )","docstring":""} {"signature":"private fun getInput ( ) : String","body":"{ stdinSocket . sendMessage ( messageFactory . makeReplyMessage ( MessageType . INPUT_REQUEST , content = InputRequest ( \"\" ) ) , ) val msg = stdinSocket . receiveMessage ( ) val content = msg ? . data ? . content as? InputReply return content ? . value ? : throw UnsupportedOperationException ( \"\" ) }","docstring":""} {"signature":"private fun initializeCurrentBuf ( ) : ByteArray","body":"{ val buf = currentBuf return if ( buf != null ) { buf } else { val newBuf = getInput ( ) . toByteArray ( ) currentBuf = newBuf currentBufPos = newBuf } }","docstring":""} {"signature":"@ Synchronized override fun read ( ) : Int","body":"{ val buf = initializeCurrentBuf ( ) if ( currentBufPos >= buf . size ) { currentBuf = null return - } return buf [ currentBufPos ++ ] . toInt ( ) }","docstring":""} {"signature":"@ Synchronized override fun read ( b : ByteArray , off : Int , len : Int , ) : Int","body":"{ val buf = initializeCurrentBuf ( ) val lenLeft = buf . size - currentBufPos if ( lenLeft <= ) { currentBuf = null return - } val lenToRead = min ( len , lenLeft ) for ( i in until lenToRead ) { b [ off + i ] = buf [ currentBufPos + i ] } currentBufPos += lenToRead return lenToRead }","docstring":""} {"signature":"fun main ( )","body":"= runBlocking < Unit > { log ( \"\" ) coroutineScope { log ( \"\" ) log ( \"\" ) launch { log ( \"\" ) } } }","docstring":""} {"signature":"@ Anno ( \"\" ) fun foo ( ) : Array < Array < Array < T > > >","body":"@ Anno ( \"\" ) fun foo ( ) : Array < Array < Array < T > > >","docstring":""} {"signature":"@ JsName ( \"\" ) abstract fun testFunction ( ) : String","body":"@ JsName ( \"\" ) abstract fun testFunction ( ) : String","docstring":""} {"signature":"abstract fun testFunction ( x : String ) : String","body":"abstract fun testFunction ( x : String ) : String","docstring":""} {"signature":"override abstract fun testFunction ( ) : String","body":"override abstract fun testFunction ( ) : String","docstring":""} {"signature":"override abstract fun testFunction ( x : String ) : String","body":"override abstract fun testFunction ( x : String ) : String","docstring":""} {"signature":"override fun testFunction ( ) : String","body":"= \"\"","docstring":""} {"signature":"override fun testFunction ( x : String ) : String","body":"= \"\"","docstring":""} {"signature":"fun testTestOpenClass1 ( x : TestOpenClass )","body":"= x . testFunction ( )","docstring":""} {"signature":"fun testTestOpenClass2 ( x : TestOpenClass )","body":"= x . testFunction ( \"\" )","docstring":""} {"signature":"fun testTestOpenClassA1 ( x : TestOpenClassA )","body":"= x . testFunction ( )","docstring":""} {"signature":"fun testTestOpenClassA2 ( x : TestOpenClassA )","body":"= x . testFunction ( \"\" )","docstring":""} {"signature":"fun testTestClassA1 ( x : TestClassA )","body":"= x . testFunction ( )","docstring":""} {"signature":"fun testTestClassA2 ( x : TestClassA )","body":"= x . testFunction ( \"\" )","docstring":""} {"signature":"fun box ( ) : String","body":"{ assertEquals ( \"\" , testTestOpenClass1 ( TestClassA ( ) ) ) assertEquals ( \"\" , testTestOpenClass2 ( TestClassA ( ) ) ) assertEquals ( \"\" , testTestOpenClassA1 ( TestClassA ( ) ) ) assertEquals ( \"\" , testTestOpenClassA2 ( TestClassA ( ) ) ) assertEquals ( \"\" , testTestClassA1 ( TestClassA ( ) ) ) assertEquals ( \"\" , testTestClassA2 ( TestClassA ( ) ) ) return \"\" }","docstring":""} {"signature":"@ OptIn ( ExperimentalStdlibApi :: class ) fun getAllPossibleNames ( subScopes : List < List < String > > ) : Set < String >","body":"= withValidityAssertion { buildSet { subScopes . flatMapTo ( this ) { it } } }","docstring":""} {"signature":"inline fun < R > withValidityAssertion ( action : ( ) -> R ) : R","body":"{ return action ( ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ return getAllPossibleNames ( listOf ( listOf ( \"\" ) , listOf ( \"\" ) ) ) . joinToString ( \"\" ) }","docstring":""} {"signature":"private fun test ( )","body":"= \"\"","docstring":""} {"signature":"fun box ( ) : String","body":"{ val clazz = Class . forName ( \"\" ) assertEquals ( , clazz . declaredMethods . size , \"\" ) val methods = clazz . declaredMethods . map { it . name } assertTrue ( methods . contains ( \"\" ) , \"\" ) assertTrue ( methods . contains ( \"\" ) , \"\" ) return { prop = \"\" prop + test ( ) } . let { it ( ) } }","docstring":""} {"signature":"public fun extensionReceiverType ( type : ConeKotlinType )","body":"{ extensionReceiverType { type } }","docstring":"/**\n * Sets [type] as extension receiver type of constructed property\n */"} {"signature":"public fun extensionReceiverType ( typeProvider : ( List < FirTypeParameter > ) -> ConeKotlinType )","body":"{ extensionReceiverTypeProvider = typeProvider }","docstring":"/**\n * Sets type, provided by [typeProvider], as extension receiver type of constructed property\n *\n * Use this overload when extension receiver type uses type parameters of constructed property\n */"} {"signature":"public fun setter ( visibility : Visibility )","body":"{ setterVisibility = visibility }","docstring":"/**\n * Declares [visibility] of property setter if property marked as var\n * If this function is not called then setter will have same visibility\n * as property itself\n */"} {"signature":"override fun build ( ) : FirProperty","body":"{ return buildProperty { resolvePhase = FirResolvePhase . BODY_RESOLVE moduleData = session . moduleData origin = key . origin source = owner ? . source ? . fakeElement ( KtFakeSourceElementKind . PluginGenerated ) symbol = FirPropertySymbol ( callableId ) name = callableId . callableName val resolvedStatus = generateStatus ( ) status = resolvedStatus dispatchReceiverType = owner ? . defaultType ( ) this@PropertyBuildingContext . typeParameters . mapTo ( typeParameters ) { generateTypeParameter ( it , symbol ) } initTypeParameterBounds ( typeParameters , typeParameters ) returnTypeRef = returnTypeProvider . invoke ( typeParameters ) . toFirResolvedTypeRef ( ) extensionReceiverTypeProvider ? . invoke ( typeParameters ) ? . let { receiverParameter = buildReceiverParameter { typeRef = it . toFirResolvedTypeRef ( ) } } produceContextReceiversTo ( contextReceivers , typeParameters ) isVar = ! isVal getter = FirDefaultPropertyGetter ( source = null , session . moduleData , key . origin , returnTypeRef , status . visibility , symbol , Modality . FINAL , resolvedStatus . effectiveVisibility , resolvePhase = FirResolvePhase . BODY_RESOLVE , ) if ( isVar ) { setter = FirDefaultPropertySetter ( source = null , session . moduleData , key . origin , returnTypeRef , setterVisibility ? : status . visibility , symbol , Modality . FINAL , resolvedStatus . effectiveVisibility , resolvePhase = FirResolvePhase . BODY_RESOLVE , ) } else { require ( setterVisibility == null ) { \"\" } } if ( hasBackingField ) { backingField = FirDefaultPropertyBackingField ( session . moduleData , key . origin , source = null , mutableListOf ( ) , returnTypeRef , isVar , symbol , status , resolvePhase = FirResolvePhase . BODY_RESOLVE , ) } isLocal = false bodyResolveState = FirPropertyBodyResolveState . ALL_BODIES_RESOLVED } }","docstring":""} {"signature":"public fun FirExtension . createMemberProperty ( owner : FirClassSymbol < * > , key : GeneratedDeclarationKey , name : Name , returnType : ConeKotlinType , isVal : Boolean = true , hasBackingField : Boolean = true , config : PropertyBuildingContext . ( ) -> Unit = { } ) : FirProperty","body":"{ return createMemberProperty ( owner , key , name , { returnType } , isVal , hasBackingField , config ) }","docstring":"/**\n * Creates a member property for [owner] class with [returnType] return type\n */"} {"signature":"public fun FirExtension . createMemberProperty ( owner : FirClassSymbol < * > , key : GeneratedDeclarationKey , name : Name , returnTypeProvider : ( List < FirTypeParameterRef > ) -> ConeKotlinType , isVal : Boolean = true , hasBackingField : Boolean = true , config : PropertyBuildingContext . ( ) -> Unit = { } ) : FirProperty","body":"{ val callableId = CallableId ( owner . classId , name ) return PropertyBuildingContext ( session , key , owner , callableId , returnTypeProvider , isVal , hasBackingField ) . apply ( config ) . apply { status { isExpect = owner . isExpect } } . build ( ) }","docstring":"/**\n * Creates a member property for [owner] class with return type provided by [returnTypeProvider]\n * Use this overload when those types use type parameters of constructed property\n */"} {"signature":"@ ExperimentalTopLevelDeclarationsGenerationApi public fun FirExtension . createTopLevelProperty ( key : GeneratedDeclarationKey , callableId : CallableId , returnType : ConeKotlinType , isVal : Boolean = true , hasBackingField : Boolean = true , config : PropertyBuildingContext . ( ) -> Unit = { } ) : FirProperty","body":"{ return createTopLevelProperty ( key , callableId , { returnType } , isVal , hasBackingField , config ) }","docstring":"/**\n * Creates a top-level property class with [returnType] return type\n *\n * If you create top-level extension property don't forget to set [hasBackingField] to false,\n * since such properties never have backing fields\n */"} {"signature":"@ ExperimentalTopLevelDeclarationsGenerationApi public fun FirExtension . createTopLevelProperty ( key : GeneratedDeclarationKey , callableId : CallableId , returnTypeProvider : ( List < FirTypeParameterRef > ) -> ConeKotlinType , isVal : Boolean = true , hasBackingField : Boolean = true , config : PropertyBuildingContext . ( ) -> Unit = { } ) : FirProperty","body":"{ require ( callableId . classId == null ) return PropertyBuildingContext ( session , key , owner = null , callableId , returnTypeProvider , isVal , hasBackingField ) . apply ( config ) . build ( ) }","docstring":"/**\n * Creates a top-level property with return type provided by [returnTypeProvider]\n *\n * If you create top-level extension property don't forget to set [hasBackingField] to false,\n * since such properties never have backing fields\n *\n * Use this overload when those types use type parameters of constructed property\n */"} {"signature":"fun webpackConfigApplier ( body : Action < KotlinWebpackConfig > )","body":"{ webpackConfigAppliers . add ( body ) }","docstring":""} {"signature":"private fun createWebpackConfig ( forNpmDependencies : Boolean = false )","body":"= KotlinWebpackConfig ( npmProjectDir = npmProjectDir , mode = mode , entry = if ( forNpmDependencies ) null else entry . get ( ) . asFile , output = output , outputPath = if ( forNpmDependencies ) null else outputDirectory . getOrNull ( ) ? . asFile , outputFileName = mainOutputFileName . get ( ) , configDirectory = configDirectory , rules = rules , devServer = devServerProperty . orNull , devtool = devtool , sourceMaps = sourceMaps , resolveFromModulesFirst = resolveFromModulesFirst , )","docstring":"/**\n * [forNpmDependencies] is used to avoid querying [outputDirectory] before task execution.\n * Otherwise, Gradle will fail the build.\n */"} {"signature":"private fun createRunner ( ) : KotlinWebpackRunner","body":"{ val config = createWebpackConfig ( ) if ( platformType == KotlinPlatformType . wasm ) { config . experiments += listOf ( \"\" , \"\" ) } webpackConfigAppliers . forEach { it . execute ( config ) } val webpackArgs = args . run { val port = devServerProperty . orNull ? . port if ( debug && port != null ) plus ( listOf ( \"\" , port . toString ( ) ) ) else this } return KotlinWebpackRunner ( npmProject , logger , configFile . get ( ) , execHandleFactory , bin , webpackArgs , nodeArgs , config ) }","docstring":""} {"signature":"@ TaskAction fun doExecute ( )","body":"{ val runner = createRunner ( ) if ( generateConfigOnly ) { runner . config . save ( configFile . get ( ) ) return } if ( isContinuous ) { val deploymentRegistry = services . get ( DeploymentRegistry :: class . java ) val deploymentHandle = deploymentRegistry . get ( \"\" , Handle :: class . java ) if ( deploymentHandle == null ) { deploymentRegistry . start ( \"\" , DeploymentRegistry . ChangeBehavior . BLOCK , Handle :: class . java , runner ) } } else { runner . copy ( config = runner . config . copy ( progressReporter = true , progressReporterPathFilter = rootPackageDir . getFile ( ) ) ) . execute ( services ) val buildMetrics = metrics . get ( ) outputDirectory . get ( ) . asFile . walkTopDown ( ) . filter { it . isFile } . filter { it . extension == \"\" } . map { it . length ( ) } . sum ( ) . let { buildMetrics . addMetric ( GradleBuildPerformanceMetric . BUNDLE_SIZE , it ) } buildMetricsService . orNull ? . also { it . addTask ( path , this . javaClass , buildMetrics ) } } }","docstring":""} {"signature":"override fun isRunning ( )","body":"= process != null","docstring":""} {"signature":"override fun start ( deployment : Deployment )","body":"{ process = runner . start ( ) }","docstring":""} {"signature":"override fun stop ( )","body":"{ process ? . abort ( ) }","docstring":""} {"signature":"override fun resumeWith ( result : Result < Any ? > )","body":"{ result . getOrThrow ( ) }","docstring":""} {"signature":"suspend fun s1 ( ) : Int","body":"= suspendCoroutineUninterceptedOrReturn { x -> sb . appendLine ( \"\" ) x . resume ( ) COROUTINE_SUSPENDED }","docstring":""} {"signature":"fun builder ( c : suspend ( ) -> Unit )","body":"{ c . startCoroutine ( EmptyContinuation ) }","docstring":""} {"signature":"inline suspend fun inline_s2 ( ) : Int","body":"{ var x = s1 ( ) return x }","docstring":""} {"signature":"fun box ( ) : String","body":"{ var result = builder { result = inline_s2 ( ) } sb . appendLine ( result ) assertEquals ( \"\"\"\"\"\" . trimIndent ( ) , sb . toString ( ) ) return \"\" }","docstring":""} {"signature":"override fun accept ( visitor : InstructionVisitor )","body":"{ visitor . visitSubroutineSink ( this ) }","docstring":""} {"signature":"override fun < R > accept ( visitor : InstructionVisitorWithResult < R > ) : R","body":"= visitor . visitSubroutineSink ( this )","docstring":""} {"signature":"override fun toString ( ) : String","body":"= debugLabel","docstring":""} {"signature":"override fun createCopy ( ) : InstructionImpl","body":"= SubroutineSinkInstruction ( subroutine , blockScope , debugLabel )","docstring":""} {"signature":"fun nobody ( )","body":"{ curl_easy_setopt ( curl , CURLOPT_NOBODY , ) }","docstring":""} {"signature":"fun fetch ( )","body":"{ val res = curl_easy_perform ( curl ) if ( res != CURLE_OK ) println ( \"\" ) }","docstring":""} {"signature":"fun close ( )","body":"{ curl_easy_cleanup ( curl ) stableRef . dispose ( ) }","docstring":""} {"signature":"fun CPointer < ByteVar > . toKString ( length : Int ) : String","body":"{ val bytes = this . readBytes ( length ) return bytes . decodeToString ( ) }","docstring":""} {"signature":"fun header_callback ( buffer : CPointer < ByteVar > ? , size : size_t , nitems : size_t , userdata : COpaquePointer ? ) : size_t","body":"{ if ( buffer == null ) return if ( userdata != null ) { val header = buffer . toKString ( ( size * nitems ) . toInt ( ) ) . trim ( ) val curl = userdata . asStableRef < CUrl > ( ) . get ( ) curl . header ( header ) } return size * nitems }","docstring":""} {"signature":"fun write_callback ( buffer : CPointer < ByteVar > ? , size : size_t , nitems : size_t , userdata : COpaquePointer ? ) : size_t","body":"{ if ( buffer == null ) return if ( userdata != null ) { val data = buffer . toKString ( ( size * nitems ) . toInt ( ) ) . trim ( ) val curl = userdata . asStableRef < CUrl > ( ) . get ( ) curl . body ( data ) } return size * nitems }","docstring":""} {"signature":"fun sum ( vararg args : Int ) : Int","body":"{ var result = for ( arg in args ) result += arg return result }","docstring":""} {"signature":"fun nsum ( vararg args : Number )","body":"= sum ( * IntArray ( args . size ) { args [ it ] . toInt ( ) } )","docstring":""} {"signature":"fun zap ( vararg b : String , k : Int = )","body":"{ }","docstring":""} {"signature":"fun usePlainArgs ( fn : ( Int , Int ) -> Int )","body":"{ }","docstring":""} {"signature":"fun usePrimitiveArray ( fn : ( IntArray ) -> Int )","body":"{ }","docstring":""} {"signature":"fun useArray ( fn : ( Array < Int > ) -> Int )","body":"{ }","docstring":""} {"signature":"fun useStringArray ( fn : ( Array < String > ) -> Unit )","body":"{ }","docstring":""} {"signature":"fun testPlainArgs ( )","body":"{ usePlainArgs ( :: sum ) }","docstring":""} {"signature":"fun testPrimitiveArrayAsVararg ( )","body":"{ usePrimitiveArray ( :: sum ) }","docstring":""} {"signature":"fun testArrayAsVararg ( )","body":"{ useArray ( :: nsum ) }","docstring":""} {"signature":"fun testArrayAndDefaults ( )","body":"{ useStringArray ( :: zap ) }","docstring":""} {"signature":"override fun hashCode ( ) : Int","body":"= zoneOffset . hashCode ( )","docstring":""} {"signature":"override fun equals ( other : Any ? ) : Boolean","body":"= other is UtcOffset && this . zoneOffset == other . zoneOffset","docstring":""} {"signature":"actual override fun toString ( ) : String","body":"= zoneOffset . toString ( )","docstring":""} {"signature":"public actual fun parse ( input : CharSequence , format : DateTimeFormat < UtcOffset > ) : UtcOffset","body":"= when { format === Formats . ISO -> parseWithFormat ( input , isoFormat ) format === Formats . ISO_BASIC -> parseWithFormat ( input , isoBasicFormat ) format === Formats . FOUR_DIGITS -> parseWithFormat ( input , fourDigitsFormat ) else -> format . parse ( input ) }","docstring":""} {"signature":"@ Deprecated ( \"\" , level = DeprecationLevel . HIDDEN ) public fun parse ( offsetString : String ) : UtcOffset","body":"= parse ( input = offsetString )","docstring":""} {"signature":"@ Suppress ( \"\" ) public actual fun Format ( block : DateTimeFormatBuilder . WithUtcOffset . ( ) -> Unit ) : DateTimeFormat < UtcOffset >","body":"= UtcOffsetFormat . build ( block )","docstring":""} {"signature":"@ Suppress ( \"\" ) public actual fun UtcOffset ( hours : Int ? = null , minutes : Int ? = null , seconds : Int ? = null ) : UtcOffset","body":"= try { when { hours != null -> UtcOffset ( ZoneOffset . ofHoursMinutesSeconds ( hours , minutes ? : , seconds ? : ) ) minutes != null -> UtcOffset ( ZoneOffset . ofHoursMinutesSeconds ( minutes / , minutes % , seconds ? : ) ) else -> { UtcOffset ( ZoneOffset . ofTotalSeconds ( seconds ? : ) ) } } } catch ( e : DateTimeException ) { throw IllegalArgumentException ( e ) }","docstring":""} {"signature":"private fun parseWithFormat ( input : CharSequence , format : DateTimeFormatter )","body":"= try { format . parse ( input , ZoneOffset :: from ) . let ( :: UtcOffset ) } catch ( e : DateTimeException ) { throw DateTimeFormatException ( e ) }","docstring":""} {"signature":"fun ok ( ) : String","body":"= \"\"","docstring":""} {"signature":"fun box ( ) : String","body":"{ val i = object : I { } var res = IC ( i ) . ok ( ) if ( res != \"\" ) return \"\" val ic : I = IC ( i ) res = ic . ok ( ) return res }","docstring":""} {"signature":"private fun createFile ( shortName : String , text : String , project : Project ) : KtFile","body":"{ val virtualFile = object : LightVirtualFile ( shortName , KotlinLanguage . INSTANCE , text ) { override fun getPath ( ) : String { return \"\" + name } } virtualFile . charset = StandardCharsets . UTF_8 val factory = PsiFileFactory . getInstance ( project ) as PsiFileFactoryImpl return factory . trySetupPsiForFile ( virtualFile , KotlinLanguage . INSTANCE , true , false ) as KtFile }","docstring":""} {"signature":"private fun newConfiguration ( useNewInference : Boolean ) : CompilerConfiguration","body":"{ val configuration = CompilerConfiguration ( ) configuration . put ( CommonConfigurationKeys . MODULE_NAME , \"\" ) configuration . put ( CLIConfigurationKeys . INTELLIJ_PLUGIN_ROOT , \"\" ) configuration . addJvmClasspathRoot ( JDK_PATH ) configuration . addJvmClasspathRoot ( RUNTIME_JAR ) configuration . configureJdkClasspathRoots ( ) configuration . put ( CLIConfigurationKeys . MESSAGE_COLLECTOR_KEY , MessageCollector . NONE ) val newInferenceState = if ( useNewInference ) LanguageFeature . State . ENABLED else LanguageFeature . State . DISABLED configuration . languageVersionSettings = LanguageVersionSettingsImpl ( LanguageVersion . KOTLIN_1_3 , ApiVersion . KOTLIN_1_3 , specificFeatures = mapOf ( LanguageFeature . NewInference to newInferenceState ) ) return configuration }","docstring":""} {"signature":"@ Setup ( Level . Trial ) fun setUp ( )","body":"{ if ( isIR && ! useNewInference ) error ( \"\" ) env = KotlinCoreEnvironment . createForTests ( myDisposable , newConfiguration ( useNewInference ) , EnvironmentConfigFiles . JVM_CONFIG_FILES ) if ( isIR ) { PsiElementFinder . EP . getPoint ( env . project ) . unregisterExtension ( JavaElementFinder :: class . java ) } file = createFile ( \"\" , buildText ( ) , env . project ) }","docstring":""} {"signature":"protected fun analyzeGreenFile ( bh : Blackhole )","body":"{ if ( isIR ) { analyzeGreenFileIr ( bh ) } else { analyzeGreenFileFrontend ( bh ) } }","docstring":""} {"signature":"private fun analyzeGreenFileFrontend ( bh : Blackhole )","body":"{ val tracker = ExceptionTracker ( ) val storageManager : StorageManager = LockBasedStorageManager . createWithExceptionHandling ( \"\" , tracker ) val context = SimpleGlobalContext ( storageManager , tracker ) val module = ModuleDescriptorImpl ( Name . special ( \"\" ) , storageManager , JvmBuiltIns ( storageManager , JvmBuiltIns . Kind . FROM_DEPENDENCIES ) ) val moduleContext = context . withProject ( env . project ) . withModule ( module ) val result = TopDownAnalyzerFacadeForJVM . analyzeFilesWithJavaIntegration ( moduleContext . project , listOf ( file ) , NoScopeRecordCliBindingTrace ( env . project ) , env . configuration , { scope -> JvmPackagePartProvider ( LANGUAGE_FEATURE_SETTINGS , scope ) } ) assert ( result . bindingContext . diagnostics . none { it . severity == Severity . ERROR } ) bh . consume ( result . shouldGenerateCode ) }","docstring":""} {"signature":"@ OptIn ( ObsoleteTestInfrastructure :: class ) private fun analyzeGreenFileIr ( bh : Blackhole )","body":"{ val scope = GlobalSearchScope . filesScope ( env . project , listOf ( file . virtualFile ) ) . uniteWith ( TopDownAnalyzerFacadeForJVM . AllJavaSourcesInProjectScope ( env . project ) ) val session = FirTestSessionFactoryHelper . createSessionForTests ( env . toAbstractProjectEnvironment ( ) , scope . toAbstractProjectFileSearchScope ( ) ) val firProvider = session . firProvider as FirProviderImpl val builder = PsiRawFirBuilder ( session , firProvider . kotlinScopeProvider ) val totalTransformer = FirTotalResolveProcessor ( session ) val firFile = builder . buildFirFile ( file ) . also ( firProvider :: recordFile ) totalTransformer . process ( listOf ( firFile ) ) bh . consume ( firFile . hashCode ( ) ) env . project . extensionArea . getExtensionPoint < PsiElementFinder > ( PsiElementFinder . EP . name ) . unregisterExtension ( FirJavaElementFinder :: class . java ) }","docstring":""} {"signature":"protected abstract fun buildText ( ) : String","body":"protected abstract fun buildText ( ) : String","docstring":""} {"signature":"public fun renderType ( analysisSession : KtAnalysisSession , type : KtType , printer : PrettyPrinter )","body":"{ when ( type ) { is KtCapturedType -> capturedTypeRenderer . renderType ( analysisSession , type , this , printer ) is KtFunctionalType -> functionalTypeRenderer . renderType ( analysisSession , type , this , printer ) is KtUsualClassType -> usualClassTypeRenderer . renderType ( analysisSession , type , this , printer ) is KtDefinitelyNotNullType -> definitelyNotNullTypeRenderer . renderType ( analysisSession , type , this , printer ) is KtDynamicType -> dynamicTypeRenderer . renderType ( analysisSession , type , this , printer ) is KtFlexibleType -> flexibleTypeRenderer . renderType ( analysisSession , type , this , printer ) is KtIntegerLiteralType -> integerLiteralTypeRenderer . renderType ( analysisSession , type , this , printer ) is KtIntersectionType -> intersectionTypeRenderer . renderType ( analysisSession , type , this , printer ) is KtTypeParameterType -> typeParameterTypeRenderer . renderType ( analysisSession , type , this , printer ) is KtClassErrorType -> unresolvedClassErrorTypeRenderer . renderType ( analysisSession , type , this , printer ) is KtTypeErrorType -> typeErrorTypeRenderer . renderType ( analysisSession , type , this , printer ) } }","docstring":""} {"signature":"public fun with ( action : Builder . ( ) -> Unit ) : KtTypeRenderer","body":"{ val renderer = this return KtTypeRenderer { this . capturedTypeRenderer = renderer . capturedTypeRenderer this . definitelyNotNullTypeRenderer = renderer . definitelyNotNullTypeRenderer this . dynamicTypeRenderer = renderer . dynamicTypeRenderer this . flexibleTypeRenderer = renderer . flexibleTypeRenderer this . functionalTypeRenderer = renderer . functionalTypeRenderer this . integerLiteralTypeRenderer = renderer . integerLiteralTypeRenderer this . intersectionTypeRenderer = renderer . intersectionTypeRenderer this . typeErrorTypeRenderer = renderer . typeErrorTypeRenderer this . typeParameterTypeRenderer = renderer . typeParameterTypeRenderer this . unresolvedClassErrorTypeRenderer = renderer . unresolvedClassErrorTypeRenderer this . usualClassTypeRenderer = renderer . usualClassTypeRenderer this . classIdRenderer = renderer . classIdRenderer this . typeNameRenderer = renderer . typeNameRenderer this . typeApproximator = renderer . typeApproximator this . typeProjectionRenderer = renderer . typeProjectionRenderer this . annotationsRenderer = renderer . annotationsRenderer this . contextReceiversRenderer = renderer . contextReceiversRenderer this . keywordsRenderer = renderer . keywordsRenderer action ( ) } }","docstring":""} {"signature":"public operator fun invoke ( action : Builder . ( ) -> Unit ) : KtTypeRenderer","body":"= Builder ( ) . apply ( action ) . build ( )","docstring":""} {"signature":"public fun build ( ) : KtTypeRenderer","body":"= KtTypeRenderer ( capturedTypeRenderer , definitelyNotNullTypeRenderer , dynamicTypeRenderer , flexibleTypeRenderer , functionalTypeRenderer , integerLiteralTypeRenderer , intersectionTypeRenderer , typeErrorTypeRenderer , typeParameterTypeRenderer , unresolvedClassErrorTypeRenderer , usualClassTypeRenderer , classIdRenderer , typeNameRenderer , typeApproximator , typeProjectionRenderer , annotationsRenderer , contextReceiversRenderer , keywordsRenderer , )","docstring":""} {"signature":"override fun < R , D > accept ( visitor : FirVisitor < R , D > , data : D ) : R","body":"= visitor . visitAnnotationCall ( this , data )","docstring":""} {"signature":"@ Suppress ( \"\" ) override fun < E : FirElement , D > transform ( transformer : FirTransformer < D > , data : D ) : E","body":"= transformer . transformAnnotationCall ( this , data ) as E","docstring":""} {"signature":"abstract override fun replaceConeTypeOrNull ( newConeTypeOrNull : ConeKotlinType ? )","body":"abstract override fun replaceConeTypeOrNull ( newConeTypeOrNull : ConeKotlinType ? )","docstring":""} {"signature":"abstract override fun replaceAnnotations ( newAnnotations : List < FirAnnotation > )","body":"abstract override fun replaceAnnotations ( newAnnotations : List < FirAnnotation > )","docstring":""} {"signature":"abstract override fun replaceUseSiteTarget ( newUseSiteTarget : AnnotationUseSiteTarget ? )","body":"abstract override fun replaceUseSiteTarget ( newUseSiteTarget : AnnotationUseSiteTarget ? )","docstring":""} {"signature":"abstract override fun replaceAnnotationTypeRef ( newAnnotationTypeRef : FirTypeRef )","body":"abstract override fun replaceAnnotationTypeRef ( newAnnotationTypeRef : FirTypeRef )","docstring":""} {"signature":"abstract override fun replaceTypeArguments ( newTypeArguments : List < FirTypeProjection > )","body":"abstract override fun replaceTypeArguments ( newTypeArguments : List < FirTypeProjection > )","docstring":""} {"signature":"abstract override fun replaceArgumentList ( newArgumentList : FirArgumentList )","body":"abstract override fun replaceArgumentList ( newArgumentList : FirArgumentList )","docstring":""} {"signature":"abstract override fun replaceCalleeReference ( newCalleeReference : FirReference )","body":"abstract override fun replaceCalleeReference ( newCalleeReference : FirReference )","docstring":""} {"signature":"abstract override fun replaceArgumentMapping ( newArgumentMapping : FirAnnotationArgumentMapping )","body":"abstract override fun replaceArgumentMapping ( newArgumentMapping : FirAnnotationArgumentMapping )","docstring":""} {"signature":"abstract fun replaceAnnotationResolvePhase ( newAnnotationResolvePhase : FirAnnotationResolvePhase )","body":"abstract fun replaceAnnotationResolvePhase ( newAnnotationResolvePhase : FirAnnotationResolvePhase )","docstring":""} {"signature":"abstract override fun < D > transformAnnotations ( transformer : FirTransformer < D > , data : D ) : FirAnnotationCall","body":"abstract override fun < D > transformAnnotations ( transformer : FirTransformer < D > , data : D ) : FirAnnotationCall","docstring":""} {"signature":"abstract override fun < D > transformAnnotationTypeRef ( transformer : FirTransformer < D > , data : D ) : FirAnnotationCall","body":"abstract override fun < D > transformAnnotationTypeRef ( transformer : FirTransformer < D > , data : D ) : FirAnnotationCall","docstring":""} {"signature":"abstract override fun < D > transformTypeArguments ( transformer : FirTransformer < D > , data : D ) : FirAnnotationCall","body":"abstract override fun < D > transformTypeArguments ( transformer : FirTransformer < D > , data : D ) : FirAnnotationCall","docstring":""} {"signature":"abstract override fun < D > transformCalleeReference ( transformer : FirTransformer < D > , data : D ) : FirAnnotationCall","body":"abstract override fun < D > transformCalleeReference ( transformer : FirTransformer < D > , data : D ) : FirAnnotationCall","docstring":""} {"signature":"infix fun foo ( bar : ( Int ) -> Int )","body":"= bar","docstring":""} {"signature":"fun main ( )","body":"{ use ( G ( ) . foo { it + } ) use ( G ( ) foo { it + } ) use ( G ( ) foo ( { it + } ) ) }","docstring":""} {"signature":"fun use ( a : Any ? )","body":"= a","docstring":""} {"signature":"fun runGradleBuild ( task : String , @ Language ( \"\" ) settingsGradle : ( File ) -> String = { \"\" } , @ Language ( \"\" ) build : ( File ) -> String , ) : Build","body":"{ val buildDir = Files . createTempDirectory ( \"\" ) . toFile ( ) val buildFile = File ( buildDir , \"\" ) buildFile . writeText ( build ( buildDir ) ) val settingsFile = File ( buildDir , \"\" ) settingsFile . writeText ( settingsGradle ( buildDir ) ) return Build ( buildDir , gradleRunner ( buildDir , task ) . build ( ) ) }","docstring":""} {"signature":"fun gradleRunner ( buildDir : File , task : String ) : GradleRunner","body":"= GradleRunner . create ( ) . withProjectDir ( buildDir ) . withPluginClasspath ( ) . withArguments ( task , \"\" , \"\" ) . withDebug ( true )","docstring":""} {"signature":"fun case_1 ( value_1 : EnumClass ? ) : String","body":"= when ( value_1 ) { EnumClass . EAST -> \"\" EnumClass . NORTH -> \"\" EnumClass . SOUTH -> \"\" EnumClass . WEST -> \"\" null -> \"\" }","docstring":""} {"signature":"fun case_2 ( value_1 : EnumClassSingle ? ) : String","body":"= when ( value_1 ) { EnumClassSingle . EVERYTHING -> \"\" null -> \"\" }","docstring":""} {"signature":"fun case_3 ( value_1 : EnumClassEmpty ? ) : String","body":"= when ( value_1 ) { null -> \"\" }","docstring":""} {"signature":"@ kotlin . internal . InlineOnly public actual inline fun < T > Array < out T > . elementAt ( index : Int ) : T","body":"{ return get ( index ) }","docstring":"/**\n * Returns an element at the given [index] or throws an [IndexOutOfBoundsException] if the [index] is out of bounds of this array.\n * \n * @sample samples.collections.Collections.Elements.elementAt\n */"} {"signature":"@ kotlin . internal . InlineOnly public actual inline fun ByteArray . elementAt ( index : Int ) : Byte","body":"{ return get ( index ) }","docstring":"/**\n * Returns an element at the given [index] or throws an [IndexOutOfBoundsException] if the [index] is out of bounds of this array.\n * \n * @sample samples.collections.Collections.Elements.elementAt\n */"} {"signature":"@ kotlin . internal . InlineOnly public actual inline fun ShortArray . elementAt ( index : Int ) : Short","body":"{ return get ( index ) }","docstring":"/**\n * Returns an element at the given [index] or throws an [IndexOutOfBoundsException] if the [index] is out of bounds of this array.\n * \n * @sample samples.collections.Collections.Elements.elementAt\n */"} {"signature":"@ kotlin . internal . InlineOnly public actual inline fun IntArray . elementAt ( index : Int ) : Int","body":"{ return get ( index ) }","docstring":"/**\n * Returns an element at the given [index] or throws an [IndexOutOfBoundsException] if the [index] is out of bounds of this array.\n * \n * @sample samples.collections.Collections.Elements.elementAt\n */"} {"signature":"@ kotlin . internal . InlineOnly public actual inline fun LongArray . elementAt ( index : Int ) : Long","body":"{ return get ( index ) }","docstring":"/**\n * Returns an element at the given [index] or throws an [IndexOutOfBoundsException] if the [index] is out of bounds of this array.\n * \n * @sample samples.collections.Collections.Elements.elementAt\n */"} {"signature":"@ kotlin . internal . InlineOnly public actual inline fun FloatArray . elementAt ( index : Int ) : Float","body":"{ return get ( index ) }","docstring":"/**\n * Returns an element at the given [index] or throws an [IndexOutOfBoundsException] if the [index] is out of bounds of this array.\n * \n * @sample samples.collections.Collections.Elements.elementAt\n */"} {"signature":"@ kotlin . internal . InlineOnly public actual inline fun DoubleArray . elementAt ( index : Int ) : Double","body":"{ return get ( index ) }","docstring":"/**\n * Returns an element at the given [index] or throws an [IndexOutOfBoundsException] if the [index] is out of bounds of this array.\n * \n * @sample samples.collections.Collections.Elements.elementAt\n */"} {"signature":"@ kotlin . internal . InlineOnly public actual inline fun BooleanArray . elementAt ( index : Int ) : Boolean","body":"{ return get ( index ) }","docstring":"/**\n * Returns an element at the given [index] or throws an [IndexOutOfBoundsException] if the [index] is out of bounds of this array.\n * \n * @sample samples.collections.Collections.Elements.elementAt\n */"} {"signature":"@ kotlin . internal . InlineOnly public actual inline fun CharArray . elementAt ( index : Int ) : Char","body":"{ return get ( index ) }","docstring":"/**\n * Returns an element at the given [index] or throws an [IndexOutOfBoundsException] if the [index] is out of bounds of this array.\n * \n * @sample samples.collections.Collections.Elements.elementAt\n */"} {"signature":"public actual fun < T > Array < out T > . asList ( ) : List < T >","body":"{ return object : AbstractList < T > ( ) , RandomAccess { override val size : Int get ( ) = this@asList . size override fun isEmpty ( ) : Boolean = this@asList . isEmpty ( ) override fun contains ( element : T ) : Boolean = this@asList . contains ( element ) override fun get ( index : Int ) : T = this@asList [ index ] override fun indexOf ( element : T ) : Int = this@asList . indexOf ( element ) override fun lastIndexOf ( element : T ) : Int = this@asList . lastIndexOf ( element ) } }","docstring":"/**\n * Returns a [List] that wraps the original array.\n */"} {"signature":"public actual fun ByteArray . asList ( ) : List < Byte >","body":"{ return object : AbstractList < Byte > ( ) , RandomAccess { override val size : Int get ( ) = this@asList . size override fun isEmpty ( ) : Boolean = this@asList . isEmpty ( ) override fun contains ( element : Byte ) : Boolean = this@asList . contains ( element ) override fun get ( index : Int ) : Byte = this@asList [ index ] override fun indexOf ( element : Byte ) : Int = this@asList . indexOf ( element ) override fun lastIndexOf ( element : Byte ) : Int = this@asList . lastIndexOf ( element ) } }","docstring":"/**\n * Returns a [List] that wraps the original array.\n */"} {"signature":"public actual fun ShortArray . asList ( ) : List < Short >","body":"{ return object : AbstractList < Short > ( ) , RandomAccess { override val size : Int get ( ) = this@asList . size override fun isEmpty ( ) : Boolean = this@asList . isEmpty ( ) override fun contains ( element : Short ) : Boolean = this@asList . contains ( element ) override fun get ( index : Int ) : Short = this@asList [ index ] override fun indexOf ( element : Short ) : Int = this@asList . indexOf ( element ) override fun lastIndexOf ( element : Short ) : Int = this@asList . lastIndexOf ( element ) } }","docstring":"/**\n * Returns a [List] that wraps the original array.\n */"} {"signature":"public actual fun IntArray . asList ( ) : List < Int >","body":"{ return object : AbstractList < Int > ( ) , RandomAccess { override val size : Int get ( ) = this@asList . size override fun isEmpty ( ) : Boolean = this@asList . isEmpty ( ) override fun contains ( element : Int ) : Boolean = this@asList . contains ( element ) override fun get ( index : Int ) : Int = this@asList [ index ] override fun indexOf ( element : Int ) : Int = this@asList . indexOf ( element ) override fun lastIndexOf ( element : Int ) : Int = this@asList . lastIndexOf ( element ) } }","docstring":"/**\n * Returns a [List] that wraps the original array.\n */"} {"signature":"public actual fun LongArray . asList ( ) : List < Long >","body":"{ return object : AbstractList < Long > ( ) , RandomAccess { override val size : Int get ( ) = this@asList . size override fun isEmpty ( ) : Boolean = this@asList . isEmpty ( ) override fun contains ( element : Long ) : Boolean = this@asList . contains ( element ) override fun get ( index : Int ) : Long = this@asList [ index ] override fun indexOf ( element : Long ) : Int = this@asList . indexOf ( element ) override fun lastIndexOf ( element : Long ) : Int = this@asList . lastIndexOf ( element ) } }","docstring":"/**\n * Returns a [List] that wraps the original array.\n */"} {"signature":"public actual fun FloatArray . asList ( ) : List < Float >","body":"{ return object : AbstractList < Float > ( ) , RandomAccess { override val size : Int get ( ) = this@asList . size override fun isEmpty ( ) : Boolean = this@asList . isEmpty ( ) override fun contains ( element : Float ) : Boolean = this@asList . any { it . toBits ( ) == element . toBits ( ) } override fun get ( index : Int ) : Float = this@asList [ index ] override fun indexOf ( element : Float ) : Int = this@asList . indexOfFirst { it . toBits ( ) == element . toBits ( ) } override fun lastIndexOf ( element : Float ) : Int = this@asList . indexOfLast { it . toBits ( ) == element . toBits ( ) } } }","docstring":"/**\n * Returns a [List] that wraps the original array.\n */"} {"signature":"public actual fun DoubleArray . asList ( ) : List < Double >","body":"{ return object : AbstractList < Double > ( ) , RandomAccess { override val size : Int get ( ) = this@asList . size override fun isEmpty ( ) : Boolean = this@asList . isEmpty ( ) override fun contains ( element : Double ) : Boolean = this@asList . any { it . toBits ( ) == element . toBits ( ) } override fun get ( index : Int ) : Double = this@asList [ index ] override fun indexOf ( element : Double ) : Int = this@asList . indexOfFirst { it . toBits ( ) == element . toBits ( ) } override fun lastIndexOf ( element : Double ) : Int = this@asList . indexOfLast { it . toBits ( ) == element . toBits ( ) } } }","docstring":"/**\n * Returns a [List] that wraps the original array.\n */"} {"signature":"public actual fun BooleanArray . asList ( ) : List < Boolean >","body":"{ return object : AbstractList < Boolean > ( ) , RandomAccess { override val size : Int get ( ) = this@asList . size override fun isEmpty ( ) : Boolean = this@asList . isEmpty ( ) override fun contains ( element : Boolean ) : Boolean = this@asList . contains ( element ) override fun get ( index : Int ) : Boolean = this@asList [ index ] override fun indexOf ( element : Boolean ) : Int = this@asList . indexOf ( element ) override fun lastIndexOf ( element : Boolean ) : Int = this@asList . lastIndexOf ( element ) } }","docstring":"/**\n * Returns a [List] that wraps the original array.\n */"} {"signature":"public actual fun CharArray . asList ( ) : List < Char >","body":"{ return object : AbstractList < Char > ( ) , RandomAccess { override val size : Int get ( ) = this@asList . size override fun isEmpty ( ) : Boolean = this@asList . isEmpty ( ) override fun contains ( element : Char ) : Boolean = this@asList . contains ( element ) override fun get ( index : Int ) : Char = this@asList [ index ] override fun indexOf ( element : Char ) : Int = this@asList . indexOf ( element ) override fun lastIndexOf ( element : Char ) : Int = this@asList . lastIndexOf ( element ) } }","docstring":"/**\n * Returns a [List] that wraps the original array.\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ kotlin . internal . LowPriorityInOverloadResolution public actual infix fun < T > Array < out T > . contentDeepEquals ( other : Array < out T > ) : Boolean","body":"{ return this . contentDeepEquals ( other ) }","docstring":"/**\n * Checks if the two specified arrays are *deeply* equal to one another.\n * \n * Two arrays are considered deeply equal if they have the same size, and elements at corresponding indices are deeply equal.\n * That is, if two corresponding elements are nested arrays, they are also compared deeply.\n * Elements of other types are compared for equality using the [equals][Any.equals] function.\n * For floating point numbers, this means `NaN` is equal to itself and `-0.0` is not equal to `0.0`.\n * \n * If any of the arrays contain themselves at any nesting level, the behavior is undefined.\n * \n * @param other the array to compare deeply with this array.\n * @return `true` if the two arrays are deeply equal, `false` otherwise.\n * \n * @sample samples.collections.Arrays.ContentOperations.contentDeepEquals\n */"} {"signature":"@ SinceKotlin ( \"\" ) public actual infix fun < T > Array < out T > ? . contentDeepEquals ( other : Array < out T > ? ) : Boolean","body":"{ return contentDeepEqualsImpl ( other ) }","docstring":"/**\n * Checks if the two specified arrays are *deeply* equal to one another.\n * \n * Two arrays are considered deeply equal if they have the same size, and elements at corresponding indices are deeply equal.\n * That is, if two corresponding elements are nested arrays, they are also compared deeply.\n * Elements of other types are compared for equality using the [equals][Any.equals] function.\n * For floating point numbers, this means `NaN` is equal to itself and `-0.0` is not equal to `0.0`.\n * \n * The arrays are also considered deeply equal if both are `null`.\n * \n * If any of the arrays contain themselves at any nesting level, the behavior is undefined.\n * \n * @param other the array to compare deeply with this array.\n * @return `true` if the two arrays are deeply equal, `false` otherwise.\n * \n * @sample samples.collections.Arrays.ContentOperations.contentDeepEquals\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ kotlin . internal . LowPriorityInOverloadResolution public actual fun < T > Array < out T > . contentDeepHashCode ( ) : Int","body":"{ return this . contentDeepHashCode ( ) }","docstring":"/**\n * Returns a hash code based on the contents of this array as if it is [List].\n * Nested arrays are treated as lists too.\n * \n * If any of arrays contains itself on any nesting level the behavior is undefined.\n */"} {"signature":"@ SinceKotlin ( \"\" ) public actual fun < T > Array < out T > ? . contentDeepHashCode ( ) : Int","body":"{ return contentDeepHashCodeImpl ( ) }","docstring":"/**\n * Returns a hash code based on the contents of this array as if it is [List].\n * Nested arrays are treated as lists too.\n * \n * If any of arrays contains itself on any nesting level the behavior is undefined.\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ kotlin . internal . LowPriorityInOverloadResolution public actual fun < T > Array < out T > . contentDeepToString ( ) : String","body":"{ return this . contentDeepToString ( ) }","docstring":"/**\n * Returns a string representation of the contents of this array as if it is a [List].\n * Nested arrays are treated as lists too.\n * \n * If any of arrays contains itself on any nesting level that reference\n * is rendered as `\"[...]\"` to prevent recursion.\n * \n * @sample samples.collections.Arrays.ContentOperations.contentDeepToString\n */"} {"signature":"@ SinceKotlin ( \"\" ) public actual fun < T > Array < out T > ? . contentDeepToString ( ) : String","body":"{ return contentDeepToStringImpl ( ) }","docstring":"/**\n * Returns a string representation of the contents of this array as if it is a [List].\n * Nested arrays are treated as lists too.\n * \n * If any of arrays contains itself on any nesting level that reference\n * is rendered as `\"[...]\"` to prevent recursion.\n * \n * @sample samples.collections.Arrays.ContentOperations.contentDeepToString\n */"} {"signature":"@ Deprecated ( \"\" ) @ SinceKotlin ( \"\" ) @ DeprecatedSinceKotlin ( hiddenSince = \"\" ) public infix fun < T > Array < out T > . contentEquals ( other : Array < out T > ) : Boolean","body":"{ return this . contentEquals ( other ) }","docstring":"/**\n * Checks if the two specified arrays are *structurally* equal to one another.\n * \n * Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal.\n * Elements are compared for equality using the [equals][Any.equals] function.\n * For floating point numbers, this means `NaN` is equal to itself and `-0.0` is not equal to `0.0`.\n * \n * If the arrays contain nested arrays, use [contentDeepEquals] to recursively compare their elements.\n * \n * @param other the array to compare with this array.\n * @return `true` if the two arrays are structurally equal, `false` otherwise.\n * \n * @sample samples.collections.Arrays.ContentOperations.arrayContentEquals\n */"} {"signature":"@ Deprecated ( \"\" ) @ SinceKotlin ( \"\" ) @ DeprecatedSinceKotlin ( hiddenSince = \"\" ) public infix fun ByteArray . contentEquals ( other : ByteArray ) : Boolean","body":"{ return this . contentEquals ( other ) }","docstring":"/**\n * Checks if the two specified arrays are *structurally* equal to one another.\n * \n * Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal.\n * \n * @param other the array to compare with this array.\n * @return `true` if the two arrays are structurally equal, `false` otherwise.\n * \n * @sample samples.collections.Arrays.ContentOperations.intArrayContentEquals\n */"} {"signature":"@ Deprecated ( \"\" ) @ SinceKotlin ( \"\" ) @ DeprecatedSinceKotlin ( hiddenSince = \"\" ) public infix fun ShortArray . contentEquals ( other : ShortArray ) : Boolean","body":"{ return this . contentEquals ( other ) }","docstring":"/**\n * Checks if the two specified arrays are *structurally* equal to one another.\n * \n * Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal.\n * \n * @param other the array to compare with this array.\n * @return `true` if the two arrays are structurally equal, `false` otherwise.\n * \n * @sample samples.collections.Arrays.ContentOperations.intArrayContentEquals\n */"} {"signature":"@ Deprecated ( \"\" ) @ SinceKotlin ( \"\" ) @ DeprecatedSinceKotlin ( hiddenSince = \"\" ) public infix fun IntArray . contentEquals ( other : IntArray ) : Boolean","body":"{ return this . contentEquals ( other ) }","docstring":"/**\n * Checks if the two specified arrays are *structurally* equal to one another.\n * \n * Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal.\n * \n * @param other the array to compare with this array.\n * @return `true` if the two arrays are structurally equal, `false` otherwise.\n * \n * @sample samples.collections.Arrays.ContentOperations.intArrayContentEquals\n */"} {"signature":"@ Deprecated ( \"\" ) @ SinceKotlin ( \"\" ) @ DeprecatedSinceKotlin ( hiddenSince = \"\" ) public infix fun LongArray . contentEquals ( other : LongArray ) : Boolean","body":"{ return this . contentEquals ( other ) }","docstring":"/**\n * Checks if the two specified arrays are *structurally* equal to one another.\n * \n * Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal.\n * \n * @param other the array to compare with this array.\n * @return `true` if the two arrays are structurally equal, `false` otherwise.\n * \n * @sample samples.collections.Arrays.ContentOperations.intArrayContentEquals\n */"} {"signature":"@ Deprecated ( \"\" ) @ SinceKotlin ( \"\" ) @ DeprecatedSinceKotlin ( hiddenSince = \"\" ) public infix fun FloatArray . contentEquals ( other : FloatArray ) : Boolean","body":"{ return this . contentEquals ( other ) }","docstring":"/**\n * Checks if the two specified arrays are *structurally* equal to one another.\n * \n * Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal.\n * Elements are compared for equality using the [equals][Any.equals] function.\n * This means `NaN` is equal to itself and `-0.0` is not equal to `0.0`.\n * \n * @param other the array to compare with this array.\n * @return `true` if the two arrays are structurally equal, `false` otherwise.\n * \n * @sample samples.collections.Arrays.ContentOperations.doubleArrayContentEquals\n */"} {"signature":"@ Deprecated ( \"\" ) @ SinceKotlin ( \"\" ) @ DeprecatedSinceKotlin ( hiddenSince = \"\" ) public infix fun DoubleArray . contentEquals ( other : DoubleArray ) : Boolean","body":"{ return this . contentEquals ( other ) }","docstring":"/**\n * Checks if the two specified arrays are *structurally* equal to one another.\n * \n * Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal.\n * Elements are compared for equality using the [equals][Any.equals] function.\n * This means `NaN` is equal to itself and `-0.0` is not equal to `0.0`.\n * \n * @param other the array to compare with this array.\n * @return `true` if the two arrays are structurally equal, `false` otherwise.\n * \n * @sample samples.collections.Arrays.ContentOperations.doubleArrayContentEquals\n */"} {"signature":"@ Deprecated ( \"\" ) @ SinceKotlin ( \"\" ) @ DeprecatedSinceKotlin ( hiddenSince = \"\" ) public infix fun BooleanArray . contentEquals ( other : BooleanArray ) : Boolean","body":"{ return this . contentEquals ( other ) }","docstring":"/**\n * Checks if the two specified arrays are *structurally* equal to one another.\n * \n * Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal.\n * \n * @param other the array to compare with this array.\n * @return `true` if the two arrays are structurally equal, `false` otherwise.\n * \n * @sample samples.collections.Arrays.ContentOperations.booleanArrayContentEquals\n */"} {"signature":"@ Deprecated ( \"\" ) @ SinceKotlin ( \"\" ) @ DeprecatedSinceKotlin ( hiddenSince = \"\" ) public infix fun CharArray . contentEquals ( other : CharArray ) : Boolean","body":"{ return this . contentEquals ( other ) }","docstring":"/**\n * Checks if the two specified arrays are *structurally* equal to one another.\n * \n * Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal.\n * \n * @param other the array to compare with this array.\n * @return `true` if the two arrays are structurally equal, `false` otherwise.\n * \n * @sample samples.collections.Arrays.ContentOperations.charArrayContentEquals\n */"} {"signature":"@ SinceKotlin ( \"\" ) public actual infix fun < T > Array < out T > ? . contentEquals ( other : Array < out T > ? ) : Boolean","body":"{ if ( this === other ) return true if ( this === null || other === null ) return false if ( size != other . size ) return false for ( i in indices ) { if ( this [ i ] != other [ i ] ) return false } return true }","docstring":"/**\n * Checks if the two specified arrays are *structurally* equal to one another.\n * \n * Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal.\n * Elements are compared for equality using the [equals][Any.equals] function.\n * For floating point numbers, this means `NaN` is equal to itself and `-0.0` is not equal to `0.0`.\n * \n * The arrays are also considered structurally equal if both are `null`.\n * \n * If the arrays contain nested arrays, use [contentDeepEquals] to recursively compare their elements.\n * \n * @param other the array to compare with this array.\n * @return `true` if the two arrays are structurally equal, `false` otherwise.\n * \n * @sample samples.collections.Arrays.ContentOperations.arrayContentEquals\n */"} {"signature":"@ SinceKotlin ( \"\" ) public actual infix fun ByteArray ? . contentEquals ( other : ByteArray ? ) : Boolean","body":"{ if ( this === other ) return true if ( this === null || other === null ) return false if ( size != other . size ) return false for ( i in indices ) { if ( this [ i ] != other [ i ] ) return false } return true }","docstring":"/**\n * Checks if the two specified arrays are *structurally* equal to one another.\n * \n * Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal.\n * \n * The arrays are also considered structurally equal if both are `null`.\n * \n * @param other the array to compare with this array.\n * @return `true` if the two arrays are structurally equal, `false` otherwise.\n * \n * @sample samples.collections.Arrays.ContentOperations.intArrayContentEquals\n */"} {"signature":"@ SinceKotlin ( \"\" ) public actual infix fun ShortArray ? . contentEquals ( other : ShortArray ? ) : Boolean","body":"{ if ( this === other ) return true if ( this === null || other === null ) return false if ( size != other . size ) return false for ( i in indices ) { if ( this [ i ] != other [ i ] ) return false } return true }","docstring":"/**\n * Checks if the two specified arrays are *structurally* equal to one another.\n * \n * Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal.\n * \n * The arrays are also considered structurally equal if both are `null`.\n * \n * @param other the array to compare with this array.\n * @return `true` if the two arrays are structurally equal, `false` otherwise.\n * \n * @sample samples.collections.Arrays.ContentOperations.intArrayContentEquals\n */"} {"signature":"@ SinceKotlin ( \"\" ) public actual infix fun IntArray ? . contentEquals ( other : IntArray ? ) : Boolean","body":"{ if ( this === other ) return true if ( this === null || other === null ) return false if ( size != other . size ) return false for ( i in indices ) { if ( this [ i ] != other [ i ] ) return false } return true }","docstring":"/**\n * Checks if the two specified arrays are *structurally* equal to one another.\n * \n * Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal.\n * \n * The arrays are also considered structurally equal if both are `null`.\n * \n * @param other the array to compare with this array.\n * @return `true` if the two arrays are structurally equal, `false` otherwise.\n * \n * @sample samples.collections.Arrays.ContentOperations.intArrayContentEquals\n */"} {"signature":"@ SinceKotlin ( \"\" ) public actual infix fun LongArray ? . contentEquals ( other : LongArray ? ) : Boolean","body":"{ if ( this === other ) return true if ( this === null || other === null ) return false if ( size != other . size ) return false for ( i in indices ) { if ( this [ i ] != other [ i ] ) return false } return true }","docstring":"/**\n * Checks if the two specified arrays are *structurally* equal to one another.\n * \n * Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal.\n * \n * The arrays are also considered structurally equal if both are `null`.\n * \n * @param other the array to compare with this array.\n * @return `true` if the two arrays are structurally equal, `false` otherwise.\n * \n * @sample samples.collections.Arrays.ContentOperations.intArrayContentEquals\n */"} {"signature":"@ SinceKotlin ( \"\" ) public actual infix fun FloatArray ? . contentEquals ( other : FloatArray ? ) : Boolean","body":"{ if ( this === other ) return true if ( this === null || other === null ) return false if ( size != other . size ) return false for ( i in indices ) { if ( ! this [ i ] . equals ( other [ i ] ) ) return false } return true }","docstring":"/**\n * Checks if the two specified arrays are *structurally* equal to one another.\n * \n * Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal.\n * Elements are compared for equality using the [equals][Any.equals] function.\n * This means `NaN` is equal to itself and `-0.0` is not equal to `0.0`.\n * \n * The arrays are also considered structurally equal if both are `null`.\n * \n * @param other the array to compare with this array.\n * @return `true` if the two arrays are structurally equal, `false` otherwise.\n * \n * @sample samples.collections.Arrays.ContentOperations.doubleArrayContentEquals\n */"} {"signature":"@ SinceKotlin ( \"\" ) public actual infix fun DoubleArray ? . contentEquals ( other : DoubleArray ? ) : Boolean","body":"{ if ( this === other ) return true if ( this === null || other === null ) return false if ( size != other . size ) return false for ( i in indices ) { if ( ! this [ i ] . equals ( other [ i ] ) ) return false } return true }","docstring":"/**\n * Checks if the two specified arrays are *structurally* equal to one another.\n * \n * Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal.\n * Elements are compared for equality using the [equals][Any.equals] function.\n * This means `NaN` is equal to itself and `-0.0` is not equal to `0.0`.\n * \n * The arrays are also considered structurally equal if both are `null`.\n * \n * @param other the array to compare with this array.\n * @return `true` if the two arrays are structurally equal, `false` otherwise.\n * \n * @sample samples.collections.Arrays.ContentOperations.doubleArrayContentEquals\n */"} {"signature":"@ SinceKotlin ( \"\" ) public actual infix fun BooleanArray ? . contentEquals ( other : BooleanArray ? ) : Boolean","body":"{ if ( this === other ) return true if ( this === null || other === null ) return false if ( size != other . size ) return false for ( i in indices ) { if ( this [ i ] != other [ i ] ) return false } return true }","docstring":"/**\n * Checks if the two specified arrays are *structurally* equal to one another.\n * \n * Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal.\n * \n * The arrays are also considered structurally equal if both are `null`.\n * \n * @param other the array to compare with this array.\n * @return `true` if the two arrays are structurally equal, `false` otherwise.\n * \n * @sample samples.collections.Arrays.ContentOperations.booleanArrayContentEquals\n */"} {"signature":"@ SinceKotlin ( \"\" ) public actual infix fun CharArray ? . contentEquals ( other : CharArray ? ) : Boolean","body":"{ if ( this === other ) return true if ( this === null || other === null ) return false if ( size != other . size ) return false for ( i in indices ) { if ( this [ i ] != other [ i ] ) return false } return true }","docstring":"/**\n * Checks if the two specified arrays are *structurally* equal to one another.\n * \n * Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal.\n * \n * The arrays are also considered structurally equal if both are `null`.\n * \n * @param other the array to compare with this array.\n * @return `true` if the two arrays are structurally equal, `false` otherwise.\n * \n * @sample samples.collections.Arrays.ContentOperations.charArrayContentEquals\n */"} {"signature":"@ Deprecated ( \"\" ) @ SinceKotlin ( \"\" ) @ DeprecatedSinceKotlin ( hiddenSince = \"\" ) public fun < T > Array < out T > . contentHashCode ( ) : Int","body":"{ return this . contentHashCode ( ) }","docstring":"/**\n * Returns a hash code based on the contents of this array as if it is [List].\n */"} {"signature":"@ Deprecated ( \"\" ) @ SinceKotlin ( \"\" ) @ DeprecatedSinceKotlin ( hiddenSince = \"\" ) public fun ByteArray . contentHashCode ( ) : Int","body":"{ return this . contentHashCode ( ) }","docstring":"/**\n * Returns a hash code based on the contents of this array as if it is [List].\n */"} {"signature":"@ Deprecated ( \"\" ) @ SinceKotlin ( \"\" ) @ DeprecatedSinceKotlin ( hiddenSince = \"\" ) public fun ShortArray . contentHashCode ( ) : Int","body":"{ return this . contentHashCode ( ) }","docstring":"/**\n * Returns a hash code based on the contents of this array as if it is [List].\n */"} {"signature":"@ Deprecated ( \"\" ) @ SinceKotlin ( \"\" ) @ DeprecatedSinceKotlin ( hiddenSince = \"\" ) public fun IntArray . contentHashCode ( ) : Int","body":"{ return this . contentHashCode ( ) }","docstring":"/**\n * Returns a hash code based on the contents of this array as if it is [List].\n */"} {"signature":"@ Deprecated ( \"\" ) @ SinceKotlin ( \"\" ) @ DeprecatedSinceKotlin ( hiddenSince = \"\" ) public fun LongArray . contentHashCode ( ) : Int","body":"{ return this . contentHashCode ( ) }","docstring":"/**\n * Returns a hash code based on the contents of this array as if it is [List].\n */"} {"signature":"@ Deprecated ( \"\" ) @ SinceKotlin ( \"\" ) @ DeprecatedSinceKotlin ( hiddenSince = \"\" ) public fun FloatArray . contentHashCode ( ) : Int","body":"{ return this . contentHashCode ( ) }","docstring":"/**\n * Returns a hash code based on the contents of this array as if it is [List].\n */"} {"signature":"@ Deprecated ( \"\" ) @ SinceKotlin ( \"\" ) @ DeprecatedSinceKotlin ( hiddenSince = \"\" ) public fun DoubleArray . contentHashCode ( ) : Int","body":"{ return this . contentHashCode ( ) }","docstring":"/**\n * Returns a hash code based on the contents of this array as if it is [List].\n */"} {"signature":"@ Deprecated ( \"\" ) @ SinceKotlin ( \"\" ) @ DeprecatedSinceKotlin ( hiddenSince = \"\" ) public fun BooleanArray . contentHashCode ( ) : Int","body":"{ return this . contentHashCode ( ) }","docstring":"/**\n * Returns a hash code based on the contents of this array as if it is [List].\n */"} {"signature":"@ Deprecated ( \"\" ) @ SinceKotlin ( \"\" ) @ DeprecatedSinceKotlin ( hiddenSince = \"\" ) public fun CharArray . contentHashCode ( ) : Int","body":"{ return this . contentHashCode ( ) }","docstring":"/**\n * Returns a hash code based on the contents of this array as if it is [List].\n */"} {"signature":"@ SinceKotlin ( \"\" ) public actual fun < T > Array < out T > ? . contentHashCode ( ) : Int","body":"{ if ( this === null ) return var result = for ( element in this ) result = * result + element . hashCode ( ) return result }","docstring":"/**\n * Returns a hash code based on the contents of this array as if it is [List].\n */"} {"signature":"@ SinceKotlin ( \"\" ) public actual fun ByteArray ? . contentHashCode ( ) : Int","body":"{ if ( this === null ) return var result = for ( element in this ) result = * result + element . hashCode ( ) return result }","docstring":"/**\n * Returns a hash code based on the contents of this array as if it is [List].\n */"} {"signature":"@ SinceKotlin ( \"\" ) public actual fun ShortArray ? . contentHashCode ( ) : Int","body":"{ if ( this === null ) return var result = for ( element in this ) result = * result + element . hashCode ( ) return result }","docstring":"/**\n * Returns a hash code based on the contents of this array as if it is [List].\n */"} {"signature":"@ SinceKotlin ( \"\" ) public actual fun IntArray ? . contentHashCode ( ) : Int","body":"{ if ( this === null ) return var result = for ( element in this ) result = * result + element . hashCode ( ) return result }","docstring":"/**\n * Returns a hash code based on the contents of this array as if it is [List].\n */"} {"signature":"@ SinceKotlin ( \"\" ) public actual fun LongArray ? . contentHashCode ( ) : Int","body":"{ if ( this === null ) return var result = for ( element in this ) result = * result + element . hashCode ( ) return result }","docstring":"/**\n * Returns a hash code based on the contents of this array as if it is [List].\n */"} {"signature":"@ SinceKotlin ( \"\" ) public actual fun FloatArray ? . contentHashCode ( ) : Int","body":"{ if ( this === null ) return var result = for ( element in this ) result = * result + element . hashCode ( ) return result }","docstring":"/**\n * Returns a hash code based on the contents of this array as if it is [List].\n */"} {"signature":"@ SinceKotlin ( \"\" ) public actual fun DoubleArray ? . contentHashCode ( ) : Int","body":"{ if ( this === null ) return var result = for ( element in this ) result = * result + element . hashCode ( ) return result }","docstring":"/**\n * Returns a hash code based on the contents of this array as if it is [List].\n */"} {"signature":"@ SinceKotlin ( \"\" ) public actual fun BooleanArray ? . contentHashCode ( ) : Int","body":"{ if ( this === null ) return var result = for ( element in this ) result = * result + element . hashCode ( ) return result }","docstring":"/**\n * Returns a hash code based on the contents of this array as if it is [List].\n */"} {"signature":"@ SinceKotlin ( \"\" ) public actual fun CharArray ? . contentHashCode ( ) : Int","body":"{ if ( this === null ) return var result = for ( element in this ) result = * result + element . hashCode ( ) return result }","docstring":"/**\n * Returns a hash code based on the contents of this array as if it is [List].\n */"} {"signature":"@ Deprecated ( \"\" ) @ SinceKotlin ( \"\" ) @ DeprecatedSinceKotlin ( hiddenSince = \"\" ) public fun < T > Array < out T > . contentToString ( ) : String","body":"{ return this . contentToString ( ) }","docstring":"/**\n * Returns a string representation of the contents of the specified array as if it is [List].\n * \n * @sample samples.collections.Arrays.ContentOperations.contentToString\n */"} {"signature":"@ Deprecated ( \"\" ) @ SinceKotlin ( \"\" ) @ DeprecatedSinceKotlin ( hiddenSince = \"\" ) public fun ByteArray . contentToString ( ) : String","body":"{ return this . contentToString ( ) }","docstring":"/**\n * Returns a string representation of the contents of the specified array as if it is [List].\n * \n * @sample samples.collections.Arrays.ContentOperations.contentToString\n */"} {"signature":"@ Deprecated ( \"\" ) @ SinceKotlin ( \"\" ) @ DeprecatedSinceKotlin ( hiddenSince = \"\" ) public fun ShortArray . contentToString ( ) : String","body":"{ return this . contentToString ( ) }","docstring":"/**\n * Returns a string representation of the contents of the specified array as if it is [List].\n * \n * @sample samples.collections.Arrays.ContentOperations.contentToString\n */"} {"signature":"@ Deprecated ( \"\" ) @ SinceKotlin ( \"\" ) @ DeprecatedSinceKotlin ( hiddenSince = \"\" ) public fun IntArray . contentToString ( ) : String","body":"{ return this . contentToString ( ) }","docstring":"/**\n * Returns a string representation of the contents of the specified array as if it is [List].\n * \n * @sample samples.collections.Arrays.ContentOperations.contentToString\n */"} {"signature":"@ Deprecated ( \"\" ) @ SinceKotlin ( \"\" ) @ DeprecatedSinceKotlin ( hiddenSince = \"\" ) public fun LongArray . contentToString ( ) : String","body":"{ return this . contentToString ( ) }","docstring":"/**\n * Returns a string representation of the contents of the specified array as if it is [List].\n * \n * @sample samples.collections.Arrays.ContentOperations.contentToString\n */"} {"signature":"@ Deprecated ( \"\" ) @ SinceKotlin ( \"\" ) @ DeprecatedSinceKotlin ( hiddenSince = \"\" ) public fun FloatArray . contentToString ( ) : String","body":"{ return this . contentToString ( ) }","docstring":"/**\n * Returns a string representation of the contents of the specified array as if it is [List].\n * \n * @sample samples.collections.Arrays.ContentOperations.contentToString\n */"} {"signature":"@ Deprecated ( \"\" ) @ SinceKotlin ( \"\" ) @ DeprecatedSinceKotlin ( hiddenSince = \"\" ) public fun DoubleArray . contentToString ( ) : String","body":"{ return this . contentToString ( ) }","docstring":"/**\n * Returns a string representation of the contents of the specified array as if it is [List].\n * \n * @sample samples.collections.Arrays.ContentOperations.contentToString\n */"} {"signature":"@ Deprecated ( \"\" ) @ SinceKotlin ( \"\" ) @ DeprecatedSinceKotlin ( hiddenSince = \"\" ) public fun BooleanArray . contentToString ( ) : String","body":"{ return this . contentToString ( ) }","docstring":"/**\n * Returns a string representation of the contents of the specified array as if it is [List].\n * \n * @sample samples.collections.Arrays.ContentOperations.contentToString\n */"} {"signature":"@ Deprecated ( \"\" ) @ SinceKotlin ( \"\" ) @ DeprecatedSinceKotlin ( hiddenSince = \"\" ) public fun CharArray . contentToString ( ) : String","body":"{ return this . contentToString ( ) }","docstring":"/**\n * Returns a string representation of the contents of the specified array as if it is [List].\n * \n * @sample samples.collections.Arrays.ContentOperations.contentToString\n */"} {"signature":"@ SinceKotlin ( \"\" ) public actual fun < T > Array < out T > ? . contentToString ( ) : String","body":"{ return this ? . joinToString ( \"\" , \"\" , \"\" ) ? : \"\" }","docstring":"/**\n * Returns a string representation of the contents of the specified array as if it is [List].\n * \n * @sample samples.collections.Arrays.ContentOperations.contentToString\n */"} {"signature":"@ SinceKotlin ( \"\" ) public actual fun ByteArray ? . contentToString ( ) : String","body":"{ return this ? . joinToString ( \"\" , \"\" , \"\" ) ? : \"\" }","docstring":"/**\n * Returns a string representation of the contents of the specified array as if it is [List].\n * \n * @sample samples.collections.Arrays.ContentOperations.contentToString\n */"} {"signature":"@ SinceKotlin ( \"\" ) public actual fun ShortArray ? . contentToString ( ) : String","body":"{ return this ? . joinToString ( \"\" , \"\" , \"\" ) ? : \"\" }","docstring":"/**\n * Returns a string representation of the contents of the specified array as if it is [List].\n * \n * @sample samples.collections.Arrays.ContentOperations.contentToString\n */"} {"signature":"@ SinceKotlin ( \"\" ) public actual fun IntArray ? . contentToString ( ) : String","body":"{ return this ? . joinToString ( \"\" , \"\" , \"\" ) ? : \"\" }","docstring":"/**\n * Returns a string representation of the contents of the specified array as if it is [List].\n * \n * @sample samples.collections.Arrays.ContentOperations.contentToString\n */"} {"signature":"@ SinceKotlin ( \"\" ) public actual fun LongArray ? . contentToString ( ) : String","body":"{ return this ? . joinToString ( \"\" , \"\" , \"\" ) ? : \"\" }","docstring":"/**\n * Returns a string representation of the contents of the specified array as if it is [List].\n * \n * @sample samples.collections.Arrays.ContentOperations.contentToString\n */"} {"signature":"@ SinceKotlin ( \"\" ) public actual fun FloatArray ? . contentToString ( ) : String","body":"{ return this ? . joinToString ( \"\" , \"\" , \"\" ) ? : \"\" }","docstring":"/**\n * Returns a string representation of the contents of the specified array as if it is [List].\n * \n * @sample samples.collections.Arrays.ContentOperations.contentToString\n */"} {"signature":"@ SinceKotlin ( \"\" ) public actual fun DoubleArray ? . contentToString ( ) : String","body":"{ return this ? . joinToString ( \"\" , \"\" , \"\" ) ? : \"\" }","docstring":"/**\n * Returns a string representation of the contents of the specified array as if it is [List].\n * \n * @sample samples.collections.Arrays.ContentOperations.contentToString\n */"} {"signature":"@ SinceKotlin ( \"\" ) public actual fun BooleanArray ? . contentToString ( ) : String","body":"{ return this ? . joinToString ( \"\" , \"\" , \"\" ) ? : \"\" }","docstring":"/**\n * Returns a string representation of the contents of the specified array as if it is [List].\n * \n * @sample samples.collections.Arrays.ContentOperations.contentToString\n */"} {"signature":"@ SinceKotlin ( \"\" ) public actual fun CharArray ? . contentToString ( ) : String","body":"{ return this ? . joinToString ( \"\" , \"\" , \"\" ) ? : \"\" }","docstring":"/**\n * Returns a string representation of the contents of the specified array as if it is [List].\n * \n * @sample samples.collections.Arrays.ContentOperations.contentToString\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ Suppress ( \"\" ) public actual fun < T > Array < out T > . copyInto ( destination : Array < T > , destinationOffset : Int = , startIndex : Int = , endIndex : Int = size ) : Array < T >","body":"{ @ Suppress ( \"\" ) arrayCopy ( this as Array < Any ? > , startIndex , destination as Array < Any ? > , destinationOffset , endIndex - startIndex ) return destination }","docstring":"/**\n * Copies this array or its subrange into the [destination] array and returns that array.\n * \n * It's allowed to pass the same array in the [destination] and even specify the subrange so that it overlaps with the destination range.\n * \n * @param destination the array to copy to.\n * @param destinationOffset the position in the [destination] array to copy to, 0 by default.\n * @param startIndex the beginning (inclusive) of the subrange to copy, 0 by default.\n * @param endIndex the end (exclusive) of the subrange to copy, size of this array by default.\n * \n * @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of this array indices or when `startIndex > endIndex`.\n * @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationOffset],\n * or when that index is out of the [destination] array indices range.\n * \n * @return the [destination] array.\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ Suppress ( \"\" ) public actual fun ByteArray . copyInto ( destination : ByteArray , destinationOffset : Int = , startIndex : Int = , endIndex : Int = size ) : ByteArray","body":"{ arrayCopy ( this , startIndex , destination , destinationOffset , endIndex - startIndex ) return destination }","docstring":"/**\n * Copies this array or its subrange into the [destination] array and returns that array.\n * \n * It's allowed to pass the same array in the [destination] and even specify the subrange so that it overlaps with the destination range.\n * \n * @param destination the array to copy to.\n * @param destinationOffset the position in the [destination] array to copy to, 0 by default.\n * @param startIndex the beginning (inclusive) of the subrange to copy, 0 by default.\n * @param endIndex the end (exclusive) of the subrange to copy, size of this array by default.\n * \n * @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of this array indices or when `startIndex > endIndex`.\n * @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationOffset],\n * or when that index is out of the [destination] array indices range.\n * \n * @return the [destination] array.\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ Suppress ( \"\" ) public actual fun ShortArray . copyInto ( destination : ShortArray , destinationOffset : Int = , startIndex : Int = , endIndex : Int = size ) : ShortArray","body":"{ arrayCopy ( this , startIndex , destination , destinationOffset , endIndex - startIndex ) return destination }","docstring":"/**\n * Copies this array or its subrange into the [destination] array and returns that array.\n * \n * It's allowed to pass the same array in the [destination] and even specify the subrange so that it overlaps with the destination range.\n * \n * @param destination the array to copy to.\n * @param destinationOffset the position in the [destination] array to copy to, 0 by default.\n * @param startIndex the beginning (inclusive) of the subrange to copy, 0 by default.\n * @param endIndex the end (exclusive) of the subrange to copy, size of this array by default.\n * \n * @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of this array indices or when `startIndex > endIndex`.\n * @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationOffset],\n * or when that index is out of the [destination] array indices range.\n * \n * @return the [destination] array.\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ Suppress ( \"\" ) public actual fun IntArray . copyInto ( destination : IntArray , destinationOffset : Int = , startIndex : Int = , endIndex : Int = size ) : IntArray","body":"{ arrayCopy ( this , startIndex , destination , destinationOffset , endIndex - startIndex ) return destination }","docstring":"/**\n * Copies this array or its subrange into the [destination] array and returns that array.\n * \n * It's allowed to pass the same array in the [destination] and even specify the subrange so that it overlaps with the destination range.\n * \n * @param destination the array to copy to.\n * @param destinationOffset the position in the [destination] array to copy to, 0 by default.\n * @param startIndex the beginning (inclusive) of the subrange to copy, 0 by default.\n * @param endIndex the end (exclusive) of the subrange to copy, size of this array by default.\n * \n * @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of this array indices or when `startIndex > endIndex`.\n * @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationOffset],\n * or when that index is out of the [destination] array indices range.\n * \n * @return the [destination] array.\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ Suppress ( \"\" ) public actual fun LongArray . copyInto ( destination : LongArray , destinationOffset : Int = , startIndex : Int = , endIndex : Int = size ) : LongArray","body":"{ arrayCopy ( this , startIndex , destination , destinationOffset , endIndex - startIndex ) return destination }","docstring":"/**\n * Copies this array or its subrange into the [destination] array and returns that array.\n * \n * It's allowed to pass the same array in the [destination] and even specify the subrange so that it overlaps with the destination range.\n * \n * @param destination the array to copy to.\n * @param destinationOffset the position in the [destination] array to copy to, 0 by default.\n * @param startIndex the beginning (inclusive) of the subrange to copy, 0 by default.\n * @param endIndex the end (exclusive) of the subrange to copy, size of this array by default.\n * \n * @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of this array indices or when `startIndex > endIndex`.\n * @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationOffset],\n * or when that index is out of the [destination] array indices range.\n * \n * @return the [destination] array.\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ Suppress ( \"\" ) public actual fun FloatArray . copyInto ( destination : FloatArray , destinationOffset : Int = , startIndex : Int = , endIndex : Int = size ) : FloatArray","body":"{ arrayCopy ( this , startIndex , destination , destinationOffset , endIndex - startIndex ) return destination }","docstring":"/**\n * Copies this array or its subrange into the [destination] array and returns that array.\n * \n * It's allowed to pass the same array in the [destination] and even specify the subrange so that it overlaps with the destination range.\n * \n * @param destination the array to copy to.\n * @param destinationOffset the position in the [destination] array to copy to, 0 by default.\n * @param startIndex the beginning (inclusive) of the subrange to copy, 0 by default.\n * @param endIndex the end (exclusive) of the subrange to copy, size of this array by default.\n * \n * @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of this array indices or when `startIndex > endIndex`.\n * @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationOffset],\n * or when that index is out of the [destination] array indices range.\n * \n * @return the [destination] array.\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ Suppress ( \"\" ) public actual fun DoubleArray . copyInto ( destination : DoubleArray , destinationOffset : Int = , startIndex : Int = , endIndex : Int = size ) : DoubleArray","body":"{ arrayCopy ( this , startIndex , destination , destinationOffset , endIndex - startIndex ) return destination }","docstring":"/**\n * Copies this array or its subrange into the [destination] array and returns that array.\n * \n * It's allowed to pass the same array in the [destination] and even specify the subrange so that it overlaps with the destination range.\n * \n * @param destination the array to copy to.\n * @param destinationOffset the position in the [destination] array to copy to, 0 by default.\n * @param startIndex the beginning (inclusive) of the subrange to copy, 0 by default.\n * @param endIndex the end (exclusive) of the subrange to copy, size of this array by default.\n * \n * @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of this array indices or when `startIndex > endIndex`.\n * @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationOffset],\n * or when that index is out of the [destination] array indices range.\n * \n * @return the [destination] array.\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ Suppress ( \"\" ) public actual fun BooleanArray . copyInto ( destination : BooleanArray , destinationOffset : Int = , startIndex : Int = , endIndex : Int = size ) : BooleanArray","body":"{ arrayCopy ( this , startIndex , destination , destinationOffset , endIndex - startIndex ) return destination }","docstring":"/**\n * Copies this array or its subrange into the [destination] array and returns that array.\n * \n * It's allowed to pass the same array in the [destination] and even specify the subrange so that it overlaps with the destination range.\n * \n * @param destination the array to copy to.\n * @param destinationOffset the position in the [destination] array to copy to, 0 by default.\n * @param startIndex the beginning (inclusive) of the subrange to copy, 0 by default.\n * @param endIndex the end (exclusive) of the subrange to copy, size of this array by default.\n * \n * @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of this array indices or when `startIndex > endIndex`.\n * @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationOffset],\n * or when that index is out of the [destination] array indices range.\n * \n * @return the [destination] array.\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ Suppress ( \"\" ) public actual fun CharArray . copyInto ( destination : CharArray , destinationOffset : Int = , startIndex : Int = , endIndex : Int = size ) : CharArray","body":"{ arrayCopy ( this , startIndex , destination , destinationOffset , endIndex - startIndex ) return destination }","docstring":"/**\n * Copies this array or its subrange into the [destination] array and returns that array.\n * \n * It's allowed to pass the same array in the [destination] and even specify the subrange so that it overlaps with the destination range.\n * \n * @param destination the array to copy to.\n * @param destinationOffset the position in the [destination] array to copy to, 0 by default.\n * @param startIndex the beginning (inclusive) of the subrange to copy, 0 by default.\n * @param endIndex the end (exclusive) of the subrange to copy, size of this array by default.\n * \n * @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of this array indices or when `startIndex > endIndex`.\n * @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationOffset],\n * or when that index is out of the [destination] array indices range.\n * \n * @return the [destination] array.\n */"} {"signature":"public actual fun < T > Array < T > . copyOf ( ) : Array < T >","body":"{ return this . copyOfUninitializedElements ( size ) }","docstring":"/**\n * Returns new array which is a copy of the original array.\n * \n * @sample samples.collections.Arrays.CopyOfOperations.copyOf\n */"} {"signature":"public actual fun ByteArray . copyOf ( ) : ByteArray","body":"{ return this . copyOfUninitializedElements ( size ) }","docstring":"/**\n * Returns new array which is a copy of the original array.\n * \n * @sample samples.collections.Arrays.CopyOfOperations.copyOf\n */"} {"signature":"public actual fun ShortArray . copyOf ( ) : ShortArray","body":"{ return this . copyOfUninitializedElements ( size ) }","docstring":"/**\n * Returns new array which is a copy of the original array.\n * \n * @sample samples.collections.Arrays.CopyOfOperations.copyOf\n */"} {"signature":"public actual fun IntArray . copyOf ( ) : IntArray","body":"{ return this . copyOfUninitializedElements ( size ) }","docstring":"/**\n * Returns new array which is a copy of the original array.\n * \n * @sample samples.collections.Arrays.CopyOfOperations.copyOf\n */"} {"signature":"public actual fun LongArray . copyOf ( ) : LongArray","body":"{ return this . copyOfUninitializedElements ( size ) }","docstring":"/**\n * Returns new array which is a copy of the original array.\n * \n * @sample samples.collections.Arrays.CopyOfOperations.copyOf\n */"} {"signature":"public actual fun FloatArray . copyOf ( ) : FloatArray","body":"{ return this . copyOfUninitializedElements ( size ) }","docstring":"/**\n * Returns new array which is a copy of the original array.\n * \n * @sample samples.collections.Arrays.CopyOfOperations.copyOf\n */"} {"signature":"public actual fun DoubleArray . copyOf ( ) : DoubleArray","body":"{ return this . copyOfUninitializedElements ( size ) }","docstring":"/**\n * Returns new array which is a copy of the original array.\n * \n * @sample samples.collections.Arrays.CopyOfOperations.copyOf\n */"} {"signature":"public actual fun BooleanArray . copyOf ( ) : BooleanArray","body":"{ return this . copyOfUninitializedElements ( size ) }","docstring":"/**\n * Returns new array which is a copy of the original array.\n * \n * @sample samples.collections.Arrays.CopyOfOperations.copyOf\n */"} {"signature":"public actual fun CharArray . copyOf ( ) : CharArray","body":"{ return this . copyOfUninitializedElements ( size ) }","docstring":"/**\n * Returns new array which is a copy of the original array.\n * \n * @sample samples.collections.Arrays.CopyOfOperations.copyOf\n */"} {"signature":"public actual fun ByteArray . copyOf ( newSize : Int ) : ByteArray","body":"{ return this . copyOfUninitializedElements ( newSize ) }","docstring":"/**\n * Returns new array which is a copy of the original array, resized to the given [newSize].\n * The copy is either truncated or padded at the end with zero values if necessary.\n * \n * - If [newSize] is less than the size of the original array, the copy array is truncated to the [newSize].\n * - If [newSize] is greater than the size of the original array, the extra elements in the copy array are filled with zero values.\n * \n * @sample samples.collections.Arrays.CopyOfOperations.resizedPrimitiveCopyOf\n */"} {"signature":"public actual fun ShortArray . copyOf ( newSize : Int ) : ShortArray","body":"{ return this . copyOfUninitializedElements ( newSize ) }","docstring":"/**\n * Returns new array which is a copy of the original array, resized to the given [newSize].\n * The copy is either truncated or padded at the end with zero values if necessary.\n * \n * - If [newSize] is less than the size of the original array, the copy array is truncated to the [newSize].\n * - If [newSize] is greater than the size of the original array, the extra elements in the copy array are filled with zero values.\n * \n * @sample samples.collections.Arrays.CopyOfOperations.resizedPrimitiveCopyOf\n */"} {"signature":"public actual fun IntArray . copyOf ( newSize : Int ) : IntArray","body":"{ return this . copyOfUninitializedElements ( newSize ) }","docstring":"/**\n * Returns new array which is a copy of the original array, resized to the given [newSize].\n * The copy is either truncated or padded at the end with zero values if necessary.\n * \n * - If [newSize] is less than the size of the original array, the copy array is truncated to the [newSize].\n * - If [newSize] is greater than the size of the original array, the extra elements in the copy array are filled with zero values.\n * \n * @sample samples.collections.Arrays.CopyOfOperations.resizedPrimitiveCopyOf\n */"} {"signature":"public actual fun LongArray . copyOf ( newSize : Int ) : LongArray","body":"{ return this . copyOfUninitializedElements ( newSize ) }","docstring":"/**\n * Returns new array which is a copy of the original array, resized to the given [newSize].\n * The copy is either truncated or padded at the end with zero values if necessary.\n * \n * - If [newSize] is less than the size of the original array, the copy array is truncated to the [newSize].\n * - If [newSize] is greater than the size of the original array, the extra elements in the copy array are filled with zero values.\n * \n * @sample samples.collections.Arrays.CopyOfOperations.resizedPrimitiveCopyOf\n */"} {"signature":"public actual fun FloatArray . copyOf ( newSize : Int ) : FloatArray","body":"{ return this . copyOfUninitializedElements ( newSize ) }","docstring":"/**\n * Returns new array which is a copy of the original array, resized to the given [newSize].\n * The copy is either truncated or padded at the end with zero values if necessary.\n * \n * - If [newSize] is less than the size of the original array, the copy array is truncated to the [newSize].\n * - If [newSize] is greater than the size of the original array, the extra elements in the copy array are filled with zero values.\n * \n * @sample samples.collections.Arrays.CopyOfOperations.resizedPrimitiveCopyOf\n */"} {"signature":"public actual fun DoubleArray . copyOf ( newSize : Int ) : DoubleArray","body":"{ return this . copyOfUninitializedElements ( newSize ) }","docstring":"/**\n * Returns new array which is a copy of the original array, resized to the given [newSize].\n * The copy is either truncated or padded at the end with zero values if necessary.\n * \n * - If [newSize] is less than the size of the original array, the copy array is truncated to the [newSize].\n * - If [newSize] is greater than the size of the original array, the extra elements in the copy array are filled with zero values.\n * \n * @sample samples.collections.Arrays.CopyOfOperations.resizedPrimitiveCopyOf\n */"} {"signature":"public actual fun BooleanArray . copyOf ( newSize : Int ) : BooleanArray","body":"{ return this . copyOfUninitializedElements ( newSize ) }","docstring":"/**\n * Returns new array which is a copy of the original array, resized to the given [newSize].\n * The copy is either truncated or padded at the end with `false` values if necessary.\n * \n * - If [newSize] is less than the size of the original array, the copy array is truncated to the [newSize].\n * - If [newSize] is greater than the size of the original array, the extra elements in the copy array are filled with `false` values.\n * \n * @sample samples.collections.Arrays.CopyOfOperations.resizedPrimitiveCopyOf\n */"} {"signature":"public actual fun CharArray . copyOf ( newSize : Int ) : CharArray","body":"{ return this . copyOfUninitializedElements ( newSize ) }","docstring":"/**\n * Returns new array which is a copy of the original array, resized to the given [newSize].\n * The copy is either truncated or padded at the end with null char (`\\u0000`) values if necessary.\n * \n * - If [newSize] is less than the size of the original array, the copy array is truncated to the [newSize].\n * - If [newSize] is greater than the size of the original array, the extra elements in the copy array are filled with null char (`\\u0000`) values.\n * \n * @sample samples.collections.Arrays.CopyOfOperations.resizedPrimitiveCopyOf\n */"} {"signature":"public actual fun < T > Array < T > . copyOf ( newSize : Int ) : Array < T ? >","body":"{ return this . copyOfNulls ( newSize ) }","docstring":"/**\n * Returns new array which is a copy of the original array, resized to the given [newSize].\n * The copy is either truncated or padded at the end with `null` values if necessary.\n * \n * - If [newSize] is less than the size of the original array, the copy array is truncated to the [newSize].\n * - If [newSize] is greater than the size of the original array, the extra elements in the copy array are filled with `null` values.\n * \n * @sample samples.collections.Arrays.CopyOfOperations.resizingCopyOf\n */"} {"signature":"public actual fun < T > Array < T > . copyOfRange ( fromIndex : Int , toIndex : Int ) : Array < T >","body":"{ checkCopyOfRangeArguments ( fromIndex , toIndex , size ) return copyOfUninitializedElements ( fromIndex , toIndex ) }","docstring":"/**\n * Returns a new array which is a copy of the specified range of the original array.\n * \n * @param fromIndex the start of the range (inclusive) to copy.\n * @param toIndex the end of the range (exclusive) to copy.\n * \n * @throws IndexOutOfBoundsException if [fromIndex] is less than zero or [toIndex] is greater than the size of this array.\n * @throws IllegalArgumentException if [fromIndex] is greater than [toIndex].\n */"} {"signature":"public actual fun ByteArray . copyOfRange ( fromIndex : Int , toIndex : Int ) : ByteArray","body":"{ checkCopyOfRangeArguments ( fromIndex , toIndex , size ) return copyOfUninitializedElements ( fromIndex , toIndex ) }","docstring":"/**\n * Returns a new array which is a copy of the specified range of the original array.\n * \n * @param fromIndex the start of the range (inclusive) to copy.\n * @param toIndex the end of the range (exclusive) to copy.\n * \n * @throws IndexOutOfBoundsException if [fromIndex] is less than zero or [toIndex] is greater than the size of this array.\n * @throws IllegalArgumentException if [fromIndex] is greater than [toIndex].\n */"} {"signature":"public actual fun ShortArray . copyOfRange ( fromIndex : Int , toIndex : Int ) : ShortArray","body":"{ checkCopyOfRangeArguments ( fromIndex , toIndex , size ) return copyOfUninitializedElements ( fromIndex , toIndex ) }","docstring":"/**\n * Returns a new array which is a copy of the specified range of the original array.\n * \n * @param fromIndex the start of the range (inclusive) to copy.\n * @param toIndex the end of the range (exclusive) to copy.\n * \n * @throws IndexOutOfBoundsException if [fromIndex] is less than zero or [toIndex] is greater than the size of this array.\n * @throws IllegalArgumentException if [fromIndex] is greater than [toIndex].\n */"} {"signature":"public actual fun IntArray . copyOfRange ( fromIndex : Int , toIndex : Int ) : IntArray","body":"{ checkCopyOfRangeArguments ( fromIndex , toIndex , size ) return copyOfUninitializedElements ( fromIndex , toIndex ) }","docstring":"/**\n * Returns a new array which is a copy of the specified range of the original array.\n * \n * @param fromIndex the start of the range (inclusive) to copy.\n * @param toIndex the end of the range (exclusive) to copy.\n * \n * @throws IndexOutOfBoundsException if [fromIndex] is less than zero or [toIndex] is greater than the size of this array.\n * @throws IllegalArgumentException if [fromIndex] is greater than [toIndex].\n */"} {"signature":"public actual fun LongArray . copyOfRange ( fromIndex : Int , toIndex : Int ) : LongArray","body":"{ checkCopyOfRangeArguments ( fromIndex , toIndex , size ) return copyOfUninitializedElements ( fromIndex , toIndex ) }","docstring":"/**\n * Returns a new array which is a copy of the specified range of the original array.\n * \n * @param fromIndex the start of the range (inclusive) to copy.\n * @param toIndex the end of the range (exclusive) to copy.\n * \n * @throws IndexOutOfBoundsException if [fromIndex] is less than zero or [toIndex] is greater than the size of this array.\n * @throws IllegalArgumentException if [fromIndex] is greater than [toIndex].\n */"} {"signature":"public actual fun FloatArray . copyOfRange ( fromIndex : Int , toIndex : Int ) : FloatArray","body":"{ checkCopyOfRangeArguments ( fromIndex , toIndex , size ) return copyOfUninitializedElements ( fromIndex , toIndex ) }","docstring":"/**\n * Returns a new array which is a copy of the specified range of the original array.\n * \n * @param fromIndex the start of the range (inclusive) to copy.\n * @param toIndex the end of the range (exclusive) to copy.\n * \n * @throws IndexOutOfBoundsException if [fromIndex] is less than zero or [toIndex] is greater than the size of this array.\n * @throws IllegalArgumentException if [fromIndex] is greater than [toIndex].\n */"} {"signature":"public actual fun DoubleArray . copyOfRange ( fromIndex : Int , toIndex : Int ) : DoubleArray","body":"{ checkCopyOfRangeArguments ( fromIndex , toIndex , size ) return copyOfUninitializedElements ( fromIndex , toIndex ) }","docstring":"/**\n * Returns a new array which is a copy of the specified range of the original array.\n * \n * @param fromIndex the start of the range (inclusive) to copy.\n * @param toIndex the end of the range (exclusive) to copy.\n * \n * @throws IndexOutOfBoundsException if [fromIndex] is less than zero or [toIndex] is greater than the size of this array.\n * @throws IllegalArgumentException if [fromIndex] is greater than [toIndex].\n */"} {"signature":"public actual fun BooleanArray . copyOfRange ( fromIndex : Int , toIndex : Int ) : BooleanArray","body":"{ checkCopyOfRangeArguments ( fromIndex , toIndex , size ) return copyOfUninitializedElements ( fromIndex , toIndex ) }","docstring":"/**\n * Returns a new array which is a copy of the specified range of the original array.\n * \n * @param fromIndex the start of the range (inclusive) to copy.\n * @param toIndex the end of the range (exclusive) to copy.\n * \n * @throws IndexOutOfBoundsException if [fromIndex] is less than zero or [toIndex] is greater than the size of this array.\n * @throws IllegalArgumentException if [fromIndex] is greater than [toIndex].\n */"} {"signature":"public actual fun CharArray . copyOfRange ( fromIndex : Int , toIndex : Int ) : CharArray","body":"{ checkCopyOfRangeArguments ( fromIndex , toIndex , size ) return copyOfUninitializedElements ( fromIndex , toIndex ) }","docstring":"/**\n * Returns a new array which is a copy of the specified range of the original array.\n * \n * @param fromIndex the start of the range (inclusive) to copy.\n * @param toIndex the end of the range (exclusive) to copy.\n * \n * @throws IndexOutOfBoundsException if [fromIndex] is less than zero or [toIndex] is greater than the size of this array.\n * @throws IllegalArgumentException if [fromIndex] is greater than [toIndex].\n */"} {"signature":"internal fun < T > Array < T > . copyOfUninitializedElements ( fromIndex : Int , toIndex : Int ) : Array < T >","body":"{ val newSize = toIndex - fromIndex if ( newSize < ) { throw IllegalArgumentException ( \"\" ) } val result = arrayOfUninitializedElements < T > ( newSize ) this . copyInto ( result , , fromIndex , toIndex . coerceAtMost ( size ) ) return result }","docstring":"/**\n * Returns new array which is a copy of the original array's range between [fromIndex] (inclusive)\n * and [toIndex] (exclusive) with new elements filled with **lateinit** _uninitialized_ values.\n * Attempts to read _uninitialized_ values from this array work in implementation-dependent manner,\n * either throwing exception or returning some kind of implementation-specific default value.\n */"} {"signature":"internal fun ByteArray . copyOfUninitializedElements ( fromIndex : Int , toIndex : Int ) : ByteArray","body":"{ val newSize = toIndex - fromIndex if ( newSize < ) { throw IllegalArgumentException ( \"\" ) } val result = ByteArray ( newSize ) this . copyInto ( result , , fromIndex , toIndex . coerceAtMost ( size ) ) return result }","docstring":"/**\n * Returns new array which is a copy of the original array's range between [fromIndex] (inclusive)\n * and [toIndex] (exclusive) with new elements filled with **lateinit** _uninitialized_ values.\n * Attempts to read _uninitialized_ values from this array work in implementation-dependent manner,\n * either throwing exception or returning some kind of implementation-specific default value.\n */"} {"signature":"internal fun ShortArray . copyOfUninitializedElements ( fromIndex : Int , toIndex : Int ) : ShortArray","body":"{ val newSize = toIndex - fromIndex if ( newSize < ) { throw IllegalArgumentException ( \"\" ) } val result = ShortArray ( newSize ) this . copyInto ( result , , fromIndex , toIndex . coerceAtMost ( size ) ) return result }","docstring":"/**\n * Returns new array which is a copy of the original array's range between [fromIndex] (inclusive)\n * and [toIndex] (exclusive) with new elements filled with **lateinit** _uninitialized_ values.\n * Attempts to read _uninitialized_ values from this array work in implementation-dependent manner,\n * either throwing exception or returning some kind of implementation-specific default value.\n */"} {"signature":"internal fun IntArray . copyOfUninitializedElements ( fromIndex : Int , toIndex : Int ) : IntArray","body":"{ val newSize = toIndex - fromIndex if ( newSize < ) { throw IllegalArgumentException ( \"\" ) } val result = IntArray ( newSize ) this . copyInto ( result , , fromIndex , toIndex . coerceAtMost ( size ) ) return result }","docstring":"/**\n * Returns new array which is a copy of the original array's range between [fromIndex] (inclusive)\n * and [toIndex] (exclusive) with new elements filled with **lateinit** _uninitialized_ values.\n * Attempts to read _uninitialized_ values from this array work in implementation-dependent manner,\n * either throwing exception or returning some kind of implementation-specific default value.\n */"} {"signature":"internal fun LongArray . copyOfUninitializedElements ( fromIndex : Int , toIndex : Int ) : LongArray","body":"{ val newSize = toIndex - fromIndex if ( newSize < ) { throw IllegalArgumentException ( \"\" ) } val result = LongArray ( newSize ) this . copyInto ( result , , fromIndex , toIndex . coerceAtMost ( size ) ) return result }","docstring":"/**\n * Returns new array which is a copy of the original array's range between [fromIndex] (inclusive)\n * and [toIndex] (exclusive) with new elements filled with **lateinit** _uninitialized_ values.\n * Attempts to read _uninitialized_ values from this array work in implementation-dependent manner,\n * either throwing exception or returning some kind of implementation-specific default value.\n */"} {"signature":"internal fun FloatArray . copyOfUninitializedElements ( fromIndex : Int , toIndex : Int ) : FloatArray","body":"{ val newSize = toIndex - fromIndex if ( newSize < ) { throw IllegalArgumentException ( \"\" ) } val result = FloatArray ( newSize ) this . copyInto ( result , , fromIndex , toIndex . coerceAtMost ( size ) ) return result }","docstring":"/**\n * Returns new array which is a copy of the original array's range between [fromIndex] (inclusive)\n * and [toIndex] (exclusive) with new elements filled with **lateinit** _uninitialized_ values.\n * Attempts to read _uninitialized_ values from this array work in implementation-dependent manner,\n * either throwing exception or returning some kind of implementation-specific default value.\n */"} {"signature":"internal fun DoubleArray . copyOfUninitializedElements ( fromIndex : Int , toIndex : Int ) : DoubleArray","body":"{ val newSize = toIndex - fromIndex if ( newSize < ) { throw IllegalArgumentException ( \"\" ) } val result = DoubleArray ( newSize ) this . copyInto ( result , , fromIndex , toIndex . coerceAtMost ( size ) ) return result }","docstring":"/**\n * Returns new array which is a copy of the original array's range between [fromIndex] (inclusive)\n * and [toIndex] (exclusive) with new elements filled with **lateinit** _uninitialized_ values.\n * Attempts to read _uninitialized_ values from this array work in implementation-dependent manner,\n * either throwing exception or returning some kind of implementation-specific default value.\n */"} {"signature":"internal fun BooleanArray . copyOfUninitializedElements ( fromIndex : Int , toIndex : Int ) : BooleanArray","body":"{ val newSize = toIndex - fromIndex if ( newSize < ) { throw IllegalArgumentException ( \"\" ) } val result = BooleanArray ( newSize ) this . copyInto ( result , , fromIndex , toIndex . coerceAtMost ( size ) ) return result }","docstring":"/**\n * Returns new array which is a copy of the original array's range between [fromIndex] (inclusive)\n * and [toIndex] (exclusive) with new elements filled with **lateinit** _uninitialized_ values.\n * Attempts to read _uninitialized_ values from this array work in implementation-dependent manner,\n * either throwing exception or returning some kind of implementation-specific default value.\n */"} {"signature":"internal fun CharArray . copyOfUninitializedElements ( fromIndex : Int , toIndex : Int ) : CharArray","body":"{ val newSize = toIndex - fromIndex if ( newSize < ) { throw IllegalArgumentException ( \"\" ) } val result = CharArray ( newSize ) this . copyInto ( result , , fromIndex , toIndex . coerceAtMost ( size ) ) return result }","docstring":"/**\n * Returns new array which is a copy of the original array's range between [fromIndex] (inclusive)\n * and [toIndex] (exclusive) with new elements filled with **lateinit** _uninitialized_ values.\n * Attempts to read _uninitialized_ values from this array work in implementation-dependent manner,\n * either throwing exception or returning some kind of implementation-specific default value.\n */"} {"signature":"internal fun < T > Array < T > . copyOfUninitializedElements ( newSize : Int ) : Array < T >","body":"{ return copyOfUninitializedElements ( , newSize ) }","docstring":"/**\n * Returns new array which is a copy of the original array with new elements filled with **lateinit** _uninitialized_ values.\n * Attempts to read _uninitialized_ values from this array work in implementation-dependent manner,\n * either throwing exception or returning some kind of implementation-specific default value.\n */"} {"signature":"internal fun ByteArray . copyOfUninitializedElements ( newSize : Int ) : ByteArray","body":"{ return copyOfUninitializedElements ( , newSize ) }","docstring":"/**\n * Returns new array which is a copy of the original array with new elements filled with **lateinit** _uninitialized_ values.\n * Attempts to read _uninitialized_ values from this array work in implementation-dependent manner,\n * either throwing exception or returning some kind of implementation-specific default value.\n */"} {"signature":"internal fun ShortArray . copyOfUninitializedElements ( newSize : Int ) : ShortArray","body":"{ return copyOfUninitializedElements ( , newSize ) }","docstring":"/**\n * Returns new array which is a copy of the original array with new elements filled with **lateinit** _uninitialized_ values.\n * Attempts to read _uninitialized_ values from this array work in implementation-dependent manner,\n * either throwing exception or returning some kind of implementation-specific default value.\n */"} {"signature":"internal fun IntArray . copyOfUninitializedElements ( newSize : Int ) : IntArray","body":"{ return copyOfUninitializedElements ( , newSize ) }","docstring":"/**\n * Returns new array which is a copy of the original array with new elements filled with **lateinit** _uninitialized_ values.\n * Attempts to read _uninitialized_ values from this array work in implementation-dependent manner,\n * either throwing exception or returning some kind of implementation-specific default value.\n */"} {"signature":"internal fun LongArray . copyOfUninitializedElements ( newSize : Int ) : LongArray","body":"{ return copyOfUninitializedElements ( , newSize ) }","docstring":"/**\n * Returns new array which is a copy of the original array with new elements filled with **lateinit** _uninitialized_ values.\n * Attempts to read _uninitialized_ values from this array work in implementation-dependent manner,\n * either throwing exception or returning some kind of implementation-specific default value.\n */"} {"signature":"internal fun FloatArray . copyOfUninitializedElements ( newSize : Int ) : FloatArray","body":"{ return copyOfUninitializedElements ( , newSize ) }","docstring":"/**\n * Returns new array which is a copy of the original array with new elements filled with **lateinit** _uninitialized_ values.\n * Attempts to read _uninitialized_ values from this array work in implementation-dependent manner,\n * either throwing exception or returning some kind of implementation-specific default value.\n */"} {"signature":"internal fun DoubleArray . copyOfUninitializedElements ( newSize : Int ) : DoubleArray","body":"{ return copyOfUninitializedElements ( , newSize ) }","docstring":"/**\n * Returns new array which is a copy of the original array with new elements filled with **lateinit** _uninitialized_ values.\n * Attempts to read _uninitialized_ values from this array work in implementation-dependent manner,\n * either throwing exception or returning some kind of implementation-specific default value.\n */"} {"signature":"internal fun BooleanArray . copyOfUninitializedElements ( newSize : Int ) : BooleanArray","body":"{ return copyOfUninitializedElements ( , newSize ) }","docstring":"/**\n * Returns new array which is a copy of the original array with new elements filled with **lateinit** _uninitialized_ values.\n * Attempts to read _uninitialized_ values from this array work in implementation-dependent manner,\n * either throwing exception or returning some kind of implementation-specific default value.\n */"} {"signature":"internal fun CharArray . copyOfUninitializedElements ( newSize : Int ) : CharArray","body":"{ return copyOfUninitializedElements ( , newSize ) }","docstring":"/**\n * Returns new array which is a copy of the original array with new elements filled with **lateinit** _uninitialized_ values.\n * Attempts to read _uninitialized_ values from this array work in implementation-dependent manner,\n * either throwing exception or returning some kind of implementation-specific default value.\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ Suppress ( \"\" ) public actual fun < T > Array < T > . fill ( element : T , fromIndex : Int = , toIndex : Int = size ) : Unit","body":"{ arrayFill ( this , fromIndex , toIndex , element ) }","docstring":"/**\n * Fills this array or its subrange with the specified [element] value.\n * \n * @param fromIndex the start of the range (inclusive) to fill, 0 by default.\n * @param toIndex the end of the range (exclusive) to fill, size of this array by default.\n * \n * @throws IndexOutOfBoundsException if [fromIndex] is less than zero or [toIndex] is greater than the size of this array.\n * @throws IllegalArgumentException if [fromIndex] is greater than [toIndex].\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ Suppress ( \"\" ) public actual fun ByteArray . fill ( element : Byte , fromIndex : Int = , toIndex : Int = size ) : Unit","body":"{ arrayFill ( this , fromIndex , toIndex , element ) }","docstring":"/**\n * Fills this array or its subrange with the specified [element] value.\n * \n * @param fromIndex the start of the range (inclusive) to fill, 0 by default.\n * @param toIndex the end of the range (exclusive) to fill, size of this array by default.\n * \n * @throws IndexOutOfBoundsException if [fromIndex] is less than zero or [toIndex] is greater than the size of this array.\n * @throws IllegalArgumentException if [fromIndex] is greater than [toIndex].\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ Suppress ( \"\" ) public actual fun ShortArray . fill ( element : Short , fromIndex : Int = , toIndex : Int = size ) : Unit","body":"{ arrayFill ( this , fromIndex , toIndex , element ) }","docstring":"/**\n * Fills this array or its subrange with the specified [element] value.\n * \n * @param fromIndex the start of the range (inclusive) to fill, 0 by default.\n * @param toIndex the end of the range (exclusive) to fill, size of this array by default.\n * \n * @throws IndexOutOfBoundsException if [fromIndex] is less than zero or [toIndex] is greater than the size of this array.\n * @throws IllegalArgumentException if [fromIndex] is greater than [toIndex].\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ Suppress ( \"\" ) public actual fun IntArray . fill ( element : Int , fromIndex : Int = , toIndex : Int = size ) : Unit","body":"{ arrayFill ( this , fromIndex , toIndex , element ) }","docstring":"/**\n * Fills this array or its subrange with the specified [element] value.\n * \n * @param fromIndex the start of the range (inclusive) to fill, 0 by default.\n * @param toIndex the end of the range (exclusive) to fill, size of this array by default.\n * \n * @throws IndexOutOfBoundsException if [fromIndex] is less than zero or [toIndex] is greater than the size of this array.\n * @throws IllegalArgumentException if [fromIndex] is greater than [toIndex].\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ Suppress ( \"\" ) public actual fun LongArray . fill ( element : Long , fromIndex : Int = , toIndex : Int = size ) : Unit","body":"{ arrayFill ( this , fromIndex , toIndex , element ) }","docstring":"/**\n * Fills this array or its subrange with the specified [element] value.\n * \n * @param fromIndex the start of the range (inclusive) to fill, 0 by default.\n * @param toIndex the end of the range (exclusive) to fill, size of this array by default.\n * \n * @throws IndexOutOfBoundsException if [fromIndex] is less than zero or [toIndex] is greater than the size of this array.\n * @throws IllegalArgumentException if [fromIndex] is greater than [toIndex].\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ Suppress ( \"\" ) public actual fun FloatArray . fill ( element : Float , fromIndex : Int = , toIndex : Int = size ) : Unit","body":"{ arrayFill ( this , fromIndex , toIndex , element ) }","docstring":"/**\n * Fills this array or its subrange with the specified [element] value.\n * \n * @param fromIndex the start of the range (inclusive) to fill, 0 by default.\n * @param toIndex the end of the range (exclusive) to fill, size of this array by default.\n * \n * @throws IndexOutOfBoundsException if [fromIndex] is less than zero or [toIndex] is greater than the size of this array.\n * @throws IllegalArgumentException if [fromIndex] is greater than [toIndex].\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ Suppress ( \"\" ) public actual fun DoubleArray . fill ( element : Double , fromIndex : Int = , toIndex : Int = size ) : Unit","body":"{ arrayFill ( this , fromIndex , toIndex , element ) }","docstring":"/**\n * Fills this array or its subrange with the specified [element] value.\n * \n * @param fromIndex the start of the range (inclusive) to fill, 0 by default.\n * @param toIndex the end of the range (exclusive) to fill, size of this array by default.\n * \n * @throws IndexOutOfBoundsException if [fromIndex] is less than zero or [toIndex] is greater than the size of this array.\n * @throws IllegalArgumentException if [fromIndex] is greater than [toIndex].\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ Suppress ( \"\" ) public actual fun BooleanArray . fill ( element : Boolean , fromIndex : Int = , toIndex : Int = size ) : Unit","body":"{ arrayFill ( this , fromIndex , toIndex , element ) }","docstring":"/**\n * Fills this array or its subrange with the specified [element] value.\n * \n * @param fromIndex the start of the range (inclusive) to fill, 0 by default.\n * @param toIndex the end of the range (exclusive) to fill, size of this array by default.\n * \n * @throws IndexOutOfBoundsException if [fromIndex] is less than zero or [toIndex] is greater than the size of this array.\n * @throws IllegalArgumentException if [fromIndex] is greater than [toIndex].\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ Suppress ( \"\" ) public actual fun CharArray . fill ( element : Char , fromIndex : Int = , toIndex : Int = size ) : Unit","body":"{ arrayFill ( this , fromIndex , toIndex , element ) }","docstring":"/**\n * Fills this array or its subrange with the specified [element] value.\n * \n * @param fromIndex the start of the range (inclusive) to fill, 0 by default.\n * @param toIndex the end of the range (exclusive) to fill, size of this array by default.\n * \n * @throws IndexOutOfBoundsException if [fromIndex] is less than zero or [toIndex] is greater than the size of this array.\n * @throws IllegalArgumentException if [fromIndex] is greater than [toIndex].\n */"} {"signature":"public actual operator fun < T > Array < T > . plus ( element : T ) : Array < T >","body":"{ val index = size val result = copyOfUninitializedElements ( index + ) result [ index ] = element return result }","docstring":"/**\n * Returns an array containing all elements of the original array and then the given [element].\n */"} {"signature":"public actual operator fun ByteArray . plus ( element : Byte ) : ByteArray","body":"{ val index = size val result = copyOfUninitializedElements ( index + ) result [ index ] = element return result }","docstring":"/**\n * Returns an array containing all elements of the original array and then the given [element].\n */"} {"signature":"public actual operator fun ShortArray . plus ( element : Short ) : ShortArray","body":"{ val index = size val result = copyOfUninitializedElements ( index + ) result [ index ] = element return result }","docstring":"/**\n * Returns an array containing all elements of the original array and then the given [element].\n */"} {"signature":"public actual operator fun IntArray . plus ( element : Int ) : IntArray","body":"{ val index = size val result = copyOfUninitializedElements ( index + ) result [ index ] = element return result }","docstring":"/**\n * Returns an array containing all elements of the original array and then the given [element].\n */"} {"signature":"public actual operator fun LongArray . plus ( element : Long ) : LongArray","body":"{ val index = size val result = copyOfUninitializedElements ( index + ) result [ index ] = element return result }","docstring":"/**\n * Returns an array containing all elements of the original array and then the given [element].\n */"} {"signature":"public actual operator fun FloatArray . plus ( element : Float ) : FloatArray","body":"{ val index = size val result = copyOfUninitializedElements ( index + ) result [ index ] = element return result }","docstring":"/**\n * Returns an array containing all elements of the original array and then the given [element].\n */"} {"signature":"public actual operator fun DoubleArray . plus ( element : Double ) : DoubleArray","body":"{ val index = size val result = copyOfUninitializedElements ( index + ) result [ index ] = element return result }","docstring":"/**\n * Returns an array containing all elements of the original array and then the given [element].\n */"} {"signature":"public actual operator fun BooleanArray . plus ( element : Boolean ) : BooleanArray","body":"{ val index = size val result = copyOfUninitializedElements ( index + ) result [ index ] = element return result }","docstring":"/**\n * Returns an array containing all elements of the original array and then the given [element].\n */"} {"signature":"public actual operator fun CharArray . plus ( element : Char ) : CharArray","body":"{ val index = size val result = copyOfUninitializedElements ( index + ) result [ index ] = element return result }","docstring":"/**\n * Returns an array containing all elements of the original array and then the given [element].\n */"} {"signature":"public actual operator fun < T > Array < T > . plus ( elements : Collection < T > ) : Array < T >","body":"{ var index = size val result = copyOfUninitializedElements ( index + elements . size ) for ( element in elements ) result [ index ++ ] = element return result }","docstring":"/**\n * Returns an array containing all elements of the original array and then all elements of the given [elements] collection.\n */"} {"signature":"public actual operator fun ByteArray . plus ( elements : Collection < Byte > ) : ByteArray","body":"{ var index = size val result = copyOfUninitializedElements ( index + elements . size ) for ( element in elements ) result [ index ++ ] = element return result }","docstring":"/**\n * Returns an array containing all elements of the original array and then all elements of the given [elements] collection.\n */"} {"signature":"public actual operator fun ShortArray . plus ( elements : Collection < Short > ) : ShortArray","body":"{ var index = size val result = copyOfUninitializedElements ( index + elements . size ) for ( element in elements ) result [ index ++ ] = element return result }","docstring":"/**\n * Returns an array containing all elements of the original array and then all elements of the given [elements] collection.\n */"} {"signature":"public actual operator fun IntArray . plus ( elements : Collection < Int > ) : IntArray","body":"{ var index = size val result = copyOfUninitializedElements ( index + elements . size ) for ( element in elements ) result [ index ++ ] = element return result }","docstring":"/**\n * Returns an array containing all elements of the original array and then all elements of the given [elements] collection.\n */"} {"signature":"public actual operator fun LongArray . plus ( elements : Collection < Long > ) : LongArray","body":"{ var index = size val result = copyOfUninitializedElements ( index + elements . size ) for ( element in elements ) result [ index ++ ] = element return result }","docstring":"/**\n * Returns an array containing all elements of the original array and then all elements of the given [elements] collection.\n */"} {"signature":"public actual operator fun FloatArray . plus ( elements : Collection < Float > ) : FloatArray","body":"{ var index = size val result = copyOfUninitializedElements ( index + elements . size ) for ( element in elements ) result [ index ++ ] = element return result }","docstring":"/**\n * Returns an array containing all elements of the original array and then all elements of the given [elements] collection.\n */"} {"signature":"public actual operator fun DoubleArray . plus ( elements : Collection < Double > ) : DoubleArray","body":"{ var index = size val result = copyOfUninitializedElements ( index + elements . size ) for ( element in elements ) result [ index ++ ] = element return result }","docstring":"/**\n * Returns an array containing all elements of the original array and then all elements of the given [elements] collection.\n */"} {"signature":"public actual operator fun BooleanArray . plus ( elements : Collection < Boolean > ) : BooleanArray","body":"{ var index = size val result = copyOfUninitializedElements ( index + elements . size ) for ( element in elements ) result [ index ++ ] = element return result }","docstring":"/**\n * Returns an array containing all elements of the original array and then all elements of the given [elements] collection.\n */"} {"signature":"public actual operator fun CharArray . plus ( elements : Collection < Char > ) : CharArray","body":"{ var index = size val result = copyOfUninitializedElements ( index + elements . size ) for ( element in elements ) result [ index ++ ] = element return result }","docstring":"/**\n * Returns an array containing all elements of the original array and then all elements of the given [elements] collection.\n */"} {"signature":"public actual operator fun < T > Array < T > . plus ( elements : Array < out T > ) : Array < T >","body":"{ val thisSize = size val arraySize = elements . size val result = copyOfUninitializedElements ( thisSize + arraySize ) elements . copyInto ( result , thisSize ) return result }","docstring":"/**\n * Returns an array containing all elements of the original array and then all elements of the given [elements] array.\n */"} {"signature":"public actual operator fun ByteArray . plus ( elements : ByteArray ) : ByteArray","body":"{ val thisSize = size val arraySize = elements . size val result = copyOfUninitializedElements ( thisSize + arraySize ) elements . copyInto ( result , thisSize ) return result }","docstring":"/**\n * Returns an array containing all elements of the original array and then all elements of the given [elements] array.\n */"} {"signature":"public actual operator fun ShortArray . plus ( elements : ShortArray ) : ShortArray","body":"{ val thisSize = size val arraySize = elements . size val result = copyOfUninitializedElements ( thisSize + arraySize ) elements . copyInto ( result , thisSize ) return result }","docstring":"/**\n * Returns an array containing all elements of the original array and then all elements of the given [elements] array.\n */"} {"signature":"public actual operator fun IntArray . plus ( elements : IntArray ) : IntArray","body":"{ val thisSize = size val arraySize = elements . size val result = copyOfUninitializedElements ( thisSize + arraySize ) elements . copyInto ( result , thisSize ) return result }","docstring":"/**\n * Returns an array containing all elements of the original array and then all elements of the given [elements] array.\n */"} {"signature":"public actual operator fun LongArray . plus ( elements : LongArray ) : LongArray","body":"{ val thisSize = size val arraySize = elements . size val result = copyOfUninitializedElements ( thisSize + arraySize ) elements . copyInto ( result , thisSize ) return result }","docstring":"/**\n * Returns an array containing all elements of the original array and then all elements of the given [elements] array.\n */"} {"signature":"public actual operator fun FloatArray . plus ( elements : FloatArray ) : FloatArray","body":"{ val thisSize = size val arraySize = elements . size val result = copyOfUninitializedElements ( thisSize + arraySize ) elements . copyInto ( result , thisSize ) return result }","docstring":"/**\n * Returns an array containing all elements of the original array and then all elements of the given [elements] array.\n */"} {"signature":"public actual operator fun DoubleArray . plus ( elements : DoubleArray ) : DoubleArray","body":"{ val thisSize = size val arraySize = elements . size val result = copyOfUninitializedElements ( thisSize + arraySize ) elements . copyInto ( result , thisSize ) return result }","docstring":"/**\n * Returns an array containing all elements of the original array and then all elements of the given [elements] array.\n */"} {"signature":"public actual operator fun BooleanArray . plus ( elements : BooleanArray ) : BooleanArray","body":"{ val thisSize = size val arraySize = elements . size val result = copyOfUninitializedElements ( thisSize + arraySize ) elements . copyInto ( result , thisSize ) return result }","docstring":"/**\n * Returns an array containing all elements of the original array and then all elements of the given [elements] array.\n */"} {"signature":"public actual operator fun CharArray . plus ( elements : CharArray ) : CharArray","body":"{ val thisSize = size val arraySize = elements . size val result = copyOfUninitializedElements ( thisSize + arraySize ) elements . copyInto ( result , thisSize ) return result }","docstring":"/**\n * Returns an array containing all elements of the original array and then all elements of the given [elements] array.\n */"} {"signature":"@ kotlin . internal . InlineOnly public actual inline fun < T > Array < T > . plusElement ( element : T ) : Array < T >","body":"{ return plus ( element ) }","docstring":"/**\n * Returns an array containing all elements of the original array and then the given [element].\n */"} {"signature":"public actual fun IntArray . sort ( ) : Unit","body":"{ if ( size > ) sortArray ( this , , size ) }","docstring":"/**\n * Sorts the array in-place.\n * \n * @sample samples.collections.Arrays.Sorting.sortArray\n */"} {"signature":"public actual fun LongArray . sort ( ) : Unit","body":"{ if ( size > ) sortArray ( this , , size ) }","docstring":"/**\n * Sorts the array in-place.\n * \n * @sample samples.collections.Arrays.Sorting.sortArray\n */"} {"signature":"public actual fun ByteArray . sort ( ) : Unit","body":"{ if ( size > ) sortArray ( this , , size ) }","docstring":"/**\n * Sorts the array in-place.\n * \n * @sample samples.collections.Arrays.Sorting.sortArray\n */"} {"signature":"public actual fun ShortArray . sort ( ) : Unit","body":"{ if ( size > ) sortArray ( this , , size ) }","docstring":"/**\n * Sorts the array in-place.\n * \n * @sample samples.collections.Arrays.Sorting.sortArray\n */"} {"signature":"public actual fun DoubleArray . sort ( ) : Unit","body":"{ if ( size > ) sortArray ( this , , size ) }","docstring":"/**\n * Sorts the array in-place.\n * \n * @sample samples.collections.Arrays.Sorting.sortArray\n */"} {"signature":"public actual fun FloatArray . sort ( ) : Unit","body":"{ if ( size > ) sortArray ( this , , size ) }","docstring":"/**\n * Sorts the array in-place.\n * \n * @sample samples.collections.Arrays.Sorting.sortArray\n */"} {"signature":"public actual fun CharArray . sort ( ) : Unit","body":"{ if ( size > ) sortArray ( this , , size ) }","docstring":"/**\n * Sorts the array in-place.\n * \n * @sample samples.collections.Arrays.Sorting.sortArray\n */"} {"signature":"public actual fun < T : Comparable < T > > Array < out T > . sort ( ) : Unit","body":"{ if ( size > ) sortArray ( this , , size ) }","docstring":"/**\n * Sorts the array in-place according to the natural order of its elements.\n * \n * The sort is _stable_. It means that equal elements preserve their order relative to each other after sorting.\n * \n * @sample samples.collections.Arrays.Sorting.sortArrayOfComparable\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ Suppress ( \"\" ) public actual fun < T : Comparable < T > > Array < out T > . sort ( fromIndex : Int = , toIndex : Int = size ) : Unit","body":"{ AbstractList . checkRangeIndexes ( fromIndex , toIndex , size ) sortArray ( this , fromIndex , toIndex ) }","docstring":"/**\n * Sorts a range in the array in-place.\n * \n * The sort is _stable_. It means that equal elements preserve their order relative to each other after sorting.\n * \n * @param fromIndex the start of the range (inclusive) to sort, 0 by default.\n * @param toIndex the end of the range (exclusive) to sort, size of this array by default.\n * \n * @throws IndexOutOfBoundsException if [fromIndex] is less than zero or [toIndex] is greater than the size of this array.\n * @throws IllegalArgumentException if [fromIndex] is greater than [toIndex].\n * \n * @sample samples.collections.Arrays.Sorting.sortRangeOfArrayOfComparable\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ Suppress ( \"\" ) public actual fun ByteArray . sort ( fromIndex : Int = , toIndex : Int = size ) : Unit","body":"{ AbstractList . checkRangeIndexes ( fromIndex , toIndex , size ) sortArray ( this , fromIndex , toIndex ) }","docstring":"/**\n * Sorts a range in the array in-place.\n * \n * @param fromIndex the start of the range (inclusive) to sort, 0 by default.\n * @param toIndex the end of the range (exclusive) to sort, size of this array by default.\n * \n * @throws IndexOutOfBoundsException if [fromIndex] is less than zero or [toIndex] is greater than the size of this array.\n * @throws IllegalArgumentException if [fromIndex] is greater than [toIndex].\n * \n * @sample samples.collections.Arrays.Sorting.sortRangeOfArray\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ Suppress ( \"\" ) public actual fun ShortArray . sort ( fromIndex : Int = , toIndex : Int = size ) : Unit","body":"{ AbstractList . checkRangeIndexes ( fromIndex , toIndex , size ) sortArray ( this , fromIndex , toIndex ) }","docstring":"/**\n * Sorts a range in the array in-place.\n * \n * @param fromIndex the start of the range (inclusive) to sort, 0 by default.\n * @param toIndex the end of the range (exclusive) to sort, size of this array by default.\n * \n * @throws IndexOutOfBoundsException if [fromIndex] is less than zero or [toIndex] is greater than the size of this array.\n * @throws IllegalArgumentException if [fromIndex] is greater than [toIndex].\n * \n * @sample samples.collections.Arrays.Sorting.sortRangeOfArray\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ Suppress ( \"\" ) public actual fun IntArray . sort ( fromIndex : Int = , toIndex : Int = size ) : Unit","body":"{ AbstractList . checkRangeIndexes ( fromIndex , toIndex , size ) sortArray ( this , fromIndex , toIndex ) }","docstring":"/**\n * Sorts a range in the array in-place.\n * \n * @param fromIndex the start of the range (inclusive) to sort, 0 by default.\n * @param toIndex the end of the range (exclusive) to sort, size of this array by default.\n * \n * @throws IndexOutOfBoundsException if [fromIndex] is less than zero or [toIndex] is greater than the size of this array.\n * @throws IllegalArgumentException if [fromIndex] is greater than [toIndex].\n * \n * @sample samples.collections.Arrays.Sorting.sortRangeOfArray\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ Suppress ( \"\" ) public actual fun LongArray . sort ( fromIndex : Int = , toIndex : Int = size ) : Unit","body":"{ AbstractList . checkRangeIndexes ( fromIndex , toIndex , size ) sortArray ( this , fromIndex , toIndex ) }","docstring":"/**\n * Sorts a range in the array in-place.\n * \n * @param fromIndex the start of the range (inclusive) to sort, 0 by default.\n * @param toIndex the end of the range (exclusive) to sort, size of this array by default.\n * \n * @throws IndexOutOfBoundsException if [fromIndex] is less than zero or [toIndex] is greater than the size of this array.\n * @throws IllegalArgumentException if [fromIndex] is greater than [toIndex].\n * \n * @sample samples.collections.Arrays.Sorting.sortRangeOfArray\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ Suppress ( \"\" ) public actual fun FloatArray . sort ( fromIndex : Int = , toIndex : Int = size ) : Unit","body":"{ AbstractList . checkRangeIndexes ( fromIndex , toIndex , size ) sortArray ( this , fromIndex , toIndex ) }","docstring":"/**\n * Sorts a range in the array in-place.\n * \n * @param fromIndex the start of the range (inclusive) to sort, 0 by default.\n * @param toIndex the end of the range (exclusive) to sort, size of this array by default.\n * \n * @throws IndexOutOfBoundsException if [fromIndex] is less than zero or [toIndex] is greater than the size of this array.\n * @throws IllegalArgumentException if [fromIndex] is greater than [toIndex].\n * \n * @sample samples.collections.Arrays.Sorting.sortRangeOfArray\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ Suppress ( \"\" ) public actual fun DoubleArray . sort ( fromIndex : Int = , toIndex : Int = size ) : Unit","body":"{ AbstractList . checkRangeIndexes ( fromIndex , toIndex , size ) sortArray ( this , fromIndex , toIndex ) }","docstring":"/**\n * Sorts a range in the array in-place.\n * \n * @param fromIndex the start of the range (inclusive) to sort, 0 by default.\n * @param toIndex the end of the range (exclusive) to sort, size of this array by default.\n * \n * @throws IndexOutOfBoundsException if [fromIndex] is less than zero or [toIndex] is greater than the size of this array.\n * @throws IllegalArgumentException if [fromIndex] is greater than [toIndex].\n * \n * @sample samples.collections.Arrays.Sorting.sortRangeOfArray\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ Suppress ( \"\" ) public actual fun CharArray . sort ( fromIndex : Int = , toIndex : Int = size ) : Unit","body":"{ AbstractList . checkRangeIndexes ( fromIndex , toIndex , size ) sortArray ( this , fromIndex , toIndex ) }","docstring":"/**\n * Sorts a range in the array in-place.\n * \n * @param fromIndex the start of the range (inclusive) to sort, 0 by default.\n * @param toIndex the end of the range (exclusive) to sort, size of this array by default.\n * \n * @throws IndexOutOfBoundsException if [fromIndex] is less than zero or [toIndex] is greater than the size of this array.\n * @throws IllegalArgumentException if [fromIndex] is greater than [toIndex].\n * \n * @sample samples.collections.Arrays.Sorting.sortRangeOfArray\n */"} {"signature":"public actual fun < T > Array < out T > . sortWith ( comparator : Comparator < in T > ) : Unit","body":"{ if ( size > ) sortArrayWith ( this , , size , comparator ) }","docstring":"/**\n * Sorts the array in-place according to the order specified by the given [comparator].\n * \n * The sort is _stable_. It means that equal elements preserve their order relative to each other after sorting.\n */"} {"signature":"@ Suppress ( \"\" ) public actual fun < T > Array < out T > . sortWith ( comparator : Comparator < in T > , fromIndex : Int = , toIndex : Int = size ) : Unit","body":"{ AbstractList . checkRangeIndexes ( fromIndex , toIndex , size ) sortArrayWith ( this , fromIndex , toIndex , comparator ) }","docstring":"/**\n * Sorts a range in the array in-place with the given [comparator].\n * \n * The sort is _stable_. It means that equal elements preserve their order relative to each other after sorting.\n * \n * @param fromIndex the start of the range (inclusive) to sort, 0 by default.\n * @param toIndex the end of the range (exclusive) to sort, size of this array by default.\n * \n * @throws IndexOutOfBoundsException if [fromIndex] is less than zero or [toIndex] is greater than the size of this array.\n * @throws IllegalArgumentException if [fromIndex] is greater than [toIndex].\n */"} {"signature":"public actual fun ByteArray . toTypedArray ( ) : Array < Byte >","body":"{ return Array ( size ) { index -> this [ index ] } }","docstring":"/**\n * Returns a *typed* object array containing all of the elements of this primitive array.\n */"} {"signature":"public actual fun ShortArray . toTypedArray ( ) : Array < Short >","body":"{ return Array ( size ) { index -> this [ index ] } }","docstring":"/**\n * Returns a *typed* object array containing all of the elements of this primitive array.\n */"} {"signature":"public actual fun IntArray . toTypedArray ( ) : Array < Int >","body":"{ return Array ( size ) { index -> this [ index ] } }","docstring":"/**\n * Returns a *typed* object array containing all of the elements of this primitive array.\n */"} {"signature":"public actual fun LongArray . toTypedArray ( ) : Array < Long >","body":"{ return Array ( size ) { index -> this [ index ] } }","docstring":"/**\n * Returns a *typed* object array containing all of the elements of this primitive array.\n */"} {"signature":"public actual fun FloatArray . toTypedArray ( ) : Array < Float >","body":"{ return Array ( size ) { index -> this [ index ] } }","docstring":"/**\n * Returns a *typed* object array containing all of the elements of this primitive array.\n */"} {"signature":"public actual fun DoubleArray . toTypedArray ( ) : Array < Double >","body":"{ return Array ( size ) { index -> this [ index ] } }","docstring":"/**\n * Returns a *typed* object array containing all of the elements of this primitive array.\n */"} {"signature":"public actual fun BooleanArray . toTypedArray ( ) : Array < Boolean >","body":"{ return Array ( size ) { index -> this [ index ] } }","docstring":"/**\n * Returns a *typed* object array containing all of the elements of this primitive array.\n */"} {"signature":"public actual fun CharArray . toTypedArray ( ) : Array < Char >","body":"{ return Array ( size ) { index -> this [ index ] } }","docstring":"/**\n * Returns a *typed* object array containing all of the elements of this primitive array.\n */"} {"signature":"fun box ( ) : String","body":"{ return Wrapper ( Result . success ( \"\" ) ) . response . getOrThrow ( ) }","docstring":""} {"signature":"fun test ( )","body":"{ ( fun Foo . ( ) { bar ( ) ( fun Barr . ( ) { this . bar ( ) bar ( ) } ) } ) ( fun Barr . ( ) { this . bar ( ) bar ( ) } ) }","docstring":""} {"signature":"fun bar ( )","body":"{ }","docstring":""} {"signature":"fun bar ( )","body":"{ }","docstring":""} {"signature":"infix fun Any ? . equals ( other : Any ? )","body":"{ if ( this != other ) throw AssertionError ( \"\" ) }","docstring":""} {"signature":"fun Any ? . toString ( ) : String","body":"= \"\"","docstring":""} {"signature":"fun Any ? . hashCode ( ) : Int","body":"= ","docstring":""} {"signature":"fun C . test ( ) : String","body":"{ x equals null . toString ( ) null . hashCode ( ) return \"\" }","docstring":""} {"signature":"fun box ( ) : String","body":"= C ( ) . test ( )","docstring":""} {"signature":"fun testSamWithReceiver ( )","body":"{ withTempDir { tempDir -> runBlocking { val srcDir = File ( TEST_DATA_DIR , \"\" ) val destDir = File ( tempDir , \"\" ) . also { it . mkdir ( ) } val javaRes = KotlinTestUtils . compileJavaFiles ( srcDir . listFiles { file : File -> file . extension == \"\" } ! ! . toMutableList ( ) , mutableListOf ( \"\" , destDir . absolutePath ) ) assertTrue ( javaRes ) val baseConfig = ScriptCompilationConfiguration { fileExtension ( \"\" ) dependencies ( JvmDependency ( destDir ) ) } JvmScriptCompiler ( ) ( File ( srcDir , \"\" ) . toScriptSource ( ) , baseConfig ) . let { res -> when ( res ) { is ResultWithDiagnostics . Success -> fail ( \"\" ) is ResultWithDiagnostics . Failure -> if ( res . reports . none { it . message . contains ( \"\" ) || it . message . contains ( \"\" ) } ) { fail ( \"\" ) } } } val configWithSwr = baseConfig . with { annotationsForSamWithReceivers ( \"\" ) } JvmScriptCompiler ( ) ( File ( srcDir , \"\" ) . toScriptSource ( ) , configWithSwr ) . onFailure { res -> fail ( \"\" ) } } } }","docstring":""} {"signature":"override fun transform ( module : TestModule , inputArtifact : ClassicBackendInput ) : BinaryArtifacts . Jvm","body":"{ val configuration = testServices . compilerConfigurationProvider . getCompilerConfiguration ( module ) val ( psiFiles , analysisResult , project , _ ) = inputArtifact val generationState = GenerationState . Builder ( project , ClassBuilderFactories . TEST , analysisResult . moduleDescriptor , analysisResult . bindingContext , configuration ) . build ( ) KotlinCodegenFacade . compileCorrectFiles ( psiFiles , generationState , DefaultCodegenFactory ) javaCompilerFacade . compileJavaFiles ( module , configuration , generationState . factory ) return BinaryArtifacts . Jvm ( generationState . factory , psiFiles . map { SourceFileInfo ( KtPsiSourceFile ( it ) , JvmFileClassUtil . getFileClassInfoNoResolve ( it ) ) } ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ var result : Result try { result = Result . Success ( \"\" ) } catch ( e : Exception ) { result = Result . Failure ( Exception ( ) ) } when ( result ) { is Result . Failure -> throw result . exception is Result . Success -> return result . message } }","docstring":""} {"signature":"public inline fun < reified T : Throwable > failsWith ( block : ( ) -> Any ) : T","body":"{ try { block ( ) } catch ( e : Throwable ) { if ( e is T ) return e } throw Exception ( \"\" ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val a = failsWith < Exception > { throw Exception ( \"\" ) } return a . message ! ! }","docstring":""} {"signature":"@ DisabledOnOs ( OS . WINDOWS , disabledReason = \"\" ) @ DisplayName ( \"\" ) @ GradleTest open fun afterChangeInPluginBuildDoesIncrementalProcessing ( gradleVersion : GradleVersion )","body":"{ project ( \"\" . prefix , gradleVersion ) { val classesDirectory = subProject ( \"\" ) . kotlinClassesDir ( \"\" ) build ( \"\" ) { assertClassDeclarationsContain ( classesDirectory , \"\" , \"\" ) assertClassDeclarationsContain ( classesDirectory , \"\" , \"\" ) } subProject ( \"\" ) . kotlinSourcesDir ( ) . resolve ( \"\" ) . modify { it . replace ( \"\" , \"\" ) } build ( \"\" ) { assertClassDeclarationsContain ( classesDirectory , \"\" , \"\" ) assertClassDeclarationsContain ( classesDirectory , \"\" , \"\" ) } } }","docstring":""} {"signature":"fun test ( )","body":"{ val a = if ( true ) { val x = \"\" . length :: foo } else { :: foo } a checkType { _ < KFunction0 < Int > > ( ) } }","docstring":""} {"signature":"fun foo ( ) : Int","body":"= ","docstring":""} {"signature":"fun send ( e : T )","body":"fun send ( e : T )","docstring":""} {"signature":"@ OptIn ( ExperimentalTypeInference :: class ) fun < K > foo ( block : Inv < K > . ( ) -> Unit )","body":"{ }","docstring":""} {"signature":"fun test ( i : Int )","body":"{ foo { val p = send ( i ) } }","docstring":""} {"signature":"@ Test fun `test 3rd element` ( )","body":"{ assertEquals ( , fibi . take ( ) . last ( ) ) }","docstring":""} {"signature":"override fun < R , D > acceptChildren ( visitor : FirVisitor < R , D > , data : D )","body":"{ typeRef . accept ( visitor , data ) }","docstring":""} {"signature":"override fun < D > transformChildren ( transformer : FirTransformer < D > , data : D ) : FirTypeProjectionWithVarianceImpl","body":"{ typeRef = typeRef . transform ( transformer , data ) return this }","docstring":""} {"signature":"fun test_1 ( s : String ? )","body":"{ when ( true ) { ( s != null ) -> s . length else -> null } }","docstring":""} {"signature":"fun test_2 ( s : String ? )","body":"{ when ( s != null ) { true -> s . length else -> null } }","docstring":""} {"signature":"fun test_3 ( s : String ? )","body":"{ if ( true == ( s != null ) ) s . length }","docstring":""} {"signature":"fun main ( )","body":"{ val data = Project ( \"\" ) println ( format . encodeToString ( data ) ) }","docstring":""} {"signature":"override fun lower ( irBody : IrBody , container : IrDeclaration )","body":"{ val thisReceiver = ( container as? IrSimpleFunction ) ? . dispatchReceiverParameter if ( thisReceiver == null || ! container . overrides ( invokeSuspendFunction . owner ) ) return val coroutineClass = container . parentAsClass val localToPropertyMap = mutableMapOf < IrVariableSymbol , IrField > ( ) fun getFieldForSpilling ( variable : IrVariable ) = localToPropertyMap . getOrPut ( variable . symbol ) { variable . isVar = true irFactory . buildField { startOffset = coroutineClass . startOffset endOffset = coroutineClass . endOffset origin = DECLARATION_ORIGIN_COROUTINE_VAR_SPILLING name = variable . name type = variable . type visibility = DescriptorVisibilities . PRIVATE isFinal = false } . apply { coroutineClass . addChild ( this ) } } val irBuilder = context . createIrBuilder ( container . symbol , container . startOffset , container . endOffset ) irBody . transformChildren ( object : IrElementTransformer < List < IrVariable > > { override fun visitSuspensionPoint ( expression : IrSuspensionPoint , data : List < IrVariable > ) : IrExpression { val liveVariables = generationState . liveVariablesAtSuspensionPoints [ expression ] ? : generationState . visibleVariablesAtSuspensionPoints [ expression ] ? : error ( \"\" ) expression . transformChildren ( this , liveVariables ) return expression } override fun visitCall ( expression : IrCall , data : List < IrVariable > ) : IrExpression { expression . transformChildren ( this , data ) return when ( expression . symbol ) { saveCoroutineState -> irBuilder . run { irBlock ( expression ) { for ( variable in data ) { val field = getFieldForSpilling ( variable ) + irSetField ( irGet ( thisReceiver ) , field , irGet ( variable ) ) } } } restoreCoroutineState -> irBuilder . run { irBlock ( expression ) { for ( variable in data ) { val field = getFieldForSpilling ( variable ) + irSet ( variable , irGetField ( irGet ( thisReceiver ) , field ) ) } } } else -> expression } } } , data = emptyList ( ) ) }","docstring":""} {"signature":"override fun lower ( irFile : IrFile )","body":"{ if ( generationState . liveVariablesAtSuspensionPoints . isEmpty ( ) ) irFile . acceptChildrenVoid ( this ) }","docstring":""} {"signature":"override fun visitElement ( element : IrElement )","body":"{ element . acceptChildrenVoid ( this ) }","docstring":""} {"signature":"override fun visitFunction ( declaration : IrFunction )","body":"{ val body = declaration . body if ( body != null && declaration . dispatchReceiverParameter != null && ( declaration as? IrSimpleFunction ) ? . overrides ( invokeSuspendFunction . owner ) == true ) { computeVisibleVariablesAtSuspensionPoints ( body ) } }","docstring":""} {"signature":"private fun computeVisibleVariablesAtSuspensionPoints ( body : IrBody )","body":"{ body . acceptChildrenVoid ( object : IrElementVisitorVoid { val scopeStack = mutableListOf < MutableSet < IrVariable > > ( mutableSetOf ( ) ) override fun visitElement ( element : IrElement ) { element . acceptChildrenVoid ( this ) } override fun visitContainerExpression ( expression : IrContainerExpression ) { if ( ! expression . isTransparentScope ) scopeStack . push ( mutableSetOf ( ) ) super . visitContainerExpression ( expression ) if ( ! expression . isTransparentScope ) scopeStack . pop ( ) } override fun visitCatch ( aCatch : IrCatch ) { scopeStack . push ( mutableSetOf ( ) ) super . visitCatch ( aCatch ) scopeStack . pop ( ) } override fun visitVariable ( declaration : IrVariable ) { super . visitVariable ( declaration ) scopeStack . peek ( ) ! ! . add ( declaration ) } override fun visitSuspensionPoint ( expression : IrSuspensionPoint ) { expression . result . acceptChildrenVoid ( this ) expression . resumeResult . acceptChildrenVoid ( this ) val visibleVariables = mutableListOf < IrVariable > ( ) scopeStack . forEach { visibleVariables += it } generationState . visibleVariablesAtSuspensionPoints [ expression ] = visibleVariables } } ) }","docstring":""} {"signature":"fun atomic ( i : Int )","body":"= AtomicInt ( i )","docstring":""} {"signature":"private inline fun AtomicInt . extensionFun ( )","body":"{ if ( a == ) throw IllegalStateException ( \"\" ) value }","docstring":""} {"signature":"private suspend inline fun suspendBar ( )","body":"{ state . extensionFun ( ) suspendCoroutineUninterceptedOrReturn < Any ? > { ucont -> Unit } }","docstring":""} {"signature":"suspend fun box ( )","body":"{ val a = suspendBar ( ) }","docstring":""} {"signature":"fun test ( )","body":"{ foo ( ) foo ( ) }","docstring":""} {"signature":"fun foo ( )","body":"{ }","docstring":""} {"signature":"public fun f ( ) : String","body":"= \"\"","docstring":""} {"signature":"fun Throwable . className ( )","body":"= this :: class . simpleName ! !","docstring":""} {"signature":"fun box ( ) : String","body":"{ val o = O ( ) val k = K ( ) return o . className ( ) + k . className ( ) }","docstring":""} {"signature":"fun addDependsOnEdgeFromTemplate ( from : KotlinSourceSet , to : KotlinSourceSet )","body":"{ val edge = from to to dependsOnEdgesAppliedThroughTemplates += edge dontRemember { from . dependsOn ( to ) } }","docstring":""} {"signature":"private fun dontRemember ( code : ( ) -> Unit )","body":"{ dontRemember = true try { code ( ) } finally { dontRemember = false } }","docstring":""} {"signature":"fun remember ( from : KotlinSourceSet , to : KotlinSourceSet )","body":"{ if ( dontRemember ) return rememberedEdges . add ( from to to ) }","docstring":"/** Should be called from [KotlinSourceSet.dependsOn] method,\n * so depends on edges are tracked and can be distinguished when they added via [addDependsOnEdgeFromTemplate] */"} {"signature":"fun reportRedundantDependsOnEdges ( project : Project )","body":"{ val allDependsOnEdges = dependsOnEdgesAppliedThroughTemplates . flatMap { ( from , to ) -> to . internal . withDependsOnClosure . map { from to it } } . toSet ( ) val redundantEdges = rememberedEdges . intersect ( allDependsOnEdges ) if ( redundantEdges . isEmpty ( ) ) return val redundantEdgesToReport = redundantEdges . map { edge -> KotlinToolingDiagnostics . RedundantDependsOnEdgesFound . RedundantEdge ( from = edge . first . name , to = edge . second . name , ) } project . reportDiagnosticOncePerProject ( KotlinToolingDiagnostics . RedundantDependsOnEdgesFound ( redundantEdgesToReport ) ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val c : Char ? = '' if ( c ! ! - '' != ) return \"\" val b : Boolean ? = false if ( b ! ! ) return \"\" return \"\" }","docstring":""} {"signature":"override fun toString ( )","body":"= \"\"","docstring":""} {"signature":"fun create ( psiJavaModule : PsiJavaModule )","body":"= JavaModuleInfo ( psiJavaModule . name , psiJavaModule . requires . mapNotNull { statement -> statement . moduleName ? . let { moduleName -> Requires ( moduleName , statement . hasModifierProperty ( PsiModifier . TRANSITIVE ) ) } } , psiJavaModule . exports . mapNotNull { statement -> statement . packageName ? . let { packageName -> Exports ( FqName ( packageName ) , statement . moduleNames ) } } , psiJavaModule . annotations . convert { JavaAnnotationImpl ( JavaElementSourceFactory . getInstance ( psiJavaModule . project ) . createPsiSource ( it ) ) } )","docstring":""} {"signature":"fun read ( file : VirtualFile , javaFileManager : KotlinCliJavaFileManager , searchScope : GlobalSearchScope ) : JavaModuleInfo ?","body":"{ val contents = try { file . contentsToByteArray ( ) } catch ( e : IOException ) { return null } var moduleName : String ? = null val requires = arrayListOf < Requires > ( ) val exports = arrayListOf < Exports > ( ) val annotations = arrayListOf < JavaAnnotation > ( ) try { ClassReader ( contents ) . accept ( object : ClassVisitor ( Opcodes . API_VERSION ) { override fun visitModule ( name : String , access : Int , version : String ? ) : ModuleVisitor { moduleName = name return object : ModuleVisitor ( Opcodes . API_VERSION ) { override fun visitRequire ( module : String , access : Int , version : String ? ) { requires . add ( Requires ( module , ( access and ACC_TRANSITIVE ) != ) ) } override fun visitExport ( packageFqName : String , access : Int , modules : Array < String > ? ) { exports . add ( Exports ( FqName ( packageFqName . replace ( '' , '' ) ) , modules ? . toList ( ) . orEmpty ( ) ) ) } } } override fun visitAnnotation ( descriptor : String ? , visible : Boolean ) : AnnotationVisitor ? { if ( descriptor == null ) return null val ( annotation , visitor ) = BinaryJavaAnnotation . createAnnotationAndVisitor ( descriptor , ClassifierResolutionContext { javaFileManager . findClass ( JavaClassFinder . Request ( it ) , searchScope ) } , BinaryClassSignatureParser ( ) , isFreshlySupportedTypeUseAnnotation = true ) annotations . add ( annotation ) return visitor } } , ClassReader . SKIP_DEBUG or ClassReader . SKIP_CODE or ClassReader . SKIP_FRAMES ) } catch ( e : Exception ) { throw IllegalStateException ( \"\" + \"\" , e ) } return moduleName ? . let { JavaModuleInfo ( it , requires . compact ( ) , exports . compact ( ) , annotations ) } }","docstring":""} {"signature":"override fun toString ( ) : String","body":"{ val callableId = ( symbol as? FirCallableSymbol < * > ) ? . callableId return \"\" }","docstring":""} {"signature":"final override fun toString ( ) : String","body":"{ return \"\" }","docstring":""} {"signature":"override fun compareTo ( other : DataFlowVariable ) : Int","body":"= variableIndexForDebug . compareTo ( other . variableIndexForDebug )","docstring":""} {"signature":"fun combineWithReceiverStability ( receiverStability : PropertyStability ? ) : PropertyStability","body":"{ if ( receiverStability == null ) return this if ( this == LOCAL_VAR ) { require ( receiverStability == STABLE_VALUE || receiverStability == LOCAL_VAR ) { \"\" } return this } return maxOf ( this , receiverStability ) }","docstring":""} {"signature":"override fun equals ( other : Any ? ) : Boolean","body":"{ return this === other }","docstring":""} {"signature":"override fun hashCode ( ) : Int","body":"{ return _hashCode }","docstring":""} {"signature":"override fun equals ( other : Any ? ) : Boolean","body":"{ if ( this === other ) return true if ( javaClass != other ? . javaClass ) return false other as SyntheticVariable return fir isEqualsTo other . fir }","docstring":""} {"signature":"override fun hashCode ( ) : Int","body":"{ return if ( fir is FirResolvedQualifier ) { * fir . packageFqName . hashCode ( ) + fir . classId . hashCode ( ) } else { fir . hashCode ( ) } }","docstring":""} {"signature":"private infix fun FirElement . isEqualsTo ( other : FirElement ) : Boolean","body":"{ if ( this !is FirResolvedQualifier || other !is FirResolvedQualifier ) return this == other if ( packageFqName != other . packageFqName ) return false if ( classId != other . classId ) return false return true }","docstring":""} {"signature":"open fun isGenerallyOk ( declaration : FirDeclaration , context : CheckerContext , reporter : DiagnosticReporter ) : Boolean","body":"= true","docstring":""} {"signature":"open fun checkSuspendFunctionalParameterWithDefaultValue ( param : FirValueParameter , context : CheckerContext , reporter : DiagnosticReporter , )","body":"{ }","docstring":""} {"signature":"open fun checkFunctionalParametersWithInheritedDefaultValues ( function : FirSimpleFunction , context : CheckerContext , reporter : DiagnosticReporter , overriddenSymbols : List < FirCallableSymbol < FirCallableDeclaration > > , )","body":"{ }","docstring":""} {"signature":"private fun TimeMark . assertHasPassed ( hasPassed : Boolean )","body":"{ assertEquals ( ! hasPassed , this . hasNotPassedNow ( ) , \"\" ) assertEquals ( hasPassed , this . hasPassedNow ( ) , \"\" ) assertEquals ( ! hasPassed , this . elapsedNow ( ) < Duration . ZERO , \"\" ) }","docstring":""} {"signature":"fun testAdjustment ( timeSource : TimeSource . WithComparableMarks )","body":"{ val mark = timeSource . markNow ( ) for ( unit in units ) { val markFuture1 = ( mark + . toDuration ( unit ) ) . apply { assertHasPassed ( false ) } val markFuture2 = ( mark - ( - ) . toDuration ( unit ) ) . apply { assertHasPassed ( false ) } assertDifferentMarks ( markFuture1 , mark , ) assertDifferentMarks ( markFuture2 , mark , ) val markPast1 = ( mark - . toDuration ( unit ) ) . apply { assertHasPassed ( true ) } val markPast2 = ( markFuture1 + ( - ) . toDuration ( unit ) ) . apply { assertHasPassed ( true ) } assertDifferentMarks ( markPast1 , mark , - ) assertDifferentMarks ( markPast2 , mark , - ) if ( unit > DurationUnit . NANOSECONDS ) { val d = . toDuration ( unit ) val h = d / val markH1 = mark + h val markH2 = mark + d - h assertEqualMarks ( markH1 , markH2 ) } } }","docstring":""} {"signature":"@ Test fun adjustment ( )","body":"{ testAdjustment ( TestTimeSource ( ) ) for ( unit in units ) { testAdjustment ( LongTimeSource ( unit ) ) } }","docstring":""} {"signature":"@ Test fun adjustmentTestTimeSource ( )","body":"{ val timeSource = TestTimeSource ( ) val mark = timeSource . markNow ( ) val markFuture1 = mark + . milliseconds val markPast1 = mark - . milliseconds timeSource += . nanoseconds val markElapsed = timeSource . markNow ( ) val elapsedDiff = markElapsed - mark val elapsed = mark . elapsedNow ( ) val elapsedFromFuture = elapsed - . milliseconds val elapsedFromPast = elapsed + . milliseconds assertEquals ( . milliseconds , elapsed ) assertEquals ( elapsedFromFuture , markFuture1 . elapsedNow ( ) ) assertEquals ( elapsedDiff , elapsed ) val markToElapsed = mark + elapsedDiff assertEqualMarks ( markElapsed , markToElapsed ) assertEquals ( elapsedFromPast , markPast1 . elapsedNow ( ) ) markFuture1 . assertHasPassed ( false ) markPast1 . assertHasPassed ( true ) timeSource += . milliseconds markFuture1 . assertHasPassed ( true ) markPast1 . assertHasPassed ( true ) }","docstring":""} {"signature":"fun testAdjustmentBig ( timeSource : TimeSource . WithComparableMarks )","body":"{ val baseMark = timeSource . markNow ( ) val longDuration = Long . MAX_VALUE . nanoseconds val long2Duration = longDuration + . milliseconds val pastMark = baseMark - longDuration val futureMark = pastMark + long2Duration val sameMark = futureMark - ( long2Duration - longDuration ) val elapsedMark = timeSource . markNow ( ) run { val iterations = .. for ( i in iterations ) { val elapsedDiff1 = ( sameMark . elapsedNow ( ) - baseMark . elapsedNow ( ) ) . absoluteValue val elapsedDiff2 = ( baseMark . elapsedNow ( ) - sameMark . elapsedNow ( ) ) . absoluteValue if ( maxOf ( elapsedDiff1 , elapsedDiff2 ) < . milliseconds ) break if ( i == iterations . last ) fail ( \"\" ) } } val elapsedBaseDiff = elapsedMark - baseMark val elapsedSameDiff = elapsedMark - sameMark assertTrue ( ( elapsedBaseDiff - elapsedSameDiff ) . absoluteValue < . milliseconds , \"\" ) }","docstring":""} {"signature":"@ Test fun adjustmentBig ( )","body":"{ testAdjustmentBig ( TestTimeSource ( ) ) for ( unit in units ) { testAdjustmentBig ( LongTimeSource ( unit ) ) } }","docstring":""} {"signature":"fun testAdjustmentInfinite ( timeSource : TimeSource . WithComparableMarks )","body":"{ val baseMark = timeSource . markNow ( ) val infiniteFutureMark = baseMark + Duration . INFINITE val infinitePastMark = baseMark - Duration . INFINITE assertDifferentMarks ( infinitePastMark , baseMark , - ) assertDifferentMarks ( infiniteFutureMark , baseMark , ) assertDifferentMarks ( infinitePastMark , infiniteFutureMark , - ) assertEquals ( Duration . INFINITE , infiniteFutureMark - infinitePastMark ) assertEquals ( Duration . INFINITE , infiniteFutureMark - baseMark ) assertEquals ( - Duration . INFINITE , infinitePastMark - baseMark ) assertEqualMarks ( infiniteFutureMark , infiniteFutureMark ) assertEqualMarks ( infinitePastMark , infinitePastMark ) assertEquals ( - Duration . INFINITE , infiniteFutureMark . elapsedNow ( ) ) assertTrue ( infiniteFutureMark . hasNotPassedNow ( ) ) assertEquals ( Duration . INFINITE , infinitePastMark . elapsedNow ( ) ) assertTrue ( infinitePastMark . hasPassedNow ( ) ) assertFailsWith < IllegalArgumentException > { infiniteFutureMark - Duration . INFINITE } assertFailsWith < IllegalArgumentException > { infinitePastMark + Duration . INFINITE } for ( infiniteMark in listOf ( infiniteFutureMark , infinitePastMark ) ) { for ( offset in listOf ( Duration . ZERO , . nanoseconds , . microseconds , . milliseconds , . seconds ) ) { assertEqualMarks ( infiniteMark , infiniteMark + offset ) assertEqualMarks ( infiniteMark , infiniteMark - offset ) } } }","docstring":""} {"signature":"@ Test fun adjustmentInfinite ( )","body":"{ testAdjustmentInfinite ( TestTimeSource ( ) ) for ( unit in units ) { testAdjustmentInfinite ( LongTimeSource ( unit ) ) } }","docstring":""} {"signature":"fun testLongAdjustmentElapsedPrecision ( timeSource : TimeSource . WithComparableMarks , wait : ( Duration ) -> Unit )","body":"{ val baseMark = timeSource . markNow ( ) val longDuration = Long . MAX_VALUE . nanoseconds val waitDuration = . milliseconds val pastMark = baseMark - longDuration wait ( waitDuration ) val elapsedMark = timeSource . markNow ( ) val elapsed = pastMark . elapsedNow ( ) val elapsedDiff = elapsedMark - pastMark assertTrue ( elapsed > longDuration ) assertTrue ( elapsed >= longDuration + waitDuration , \"\" ) assertTrue ( elapsedDiff >= longDuration + waitDuration ) assertTrue ( elapsed >= elapsedDiff ) }","docstring":""} {"signature":"@ Test fun longDisplacement ( )","body":"{ val timeSource = TestTimeSource ( ) testLongAdjustmentElapsedPrecision ( timeSource , { waitDuration -> timeSource += waitDuration } ) }","docstring":""} {"signature":"private fun assertEqualMarks ( mark1 : ComparableTimeMark , mark2 : ComparableTimeMark )","body":"{ assertEquals ( Duration . ZERO , mark1 - mark2 ) assertEquals ( Duration . ZERO , mark2 - mark1 ) assertEquals ( , mark1 compareTo mark2 ) assertEquals ( , mark2 compareTo mark1 ) assertEquals ( mark1 , mark2 ) assertEquals ( mark1 . hashCode ( ) , mark2 . hashCode ( ) , \"\" ) }","docstring":""} {"signature":"private fun assertDifferentMarks ( mark1 : ComparableTimeMark , mark2 : ComparableTimeMark , expectedCompare : Int )","body":"{ assertNotEquals ( Duration . ZERO , mark1 - mark2 ) assertNotEquals ( Duration . ZERO , mark2 - mark1 ) assertEquals ( expectedCompare , ( mark1 compareTo mark2 ) . sign ) assertEquals ( - expectedCompare , ( mark2 compareTo mark1 ) . sign ) assertNotEquals ( mark1 , mark2 ) }","docstring":""} {"signature":"@ Test fun timeMarkDifferenceAndComparison ( )","body":"{ val timeSource = TestTimeSource ( ) val timeSource2 = TestTimeSource ( ) val baseMark = timeSource . markNow ( ) var markBefore = baseMark markBefore -= . microseconds markBefore -= . microseconds val markAfter = baseMark + . microseconds assertEquals ( . microseconds , markAfter - markBefore ) assertTrue ( markBefore < markAfter ) assertFalse ( markBefore > markAfter ) assertEqualMarks ( baseMark , baseMark ) timeSource += . microseconds val markElapsed = timeSource . markNow ( ) assertEqualMarks ( markElapsed , markAfter ) val differentSourceMark = TimeSource . Monotonic . markNow ( ) assertFailsWith < IllegalArgumentException > { baseMark - differentSourceMark } assertFailsWith < IllegalArgumentException > { baseMark < differentSourceMark } val differentSourceMark2 = timeSource2 . markNow ( ) assertFailsWith < IllegalArgumentException > { baseMark - differentSourceMark2 } assertFailsWith < IllegalArgumentException > { baseMark < differentSourceMark2 } }","docstring":""} {"signature":"override fun read ( ) : Long","body":"= reading","docstring":""} {"signature":"override fun read ( ) : Double","body":"= reading","docstring":""} {"signature":"@ Test fun longTimeMarkInfinities ( )","body":"{ for ( unit in units ) { val timeSource = LongTimeSource ( unit ) . apply { markNow ( ) reading = Long . MIN_VALUE + } val mark1 = timeSource . markNow ( ) timeSource . reading = val mark2 = timeSource . markNow ( ) - Duration . INFINITE if ( unit >= DurationUnit . MILLISECONDS ) { assertEquals ( Duration . INFINITE , mark1 . elapsedNow ( ) ) } assertEquals ( Duration . INFINITE , mark2 . elapsedNow ( ) ) assertDifferentMarks ( mark1 , mark2 , ) val mark3 = mark1 + Duration . INFINITE assertEquals ( - Duration . INFINITE , mark3 . elapsedNow ( ) , \"\" ) val mark4 = timeSource . markNow ( ) + Duration . INFINITE assertEquals ( - Duration . INFINITE , mark4 . elapsedNow ( ) ) assertEqualMarks ( mark3 , mark4 ) } }","docstring":""} {"signature":"@ Test fun doubleTimeMarkInfiniteEqualHashCode ( )","body":"{ val timeSource = DoubleTimeSource ( unit = DurationUnit . MILLISECONDS ) . apply { reading = - Double . MAX_VALUE } val mark1 = timeSource . markNow ( ) timeSource . reading = val mark2 = timeSource . markNow ( ) - Duration . INFINITE assertEquals ( Duration . INFINITE , mark1 . elapsedNow ( ) ) assertEquals ( Duration . INFINITE , mark2 . elapsedNow ( ) ) assertEqualMarks ( mark1 , mark2 ) }","docstring":""} {"signature":"@ Test fun longTimeMarkRoundingEqualHashCode ( )","body":"{ run { val step = Long . MAX_VALUE / val timeSource = LongTimeSource ( DurationUnit . NANOSECONDS ) val mark0 = timeSource . markNow ( ) + step . nanoseconds + step . nanoseconds timeSource . reading += step val mark1 = timeSource . markNow ( ) + step . nanoseconds timeSource . reading += step val mark2 = timeSource . markNow ( ) assertEqualMarks ( mark1 , mark2 ) assertEqualMarks ( mark0 , mark2 ) assertEqualMarks ( mark0 , mark1 ) } for ( unit in units ) { val baseReading = Long . MAX_VALUE - val timeSource = LongTimeSource ( unit ) . apply { reading = baseReading } val baseMark = timeSource . markNow ( ) for ( delta in listOf ( ( ..< ) . random ( ) , ( ..< ) . random ( ) ) ) { val deltaDuration = delta . toDuration ( unit ) timeSource . reading = baseReading + delta val mark1e = timeSource . markNow ( ) assertEquals ( deltaDuration , mark1e - baseMark ) val mark1d = baseMark + deltaDuration assertEqualMarks ( mark1e , mark1d ) val subUnit = units . getOrNull ( units . indexOf ( unit ) - ) ? : continue val deltaSubUnitDuration = delta . toDuration ( subUnit ) val mark1s = baseMark + deltaSubUnitDuration assertDifferentMarks ( mark1s , baseMark , ) assertEquals ( deltaSubUnitDuration , mark1s - baseMark ) } run { val delta = val deltaDuration = delta . toDuration ( unit ) timeSource . reading = baseReading + val mark2 = timeSource . markNow ( ) assertEquals ( deltaDuration , mark2 - baseMark ) val offset = Long . MAX_VALUE . nanoseconds val mark2e = mark2 + offset val mark2d = baseMark + offset + deltaDuration assertEqualMarks ( mark2e , mark2d ) } } }","docstring":""} {"signature":"@ Test fun defaultTimeMarkAdjustment ( )","body":"{ val baseMark = TimeSource . Monotonic . markNow ( ) var markBefore = baseMark markBefore -= . microseconds markBefore -= . microseconds val markAfter = baseMark + . microseconds MeasureTimeTest . longRunningCalc ( ) val elapsedMark = TimeSource . Monotonic . markNow ( ) val elapsedDiff = elapsedMark - baseMark assertTrue ( elapsedDiff > Duration . ZERO ) val elapsedAfter = markAfter . elapsedNow ( ) val elapsedBase = baseMark . elapsedNow ( ) val elapsedBefore = markBefore . elapsedNow ( ) assertTrue ( elapsedBefore >= elapsedBase + . microseconds ) assertTrue ( elapsedAfter <= elapsedBase - . microseconds ) assertTrue ( elapsedBase >= elapsedDiff ) }","docstring":""} {"signature":"@ Test fun defaultTimeMarkAdjustmentBig ( )","body":"{ if ( TestPlatform . current == TestPlatform . WasmWasi ) return testAdjustmentBig ( TimeSource . Monotonic ) val baseMark = TimeSource . Monotonic . markNow ( ) val longDuration = Long . MAX_VALUE . nanoseconds val long2Duration = longDuration + . milliseconds val pastMark = baseMark - longDuration val futureMark = pastMark + long2Duration val sameMark = futureMark - ( long2Duration - longDuration ) run { val iterations = .. for ( i in iterations ) { val elapsedDiff1 = ( sameMark . elapsedNow ( ) - baseMark . elapsedNow ( ) ) . absoluteValue val elapsedDiff2 = ( baseMark . elapsedNow ( ) - sameMark . elapsedNow ( ) ) . absoluteValue if ( maxOf ( elapsedDiff1 , elapsedDiff2 ) < . milliseconds ) break if ( i == iterations . last ) fail ( \"\" ) } } val elapsedMark = TimeSource . Monotonic . markNow ( ) val elapsedBaseDiff = elapsedMark - baseMark val elapsedSameDiff = elapsedMark - sameMark assertTrue ( ( elapsedBaseDiff - elapsedSameDiff ) . absoluteValue < . milliseconds , \"\" ) }","docstring":""} {"signature":"@ Test fun defaultTimeMarkAdjustmentInfinite ( )","body":"{ if ( TestPlatform . current == TestPlatform . WasmWasi ) return testAdjustmentInfinite ( TimeSource . Monotonic ) val baseMark = TimeSource . Monotonic . markNow ( ) val infiniteFutureMark = baseMark + Duration . INFINITE val infinitePastMark = baseMark - Duration . INFINITE assertEquals ( - Duration . INFINITE , infiniteFutureMark . elapsedNow ( ) ) assertTrue ( infiniteFutureMark . hasNotPassedNow ( ) ) assertEquals ( Duration . INFINITE , infinitePastMark . elapsedNow ( ) ) assertTrue ( infinitePastMark . hasPassedNow ( ) ) assertFailsWith < IllegalArgumentException > { infiniteFutureMark - Duration . INFINITE } assertFailsWith < IllegalArgumentException > { infinitePastMark + Duration . INFINITE } }","docstring":""} {"signature":"@ Test fun defaultTimeMarkDifferenceAndComparison ( )","body":"{ val baseMark = TimeSource . Monotonic . markNow ( ) var markBefore = baseMark markBefore -= . microseconds markBefore -= . microseconds val markAfter = baseMark + . microseconds assertEquals ( . microseconds , markAfter - markBefore ) assertTrue ( markBefore < markAfter ) assertFalse ( markBefore > markAfter ) assertEquals ( , baseMark compareTo baseMark ) assertEquals ( baseMark as Any , baseMark as Any ) assertEquals ( baseMark . hashCode ( ) , baseMark . hashCode ( ) ) val differentSourceMark = TestTimeSource ( ) . markNow ( ) assertFailsWith < IllegalArgumentException > { baseMark - differentSourceMark } assertFailsWith < IllegalArgumentException > { baseMark < differentSourceMark } }","docstring":""} {"signature":"public fun hasTag ( tag : JavadocTag ) : Boolean","body":"public fun hasTag ( tag : JavadocTag ) : Boolean","docstring":""} {"signature":"public fun resolveTag ( tag : JavadocTag ) : List < DocumentationContent >","body":"public fun resolveTag ( tag : JavadocTag ) : List < DocumentationContent >","docstring":""} {"signature":"private fun DeclarationSymbolMarker . asSymbol ( ) : FirBasedSymbol < * >","body":"= this as FirBasedSymbol < * >","docstring":""} {"signature":"private fun CallableSymbolMarker . asSymbol ( ) : FirCallableSymbol < * >","body":"= this as FirCallableSymbol < * >","docstring":""} {"signature":"private fun FunctionSymbolMarker . asSymbol ( ) : FirFunctionSymbol < * >","body":"= this as FirFunctionSymbol < * >","docstring":""} {"signature":"private fun PropertySymbolMarker . asSymbol ( ) : FirPropertySymbol","body":"= this as FirPropertySymbol","docstring":""} {"signature":"private fun ValueParameterSymbolMarker . asSymbol ( ) : FirValueParameterSymbol","body":"= this as FirValueParameterSymbol","docstring":""} {"signature":"private fun TypeParameterSymbolMarker . asSymbol ( ) : FirTypeParameterSymbol","body":"= this as FirTypeParameterSymbol","docstring":""} {"signature":"private fun ClassLikeSymbolMarker . asSymbol ( ) : FirClassLikeSymbol < * >","body":"= this as FirClassLikeSymbol < * >","docstring":""} {"signature":"private fun RegularClassSymbolMarker . asSymbol ( ) : FirRegularClassSymbol","body":"= this as FirRegularClassSymbol","docstring":""} {"signature":"private fun TypeAliasSymbolMarker . asSymbol ( ) : FirTypeAliasSymbol","body":"= this as FirTypeAliasSymbol","docstring":""} {"signature":"override fun TypeAliasSymbolMarker . expandToRegularClass ( ) : RegularClassSymbolMarker ?","body":"{ return asSymbol ( ) . resolvedExpandedTypeRef . coneType . fullyExpandedType ( actualSession ) . toSymbol ( actualSession ) as? FirRegularClassSymbol }","docstring":""} {"signature":"override fun createExpectActualTypeParameterSubstitutor ( expectActualTypeParameters : List < Pair < TypeParameterSymbolMarker , TypeParameterSymbolMarker > > , parentSubstitutor : TypeSubstitutorMarker ? , ) : TypeSubstitutorMarker","body":"{ @ Suppress ( \"\" ) return createExpectActualTypeParameterSubstitutor ( expectActualTypeParameters as List < Pair < FirTypeParameterSymbol , FirTypeParameterSymbol > > , actualSession , parentSubstitutor as ConeSubstitutor ? ) }","docstring":""} {"signature":"override fun RegularClassSymbolMarker . collectAllMembers ( isActualDeclaration : Boolean ) : List < FirBasedSymbol < * > >","body":"{ val symbol = asSymbol ( ) val session = when ( isActualDeclaration ) { true -> actualSession false -> symbol . moduleData . session } val scope = symbol . defaultType ( ) . scope ( useSiteSession = session , if ( isActualDeclaration ) actualScopeSession else expectScopeSession , CallableCopyTypeCalculator . DoNothing , requiredMembersPhase = FirResolvePhase . STATUS , ) ? : return emptyList ( ) return mutableListOf < FirBasedSymbol < * > > ( ) . apply { for ( name in scope . getCallableNames ( ) ) { scope . getMembersTo ( this , name ) } for ( name in scope . getClassifierNames ( ) ) { scope . processClassifiersByName ( name ) { if ( it is FirRegularClassSymbol && it . classId . parentClassId == symbol . classId ) { add ( it ) } } } getConstructorsTo ( this , scope ) } }","docstring":""} {"signature":"override fun RegularClassSymbolMarker . getMembersForExpectClass ( name : Name ) : List < FirCallableSymbol < * > >","body":"{ val symbol = asSymbol ( ) val scope = symbol . defaultType ( ) . scope ( useSiteSession = symbol . moduleData . session , expectScopeSession , CallableCopyTypeCalculator . DoNothing , requiredMembersPhase = FirResolvePhase . STATUS , ) ? : return emptyList ( ) return mutableListOf < FirCallableSymbol < * > > ( ) . apply { scope . getMembersTo ( this , name ) } }","docstring":""} {"signature":"override fun FirClassSymbol < * > . getConstructors ( scopeSession : ScopeSession , session : FirSession , ) : Collection < FirConstructorSymbol >","body":"= mutableListOf < FirConstructorSymbol > ( ) . apply { getConstructorsTo ( this , unsubstitutedScope ( session , scopeSession , withForcedTypeCalculator = false , memberRequiredPhase = FirResolvePhase . STATUS , ) ) }","docstring":""} {"signature":"private fun getConstructorsTo ( destination : MutableList < in FirConstructorSymbol > , scope : FirTypeScope )","body":"{ scope . getDeclaredConstructors ( ) . mapTo ( destination ) { it } }","docstring":""} {"signature":"private fun FirTypeScope . getMembersTo ( destination : MutableList < in FirCallableSymbol < * > > , name : Name )","body":"{ processFunctionsByName ( name ) { destination . add ( it ) } processPropertiesByName ( name ) { destination . add ( it ) } }","docstring":""} {"signature":"override fun RegularClassSymbolMarker . collectEnumEntryNames ( ) : List < Name >","body":"{ return asSymbol ( ) . fir . collectEnumEntries ( ) . map { it . name } }","docstring":""} {"signature":"override fun RegularClassSymbolMarker . collectEnumEntries ( ) : List < DeclarationSymbolMarker >","body":"{ return asSymbol ( ) . fir . collectEnumEntries ( ) . map { it . symbol } }","docstring":""} {"signature":"override fun FunctionSymbolMarker . allRecursivelyOverriddenDeclarationsIncludingSelf ( containingClass : RegularClassSymbolMarker ? ) : List < CallableSymbolMarker >","body":"{ return when ( val symbol = asSymbol ( ) ) { is FirConstructorSymbol , is FirFunctionWithoutNameSymbol -> listOf ( symbol ) is FirNamedFunctionSymbol -> { if ( containingClass == null ) return listOf ( symbol ) val session = symbol . moduleData . session ( listOf ( symbol ) + symbol . overriddenFunctions ( containingClass . asSymbol ( ) , session , actualScopeSession ) . asSequence ( ) ) . filter { ! it . isSubstitutionOrIntersectionOverride && it . origin != FirDeclarationOrigin . Delegated } } } }","docstring":""} {"signature":"override fun CallableSymbolMarker . isAnnotationConstructor ( ) : Boolean","body":"{ val symbol = asSymbol ( ) return symbol . isAnnotationConstructor ( symbol . moduleData . session ) }","docstring":""} {"signature":"override fun areCompatibleExpectActualTypes ( expectType : KotlinTypeMarker ? , actualType : KotlinTypeMarker ? , parameterOfAnnotationComparisonMode : Boolean , dynamicTypesEqualToAnything : Boolean ) : Boolean","body":"{ if ( expectType == null ) return actualType == null if ( actualType == null ) return false if ( ! dynamicTypesEqualToAnything ) { val isExpectedDynamic = expectType is ConeDynamicType val isActualDynamic = actualType is ConeDynamicType if ( isExpectedDynamic && ! isActualDynamic || ! isExpectedDynamic && isActualDynamic ) { return false } } val actualizedExpectType = ( expectType as ConeKotlinType ) . actualize ( ) val actualizedActualType = ( actualType as ConeKotlinType ) . actualize ( ) if ( parameterOfAnnotationComparisonMode && actualizedExpectType is ConeClassLikeType && actualizedExpectType . isArrayType && actualizedActualType is ConeClassLikeType && actualizedActualType . isArrayType ) { return AbstractTypeChecker . equalTypes ( createTypeCheckerState ( ) , actualizedExpectType . convertToArrayWithOutProjections ( ) , actualizedActualType . convertToArrayWithOutProjections ( ) ) } return AbstractTypeChecker . equalTypes ( actualSession . typeContext , actualizedExpectType , actualizedActualType ) }","docstring":""} {"signature":"private fun ConeClassLikeType . convertToArrayWithOutProjections ( ) : ConeClassLikeType","body":"{ val argumentsWithOutProjection = Array ( typeArguments . size ) { i -> val typeArgument = typeArguments [ i ] if ( typeArgument !is ConeKotlinType ) typeArgument else ConeKotlinTypeProjectionOut ( typeArgument ) } return ConeClassLikeTypeImpl ( lookupTag , argumentsWithOutProjection , isNullable ) }","docstring":""} {"signature":"override fun isSubtypeOf ( superType : KotlinTypeMarker , subType : KotlinTypeMarker ) : Boolean","body":"{ return AbstractTypeChecker . isSubtypeOf ( createTypeCheckerState ( ) , subType = subType , superType = superType ) }","docstring":""} {"signature":"private fun ConeKotlinType . actualize ( ) : ConeKotlinType","body":"{ val classId = classId if ( this is ConeClassLikeType && classId ? . isNestedClass == true ) { val classSymbol = classId . toSymbol ( actualSession ) if ( classSymbol is FirRegularClassSymbol && classSymbol . isExpect ) { tryExpandExpectNestedClassActualizedViaTypealias ( this , classSymbol ) ? . let { return it . actualizeTypeArguments ( ) } } } return fullyExpandedType ( actualSession ) . actualizeTypeArguments ( ) }","docstring":""} {"signature":"private fun ConeKotlinType . actualizeTypeArguments ( ) : ConeKotlinType","body":"{ if ( this !is ConeClassLikeType ) { return this } return withArguments { arg -> if ( arg is ConeKotlinTypeProjection ) { arg . replaceType ( arg . type . actualize ( ) ) as ConeTypeProjection } else arg } }","docstring":""} {"signature":"private fun tryExpandExpectNestedClassActualizedViaTypealias ( expectNestedClassType : ConeClassLikeType , expectNestedClassSymbol : FirRegularClassSymbol , ) : ConeClassLikeType ?","body":"{ val expectNestedClassId = expectNestedClassSymbol . classId val expectOutermostClassId = expectNestedClassId . outermostClassId val actualTypealiasSymbol = expectOutermostClassId . toSymbol ( actualSession ) as? FirTypeAliasSymbol ? : return null val actualOutermostClassId = actualTypealiasSymbol . fullyExpandedClass ( actualSession ) ? . classId ? : return null val actualNestedClassId = ClassId . fromString ( expectNestedClassId . asString ( ) . replaceFirst ( expectOutermostClassId . asString ( ) , actualOutermostClassId . asString ( ) ) ) return actualNestedClassId . constructClassLikeType ( expectNestedClassType . typeArguments , expectNestedClassType . isNullable , expectNestedClassType . attributes ) }","docstring":"/**\n * In case of `expect` nested classes actualized via typealias we can't simply find actual symbol by `expect` `ClassId`\n * (like we do for top-level classes), because `ClassId` is different.\n * For example, `expect` class `com/example/ExpectClass.Nested` may have actual with id `real/package/ActualTypeliasTarget.Nested`.\n * So, we first expand outermost class, and then construct `ClassId` for nested class.\n */"} {"signature":"private fun createTypeCheckerState ( ) : TypeCheckerState","body":"{ return actualSession . typeContext . newTypeCheckerState ( errorTypesEqualToAnything = true , stubTypesEqualToAnything = false ) }","docstring":""} {"signature":"override fun RegularClassSymbolMarker . isNotSamInterface ( ) : Boolean","body":"{ val type = asSymbol ( ) . defaultType ( ) val isSam = FirSamResolver ( actualSession , actualScopeSession ) . isSamType ( type ) return ! isSam }","docstring":""} {"signature":"override fun CallableSymbolMarker . isFakeOverride ( containingExpectClass : RegularClassSymbolMarker ? ) : Boolean","body":"{ if ( containingExpectClass == null ) { return false } val symbol = asSymbol ( ) val classSymbol = containingExpectClass . asSymbol ( ) if ( symbol !is FirConstructorSymbol && symbol . dispatchReceiverType ? . classId != classSymbol . classId ) { return true } return symbol . isSubstitutionOrIntersectionOverride }","docstring":""} {"signature":"override fun areAnnotationArgumentsEqual ( expectAnnotation : AnnotationCallInfo , actualAnnotation : AnnotationCallInfo , collectionArgumentsCompatibilityCheckStrategy : ExpectActualCollectionArgumentsCompatibilityCheckStrategy , ) : Boolean","body":"{ fun AnnotationCallInfo . getFirAnnotation ( ) : FirAnnotation { return ( this as AnnotationCallInfoImpl ) . annotation } return areFirAnnotationsEqual ( expectAnnotation . getFirAnnotation ( ) , actualAnnotation . getFirAnnotation ( ) ) }","docstring":""} {"signature":"private fun areFirAnnotationsEqual ( annotation1 : FirAnnotation , annotation2 : FirAnnotation ) : Boolean","body":"{ fun FirAnnotation . hasResolvedArguments ( ) : Boolean { return resolved || ( this is FirAnnotationCall && arguments . isEmpty ( ) ) } check ( annotation1 . hasResolvedArguments ( ) && annotation2 . hasResolvedArguments ( ) ) { \"\" } if ( ! areCompatibleExpectActualTypes ( annotation1 . resolvedType , annotation2 . resolvedType , parameterOfAnnotationComparisonMode = false ) ) { return false } val args1 = annotation1 . argumentMapping . mapping val args2 = annotation2 . argumentMapping . mapping if ( args1 . size != args2 . size ) { return false } return args1 . all { ( key , value1 ) -> val value2 = args2 [ key ] value2 != null && areAnnotationArgumentsEqual ( value1 , value2 ) } }","docstring":""} {"signature":"private fun areAnnotationArgumentsEqual ( expression1 : FirExpression , expression2 : FirExpression ) : Boolean","body":"{ return when { expression1 is FirLiteralExpression < * > && expression2 is FirLiteralExpression < * > -> { expression1 . value == expression2 . value } else -> true } }","docstring":""} {"signature":"private fun getAnnotationClass ( ) : FirRegularClassSymbol ?","body":"= getAnnotationConeType ( ) ? . toRegularClassSymbol ( actualSession )","docstring":""} {"signature":"private fun getAnnotationConeType ( ) : ConeClassLikeType ?","body":"{ val coneType = annotation . toAnnotationClassLikeType ( actualSession ) ? . actualize ( ) as? ConeClassLikeType if ( coneType is ConeErrorType ) { return null } return coneType }","docstring":""} {"signature":"override fun onMatchedMembers ( expectSymbol : DeclarationSymbolMarker , actualSymbol : DeclarationSymbolMarker , containingExpectClassSymbol : RegularClassSymbolMarker ? , containingActualClassSymbol : RegularClassSymbolMarker ? )","body":"{ if ( containingActualClassSymbol == null || containingExpectClassSymbol == null ) return containingActualClassSymbol . asSymbol ( ) . addMemberExpectForActualMapping ( expectSymbol . asSymbol ( ) , actualSymbol . asSymbol ( ) , containingExpectClassSymbol . asSymbol ( ) , ExpectActualMatchingCompatibility . MatchedSuccessfully ) }","docstring":""} {"signature":"override fun onMismatchedMembersFromClassScope ( expectSymbol : DeclarationSymbolMarker , actualSymbolsByIncompatibility : Map < ExpectActualMatchingCompatibility . Mismatch , List < DeclarationSymbolMarker > > , containingExpectClassSymbol : RegularClassSymbolMarker ? , containingActualClassSymbol : RegularClassSymbolMarker ? )","body":"{ if ( containingExpectClassSymbol == null || containingActualClassSymbol == null ) return for ( ( incompatibility , actualSymbols ) in actualSymbolsByIncompatibility . entries ) { for ( actualSymbol in actualSymbols ) { containingActualClassSymbol . asSymbol ( ) . addMemberExpectForActualMapping ( expectSymbol . asSymbol ( ) , actualSymbol . asSymbol ( ) , containingExpectClassSymbol . asSymbol ( ) , incompatibility , ) } } }","docstring":""} {"signature":"private fun FirRegularClassSymbol . addMemberExpectForActualMapping ( expectMember : FirBasedSymbol < * > , actualMember : FirBasedSymbol < * > , expectClassSymbol : FirRegularClassSymbol , compatibility : ExpectActualMatchingCompatibility , )","body":"{ check ( allowedWritingMemberExpectForActualMapping ) { \"\" } val fir = fir val expectForActualMap = fir . memberExpectForActual ? : mutableMapOf ( ) fir . memberExpectForActual = expectForActualMap val expectToCompatibilityMap = expectForActualMap . asMutableMap ( ) . computeIfAbsent ( actualMember to expectClassSymbol ) { mutableMapOf ( ) } expectToCompatibilityMap . asMutableMap ( ) [ expectMember ] = compatibility }","docstring":""} {"signature":"private fun < K , V > Map < K , V > . asMutableMap ( ) : MutableMap < K , V >","body":"= this as MutableMap","docstring":""} {"signature":"override fun skipCheckingAnnotationsOfActualClassMember ( actualMember : DeclarationSymbolMarker ) : Boolean","body":"{ return ( actualMember . asSymbol ( ) . fir as? FirMemberDeclaration ) ? . isActual == true }","docstring":""} {"signature":"override fun findPotentialExpectClassMembersForActual ( expectClass : RegularClassSymbolMarker , actualClass : RegularClassSymbolMarker , actualMember : DeclarationSymbolMarker , ) : Map < FirBasedSymbol < * > , ExpectActualMatchingCompatibility >","body":"{ val mapping = actualClass . asSymbol ( ) . fir . memberExpectForActual return mapping ? . get ( actualMember to expectClass ) ? : emptyMap ( ) }","docstring":""} {"signature":"override fun DeclarationSymbolMarker . getSourceElement ( ) : SourceElementMarker","body":"= FirSourceElement ( asSymbol ( ) . source )","docstring":""} {"signature":"override fun TypeRefMarker . getClassId ( ) : ClassId ?","body":"= ( this as FirResolvedTypeRef ) . type . fullyExpandedType ( actualSession ) . classId","docstring":""} {"signature":"override fun checkAnnotationsOnTypeRefAndArguments ( expectContainingSymbol : DeclarationSymbolMarker , actualContainingSymbol : DeclarationSymbolMarker , expectTypeRef : TypeRefMarker , actualTypeRef : TypeRefMarker , checker : ExpectActualMatchingContext . AnnotationsCheckerCallback , )","body":"{ check ( expectTypeRef is FirResolvedTypeRef && actualTypeRef is FirResolvedTypeRef ) checkAnnotationsOnTypeRefAndArgumentsImpl ( expectContainingSymbol . asSymbol ( ) , actualContainingSymbol . asSymbol ( ) , expectTypeRef , actualTypeRef , checker ) }","docstring":""} {"signature":"private fun checkAnnotationsOnTypeRefAndArgumentsImpl ( expectContainingSymbol : FirBasedSymbol < * > , actualContainingSymbol : FirBasedSymbol < * > , expectTypeRef : FirTypeRef ? , actualTypeRef : FirTypeRef ? , checker : ExpectActualMatchingContext . AnnotationsCheckerCallback , )","body":"{ fun FirAnnotationContainer . getAnnotations ( anchor : FirBasedSymbol < * > ) : List < AnnotationCallInfoImpl > { return resolvedAnnotationsWithArguments ( anchor ) . map ( :: AnnotationCallInfoImpl ) } if ( expectTypeRef == null || actualTypeRef == null ) return if ( expectTypeRef is FirErrorTypeRef || actualTypeRef is FirErrorTypeRef ) return checker . check ( expectTypeRef . getAnnotations ( expectContainingSymbol ) , actualTypeRef . getAnnotations ( actualContainingSymbol ) , FirSourceElement ( actualTypeRef . source ) ) val expectDelegatedTypeRef = ( expectTypeRef as? FirResolvedTypeRef ) ? . delegatedTypeRef ? : return val actualDelegatedTypeRef = ( actualTypeRef as? FirResolvedTypeRef ? ) ? . delegatedTypeRef ? : return when { expectDelegatedTypeRef is FirUserTypeRef && actualDelegatedTypeRef is FirUserTypeRef -> { val expectQualifier = expectDelegatedTypeRef . qualifier val actualQualifier = actualDelegatedTypeRef . qualifier for ( ( expectPart , actualPart ) in expectQualifier . zipIfSizesAreEqual ( actualQualifier ) . orEmpty ( ) ) { val expectPartTypeArguments = expectPart . typeArgumentList . typeArguments val actualPartTypeArguments = actualPart . typeArgumentList . typeArguments val zippedArgs = expectPartTypeArguments . zipIfSizesAreEqual ( actualPartTypeArguments ) . orEmpty ( ) for ( ( expectTypeArgument , actualTypeArgument ) in zippedArgs ) { if ( expectTypeArgument !is FirTypeProjectionWithVariance || actualTypeArgument !is FirTypeProjectionWithVariance ) { continue } checkAnnotationsOnTypeRefAndArgumentsImpl ( expectContainingSymbol , actualContainingSymbol , expectTypeArgument . typeRef , actualTypeArgument . typeRef , checker ) } } } expectDelegatedTypeRef is FirFunctionTypeRef && actualDelegatedTypeRef is FirFunctionTypeRef -> { checkAnnotationsOnTypeRefAndArgumentsImpl ( expectContainingSymbol , actualContainingSymbol , expectDelegatedTypeRef . receiverTypeRef , actualDelegatedTypeRef . receiverTypeRef , checker , ) checkAnnotationsOnTypeRefAndArgumentsImpl ( expectContainingSymbol , actualContainingSymbol , expectDelegatedTypeRef . returnTypeRef , actualDelegatedTypeRef . returnTypeRef , checker , ) val expectParams = expectDelegatedTypeRef . parameters val actualParams = actualDelegatedTypeRef . parameters for ( ( expectParam , actualParam ) in expectParams . zipIfSizesAreEqual ( actualParams ) . orEmpty ( ) ) { checkAnnotationsOnTypeRefAndArgumentsImpl ( expectContainingSymbol , actualContainingSymbol , expectParam . returnTypeRef , actualParam . returnTypeRef , checker ) } } } }","docstring":""} {"signature":"override fun create ( actualSession : FirSession , actualScopeSession : ScopeSession , allowedWritingMemberExpectForActualMapping : Boolean , ) : FirExpectActualMatchingContextImpl","body":"= FirExpectActualMatchingContextImpl ( actualSession , actualScopeSession , allowedWritingMemberExpectForActualMapping )","docstring":""} {"signature":"fun foo ( iterable : Iterable < Int > , iterator : Iterator < Int > , comparable : Comparable < Any > )","body":"{ checkSubtype < Iterable < Any > > ( iterable ) checkSubtype < Iterator < Any > > ( iterator ) checkSubtype < Comparable < String > > ( comparable ) }","docstring":""} {"signature":"fun bar ( c : Collection < Int > )","body":"{ checkSubtype < Iterable < Any > > ( c ) checkSubtype < Iterator < Any > > ( c . iterator ( ) ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val p = :: pr if ( p . get ( ) . value != \"\" ) return \"\" if ( p . name != \"\" ) return \"\" p . set ( Box ( \"\" ) ) if ( p . get ( ) . value != \"\" ) return \"\" return \"\" }","docstring":""} {"signature":"fun foo ( p : Int , p2 : Double ) : Short","body":"= ","docstring":"/**\n * Function foo description\n *\n * @param p first Integer to consume\n * @param p2 second Double to consume\n * @return Short, constant 1\n */"} {"signature":"suspend fun suspendICInt ( ) : ICInt","body":"= ICInt ( )","docstring":""} {"signature":"suspend fun suspendAny ( ) : Any","body":"= ICInt ( )","docstring":""} {"signature":"suspend fun < T > suspendGeneric ( x : T ) : T","body":"= x","docstring":""} {"signature":"fun useICInt ( x : ICInt )","body":"{ }","docstring":""} {"signature":"fun useAny ( x : Any )","body":"{ }","docstring":""} {"signature":"suspend fun test ( )","body":"{ useICInt ( suspendICInt ( ) ) useICInt ( suspendGeneric ( ICInt ( ) ) ) useAny ( suspendAny ( ) ) useAny ( suspendICInt ( ) ) }","docstring":""} {"signature":"@ Test fun sample ( )","body":"{ val testProject = mixedJvmTestProject { dokkaConfiguration { moduleName = \"\" jvmSourceSet { } } kotlinSourceDirectory { ktFile ( pathFromSrc = \"\" ) { + \"\" } javaFile ( pathFromSrc = \"\" ) { + \"\"\"\"\"\" } } javaSourceDirectory { ktFile ( pathFromSrc = \"\" ) { + \"\" } javaFile ( pathFromSrc = \"\" ) { + \"\"\"\"\"\" } } } val module = testProject . parse ( ) assertEquals ( \"\" , module . name ) assertEquals ( , module . packages . size ) val pckg = module . packages [ ] assertEquals ( \"\" , pckg . name ) assertEquals ( , pckg . classlikes . size ) assertEquals ( , pckg . functions . size ) val firstClasslike = pckg . classlikes [ ] assertEquals ( \"\" , firstClasslike . name ) val secondClasslike = pckg . classlikes [ ] assertEquals ( \"\" , secondClasslike . name ) val functions = pckg . functions . sortedBy { it . name } val firstFunction = functions [ ] assertEquals ( \"\" , firstFunction . name ) val secondFunction = functions [ ] assertEquals ( \"\" , secondFunction . name ) }","docstring":"/**\n * Used as a sample for [mixedJvmTestProject]\n */"} {"signature":"fun box ( ) : String","body":"{ for ( ( _ , _ ) in ( .. ) . withIndex ( ) ) { } return \"\" }","docstring":""} {"signature":"@ Test fun `smoke single function` ( )","body":"{ withKlibScope ( source = \"\"\"\"\"\" . trimIndent ( ) ) { val symbol = getAllSymbols ( ) . single ( ) assertTrue ( symbol is KtFunctionSymbol ) assertEquals ( \"\" , symbol . name . asString ( ) ) } }","docstring":""} {"signature":"@ Test fun `smoke empty file` ( )","body":"{ withKlibScope ( source = \"\" ) { val symbols = getAllSymbols ( ) val classifiersNames = getPossibleClassifierNames ( ) val callableNames = getPossibleCallableNames ( ) assertTrue ( symbols . toList ( ) . isEmpty ( ) ) assertTrue ( classifiersNames . toList ( ) . isEmpty ( ) ) assertTrue ( callableNames . toList ( ) . isEmpty ( ) ) } }","docstring":""} {"signature":"@ Test fun `callable name filter` ( )","body":"{ withKlibScope ( source = simpleContentWithCollisions ) { val symbol = getCallableSymbols { it . asString ( ) == \"\" } . single ( ) assertTrue ( symbol is KtFunctionSymbol ) assertEquals ( \"\" , symbol . name . asString ( ) ) } }","docstring":""} {"signature":"@ Test fun `classifier name filter` ( )","body":"{ withKlibScope ( source = simpleContentWithCollisions ) { val symbol = getClassifierSymbols { it . asString ( ) == \"\" } . single ( ) assertTrue ( symbol is KtNamedSymbol ) assertEquals ( \"\" , symbol . name . asString ( ) ) } }","docstring":""} {"signature":"@ Test fun `possible classifier names` ( )","body":"{ withKlibScope ( source = simpleContentWithCollisions ) { val classifierNames = getPossibleClassifierNames ( ) assertContains ( classifierNames , Name . identifier ( \"\" ) ) assertContains ( classifierNames , Name . identifier ( \"\" ) ) } }","docstring":""} {"signature":"@ Test fun `possible callable names` ( )","body":"{ withKlibScope ( source = simpleContentWithCollisions ) { val callableNames = getPossibleCallableNames ( ) assertContains ( callableNames , Name . identifier ( \"\" ) ) assertContains ( callableNames , Name . identifier ( \"\" ) ) } }","docstring":""} {"signature":"private fun < T > withKlibScope ( @ Language ( \"\" ) source : String , block : KlibScope . ( ) -> T ) : T","body":"{ val srcFile = kotlin . io . path . createTempFile ( suffix = \"\" ) . also { it . writeText ( source ) } return withKlibScope ( srcFile , block ) }","docstring":""} {"signature":"@ OptIn ( KtAnalysisApiInternals :: class ) private fun < T > withKlibScope ( sources : Path , block : KlibScope . ( ) -> T ) : T","body":"{ val klib = compileToNativeKLib ( sources ) lateinit var module : KtLibraryModule val session = buildStandaloneAnalysisAPISession { registerProjectService ( KtLifetimeTokenProvider :: class . java , KtAlwaysAccessibleLifetimeTokenProvider ( ) ) val nativePlatform = NativePlatforms . unspecifiedNativePlatform buildKtModuleProvider { platform = nativePlatform module = addModule ( buildKtLibraryModule { addBinaryRoot ( klib ) platform = nativePlatform libraryName = \"\" } ) } } return analyze ( session . getAllLibraryModules ( ) . single ( ) ) { KlibScope ( module , this . analysisSession ) . block ( ) } }","docstring":""} {"signature":"@ org . junit . Test fun parametersInInnerClassConstructor ( )","body":"{ val inner = Outer ( ) . Inner ( \"\" ) Assert . assertEquals ( \"\" , inner . name ( ) ) val valueParameters = inner :: class . constructors . single ( ) . valueParameters Assert . assertEquals ( , valueParameters . size ) val annotations = valueParameters [ ] . annotations Assert . assertEquals ( , annotations . size ) Assert . assertEquals ( \"\" , annotations [ ] . annotationClass . simpleName ) }","docstring":""} {"signature":"fun < T > DataStreamWriter < T > . forEachBatch ( func : ( batch : Dataset < T > , batchId : Long ) -> Unit , ) : DataStreamWriter < T >","body":"= foreachBatch ( VoidFunction2 ( func ) )","docstring":"/**\n * :: Experimental ::\n *\n * (Scala-specific) Sets the output of the streaming query to be processed using the provided\n * function. This is supported only in the micro-batch execution modes (that is, when the\n * trigger is not continuous). In every micro-batch, the provided function will be called in\n * every micro-batch with (i) the output rows as a Dataset and (ii) the batch identifier.\n * The batchId can be used to deduplicate and transactionally write the output\n * (that is, the provided Dataset) to external systems. The output Dataset is guaranteed\n * to be exactly the same for the same batchId (assuming all operations are deterministic\n * in the query).\n *\n * @since 2.4.0\n */"} {"signature":"override fun lower ( irModule : IrModuleFragment )","body":"{ if ( context . config . shouldValidateIr ) { validate ( irModule ) } }","docstring":""} {"signature":"protected abstract fun validate ( irModule : IrModuleFragment )","body":"protected abstract fun validate ( irModule : IrModuleFragment )","docstring":""} {"signature":"override fun validate ( irModule : IrModuleFragment )","body":"{ validationCallback ( context , irModule , checkProperties = true ) }","docstring":""} {"signature":"private fun checkAllFileLevelDeclarationsAreClasses ( module : IrModuleFragment )","body":"{ assert ( module . files . all { irFile -> irFile . declarations . all { it is IrClass } } ) }","docstring":""} {"signature":"override fun validate ( irModule : IrModuleFragment )","body":"{ validationCallback ( context , irModule , checkProperties = true ) checkAllFileLevelDeclarationsAreClasses ( irModule ) val validator = object : IrElementVisitorVoid { override fun visitElement ( element : IrElement ) { element . acceptChildrenVoid ( this ) } override fun visitProperty ( declaration : IrProperty ) { error ( \"\" ) } override fun visitAnonymousInitializer ( declaration : IrAnonymousInitializer ) { error ( \"\" ) } } irModule . acceptVoid ( validator ) }","docstring":""} {"signature":"fun runSuspend ( c : suspend ( ) -> Unit )","body":"{ c . startCoroutine ( EmptyContinuation ) }","docstring":""} {"signature":"fun foo ( s : String ) : String","body":"= s + \"\"","docstring":""} {"signature":"suspend fun invokeSuspend ( fn : suspend ( String ) -> String , arg : String )","body":"= fn . invoke ( arg )","docstring":""} {"signature":"fun box ( ) : String","body":"{ var test = \"\" runSuspend { test = invokeSuspend ( :: foo , \"\" ) } return test }","docstring":""} {"signature":"@ Test fun testExampleBuiltin01 ( )","body":"{ captureOutput ( \"\" ) { example . exampleBuiltin01 . main ( ) } . verifyOutputLines ( \"\" ) }","docstring":""} {"signature":"@ Test fun testExampleBuiltin02 ( )","body":"{ captureOutput ( \"\" ) { example . exampleBuiltin02 . main ( ) } . verifyOutputLines ( \"\" ) }","docstring":""} {"signature":"@ Test fun testExampleBuiltin03 ( )","body":"{ captureOutput ( \"\" ) { example . exampleBuiltin03 . main ( ) } . verifyOutputLines ( \"\" ) }","docstring":""} {"signature":"@ Test fun testExampleBuiltin04 ( )","body":"{ captureOutput ( \"\" ) { example . exampleBuiltin04 . main ( ) } . verifyOutputLines ( \"\" ) }","docstring":""} {"signature":"@ Test fun testExampleBuiltin05 ( )","body":"{ captureOutput ( \"\" ) { example . exampleBuiltin05 . main ( ) } . verifyOutputLines ( \"\" ) }","docstring":""} {"signature":"@ Test fun testExampleBuiltin06 ( )","body":"{ captureOutput ( \"\" ) { example . exampleBuiltin06 . main ( ) } . verifyOutputLines ( \"\" ) }","docstring":""} {"signature":"@ Test fun testExampleBuiltin07 ( )","body":"{ captureOutput ( \"\" ) { example . exampleBuiltin07 . main ( ) } . verifyOutputLines ( \"\" ) }","docstring":""} {"signature":"@ Test fun testExampleBuiltin08 ( )","body":"{ captureOutput ( \"\" ) { example . exampleBuiltin08 . main ( ) } . verifyOutputLines ( \"\" ) }","docstring":""} {"signature":"@ Test fun testExampleBuiltin09 ( )","body":"{ captureOutput ( \"\" ) { example . exampleBuiltin09 . main ( ) } . verifyOutputLines ( \"\" ) }","docstring":""} {"signature":"@ Test fun testExampleBuiltin10 ( )","body":"{ captureOutput ( \"\" ) { example . exampleBuiltin10 . main ( ) } . verifyOutputLines ( \"\" ) }","docstring":""} {"signature":"@ Test fun testExampleBuiltin11 ( )","body":"{ captureOutput ( \"\" ) { example . exampleBuiltin11 . main ( ) } . verifyOutputLines ( \"\" , \"\" ) }","docstring":""} {"signature":"@ Test fun testExampleBuiltin12 ( )","body":"{ captureOutput ( \"\" ) { example . exampleBuiltin12 . main ( ) } . verifyOutputLines ( \"\" ) }","docstring":""} {"signature":"@ Test fun testExampleBuiltin13 ( )","body":"{ captureOutput ( \"\" ) { example . exampleBuiltin13 . main ( ) } . verifyOutputLines ( \"\" ) }","docstring":""} {"signature":"@ JvmStatic fun isMac ( )","body":"= HostManager . hostIsMac","docstring":""} {"signature":"@ JvmStatic fun isWindows ( )","body":"= HostManager . hostIsMingw","docstring":""} {"signature":"@ JvmStatic fun isLinux ( )","body":"= HostManager . hostIsLinux","docstring":""} {"signature":"@ JvmStatic fun isAppleTarget ( project : Project ) : Boolean","body":"{ val target = getTarget ( project ) return target . family . isAppleFamily }","docstring":""} {"signature":"@ JvmStatic fun isAppleTarget ( target : KonanTarget ) : Boolean","body":"{ return target . family . isAppleFamily }","docstring":""} {"signature":"@ JvmStatic fun isWindowsTarget ( project : Project )","body":"= getTarget ( project ) . family == Family . MINGW","docstring":""} {"signature":"@ JvmStatic fun getTarget ( project : Project ) : KonanTarget","body":"{ val platformManager = project . platformManager val targetName = project . project . testTarget . name return platformManager . targetManager ( targetName ) . target }","docstring":""} {"signature":"@ JvmStatic fun needSmallBinary ( project : Project ) : Boolean","body":"{ return getTarget ( project ) . needSmallBinary ( ) }","docstring":""} {"signature":"@ JvmStatic fun isK2 ( project : Project ) : Boolean","body":"{ val idx = project . globalTestArgs . indexOf ( \"\" ) if ( idx == - ) return true return project . globalTestArgs [ idx + ] . toDouble ( ) >= }","docstring":""} {"signature":"@ JvmStatic fun supportsLibBacktrace ( project : Project ) : Boolean","body":"{ return getTarget ( project ) . supportsLibBacktrace ( ) }","docstring":""} {"signature":"@ JvmStatic fun supportsCoreSymbolication ( project : Project ) : Boolean","body":"{ return getTarget ( project ) . supportsCoreSymbolication ( ) }","docstring":""} {"signature":"@ JvmStatic fun checkXcodeVersion ( project : Project )","body":"{ val properties = PropertiesProvider ( project ) val requiredMajorVersion = properties . xcodeMajorVersion if ( ! DependencyProcessor . isInternalSeverAvailable && properties . checkXcodeVersion && requiredMajorVersion != null ) { val currentXcodeVersion = Xcode . findCurrent ( ) . version . toString ( ) val currentMajorVersion = currentXcodeVersion . splitToSequence ( '' ) . first ( ) if ( currentMajorVersion != requiredMajorVersion ) { throw IllegalStateException ( \"\" + \"\" ) } } }","docstring":""} {"signature":"fun unsupportedPlatformException ( )","body":"= TargetSupportException ( )","docstring":""} {"signature":"@ Test fun precision ( )","body":"{ columnOf ( , ) . scale ( ) shouldBe columnOf ( , ) . scale ( ) shouldBe columnOf ( , ) . scale ( ) shouldBe defaultPrecision columnOf ( , ) . scale ( ) shouldBe columnOf ( , ) . scale ( ) shouldBe columnOf ( , - ) . scale ( ) shouldBe columnOf ( , - ) . scale ( ) shouldBe columnOf ( ) . scale ( ) shouldBe defaultPrecision columnOf ( ) . scale ( ) shouldBe - }","docstring":""} {"signature":"@ Test fun format ( )","body":"{ val d = DecimalFormatSymbols . getInstance ( ) . decimalSeparator val value = val expected = \"\" val digits = val formatter = RendererDecimalFormat . fromPrecision ( digits ) value . format ( formatter ) shouldBe expected value . toFloat ( ) . format ( formatter ) shouldBe expected value . toBigDecimal ( ) . format ( formatter ) shouldBe expected }","docstring":""} {"signature":"@ Test fun emptyColPrecision ( )","body":"{ val col by columnOf ( ) col . filter { false } . scale ( ) shouldBe }","docstring":""} {"signature":"operator fun getValue ( t : Any ? , p : KProperty < * > ) : Int","body":"= inner","docstring":""} {"signature":"operator fun Delegate . setValue ( t : Any ? , p : KProperty < * > , i : Int )","body":"{ inner = i }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val c = A ( ) if ( c . prop != ) return \"\" c . prop = if ( c . prop != ) return \"\" return \"\" }","docstring":""} {"signature":"public fun foo ( p0 : Array < out Int > ? )","body":"public fun foo ( p0 : Array < out Int > ? )","docstring":""} {"signature":"public fun dummy ( )","body":"public fun dummy ( )","docstring":""} {"signature":"override fun foo ( p0 : Array < out Int > ? )","body":"override fun foo ( p0 : Array < out Int > ? )","docstring":""} {"signature":"fun formatDouble ( d : Double ) : String","body":"{ if ( d . roundToInt ( ) . toDouble ( ) == d ) { return \"\" } else { return \"\" } }","docstring":""} {"signature":"fun printClass ( )","body":"{ val name = this :: class . qualifiedName println ( name ) }","docstring":""} {"signature":"@ DisplayName ( \"\" ) @ GradleTest fun shouldDownloadDependenciesBeforeCompilerExecution ( gradleVersion : GradleVersion )","body":"{ nativeProject ( \"\" , gradleVersion ) { build ( \"\" ) { assertOutputContains ( \"\" ) assertOutputDoesNotContain ( \"\" ) } } }","docstring":""} {"signature":"@ DisplayName ( \"\" ) @ GradleTest fun checkCompilerDownloadsDependenciesWhenToochainDisabled ( gradleVersion : GradleVersion )","body":"{ nativeProject ( \"\" , gradleVersion ) { build ( \"\" , buildOptions = defaultBuildOptions . copy ( freeArgs = listOf ( \"\" ) , ) ) { assertOutputContains ( \"\" ) assertOutputDoesNotContain ( \"\" ) } } }","docstring":""} {"signature":"@ DisplayName ( \"\" ) @ GradleTest fun testNativeDependencies ( gradleVersion : GradleVersion )","body":"{ testNativeDependencies ( \"\" , \"\" , gradleVersion ) }","docstring":""} {"signature":"@ OptIn ( EnvironmentalVariablesOverride :: class ) private fun testNativeDependencies ( projectName : String , task : String , gradleVersion : GradleVersion )","body":"{ val konanDirectory = workingDir . resolve ( \"\" ) nativeProject ( projectName , gradleVersion , environmentVariables = EnvironmentalVariables ( Pair ( \"\" , \"\" ) ) , buildOptions = defaultBuildOptions . withBundledKotlinNative ( ) . copy ( konanDataDir = konanDirectory ) , ) { build ( task ) { val file = projectPath . resolve ( \"\" ) . toFile ( ) . also { it . createNewFile ( ) } val dependencies = konanDirectory . resolve ( \"\" ) . toFile ( ) assertTrue ( dependencies . exists ( ) ) assertTrue ( dependencies . listFiles ( ) != null , \"\" ) dependencies . listFiles ( ) ? . filter { it . name != \"\" } ? . forEach { val processRunResult = runProcess ( listOf ( \"\" , \"\" , \"\" , file . path , \"\" , it . absolutePath ) , workingDir . toFile ( ) ) assertProcessRunResult ( processRunResult ) { assertTrue ( isSuccessful ) } } } } }","docstring":""} {"signature":"@ DisplayName ( \"\" ) @ GradleTest @ OsCondition ( supportedOn = [ OS . MAC ] , enabledOnCI = [ OS . MAC ] ) fun testMacosNativeDependencies ( gradleVersion : GradleVersion )","body":"{ testNativeDependencies ( \"\" , \"\" , gradleVersion ) }","docstring":""} {"signature":"open suspend fun fetch ( identifier : U ) : T ?","body":"= null","docstring":""} {"signature":"fun box ( ) : String","body":"{ val genericString = AbstractPersistence :: class . java . declaredMethods . single { it . name . contains ( \"\" ) } . toGenericString ( ) if ( ! genericString . startsWith ( \"\" ) ) { return genericString } return \"\" }","docstring":""} {"signature":"override fun applyGradients ( graph : KGraph , tf : Ops , weights : List < Variable < Float > > , gradients : Gradients ) : List < Operand < Float > >","body":"{ val targets : MutableList < Operand < Float > > = ArrayList ( ) l1RegularizationStrengthConst = tf . constant ( l1RegularizationStrength , getDType ( ) ) l2RegularizationStrengthConst = tf . constant ( l2RegularizationStrength , getDType ( ) ) learningRateConst = tf . constant ( learningRate , getDType ( ) ) l2ShrinkageRegularizationStrengthConst = tf . constant ( l2ShrinkageRegularizationStrength , getDType ( ) ) learningRatePowerConst = tf . constant ( learningRatePower , getDType ( ) ) for ( i in weights . indices ) { val variable = weights [ i ] val varName = variable . ref ( ) . op ( ) . name ( ) val accumSlot : Variable < Float > = getSlot ( varName , ACCUMULATOR ) val linearSlot : Variable < Float > = getSlot ( varName , LINEAR_ACCUMULATOR ) val options = ApplyFtrl . useLocking ( true ) targets . add ( tf . train . applyFtrl ( variable , accumSlot , linearSlot , clipGradient . clipGradient ( tf , gradients . dy ( i ) ) , learningRateConst , l1RegularizationStrengthConst , l2RegularizationStrengthConst , l2ShrinkageRegularizationStrengthConst , learningRatePowerConst , options ) ) } return targets }","docstring":""} {"signature":"private fun createFtrlSlot ( graph : KGraph , tf : Ops , v : Output < Float > )","body":"{ val accumInitializerName = defaultInitializerOpName ( createName ( v , ACCUMULATOR ) ) val accumInitializer = tf . withName ( accumInitializerName ) . fill ( tf . shape ( v ) , tf . constant ( initialAccumulatorValue ) ) createSlot ( graph , tf , v . asOutput ( ) , ACCUMULATOR , accumInitializer ) val linearAccumInitializerName = defaultInitializerOpName ( createName ( v , LINEAR_ACCUMULATOR ) ) val linearAccumInitializer = tf . withName ( linearAccumInitializerName ) . fill ( tf . shape ( v ) , tf . constant ( ) ) createSlot ( graph , tf , v . asOutput ( ) , LINEAR_ACCUMULATOR , linearAccumInitializer ) }","docstring":""} {"signature":"override fun createSlots ( graph : KGraph , tf : Ops , variables : List < Output < Float > > )","body":"{ for ( v in variables ) { createFtrlSlot ( graph , tf , v . asOutput ( ) ) } }","docstring":""} {"signature":"fun testInt ( left : Int ? , right : Int ? , step : Int ? )","body":"{ right ? . let { for ( i in .. it ) { sb . append ( i ) } } sb . appendLine ( ) left ? . let { for ( i in it .. ) { sb . append ( i ) } } sb . appendLine ( ) step ? . let { for ( i in .. step it ) { sb . append ( i ) } } sb . appendLine ( ) right ? . let { for ( i in until it ) { sb . append ( i ) } } sb . appendLine ( ) left ? . let { for ( i in it until ) { sb . append ( i ) } } sb . appendLine ( ) step ? . let { for ( i in until step it ) { sb . append ( i ) } } sb . appendLine ( ) right ? . let { for ( i in it downTo ) { sb . append ( i ) } } sb . appendLine ( ) left ? . let { for ( i in downTo it ) { sb . append ( i ) } } sb . appendLine ( ) step ? . let { for ( i in downTo step it ) { sb . append ( i ) } } sb . appendLine ( ) }","docstring":""} {"signature":"fun testLong ( left : Long ? , right : Long ? , step : Long ? )","body":"{ right ? . let { for ( i in .. it ) { sb . append ( i ) } } sb . appendLine ( ) left ? . let { for ( i in it .. ) { sb . append ( i ) } } sb . appendLine ( ) step ? . let { for ( i in .. step it ) { sb . append ( i ) } } sb . appendLine ( ) right ? . let { for ( i in until it ) { sb . append ( i ) } } sb . appendLine ( ) left ? . let { for ( i in it until ) { sb . append ( i ) } } sb . appendLine ( ) step ? . let { for ( i in until step it ) { sb . append ( i ) } } sb . appendLine ( ) right ? . let { for ( i in it downTo ) { sb . append ( i ) } } sb . appendLine ( ) left ? . let { for ( i in downTo it ) { sb . append ( i ) } } sb . appendLine ( ) step ? . let { for ( i in downTo step it ) { sb . append ( i ) } } sb . appendLine ( ) }","docstring":""} {"signature":"fun testChar ( left : Char ? , right : Char ? , step : Int ? )","body":"{ right ? . let { for ( i in '' .. it ) { sb . append ( i ) } } sb . appendLine ( ) left ? . let { for ( i in it .. '' ) { sb . append ( i ) } } sb . appendLine ( ) step ? . let { for ( i in '' .. '' step it ) { sb . append ( i ) } } sb . appendLine ( ) right ? . let { for ( i in '' until it ) { sb . append ( i ) } } sb . appendLine ( ) left ? . let { for ( i in it until '' ) { sb . append ( i ) } } sb . appendLine ( ) step ? . let { for ( i in '' until '' step it ) { sb . append ( i ) } } sb . appendLine ( ) right ? . let { for ( i in it downTo '' ) { sb . append ( i ) } } sb . appendLine ( ) left ? . let { for ( i in '' downTo it ) { sb . append ( i ) } } sb . appendLine ( ) step ? . let { for ( i in '' downTo '' step it ) { sb . append ( i ) } } sb . appendLine ( ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ testInt ( , , ) testLong ( , , ) testChar ( '' , '' , ) assertEquals ( \"\"\"\"\"\" . trimIndent ( ) , sb . toString ( ) ) return \"\" }","docstring":""} {"signature":"override fun testFile ( ) : File","body":"{ return testServices . moduleStructure . originalTestDataFiles . first ( ) . firTestDataFile }","docstring":""} {"signature":"override fun hasFailure ( failedAssertions : List < WrappedException > ) : Boolean","body":"{ return failedAssertions . any { when ( it ) { is WrappedException . FromFacade -> it . facade is FirFrontendFacade is WrappedException . FromHandler -> it . handler . artifactKind == FrontendKinds . FIR else -> false } } }","docstring":""} {"signature":"fun accept ( t : T )","body":"fun accept ( t : T )","docstring":""} {"signature":"fun < T > sel ( x : T , y : T )","body":"= x","docstring":""} {"signature":"fun check ( x : IFoo < in T > )","body":"{ }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val g = sel ( G < A > ( ) , G < B > ( ) ) g . check { } return \"\" }","docstring":""} {"signature":"public suspend fun < T > runInterruptible ( context : CoroutineContext = EmptyCoroutineContext , block : ( ) -> T ) : T","body":"= withContext ( context ) { runInterruptibleInExpectedContext ( coroutineContext , block ) }","docstring":"/**\n * Calls the specified [block] with a given coroutine context in\n * [an interruptible manner](https://docs.oracle.com/javase/tutorial/essential/concurrency/interrupt.html).\n * The blocking code block will be interrupted and this function will throw [CancellationException]\n * if the coroutine is cancelled.\n *\n * Example:\n *\n * ```\n * withTimeout(500L) { // Cancels coroutine on timeout\n * runInterruptible { // Throws CancellationException if interrupted\n * doSomethingBlocking() // Interrupted on coroutines cancellation\n * }\n * }\n * ```\n *\n * There is an optional [context] parameter to this function working just like [withContext].\n * It enables single-call conversion of interruptible Java methods into suspending functions.\n * With one call here we are moving the call to [Dispatchers.IO] and supporting interruption:\n *\n * ```\n * suspend fun BlockingQueue.awaitTake(): T =\n * runInterruptible(Dispatchers.IO) { queue.take() }\n * ```\n *\n * `runInterruptible` uses [withContext] as an underlying mechanism for switching context,\n * meaning that the supplied [block] is invoked in an [undispatched][CoroutineStart.UNDISPATCHED]\n * manner directly by the caller if [CoroutineDispatcher] from the current [coroutineContext][currentCoroutineContext]\n * is the same as the one supplied in [context].\n */"} {"signature":"private fun < T > runInterruptibleInExpectedContext ( coroutineContext : CoroutineContext , block : ( ) -> T ) : T","body":"{ try { val threadState = ThreadState ( coroutineContext . job ) threadState . setup ( ) try { return block ( ) } finally { threadState . clearInterrupt ( ) } } catch ( e : InterruptedException ) { throw CancellationException ( \"\" ) . initCause ( e ) } }","docstring":""} {"signature":"fun setup ( )","body":"{ cancelHandle = job . invokeOnCompletion ( onCancelling = true , invokeImmediately = true , handler = this ) _state . loop { state -> when ( state ) { WORKING -> if ( _state . compareAndSet ( state , WORKING ) ) return INTERRUPTING , INTERRUPTED -> return else -> invalidState ( state ) } } }","docstring":""} {"signature":"fun clearInterrupt ( )","body":"{ _state . loop { state -> when ( state ) { WORKING -> if ( _state . compareAndSet ( state , FINISHED ) ) { cancelHandle ? . dispose ( ) return } INTERRUPTING -> { } INTERRUPTED -> { Thread . interrupted ( ) return } else -> invalidState ( state ) } } }","docstring":""} {"signature":"override fun invoke ( cause : Throwable ? )","body":"{ _state . loop { state -> when ( state ) { WORKING -> { if ( _state . compareAndSet ( state , INTERRUPTING ) ) { targetThread . interrupt ( ) _state . value = INTERRUPTED return } } FINISHED , INTERRUPTING , INTERRUPTED -> return else -> invalidState ( state ) } } }","docstring":""} {"signature":"private fun invalidState ( state : Int ) : Nothing","body":"= error ( \"\" )","docstring":""} {"signature":"internal fun __ieee754_rem_pio2 ( x : Double , y : DoubleArray ) : Int","body":"{ var z : Double = var w : Double var t : Double var r : Double var fn : Double val tx : DoubleArray = DoubleArray ( ) var e0 : Int var i : Int var j : Int var nx : Int var n : Int var ix : Int var hx : Int hx = __HI ( x ) ix = hx and if ( ix <= ) { y [ ] = x ; y [ ] = ; return } if ( ix < ) { if ( hx > ) { z = x - pio2_1 if ( ix != ) { y [ ] = z - pio2_1t y [ ] = ( z - y [ ] ) - pio2_1t } else { z -= pio2_2 y [ ] = z - pio2_2t y [ ] = ( z - y [ ] ) - pio2_2t } return } else { z = x + pio2_1 if ( ix != ) { y [ ] = z + pio2_1t y [ ] = ( z - y [ ] ) + pio2_1t } else { z += pio2_2 y [ ] = z + pio2_2t y [ ] = ( z - y [ ] ) + pio2_2t } return - } } if ( ix <= ) { t = fabs ( x ) n = ( t * invpio2 + half ) . toInt ( ) fn = n . toDouble ( ) r = t - fn * pio2_1 w = fn * pio2_1t if ( n < && ix != npio2_hw [ n - ] ) { y [ ] = r - w } else { j = ix shr y [ ] = r - w i = j - ( ( ( __HI ( y [ ] ) ) shr ) and ) if ( i > ) { t = r w = fn * pio2_2 r = t - w w = fn * pio2_2t - ( ( t - r ) - w ) y [ ] = r - w i = j - ( ( ( __HI ( y [ ] ) ) shr ) and ) if ( i > ) { t = r w = fn * pio2_3 r = t - w w = fn * pio2_3t - ( ( t - r ) - w ) y [ ] = r - w } } } y [ ] = ( r - y [ ] ) - w if ( hx < ) { y [ ] = - y [ ] ; y [ ] = - y [ ] ; return - n } else return n } if ( ix >= ) { y [ ] = x - x y [ ] = y [ ] ; return } z = doubleSetWord ( d = z , lo = __LO ( x ) ) e0 = ( ix shr ) - z = doubleSetWord ( d = z , hi = ix - ( e0 shl ) ) i = while ( i < ) { tx [ i ] = ( z . toInt ( ) ) . toDouble ( ) z = ( z - tx [ i ] ) * two24 i ++ } tx [ ] = z nx = while ( tx [ nx - ] == zero ) nx -- n = __kernel_rem_pio2 ( tx , y , e0 , nx , , two_over_pi ) if ( hx < ) { y [ ] = - y [ ] ; y [ ] = - y [ ] ; return - n } return n }","docstring":""} {"signature":"fun foo ( ) : Int","body":"{ while ( true ) { } }","docstring":""} {"signature":"fun foo1 ( ) : Boolean","body":"{ while ( true ) { if ( bar ( ) ) continue return true } }","docstring":""} {"signature":"fun bar ( ) : Boolean","body":"= true","docstring":""} {"signature":"@ JsName ( \"\" ) public fun test ( )","body":"{ }","docstring":""} {"signature":"fun ExecutionStackFrame ? . traverseStack ( )","body":"= generateSequence ( this ) { it . previous }","docstring":""} {"signature":"fun ExecutionStackFrame ? . push ( )","body":"= MutableExecutionStackFrame ( this )","docstring":""} {"signature":"fun JvmBackendContext . createJvmIrBuilder ( symbol : IrSymbol , startOffset : Int = UNDEFINED_OFFSET , endOffset : Int = UNDEFINED_OFFSET , ) : JvmIrBuilder","body":"= JvmIrBuilder ( this , symbol , startOffset , endOffset )","docstring":""} {"signature":"fun JvmBackendContext . createJvmIrBuilder ( symbol : IrSymbol , source : IrElement ) : JvmIrBuilder","body":"= JvmIrBuilder ( this , symbol , source . startOffset , source . endOffset )","docstring":""} {"signature":"fun JvmBackendContext . createJvmIrBuilder ( scopeWithIr : ScopeWithIr ) : JvmIrBuilder","body":"= JvmIrBuilder ( this , scopeWithIr . scope . scopeOwnerSymbol , UNDEFINED_OFFSET , UNDEFINED_OFFSET )","docstring":""} {"signature":"fun JvmBackendContext . createJvmIrBuilder ( scopeWithIr : ScopeWithIr , startOffset : Int , endOffset : Int ) : JvmIrBuilder","body":"= JvmIrBuilder ( this , scopeWithIr . scope . scopeOwnerSymbol , startOffset , endOffset )","docstring":""} {"signature":"fun JvmBackendContext . createJvmIrBuilder ( scopeWithIr : ScopeWithIr , source : IrElement ) : JvmIrBuilder","body":"= JvmIrBuilder ( this , scopeWithIr . scope . scopeOwnerSymbol , source . startOffset , source . endOffset )","docstring":""} {"signature":"fun test1d ( x : Double , y : Double )","body":"= x == y","docstring":""} {"signature":"fun test2d ( x : Double , y : Double ? )","body":"= x == y","docstring":""} {"signature":"fun test3d ( x : Double , y : Any )","body":"= x == y","docstring":""} {"signature":"fun test4d ( x : Double , y : Number )","body":"= x == y","docstring":""} {"signature":"fun test5d ( x : Double , y : Any )","body":"= y is Double && x == y","docstring":""} {"signature":"fun test6d ( x : Any , y : Any )","body":"= x is Double && y is Double && x == y","docstring":""} {"signature":"fun test1f ( x : Float , y : Float )","body":"= x == y","docstring":""} {"signature":"fun test2f ( x : Float , y : Float ? )","body":"= x == y","docstring":""} {"signature":"fun test3f ( x : Float , y : Any )","body":"= x == y","docstring":""} {"signature":"fun test4f ( x : Float , y : Number )","body":"= x == y","docstring":""} {"signature":"fun test5f ( x : Float , y : Any )","body":"= y is Float && x == y","docstring":""} {"signature":"fun test6f ( x : Any , y : Any )","body":"= x is Float && y is Float && x == y","docstring":""} {"signature":"fun testFD ( x : Any , y : Any )","body":"= x is Float && y is Double && x == y","docstring":""} {"signature":"fun testDF ( x : Any , y : Any )","body":"= x is Double && y is Float && x == y","docstring":""} {"signature":"fun configure ( )","body":"{ with ( project . plugins ) { apply ( \"\" ) apply ( \"\" ) apply ( \"\" ) apply ( \"\" ) apply ( \"\" ) apply ( \"\" ) } setupVersionsPlugin ( ) setupKtLintForAllProjects ( ) println ( \"\" ) println ( \"\" ) project . subprojects { extensions . add ( RootSettingsExtension . name , settings ) } project . allprojects { version = settings . mavenVersion addAllBuildRepositories ( ) getOrCreateExtension ( BuildSettingsExtension ) . apply { withJvmTarget ( settings . jvmTarget ) withLanguageLevel ( settings . stableKotlinLanguageLevel ) } } project . afterEvaluate { configureTasks ( ) } }","docstring":""} {"signature":"private fun configureTasks ( )","body":"{ registerUpdateLibrariesTask ( ) registerReadmeTasks ( ) registerCompatibilityTableTask ( ) registerKotlinVersionUpdateTask ( ) registerLibrariesUpdateTasks ( ) registerCleanTasks ( ) configureJarTasks ( ) val installTasksConfigurator = InstallTasksConfigurator ( project , settings ) installTasksConfigurator . registerLocalInstallTasks ( ) registerDistributionTasks ( ) installTasksConfigurator . registerInstallTasks ( false , settings . distribKernelDir , settings . distribBuildDir ) registerPythonPackageTasks ( ) registerAggregateUploadTasks ( ) }","docstring":""} {"signature":"private fun setupVersionsPlugin ( )","body":"{ project . plugins . apply ( \"\" ) project . tasks . withType < DependencyUpdatesTask > { rejectVersionIf { isNonStableVersion ( candidate . version ) && ! isNonStableVersion ( currentVersion ) } } }","docstring":""} {"signature":"private fun setupKtLintForAllProjects ( )","body":"{ val ktlintVersion = project . defaultVersionCatalog . versions . ktlint project . allprojects { plugins . apply ( \"\" ) extensions . configure < KtlintExtension > { version . set ( ktlintVersion ) enableExperimentalRules . set ( true ) } } }","docstring":""} {"signature":"private fun registerUpdateLibrariesTask ( )","body":"{ project . tasks . register < UpdateLibrariesTask > ( UPDATE_LIBRARIES_TASK ) project . tasks . withType < Test > { dependsOn ( UPDATE_LIBRARIES_TASK ) } }","docstring":""} {"signature":"private fun registerCleanTasks ( )","body":"{ listOf ( true , false ) . forEach { local -> val dir = if ( local ) settings . localInstallDir else settings . distribBuildDir project . tasks . register ( makeTaskName ( settings . cleanInstallDirTaskPrefix , local ) ) { group = if ( local ) LOCAL_INSTALL_GROUP else DISTRIBUTION_GROUP doLast { if ( ! dir . deleteRecursively ( ) ) { throw Exception ( \"\" ) } } } } }","docstring":""} {"signature":"private fun registerDistributionTasks ( )","body":"{ DistributionTasksConfigurator ( project , settings ) . registerTasks ( ) }","docstring":""} {"signature":"private fun registerPythonPackageTasks ( )","body":"{ PythonPackageTasksConfigurator ( project , settings ) . registerTasks ( ) }","docstring":""} {"signature":"private fun registerAggregateUploadTasks ( )","body":"{ val infixToSpec = mapOf < String , ( UploadTaskSpecs < * > ) -> TaskSpec > ( \"\" to { it . dev } , \"\" to { it . stable } ) infixToSpec . forEach { ( infix , taskSpecGetter ) -> val tasksList = mutableListOf < String > ( ) listOf ( settings . condaTaskSpecs , settings . pyPiTaskSpecs ) . forEach { taskSpec -> tasksList . add ( taskSpecGetter ( taskSpec ) . taskName ) } if ( infix == \"\" ) { tasksList . add ( \"\" ) tasksList . add ( \"\" ) tasksList . add ( \"\" ) } project . tasks . register ( \"\" ) { group = DISTRIBUTION_GROUP dependsOn ( tasksList ) } } }","docstring":""} {"signature":"private fun registerKotlinVersionUpdateTask ( )","body":"{ KernelVersionUpdateTasksConfigurator ( project , settings ) . registerTasks ( ) }","docstring":""} {"signature":"private fun registerLibrariesUpdateTasks ( )","body":"{ LibraryUpdateTasksConfigurator ( project , settings ) . registerTasks ( ) }","docstring":""} {"signature":"private fun registerReadmeTasks ( )","body":"{ ReadmeGenerator ( project , settings ) . registerTasks { dependsOn ( UPDATE_LIBRARIES_TASK ) } }","docstring":""} {"signature":"private fun registerCompatibilityTableTask ( )","body":"{ CompatibilityTableGenerator ( project , settings ) . registerTasks { } }","docstring":""} {"signature":"private fun configureJarTasks ( )","body":"{ val jarTask = project . tasks . named ( JAR_TASK , Jar :: class . java ) { manifest { attributes [ \"\" ] = settings . mainClassFQN attributes [ \"\" ] = project . version } } project . tasks . named ( SHADOW_JAR_TASK , ShadowJar :: class . java ) { archiveBaseName . set ( settings . packageName ) archiveClassifier . set ( \"\" ) mergeServiceFiles ( ) transform ( ComponentsXmlResourceTransformer ( ) ) manifest { attributes ( jarTask . get ( ) . manifest . attributes ) } } }","docstring":""} {"signature":"private fun DiscriminatorHolder ? . trySkip ( unknownKey : String ) : Boolean","body":"{ if ( this == null ) return false if ( discriminatorToSkip == unknownKey ) { discriminatorToSkip = null return true } return false }","docstring":""} {"signature":"override fun decodeJsonElement ( ) : JsonElement","body":"= JsonTreeReader ( json . configuration , lexer ) . read ( )","docstring":""} {"signature":"override fun < T > decodeSerializableValue ( deserializer : DeserializationStrategy < T > ) : T","body":"{ try { if ( deserializer !is AbstractPolymorphicSerializer < * > || json . configuration . useArrayPolymorphism ) { return deserializer . deserialize ( this ) } val discriminator = deserializer . descriptor . classDiscriminator ( json ) val type = lexer . peekLeadingMatchingValue ( discriminator , configuration . isLenient ) ? : return decodeSerializableValuePolymorphic < T > ( deserializer as DeserializationStrategy < T > ) @ Suppress ( \"\" ) val actualSerializer = try { deserializer . findPolymorphicSerializer ( this , type ) } catch ( it : SerializationException ) { val message = it . message ! ! . substringBefore ( '' ) . removeSuffix ( \"\" ) val hint = it . message ! ! . substringAfter ( '' , missingDelimiterValue = \"\" ) lexer . fail ( message , hint = hint ) } as DeserializationStrategy < T > discriminatorHolder = DiscriminatorHolder ( discriminator ) return actualSerializer . deserialize ( this ) } catch ( e : MissingFieldException ) { if ( e . message ! ! . contains ( \"\" ) ) throw e throw MissingFieldException ( e . missingFields , e . message + \"\" + lexer . path . getPath ( ) , e ) } }","docstring":""} {"signature":"override fun beginStructure ( descriptor : SerialDescriptor ) : CompositeDecoder","body":"{ val newMode = json . switchMode ( descriptor ) lexer . path . pushDescriptor ( descriptor ) lexer . consumeNextToken ( newMode . begin ) checkLeadingComma ( ) return when ( newMode ) { WriteMode . LIST , WriteMode . MAP , WriteMode . POLY_OBJ -> StreamingJsonDecoder ( json , newMode , lexer , descriptor , discriminatorHolder ) else -> if ( mode == newMode && json . configuration . explicitNulls ) { this } else { StreamingJsonDecoder ( json , newMode , lexer , descriptor , discriminatorHolder ) } } }","docstring":""} {"signature":"override fun endStructure ( descriptor : SerialDescriptor )","body":"{ if ( json . configuration . ignoreUnknownKeys && descriptor . elementsCount == ) { skipLeftoverElements ( descriptor ) } if ( lexer . tryConsumeComma ( ) && ! json . configuration . allowTrailingComma ) lexer . invalidTrailingComma ( \"\" ) lexer . consumeNextToken ( mode . end ) lexer . path . popDescriptor ( ) }","docstring":""} {"signature":"private fun skipLeftoverElements ( descriptor : SerialDescriptor )","body":"{ while ( decodeElementIndex ( descriptor ) != DECODE_DONE ) { } }","docstring":""} {"signature":"override fun decodeNotNullMark ( ) : Boolean","body":"{ return ! ( elementMarker ? . isUnmarkedNull ? : false ) && ! lexer . tryConsumeNull ( ) }","docstring":""} {"signature":"override fun decodeNull ( ) : Nothing ?","body":"{ return null }","docstring":""} {"signature":"private fun checkLeadingComma ( )","body":"{ if ( lexer . peekNextToken ( ) == TC_COMMA ) { lexer . fail ( \"\" ) } }","docstring":""} {"signature":"override fun < T > decodeSerializableElement ( descriptor : SerialDescriptor , index : Int , deserializer : DeserializationStrategy < T > , previousValue : T ? ) : T","body":"{ val isMapKey = mode == WriteMode . MAP && index and == if ( isMapKey ) { lexer . path . resetCurrentMapKey ( ) } val value = super . decodeSerializableElement ( descriptor , index , deserializer , previousValue ) if ( isMapKey ) { lexer . path . updateCurrentMapKey ( value ) } return value }","docstring":""} {"signature":"override fun decodeElementIndex ( descriptor : SerialDescriptor ) : Int","body":"{ val index = when ( mode ) { WriteMode . OBJ -> decodeObjectIndex ( descriptor ) WriteMode . MAP -> decodeMapIndex ( ) else -> decodeListIndex ( ) } if ( mode != WriteMode . MAP ) { lexer . path . updateDescriptorIndex ( index ) } return index }","docstring":""} {"signature":"private fun decodeMapIndex ( ) : Int","body":"{ var hasComma = false val decodingKey = currentIndex % != if ( decodingKey ) { if ( currentIndex != - ) { hasComma = lexer . tryConsumeComma ( ) } } else { lexer . consumeNextToken ( COLON ) } return if ( lexer . canConsumeValue ( ) ) { if ( decodingKey ) { if ( currentIndex == - ) lexer . require ( ! hasComma ) { \"\" } else lexer . require ( hasComma ) { \"\" } } ++ currentIndex } else { if ( hasComma && ! json . configuration . allowTrailingComma ) lexer . invalidTrailingComma ( ) CompositeDecoder . DECODE_DONE } }","docstring":""} {"signature":"private fun coerceInputValue ( descriptor : SerialDescriptor , index : Int ) : Boolean","body":"= json . tryCoerceValue ( descriptor , index , { lexer . tryConsumeNull ( it ) } , { lexer . peekString ( configuration . isLenient ) } , { lexer . consumeString ( ) } )","docstring":""} {"signature":"private fun decodeObjectIndex ( descriptor : SerialDescriptor ) : Int","body":"{ var hasComma = lexer . tryConsumeComma ( ) while ( lexer . canConsumeValue ( ) ) { hasComma = false val key = decodeStringKey ( ) lexer . consumeNextToken ( COLON ) val index = descriptor . getJsonNameIndex ( json , key ) val isUnknown = if ( index != UNKNOWN_NAME ) { if ( configuration . coerceInputValues && coerceInputValue ( descriptor , index ) ) { hasComma = lexer . tryConsumeComma ( ) false } else { elementMarker ? . mark ( index ) return index } } else { true } if ( isUnknown ) { hasComma = handleUnknown ( key ) } } if ( hasComma && ! json . configuration . allowTrailingComma ) lexer . invalidTrailingComma ( ) return elementMarker ? . nextUnmarkedIndex ( ) ? : CompositeDecoder . DECODE_DONE }","docstring":""} {"signature":"private fun handleUnknown ( key : String ) : Boolean","body":"{ if ( configuration . ignoreUnknownKeys || discriminatorHolder . trySkip ( key ) ) { lexer . skipElement ( configuration . isLenient ) } else { lexer . failOnUnknownKey ( key ) } return lexer . tryConsumeComma ( ) }","docstring":""} {"signature":"private fun decodeListIndex ( ) : Int","body":"{ val hasComma = lexer . tryConsumeComma ( ) return if ( lexer . canConsumeValue ( ) ) { if ( currentIndex != - && ! hasComma ) lexer . fail ( \"\" ) ++ currentIndex } else { if ( hasComma && ! json . configuration . allowTrailingComma ) lexer . invalidTrailingComma ( \"\" ) CompositeDecoder . DECODE_DONE } }","docstring":""} {"signature":"override fun decodeBoolean ( ) : Boolean","body":"{ return lexer . consumeBooleanLenient ( ) }","docstring":""} {"signature":"override fun decodeByte ( ) : Byte","body":"{ val value = lexer . consumeNumericLiteral ( ) if ( value != value . toByte ( ) . toLong ( ) ) lexer . fail ( \"\" ) return value . toByte ( ) }","docstring":""} {"signature":"override fun decodeShort ( ) : Short","body":"{ val value = lexer . consumeNumericLiteral ( ) if ( value != value . toShort ( ) . toLong ( ) ) lexer . fail ( \"\" ) return value . toShort ( ) }","docstring":""} {"signature":"override fun decodeInt ( ) : Int","body":"{ val value = lexer . consumeNumericLiteral ( ) if ( value != value . toInt ( ) . toLong ( ) ) lexer . fail ( \"\" ) return value . toInt ( ) }","docstring":""} {"signature":"override fun decodeLong ( ) : Long","body":"{ return lexer . consumeNumericLiteral ( ) }","docstring":""} {"signature":"override fun decodeFloat ( ) : Float","body":"{ val result = lexer . parseString ( \"\" ) { toFloat ( ) } val specialFp = json . configuration . allowSpecialFloatingPointValues if ( specialFp || result . isFinite ( ) ) return result lexer . throwInvalidFloatingPointDecoded ( result ) }","docstring":""} {"signature":"override fun decodeDouble ( ) : Double","body":"{ val result = lexer . parseString ( \"\" ) { toDouble ( ) } val specialFp = json . configuration . allowSpecialFloatingPointValues if ( specialFp || result . isFinite ( ) ) return result lexer . throwInvalidFloatingPointDecoded ( result ) }","docstring":""} {"signature":"override fun decodeChar ( ) : Char","body":"{ val string = lexer . consumeStringLenient ( ) if ( string . length != ) lexer . fail ( \"\" ) return string [ ] }","docstring":""} {"signature":"private fun decodeStringKey ( ) : String","body":"{ return if ( configuration . isLenient ) { lexer . consumeStringLenientNotNull ( ) } else { lexer . consumeKeyString ( ) } }","docstring":""} {"signature":"override fun decodeString ( ) : String","body":"{ return if ( configuration . isLenient ) { lexer . consumeStringLenientNotNull ( ) } else { lexer . consumeString ( ) } }","docstring":""} {"signature":"override fun decodeStringChunked ( consumeChunk : ( chunk : String ) -> Unit )","body":"{ lexer . consumeStringChunked ( configuration . isLenient , consumeChunk ) }","docstring":""} {"signature":"override fun decodeInline ( descriptor : SerialDescriptor ) : Decoder","body":"= if ( descriptor . isUnsignedNumber ) JsonDecoderForUnsignedTypes ( lexer , json ) else super . decodeInline ( descriptor )","docstring":""} {"signature":"override fun decodeEnum ( enumDescriptor : SerialDescriptor ) : Int","body":"{ return enumDescriptor . getJsonNameIndexOrThrow ( json , decodeString ( ) , \"\" + lexer . path . getPath ( ) ) }","docstring":""} {"signature":"@ JsonFriendModuleApi public fun < T > decodeStringToJsonTree ( json : Json , deserializer : DeserializationStrategy < T > , source : String ) : JsonElement","body":"{ val lexer = StringJsonLexer ( source ) val input = StreamingJsonDecoder ( json , WriteMode . OBJ , lexer , deserializer . descriptor , null ) val tree = input . decodeJsonElement ( ) lexer . expectEof ( ) return tree }","docstring":""} {"signature":"override fun decodeElementIndex ( descriptor : SerialDescriptor ) : Int","body":"= error ( \"\" )","docstring":""} {"signature":"override fun decodeInt ( ) : Int","body":"= lexer . parseString ( \"\" ) { toUInt ( ) . toInt ( ) }","docstring":""} {"signature":"override fun decodeLong ( ) : Long","body":"= lexer . parseString ( \"\" ) { toULong ( ) . toLong ( ) }","docstring":""} {"signature":"override fun decodeByte ( ) : Byte","body":"= lexer . parseString ( \"\" ) { toUByte ( ) . toByte ( ) }","docstring":""} {"signature":"override fun decodeShort ( ) : Short","body":"= lexer . parseString ( \"\" ) { toUShort ( ) . toShort ( ) }","docstring":""} {"signature":"private inline fun < T > AbstractJsonLexer . parseString ( expectedType : String , block : String . ( ) -> T ) : T","body":"{ val input = consumeStringLenient ( ) try { return input . block ( ) } catch ( e : IllegalArgumentException ) { fail ( \"\" ) } }","docstring":""} {"signature":"fun bar ( x : Int ) : Int","body":"fun bar ( x : Int ) : Int","docstring":""} {"signature":"actual fun bar ( x : Int ) : Int","body":"= x + ","docstring":""} {"signature":"actual fun bar ( x : Int ) : Int","body":"= x - ","docstring":""} {"signature":"public fun renderSymbol ( analysisSession : KtAnalysisSession , symbol : KtPropertyGetterSymbol , declarationRenderer : KtDeclarationRenderer , printer : PrettyPrinter , )","body":"public fun renderSymbol ( analysisSession : KtAnalysisSession , symbol : KtPropertyGetterSymbol , declarationRenderer : KtDeclarationRenderer , printer : PrettyPrinter , )","docstring":""} {"signature":"override fun renderSymbol ( analysisSession : KtAnalysisSession , symbol : KtPropertyGetterSymbol , declarationRenderer : KtDeclarationRenderer , printer : PrettyPrinter , )","body":"{ printer { \"\" . separated ( { renderAnnotationsModifiersAndContextReceivers ( analysisSession , symbol , declarationRenderer , printer , KtTokens . GET_KEYWORD ) declarationRenderer . valueParametersRenderer . renderValueParameters ( analysisSession , symbol , declarationRenderer , printer ) } , { declarationRenderer . accessorBodyRenderer . renderBody ( analysisSession , symbol , printer ) } , ) } }","docstring":""} {"signature":"override fun contains ( element : T ) : Boolean","body":"= this == element","docstring":""} {"signature":"override fun containsAll ( elements : Collection < T > ) : Boolean","body":"= if ( elements . isEmpty ( ) ) true else elements . all { this == it }","docstring":""} {"signature":"override fun isEmpty ( ) : Boolean","body":"= false","docstring":""} {"signature":"override fun iterator ( ) : Iterator < T >","body":"= iterator { @ Suppress ( \"\" ) yield ( this @ SelfRepresentingSingletonSet as T ) }","docstring":""} {"signature":"@ Test fun `check success` ( )","body":"{ val system = object : BaseTestSystem ( ) { } val diagnose = XcodeDiagnostic ( system ) . diagnose ( ) val expected = Diagnosis . Builder ( \"\" ) . apply { addSuccess ( \"\" , \"\" , ) addInfo ( \"\" , \"\" ) addEnvironment ( EnvironmentPiece . Xcode ( Version ( \"\" ) ) ) } . build ( ) assertEquals ( expected , diagnose ) }","docstring":""} {"signature":"@ Test fun `check no Xcode` ( )","body":"{ val system = object : BaseTestSystem ( ) { override fun executeCmd ( cmd : String ) : ProcessResult = when ( cmd ) { \"\" -> { ProcessResult ( , \"\" ) } else -> super . executeCmd ( cmd ) } } val diagnose = XcodeDiagnostic ( system ) . diagnose ( ) val expected = Diagnosis . Builder ( \"\" ) . apply { addFailure ( \"\" , \"\" , ) } . build ( ) assertEquals ( expected , diagnose ) }","docstring":""} {"signature":"@ Test fun `check Xcode custom installation` ( )","body":"{ val system = object : BaseTestSystem ( ) { override fun executeCmd ( cmd : String ) : ProcessResult = when ( cmd ) { \"\" -> { ProcessResult ( , \"\" ) } \"\" -> { ProcessResult ( , \"\" ) } \"\" -> { ProcessResult ( , \"\" ) } else -> super . executeCmd ( cmd ) } override fun findAppsPathsInDirectory ( prefix : String , directory : String , recursively : Boolean ) : List < String > { if ( prefix == \"\" && directory == \"\" ) { return listOf ( \"\" ) } return super . findAppsPathsInDirectory ( prefix , directory , recursively ) } } val diagnose = XcodeDiagnostic ( system ) . diagnose ( ) val expected = Diagnosis . Builder ( \"\" ) . apply { addSuccess ( \"\" , \"\" , ) addEnvironment ( EnvironmentPiece . Xcode ( Version ( \"\" ) ) ) addInfo ( \"\" , \"\" ) } . build ( ) assertEquals ( expected , diagnose ) }","docstring":""} {"signature":"@ Test fun `check multiple Xcode installations` ( )","body":"{ val system = object : BaseTestSystem ( ) { override fun executeCmd ( cmd : String ) : ProcessResult = when ( cmd ) { \"\" -> { ProcessResult ( , \"\" ) } \"\" -> { ProcessResult ( , \"\" ) } \"\" -> { ProcessResult ( , \"\" ) } \"\" -> { ProcessResult ( , \"\" ) } else -> super . executeCmd ( cmd ) } } val diagnose = XcodeDiagnostic ( system ) . diagnose ( ) val expected = Diagnosis . Builder ( \"\" ) . apply { addInfo ( \"\" ) addSuccess ( \"\" , \"\" , ) addEnvironment ( EnvironmentPiece . Xcode ( Version ( \"\" ) ) ) addSuccess ( \"\" , \"\" , ) addEnvironment ( EnvironmentPiece . Xcode ( Version ( \"\" ) ) ) addSuccess ( \"\" , ) addInfo ( \"\" , \"\" ) } . build ( ) assertEquals ( expected , diagnose ) }","docstring":""} {"signature":"@ Test fun `check Xcode requires the license` ( )","body":"{ val system = object : BaseTestSystem ( ) { override fun executeCmd ( cmd : String ) : ProcessResult = when ( cmd ) { \"\" -> { ProcessResult ( , \"\" ) } else -> super . executeCmd ( cmd ) } } val diagnose = XcodeDiagnostic ( system ) . diagnose ( ) val expected = Diagnosis . Builder ( \"\" ) . apply { addSuccess ( \"\" , \"\" , ) addEnvironment ( EnvironmentPiece . Xcode ( Version ( \"\" ) ) ) addFailure ( \"\" , \"\" ) addInfo ( \"\" , \"\" ) } . build ( ) assertEquals ( expected , diagnose ) }","docstring":""} {"signature":"@ Test fun `check external Command line tools` ( )","body":"{ val cltPath = \"\" val system = object : BaseTestSystem ( ) { override fun executeCmd ( cmd : String ) : ProcessResult = when ( cmd ) { \"\" -> { ProcessResult ( , cltPath ) } else -> super . executeCmd ( cmd ) } } val diagnose = XcodeDiagnostic ( system ) . diagnose ( ) val expected = Diagnosis . Builder ( \"\" ) . apply { addSuccess ( \"\" , \"\" , ) addEnvironment ( EnvironmentPiece . Xcode ( Version ( \"\" ) ) ) addFailure ( \"\" , \"\" , \"\" ) addInfo ( \"\" , \"\" ) } . build ( ) assertEquals ( expected , diagnose ) }","docstring":""} {"signature":"@ Test fun `check misconfigured Command line tools` ( )","body":"{ val system = object : BaseTestSystem ( ) { override fun executeCmd ( cmd : String ) : ProcessResult = when ( cmd ) { \"\" -> { ProcessResult ( - , null ) } else -> super . executeCmd ( cmd ) } } val diagnose = XcodeDiagnostic ( system ) . diagnose ( ) val expected = Diagnosis . Builder ( \"\" ) . apply { addSuccess ( \"\" , \"\" , ) addEnvironment ( EnvironmentPiece . Xcode ( Version ( \"\" ) ) ) addFailure ( \"\" , \"\" ) addInfo ( \"\" , \"\" ) } . build ( ) assertEquals ( expected , diagnose ) }","docstring":""} {"signature":"@ Test fun `check Xcode requires first launch` ( )","body":"{ val system = object : BaseTestSystem ( ) { override fun executeCmd ( cmd : String ) : ProcessResult = when ( cmd ) { \"\" -> { ProcessResult ( - , null ) } else -> super . executeCmd ( cmd ) } } val diagnose = XcodeDiagnostic ( system ) . diagnose ( ) val expected = Diagnosis . Builder ( \"\" ) . apply { addSuccess ( \"\" , \"\" , ) addEnvironment ( EnvironmentPiece . Xcode ( Version ( \"\" ) ) ) addFailure ( \"\" , \"\" ) addInfo ( \"\" , \"\" ) } . build ( ) assertEquals ( expected , diagnose ) }","docstring":""} {"signature":"@ Test fun `check Xcode custom JAVA_HOME` ( )","body":"{ val system = object : BaseTestSystem ( ) { override fun executeCmd ( cmd : String ) : ProcessResult = when ( cmd ) { \"\" -> { ProcessResult ( , \"\" ) } else -> super . executeCmd ( cmd ) } } val diagnose = XcodeDiagnostic ( system ) . diagnose ( ) val expected = Diagnosis . Builder ( \"\" ) . apply { addSuccess ( \"\" , \"\" , ) addInfo ( \"\" , \"\" ) addEnvironment ( EnvironmentPiece . Xcode ( Version ( \"\" ) ) ) } . build ( ) assertEquals ( expected , diagnose ) }","docstring":""} {"signature":"@ Test fun `check Xcode system JAVA_HOME info` ( )","body":"{ val system = object : BaseTestSystem ( ) { override fun executeCmd ( cmd : String ) : ProcessResult = when ( cmd ) { \"\" -> { ProcessResult ( - , null ) } else -> super . executeCmd ( cmd ) } } val diagnose = XcodeDiagnostic ( system ) . diagnose ( ) val expected = Diagnosis . Builder ( \"\" ) . apply { addSuccess ( \"\" , \"\" , ) addInfo ( \"\" , \"\" ) addEnvironment ( EnvironmentPiece . Xcode ( Version ( \"\" ) ) ) } . build ( ) assertEquals ( expected , diagnose ) }","docstring":""} {"signature":"override fun < T > use ( block : SampleAnalysisEnvironment . ( ) -> T ) : T","body":"{ return runBlocking ( Dispatchers . Default ) { SamplesKotlinAnalysis ( sourceSets = context . configuration . sourceSets , context = context ) . use { samplesKotlinAnalysis -> val sampleAnalysisEnvironment = SymbolSampleAnalysisEnvironment ( samplesKotlinAnalysis = samplesKotlinAnalysis , projectKotlinAnalysis = projectKotlinAnalysis , sampleRewriter = sampleRewriter , dokkaLogger = context . logger ) block ( sampleAnalysisEnvironment ) } } }","docstring":""} {"signature":"override fun resolveSample ( sourceSet : DokkaSourceSet , fullyQualifiedLink : String ) : SampleSnippet ?","body":"{ val psiElement = findPsiElement ( sourceSet , fullyQualifiedLink ) if ( psiElement == null ) { dokkaLogger . warn ( \"\" + \"\" ) return null } else if ( psiElement . language != KotlinLanguage . INSTANCE ) { dokkaLogger . warn ( \"\" ) return null } else if ( psiElement !is KtFunction ) { dokkaLogger . warn ( \"\" ) return null } val imports = processImports ( psiElement , sampleRewriter ) val body = processBody ( psiElement ) return SampleSnippet ( imports , body ) }","docstring":""} {"signature":"private inline fun < reified PSI : PsiElement > KtSymbol . kotlinAndJavaSourcePsiSafe ( ) : PSI ?","body":"{ val sourcePsi = when ( origin ) { KtSymbolOrigin . SOURCE -> this . psi KtSymbolOrigin . JAVA -> this . psi KtSymbolOrigin . SOURCE_MEMBER_GENERATED -> null KtSymbolOrigin . LIBRARY -> null KtSymbolOrigin . SAM_CONSTRUCTOR -> null KtSymbolOrigin . INTERSECTION_OVERRIDE -> null KtSymbolOrigin . SUBSTITUTION_OVERRIDE -> null KtSymbolOrigin . DELEGATED -> null KtSymbolOrigin . JAVA_SYNTHETIC_PROPERTY -> null KtSymbolOrigin . PROPERTY_BACKING_FIELD -> null KtSymbolOrigin . PLUGIN -> null KtSymbolOrigin . JS_DYNAMIC -> null } return sourcePsi as? PSI }","docstring":""} {"signature":"private fun findPsiElement ( sourceSet : DokkaSourceSet , fqLink : String ) : PsiElement ?","body":"{ return samplesKotlinAnalysis . findPsiElement ( sourceSet , fqLink ) ? : projectKotlinAnalysis . findPsiElement ( sourceSet , fqLink ) }","docstring":""} {"signature":"private fun KotlinAnalysis . findPsiElement ( sourceSet : DokkaSourceSet , fqLink : String ) : PsiElement ?","body":"{ val ktSourceModule = this . getModuleOrNull ( sourceSet ) ? : return null return analyze ( ktSourceModule ) { resolveKDocTextLinkToSymbol ( fqLink ) ? . kotlinAndJavaSourcePsiSafe ( ) } }","docstring":""} {"signature":"private fun processImports ( psiElement : PsiElement , sampleRewriter : SampleRewriter ? ) : List < String >","body":"{ val psiFile = psiElement . containingFile val importsList = ( psiFile as? KtFile ) ? . importList ? : return emptyList ( ) return importsList . imports . map { it . text . removePrefix ( \"\" ) } . filter { it . isNotBlank ( ) } . applyIf ( sampleRewriter != null ) { mapNotNull { sampleRewriter ? . rewriteImportDirective ( it ) } } }","docstring":""} {"signature":"private fun processBody ( sampleElement : KtDeclarationWithBody ) : String","body":"{ return getSampleBody ( sampleElement ) . trim { it == '' || it == '' } . trimEnd ( ) . trimIndent ( ) }","docstring":""} {"signature":"private fun getSampleBody ( psiElement : KtDeclarationWithBody ) : String","body":"{ val bodyExpression = psiElement . bodyExpression val bodyExpressionText = bodyExpression ! ! . buildSampleText ( ) return when ( bodyExpression ) { is KtBlockExpression -> bodyExpressionText . removeSurrounding ( \"\" , \"\" ) else -> bodyExpressionText } }","docstring":""} {"signature":"private fun PsiElement . buildSampleText ( ) : String","body":"{ if ( sampleRewriter == null ) return this . text val textBuilder = StringBuilder ( ) val errors = mutableListOf < SampleBuilder . ConvertError > ( ) this . accept ( SampleBuilder ( sampleRewriter , textBuilder , errors ) ) errors . forEach { val st = it . e . stackTraceToString ( ) dokkaLogger . warn ( \"\" ) } return textBuilder . toString ( ) }","docstring":""} {"signature":"override fun visitCallExpression ( expression : KtCallExpression )","body":"{ val callRewriter = expression . calleeExpression ? . text ? . let { sampleRewriter . getFunctionCallRewriter ( it ) } if ( callRewriter != null ) { val rewrittenResult = callRewriter . rewrite ( arguments = expression . valueArguments . map { it . text ? : \"\" } , typeArguments = expression . typeArguments . map { it . text ? : \"\" } ) textBuilder . append ( rewrittenResult ) } else { super . visitCallExpression ( expression ) } }","docstring":""} {"signature":"private fun reportProblemConvertingElement ( element : PsiElement , e : Exception )","body":"{ val text = element . text val document = PsiDocumentManager . getInstance ( element . project ) . getDocument ( element . containingFile ) val lineInfo = if ( document != null ) { val lineNumber = document . getLineNumber ( element . startOffset ) \"\" } else { \"\" } errors += ConvertError ( e , text , lineInfo ) }","docstring":""} {"signature":"override fun visitElement ( element : PsiElement )","body":"{ if ( element is LeafPsiElement ) { textBuilder . append ( element . text ) return } element . acceptChildren ( object : PsiElementVisitor ( ) { override fun visitElement ( element : PsiElement ) { try { element . accept ( this @ SampleBuilder ) } catch ( e : Exception ) { try { reportProblemConvertingElement ( element , e ) } finally { textBuilder . append ( element . text ) } } } } ) }","docstring":""} {"signature":"fun getReferenceVariants ( simpleNameExpression : KtSimpleNameExpression , kindFilter : DescriptorKindFilter , nameFilter : ( Name ) -> Boolean , javaProject : IJavaProject , ktFile : KtFile , file : IFile , identifierPart : String ? ) : Collection < KotlinBasicCompletionProposal >","body":"{ val callTypeAndReceiver = CallTypeAndReceiver . detect ( simpleNameExpression ) var variants : Collection < KotlinBasicCompletionProposal > = getReferenceVariants ( simpleNameExpression , callTypeAndReceiver , kindFilter , nameFilter , javaProject , ktFile , file , identifierPart ) . filter { ! resolutionFacade . frontendService < DeprecationResolver > ( ) . isHiddenInResolution ( it . descriptor ) && visibilityFilter ( it . descriptor ) } val tempFilter = ShadowedDeclarationsFilter . create ( bindingContext , resolutionFacade , simpleNameExpression , callTypeAndReceiver ) if ( tempFilter != null ) { variants = variants . mapNotNull { if ( tempFilter . filter ( listOf ( it . descriptor ) ) . isEmpty ( ) ) null else it } } return variants . filter { kindFilter . accepts ( it . descriptor ) } }","docstring":""} {"signature":"private fun getVariantsForImportOrPackageDirective ( receiverExpression : KtExpression ? , kindFilter : DescriptorKindFilter , nameFilter : ( Name ) -> Boolean ) : Collection < DeclarationDescriptor >","body":"{ if ( receiverExpression != null ) { val qualifier = bindingContext [ BindingContext . QUALIFIER , receiverExpression ] ? : return emptyList ( ) val staticDescriptors = qualifier . staticScope . collectStaticMembers ( resolutionFacade , kindFilter , nameFilter ) val objectDescriptor = ( qualifier as? ClassQualifier ) ? . descriptor ? . takeIf { it . kind == ClassKind . OBJECT } ? : return staticDescriptors return staticDescriptors + objectDescriptor . defaultType . memberScope . getDescriptorsFiltered ( kindFilter , nameFilter ) } else { val rootPackage = resolutionFacade . moduleDescriptor . getPackage ( FqName . ROOT ) return rootPackage . memberScope . getDescriptorsFiltered ( kindFilter , nameFilter ) } }","docstring":""} {"signature":"private fun getVariantsForUserType ( receiverExpression : KtExpression ? , contextElement : PsiElement , kindFilter : DescriptorKindFilter , nameFilter : ( Name ) -> Boolean ) : Collection < DeclarationDescriptor >","body":"{ if ( receiverExpression != null ) { val qualifier = bindingContext [ BindingContext . QUALIFIER , receiverExpression ] ? : return emptyList ( ) return qualifier . staticScope . collectStaticMembers ( resolutionFacade , kindFilter , nameFilter ) } else { val scope = contextElement . getResolutionScope ( bindingContext , resolutionFacade ) return scope . collectDescriptorsFiltered ( kindFilter , nameFilter , changeNamesForAliased = true ) } }","docstring":""} {"signature":"private fun getVariantsForCallableReference ( callTypeAndReceiver : CallTypeAndReceiver . CALLABLE_REFERENCE , contextElement : PsiElement , useReceiverType : KotlinType ? , kindFilter : DescriptorKindFilter , nameFilter : ( Name ) -> Boolean ) : Collection < KotlinBasicCompletionProposal >","body":"{ val descriptors = LinkedHashSet < KotlinBasicCompletionProposal > ( ) val resolutionScope = contextElement . getResolutionScope ( bindingContext , resolutionFacade ) val receiver = callTypeAndReceiver . receiver if ( receiver != null ) { val isStatic = bindingContext [ BindingContext . DOUBLE_COLON_LHS , receiver ] is DoubleColonLHS . Type val explicitReceiverTypes : Collection < KotlinType > = useReceiverType ? . let { listOf ( useReceiverType ) } ? : callTypeAndReceiver . receiverTypes ( bindingContext , contextElement , moduleDescriptor , resolutionFacade , stableSmartCastsOnly = false ) ! ! val constructorFilter = { descriptor : ClassDescriptor -> if ( isStatic ) true else descriptor . isInner } descriptors . addNonExtensionMembers ( explicitReceiverTypes , kindFilter , nameFilter , constructorFilter ) descriptors . addScopeAndSyntheticExtensions ( resolutionScope , explicitReceiverTypes , CallType . CALLABLE_REFERENCE , kindFilter , nameFilter ) if ( isStatic ) { explicitReceiverTypes . mapNotNull { ( it . constructor . declarationDescriptor as? ClassDescriptor ) ? . staticScope } . flatMapTo ( descriptors ) { scope -> scope . collectStaticMembers ( resolutionFacade , kindFilter , nameFilter ) . map { KotlinBasicCompletionProposal . Descriptor ( it ) } } } } else { descriptors . addNonExtensionCallablesAndConstructors ( resolutionScope , kindFilter , nameFilter , constructorFilter = { ! it . isInner } , classesOnly = false ) } return descriptors }","docstring":""} {"signature":"private fun getReferenceVariants ( simpleNameExpression : KtSimpleNameExpression , callTypeAndReceiver : CallTypeAndReceiver < * , * > , kindFilter : DescriptorKindFilter , nameFilter : ( Name ) -> Boolean , javaProject : IJavaProject , ktFile : KtFile , file : IFile , identifierPart : String ? ) : Collection < KotlinBasicCompletionProposal >","body":"{ val callType = callTypeAndReceiver . callType @ Suppress ( \"\" ) val kindFilter = kindFilter . intersect ( callType . descriptorKindFilter ) val receiverExpression : KtExpression ? when ( callTypeAndReceiver ) { is CallTypeAndReceiver . IMPORT_DIRECTIVE -> { return getVariantsForImportOrPackageDirective ( callTypeAndReceiver . receiver , kindFilter , nameFilter ) . map { KotlinBasicCompletionProposal . Descriptor ( it ) } } is CallTypeAndReceiver . PACKAGE_DIRECTIVE -> { return getVariantsForImportOrPackageDirective ( callTypeAndReceiver . receiver , kindFilter , nameFilter ) . map { KotlinBasicCompletionProposal . Descriptor ( it ) } } is CallTypeAndReceiver . TYPE -> { return getVariantsForUserType ( callTypeAndReceiver . receiver , simpleNameExpression , kindFilter , nameFilter ) . map { KotlinBasicCompletionProposal . Descriptor ( it ) } } is CallTypeAndReceiver . ANNOTATION -> { return getVariantsForUserType ( callTypeAndReceiver . receiver , simpleNameExpression , kindFilter , nameFilter ) . map { KotlinBasicCompletionProposal . Descriptor ( it ) } } is CallTypeAndReceiver . CALLABLE_REFERENCE -> { return getVariantsForCallableReference ( callTypeAndReceiver , simpleNameExpression , null , kindFilter , nameFilter ) } is CallTypeAndReceiver . DEFAULT -> receiverExpression = null is CallTypeAndReceiver . DOT -> receiverExpression = callTypeAndReceiver . receiver is CallTypeAndReceiver . SUPER_MEMBERS -> receiverExpression = callTypeAndReceiver . receiver is CallTypeAndReceiver . SAFE -> receiverExpression = callTypeAndReceiver . receiver is CallTypeAndReceiver . INFIX -> receiverExpression = callTypeAndReceiver . receiver is CallTypeAndReceiver . OPERATOR -> return emptyList ( ) is CallTypeAndReceiver . UNKNOWN -> return emptyList ( ) else -> throw RuntimeException ( ) } val resolutionScope = simpleNameExpression . getResolutionScope ( bindingContext , resolutionFacade ) val dataFlowInfo = bindingContext . getDataFlowInfoBefore ( simpleNameExpression ) val containingDeclaration = resolutionScope . ownerDescriptor val smartCastManager = resolutionFacade . frontendService < SmartCastManager > ( ) val languageVersionSettings = resolutionFacade . frontendService < LanguageVersionSettings > ( ) val implicitReceiverTypes = resolutionScope . getImplicitReceiversWithInstance ( languageVersionSettings . supportsFeature ( LanguageFeature . DslMarkersSupport ) ) . flatMap { smartCastManager . getSmartCastVariantsWithLessSpecificExcluded ( it . value , bindingContext , containingDeclaration , dataFlowInfo , languageVersionSettings , resolutionFacade . frontendService ( ) ) } . toSet ( ) val descriptors = LinkedHashSet < KotlinBasicCompletionProposal > ( ) val filterWithoutExtensions = kindFilter exclude DescriptorKindExclude . Extensions if ( receiverExpression != null ) { val qualifier = bindingContext [ BindingContext . QUALIFIER , receiverExpression ] if ( qualifier != null ) { descriptors . addAll ( qualifier . staticScope . collectStaticMembers ( resolutionFacade , filterWithoutExtensions , nameFilter ) . map { KotlinBasicCompletionProposal . Descriptor ( it ) } ) } val explicitReceiverTypes = callTypeAndReceiver . receiverTypes ( bindingContext , simpleNameExpression , moduleDescriptor , resolutionFacade , stableSmartCastsOnly = false ) ! ! descriptors . processAll ( implicitReceiverTypes , explicitReceiverTypes , resolutionScope , callType , kindFilter , nameFilter , javaProject , ktFile , file , identifierPart , false ) } else { descriptors . processAll ( implicitReceiverTypes , implicitReceiverTypes , resolutionScope , callType , kindFilter , nameFilter , javaProject , ktFile , file , identifierPart , true ) descriptors . addAll ( resolutionScope . collectDescriptorsFiltered ( filterWithoutExtensions , nameFilter , changeNamesForAliased = true ) . map { KotlinBasicCompletionProposal . Descriptor ( it ) } ) } if ( callType == CallType . SUPER_MEMBERS ) { return descriptors . filterIsInstance < KotlinBasicCompletionProposal . Descriptor > ( ) . flatMapTo ( LinkedHashSet < KotlinBasicCompletionProposal > ( ) ) { descriptor -> if ( descriptor . descriptor is CallableMemberDescriptor && descriptor . descriptor . kind == CallableMemberDescriptor . Kind . FAKE_OVERRIDE ) { descriptor . descriptor . overriddenDescriptors . map { KotlinBasicCompletionProposal . Descriptor ( it ) } } else { listOf ( descriptor ) } } } return descriptors . distinctBy { ( it . descriptor as? ImportedFromObjectCallableDescriptor < * > ) ? . callableFromObject ? : it . descriptor } }","docstring":""} {"signature":"private fun MutableSet < KotlinBasicCompletionProposal > . processAll ( implicitReceiverTypes : Collection < KotlinType > , receiverTypes : Collection < KotlinType > , resolutionScope : LexicalScope , callType : CallType < * > , kindFilter : DescriptorKindFilter , nameFilter : ( Name ) -> Boolean , javaProject : IJavaProject , ktFile : KtFile , file : IFile , identifierPart : String ? , allowNoReceiver : Boolean )","body":"{ runBlocking { val tempJobs = mutableListOf < Job > ( ) tempJobs += KotlinEclipseScope . launch { addNonExtensionMembers ( receiverTypes , kindFilter , nameFilter , constructorFilter = { it . isInner } ) } tempJobs += KotlinEclipseScope . launch { addMemberExtensions ( implicitReceiverTypes , receiverTypes , callType , kindFilter , nameFilter ) } tempJobs += KotlinEclipseScope . launch { addNotImportedTopLevelCallables ( receiverTypes , kindFilter , nameFilter , javaProject , ktFile , file , identifierPart , allowNoReceiver ) println ( \"\" ) } tempJobs += KotlinEclipseScope . launch { addScopeAndSyntheticExtensions ( resolutionScope , receiverTypes , callType , kindFilter , nameFilter ) } tempJobs . joinAll ( ) } }","docstring":""} {"signature":"private suspend fun MutableSet < KotlinBasicCompletionProposal > . addNotImportedTopLevelCallables ( receiverTypes : Collection < KotlinType > , kindFilter : DescriptorKindFilter , nameFilter : ( Name ) -> Boolean , javaProject : IJavaProject , ktFile : KtFile , file : IFile , identifierPart : String ? , allowNoReceiver : Boolean )","body":"{ if ( ! identifierPart . isNullOrBlank ( ) ) { val searchEngine = SearchEngine ( ) val dependencyProjects = arrayListOf < IJavaProject > ( ) . apply { addAll ( ProjectUtils . getDependencyProjects ( javaProject ) . map { JavaCore . create ( it ) } ) add ( javaProject ) } val javaProjectSearchScope = JavaSearchScopeFactory . getInstance ( ) . createJavaSearchScope ( dependencyProjects . toTypedArray ( ) , false ) val tempClassNames = hashMapOf < String , String > ( ) val collector = object : MethodNameMatchRequestor ( ) { override fun acceptMethodNameMatch ( match : MethodNameMatch ) { if ( Flags . isPublic ( match . modifiers ) ) { tempClassNames [ match . method . declaringType . getTypeQualifiedName ( '' ) ] = match . method . declaringType . packageFragment . elementName } } } searchEngine . searchAllMethodNames ( null , SearchPattern . R_EXACT_MATCH , null , SearchPattern . R_EXACT_MATCH , null , SearchPattern . R_EXACT_MATCH , identifierPart . toCharArray ( ) , SearchPattern . R_PREFIX_MATCH , javaProjectSearchScope , collector , IJavaSearchConstants . FORCE_IMMEDIATE_SEARCH , null ) val tempCapitalIdentifier = identifierPart . replaceFirstChar { if ( it . isLowerCase ( ) ) it . titlecase ( Locale . getDefault ( ) ) else it . toString ( ) } searchEngine . searchAllMethodNames ( null , SearchPattern . R_EXACT_MATCH , null , SearchPattern . R_EXACT_MATCH , null , SearchPattern . R_EXACT_MATCH , \"\" . toCharArray ( ) , SearchPattern . R_PREFIX_MATCH , javaProjectSearchScope , collector , IJavaSearchConstants . FORCE_IMMEDIATE_SEARCH , null ) val tempPackages = mutableListOf < PackageViewDescriptor > ( ) val tempClasses = tempClassNames . mapNotNull { ( className , packageName ) -> val tempClassId = ClassId ( FqName ( packageName ) , FqName ( className ) , false ) moduleDescriptor . findClassAcrossModuleDependencies ( tempClassId ) ? : run { tempPackages . add ( resolutionFacade . moduleDescriptor . getPackage ( FqName ( packageName ) ) ) null } } val importsSet = ktFile . importDirectives . mapNotNull { it . importedFqName ? . asString ( ) } . toSet ( ) val originPackage = ktFile . packageFqName . asString ( ) fun MemberScope . filterByKindAndName ( ) = getDescriptorsFiltered ( kindFilter . intersect ( CALLABLES ) , nameFilter ) . asSequence ( ) . filterIsInstance < CallableDescriptor > ( ) . filter { callDesc -> val tempFuzzy = callDesc . fuzzyExtensionReceiverType ( ) val anyReceiverMatch = tempFuzzy != null && receiverTypes . any { receiverType -> tempFuzzy . checkIsSuperTypeOf ( receiverType ) != null } val isTopLevelOrObjectCallable = callDesc . isTopLevelInPackage ( ) || ( callDesc . containingDeclaration as? ClassDescriptor ) ? . let { containing -> val tempContainingKotlinType = containing . classValueType val tempIsObject = containing . kind == ClassKind . OBJECT val tempContainingIsReceiver = tempContainingKotlinType != null && receiverTypes . any { receiver -> receiver . isSubtypeOf ( tempContainingKotlinType ) } tempIsObject && ! tempContainingIsReceiver } == true val noReceiverMatches = allowNoReceiver && tempFuzzy == null && isTopLevelOrObjectCallable noReceiverMatches || anyReceiverMatch } . filter { callDesc -> callDesc . importableFqName ? . asString ( ) !in importsSet && callDesc . importableFqName ? . parent ( ) ? . asString ( ) != originPackage } . toList ( ) val tempDeferreds = tempPackages . map { desc -> KotlinEclipseScope . async { desc . memberScope . filterByKindAndName ( ) } } + tempClasses . map { desc -> KotlinEclipseScope . async { desc . unsubstitutedMemberScope . filterByKindAndName ( ) } } val tempDescriptors = tempDeferreds . awaitAll ( ) . flatten ( ) tempDescriptors . map { KotlinBasicCompletionProposal . Proposal ( KotlinImportCallableCompletionProposal ( it , KotlinImageProvider . getImage ( it ) , file , identifierPart ) , it ) } . toCollection ( this ) } }","docstring":""} {"signature":"private fun MutableSet < KotlinBasicCompletionProposal > . addMemberExtensions ( dispatchReceiverTypes : Collection < KotlinType > , extensionReceiverTypes : Collection < KotlinType > , callType : CallType < * > , kindFilter : DescriptorKindFilter , nameFilter : ( Name ) -> Boolean , )","body":"{ val memberFilter = kindFilter exclude DescriptorKindExclude . NonExtensions for ( dispatchReceiverType in dispatchReceiverTypes ) { for ( member in dispatchReceiverType . memberScope . getDescriptorsFiltered ( memberFilter , nameFilter ) ) { addAll ( ( member as CallableDescriptor ) . substituteExtensionIfCallable ( extensionReceiverTypes , callType ) . map { KotlinBasicCompletionProposal . Descriptor ( it ) } ) } } }","docstring":""} {"signature":"private fun MutableSet < KotlinBasicCompletionProposal > . addNonExtensionMembers ( receiverTypes : Collection < KotlinType > , kindFilter : DescriptorKindFilter , nameFilter : ( Name ) -> Boolean , constructorFilter : ( ClassDescriptor ) -> Boolean )","body":"{ for ( receiverType in receiverTypes ) { addNonExtensionCallablesAndConstructors ( receiverType . memberScope . memberScopeAsImportingScope ( ) , kindFilter , nameFilter , constructorFilter , false ) receiverType . constructor . supertypes . forEach { addNonExtensionCallablesAndConstructors ( it . memberScope . memberScopeAsImportingScope ( ) , kindFilter , nameFilter , constructorFilter , true ) } } }","docstring":""} {"signature":"private fun MutableSet < KotlinBasicCompletionProposal > . addNonExtensionCallablesAndConstructors ( scope : HierarchicalScope , kindFilter : DescriptorKindFilter , nameFilter : ( Name ) -> Boolean , constructorFilter : ( ClassDescriptor ) -> Boolean , classesOnly : Boolean )","body":"{ var filterToUse = DescriptorKindFilter ( kindFilter . kindMask and CALLABLES . kindMask ) . exclude ( DescriptorKindExclude . Extensions ) if ( filterToUse . acceptsKinds ( FUNCTIONS_MASK ) ) { filterToUse = filterToUse . withKinds ( DescriptorKindFilter . NON_SINGLETON_CLASSIFIERS_MASK ) } for ( descriptor in scope . collectDescriptorsFiltered ( filterToUse , nameFilter , changeNamesForAliased = true ) ) { if ( descriptor is ClassDescriptor ) { if ( descriptor . modality == Modality . ABSTRACT || descriptor . modality == Modality . SEALED ) continue if ( ! constructorFilter ( descriptor ) ) continue descriptor . constructors . map { KotlinBasicCompletionProposal . Descriptor ( it ) } . filterTo ( this ) { kindFilter . accepts ( it . descriptor ) } } else if ( ! classesOnly && kindFilter . accepts ( descriptor ) ) { this . add ( KotlinBasicCompletionProposal . Descriptor ( descriptor ) ) } } }","docstring":""} {"signature":"private fun MutableSet < KotlinBasicCompletionProposal > . addScopeAndSyntheticExtensions ( scope : LexicalScope , receiverTypes : Collection < KotlinType > , callType : CallType < * > , kindFilter : DescriptorKindFilter , nameFilter : ( Name ) -> Boolean )","body":"{ if ( kindFilter . excludes . contains ( DescriptorKindExclude . Extensions ) ) return if ( receiverTypes . isEmpty ( ) ) return fun process ( extensionOrSyntheticMember : CallableDescriptor ) { if ( kindFilter . accepts ( extensionOrSyntheticMember ) && nameFilter ( extensionOrSyntheticMember . name ) ) { if ( extensionOrSyntheticMember . isExtension ) { addAll ( extensionOrSyntheticMember . substituteExtensionIfCallable ( receiverTypes , callType ) . map { KotlinBasicCompletionProposal . Descriptor ( it ) } ) } else { add ( KotlinBasicCompletionProposal . Descriptor ( extensionOrSyntheticMember ) ) } } } for ( descriptor in scope . collectDescriptorsFiltered ( kindFilter exclude DescriptorKindExclude . NonExtensions , nameFilter , changeNamesForAliased = true ) ) { process ( descriptor as CallableDescriptor ) } val syntheticScopes = resolutionFacade . getFrontendService ( SyntheticScopes :: class . java ) if ( kindFilter . acceptsKinds ( VARIABLES_MASK ) ) { val lookupLocation = ( scope . ownerDescriptor . toSourceElement . getPsi ( ) as? KtElement ) ? . let { KotlinLookupLocation ( it ) } ? : NoLookupLocation . FROM_IDE for ( extension in syntheticScopes . collectSyntheticExtensionProperties ( receiverTypes , lookupLocation ) ) { process ( extension ) } } if ( kindFilter . acceptsKinds ( FUNCTIONS_MASK ) ) { for ( syntheticMember in syntheticScopes . collectSyntheticMemberFunctions ( receiverTypes ) ) { process ( syntheticMember ) } } }","docstring":""} {"signature":"private fun < TDescriptor : DeclarationDescriptor > filterOutJavaGettersAndSetters ( variants : Collection < TDescriptor > ) : Collection < TDescriptor >","body":"{ val accessorMethodsToRemove = HashSet < FunctionDescriptor > ( ) val filteredVariants = variants . filter { it !is SyntheticJavaPropertyDescriptor } for ( variant in filteredVariants ) { if ( variant is SyntheticJavaPropertyDescriptor ) { accessorMethodsToRemove . add ( variant . getMethod . original ) val setter = variant . setMethod if ( setter != null && setter . returnType ? . isUnit ( ) == true ) { accessorMethodsToRemove . add ( setter . original ) } } } return filteredVariants . filter { it !is FunctionDescriptor || it . original !in accessorMethodsToRemove } }","docstring":""} {"signature":"private fun excludeNonInitializedVariable ( variants : Collection < DeclarationDescriptor > , contextElement : PsiElement ) : Collection < DeclarationDescriptor >","body":"{ for ( element in contextElement . parentsWithSelf ) { val parent = element . parent if ( parent is KtVariableDeclaration && element == parent . initializer ) { return variants . filter { it . findPsi ( ) != parent } } if ( element is KtDeclaration ) break } return variants }","docstring":""} {"signature":"private fun MemberScope . collectStaticMembers ( resolutionFacade : ResolutionFacade , kindFilter : DescriptorKindFilter , nameFilter : ( Name ) -> Boolean ) : Collection < DeclarationDescriptor >","body":"{ return getDescriptorsFiltered ( kindFilter , nameFilter ) + collectSyntheticStaticMembersAndConstructors ( resolutionFacade , kindFilter , nameFilter ) }","docstring":""} {"signature":"@ OptIn ( FrontendInternals :: class ) fun ResolutionScope . collectSyntheticStaticMembersAndConstructors ( resolutionFacade : ResolutionFacade , kindFilter : DescriptorKindFilter , nameFilter : ( Name ) -> Boolean ) : List < FunctionDescriptor >","body":"{ val syntheticScopes = resolutionFacade . getFrontendService ( SyntheticScopes :: class . java ) val functionDescriptors = this . getContributedDescriptors ( DescriptorKindFilter . FUNCTIONS ) val classifierDescriptors = this . getContributedDescriptors ( DescriptorKindFilter . CLASSIFIERS ) return ( syntheticScopes . collectSyntheticStaticFunctions ( functionDescriptors ) + syntheticScopes . collectSyntheticConstructors ( classifierDescriptors ) ) . filter { kindFilter . accepts ( it ) && nameFilter ( it . name ) } }","docstring":""} {"signature":"@ OptIn ( FrontendInternals :: class ) private inline fun < reified T : Any > ResolutionFacade . frontendService ( ) : T","body":"= this . getFrontendService ( T :: class . java )","docstring":""} {"signature":"fun foo ( vararg x : KProperty < * > )","body":"{ }","docstring":""} {"signature":"fun test ( )","body":"{ foo ( :: prop ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ test ( ) return \"\" }","docstring":""} {"signature":"fun box ( ) : String","body":"{ var i : Int ? i = val j = ++ i return if ( j == && == i ) \"\" else \"\" }","docstring":""} {"signature":"public fun < T > xBegin ( column : ColumnReference < T > ) : PositionalMapping < T >","body":"{ return addPositionalMapping < T > ( X_BEGIN , column . name ( ) , null ) }","docstring":"/**\n * Maps the `xBegin` aesthetic to a data column by [ColumnReference].\n *\n * @param column the data column to be mapped.\n * @return a [PositionalMapping] object representing the mapping.\n */"} {"signature":"public fun < T > xBegin ( column : KProperty < T > ) : PositionalMapping < T >","body":"{ return addPositionalMapping < T > ( X_BEGIN , column . name , null ) }","docstring":"/**\n * Maps the `xBegin` aesthetic to a data column by [KProperty].\n *\n * @param column the data column to be mapped.\n * @return a [PositionalMapping] object representing the mapping.\n */"} {"signature":"public fun xBegin ( column : String ) : PositionalMapping < Any ? >","body":"{ return addPositionalMapping ( X_BEGIN , column , null ) }","docstring":"/**\n * Maps the `xBegin` aesthetic to a data column by [String].\n *\n * @param column the data column to be mapped.\n * @return a [PositionalMapping] object representing the mapping.\n */"} {"signature":"public fun < T > xBegin ( values : Iterable < T > ) : PositionalMapping < T >","body":"{ return addPositionalMapping < T > ( X_BEGIN , values . toList ( ) , null , null ) }","docstring":"/**\n * Maps the `xBegin` aesthetic to iterable of values.\n *\n * @param values the iterable of values to be mapped.\n * @return a [PositionalMapping] object representing the mapping.\n */"} {"signature":"public fun < T > xBegin ( values : DataColumn < T > ) : PositionalMapping < T >","body":"{ return addPositionalMapping < T > ( X_BEGIN , values , null ) }","docstring":"/**\n * Maps the `xBegin` aesthetic to a data column.\n *\n * @param values the data column to be mapped.\n * @return a [PositionalMapping] object representing the mapping.\n */"} {"signature":"private fun parse ( input : String ) : JsonElement","body":"= default . decodeFromString ( JsonElement . serializer ( ) , input )","docstring":""} {"signature":"@ Test fun testParseWithoutExceptions ( )","body":"{ val input = \"\"\"\"\"\" parse ( input ) }","docstring":""} {"signature":"@ Test fun testJsonLiteral ( )","body":"{ val v = JsonPrimitive ( \"\" ) assertEquals ( v , parse ( \"\" ) ) }","docstring":""} {"signature":"@ Test fun testJsonObject ( )","body":"{ val input = \"\"\"\"\"\" val elem = parse ( input ) assertTrue ( elem is JsonObject ) assertEquals ( setOf ( \"\" , \"\" , \"\" , \"\" ) , elem . keys ) assertEquals ( JsonPrimitive ( \"\" ) , elem [ \"\" ] ) assertEquals ( , elem [ \"\" ] ? . jsonPrimitive ? . int ) assertEquals ( true , elem [ \"\" ] ? . jsonPrimitive ? . boolean ) assertSame ( elem . getValue ( \"\" ) as JsonNull , JsonNull ) }","docstring":""} {"signature":"@ Test fun testJsonObjectWithArrays ( )","body":"{ val input = \"\"\"\"\"\" val elem = parse ( input ) assertTrue ( elem is JsonObject ) assertEquals ( setOf ( \"\" , \"\" , \"\" ) , elem . keys ) assertTrue ( elem . getValue ( \"\" ) is JsonArray ) val array = elem . getValue ( \"\" ) . jsonArray assertEquals ( \"\" , array . getOrNull ( ) ? . jsonPrimitive ? . content ) assertEquals ( , array . getOrNull ( ) ? . jsonPrimitive ? . int ) assertTrue ( array [ ] is JsonObject ) val third = array [ ] . jsonObject assertEquals ( \"\" , third . getValue ( \"\" ) . jsonPrimitive . content ) }","docstring":""} {"signature":"@ Test fun testSaveToJson ( )","body":"{ val input = \"\"\"\"\"\" val elem = parse ( input ) val json = elem . toString ( ) assertEquals ( input , json ) }","docstring":""} {"signature":"@ Test fun testEqualityTest ( )","body":"{ val input = \"\"\"\"\"\" val parsed = parse ( input ) val parsed2 = parse ( input ) val handCrafted = buildJsonObject { put ( \"\" , JsonPrimitive ( \"\" ) ) ; put ( \"\" , JsonPrimitive ( ) ) } assertEquals ( parsed , parsed2 ) assertEquals ( parsed , handCrafted ) }","docstring":""} {"signature":"@ Test fun testInEqualityTest ( )","body":"{ val input = \"\"\"\"\"\" val parsed = parse ( input ) as JsonObject val handCrafted = buildJsonObject { put ( \"\" , JsonPrimitive ( \"\" ) ) ; put ( \"\" , JsonPrimitive ( ) ) } assertEquals ( parsed , handCrafted ) assertNotEquals ( parsed [ \"\" ] , parsed [ \"\" ] ) assertNotEquals ( parsed [ \"\" ] , handCrafted [ \"\" ] ) assertNotEquals ( handCrafted [ \"\" ] , parsed [ \"\" ] ) assertNotEquals ( handCrafted [ \"\" ] , handCrafted [ \"\" ] ) }","docstring":""} {"signature":"@ Test fun testExceptionalState ( )","body":"{ val tree = JsonObject ( mapOf ( \"\" to JsonPrimitive ( ) , \"\" to JsonArray ( listOf ( JsonNull ) ) , \"\" to JsonPrimitive ( false ) ) ) assertFailsWith < NoSuchElementException > { tree . getValue ( \"\" ) . jsonObject } assertFailsWith < IllegalArgumentException > { tree . getValue ( \"\" ) . jsonArray } assertEquals ( null , tree [ \"\" ] ? . jsonObject ) assertEquals ( null , tree [ \"\" ] as? JsonArray ) val n = tree . getValue ( \"\" ) . jsonArray [ ] . jsonPrimitive assertFailsWith < NumberFormatException > { n . int } assertEquals ( null , n . intOrNull ) assertFailsWith < IllegalStateException > { n . boolean } assertEquals ( null , n . booleanOrNull ) }","docstring":""} {"signature":"@ Test fun testThatJsonArraysCompareWithLists ( )","body":"{ val jsonArray : List < JsonElement > = JsonArray ( listOf ( JsonPrimitive ( ) , JsonPrimitive ( ) ) ) val arrayList : List < JsonElement > = ArrayList ( listOf ( JsonPrimitive ( ) , JsonPrimitive ( ) ) ) val otherArrayList : List < JsonElement > = ArrayList ( listOf ( JsonPrimitive ( ) , JsonPrimitive ( ) ) ) assertEquals ( jsonArray , arrayList ) assertEquals ( arrayList , jsonArray ) assertEquals ( jsonArray . hashCode ( ) , arrayList . hashCode ( ) ) assertNotEquals ( jsonArray , otherArrayList ) }","docstring":""} {"signature":"@ Test fun testThatJsonObjectsCompareWithMaps ( )","body":"{ val jsonObject : Map < String , JsonElement > = JsonObject ( mapOf ( \"\" to JsonPrimitive ( ) , \"\" to JsonPrimitive ( ) ) ) val hashMap : Map < String , JsonElement > = HashMap ( mapOf ( \"\" to JsonPrimitive ( ) , \"\" to JsonPrimitive ( ) ) ) val otherJsonObject : Map < String , JsonElement > = JsonObject ( mapOf ( \"\" to JsonPrimitive ( ) , \"\" to JsonPrimitive ( ) ) ) val otherHashMap : Map < String , JsonElement > = HashMap ( mapOf ( \"\" to JsonPrimitive ( ) , \"\" to JsonPrimitive ( ) ) ) assertEquals ( jsonObject , hashMap ) assertEquals ( hashMap , jsonObject ) assertEquals ( jsonObject . hashCode ( ) , hashMap . hashCode ( ) ) assertNotEquals ( jsonObject , otherHashMap ) assertNotEquals ( jsonObject , otherJsonObject ) }","docstring":""} {"signature":"override operator fun iterator ( )","body":"= TODO ( )","docstring":""} {"signature":"override fun contains ( element : UInt ) : Boolean","body":"= TODO ( )","docstring":""} {"signature":"override fun containsAll ( elements : Collection < UInt > ) : Boolean","body":"= TODO ( )","docstring":""} {"signature":"override fun isEmpty ( ) : Boolean","body":"= TODO ( )","docstring":""} {"signature":"@ Test fun testBackpressureDropDirect ( )","body":"= runTest { expect ( ) Flux . fromArray ( arrayOf ( ) ) . onBackpressureDrop ( ) . collect { assertEquals ( , it ) expect ( ) } finish ( ) }","docstring":""} {"signature":"@ Test fun testBackpressureDropFlow ( )","body":"= runTest { expect ( ) Flux . fromArray ( arrayOf ( ) ) . onBackpressureDrop ( ) . asFlow ( ) . collect { assertEquals ( , it ) expect ( ) } finish ( ) }","docstring":""} {"signature":"@ Test fun testCooperativeCancellation ( )","body":"= runTest { val flow = Flux . fromIterable ( ( .. Long . MAX_VALUE ) ) . asFlow ( ) flow . onEach { if ( it > ) currentCoroutineContext ( ) . cancel ( ) } . launchIn ( this + Dispatchers . Default ) . join ( ) }","docstring":""} {"signature":"@ Test fun testCooperativeCancellationForBuffered ( )","body":"= runTest ( expected = { it is CancellationException } ) { val flow = Flux . fromIterable ( ( .. Long . MAX_VALUE ) ) . asFlow ( ) val channel = flow . onEach { if ( it > ) currentCoroutineContext ( ) . cancel ( ) } . produceIn ( this + Dispatchers . Default ) channel . consumeEach { } }","docstring":""} {"signature":"@ Suppress ( \"\" ) private fun source ( signature : String )","body":"= \"\"\"\"\"\" . trimIndent ( )","docstring":""} {"signature":"@ Test fun `fun with definitely non-nullable types as java` ( )","body":"{ val source = source ( \"\" ) val writerPlugin = TestOutputWriterPlugin ( ) testInline ( source , configuration , pluginOverrides = listOf ( writerPlugin ) ) { renderingStage = { _ , _ -> val signature = writerPlugin . writer . renderedContent ( \"\" ) . firstSignature ( ) signature . match ( \"\" , Span ( \"\" ) , A ( \"\" ) , \"\" , A ( \"\" ) , \"\" , Span ( Span ( Span ( ) , \"\" ) , Span ( Span ( ) , \"\" ) ) , \"\" , ignoreSpanWithTokenStyle = true ) } } }","docstring":""} {"signature":"@ Test fun `should display annotations` ( )","body":"{ val writerPlugin = TestOutputWriterPlugin ( ) testInline ( \"\"\"\"\"\" . trimIndent ( ) , configuration , pluginOverrides = listOf ( writerPlugin ) ) { renderingStage = { _ , _ -> val signatures = writerPlugin . writer . renderedContent ( \"\" ) . signature ( ) val classSignature = signatures [ ] classSignature . match ( Div ( Div ( \"\" , A ( \"\" ) , \"\" ) ) , \"\" , A ( \"\" ) , \"\" , Span ( \"\" , A ( \"\" ) , \"\" ) , \"\" , Span ( \"\" , A ( \"\" ) , \"\" ) , A ( \"\" ) , \">\" , ignoreSpanWithTokenStyle = true ) val functionSignature = signatures [ ] functionSignature . match ( Div ( Div ( \"\" , A ( \"\" ) , \"\" ) ) , \"\" , A ( \"\" ) , A ( \"\" ) , \"\" , Span ( \"\" , A ( \"\" ) , \"\" ) , \"\" , Span ( \"\" , A ( \"\" ) , \"\" ) , A ( \"\" ) , \"\" , Span ( Span ( Span ( \"\" , A ( \"\" ) , \"\" ) , A ( \"\" ) , \"\" ) , Span ( A ( \"\" ) , \"\" ) ) , \"\" , ignoreSpanWithTokenStyle = true ) } } }","docstring":""} {"signature":"override fun generateFunctions ( callableId : CallableId , context : MemberGenerationContext ? ) : List < FirNamedFunctionSymbol >","body":"{ val owner = context ? . owner ? : return emptyList ( ) require ( owner is FirRegularClassSymbol ) val function = when ( callableId . callableName ) { DESCRIBE_CONTENTS_NAME -> { val hasDescribeContentImplementation = owner . hasDescribeContentsImplementation ( ) || lookupSuperTypes ( owner , lookupInterfaces = false , deep = true , session ) . any { it . fullyExpandedType ( session ) . toRegularClassSymbol ( session ) ? . hasDescribeContentsImplementation ( ) ? : false } runIf ( ! hasDescribeContentImplementation ) { createMemberFunctionForParcelize ( owner , callableId . callableName , session . builtinTypes . intType . type ) } } WRITE_TO_PARCEL_NAME -> { val declaredFunctions = owner . declarationSymbols . filterIsInstance < FirNamedFunctionSymbol > ( ) runIf ( declaredFunctions . none { it . isWriteToParcel ( ) } ) { createMemberFunctionForParcelize ( owner , callableId . callableName , session . builtinTypes . unitType . type ) { valueParameter ( DEST_NAME , PARCEL_ID . createConeType ( session ) ) valueParameter ( FLAGS_NAME , session . builtinTypes . intType . type ) } } } else -> null } ? : return emptyList ( ) return listOf ( function . symbol ) }","docstring":""} {"signature":"private fun FirRegularClassSymbol . hasDescribeContentsImplementation ( ) : Boolean","body":"{ return declarationSymbols . filterIsInstance < FirNamedFunctionSymbol > ( ) . any { it . isDescribeContentsImplementation ( ) } }","docstring":""} {"signature":"private fun FirNamedFunctionSymbol . isDescribeContentsImplementation ( ) : Boolean","body":"{ if ( name != DESCRIBE_CONTENTS_NAME ) return false return valueParameterSymbols . isEmpty ( ) }","docstring":""} {"signature":"private fun FirNamedFunctionSymbol . isWriteToParcel ( ) : Boolean","body":"{ if ( name != WRITE_TO_PARCEL_NAME ) return false val parameterSymbols = valueParameterSymbols if ( parameterSymbols . size != ) return false val ( destSymbol , flagsSymbol ) = parameterSymbols if ( destSymbol . resolvedReturnTypeRef . coneType . classId != PARCEL_ID ) return false if ( ! flagsSymbol . resolvedReturnTypeRef . type . isInt ) return false return true }","docstring":""} {"signature":"private inline fun createMemberFunctionForParcelize ( owner : FirRegularClassSymbol , name : Name , returnType : ConeKotlinType , crossinline init : SimpleFunctionBuildingContext . ( ) -> Unit = { } ) : FirSimpleFunction","body":"{ return createMemberFunction ( owner , key , name , returnType ) { modality = if ( owner . modality == Modality . FINAL ) Modality . FINAL else Modality . OPEN status { isOverride = true } init ( ) } }","docstring":""} {"signature":"override fun getCallableNamesForClass ( classSymbol : FirClassSymbol < * > , context : MemberGenerationContext ) : Set < Name >","body":"{ return when { classSymbol . rawStatus . modality == Modality . ABSTRACT || classSymbol . rawStatus . modality == Modality . SEALED -> emptySet ( ) checkParcelizeClassSymbols ( classSymbol , session ) { it in matchedClasses } -> parcelizeMethodsNames else -> emptySet ( ) } }","docstring":""} {"signature":"override fun FirDeclarationPredicateRegistrar . registerPredicates ( )","body":"{ register ( predicate ) }","docstring":""} {"signature":"public fun getLabel ( dataSource : D ) : Float","body":"public fun getLabel ( dataSource : D ) : Float","docstring":"/**\n * Returns a label for provided [dataSource].\n */"} {"signature":"internal fun < D > LabelGenerator < D > . prepareY ( sources : Array < D > ) : FloatArray","body":"{ return FloatArray ( sources . size ) { getLabel ( sources [ it ] ) } }","docstring":""} {"signature":"fun callDynType2 ( list : List < F2 > , param : AN )","body":"{ val fct = list . first ( ) val ret = fct ( param , null ) assertEquals ( param , ret ) }","docstring":""} {"signature":"fun callStaticType2 ( fct : F2 , param : AN )","body":"{ val ret = fct ( param , null ) assertEquals ( param , ret ) }","docstring":""} {"signature":"fun callDynType32 ( list : List < F32 > , param : AN )","body":"{ val fct = list . first ( ) val ret = fct ( param , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null ) assertEquals ( param , ret ) }","docstring":""} {"signature":"fun callStaticType32 ( fct : F32 , param : AN )","body":"{ val ret = fct ( param , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null ) assertEquals ( param , ret ) }","docstring":""} {"signature":"fun callDynType33 ( list : List < F33 > , param : AN )","body":"{ val fct = list . first ( ) val ret = fct ( param , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null ) assertEquals ( param , ret ) }","docstring":""} {"signature":"fun callStaticType33 ( fct : F33 , param : AN )","body":"{ val ret = fct ( param , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , null ) assertEquals ( param , ret ) }","docstring":""} {"signature":"fun getDynTypeLambda2 ( ) : F2Holder","body":"= F2Holder ( { p1 , _ -> p1 } )","docstring":""} {"signature":"fun getStaticLambda2 ( ) : F2","body":"= { p1 , _ -> p1 }","docstring":""} {"signature":"private fun f2 ( p1 : AN , p2 : AN ) : AN","body":"= p1","docstring":""} {"signature":"fun getDynTypeRef2 ( ) : F2Holder","body":"= F2Holder ( :: f2 )","docstring":""} {"signature":"fun getStaticRef2 ( ) : F2","body":"= :: f2","docstring":""} {"signature":"private fun f32 ( p1 : AN , p2 : AN , p3 : AN , p4 : AN , p5 : AN , p6 : AN , p7 : AN , p8 : AN , p9 : AN , p10 : AN , p11 : AN , p12 : AN , p13 : AN , p14 : AN , p15 : AN , p16 : AN , p17 : AN , p18 : AN , p19 : AN , p20 : AN , p21 : AN , p22 : AN , p23 : AN , p24 : AN , p25 : AN , p26 : AN , p27 : AN , p28 : AN , p29 : AN , p30 : AN , p31 : AN , p32 : AN ) : AN","body":"= p1","docstring":""} {"signature":"private fun f33 ( p1 : AN , p2 : AN , p3 : AN , p4 : AN , p5 : AN , p6 : AN , p7 : AN , p8 : AN , p9 : AN , p10 : AN , p11 : AN , p12 : AN , p13 : AN , p14 : AN , p15 : AN , p16 : AN , p17 : AN , p18 : AN , p19 : AN , p20 : AN , p21 : AN , p22 : AN , p23 : AN , p24 : AN , p25 : AN , p26 : AN , p27 : AN , p28 : AN , p29 : AN , p30 : AN , p31 : AN , p32 : AN , p33 : AN ) : AN","body":"= p1","docstring":""} {"signature":"fun getDynType32 ( ) : F32Holder","body":"= F32Holder ( :: f32 )","docstring":""} {"signature":"fun getStaticType32 ( ) : F32","body":"= :: f32","docstring":""} {"signature":"fun getDynTypeRef33 ( ) : F33Holder","body":"= F33Holder ( :: f33 )","docstring":""} {"signature":"fun getStaticTypeRef33 ( ) : F33","body":"= :: f33","docstring":""} {"signature":"fun getDynTypeLambda33 ( ) : F33Holder","body":"= F33Holder ( getStaticTypeLambda33 ( ) )","docstring":""} {"signature":"fun getStaticTypeLambda33 ( ) : F33","body":"= { p , _ , _ , _ , _ , _ , _ , _ , _ , _ , _ , _ , _ , _ , _ , _ , _ , _ , _ , _ , _ , _ , _ , _ , _ , _ , _ , _ , _ , _ , _ , _ , _ -> p }","docstring":""} {"signature":"fun test ( d : dynamic )","body":"{ val v1 = d ? . foo ( ) v1 . isDynamic ( ) val v2 = d ! ! . foo ( ) v2 . isDynamic ( ) }","docstring":""} {"signature":"private fun pathForCallable ( callableMemberDeclaration : FirCallableDeclaration ) : List < FirClassLikeDeclaration >","body":"{ val result = mutableListOf < FirClassLikeDeclaration > ( ) var current = parentClassForFunction [ callableMemberDeclaration ] while ( current != null ) { result += current current = parentForClass [ current ] } return result . asReversed ( ) }","docstring":""} {"signature":"fun FirClassLikeDeclaration . collectLocalClassesNavigationInfo ( ) : LocalClassesNavigationInfo","body":"= NavigationInfoVisitor ( ) . run { this@collectLocalClassesNavigationInfo . accept ( this @ run , null ) LocalClassesNavigationInfo ( parentForClass , resultingMap ) }","docstring":""} {"signature":"override fun visitElement ( element : FirElement , data : Any ? )","body":"{ }","docstring":""} {"signature":"override fun visitRegularClass ( regularClass : FirRegularClass , data : Any ? )","body":"{ visitClass ( regularClass , null ) }","docstring":""} {"signature":"override fun visitAnonymousObject ( anonymousObject : FirAnonymousObject , data : Any ? )","body":"{ visitClass ( anonymousObject , null ) }","docstring":""} {"signature":"override fun visitTypeAlias ( typeAlias : FirTypeAlias , data : Any ? )","body":"{ parentForClass [ typeAlias ] = currentPath . lastOrNull ( ) }","docstring":""} {"signature":"override fun visitClass ( klass : FirClass , data : Any ? )","body":"{ parentForClass [ klass ] = currentPath . lastOrNull ( ) currentPath . add ( klass ) klass . acceptChildren ( this , null ) currentPath . removeAt ( currentPath . size - ) }","docstring":""} {"signature":"override fun visitSimpleFunction ( simpleFunction : FirSimpleFunction , data : Any ? )","body":"{ visitCallableDeclaration ( simpleFunction , null ) }","docstring":""} {"signature":"override fun visitProperty ( property : FirProperty , data : Any ? )","body":"{ visitCallableDeclaration ( property , null ) }","docstring":""} {"signature":"override fun visitField ( field : FirField , data : Any ? )","body":"{ visitCallableDeclaration ( field , null ) }","docstring":""} {"signature":"override fun visitConstructor ( constructor : FirConstructor , data : Any ? )","body":"{ visitCallableDeclaration ( constructor , null ) }","docstring":""} {"signature":"override fun visitCallableDeclaration ( callableDeclaration : FirCallableDeclaration , data : Any ? )","body":"{ if ( callableDeclaration . returnTypeRef !is FirImplicitTypeRef ) return resultingMap [ callableDeclaration ] = currentPath . last ( ) }","docstring":""} {"signature":"@ OptIn ( UnsafeApi :: class ) fun create ( compilation : KotlinCompilation < * > ) : Scope","body":"{ return Scope ( \"\" ) }","docstring":""} {"signature":"override fun toString ( ) : String","body":"= name","docstring":""} {"signature":"override fun hashCode ( ) : Int","body":"= name . hashCode ( )","docstring":""} {"signature":"override fun equals ( other : Any ? ) : Boolean","body":"{ if ( other !is Scope ) return false return this . name == other . name }","docstring":""} {"signature":"override fun toString ( ) : String","body":"= uniqueName","docstring":""} {"signature":"fun bar ( )","body":"= foo ( )","docstring":""} {"signature":"override fun resumeWith ( result : Result < Any ? > )","body":"{ result . getOrThrow ( ) }","docstring":""} {"signature":"suspend fun s1 ( ) : Int","body":"= suspendCoroutineUninterceptedOrReturn { x -> sb . appendLine ( \"\" ) x . resume ( ) COROUTINE_SUSPENDED }","docstring":""} {"signature":"fun f1 ( ) : Int","body":"{ sb . appendLine ( \"\" ) return }","docstring":""} {"signature":"fun f2 ( ) : Int","body":"{ sb . appendLine ( \"\" ) return }","docstring":""} {"signature":"fun f3 ( x : Int , y : Int ) : Int","body":"{ sb . appendLine ( \"\" ) return x + y }","docstring":""} {"signature":"fun builder ( c : suspend ( ) -> Unit )","body":"{ c . startCoroutine ( EmptyContinuation ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ var result = builder { result = try { s1 ( ) } catch ( t : Throwable ) { f2 ( ) } } sb . appendLine ( result ) assertEquals ( \"\"\"\"\"\" . trimIndent ( ) , sb . toString ( ) ) return \"\" }","docstring":""} {"signature":"override fun check ( declaration : KtDeclaration , descriptor : DeclarationDescriptor , context : DeclarationCheckerContext )","body":"{ if ( descriptor is ClassDescriptor && ! descriptor . isEffectivelyExternal ( ) ) { val superClasses = listOfNotNull ( descriptor . getSuperClassNotAny ( ) ) + descriptor . getSuperInterfaces ( ) for ( superClass in superClasses ) { if ( superClass . isEffectivelyExternal ( ) ) { context . trace . report ( ErrorsWasm . NON_EXTERNAL_TYPE_EXTENDS_EXTERNAL_TYPE . on ( declaration as KtClassOrObject , superClass . defaultType ) ) } } } }","docstring":""} {"signature":"fun get ( ) : T","body":"fun get ( ) : T","docstring":""} {"signature":"fun < T > LinkedSnippet < T > ? . toList ( ) : List < T >","body":"= toList { it }","docstring":""} {"signature":"fun < T , R > LinkedSnippet < T > ? . toList ( mapper : ( T ) -> R ) : List < R >","body":"{ val res = ArrayList < R > ( ) var el = this while ( el != null ) { res . add ( mapper ( el . get ( ) ) ) el = el . previous } res . reverse ( ) return res }","docstring":""} {"signature":"fun < T > LinkedSnippet < T > ? . get ( ) : T ?","body":"= this ? . get ( )","docstring":""} {"signature":"override fun get ( ) : T","body":"= _val","docstring":""} {"signature":"fun < T > LinkedSnippetImpl < T > ? . add ( value : T )","body":"= LinkedSnippetImpl ( value , this )","docstring":""} {"signature":"override fun get ( index : Int ) : String","body":"{ return \"\" }","docstring":""} {"signature":"open public fun test ( ) : Unit","body":"{ result = ok ! ! }","docstring":""} {"signature":"fun box ( ) : String","body":"{ Test ( ) . test ( ) return result }","docstring":""} {"signature":"fun < S : T > takeFoo ( foo : Foo < in S > )","body":"{ }","docstring":""} {"signature":"fun < K : Out < A < String > > > main ( )","body":"{ val foo = Foo < K > ( ) Bar < Out < B < String > > > ( ) . takeFoo ( foo ) }","docstring":""} {"signature":"override fun findAnnotation ( fqName : FqName )","body":"= element ? . declaredAnnotations ? . findAnnotation ( fqName )","docstring":""} {"signature":"fun Array < Annotation > . getAnnotations ( ) : List < ReflectJavaAnnotation >","body":"{ return map ( :: ReflectJavaAnnotation ) }","docstring":""} {"signature":"fun Array < Annotation > . findAnnotation ( fqName : FqName ) : ReflectJavaAnnotation ?","body":"{ return firstOrNull { it . annotationClass . java . classId . asSingleFqName ( ) == fqName } ? . let ( :: ReflectJavaAnnotation ) }","docstring":""} {"signature":"override fun lower ( irFile : IrFile )","body":"{ val tf = transformer ( irFile ) irFile . transformChildrenVoid ( tf ) tf . implementations . values . forEach { val parentClass = it . parent as IrDeclarationContainer parentClass . declarations += it } }","docstring":""} {"signature":"override fun visitClassNew ( declaration : IrClass ) : IrStatement","body":"{ declaration . addConstructorBodyForCompatibility ( ) return super . visitClassNew ( declaration ) }","docstring":""} {"signature":"protected fun IrClass . addConstructorBodyForCompatibility ( )","body":"{ if ( ! isAnnotationClass ) return val primaryConstructor = constructors . singleOrNull ( ) ? : return if ( primaryConstructor . body != null ) return modality = Modality . OPEN primaryConstructor . body = context . createIrBuilder ( symbol ) . irBlockBody ( SYNTHETIC_OFFSET , SYNTHETIC_OFFSET ) { + irDelegatingConstructorCall ( context . irBuiltIns . anyClass . owner . constructors . single ( ) ) + IrInstanceInitializerCallImpl ( startOffset , endOffset , this @ addConstructorBodyForCompatibility . symbol , context . irBuiltIns . unitType ) } }","docstring":""} {"signature":"abstract fun chooseConstructor ( implClass : IrClass , expression : IrConstructorCall ) : IrConstructor","body":"abstract fun chooseConstructor ( implClass : IrClass , expression : IrConstructorCall ) : IrConstructor","docstring":""} {"signature":"override fun visitConstructorCall ( expression : IrConstructorCall ) : IrExpression","body":"{ val constructedClass = expression . type . classOrNull ? . owner ? : return super . visitConstructorCall ( expression ) if ( ! constructedClass . isAnnotationClass ) return super . visitConstructorCall ( expression ) require ( expression . symbol . owner . isPrimary ) { \"\" } val implClass = implementations . getOrPut ( constructedClass ) { createAnnotationImplementation ( constructedClass ) } val ctor = chooseConstructor ( implClass , expression ) val newCall = IrConstructorCallImpl . fromSymbolOwner ( expression . startOffset , expression . endOffset , implClass . defaultType , ctor . symbol , ) moveValueArgumentsUsingNames ( expression , newCall ) newCall . transformChildrenVoid ( ) return newCall }","docstring":""} {"signature":"open fun IrClass . platformSetup ( )","body":"{ }","docstring":""} {"signature":"private fun moveValueArgumentsUsingNames ( source : IrConstructorCall , destination : IrConstructorCall )","body":"{ val argumentsByName = source . getArgumentsWithIr ( ) . associateBy ( { ( param , _ ) -> param . name } , { ( _ , value ) -> value } ) destination . symbol . owner . valueParameters . forEachIndexed { index , parameter -> val valueArg = argumentsByName [ parameter . name ] if ( parameter . defaultValue == null && valueArg == null ) { if ( parameter . type . isBoxedArray || parameter . type . isPrimitiveArray ( ) || parameter . type . isUnsignedArray ( ) ) { val arrayType = parameter . type val arrayConstructorCall = if ( arrayType . isBoxedArray ) { val arrayFunction = context . ir . symbols . arrayOfNulls IrCallImpl . fromSymbolOwner ( source . startOffset , source . endOffset , arrayType , arrayFunction ) } else { val arrayConstructor = arrayType . classOrNull ! ! . constructors . single { it . owner . valueParameters . size == && it . owner . valueParameters . single ( ) . type == context . irBuiltIns . intType } IrConstructorCallImpl . fromSymbolOwner ( source . startOffset , source . endOffset , arrayType , arrayConstructor ) } arrayConstructorCall . putValueArgument ( , IrConstImpl . int ( source . startOffset , source . endOffset , context . irBuiltIns . intType , ) ) destination . putValueArgument ( index , arrayConstructorCall ) return } else { error ( \"\" + \"\" ) } } destination . putValueArgument ( index , valueArg ) } }","docstring":""} {"signature":"private fun createAnnotationImplementation ( annotationClass : IrClass ) : IrClass","body":"{ val localDeclarationParent = currentClass ? . scope ? . getLocalDeclarationParent ( ) as? IrClass val parentFqName = annotationClass . fqNameWhenAvailable ! ! . asString ( ) . replace ( '' , '' ) val wrapperName = Name . identifier ( \"\" ) val subclass = context . irFactory . buildClass { startOffset = SYNTHETIC_OFFSET endOffset = SYNTHETIC_OFFSET name = wrapperName origin = ANNOTATION_IMPLEMENTATION visibility = DescriptorVisibilities . INTERNAL } . apply { parent = localDeclarationParent ? : irFile ? : error ( \"\" ) createImplicitParameterDeclarationWithWrappedDescriptor ( ) superTypes = listOf ( annotationClass . defaultType ) platformSetup ( ) } val ctor = subclass . addConstructor { startOffset = SYNTHETIC_OFFSET endOffset = SYNTHETIC_OFFSET visibility = DescriptorVisibilities . PUBLIC } implementAnnotationPropertiesAndConstructor ( subclass , annotationClass , ctor ) implementGeneratedFunctions ( annotationClass , subclass ) implementPlatformSpecificParts ( annotationClass , subclass ) return subclass }","docstring":""} {"signature":"abstract fun implementAnnotationPropertiesAndConstructor ( implClass : IrClass , annotationClass : IrClass , generatedConstructor : IrConstructor )","body":"abstract fun implementAnnotationPropertiesAndConstructor ( implClass : IrClass , annotationClass : IrClass , generatedConstructor : IrConstructor )","docstring":""} {"signature":"fun IrClass . getAnnotationProperties ( ) : List < IrProperty >","body":"{ val props = declarations . filterIsInstance < IrProperty > ( ) if ( props . isNotEmpty ( ) ) return props return declarations . filterIsInstanceAnd < IrSimpleFunction > { it . origin == IrDeclarationOrigin . DEFAULT_PROPERTY_ACCESSOR } . mapNotNull { it . correspondingPropertySymbol ? . owner } }","docstring":""} {"signature":"abstract fun getArrayContentEqualsSymbol ( type : IrType ) : IrFunctionSymbol","body":"abstract fun getArrayContentEqualsSymbol ( type : IrType ) : IrFunctionSymbol","docstring":""} {"signature":"open fun IrExpression . transformArrayEqualsArgument ( type : IrType , irBuilder : IrBlockBodyBuilder ) : IrExpression","body":"= this","docstring":""} {"signature":"fun generatedEquals ( irBuilder : IrBlockBodyBuilder , type : IrType , arg1 : IrExpression , arg2 : IrExpression ) : IrExpression","body":"= if ( type . isArray ( ) || type . isPrimitiveArray ( ) || type . isUnsignedArray ( ) ) { val requiredSymbol = getArrayContentEqualsSymbol ( type ) val lhs = arg1 . transformArrayEqualsArgument ( type , irBuilder ) val rhs = arg2 . transformArrayEqualsArgument ( type , irBuilder ) irBuilder . irCall ( requiredSymbol ) . apply { if ( requiredSymbol . owner . extensionReceiverParameter != null ) { extensionReceiver = lhs putValueArgument ( , rhs ) } else { putValueArgument ( , lhs ) putValueArgument ( , rhs ) } } } else irBuilder . irEquals ( arg1 , arg2 )","docstring":""} {"signature":"open fun generateFunctionBodies ( annotationClass : IrClass , implClass : IrClass , eqFun : IrSimpleFunction , hcFun : IrSimpleFunction , toStringFun : IrSimpleFunction , generator : AnnotationImplementationMemberGenerator )","body":"{ val properties = annotationClass . getAnnotationProperties ( ) generator . generateEqualsUsingGetters ( eqFun , annotationClass . defaultType , properties ) generator . generateHashCodeMethod ( hcFun , properties ) generator . generateToStringMethod ( toStringFun , properties ) }","docstring":""} {"signature":"fun implementGeneratedFunctions ( annotationClass : IrClass , implClass : IrClass )","body":"{ val creator = MethodsFromAnyGeneratorForLowerings ( context , implClass , ANNOTATION_IMPLEMENTATION ) val eqFun = creator . createEqualsMethodDeclaration ( ) val hcFun = creator . createHashCodeMethodDeclaration ( ) val toStringFun = creator . createToStringMethodDeclaration ( ) if ( annotationClass != implClass ) { implClass . addFakeOverrides ( context . typeSystem ) } val generator = AnnotationImplementationMemberGenerator ( context , implClass , nameForToString = \"\" + annotationClass . fqNameWhenAvailable ! ! . asString ( ) , forbidDirectFieldAccess = forbidDirectFieldAccessInMethods ) { type , a , b -> generatedEquals ( this , type , a , b ) } generateFunctionBodies ( annotationClass , implClass , eqFun , hcFun , toStringFun , generator ) }","docstring":""} {"signature":"open fun implementPlatformSpecificParts ( annotationClass : IrClass , implClass : IrClass )","body":"{ }","docstring":""} {"signature":"override fun IrClass . classNameForToString ( ) : String","body":"= nameForToString","docstring":""} {"signature":"override fun IrBuilderWithScope . shiftResultOfHashCode ( irResultVar : IrVariable ) : IrExpression","body":"= irGet ( irResultVar )","docstring":""} {"signature":"override fun getHashCodeOf ( builder : IrBuilderWithScope , property : IrProperty , irValue : IrExpression ) : IrExpression","body":"= with ( builder ) { val propertyValueHashCode = getHashCodeOf ( property . type , irValue ) val propertyNameHashCode = getHashCodeOf ( backendContext . irBuiltIns . stringType , irString ( property . name . toString ( ) ) ) val multiplied = irCallOp ( context . irBuiltIns . intTimesSymbol , context . irBuiltIns . intType , propertyNameHashCode , irInt ( ) ) return irCallOp ( context . irBuiltIns . intXorSymbol , context . irBuiltIns . intType , multiplied , propertyValueHashCode ) }","docstring":""} {"signature":"private fun IrBuilderWithScope . getHashCodeOf ( type : IrType , irValue : IrExpression ) : IrExpression","body":"{ return getHashCodeOf ( getHashCodeFunctionInfo ( type ) , irValue ) }","docstring":""} {"signature":"fun generateEqualsUsingGetters ( equalsFun : IrSimpleFunction , typeForEquals : IrType , properties : List < IrProperty > )","body":"= equalsFun . apply { body = backendContext . createIrBuilder ( symbol , SYNTHETIC_OFFSET , SYNTHETIC_OFFSET ) . irBlockBody { val irType = typeForEquals fun irOther ( ) = irGet ( valueParameters [ ] ) fun irThis ( ) = irGet ( dispatchReceiverParameter ! ! ) fun IrProperty . get ( receiver : IrExpression ) = irCall ( getter ! ! ) . apply { dispatchReceiver = receiver } + irIfThenReturnFalse ( irNotIs ( irOther ( ) , irType ) ) val otherWithCast = irTemporary ( irAs ( irOther ( ) , irType ) , \"\" ) for ( property in properties ) { val arg1 = property . get ( irThis ( ) ) val arg2 = property . get ( irGet ( irType , otherWithCast . symbol ) ) + irIfThenReturnFalse ( irNot ( selectEquals ( property . type , arg1 , arg2 ) ) ) } + irReturnTrue ( ) } }","docstring":""} {"signature":"fun foo ( param : String )","body":"= \"\"","docstring":""} {"signature":"fun bar ( param : String )","body":"= \"\"","docstring":""} {"signature":"fun foo ( param : String = \"\" )","body":"= \"\"","docstring":""} {"signature":"fun bar ( param : String = \"\" )","body":"= \"\"","docstring":""} {"signature":"fun lib ( ) : String","body":"= when { foo ( \"\" ) != \"\" -> \"\" X ( \"\" ) . bar ( \"\" ) != \"\" -> \"\" else -> \"\" }","docstring":""} {"signature":"fun box ( ) : String","body":"= lib ( )","docstring":""} {"signature":"fun tryParseEffect ( expression : KtExpression ) : EffectDeclaration ?","body":"fun tryParseEffect ( expression : KtExpression ) : EffectDeclaration ?","docstring":""} {"signature":"fun main ( )","body":"{ withSpark ( props = mapOf ( \"\" to true ) ) { dsOf ( mapOf ( to t ( , , ) , to t ( , , ) ) , mapOf ( to t ( , , ) , to t ( , , ) ) , ) . flatMap { it . toList ( ) . map { ( first , tuple ) -> ( first + tuple ) . toList ( ) } . iterator ( ) } . flatten ( ) . map { tupleOf ( it ) } . also { it . printSchema ( ) } . distinct ( ) . sort ( \"\" ) . debugCodegen ( ) . show ( ) } }","docstring":""} {"signature":"private fun KotlinType . isValueOrPrimitive ( ) : Boolean","body":"= KotlinBuiltIns . isPrimitiveType ( this ) || constructor . declarationDescriptor . let { it is ClassDescriptor && it . isValue } || constructor . let { manyTypes -> manyTypes is IntegerLiteralTypeConstructor && manyTypes . possibleTypes . any { it . isValueOrPrimitive ( ) } }","docstring":""} {"signature":"override fun check ( resolvedCall : ResolvedCall < * > , reportOn : PsiElement , context : CallCheckerContext )","body":"{ if ( resolvedCall . resultingDescriptor ? . isTopLevelInPackage ( \"\" , \"\" ) != true ) return val argument = resolvedCall . valueArgumentsByIndex ? . get ( ) ? . arguments ? . firstOrNull ( ) ? : return val type = argument . getArgumentExpression ( ) ? . getType ( context . trace . bindingContext ) ? : return if ( type . isValueOrPrimitive ( ) ) { context . trace . report ( Errors . FORBIDDEN_SYNCHRONIZED_BY_VALUE_CLASSES_OR_PRIMITIVES . on ( reportOn , type ) ) } }","docstring":""} {"signature":"inline fun FirFunctionCall . copyAsImplicitInvokeCall ( setupCopy : FirImplicitInvokeCallBuilder . ( ) -> Unit ) : FirImplicitInvokeCall","body":"{ val original = this return buildImplicitInvokeCall { source = original . source annotations . addAll ( original . annotations ) typeArguments . addAll ( original . typeArguments ) explicitReceiver = original . explicitReceiver dispatchReceiver = original . dispatchReceiver extensionReceiver = original . extensionReceiver argumentList = original . argumentList calleeReference = original . calleeReference setupCopy ( ) } }","docstring":""} {"signature":"fun FirTypeRef . resolvedTypeFromPrototype ( type : ConeKotlinType , fallbackSource : KtSourceElement ? = null , ) : FirResolvedTypeRef","body":"{ return if ( type is ConeErrorType ) { buildErrorTypeRef { source = this@resolvedTypeFromPrototype . source ? : fallbackSource this . type = type diagnostic = type . diagnostic annotations += this@resolvedTypeFromPrototype . annotations } } else { buildResolvedTypeRef { source = this@resolvedTypeFromPrototype . source ? : fallbackSource this . type = type delegatedTypeRef = when ( val original = this @ resolvedTypeFromPrototype ) { is FirResolvedTypeRef -> original . delegatedTypeRef is FirUserTypeRef -> original else -> null } annotations += this@resolvedTypeFromPrototype . annotations } } }","docstring":""} {"signature":"fun List < FirAnnotation > . computeTypeAttributes ( session : FirSession , predefined : List < ConeAttribute < * > > = emptyList ( ) , allowExtensionFunctionType : Boolean = true , shouldExpandTypeAliases : Boolean ) : ConeAttributes","body":"{ if ( this . isEmpty ( ) ) { if ( predefined . isEmpty ( ) ) return ConeAttributes . Empty return ConeAttributes . create ( predefined ) } val attributes = mutableListOf < ConeAttribute < * > > ( ) attributes += predefined val customAnnotations = mutableListOf < FirAnnotation > ( ) for ( annotation in this ) { val classId = when ( shouldExpandTypeAliases ) { true -> annotation . tryExpandClassId ( session ) false -> annotation . resolvedType . classId } when ( classId ) { CompilerConeAttributes . Exact . ANNOTATION_CLASS_ID -> attributes += CompilerConeAttributes . Exact CompilerConeAttributes . NoInfer . ANNOTATION_CLASS_ID -> attributes += CompilerConeAttributes . NoInfer CompilerConeAttributes . ExtensionFunctionType . ANNOTATION_CLASS_ID -> when { allowExtensionFunctionType -> attributes += CompilerConeAttributes . ExtensionFunctionType } CompilerConeAttributes . ContextFunctionTypeParams . ANNOTATION_CLASS_ID -> attributes += CompilerConeAttributes . ContextFunctionTypeParams ( annotation . extractContextReceiversCount ( ) ? : ) CompilerConeAttributes . UnsafeVariance . ANNOTATION_CLASS_ID -> attributes += CompilerConeAttributes . UnsafeVariance else -> { val attributeFromPlugin = session . extensionService . typeAttributeExtensions . firstNotNullOfOrNull { it . extractAttributeFromAnnotation ( annotation ) } if ( attributeFromPlugin != null ) { attributes += attributeFromPlugin } else { customAnnotations += annotation } } } } if ( customAnnotations . isNotEmpty ( ) ) { attributes += CustomAnnotationTypeAttribute ( customAnnotations ) } return ConeAttributes . create ( attributes ) }","docstring":"/**\n * [shouldExpandTypeAliases] should be set to `false` if this function is called during deserialization of some binary declaration\n * For details see KT-57876\n */"} {"signature":"private fun FirAnnotation . tryExpandClassId ( session : FirSession ) : ClassId ?","body":"{ return when ( val directlyExpanded = unexpandedConeClassLikeType ? . directExpansionType ( session ) { it . expandedConeType } ) { null -> unexpandedConeClassLikeType ? . classId else -> directlyExpanded . fullyExpandedType ( session ) . classId } }","docstring":""} {"signature":"private fun FirAnnotation . extractContextReceiversCount ( )","body":"= ( argumentMapping . mapping [ StandardNames . CONTEXT_FUNCTION_TYPE_PARAMETER_COUNT_NAME ] as? FirLiteralExpression < * > ) ? . value as? Int","docstring":""} {"signature":"override fun check ( resolvedCall : ResolvedCall < * > , reportOn : PsiElement , context : CallCheckerContext )","body":"{ val descriptor = resolvedCall . resultingDescriptor if ( descriptor . name . asString ( ) != \"\" ) return if ( descriptor . extensionReceiverParameter ? . annotations ? . hasAnnotation ( FqNames . accessibleLateinitPropertyLiteral ) != true ) return val expression = ( resolvedCall . extensionReceiver as? ExpressionReceiver ) ? . expression ? . let ( KtPsiUtil :: safeDeparenthesize ) fun < T > chooseDiagnostic ( ifWarning : T , ifError : T ) = if ( isWarningInPre19 && ! context . languageVersionSettings . supportsFeature ( LanguageFeature . NativeJsProhibitLateinitIsInitializedIntrinsicWithoutPrivateAccess ) ) ifWarning else ifError if ( expression !is KtCallableReferenceExpression ) { val diagnostic = chooseDiagnostic ( LATEINIT_INTRINSIC_CALL_ON_NON_LITERAL_WARNING , LATEINIT_INTRINSIC_CALL_ON_NON_LITERAL ) context . trace . report ( diagnostic . on ( reportOn ) ) } else { val propertyReferenceResolvedCall = expression . callableReference . getResolvedCall ( context . trace . bindingContext ) ? : return val referencedProperty = propertyReferenceResolvedCall . resultingDescriptor if ( referencedProperty !is PropertyDescriptor ) { error ( \"\" ) } if ( ! referencedProperty . isLateInit ) { val diagnostic = chooseDiagnostic ( LATEINIT_INTRINSIC_CALL_ON_NON_LATEINIT_WARNING , LATEINIT_INTRINSIC_CALL_ON_NON_LATEINIT ) context . trace . report ( diagnostic . on ( reportOn ) ) } else if ( ! isBackingFieldAccessible ( referencedProperty , context ) ) { val diagnostic = chooseDiagnostic ( LATEINIT_INTRINSIC_CALL_ON_NON_ACCESSIBLE_PROPERTY_WARNING , LATEINIT_INTRINSIC_CALL_ON_NON_ACCESSIBLE_PROPERTY ) context . trace . report ( diagnostic . on ( reportOn , referencedProperty ) ) } else if ( ( context . scope . ownerDescriptor as? FunctionDescriptor ) ? . isInline == true ) { val diagnostic = chooseDiagnostic ( LATEINIT_INTRINSIC_CALL_IN_INLINE_FUNCTION_WARNING , LATEINIT_INTRINSIC_CALL_IN_INLINE_FUNCTION ) context . trace . report ( diagnostic . on ( reportOn ) ) } } }","docstring":""} {"signature":"private fun isBackingFieldAccessible ( descriptor : PropertyDescriptor , context : CallCheckerContext ) : Boolean","body":"{ val declaration = OverridingUtil . filterOutOverridden ( OverridingUtil . getOverriddenDeclarations ( descriptor ) ) . singleOrNull ( ) ? : return false val declarationSourceFile = DescriptorToSourceUtils . getContainingFile ( declaration ) ? : return false val usageSourceFile = DescriptorToSourceUtils . getContainingFile ( context . scope . ownerDescriptor ) ? : return false if ( declarationSourceFile != usageSourceFile ) return false return declaration . containingDeclaration in generateSequence ( context . scope . ownerDescriptor , DeclarationDescriptor :: getContainingDeclaration ) }","docstring":""} {"signature":"actual fun libCommonMainExpectFun ( ) : Unit","body":"{ println ( \"\" ) libCommonMainTopLevelFun ( ) println ( CArrayPointer :: class ) libCommonMainInternalFun ( ) throw MyCustomException ( ) }","docstring":""} {"signature":"fun additionalFunInLinuxActual ( )","body":"{ println ( \"\" ) }","docstring":""} {"signature":"fun libLinuxMainFun ( ) : LibCommonMainIface","body":"= LibCommonMainExpect ( )","docstring":""} {"signature":"fun getPredicate ( ) : ( Person ) -> Boolean","body":"{ val startsWithPrefix = { p : Person -> p . firstName . startsWith ( prefix ) || p . lastName . startsWith ( prefix ) } if ( ! onlyWithPhoneNumber ) { return startsWithPrefix } return { startsWithPrefix ( it ) && it . phoneNumber != null } }","docstring":""} {"signature":"fun main ( )","body":"{ val contacts = listOf ( Person ( \"\" , \"\" , \"\" ) , Person ( \"\" , \"\" , null ) ) val contactListFilters = ContactListFilters ( ) with ( contactListFilters ) { prefix = \"\" onlyWithPhoneNumber = true } println ( contacts . filter ( contactListFilters . getPredicate ( ) ) ) }","docstring":""} {"signature":"override fun createPointer ( ) : KtSymbolPointer < KtTypeAliasSymbol >","body":"= withValidityAssertion { KtPsiBasedSymbolPointer . createForSymbolFromSource < KtTypeAliasSymbol > ( this ) ? . let { return it } when ( val symbolKind = symbolKind ) { KtSymbolKind . LOCAL -> throw CanNotCreateSymbolPointerForLocalLibraryDeclarationException ( classIdIfNonLocal ? . asString ( ) ? : name . asString ( ) ) KtSymbolKind . CLASS_MEMBER , KtSymbolKind . TOP_LEVEL -> KtFirClassLikeSymbolPointer ( classIdIfNonLocal ! ! , KtTypeAliasSymbol :: class ) else -> throw UnsupportedSymbolKind ( this :: class , symbolKind ) } }","docstring":""} {"signature":"override fun equals ( other : Any ? ) : Boolean","body":"= symbolEquals ( other )","docstring":""} {"signature":"override fun hashCode ( ) : Int","body":"= symbolHashCode ( )","docstring":""} {"signature":"@ PublishedApi internal fun fromContext ( variables : List < String > , title : String ? , anchor : Anchor ? , minWidth : Double ? , enable : Boolean , valueFormats : List < Pair < String , String > > , context : LayerTooltipsContext ) : LayerTooltips","body":"{ return LayerTooltips ( variables , context . lineBuffer , valueFormats + context . formatsBuffer . toList ( ) , title , anchor , minWidth , enable ) }","docstring":""} {"signature":"@ ExperimentalKotlinGradlePluginApi fun compilerOptions ( configure : CO . ( ) -> Unit )","body":"{ configure ( compilerOptions ) }","docstring":"/**\n * Configures the [compilerOptions] with the provided configuration.\n */"} {"signature":"@ ExperimentalKotlinGradlePluginApi fun compilerOptions ( configure : Action < CO > )","body":"{ configure . execute ( compilerOptions ) }","docstring":"/**\n * Configures the [compilerOptions] with the provided configuration.\n */"} {"signature":"fun box ( ) : String","body":"{ val FALSE : Boolean ? = false if ( FALSE != null ) { do { return \"\" } while ( FALSE ) } return \"\" }","docstring":""} {"signature":"fun yield ( arg : CT )","body":"{ }","docstring":""} {"signature":"fun materialize ( ) : CT","body":"= In < UserSuperklass > ( ) as CT","docstring":""} {"signature":"fun < FT > build ( instructions : Buildee < FT > . ( ) -> Unit ) : Buildee < FT >","body":"{ return Buildee < FT > ( ) . apply ( instructions ) }","docstring":""} {"signature":"fun testYield ( )","body":"{ val arg : In < UserKlass > = In < UserSuperklass > ( ) val buildee = build { yield ( arg ) } checkExactType < Buildee < In < UserKlass > > > ( buildee ) }","docstring":""} {"signature":"fun testMaterialize ( )","body":"{ fun consume ( arg : In < UserKlass > ) { } val buildee = build { consume ( materialize ( ) ) } checkExactType < Buildee < In < UserKlass > > > ( buildee ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ testYield ( ) testMaterialize ( ) return \"\" }","docstring":""} {"signature":"inline fun < reified T > foo ( )","body":"= null","docstring":""} {"signature":"fun f0 ( t : List < Array < Array < Thread . State > > > )","body":"{ }","docstring":""} {"signature":"fun f1 ( ) : A1 . B1 . C1 ?","body":"= null","docstring":""} {"signature":"fun f2 ( )","body":"{ foo < A2 . B2 . C2 > ( ) }","docstring":""} {"signature":"fun f3 ( x : Any ) : Any ?","body":"= x as? A3 . B3 . C3","docstring":""} {"signature":"fun f4 ( ) : String","body":"{ val x = listOf < A4 . B4 . C4 > ( ) return x . toString ( ) }","docstring":""} {"signature":"fun f5 ( ) : String","body":"{ val x : A5 . B5 . C5 ? = null return x . toString ( ) }","docstring":""} {"signature":"fun f6 ( ) : A6 . B6 . C6 ?","body":"= null","docstring":""} {"signature":"fun f7 ( @ ClassHolder ( A7 . B7 . C7 :: class ) x : Int )","body":"{ }","docstring":""} {"signature":"fun f8 ( )","body":"= A8 . B8 . C8 :: class . toString ( )","docstring":""} {"signature":"fun registerExtensionPoint ( project : Project )","body":"{ CoreApplicationEnvironment . registerExtensionPoint ( project . extensionArea , extensionPointName . name , extensionClass ) }","docstring":""} {"signature":"fun registerExtension ( project : Project , extension : T )","body":"{ project . extensionArea . getExtensionPoint ( extensionPointName ) . registerExtension ( extension , project ) }","docstring":""} {"signature":"fun getInstances ( project : Project ) : List < T >","body":"{ val projectArea = project . extensionArea if ( ! projectArea . hasExtensionPoint ( extensionPointName . name ) ) return listOf ( ) return projectArea . getExtensionPoint ( extensionPointName ) . extensions . toList ( ) }","docstring":""} {"signature":"@ TaskAction fun copy ( )","body":"{ fileSystem . copy { it . from ( kotlinLibraryPath ) it . from ( syntheticInterfacesPath ) it . from ( syntheticLibraryPath ) it . into ( builtProductsDirectory ) } fileSystem . copy { it . from ( includeBridgeDirectory ) it . into ( syntheticInterfacesDestinationPath ) } fileSystem . copy { it . from ( includeKotlinRuntimeDirectory ) it . into ( kotlinRuntimeDestinationPath ) } }","docstring":""} {"signature":"override fun hasIncrementalCaches ( ) : Boolean","body":"= incrementalCompilationComponents != null","docstring":""} {"signature":"override fun hasLookupTracker ( ) : Boolean","body":"= lookupTracker != null","docstring":""} {"signature":"override fun hasCompilationCanceledStatus ( ) : Boolean","body":"= compilationCanceledStatus != null","docstring":""} {"signature":"override fun hasExpectActualTracker ( ) : Boolean","body":"= expectActualTracker != null","docstring":""} {"signature":"override fun hasInlineConstTracker ( ) : Boolean","body":"= inlineConstTracker != null","docstring":""} {"signature":"override fun hasEnumWhenTracker ( ) : Boolean","body":"= enumWhenTracker != null","docstring":""} {"signature":"override fun hasImportTracker ( ) : Boolean","body":"= importTracker != null","docstring":""} {"signature":"override fun hasIncrementalResultsConsumer ( ) : Boolean","body":"= incrementalResultsConsumer != null","docstring":""} {"signature":"override fun hasIncrementalDataProvider ( ) : Boolean","body":"= incrementalDataProvider != null","docstring":""} {"signature":"override fun incrementalCache_getObsoletePackageParts ( target : TargetId ) : Collection < String >","body":"= incrementalCompilationComponents ! ! . getIncrementalCache ( target ) . getObsoletePackageParts ( )","docstring":""} {"signature":"override fun incrementalCache_getObsoleteMultifileClassFacades ( target : TargetId ) : Collection < String >","body":"= incrementalCompilationComponents ! ! . getIncrementalCache ( target ) . getObsoleteMultifileClasses ( )","docstring":""} {"signature":"override fun incrementalCache_getMultifileFacadeParts ( target : TargetId , internalName : String ) : Collection < String > ?","body":"= incrementalCompilationComponents ! ! . getIncrementalCache ( target ) . getStableMultifileFacadeParts ( internalName )","docstring":""} {"signature":"override fun incrementalCache_getPackagePartData ( target : TargetId , partInternalName : String ) : JvmPackagePartProto ?","body":"= incrementalCompilationComponents ! ! . getIncrementalCache ( target ) . getPackagePartData ( partInternalName )","docstring":""} {"signature":"override fun incrementalCache_getModuleMappingData ( target : TargetId ) : ByteArray ?","body":"= incrementalCompilationComponents ! ! . getIncrementalCache ( target ) . getModuleMappingData ( )","docstring":""} {"signature":"override fun incrementalCache_registerInline ( target : TargetId , fromPath : String , jvmSignature : String , toPath : String )","body":"{ }","docstring":""} {"signature":"override fun incrementalCache_getClassFilePath ( target : TargetId , internalClassName : String ) : String","body":"= incrementalCompilationComponents ! ! . getIncrementalCache ( target ) . getClassFilePath ( internalClassName )","docstring":""} {"signature":"override fun incrementalCache_close ( target : TargetId )","body":"{ incrementalCompilationComponents ! ! . getIncrementalCache ( target ) . close ( ) }","docstring":""} {"signature":"override fun lookupTracker_requiresPosition ( )","body":"= lookupTracker ! ! . requiresPosition","docstring":""} {"signature":"override fun lookupTracker_record ( lookups : Collection < LookupInfo > )","body":"{ val lookupTracker = lookupTracker ! ! for ( it in lookups ) { lookupTracker . record ( it . filePath , it . position , it . scopeFqName , it . scopeKind , it . name ) } }","docstring":""} {"signature":"override fun lookupTracker_isDoNothing ( ) : Boolean","body":"= lookupTracker_isDoNothing","docstring":""} {"signature":"override fun compilationCanceledStatus_checkCanceled ( ) : Void ?","body":"{ try { compilationCanceledStatus ! ! . checkCanceled ( ) return null } catch ( e : Exception ) { if ( e . isProcessCanceledException ( ) ) throw RmiFriendlyCompilationCanceledException ( ) else throw e } }","docstring":""} {"signature":"override fun expectActualTracker_report ( expectedFilePath : String , actualFilePath : String )","body":"{ expectActualTracker ! ! . report ( File ( expectedFilePath ) , File ( actualFilePath ) ) }","docstring":""} {"signature":"override fun inlineConstTracker_report ( filePath : String , owner : String , name : String , constType : String )","body":"{ inlineConstTracker ? . report ( filePath , owner , name , constType ) ? : throw NullPointerException ( \"\" ) }","docstring":""} {"signature":"override fun enumWhenTracker_report ( whenUsageClassPath : String , enumClassFqName : String )","body":"{ enumWhenTracker ? . report ( whenUsageClassPath , enumClassFqName ) ? : throw NullPointerException ( \"\" ) }","docstring":""} {"signature":"override fun importTracker_report ( filePath : String , importedFqName : String )","body":"{ importTracker ? . report ( filePath , importedFqName ) ? : throw NullPointerException ( \"\" ) }","docstring":""} {"signature":"override fun incrementalResultsConsumer_processHeader ( headerMetadata : ByteArray )","body":"{ incrementalResultsConsumer ! ! . processHeader ( headerMetadata ) }","docstring":""} {"signature":"override fun incrementalResultsConsumer_processPackagePart ( sourceFilePath : String , packagePartMetadata : ByteArray , binaryAst : ByteArray , inlineData : ByteArray )","body":"{ incrementalResultsConsumer ! ! . processPackagePart ( File ( sourceFilePath ) , packagePartMetadata , binaryAst , inlineData ) }","docstring":""} {"signature":"override fun incrementalResultsConsumer_processInlineFunctions ( functions : Collection < JsInlineFunctionHash > )","body":"{ incrementalResultsConsumer ! ! . processInlineFunctions ( functions ) }","docstring":""} {"signature":"override fun incrementalResultsConsumer_processPackageMetadata ( packageName : String , metadata : ByteArray )","body":"{ incrementalResultsConsumer ! ! . processPackageMetadata ( packageName , metadata ) }","docstring":""} {"signature":"override fun incrementalDataProvider_getHeaderMetadata ( ) : ByteArray","body":"= incrementalDataProvider ! ! . headerMetadata","docstring":""} {"signature":"override fun incrementalDataProvider_getMetadataVersion ( ) : IntArray","body":"= incrementalDataProvider ! ! . metadataVersion","docstring":""} {"signature":"override fun incrementalDataProvider_getCompiledPackageParts ( )","body":"= incrementalDataProvider ! ! . compiledPackageParts . entries . map { CompiledPackagePart ( it . key . path , it . value . metadata , it . value . binaryAst , it . value . inlineData ) }","docstring":""} {"signature":"override fun incrementalDataProvider_getPackageMetadata ( ) : Collection < PackageMetadata >","body":"= incrementalDataProvider ! ! . packageMetadata . entries . map { ( fqName , metadata ) -> PackageMetadata ( fqName , metadata ) }","docstring":""} {"signature":"override fun toString ( ) : String","body":"{ return \"\" }","docstring":""} {"signature":"fun qux1 ( )","body":"= foo1 ( )","docstring":""} {"signature":"fun foo ( vararg arr : Int ) : Int","body":"{ return arr . sum ( ) }","docstring":""} {"signature":"fun bar ( vararg arr : UInt ) : UInt","body":"{ return arr . sum ( ) }","docstring":""} {"signature":"fun baz ( vararg arr : ULong ) : ULong","body":"{ return arr . sum ( ) }","docstring":""} {"signature":"fun quas ( vararg arr : UShort ) : UInt","body":"{ return arr . sum ( ) }","docstring":""} {"signature":"fun wex ( vararg arr : UByte ) : UInt","body":"{ return arr . sum ( ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val x = foo ( arr = intArrayOf ( , , ) ) val y = bar ( arr = uintArrayOf ( , , ) ) val z = baz ( arr = ulongArrayOf ( , , ) ) val q = quas ( arr = ushortArrayOf ( , , ) ) val w = wex ( arr = ubyteArrayOf ( , , ) ) if ( x + y . toInt ( ) + z . toInt ( ) + q . toInt ( ) + w . toInt ( ) == ) { return \"\" } return \"\" }","docstring":""} {"signature":"fun box ( ) : String","body":"= ( BImpl ( \"\" ) as B ) . result","docstring":""} {"signature":"override fun createState ( lock : ReentrantReadWriteLock ) : IReplStageState < * >","body":"= AggregatedReplStageState ( compiler . createState ( lock ) , evaluator . createState ( lock ) , lock )","docstring":""} {"signature":"override fun compileAndEval ( state : IReplStageState < * > , codeLine : ReplCodeLine , scriptArgs : ScriptArgsWithTypes ? , invokeWrapper : InvokeWrapper ? ) : ReplEvalResult","body":"{ if ( codeLine . code . trim ( ) . isEmpty ( ) ) { return ReplEvalResult . UnitResult ( ) } return state . lock . write { val aggregatedState = state . asState ( AggregatedReplStageState :: class . java ) val compiled = compiler . compile ( state , codeLine ) when ( compiled ) { is ReplCompileResult . Error -> { aggregatedState . apply { lock . write { assert ( state1 . history . size == state2 . history . size ) adjustHistories ( ) } } ReplEvalResult . Error . CompileTime ( compiled . message , compiled . location ) } is ReplCompileResult . Incomplete -> ReplEvalResult . Incomplete ( compiled . message ) is ReplCompileResult . CompiledClasses -> { val result = eval ( state , compiled , scriptArgs , invokeWrapper ) when ( result ) { is ReplEvalResult . Error , is ReplEvalResult . HistoryMismatch , is ReplEvalResult . Incomplete -> { aggregatedState . apply { lock . write { if ( state1 . history . size > state2 . history . size ) { adjustHistories ( ) assert ( state1 . history . size == state2 . history . size ) } } } result } is ReplEvalResult . ValueResult , is ReplEvalResult . UnitResult -> result } } } } }","docstring":""} {"signature":"override fun eval ( state : IReplStageState < * > , compileResult : ReplCompileResult . CompiledClasses , scriptArgs : ScriptArgsWithTypes ? , invokeWrapper : InvokeWrapper ? ) : ReplEvalResult","body":"= evaluator . eval ( state , compileResult , scriptArgs , invokeWrapper )","docstring":""} {"signature":"override fun compileToEvaluable ( state : IReplStageState < * > , codeLine : ReplCodeLine , defaultScriptArgs : ScriptArgsWithTypes ? ) : Pair < ReplCompileResult , Evaluable ? >","body":"{ val compiled = compiler . compile ( state , codeLine ) return when ( compiled ) { is ReplCompileResult . CompiledClasses -> Pair ( compiled , DelayedEvaluation ( state , compiled , evaluator , defaultScriptArgs ? : fallbackScriptArgs ) ) else -> Pair ( compiled , null ) } }","docstring":""} {"signature":"override fun eval ( scriptArgs : ScriptArgsWithTypes ? , invokeWrapper : InvokeWrapper ? ) : ReplEvalResult","body":"= evaluator . eval ( state , compiledCode , scriptArgs ? : defaultScriptArgs , invokeWrapper )","docstring":""} {"signature":"private fun AggregatedReplStageState < * , * > . adjustHistories ( ) : Iterable < ILineId > ?","body":"= state2 . history . peek ( ) ? . let { state1 . history . resetTo ( it . id ) } ? : state1 . history . reset ( )","docstring":""} {"signature":"override fun enterScope ( irTypeParametersContainer : IrTypeParametersContainer )","body":"{ }","docstring":""} {"signature":"override fun leaveScope ( )","body":"{ }","docstring":""} {"signature":"override fun remapType ( type : IrType ) : IrType","body":"= if ( type !is IrSimpleType ) type else IrSimpleTypeImpl ( null , type . classifier . remap ( ) , type . nullability , type . arguments . memoryOptimizedMap { it . remap ( ) } , type . annotations , type . abbreviation ? . remap ( ) ) . apply { annotations . forEach { it . remapTypes ( this @ IrTypeParameterRemapper ) } }","docstring":""} {"signature":"private fun IrClassifierSymbol . remap ( )","body":"= ( owner as? IrTypeParameter ) ? . let { typeParameterMap [ it ] ? . symbol } ? : this","docstring":""} {"signature":"private fun IrTypeArgument . remap ( )","body":"= when ( this ) { is IrTypeProjection -> makeTypeProjection ( remapType ( type ) , variance ) is IrStarProjection -> this }","docstring":""} {"signature":"private fun IrTypeAbbreviation . remap ( )","body":"= IrTypeAbbreviationImpl ( typeAlias , hasQuestionMark , arguments . memoryOptimizedMap { it . remap ( ) } , annotations ) . apply { annotations . forEach { it . remapTypes ( this @ IrTypeParameterRemapper ) } }","docstring":""} {"signature":"open fun foo ( a : String , b : String = \"\" )","body":"= b + a","docstring":""} {"signature":"fun box ( ) : String","body":"{ val f = ( B :: class . java ) . kotlin . getMemberByName ( \"\" ) assertEquals ( \"\" , f . callBy ( mapOf ( f . parameters . first ( ) to B ( ) , f . parameters . single { it . name == \"\" } to \"\" ) ) ) return \"\" }","docstring":""} {"signature":"override fun getRangeInElement ( ) : TextRange","body":"{ val byKeywordNode = expression . byKeywordNode val offset = byKeywordNode . psi ! ! . startOffsetInParent return TextRange ( offset , offset + byKeywordNode . textLength ) }","docstring":""} {"signature":"fun bar ( x : Int )","body":"= x . convert < String > ( )","docstring":""} {"signature":"@ TestOnly public abstract fun publishGlobalModuleStateModification ( )","body":"@ TestOnly public abstract fun publishGlobalModuleStateModification ( )","docstring":"/**\n * Publishes an event of global modification of the module state of all [KtModule]s.\n */"} {"signature":"@ TestOnly public abstract fun publishGlobalSourceModuleStateModification ( )","body":"@ TestOnly public abstract fun publishGlobalSourceModuleStateModification ( )","docstring":"/**\n * Publishes an event of global modification of the module state of all source [KtModule]s.\n */"} {"signature":"@ TestOnly public abstract fun publishGlobalSourceOutOfBlockModification ( )","body":"@ TestOnly public abstract fun publishGlobalSourceOutOfBlockModification ( )","docstring":"/**\n * Publishes an event of global out-of-block modification of all source [KtModule]s. The event does not invalidate module state like\n * [publishGlobalSourceModuleStateModification], so some module structure-specific caches might persist.\n */"} {"signature":"public fun getInstance ( project : Project ) : KotlinGlobalModificationService","body":"= project . getService ( KotlinGlobalModificationService :: class . java )","docstring":""} {"signature":"override fun check ( declaration : FirProperty , context : CheckerContext , reporter : DiagnosticReporter )","body":"{ if ( ! context . languageVersionSettings . supportsFeature ( LanguageFeature . ContextReceivers ) ) return if ( declaration . contextReceivers . isEmpty ( ) ) return if ( declaration . hasBackingField ) { reporter . reportOn ( declaration . initializer ? . source , FirErrors . CONTEXT_RECEIVERS_WITH_BACKING_FIELD , context ) } }","docstring":""} {"signature":"@ Test fun IEEEremainder ( )","body":"{ val data = arrayOf ( doubleArrayOf ( - , ) , doubleArrayOf ( - , - ) , doubleArrayOf ( , ) , doubleArrayOf ( , ) , doubleArrayOf ( , ) , doubleArrayOf ( , - ) , doubleArrayOf ( , - ) , doubleArrayOf ( , ) , doubleArrayOf ( , ) , doubleArrayOf ( , - ) , doubleArrayOf ( , - ) ) for ( ( a , r ) in data ) { assertEquals ( r , a . IEEErem ( ) , \"\" ) } assertTrue ( Double . NaN . IEEErem ( ) . isNaN ( ) ) assertTrue ( . IEEErem ( Double . NaN ) . isNaN ( ) ) assertTrue ( Double . POSITIVE_INFINITY . IEEErem ( ) . isNaN ( ) ) assertTrue ( . IEEErem ( ) . isNaN ( ) ) assertEquals ( PI , PI . IEEErem ( Double . NEGATIVE_INFINITY ) ) }","docstring":""} {"signature":"fun f ( p : Out < In < X > > )","body":"{ }","docstring":""} {"signature":"override fun visitElement ( element : IrElement )","body":"{ element . acceptChildrenVoid ( this ) }","docstring":""} {"signature":"override fun visitElement ( element : IrElement , data : Nothing ? ) : Boolean","body":"{ error ( \"\" ) }","docstring":""} {"signature":"override fun visitDeclaration ( declaration : IrDeclarationBase , data : Nothing ? ) : Boolean","body":"{ if ( ! needsChecking ( declaration ) ) return true if ( declaration . parent is IrPackageFragment ) { val vis = declaration as IrDeclarationWithVisibility return DescriptorVisibilities . isPrivate ( vis . visibility ) } return declaration . parent . accept ( this , data ) }","docstring":""} {"signature":"override fun visitAnonymousInitializer ( declaration : IrAnonymousInitializer , data : Nothing ? ) : Boolean","body":"= true","docstring":""} {"signature":"override fun visitValueParameter ( declaration : IrValueParameter , data : Nothing ? ) : Boolean","body":"= true","docstring":""} {"signature":"override fun visitVariable ( declaration : IrVariable , data : Nothing ? ) : Boolean","body":"= true","docstring":""} {"signature":"override fun visitErrorDeclaration ( declaration : IrErrorDeclaration , data : Nothing ? ) : Boolean","body":"= true","docstring":""} {"signature":"override fun visitLocalDelegatedProperty ( declaration : IrLocalDelegatedProperty , data : Nothing ? ) : Boolean","body":"= true","docstring":""} {"signature":"override fun visitProperty ( declaration : IrProperty , data : Nothing ? ) : Boolean","body":"= true","docstring":""} {"signature":"override fun visitClass ( declaration : IrClass , data : Nothing ? ) : Boolean","body":"= declaration . name == SpecialNames . NO_NAME_PROVIDED || super . visitClass ( declaration , data )","docstring":""} {"signature":"override fun visitField ( declaration : IrField , data : Nothing ? ) : Boolean","body":"= declaration . origin == IrDeclarationOrigin . DELEGATE || super . visitField ( declaration , data )","docstring":""} {"signature":"private fun IrDeclaration . shouldBeSkipped ( ) : Boolean","body":"= accept ( skipper , null )","docstring":""} {"signature":"private fun KotlinMangler < IrDeclaration > . isExportCheck ( declaration : IrDeclaration )","body":"= ! declaration . shouldBeSkipped ( ) && declaration . isExported ( false )","docstring":""} {"signature":"private fun KotlinMangler < IrDeclaration > . signatureMangle ( declaration : IrDeclaration )","body":"= declaration . signatureString ( compatibleMode = false )","docstring":""} {"signature":"private fun < T : Any , R > Iterable < T > . checkAllEqual ( init : R , op : T . ( ) -> R , onError : ( T , R , T , R ) -> Unit ) : R","body":"{ var prev : T ? = null var r = init for ( it in this ) { if ( prev == null ) { r = it . op ( ) prev = it } else { val tmp = it . op ( ) if ( r != tmp ) { onError ( prev , r , it , tmp ) } prev = it r = tmp } } return r }","docstring":""} {"signature":"override fun visitDeclaration ( declaration : IrDeclarationBase )","body":"{ if ( declaration is IrErrorDeclaration ) return val exported = manglers . checkAllEqual ( false , { isExportCheck ( declaration ) } ) { m1 , r1 , m2 , r2 -> error ( \"\" ) } if ( ! exported ) return manglers . checkAllEqual ( \"\" , { signatureMangle ( declaration ) } ) { m1 , r1 , m2 , r2 -> error ( \"\" ) } declaration . acceptChildrenVoid ( this ) }","docstring":""} {"signature":"override fun process ( resolver : Resolver ) : List < KSAnnotated >","body":"{ val extensionsGenerator = ExtensionsGenerator ( resolver , codeGenerator , logger ) val ( validDataSchemas , invalidDataSchemas ) = extensionsGenerator . resolveDataSchemaDeclarations ( ) validDataSchemas . forEach { val file = it . origin . containingFile ? : return@forEach extensionsGenerator . generateExtensions ( file , it . origin , it . properties ) } val dataSchemaGenerator = DataSchemaGenerator ( resolver , resolutionDir , logger , codeGenerator ) val importStatements = dataSchemaGenerator . resolveImportStatements ( ) importStatements . forEach { importStatement -> dataSchemaGenerator . generateDataSchema ( importStatement ) } return invalidDataSchemas }","docstring":""} {"signature":"override fun build ( ) : FirLazyExpression","body":"{ return FirLazyExpressionImpl ( source , ) }","docstring":""} {"signature":"@ OptIn ( ExperimentalContracts :: class ) inline fun buildLazyExpression ( init : FirLazyExpressionBuilder . ( ) -> Unit = { } ) : FirLazyExpression","body":"{ contract { callsInPlace ( init , InvocationKind . EXACTLY_ONCE ) } return FirLazyExpressionBuilder ( ) . apply ( init ) . build ( ) }","docstring":""} {"signature":"operator fun < T > Array < T > ? . get ( i : Int ? )","body":"= this ! ! . get ( i ! ! )","docstring":""} {"signature":"fun < T > array ( vararg t : T ) : Array < T >","body":"= t as Array < T >","docstring":""} {"signature":"fun box ( ) : String","body":"{ val a : Array < String > ? = array < String > ( \"\" , \"\" ) val i : Int ? = return if ( a [ i ] == \"\" ) \"\" else \"\" }","docstring":""} {"signature":"@ Test fun `count difference back to previous zero` ( )","body":"{ val x = columnOf ( , , , , , , , , , ) . named ( \"\" ) val df = x . toDataFrame ( ) val y = columnOf ( , , , , , , , , , ) . named ( \"\" ) df . mapToColumn ( \"\" ) { if ( it [ x ] == ) else ( prev ( ) ? . newValue ( ) ? : ) + } shouldBe y df . mapToColumn ( \"\" ) { if ( it [ \"\" ] == ) else ( prev ( ) ? . newValue ( ) ? : ) + } shouldBe y }","docstring":""} {"signature":"@ Test fun `3 largest values` ( )","body":"{ val names = ( '' .. '' ) . map { it . toString ( ) } val random = Random ( ) val list = List ( ) { random . nextInt ( , ) } val df = dataFrameOf ( names ) ( * list . toTypedArray ( ) ) val index by column < Int > ( ) val vals by column < Int > ( ) val name by column < String > ( ) val expected = dataFrameOf ( \"\" , \"\" ) ( , \"\" , , \"\" , , \"\" ) df . add ( \"\" ) { index ( ) } . gather { dropLast ( ) } . into ( \"\" , \"\" ) . sortByDesc { vals } . take ( ) [ index , name ] shouldBe expected df . add ( \"\" ) { index ( ) } . gather { dropLast ( ) } . into ( \"\" , \"\" ) . sortByDesc ( \"\" ) . take ( ) [ \"\" , \"\" ] shouldBe expected }","docstring":""} {"signature":"@ Test fun `group mean and negative values` ( )","body":"{ val random = Random ( ) val lab = listOf ( \"\" , \"\" ) val vals by columnOf ( * Array ( ) { random . nextInt ( - , ) } ) val grps by columnOf ( * Array ( ) { lab [ random . nextInt ( , ) ] } ) val df = dataFrameOf ( vals , grps ) val expected = dataFrameOf ( \"\" , \"\" , \"\" ) ( - , \"\" , , - , \"\" , , , \"\" , , , \"\" , , , \"\" , , , \"\" , , - , \"\" , , - , \"\" , , - , \"\" , , - , \"\" , , , \"\" , , - , \"\" , , - , \"\" , , - , \"\" , , , \"\" , ) val means = df . filter { vals >= } . groupBy { grps } . mean ( ) . pivot { grps } . values { vals } df . add ( \"\" ) { if ( vals ( ) < ) means [ grps ( ) ] as Double else vals ( ) . toDouble ( ) } shouldBe expected val meansStr = df . filter { \"\" < Int > ( ) >= } . groupBy ( \"\" ) . mean ( ) . pivot ( \"\" ) . values ( \"\" ) df . add ( \"\" ) { if ( \"\" < Int > ( ) < ) meansStr [ \"\" < String > ( ) ] as Double else \"\" < Int > ( ) . toDouble ( ) } shouldBe expected }","docstring":""} {"signature":"@ Test fun `rolling mean` ( )","body":"{ val groups by columnOf ( \"\" , \"\" , \"\" , \"\" , \"\" , \"\" , \"\" , \"\" , \"\" , \"\" , \"\" , \"\" ) val value by columnOf ( , , , Double . NaN , , , Double . NaN , , , , Double . NaN , ) val df = dataFrameOf ( groups , value ) val expected = dataFrameOf ( \"\" , \"\" , \"\" ) ( \"\" , , , \"\" , , , \"\" , , , \"\" , Double . NaN , , \"\" , , , \"\" , , , \"\" , Double . NaN , , \"\" , , , \"\" , , , \"\" , , , \"\" , Double . NaN , , \"\" , , , ) df . add ( \"\" ) { index ( ) } . groupBy { groups } . add ( \"\" ) { round ( relative ( - .. ) [ value ] . filter { ! it . isNaN ( ) } . mean ( ) ) } . concat ( ) . sortBy ( \"\" ) . remove ( \"\" ) shouldBe expected }","docstring":""} {"signature":"public fun isOpenApiStr ( text : String ) : Boolean","body":"= try { val parsed = OpenAPIParser ( ) . readContents ( text , null , null ) parsed . openAPI ? . components ? . schemas != null } catch ( e : Throwable ) { logger . debug ( e ) { \"\" } false }","docstring":"/** Needs to have any type schemas to convert. */"} {"signature":"public fun isOpenApi ( path : String ) : Boolean","body":"= isOpenApi ( asURL ( path ) )","docstring":""} {"signature":"public fun isOpenApi ( url : URL ) : Boolean","body":"{ if ( url . path . endsWith ( \"\" ) || url . path . endsWith ( \"\" ) ) { return true } if ( ! url . path . endsWith ( \"\" ) ) { return false } return isOpenApiStr ( url . readText ( ) ) }","docstring":""} {"signature":"public fun isOpenApi ( file : File ) : Boolean","body":"{ if ( file . extension . lowercase ( ) in listOf ( \"\" , \"\" ) ) { return true } if ( file . extension . lowercase ( ) != \"\" ) { return false } return isOpenApiStr ( file . readText ( ) ) }","docstring":""} {"signature":"override fun call ( builder : CallExpressionBuilder ) : IrExpression","body":"{ assert ( callBuilder . irValueArgumentsByIndex [ ] == null ) { \"\" } callBuilder . irValueArgumentsByIndex [ ] = extensionInvokeReceiver . load ( ) return builder . withReceivers ( functionReceiver , null , emptyList ( ) ) }","docstring":""} {"signature":"fun test ( ) : String","body":"= \"\"","docstring":""} {"signature":"inline fun String . switchMapOnce ( crossinline mapper : ( String ) -> String ) : String","body":"{ Callable ( :: test ) return { mapper ( this ) } ( ) }","docstring":""} {"signature":"@ Test fun `should include all navigation icons` ( )","body":"{ val source = \"\"\"\"\"\" val writerPlugin = TestOutputWriterPlugin ( ) testInline ( source , configuration , pluginOverrides = listOf ( writerPlugin ) ) { renderingStage = { _ , _ -> val navIconAssets = writerPlugin . writer . contents . filterKeys { it . startsWith ( \"\" ) } . keys . sorted ( ) assertEquals ( , navIconAssets . size ) assertEquals ( \"\" , navIconAssets [ ] ) assertEquals ( \"\" , navIconAssets [ ] ) assertEquals ( \"\" , navIconAssets [ ] ) assertEquals ( \"\" , navIconAssets [ ] ) assertEquals ( \"\" , navIconAssets [ ] ) assertEquals ( \"\" , navIconAssets [ ] ) assertEquals ( \"\" , navIconAssets [ ] ) assertEquals ( \"\" , navIconAssets [ ] ) assertEquals ( \"\" , navIconAssets [ ] ) assertEquals ( \"\" , navIconAssets [ ] ) assertEquals ( \"\" , navIconAssets [ ] ) assertEquals ( \"\" , navIconAssets [ ] ) assertEquals ( \"\" , navIconAssets [ ] ) assertEquals ( \"\" , navIconAssets [ ] ) assertEquals ( \"\" , navIconAssets [ ] ) assertEquals ( \"\" , navIconAssets [ ] ) } } }","docstring":""} {"signature":"@ Test fun `should add icon styles to kotlin class navigation item` ( )","body":"{ assertNavigationIcon ( source = kotlinSource ( \"\" ) , expectedIconClass = \"\" , expectedNavLinkText = \"\" ) }","docstring":""} {"signature":"@ Test fun `should add icon styles to java class navigation item` ( )","body":"{ assertNavigationIcon ( source = javaSource ( className = \"\" , source = \"\" ) , expectedIconClass = \"\" , expectedNavLinkText = \"\" ) }","docstring":""} {"signature":"@ Test fun `should add icon styles to kotlin abstract class navigation item` ( )","body":"{ assertNavigationIcon ( source = kotlinSource ( \"\" ) , expectedIconClass = \"\" , expectedNavLinkText = \"\" ) }","docstring":""} {"signature":"@ Test fun `should add icon styles to java abstract class navigation item` ( )","body":"{ assertNavigationIcon ( source = javaSource ( className = \"\" , source = \"\" ) , expectedIconClass = \"\" , expectedNavLinkText = \"\" ) }","docstring":""} {"signature":"@ Test fun `should add icon styles to kotlin typealias navigation item` ( )","body":"{ assertNavigationIcon ( source = kotlinSource ( \"\" ) , expectedIconClass = \"\" , expectedNavLinkText = \"\" ) }","docstring":""} {"signature":"@ Test fun `should add icon styles to kotlin enum navigation item` ( )","body":"{ assertNavigationIcon ( source = kotlinSource ( \"\" ) , expectedIconClass = \"\" , expectedNavLinkText = \"\" ) }","docstring":""} {"signature":"@ Test fun `should add icon styles to java enum class navigation item` ( )","body":"{ assertNavigationIcon ( source = javaSource ( className = \"\" , source = \"\" ) , expectedIconClass = \"\" , expectedNavLinkText = \"\" ) }","docstring":""} {"signature":"@ Test fun `should add icon styles to kotlin annotation navigation item` ( )","body":"{ assertNavigationIcon ( source = kotlinSource ( \"\" ) , expectedIconClass = \"\" , expectedNavLinkText = \"\" ) }","docstring":""} {"signature":"@ Test fun `should add icon styles to java annotation navigation item` ( )","body":"{ assertNavigationIcon ( source = javaSource ( className = \"\" , source = \"\" ) , expectedIconClass = \"\" , expectedNavLinkText = \"\" ) }","docstring":""} {"signature":"@ Test fun `should add icon styles to kotlin interface navigation item` ( )","body":"{ assertNavigationIcon ( source = kotlinSource ( \"\" ) , expectedIconClass = \"\" , expectedNavLinkText = \"\" ) }","docstring":""} {"signature":"@ Test fun `should add icon styles to java interface navigation item` ( )","body":"{ assertNavigationIcon ( source = javaSource ( className = \"\" , source = \"\" ) , expectedIconClass = \"\" , expectedNavLinkText = \"\" ) }","docstring":""} {"signature":"@ Test fun `should add icon styles to kotlin function navigation item` ( )","body":"{ assertNavigationIcon ( source = kotlinSource ( \"\" ) , expectedIconClass = \"\" , expectedNavLinkText = \"\" ) }","docstring":""} {"signature":"@ Test fun `should add icon styles to kotlin exception class navigation item` ( )","body":"{ assertNavigationIcon ( source = kotlinSource ( \"\" ) , expectedIconClass = \"\" , expectedNavLinkText = \"\" ) }","docstring":""} {"signature":"@ Test fun `should add icon styles to kotlin object navigation item` ( )","body":"{ assertNavigationIcon ( source = kotlinSource ( \"\" ) , expectedIconClass = \"\" , expectedNavLinkText = \"\" ) }","docstring":""} {"signature":"@ Test fun `should add icon styles to kotlin val navigation item` ( )","body":"{ assertNavigationIcon ( source = kotlinSource ( \"\" ) , expectedIconClass = \"\" , expectedNavLinkText = \"\" ) }","docstring":""} {"signature":"@ Test fun `should add icon styles to kotlin var navigation item` ( )","body":"{ assertNavigationIcon ( source = kotlinSource ( \"\" ) , expectedIconClass = \"\" , expectedNavLinkText = \"\" ) }","docstring":""} {"signature":"private fun kotlinSource ( source : String ) : String","body":"{ return \"\"\"\"\"\" . trimIndent ( ) }","docstring":""} {"signature":"private fun javaSource ( className : String , source : String ) : String","body":"{ return \"\"\"\"\"\" . trimIndent ( ) }","docstring":""} {"signature":"private fun assertNavigationIcon ( source : String , expectedIconClass : String , expectedNavLinkText : String )","body":"{ val writerPlugin = TestOutputWriterPlugin ( ) testInline ( source , configuration , pluginOverrides = listOf ( writerPlugin ) ) { renderingStage = { _ , _ -> val content = writerPlugin . writer . navigationHtml ( ) . select ( \"\" ) val navigationGrid = content . selectNavigationGrid ( ) val classNames = navigationGrid . child ( ) . classNames ( ) . toList ( ) assertEquals ( \"\" , classNames [ ] ) assertEquals ( \"\" , classNames [ ] ) assertEquals ( expectedIconClass , classNames [ ] ) val navLinkText = navigationGrid . child ( ) . text ( ) assertEquals ( expectedNavLinkText , navLinkText ) } } }","docstring":""} {"signature":"@ Test fun `should not generate nav link grids or icons for packages and modules` ( )","body":"{ val writerPlugin = TestOutputWriterPlugin ( ) testInline ( \"\"\"\"\"\" . trimIndent ( ) , configuration , pluginOverrides = listOf ( writerPlugin ) ) { renderingStage = { _ , _ -> val content = writerPlugin . writer . navigationHtml ( ) . select ( \"\" ) assertEquals ( , content . size ) assertEquals ( \"\" , content [ ] . id ( ) ) assertEquals ( \"\" , content [ ] . id ( ) ) assertEquals ( \"\" , content [ ] . id ( ) ) val navLinkGrids = content . select ( \"\" ) assertEquals ( , navLinkGrids . size ) } } }","docstring":""} {"signature":"fun test1 ( d : dynamic ) : Int","body":"= d","docstring":""} {"signature":"fun test2 ( d : dynamic ) : Any","body":"= d","docstring":""} {"signature":"fun test3 ( d : dynamic ) : Any ?","body":"= d","docstring":""} {"signature":"fun test4 ( d : dynamic ) : String","body":"= d . member ( , , )","docstring":""} {"signature":"operator fun get ( file : File ) : FileSnapshot","body":"operator fun get ( file : File ) : FileSnapshot","docstring":""} {"signature":"override fun get ( file : File ) : FileSnapshot","body":"{ val length = file . length ( ) val hash = file . md5 return FileSnapshot ( file , length , hash ) }","docstring":""} {"signature":"actual inline fun yieldThread ( )","body":"{ Thread . yield ( ) }","docstring":""} {"signature":"actual fun currentThreadName ( ) : String","body":"= Thread . currentThread ( ) . name","docstring":""} {"signature":"private fun compare ( a : ConeTypeProjection , b : ConeTypeProjection ) : Int","body":"{ val kindDiff = a . kind . ordinal - b . kind . ordinal if ( kindDiff != ) { return kindDiff } when ( a ) { is ConeStarProjection -> return is ConeKotlinTypeProjectionIn -> { require ( b is ConeKotlinTypeProjectionIn ) { \"\" } return compare ( a . type , b . type ) } is ConeKotlinTypeProjectionOut -> { require ( b is ConeKotlinTypeProjectionOut ) { \"\" } return compare ( a . type , b . type ) } else -> { assert ( a is ConeKotlinType && b is ConeKotlinType ) { \"\" } return compare ( a as ConeKotlinType , b as ConeKotlinType ) } } }","docstring":""} {"signature":"private fun compare ( a : Array < out ConeTypeProjection > , b : Array < out ConeTypeProjection > ) : Int","body":"{ val sizeDiff = a . size - b . size if ( sizeDiff != ) { return sizeDiff } for ( ( aTypeProjection , bTypeProjection ) in a . zip ( b ) ) { val typeProjectionDiff = compare ( aTypeProjection , bTypeProjection ) if ( typeProjectionDiff != ) { return typeProjectionDiff } } return }","docstring":""} {"signature":"private fun compare ( a : ConeNullability , b : ConeNullability ) : Int","body":"{ return a . ordinal - b . ordinal }","docstring":""} {"signature":"override fun compare ( a : ConeKotlinType , b : ConeKotlinType ) : Int","body":"{ val priorityDiff = a . priority - b . priority if ( priorityDiff != ) { return priorityDiff } when ( a ) { is ConeErrorType -> { require ( b is ConeErrorType ) { \"\" } return a . hashCode ( ) - b . hashCode ( ) } is ConeLookupTagBasedType -> { require ( b is ConeLookupTagBasedType ) { \"\" } val nameDiff = a . lookupTag . name . compareTo ( b . lookupTag . name ) if ( nameDiff != ) { return nameDiff } val nullabilityDiff = compare ( a . nullability , b . nullability ) if ( nullabilityDiff != ) { return nullabilityDiff } return compare ( a . typeArguments , b . typeArguments ) } is ConeFlexibleType -> { require ( b is ConeFlexibleType ) { \"\" } val lowerBoundDiff = compare ( a . lowerBound , b . lowerBound ) if ( lowerBoundDiff != ) { return lowerBoundDiff } return compare ( a . upperBound , b . upperBound ) } is ConeCapturedType -> { require ( b is ConeCapturedType ) { \"\" } val aHasLowerType = if ( a . lowerType != null ) else val bHasLowerType = if ( b . lowerType != null ) else val hasLowerTypeDiff = aHasLowerType - bHasLowerType if ( hasLowerTypeDiff != ) { return hasLowerTypeDiff } if ( a . lowerType != null && b . lowerType != null ) { val lowerTypeDiff = compare ( a . lowerType ! ! , b . lowerType ! ! ) if ( lowerTypeDiff != ) { return lowerTypeDiff } } val nullabilityDiff = compare ( a . nullability , b . nullability ) if ( nullabilityDiff != ) { return nullabilityDiff } return a . constructor . hashCode ( ) - b . constructor . hashCode ( ) } is ConeDefinitelyNotNullType -> { require ( b is ConeDefinitelyNotNullType ) { \"\" } return compare ( a . original , b . original ) } is ConeIntersectionType -> { require ( b is ConeIntersectionType ) { \"\" } val sizeDiff = a . intersectedTypes . size - b . intersectedTypes . size if ( sizeDiff != ) { return sizeDiff } return a . hashCode ( ) - b . hashCode ( ) } is ConeStubType -> { require ( b is ConeStubType ) { \"\" } val nameDiff = a . constructor . variable . typeConstructor . name . compareTo ( b . constructor . variable . typeConstructor . name ) if ( nameDiff != ) { return nameDiff } return compare ( a . nullability , b . nullability ) } is ConeIntegerLiteralConstantType -> { require ( b is ConeIntegerLiteralConstantType ) { \"\" } val valueDiff = a . value - b . value if ( valueDiff != ) { return valueDiff . toInt ( ) } val nullabilityDiff = compare ( a . nullability , b . nullability ) if ( nullabilityDiff != ) { return nullabilityDiff } return a . hashCode ( ) - b . hashCode ( ) } is ConeIntegerConstantOperatorType -> { return compare ( a . nullability , b . nullability ) } else -> error ( \"\" ) } }","docstring":""} {"signature":"fun test ( )","body":"{ val b = foo . bar . baz . AA . B < caret > B }","docstring":""} {"signature":"override fun compareTo ( other : Value ) : Int","body":"{ throw AssertionError ( \"\" ) }","docstring":""} {"signature":"override fun contains ( value : Value ) : Boolean","body":"{ return value . x == }","docstring":""} {"signature":"operator fun Value . rangeTo ( other : Value ) : ClosedRange < Value >","body":"= ValueRange ( this , other )","docstring":""} {"signature":"fun box ( ) : String","body":"{ assertTrue ( Value ( ) in Value ( ) .. Value ( ) ) assertTrue ( Value ( ) !in Value ( ) .. Value ( ) ) return \"\" }","docstring":""} {"signature":"override fun check ( expression : FirResolvedQualifier , context : CheckerContext , reporter : DiagnosticReporter )","body":"{ if ( ! expression . isStandalone ( context ) ) return if ( ! expression . resolvedType . isUnit ) { if ( expression . typeArguments . any { it . isExplicit } ) { reporter . reportOn ( expression . source , FirErrors . EXPLICIT_TYPE_ARGUMENTS_IN_PROPERTY_ACCESS , \"\" , context ) } return } expression . symbol . reportErrorOn ( expression . source , context , reporter ) }","docstring":""} {"signature":"private fun FirBasedSymbol < * > ? . reportErrorOn ( source : KtSourceElement ? , context : CheckerContext , reporter : DiagnosticReporter )","body":"{ when ( this ) { is FirRegularClassSymbol -> { if ( classKind == ClassKind . OBJECT ) return reporter . reportOn ( source , FirErrors . NO_COMPANION_OBJECT , this , context ) } is FirTypeAliasSymbol -> { fullyExpandedClass ( context . session ) ? . reportErrorOn ( source , context , reporter ) } null -> { reporter . reportOn ( source , FirErrors . EXPRESSION_EXPECTED_PACKAGE_FOUND , context ) } else -> { } } }","docstring":""} {"signature":"fun simple ( ) : Flow < Int >","body":"= flow { for ( i in .. ) { delay ( ) emit ( i ) } }","docstring":""} {"signature":"fun main ( )","body":"= runBlocking < Unit > { val time = measureTimeMillis { simple ( ) . collectLatest { value -> println ( \"\" ) delay ( ) println ( \"\" ) } } println ( \"\" ) }","docstring":""} {"signature":"override fun check ( declaration : FirConstructor , context : CheckerContext , reporter : DiagnosticReporter )","body":"{ if ( ! declaration . isPrimary ) return val source = declaration . source ? : return if ( source . kind == KtFakeSourceElementKind . ImplicitConstructor ) return val containingClass = context . containingDeclarations . last ( ) as? FirRegularClass ? : return val containingClassSymbol = containingClass . symbol if ( ! containingClassSymbol . isParcelize ( context . session , parcelizeAnnotations ) || containingClass . hasCustomParceler ( context . session ) ) { return } if ( declaration . valueParameters . isEmpty ( ) ) { reporter . reportOn ( containingClass . source , KtErrorsParcelize . PARCELABLE_PRIMARY_CONSTRUCTOR_IS_EMPTY , context ) } else { for ( valueParameter in declaration . valueParameters ) { if ( valueParameter . source ? . hasValOrVar ( ) != true ) { reporter . reportOn ( valueParameter . source , KtErrorsParcelize . PARCELABLE_CONSTRUCTOR_PARAMETER_SHOULD_BE_VAL_OR_VAR , context ) } if ( valueParameter . defaultValue == null ) { val illegalAnnotation = valueParameter . correspondingProperty ? . annotations ? . firstOrNull { it . toAnnotationClassId ( context . session ) in ParcelizeNames . IGNORED_ON_PARCEL_CLASS_IDS } if ( illegalAnnotation != null ) { reporter . reportOn ( illegalAnnotation . source , KtErrorsParcelize . INAPPLICABLE_IGNORED_ON_PARCEL_CONSTRUCTOR_PROPERTY , context ) } } } } }","docstring":""} {"signature":"public abstract fun getKtFiles ( ) : List < KtResolveExtensionFile >","body":"public abstract fun getKtFiles ( ) : List < KtResolveExtensionFile >","docstring":"/**\n * Get the list of files that should be generated for the module. Returned files should contain valid Kotlin code.\n *\n * If the content of these files becomes invalid (e.g., because the source declarations they were based on changed), the\n * [KtResolveExtension] must publish an out-of-block modification event via the Analysis API message bus:\n * [org.jetbrains.kotlin.analysis.providers.topics.KotlinTopics.MODULE_OUT_OF_BLOCK_MODIFICATION].\n *\n * To react to changes in Kotlin sources, [KtResolveExtension] may subscribe to Analysis API topics:\n * [org.jetbrains.kotlin.analysis.providers.topics.KotlinTopics]. If the [KtResolveExtension] both subscribes to and\n * publishes modification events, care needs to be taken that no cycles are introduced. In general, the [KtResolveExtension] should\n * never publish an event for a module A in a listener for the same module A.\n *\n * An out-of-block modification event for the [KtResolveExtension]'s associated module does not need to be published in response to an\n * out-of-block modification event for the same module, because the original event suffices for invalidation.\n *\n * @see KtResolveExtensionFile\n * @see KtResolveExtension\n */"} {"signature":"public abstract fun getContainedPackages ( ) : Set < FqName >","body":"public abstract fun getContainedPackages ( ) : Set < FqName >","docstring":"/**\n * Returns the set of packages that are contained in the files provided by [getKtFiles].\n *\n * The returned package set should be a strict set of all file packages,\n * so `for-all pckg: pckg in getContainedPackages() <=> exists file: file in getKtFiles() && file.getFilePackageName() == pckg`\n *\n * @see KtResolveExtension\n */"} {"signature":"public open fun getShadowedScope ( ) : GlobalSearchScope","body":"= GlobalSearchScope . EMPTY_SCOPE","docstring":"/**\n * Returns the scope of files that should be shadowed by the files provided by [getKtFiles].\n *\n * Any files in the module that are included in this scope will be removed from analysis results. This allows the files provided by\n * [getKtFiles] to cleanly replace those files from the module.\n *\n * If this resolve extension is being used to generate declarations that would normally be provided by sources generated by an external\n * build task, such as a resource compiler or annotation processor, the resolve extension should provide a scope here that covers those\n * externally generated sources. This will prevent collisions between the definitions provided by [getKtFiles] and those provided by the\n * (potentially stale) externally generated sources.\n */"} {"signature":"override fun dispose ( )","body":"{ }","docstring":""} {"signature":"external fun withZ ( value : Number ) : `T$0`","body":"external fun withZ ( value : Number ) : `T$0`","docstring":""} {"signature":"fun f ( )","body":"{ }","docstring":""} {"signature":"fun test ( x : CA < @ Ann2 Int > )","body":"= x","docstring":""} {"signature":"override fun KtAnalysisSession . resolveToSymbols ( ) : Collection < KtSymbol >","body":"{ check ( this is KtFirAnalysisSession ) val fir = element . getOrBuildFirSafe < FirArrayLiteral > ( firResolveSession ) ? : return emptyList ( ) val type = fir . resolvedType as? ConeClassLikeType ? : return listOfNotNull ( arrayOfSymbol ( arrayOf ) ) val call = arrayTypeToArrayOfCall [ type . lookupTag . classId ] ? : arrayOf return listOfNotNull ( arrayOfSymbol ( call ) ) }","docstring":""} {"signature":"private fun flagEnabled ( accessFlags : Int , flagToCheck : Int )","body":"= ( accessFlags and flagToCheck ) != ","docstring":""} {"signature":"fun compute ( classContents : ByteArray ) : BasicClassInfo","body":"{ val kotlinClassHeaderClassVisitor = KotlinClassHeaderClassVisitor ( ) val innerClassesClassVisitor = InnerClassesClassVisitor ( kotlinClassHeaderClassVisitor ) val basicClassInfoVisitor = BasicClassInfoClassVisitor ( innerClassesClassVisitor ) ClassReader ( classContents ) . accept ( basicClassInfoVisitor , SKIP_CODE or SKIP_DEBUG ) val className = basicClassInfoVisitor . getClassName ( ) val innerClassesInfo = innerClassesClassVisitor . getInnerClassesInfo ( ) return BasicClassInfo ( classId = resolveNameByInternalName ( className , innerClassesInfo ) , kotlinClassHeader = kotlinClassHeaderClassVisitor . getKotlinClassHeader ( ) , supertypes = basicClassInfoVisitor . getSupertypes ( ) , accessFlags = basicClassInfoVisitor . getAccessFlags ( ) , isAnonymous = innerClassesInfo [ className ] ? . let { it . innerSimpleName == null } ? : false ) }","docstring":""} {"signature":"override fun visit ( version : Int , access : Int , name : String , signature : String ? , superName : String ? , interfaces : Array < String > ? )","body":"{ className = name classAccess = access superName ? . let { supertypeNames . add ( it ) } interfaces ? . let { supertypeNames . addAll ( it ) } super . visit ( version , access , name , signature , superName , interfaces ) }","docstring":""} {"signature":"fun getClassName ( ) : String","body":"= className ! !","docstring":""} {"signature":"fun getAccessFlags ( ) : Int","body":"= classAccess ! !","docstring":""} {"signature":"fun getSupertypes ( ) : List < JvmClassName >","body":"= supertypeNames . map { JvmClassName . byInternalName ( it ) }","docstring":""} {"signature":"override fun visitInnerClass ( name : String , outerName : String ? , innerName : String ? , access : Int )","body":"{ innerClassesInfo . add ( name , outerName , innerName ) super . visitInnerClass ( name , outerName , innerName , access ) }","docstring":""} {"signature":"fun getInnerClassesInfo ( ) : InnerClassesInfo","body":"= innerClassesInfo","docstring":""} {"signature":"override fun visitAnnotation ( descriptor : String , visible : Boolean ) : AnnotationVisitor ?","body":"{ return convertAnnotationVisitor ( kotlinClassHeaderAnnotationVisitor , descriptor , InnerClassesInfo ( ) ) }","docstring":""} {"signature":"fun getKotlinClassHeader ( ) : KotlinClassHeader ?","body":"= kotlinClassHeaderAnnotationVisitor . createHeaderWithDefaultMetadataVersion ( )","docstring":""} {"signature":"fun eval ( e : Expr ) : Int","body":"= when ( e ) { is Num -> e . value is Sum -> eval ( e . right ) + eval ( e . left ) else -> throw IllegalArgumentException ( \"\" ) }","docstring":""} {"signature":"external fun require ( module : String ) : dynamic","body":"external fun require ( module : String ) : dynamic","docstring":""} {"signature":"fun getAuth ( user : String , password : String ) : String","body":"{ val buffer = js ( \"\" ) . from ( user + \"\" + password ) val based64String = buffer . toString ( \"\" ) return \"\" + based64String }","docstring":""} {"signature":"protected abstract fun < T : String ? > sendBaseRequest ( method : RequestMethod , path : String , user : String ? = null , password : String ? = null , acceptJsonContentType : Boolean = true , body : String ? = null , errorHandler : ( url : String , response : dynamic ) -> Nothing ? ) : Promise < T >","body":"protected abstract fun < T : String ? > sendBaseRequest ( method : RequestMethod , path : String , user : String ? = null , password : String ? = null , acceptJsonContentType : Boolean = true , body : String ? = null , errorHandler : ( url : String , response : dynamic ) -> Nothing ? ) : Promise < T >","docstring":""} {"signature":"open fun sendRequest ( method : RequestMethod , path : String , user : String ? = null , password : String ? = null , acceptJsonContentType : Boolean = true , body : String ? = null ) : Promise < String >","body":"= sendBaseRequest < String > ( method , path , user , password , acceptJsonContentType , body ) { url , response -> error ( \"\" ) }","docstring":""} {"signature":"open fun sendOptionalRequest ( method : RequestMethod , path : String , user : String ? = null , password : String ? = null , acceptJsonContentType : Boolean = true , body : String ? = null ) : Promise < String ? >","body":"= sendBaseRequest < String ? > ( method , path , user , password , acceptJsonContentType , body ) { url , response -> println ( \"\" ) null }","docstring":""} {"signature":"fun render ( processor : TextRenderersProcessor , value : Any ? , ) : String ?","body":"fun render ( processor : TextRenderersProcessor , value : Any ? , ) : String ?","docstring":""} {"signature":"override fun toString ( ) : String","body":"{ return \"\" }","docstring":""} {"signature":"private fun String . indent ( indent : String = \"\" , exceptFirst : Boolean = false , ) : String","body":"{ val str = this return buildString { val lines = str . lines ( ) for ( ( i , l ) in lines . withIndex ( ) ) { if ( ! exceptFirst || i != ) append ( indent ) append ( l ) if ( i != lines . lastIndex ) append ( \"\" ) } } }","docstring":""} {"signature":"private fun renderIterable ( processor : TextRenderersProcessor , title : String , iterable : Iterable < * > , separator : String = \"\" , multiline : Boolean = false , openBracket : String = \"\" , closeBracket : String = \"\" , ) : String","body":"{ return buildString { append ( \"\" ) if ( multiline ) { append ( '' ) } val collection = iterable as? Collection < * > for ( ( i , el ) in iterable . withIndex ( ) ) { processor . render ( el ) . let { rel -> if ( multiline ) rel . indent ( ) else rel } . let { append ( it ) } if ( collection == null || i < collection . size - ) { append ( separator ) if ( ! multiline ) append ( '' ) } if ( multiline ) append ( '' ) } append ( closeBracket ) } }","docstring":""} {"signature":"private fun renderMap ( processor : TextRenderersProcessor , title : String , map : Map < * , * > , arrowString : String = \"\" , separator : String = \"\" , multiline : Boolean = false , openBracket : String = \"\" , closeBracket : String = \"\" , ) : String","body":"{ return buildString { append ( \"\" ) if ( multiline ) { append ( '' ) } var i = for ( ( k , v ) in map ) { processor . render ( k ) . let { rk -> if ( multiline ) rk . indent ( ) else rk } . let { append ( it ) } append ( arrowString ) processor . render ( v ) . let { rv -> if ( multiline ) rv . indent ( exceptFirst = true ) else rv } . let { append ( it ) } if ( i < map . size - ) { append ( separator ) if ( ! multiline ) append ( '' ) } if ( multiline ) append ( '' ) ++ i } append ( closeBracket ) } }","docstring":""} {"signature":"private fun buildObjectMapByJavaFields ( obj : Any ) : Map < String , Any ? >","body":"{ val clazz : Class < * > = obj :: class . java return buildObjectMapByJavaFields ( obj , clazz . declaredFields ) }","docstring":""} {"signature":"private fun buildObjectMapByJavaFields ( obj : Any , fields : Array < Field > , ) : Map < String , Any ? >","body":"{ return buildAbstractObjectMap ( obj , fields . toList ( ) , { it . name } ) { f , o -> f . isAccessible = true f . get ( o ) } }","docstring":""} {"signature":"private fun buildObjectMapByKotlinProperties ( obj : Any , clazz : KClass < * > , ) : Map < String , Any ? >","body":"{ return buildObjectMapByKotlinProperties ( obj , clazz . memberProperties ) }","docstring":""} {"signature":"private fun buildObjectMapByKotlinProperties ( obj : Any , properties : Collection < KProperty1 < out Any , * > > , ) : Map < String , Any ? >","body":"{ return buildAbstractObjectMap ( obj , properties , { it . name } ) { p , o -> @ Suppress ( \"\" ) ( p as KProperty1 < Any , Any ? > ) p . isAccessible = true p . get ( o ) } }","docstring":""} {"signature":"private fun < P > buildAbstractObjectMap ( obj : Any , abstractProps : Iterable < P > , nameGetter : ( P ) -> String , valueGetter : ( P , Any ) -> Any ? , ) : Map < String , Any ? >","body":"{ return hashMapOf < String , Any ? > ( ) . apply { for ( prop in abstractProps ) { val name : String = nameGetter ( prop ) val value : Any ? = try { valueGetter ( prop , obj ) } catch ( e : IllegalAccessException ) { \"\" } catch ( e : RuntimeException ) { \"\" } put ( name , value ) } } }","docstring":""} {"signature":"fun TextRenderersProcessor . registerDefaultRenderers ( )","body":"{ register ( TextRenderers . NULL , ProcessingPriority . DEFAULT ) register ( TextRenderers . MAPS , ProcessingPriority . DEFAULT ) register ( TextRenderers . ITERABLES , ProcessingPriority . LOW ) register ( TextRenderers . PRIMITIVES , ProcessingPriority . DEFAULT ) register ( TextRenderers . CLASS , ProcessingPriority . DEFAULT ) register ( TextRenderers . OBJECT , ProcessingPriority . LOWER ) register ( TextRenderers . AVOID , ProcessingPriority . HIGH ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ assertEquals ( , Derived ( ) . c ) return \"\" }","docstring":""} {"signature":"override fun lightClassesToCheck ( ktFiles : List < KtFile > , module : KtTestModule , testServices : TestServices ) : Collection < PsiClass >","body":"{ val fqName = LightClassTestCommon . fqNameInTestDataFile ( testDataPath . toFile ( ) ) val ktFile = ktFiles . first ( ) return listOfNotNull ( findLightClass ( fqName , ktFile . project ) ) }","docstring":""} {"signature":"override fun toString ( ) : String","body":"{ return displayName ? : this :: class . simpleName ! ! }","docstring":""} {"signature":"@ kotlin . internal . InlineOnly public inline fun < T > Lock . withLock ( action : ( ) -> T ) : T","body":"{ contract { callsInPlace ( action , InvocationKind . EXACTLY_ONCE ) } lock ( ) try { return action ( ) } finally { unlock ( ) } }","docstring":"/**\n * Executes the given [action] under this lock.\n * @return the return value of the action.\n */"} {"signature":"@ kotlin . internal . InlineOnly public inline fun < T > ReentrantReadWriteLock . read ( action : ( ) -> T ) : T","body":"{ contract { callsInPlace ( action , InvocationKind . EXACTLY_ONCE ) } val rl = readLock ( ) rl . lock ( ) try { return action ( ) } finally { rl . unlock ( ) } }","docstring":"/**\n * Executes the given [action] under the read lock of this lock.\n * @return the return value of the action.\n */"} {"signature":"@ kotlin . internal . InlineOnly public inline fun < T > ReentrantReadWriteLock . write ( action : ( ) -> T ) : T","body":"{ contract { callsInPlace ( action , InvocationKind . EXACTLY_ONCE ) } val rl = readLock ( ) val readCount = if ( writeHoldCount == ) readHoldCount else repeat ( readCount ) { rl . unlock ( ) } val wl = writeLock ( ) wl . lock ( ) try { return action ( ) } finally { repeat ( readCount ) { rl . lock ( ) } wl . unlock ( ) } }","docstring":"/**\n * Executes the given [action] under the write lock of this lock.\n *\n * The function does upgrade from read to write lock if needed, but this upgrade is not atomic\n * as such upgrade is not supported by [ReentrantReadWriteLock].\n * In order to do such upgrade this function first releases all read locks held by this thread,\n * then acquires write lock, and after releasing it acquires read locks back again.\n *\n * Therefore if the [action] inside write lock has been initiated by checking some condition,\n * the condition must be rechecked inside the [action] to avoid possible races.\n *\n * @return the return value of the action.\n */"} {"signature":"public abstract fun hasAnnotation ( classId : ClassId , useSiteTargetFilter : AnnotationUseSiteTargetFilter = AnyAnnotationUseSiteTargetFilter , ) : Boolean","body":"public abstract fun hasAnnotation ( classId : ClassId , useSiteTargetFilter : AnnotationUseSiteTargetFilter = AnyAnnotationUseSiteTargetFilter , ) : Boolean","docstring":"/**\n * Checks if entity contains annotation with specified [classId] and filtered by [useSiteTargetFilter].\n *\n * The semantic is equivalent to\n * ```\n * annotationsList.hasAnnotation(classId, useSiteTargetFilter) == annotationsList.annotations.any {\n * it.classId == classId && useSiteTargetFilter.isAllowed(it.useSiteTarget)\n * }\n * ```\n * @param classId [ClassId] to search\n * @param useSiteTargetFilter specific [AnnotationUseSiteTargetFilter]\n */"} {"signature":"public abstract fun annotationsByClassId ( classId : ClassId , useSiteTargetFilter : AnnotationUseSiteTargetFilter = AnyAnnotationUseSiteTargetFilter , ) : List < KtAnnotationApplicationWithArgumentsInfo >","body":"public abstract fun annotationsByClassId ( classId : ClassId , useSiteTargetFilter : AnnotationUseSiteTargetFilter = AnyAnnotationUseSiteTargetFilter , ) : List < KtAnnotationApplicationWithArgumentsInfo >","docstring":"/**\n * A list of annotations applied with specified [classId] and filtered by [useSiteTargetFilter].\n *\n * To check if annotation is present, please use [hasAnnotation].\n *\n * The semantic is equivalent to\n * ```\n * annotationsList.annotationsByClassId(classId) == annotationsList.annotations.filter {\n * it.classId == classId && useSiteTargetFilter.isAllowed(it.useSiteTarget)\n * }\n * ```\n *\n * @see KtAnnotationApplicationWithArgumentsInfo\n */"} {"signature":"infix fun < T > T . foo ( t : T )","body":"= t","docstring":""} {"signature":"fun < T > id ( t : T )","body":"= t","docstring":""} {"signature":"fun a ( )","body":"{ val i = id ( foo ) checkSubtype < Int > ( i ) }","docstring":""} {"signature":"@ SinceKotlin ( \"\" ) @ Suppress ( \"\" , \"\" ) public expect fun CancellationException ( message : String ? , cause : Throwable ? ) : CancellationException","body":"@ SinceKotlin ( \"\" ) @ Suppress ( \"\" , \"\" ) public expect fun CancellationException ( message : String ? , cause : Throwable ? ) : CancellationException","docstring":"/**\n * Creates an instance of [CancellationException] with the given [message] and [cause].\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ Suppress ( \"\" , \"\" ) public expect fun CancellationException ( cause : Throwable ? ) : CancellationException","body":"@ SinceKotlin ( \"\" ) @ Suppress ( \"\" , \"\" ) public expect fun CancellationException ( cause : Throwable ? ) : CancellationException","docstring":"/**\n * Creates an instance of [CancellationException] with the given [cause].\n */"} {"signature":"override fun < R , D > accept ( visitor : FirVisitor < R , D > , data : D ) : R","body":"= visitor . visitFile ( this , data )","docstring":""} {"signature":"@ Suppress ( \"\" ) override fun < E : FirElement , D > transform ( transformer : FirTransformer < D > , data : D ) : E","body":"= transformer . transformFile ( this , data ) as E","docstring":""} {"signature":"abstract override fun replaceAnnotations ( newAnnotations : List < FirAnnotation > )","body":"abstract override fun replaceAnnotations ( newAnnotations : List < FirAnnotation > )","docstring":""} {"signature":"abstract override fun replaceControlFlowGraphReference ( newControlFlowGraphReference : FirControlFlowGraphReference ? )","body":"abstract override fun replaceControlFlowGraphReference ( newControlFlowGraphReference : FirControlFlowGraphReference ? )","docstring":""} {"signature":"abstract override fun < D > transformAnnotations ( transformer : FirTransformer < D > , data : D ) : FirFile","body":"abstract override fun < D > transformAnnotations ( transformer : FirTransformer < D > , data : D ) : FirFile","docstring":""} {"signature":"abstract fun < D > transformImports ( transformer : FirTransformer < D > , data : D ) : FirFile","body":"abstract fun < D > transformImports ( transformer : FirTransformer < D > , data : D ) : FirFile","docstring":""} {"signature":"abstract fun < D > transformDeclarations ( transformer : FirTransformer < D > , data : D ) : FirFile","body":"abstract fun < D > transformDeclarations ( transformer : FirTransformer < D > , data : D ) : FirFile","docstring":""} {"signature":"@ Test fun simple ( )","body":"= box ( )","docstring":""} {"signature":"@ Test fun innerContinue ( )","body":"= box ( )","docstring":""} {"signature":"@ Test fun innerBreakInLoopWithoutLabel ( )","body":"= box ( )","docstring":""} {"signature":"@ Test fun emptyDoWhile ( )","body":"= box ( )","docstring":""} {"signature":"abstract fun findConstantValueFor ( firExpression : FirExpression ? ) : ConstantValue < * > ?","body":"abstract fun findConstantValueFor ( firExpression : FirExpression ? ) : ConstantValue < * > ?","docstring":""} {"signature":"override fun getMemberScope ( )","body":"= MemberScope . Empty","docstring":""} {"signature":"private fun < T : Any > T . self ( )","body":"= object { fun calc ( ) : T { return this@self } }","docstring":""} {"signature":"fun box ( ) : Int","body":"{ return . self ( ) . calc ( ) + }","docstring":""} {"signature":"fun box ( ) : String","body":"{ return if ( Test ( ) . box ( ) == ) \"\" else \"\" }","docstring":""} {"signature":"@ Test fun _toString ( )","body":"{ assertEquals ( \"\" , data . toString ( ) ) }","docstring":""} {"signature":"@ Test fun tail ( )","body":"{ val data = listOf ( \"\" , \"\" , \"\" ) val actual = data . drop ( ) assertEquals ( listOf ( \"\" , \"\" ) , actual ) }","docstring":""} {"signature":"@ Test fun slice ( )","body":"{ val list = listOf ( '' , '' , '' , '' ) assertEquals ( emptyList ( ) , list . slice ( IntRange . EMPTY ) ) assertEquals ( listOf ( '' , '' , '' ) , list . slice ( .. ) ) assertEquals ( listOf ( '' , '' , '' ) , list . slice ( downTo ) ) val iter = listOf ( , , ) assertEquals ( listOf ( '' , '' , '' ) , list . slice ( iter ) ) for ( range in listOf ( - until , until , .. ) ) { val bounds = \"\" val exClass = IndexOutOfBoundsException :: class assertFailsWith ( exClass , bounds ) { listOf ( \"\" ) . slice ( range ) } assertFailsWith ( exClass , bounds ) { listOf ( \"\" ) . slice ( range . asIterable ( ) ) } } }","docstring":""} {"signature":"@ Test fun getOr ( )","body":"{ expect ( \"\" ) { data . get ( ) } expect ( \"\" ) { data . get ( ) } assertFails { data . get ( ) } assertFails { data . get ( - ) } assertFails { empty . get ( ) } expect ( \"\" ) { data . getOrElse ( , { \"\" } ) } expect ( \"\" ) { data . getOrElse ( - , { \"\" } ) } expect ( \"\" ) { data . getOrElse ( , { \"\" } ) } expect ( \"\" ) { empty . getOrElse ( ) { \"\" } } expect ( null ) { empty . getOrNull ( ) } }","docstring":""} {"signature":"@ Test fun lastIndex ( )","body":"{ assertEquals ( - , empty . lastIndex ) assertEquals ( , data . lastIndex ) }","docstring":""} {"signature":"@ Test fun indexOfLast ( )","body":"{ expect ( - ) { data . indexOfLast { it . contains ( \"\" ) } } expect ( ) { data . indexOfLast { it . length == } } expect ( - ) { empty . indexOfLast { it . startsWith ( '' ) } } }","docstring":""} {"signature":"@ Test fun mutableList ( )","body":"{ val items = listOf ( \"\" , \"\" , \"\" ) var list = listOf < String > ( ) for ( item in items ) { list += item } assertEquals ( , list . size ) assertEquals ( \"\" , list . joinToString ( \"\" ) ) }","docstring":""} {"signature":"@ Test fun testNullToString ( )","body":"{ assertEquals ( \"\" , listOf < String ? > ( null ) . toString ( ) ) }","docstring":""} {"signature":"@ Test fun doubleToLong ( )","body":"{ fun testEquals ( expected : Long , v : Double ) = assertEquals ( expected , v . toLong ( ) ) testEquals ( , ) testEquals ( , Double . NaN ) testEquals ( , Double . MIN_VALUE ) testEquals ( , ) testEquals ( - , - ) testEquals ( Long . MIN_VALUE , - ) testEquals ( Long . MIN_VALUE , - ( . pow ( Long . SIZE_BITS - ) ) ) testEquals ( Long . MIN_VALUE , - ( . pow ( Long . SIZE_BITS + ) ) ) testEquals ( Long . MIN_VALUE , - Double . MAX_VALUE ) testEquals ( Long . MIN_VALUE , Double . NEGATIVE_INFINITY ) testEquals ( Long . MAX_VALUE , ) testEquals ( Long . MAX_VALUE , . pow ( Long . SIZE_BITS - ) ) testEquals ( Long . MAX_VALUE , . pow ( Long . SIZE_BITS + ) ) testEquals ( Long . MAX_VALUE , Double . MAX_VALUE ) testEquals ( Long . MAX_VALUE , Double . POSITIVE_INFINITY ) repeat ( ) { val v = Random . nextDouble ( from = . pow ( Long . SIZE_BITS - ) , until = . pow ( Long . SIZE_BITS + ) ) testEquals ( Long . MIN_VALUE , - v ) testEquals ( Long . MAX_VALUE , v ) } repeat ( ) { val v = Random . nextLong ( shl ) testEquals ( v , v . toDouble ( ) ) testEquals ( - v , - v . toDouble ( ) ) } fun testTrailingBits ( v : Double , count : Int ) { val mask = ( shl count ) - assertEquals ( , v . toLong ( ) and mask ) } var withTrailingZeros = . pow ( ) repeat ( ) { withTrailingZeros = withTrailingZeros . nextDown ( ) testTrailingBits ( withTrailingZeros , ) } withTrailingZeros = - ( . pow ( ) ) repeat ( ) { testTrailingBits ( withTrailingZeros , ) withTrailingZeros = withTrailingZeros . nextUp ( ) } repeat ( ) { val msb = Random . nextInt ( , ) val v = . pow ( msb ) * ( + Random . nextDouble ( ) ) testTrailingBits ( v , msb - ) } }","docstring":""} {"signature":"@ Test fun doubleToInt ( )","body":"{ fun testEquals ( expected : Int , v : Double ) = assertEquals ( expected , v . toInt ( ) ) testEquals ( , ) testEquals ( , Double . NaN ) testEquals ( , Double . MIN_VALUE ) testEquals ( , ) testEquals ( - , - ) testEquals ( Int . MIN_VALUE , - ) testEquals ( Int . MIN_VALUE , Int . MIN_VALUE . toDouble ( ) ) testEquals ( Int . MIN_VALUE , - ( . pow ( Int . SIZE_BITS - ) ) ) testEquals ( Int . MIN_VALUE , - ( . pow ( Int . SIZE_BITS + ) ) ) testEquals ( Int . MIN_VALUE , - Double . MAX_VALUE ) testEquals ( Int . MIN_VALUE , Double . NEGATIVE_INFINITY ) testEquals ( Int . MAX_VALUE , ) testEquals ( Int . MAX_VALUE , Int . MAX_VALUE . toDouble ( ) ) testEquals ( Int . MAX_VALUE , . pow ( Int . SIZE_BITS - ) ) testEquals ( Int . MAX_VALUE , . pow ( Int . SIZE_BITS + ) ) testEquals ( Int . MAX_VALUE , Double . MAX_VALUE ) testEquals ( Int . MAX_VALUE , Double . POSITIVE_INFINITY ) repeat ( ) { val v = Random . nextDouble ( from = . pow ( Int . SIZE_BITS - ) , until = . pow ( Int . SIZE_BITS + ) ) testEquals ( Int . MIN_VALUE , - v ) testEquals ( Int . MAX_VALUE , v ) } repeat ( ) { val v = Random . nextDouble ( from = Int . MIN_VALUE . toDouble ( ) , until = Int . MAX_VALUE . toDouble ( ) ) testEquals ( v . toLong ( ) . toInt ( ) , v ) } }","docstring":""} {"signature":"@ Test fun floatToLong ( )","body":"{ fun testEquals ( expected : Long , v : Float ) = assertEquals ( expected , v . toLong ( ) ) testEquals ( , ) testEquals ( , Float . NaN ) testEquals ( , Float . MIN_VALUE ) testEquals ( , ) testEquals ( - , - ) testEquals ( Long . MIN_VALUE , - ) testEquals ( Long . MIN_VALUE , - ( . pow ( Long . SIZE_BITS - ) ) ) testEquals ( Long . MIN_VALUE , - ( . pow ( Long . SIZE_BITS + ) ) ) testEquals ( Long . MIN_VALUE , - Float . MAX_VALUE ) testEquals ( Long . MIN_VALUE , Float . NEGATIVE_INFINITY ) testEquals ( Long . MAX_VALUE , ) testEquals ( Long . MAX_VALUE , . pow ( Long . SIZE_BITS - ) ) testEquals ( Long . MAX_VALUE , . pow ( Long . SIZE_BITS + ) ) testEquals ( Long . MAX_VALUE , Float . MAX_VALUE ) testEquals ( Long . MAX_VALUE , Float . POSITIVE_INFINITY ) repeat ( ) { val v = Random . nextDouble ( from = . pow ( Long . SIZE_BITS - ) , until = . pow ( Long . SIZE_BITS + ) ) . toFloat ( ) testEquals ( Long . MIN_VALUE , - v ) testEquals ( Long . MAX_VALUE , v ) } repeat ( ) { val v = Random . nextLong ( shl ) testEquals ( v , v . toFloat ( ) ) testEquals ( - v , - v . toFloat ( ) ) } }","docstring":""} {"signature":"@ Test fun floatToInt ( )","body":"{ fun testEquals ( expected : Int , v : Float ) = assertEquals ( expected , v . toInt ( ) ) testEquals ( , ) testEquals ( , Float . NaN ) testEquals ( , Float . MIN_VALUE ) testEquals ( , ) testEquals ( - , - ) testEquals ( Int . MIN_VALUE , - ) testEquals ( Int . MIN_VALUE , - ( . pow ( Int . SIZE_BITS - ) ) ) testEquals ( Int . MIN_VALUE , - ( . pow ( Int . SIZE_BITS + ) ) ) testEquals ( Int . MIN_VALUE , - Float . MAX_VALUE ) testEquals ( Int . MIN_VALUE , Float . NEGATIVE_INFINITY ) testEquals ( Int . MAX_VALUE , ) testEquals ( Int . MAX_VALUE , . pow ( Int . SIZE_BITS - ) ) testEquals ( Int . MAX_VALUE , . pow ( Int . SIZE_BITS + ) ) testEquals ( Int . MAX_VALUE , Float . MAX_VALUE ) testEquals ( Int . MAX_VALUE , Float . POSITIVE_INFINITY ) repeat ( ) { val v = Random . nextDouble ( from = . pow ( Int . SIZE_BITS - ) , until = . pow ( Int . SIZE_BITS + ) ) . toFloat ( ) testEquals ( Int . MIN_VALUE , - v ) testEquals ( Int . MAX_VALUE , v ) } repeat ( ) { val v = Random . nextInt ( shl ) testEquals ( v , v . toFloat ( ) ) testEquals ( - v , - v . toFloat ( ) ) } }","docstring":""} {"signature":"fun createAByFqName ( )","body":"{ foo . A ( ) }","docstring":""} {"signature":"override fun matches ( dependency : IdeaKotlinDependency ) : Boolean","body":"{ if ( dependency !is IdeaKotlinBinaryDependency ) return false return regex . matches ( dependency . coordinates . toString ( ) ) }","docstring":""} {"signature":"public fun map ( mapping : ( Float , Float ) -> Pair < Float , Float > ) : T","body":"public fun map ( mapping : ( Float , Float ) -> Pair < Float , Float > ) : T","docstring":"/**\n * Creates a new geometric shape of the same type by applying the provided [mapping]\n * to the coordinates of the current shape.\n */"} {"signature":"override fun addAllAnnotations ( currentRawAnnotations : MutableList < in PsiAnnotation > , foundQualifiers : MutableSet < String > , owner : PsiElement , )","body":"{ if ( owner . parent . isMethodWithOverride ( ) ) { addSimpleAnnotationIfMissing ( JvmAnnotationNames . OVERRIDE_ANNOTATION . asString ( ) , currentRawAnnotations , foundQualifiers , owner ) } }","docstring":""} {"signature":"override fun findSpecialAnnotation ( annotationsBox : GranularAnnotationsBox , qualifiedName : String , owner : PsiElement , ) : PsiAnnotation ?","body":"= if ( owner . parent . isMethodWithOverride ( ) ) createSimpleAnnotationIfMatches ( qualifier = qualifiedName , expectedQualifier = JvmAnnotationNames . OVERRIDE_ANNOTATION . asString ( ) , owner = owner , ) else null","docstring":""} {"signature":"override fun isSpecialQualifier ( qualifiedName : String ) : Boolean","body":"= false","docstring":""} {"signature":"private fun PsiElement . isMethodWithOverride ( ) : Boolean","body":"= this is SymbolLightMethodBase && ( isDelegated || isOverride ( ) )","docstring":""} {"signature":"fun setAttribute ( attrName : String , value : String )","body":"{ _attributes [ attrName ] = value }","docstring":""} {"signature":"fun main ( )","body":"{ val p = Person ( ) val data = mapOf ( \"\" to \"\" , \"\" to \"\" ) for ( ( attrName , value ) in data ) p . setAttribute ( attrName , value ) println ( p . name ) p . name = \"\" println ( p . name ) }","docstring":""} {"signature":"public abstract fun renderDeclaration ( symbol : KtDeclarationSymbol , renderer : KtDeclarationRenderer ) : String","body":"public abstract fun renderDeclaration ( symbol : KtDeclarationSymbol , renderer : KtDeclarationRenderer ) : String","docstring":""} {"signature":"public abstract fun renderType ( type : KtType , renderer : KtTypeRenderer , position : Variance ) : String","body":"public abstract fun renderType ( type : KtType , renderer : KtTypeRenderer , position : Variance ) : String","docstring":""} {"signature":"public fun KtDeclarationSymbol . render ( renderer : KtDeclarationRenderer = KtDeclarationRendererForSource . WITH_QUALIFIED_NAMES ) : String","body":"= withValidityAssertion { analysisSession . symbolDeclarationRendererProvider . renderDeclaration ( this , renderer ) }","docstring":"/**\n * Render symbol into the representable Kotlin string\n */"} {"signature":"public fun KtType . render ( renderer : KtTypeRenderer = KtTypeRendererForSource . WITH_QUALIFIED_NAMES , position : Variance , ) : String","body":"= withValidityAssertion { analysisSession . symbolDeclarationRendererProvider . renderType ( this , renderer , position ) }","docstring":"/**\n * Render kotlin type into the representable Kotlin type string\n */"} {"signature":"fun equals1 ( a : Float , b : Float ? )","body":"= a == b","docstring":""} {"signature":"fun equals2 ( a : Float ? , b : Float ? )","body":"= a ! ! == b ! !","docstring":""} {"signature":"fun equals3 ( a : Float ? , b : Float ? )","body":"= a != null && a == b","docstring":""} {"signature":"fun equals4 ( a : Float ? , b : Float ? )","body":"= if ( a is Float ) a == b else null ! !","docstring":""} {"signature":"fun equals5 ( a : Any ? , b : Any ? )","body":"= if ( a is Float && b is Float ? ) a == b else null ! !","docstring":""} {"signature":"fun equals6 ( a : Any ? , b : Any ? )","body":"= if ( a is Float ? && b is Float ) a == b else null ! !","docstring":""} {"signature":"fun equals7 ( a : Float ? , b : Float ? )","body":"= a == b","docstring":""} {"signature":"fun equals8 ( a : Any ? , b : Any ? )","body":"= if ( a is Float ? && b is Float ? ) a == b else null ! !","docstring":""} {"signature":"fun box ( ) : String","body":"{ if ( ! equals1 ( - , ) ) return \"\" if ( ! equals2 ( - , ) ) return \"\" if ( ! equals3 ( - , ) ) return \"\" if ( ! equals4 ( - , ) ) return \"\" if ( ! equals5 ( - , ) ) return \"\" if ( ! equals6 ( - , ) ) return \"\" if ( ! equals7 ( - , ) ) return \"\" if ( ! equals8 ( - , ) ) return \"\" if ( ! equals8 ( null , null ) ) return \"\" if ( equals8 ( null , ) ) return \"\" if ( equals8 ( , null ) ) return \"\" return \"\" }","docstring":""} {"signature":"fun box ( ) : String","body":"{ var x = if ( b ) { var x = } assertEquals ( , x ) return \"\" }","docstring":""} {"signature":"override fun < R , D > accept ( visitor : IrElementVisitor < R , D > , data : D ) : R","body":"= visitor . visitContinue ( this , data )","docstring":""} {"signature":"abstract fun foo2 ( arg : Int = ) : Int","body":"abstract fun foo2 ( arg : Int = ) : Int","docstring":""} {"signature":"override fun foo2 ( arg : Int ) : Int","body":"= arg","docstring":""} {"signature":"fun box ( ) : String","body":"{ if ( C ( ) . foo2 ( ) != ) return \"\" if ( C ( ) . foo2 ( ) != ) return \"\" return \"\" }","docstring":""} {"signature":"internal fun buildKotlinNativeBinaryLinkerArgs ( outFile : File , optimized : Boolean , debuggable : Boolean , target : KonanTarget , outputKind : CompilerOutputKind , libraries : List < File > , friendModules : List < File > , toolOptions : KotlinCommonCompilerToolOptions , compilerPlugins : List < CompilerPluginData > , processTests : Boolean , entryPoint : String ? , embedBitcode : BitcodeEmbeddingMode , linkerOpts : List < String > , binaryOptions : Map < String , String > , isStaticFramework : Boolean , exportLibraries : List < File > , includeLibraries : List < File > , additionalOptions : Collection < String > , ) : List < String >","body":"= mutableListOf < String > ( ) . apply { addAll ( buildKotlinNativeMainArgs ( outFile , optimized , debuggable , target , outputKind , libraries ) ) addAll ( additionalOptions ) addKey ( \"\" , processTests ) addArgIfNotNull ( \"\" , entryPoint ) when ( embedBitcode ) { BitcodeEmbeddingMode . MARKER -> add ( \"\" ) BitcodeEmbeddingMode . BITCODE -> add ( \"\" ) else -> Unit } linkerOpts . forEach { addArg ( \"\" , it ) } binaryOptions . forEach { ( name , value ) -> add ( \"\" ) } addKey ( \"\" , isStaticFramework ) addAll ( buildKotlinNativeCommonArgs ( toolOptions , compilerPlugins ) ) exportLibraries . forEach { add ( \"\" ) } includeLibraries . forEach { add ( \"\" ) } if ( friendModules . isNotEmpty ( ) ) { addArg ( \"\" , friendModules . joinToString ( File . pathSeparator ) { it . absolutePath } ) } }","docstring":""} {"signature":"private fun buildKotlinNativeMainArgs ( outFile : File , optimized : Boolean , debuggable : Boolean , target : KonanTarget , outputKind : CompilerOutputKind , libraries : List < File > , ) : List < String >","body":"= mutableListOf < String > ( ) . apply { addKey ( \"\" , optimized ) addKey ( \"\" , debuggable ) addKey ( \"\" , debuggable ) addArg ( \"\" , target . name ) addArg ( \"\" , outputKind . name . toLowerCaseAsciiOnly ( ) ) addArg ( \"\" , outFile . absolutePath ) libraries . forEach { addArg ( \"\" , it . absolutePath ) } }","docstring":""} {"signature":"private fun buildKotlinNativeCommonArgs ( toolOptions : KotlinCommonCompilerToolOptions , compilerPlugins : List < CompilerPluginData > , ) : List < String >","body":"= mutableListOf < String > ( ) . apply { add ( \"\" ) addKey ( \"\" , true ) compilerPlugins . forEach { plugin -> plugin . files . map { it . canonicalPath } . sorted ( ) . forEach { add ( \"\" ) } addArgs ( \"\" , plugin . options . arguments ) } addKey ( \"\" , toolOptions . allWarningsAsErrors . get ( ) ) addKey ( \"\" , toolOptions . suppressWarnings . get ( ) ) addKey ( \"\" , toolOptions . verbose . get ( ) ) addAll ( toolOptions . freeCompilerArgs . get ( ) ) }","docstring":""} {"signature":"private fun MutableList < String > . addArg ( parameter : String , value : String )","body":"{ add ( parameter ) add ( value ) }","docstring":""} {"signature":"private fun MutableList < String > . addArgs ( parameter : String , values : Iterable < String > )","body":"{ values . forEach { addArg ( parameter , it ) } }","docstring":""} {"signature":"private fun MutableList < String > . addArgIfNotNull ( parameter : String , value : String ? )","body":"{ if ( value != null ) { addArg ( parameter , value ) } }","docstring":""} {"signature":"private fun MutableList < String > . addKey ( key : String , enabled : Boolean )","body":"{ if ( enabled ) { add ( key ) } }","docstring":""} {"signature":"override fun deserialize ( decoder : Decoder ) : SizeUnit","body":"{ TODO ( \"\" ) }","docstring":""} {"signature":"override fun serialize ( encoder : Encoder , value : SizeUnit )","body":"{ when ( value ) { is Pixel -> encoder . encodeInt ( value . pixels ) is IntUnit -> encoder . encodeInt ( value . value ) is DoubleUnit -> encoder . encodeDouble ( value . value ) is Percentage -> encoder . encodeSerializableValue ( Percentage . serializer ( ) , value ) } }","docstring":""} {"signature":"override fun deserialize ( decoder : Decoder ) : Percentage","body":"{ TODO ( \"\" ) }","docstring":""} {"signature":"override fun serialize ( encoder : Encoder , value : Percentage )","body":"{ encoder . encodeString ( \"\" ) }","docstring":""} {"signature":"fun _is_l ( e : Either < C1 , C2 > ) : Any","body":"{ if ( e is Left ) { return e . value . v1 } return e }","docstring":""} {"signature":"fun _is_r ( e : Either < C1 , C2 > ) : Any","body":"{ if ( e is Right ) { return e . value . v2 } return e }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val p = K :: class . memberProperties . single ( ) as KProperty1 < K , String > try { return p . get ( K ( \"\" ) ) } catch ( e : IllegalCallableAccessException ) { } p . isAccessible = true return p . get ( K ( \"\" ) ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val intList = mutableListOf < Int > ( ) val intProgression = .. Int . MAX_VALUE for ( i in intProgression step Int . MAX_VALUE ) { intList += i } assertEquals ( listOf ( ) , intList ) val longList = mutableListOf < Long > ( ) val longProgression = .. Long . MAX_VALUE for ( i in longProgression step Long . MAX_VALUE ) { longList += i } assertEquals ( listOf ( ) , longList ) val charList = mutableListOf < Char > ( ) val charProgression = . toChar ( ) .. Char . MAX_VALUE for ( i in charProgression step Char . MAX_VALUE . toInt ( ) ) { charList += i } assertEquals ( listOf ( . toChar ( ) ) , charList ) return \"\" }","docstring":""} {"signature":"fun foo ( t : T ) : T","body":"= t","docstring":""} {"signature":"private fun foo ( )","body":"{ }","docstring":""} {"signature":"fun box ( ) : String","body":"= B ( ) . foo ( \"\" )","docstring":""} {"signature":"fun box ( ) : String","body":"{ for ( ( i , v ) in ( .. ) . withIndex ( ) ) { } return \"\" }","docstring":""} {"signature":"external fun __promisify__ ( path : String , uid : Number , gid : Number ) : Promise < Unit >","body":"external fun __promisify__ ( path : String , uid : Number , gid : Number ) : Promise < Unit >","docstring":""} {"signature":"external fun __promisify__ ( path : Buffer , uid : Number , gid : Number ) : Promise < Unit >","body":"external fun __promisify__ ( path : Buffer , uid : Number , gid : Number ) : Promise < Unit >","docstring":""} {"signature":"external fun __promisify__ ( path : URL , uid : Number , gid : Number ) : Promise < Unit >","body":"external fun __promisify__ ( path : URL , uid : Number , gid : Number ) : Promise < Unit >","docstring":""} {"signature":"@ OptIn ( DokkaPluginApiPreview :: class ) override fun pluginApiPreviewAcknowledgement ( ) : PluginApiPreviewAcknowledgement","body":"= PluginApiPreviewAcknowledgement","docstring":""} {"signature":"@ OptIn ( ExperimentalContracts :: class ) fun CharSequence ? . valueIsNotNull ( ) : Boolean","body":"{ contract { returns ( true ) implies ( this @ valueIsNotNull != null ) } return this != null }","docstring":""} {"signature":"@ OptIn ( ExperimentalContracts :: class ) fun CharSequence ? . valueIsNull ( ) : Boolean","body":"{ contract { returns ( false ) implies ( this @ valueIsNull != null ) } return this == null }","docstring":""} {"signature":"fun test1 ( a : A ? )","body":"{ if ( ! a ? . b . valueIsNull ( ) ) { a . b . length } }","docstring":""} {"signature":"fun test2 ( a : A ? )","body":"{ require ( ! a ? . b . valueIsNull ( ) ) a . b . length }","docstring":""} {"signature":"fun test3 ( a : A ? )","body":"{ if ( a ? . b . valueIsNotNull ( ) ) { a . b . length } }","docstring":""} {"signature":"fun test4 ( a : A ? )","body":"{ require ( a ? . b . valueIsNotNull ( ) ) a . b . length }","docstring":""} {"signature":"fun test5 ( a : A ? )","body":"{ require ( a ? . e ? . d . valueIsNotNull ( ) ) a . e . d . length }","docstring":""} {"signature":"public fun < C > String . colsOf ( type : KType , filter : ColumnFilter < C > = { true } , ) : ColumnSet < * >","body":"= columnGroup ( this ) . colsOf ( type , filter )","docstring":"/**\n * @include [CommonColsOfDocs]\n *\n * `df.`[select][DataFrame.select]` { \"myColumnGroup\".`[colsOf][String.colsOf]`(`[typeOf][typeOf]`<`[Int][Int]`>()) }`\n *\n * `df.`[select][DataFrame.select]` { \"myColumnGroup\".`[colsOf][String.colsOf]`(`[typeOf][typeOf]`<`[Int][Int]`>()) { it: `[DataColumn][DataColumn]`<`[Int][Int]`> -> it.`[size][DataColumn.size]` > 10 } }`\n *\n * @include [CommonColsOfDocs.FilterParam]\n * @include [CommonColsOfDocs.Return]\n */"} {"signature":"public fun < C > KProperty < * > . colsOf ( type : KType , filter : ColumnFilter < C > = { true } , ) : ColumnSet < * >","body":"= columnGroup ( this ) . colsOf ( type , filter )","docstring":"/**\n * @include [CommonColsOfDocs]\n *\n * `df.`[select][DataFrame.select]` { DataSchemaType::myColumnGroup.`[colsOf][KProperty.colsOf]`(`[typeOf][typeOf]`<`[Int][Int]`>()) }`\n *\n * `df.`[select][DataFrame.select]` { Type::myColumnGroup.`[colsOf][KProperty.colsOf]`(`[typeOf][typeOf]`<`[Int][Int]`>()) { it: `[DataColumn][DataColumn]`<`[Int][Int]`> -> it.`[size][DataColumn.size]` > 10 } }`\n *\n * @include [CommonColsOfDocs.FilterParam]\n * @include [CommonColsOfDocs.Return]\n */"} {"signature":"public fun < C > ColumnPath . colsOf ( type : KType , filter : ColumnFilter < C > = { true } , ) : ColumnSet < * >","body":"= columnGroup ( this ) . colsOf ( type , filter )","docstring":"/**\n * @include [CommonColsOfDocs]\n *\n * `df.`[select][DataFrame.select]` { \"pathTo\"[\"myColumnGroup\"].`[colsOf][ColumnPath.colsOf]`(`[typeOf][typeOf]`<`[Int][Int]`>()) }`\n *\n * `df.`[select][DataFrame.select]` { \"pathTo\"[\"myColumnGroup\"].`[colsOf][ColumnPath.colsOf]`(`[typeOf][typeOf]`<`[Int][Int]`>()) { it: `[DataColumn][DataColumn]`<`[Int][Int]`> -> it.`[size][DataColumn.size]` > 10 } }`\n *\n * @include [CommonColsOfDocs.FilterParam]\n * @include [CommonColsOfDocs.Return]\n */"} {"signature":"public fun < C > ColumnSet < * > . colsOf ( type : KType , filter : ColumnFilter < C > = { true } , ) : TransformableColumnSet < C >","body":"= colsOfInternal ( type , filter )","docstring":"/**\n * @include [ColsOfColumnsSelectionDsl.CommonColsOfDocs]\n *\n * `df.`[select][DataFrame.select]` { `[cols][ColumnsSelectionDsl.cols]` { .. }.`[colsOf][ColumnSet.colsOf]`(`[typeOf][typeOf]`<`[Int][Int]`>()) }`\n *\n * `df.`[select][DataFrame.select]` { `[cols][ColumnsSelectionDsl.cols]` { .. }.`[colsOf][ColumnSet.colsOf]`(`[typeOf][typeOf]`<`[Int][Int]`>()) { it: `[DataColumn][DataColumn]`<`[Int][Int]`> -> it.`[size][DataColumn.size]` > 10 } }`\n *\n * @include [ColsOfColumnsSelectionDsl.CommonColsOfDocs.FilterParam]\n * @include [ColsOfColumnsSelectionDsl.CommonColsOfDocs.Return]\n */"} {"signature":"public inline fun < reified C > ColumnSet < * > . colsOf ( noinline filter : ColumnFilter < C > = { true } , ) : TransformableColumnSet < C >","body":"= colsOf ( typeOf < C > ( ) , filter )","docstring":"/**\n * @include [ColsOfColumnsSelectionDsl.CommonColsOfDocs]\n *\n * `df.`[select][DataFrame.select]` { `[cols][ColumnsSelectionDsl.cols]` { .. }.`[colsOf][ColumnSet.colsOf]`<`[Int][Int]`>() }`\n *\n * `df.`[select][DataFrame.select]` { `[cols][ColumnsSelectionDsl.cols]` { .. }.`[colsOf][ColumnSet.colsOf]`<`[Int][Int]`> { it.`[size][DataColumn.size]` > 10 } }`\n *\n * @include [ColsOfColumnsSelectionDsl.CommonColsOfDocs.FilterParam]\n * @include [ColsOfColumnsSelectionDsl.CommonColsOfDocs.Return]\n */"} {"signature":"public fun < C > ColumnsSelectionDsl < * > . colsOf ( type : KType , filter : ColumnFilter < C > = { true } , ) : TransformableColumnSet < C >","body":"= asSingleColumn ( ) . colsOf ( type , filter )","docstring":"/**\n * @include [ColsOfColumnsSelectionDsl.CommonColsOfDocs]\n *\n * `df.`[select][DataFrame.select]` { `[colsOf][SingleColumn.colsOf]`(`[typeOf][typeOf]`<`[Int][Int]`>()) }`\n *\n * @include [ColsOfColumnsSelectionDsl.CommonColsOfDocs.FilterParam]\n * @include [ColsOfColumnsSelectionDsl.CommonColsOfDocs.Return]\n */"} {"signature":"public inline fun < reified C > ColumnsSelectionDsl < * > . colsOf ( noinline filter : ColumnFilter < C > = { true } , ) : TransformableColumnSet < C >","body":"= asSingleColumn ( ) . colsOf ( typeOf < C > ( ) , filter )","docstring":"/**\n * @include [ColsOfColumnsSelectionDsl.CommonColsOfDocs]\n *\n * `df.`[select][DataFrame.select]` { `[colsOf][SingleColumn.colsOf]`<`[Int][Int]`>() }`\n *\n * @include [ColsOfColumnsSelectionDsl.CommonColsOfDocs.FilterParam]\n * @include [ColsOfColumnsSelectionDsl.CommonColsOfDocs.Return]\n */"} {"signature":"public fun < C > SingleColumn < DataRow < * > > . colsOf ( type : KType , filter : ColumnFilter < C > = { true } , ) : TransformableColumnSet < C >","body":"= ensureIsColumnGroup ( ) . colsOfInternal ( type , filter )","docstring":"/**\n * @include [ColsOfColumnsSelectionDsl.CommonColsOfDocs]\n *\n * `df.`[select][DataFrame.select]` { myColumnGroup.`[colsOf][SingleColumn.colsOf]`<`[Int][Int]`>(`[typeOf][typeOf]`<`[Int][Int]`>()) { it: `[DataColumn][DataColumn]`<`[Int][Int]`> -> it.`[size][DataColumn.size]` > 10 } }`\n *\n * `df.`[select][DataFrame.select]` { myColumnGroup.`[colsOf][SingleColumn.colsOf]`<`[Int][Int]`>(`[typeOf][typeOf]`<`[Int][Int]`>()) }`\n *\n * @include [ColsOfColumnsSelectionDsl.CommonColsOfDocs.FilterParam]\n * @include [ColsOfColumnsSelectionDsl.CommonColsOfDocs.Return]\n */"} {"signature":"public inline fun < reified C > SingleColumn < DataRow < * > > . colsOf ( noinline filter : ColumnFilter < C > = { true } , ) : TransformableColumnSet < C >","body":"= colsOf ( typeOf < C > ( ) , filter )","docstring":"/**\n * @include [ColsOfColumnsSelectionDsl.CommonColsOfDocs]\n *\n * `df.`[select][DataFrame.select]` { myColumnGroup.`[colsOf][SingleColumn.colsOf]`<`[Int][Int]`> { it.`[size][DataColumn.size]` > 10 } }`\n *\n * `df.`[select][DataFrame.select]` { myColumnGroup.`[colsOf][SingleColumn.colsOf]`<`[Int][Int]`>() }`\n *\n * @include [ColsOfColumnsSelectionDsl.CommonColsOfDocs.FilterParam]\n * @include [ColsOfColumnsSelectionDsl.CommonColsOfDocs.Return]\n */"} {"signature":"@ Suppress ( \"\" ) internal fun < C > ColumnsResolver < * > . colsOfInternal ( type : KType , filter : ColumnFilter < C > , ) : TransformableColumnSet < C >","body":"= colsInternal { it . isSubtypeOf ( type ) && filter ( it . cast ( ) ) } as TransformableColumnSet < C >","docstring":"/**\n * If this [ColumnsResolver] is a [SingleColumn], it\n * returns a new [ColumnSet] containing the columns inside of this [SingleColumn] that\n * match the given [filter] and are the given [type].\n *\n * Else, it returns a new [ColumnSet] containing all columns in this [ColumnsResolver] that\n * match the given [filter] and are the given [type].\n */"} {"signature":"fun less ( x : Comparable < Float > , y : Float )","body":"= x is Float && x < y","docstring":""} {"signature":"fun less ( x : Comparable < Double > , y : Double )","body":"= x is Double && x < y","docstring":""} {"signature":"fun box ( ) : String","body":"{ if ( less ( - , ) ) return \"\" if ( less ( - , ) ) return \"\" return \"\" }","docstring":""} {"signature":"fun defaultMessageCollector ( isVerbose : Boolean )","body":"= PrintingMessageCollector ( System . err , PLAIN_FULL_PATHS , isVerbose )","docstring":""} {"signature":"override fun info ( message : String )","body":"{ if ( isVerbose ) { messageCollector . report ( INFO , PREFIX + message ) } }","docstring":""} {"signature":"override fun warn ( message : String )","body":"{ messageCollector . report ( WARNING , PREFIX + message ) }","docstring":""} {"signature":"override fun error ( message : String )","body":"{ messageCollector . report ( ERROR , PREFIX + message ) }","docstring":""} {"signature":"override fun exception ( e : Throwable )","body":"{ val stacktrace = run { val writer = StringWriter ( ) e . printStackTrace ( PrintWriter ( writer ) ) writer . toString ( ) } messageCollector . report ( ERROR , PREFIX + \"\" + stacktrace ) }","docstring":""} {"signature":"private fun makeWriter ( severity : CompilerMessageSeverity ) : PrintWriter","body":"{ return PrintWriter ( MessageCollectorBackedWriter ( messageCollector , severity ) ) }","docstring":""} {"signature":"fun Int . toTrue ( )","body":"= true","docstring":""} {"signature":"fun testBooleanArray ( n : Int )","body":"= BooleanArray ( n ) { it . toTrue ( ) }","docstring":""} {"signature":"fun testByteArray ( n : Int )","body":"= ByteArray ( n ) { it . toByte ( ) }","docstring":""} {"signature":"fun testShortArray ( n : Int )","body":"= ShortArray ( n ) { it . toShort ( ) }","docstring":""} {"signature":"fun testIntArray ( n : Int )","body":"= IntArray ( n ) { it }","docstring":""} {"signature":"fun testLongArray ( n : Int )","body":"= LongArray ( n ) { it . toLong ( ) }","docstring":""} {"signature":"fun testFloatArray ( n : Int )","body":"= FloatArray ( n ) { it . toFloat ( ) }","docstring":""} {"signature":"fun testDoubleArray ( n : Int )","body":"= DoubleArray ( n ) { it . toDouble ( ) }","docstring":""} {"signature":"fun testObjectArray ( n : Int )","body":"= Array ( n ) { it . toString ( ) }","docstring":""} {"signature":"fun test1 ( )","body":"{ val a = null if ( a != null ) { println ( \"\" ) } if ( a == null ) { println ( \"\" ) } }","docstring":""} {"signature":"override fun lower ( irClass : IrClass )","body":"{ if ( ! irClass . isAnnotationClass ) return generateDocumentedAnnotation ( irClass ) generateRetentionAnnotation ( irClass ) generateTargetAnnotation ( irClass ) generateRepeatableAnnotation ( irClass ) }","docstring":""} {"signature":"private fun generateDocumentedAnnotation ( irClass : IrClass )","body":"{ if ( ! irClass . hasAnnotation ( StandardNames . FqNames . mustBeDocumented ) || irClass . hasAnnotation ( JvmAnnotationNames . DOCUMENTED_ANNOTATION ) ) return irClass . annotations += IrConstructorCallImpl . fromSymbolOwner ( UNDEFINED_OFFSET , UNDEFINED_OFFSET , symbols . documentedConstructor . returnType , symbols . documentedConstructor . symbol , ) }","docstring":""} {"signature":"private fun generateRetentionAnnotation ( irClass : IrClass )","body":"{ if ( irClass . hasAnnotation ( JvmAnnotationNames . RETENTION_ANNOTATION ) ) return val kotlinRetentionPolicy = irClass . getAnnotationRetention ( ) val javaRetentionPolicy = kotlinRetentionPolicy ? . let { symbols . annotationRetentionMap [ it ] } ? : symbols . rpRuntime irClass . annotations += IrConstructorCallImpl . fromSymbolOwner ( UNDEFINED_OFFSET , UNDEFINED_OFFSET , symbols . retentionConstructor . returnType , symbols . retentionConstructor . symbol , ) . apply { putValueArgument ( , IrGetEnumValueImpl ( UNDEFINED_OFFSET , UNDEFINED_OFFSET , symbols . retentionPolicyEnum . defaultType , javaRetentionPolicy . symbol ) ) } }","docstring":""} {"signature":"private fun generateTargetAnnotation ( irClass : IrClass )","body":"{ if ( irClass . hasAnnotation ( JvmAnnotationNames . TARGET_ANNOTATION ) ) return val targets = irClass . applicableTargetSet ( ) ? : return val javaTargets = targets . mapNotNullTo ( HashSet ( ) , :: mapTarget ) . sortedBy { ElementType . valueOf ( it . symbol . owner . name . asString ( ) ) } val vararg = IrVarargImpl ( UNDEFINED_OFFSET , UNDEFINED_OFFSET , type = context . irBuiltIns . arrayClass . typeWith ( symbols . elementTypeEnum . defaultType ) , varargElementType = symbols . elementTypeEnum . defaultType ) for ( target in javaTargets ) { vararg . elements . add ( IrGetEnumValueImpl ( UNDEFINED_OFFSET , UNDEFINED_OFFSET , symbols . elementTypeEnum . defaultType , target . symbol ) ) } irClass . annotations += IrConstructorCallImpl . fromSymbolOwner ( UNDEFINED_OFFSET , UNDEFINED_OFFSET , symbols . targetConstructor . returnType , symbols . targetConstructor . symbol , ) . apply { putValueArgument ( , vararg ) } }","docstring":""} {"signature":"private fun mapTarget ( target : KotlinTarget ) : IrEnumEntry ?","body":"= when ( target ) { KotlinTarget . TYPE_PARAMETER -> symbols . typeParameterTarget . takeUnless { noNewJavaAnnotationTargets } KotlinTarget . TYPE -> symbols . typeUseTarget . takeUnless { noNewJavaAnnotationTargets } else -> symbols . jvmTargetMap [ target ] }","docstring":""} {"signature":"private fun generateRepeatableAnnotation ( irClass : IrClass )","body":"{ if ( ! irClass . hasAnnotation ( StandardNames . FqNames . repeatable ) || irClass . hasAnnotation ( JvmAnnotationNames . REPEATABLE_ANNOTATION ) ) return val containerClass = irClass . declarations . singleOrNull { it is IrClass && it . name . asString ( ) == JvmAbi . REPEATABLE_ANNOTATION_CONTAINER_NAME } as IrClass ? ? : error ( \"\" ) val containerReference = IrClassReferenceImpl ( UNDEFINED_OFFSET , UNDEFINED_OFFSET , context . irBuiltIns . kClassClass . typeWith ( containerClass . defaultType ) , containerClass . symbol , containerClass . defaultType ) irClass . annotations += IrConstructorCallImpl . fromSymbolOwner ( UNDEFINED_OFFSET , UNDEFINED_OFFSET , symbols . repeatableConstructor . returnType , symbols . repeatableConstructor . symbol , ) . apply { putValueArgument ( , containerReference ) } }","docstring":""} {"signature":"private fun IrConstructorCall . getValueArgument ( name : Name ) : IrExpression ?","body":"{ val index = symbol . owner . valueParameters . find { it . name == name } ? . index ? : return null return getValueArgument ( index ) }","docstring":""} {"signature":"private fun IrClass . applicableTargetSet ( ) : Set < KotlinTarget > ?","body":"{ val targetEntry = getAnnotation ( StandardNames . FqNames . target ) ? : return null return loadAnnotationTargets ( targetEntry ) }","docstring":""} {"signature":"private fun loadAnnotationTargets ( targetEntry : IrConstructorCall ) : Set < KotlinTarget > ?","body":"{ val valueArgument = targetEntry . getValueArgument ( Name . identifier ( Target :: allowedTargets . name ) ) as? IrVararg ? : return null return valueArgument . elements . filterIsInstance < IrGetEnumValue > ( ) . mapNotNull { KotlinTarget . valueOrNull ( it . symbol . owner . name . asString ( ) ) } . toSet ( ) }","docstring":""} {"signature":"override fun getSize ( ) : Int","body":"= _size","docstring":""} {"signature":"fun Type . toFixStackValue ( ) : FixStackValue ?","body":"= when ( this . sort ) { Type . VOID -> null Type . BOOLEAN , Type . BYTE , Type . CHAR , Type . SHORT , Type . INT -> FixStackValue . INT Type . LONG -> FixStackValue . LONG Type . FLOAT -> FixStackValue . FLOAT Type . DOUBLE -> FixStackValue . DOUBLE Type . OBJECT , Type . ARRAY , Type . METHOD -> FixStackValue . OBJECT else -> throw AssertionError ( \"\" ) }","docstring":""} {"signature":"fun foo ( )","body":"fun foo ( )","docstring":""} {"signature":"fun Any . test ( )","body":"{ if ( this is A ) { val a = this a . foo ( ) } }","docstring":""} {"signature":"@ Synchronized fun getFqNames ( sourceFile : File ) : Collection < FqName > ?","body":"= this [ sourceFile ] ? . map { nameTransformer . asFqName ( nameTransformer . asString ( it ) ) }","docstring":""} {"signature":"override fun save ( output : DataOutput , name : Name )","body":"{ StringExternalizer . save ( output , nameTransformer . asString ( name ) ) }","docstring":""} {"signature":"override fun read ( input : DataInput ) : Name","body":"{ return nameTransformer . asName ( StringExternalizer . read ( input ) ) }","docstring":""} {"signature":"fun bar ( ) : String","body":"{ fun < T > foo ( t : ( ) -> T ) : T = t ( ) foo { } return \"\" }","docstring":""} {"signature":"fun box ( ) : String","body":"{ return Foo ( ) . bar ( ) }","docstring":""} {"signature":"fun xGetter ( ) : ( ) -> String","body":"= this :: x","docstring":""} {"signature":"fun box ( ) : String","body":"{ return Child ( ) . xGetter ( ) ( ) }","docstring":""} {"signature":"override fun execute ( event : ExecutionEvent ) : Any ?","body":"{ val selection = HandlerUtil . getActiveMenuSelection ( event ) val project = getFirstOrNullProject ( selection as IStructuredSelection ) ! ! KotlinNature . addNature ( project ) KotlinRuntimeConfigurator . suggestForProject ( project ) ; return null }","docstring":""} {"signature":"override fun setEnabled ( evaluationContext : Any )","body":"{ val selection = HandlerUtil . getVariable ( evaluationContext , ISources . ACTIVE_CURRENT_SELECTION_NAME ) if ( selection is IStructuredSelection ) { val project = getFirstOrNullProject ( selection ) if ( project != null ) { setBaseEnabled ( isConfigurationMissing ( project ) ) return } } setBaseEnabled ( false ) }","docstring":""} {"signature":"abstract protected fun foo ( my : My ) : Your","body":"abstract protected fun foo ( my : My ) : Your","docstring":""} {"signature":"override fun foo ( my : Outer . My )","body":"= Outer . Your ( )","docstring":""} {"signature":"fun box ( ) : String","body":"{ val annotation = MyClass :: class . java . getAnnotation ( Ann :: class . java ) ! ! if ( annotation . p1 != prop1 ) return \"\" if ( annotation . p2 != prop2 ) return \"\" if ( annotation . p3 != prop3 ) return \"\" if ( annotation . p4 != prop4 ) return \"\" if ( annotation . p5 != prop5 ) return \"\" if ( annotation . p6 != prop6 ) return \"\" return \"\" }","docstring":""} {"signature":"operator fun get ( key : K ) : V","body":"= unwrap ( map . computeIfAbsent ( key ) { wrap ( function ( key ) ) } ) as V","docstring":""} {"signature":"operator fun get ( key : K ) : V ?","body":"= unwrap ( map [ key ] ) as V ?","docstring":""} {"signature":"fun computeIfAbsent ( key : K , function : ( K ) -> V ) : V","body":"= unwrap ( map . computeIfAbsent ( key ) { wrap ( function ( key ) ) } ) as V","docstring":""} {"signature":"fun wrap ( value : Any ? ) : Any","body":"= value ? : NULL_OBJECT","docstring":""} {"signature":"fun unwrap ( value : Any ? ) : Any ?","body":"= if ( value == NULL_OBJECT ) null else value","docstring":""} {"signature":"@ Before fun setUp ( )","body":"{ Dispatchers . setMain ( Dispatchers . Unconfined ) }","docstring":""} {"signature":"@ After fun tearDown ( )","body":"{ Dispatchers . resetMain ( ) }","docstring":""} {"signature":"@ Test fun testComponent ( )","body":"{ val component = TestComponent ( ) component . launchSomething ( ) assertTrue ( component . launchCompleted ) }","docstring":""} {"signature":"@ Test fun testFailureWhenReset ( )","body":"{ Dispatchers . resetMain ( ) val component = TestComponent ( ) try { component . launchSomething ( ) throw component . caughtException } catch ( e : IllegalStateException ) { assertTrue ( e . message ! ! . contains ( \"\" ) ) } }","docstring":""} {"signature":"override fun < R , D > accept ( visitor : FirVisitor < R , D > , data : D ) : R","body":"= visitor . visitDynamicTypeRef ( this , data )","docstring":""} {"signature":"@ Suppress ( \"\" ) override fun < E : FirElement , D > transform ( transformer : FirTransformer < D > , data : D ) : E","body":"= transformer . transformDynamicTypeRef ( this , data ) as E","docstring":""} {"signature":"abstract override fun replaceAnnotations ( newAnnotations : List < FirAnnotation > )","body":"abstract override fun replaceAnnotations ( newAnnotations : List < FirAnnotation > )","docstring":""} {"signature":"abstract override fun < D > transformAnnotations ( transformer : FirTransformer < D > , data : D ) : FirDynamicTypeRef","body":"abstract override fun < D > transformAnnotations ( transformer : FirTransformer < D > , data : D ) : FirDynamicTypeRef","docstring":""} {"signature":"private fun calculateClassId ( packageName : FqName , className : FqName ? ) : ClassId ?","body":"= className ? . let { ClassId ( packageName , it , isLocal = packageName == PACKAGE_FQ_NAME_FOR_LOCAL ) }","docstring":""} {"signature":"fun asFqNameForDebugInfo ( ) : FqName","body":"{ pathToLocal ? . child ( callableName ) ? . let { return it } return asSingleFqName ( ) }","docstring":""} {"signature":"fun asSingleFqName ( ) : FqName","body":"{ return classId ? . asSingleFqName ( ) ? . child ( callableName ) ? : packageName . child ( callableName ) }","docstring":""} {"signature":"fun copy ( callableName : Name ) : CallableId","body":"= CallableId ( packageName , className , callableName , classId , pathToLocal )","docstring":""} {"signature":"override fun equals ( other : Any ? ) : Boolean","body":"{ return when { this === other -> true other !is CallableId -> false else -> packageName == other . packageName && className == other . className && callableName == other . callableName } }","docstring":""} {"signature":"override fun hashCode ( ) : Int","body":"{ var result = result = result * + packageName . hashCode ( ) result = result * + className . hashCode ( ) result = result * + callableName . hashCode ( ) return result }","docstring":""} {"signature":"override fun toString ( ) : String","body":"{ return buildString { append ( packageName . asString ( ) . replace ( '' , '' ) ) append ( \"\" ) if ( className != null ) { append ( className ) append ( \"\" ) } append ( callableName ) } }","docstring":""} {"signature":"fun CallableId . withClassId ( classId : ClassId ) : CallableId","body":"{ return CallableId ( classId , callableName ) }","docstring":""} {"signature":"fun outer ( ) : Outer < String >","body":"= null ! !","docstring":""} {"signature":"fun nested ( ) : Outer . Nested","body":"= null ! !","docstring":""} {"signature":"fun inner ( ) : Outer < Int > . Inner","body":"= null ! !","docstring":""} {"signature":"fun array ( ) : Array < String >","body":"= null ! !","docstring":""} {"signature":"fun box ( ) : String","body":"{ assertEquals ( Outer :: class , :: outer . returnType . classifier ) assertEquals ( Outer . Nested :: class , :: nested . returnType . classifier ) assertEquals ( Outer . Inner :: class , :: inner . returnType . classifier ) assertEquals ( Array < String > :: class , :: array . returnType . classifier ) return \"\" }","docstring":""} {"signature":"fun test ( p : T ) : T","body":"{ return p }","docstring":""} {"signature":"override fun test ( p : String ) : String","body":"{ return p + \"\" }","docstring":""} {"signature":"fun < T > execute ( t : Test < T > , p : T ) : T","body":"{ return t . test ( p ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ return execute ( TestClass ( ) , \"\" ) }","docstring":""} {"signature":"inline fun toLong ( ) : Long","body":"= this . value . toLong ( )","docstring":""} {"signature":"fun libJvmPlatformUtil ( ) : Int","body":"= ","docstring":""} {"signature":"private fun compute ( oldLines : List < String > , newLines : List < String > ) : String ?","body":"= computeLinesDiff ( oldLines , newLines ) . diff ? . joinToString ( \"\" )","docstring":""} {"signature":"@ Test fun testDiffSame ( )","body":"{ assertEquals ( \"\" , compute ( listOf ( ) , listOf ( ) ) ) assertEquals ( \"\" , compute ( listOf ( \"\" , \"\" , \"\" ) , listOf ( \"\" , \"\" , \"\" ) ) ) }","docstring":""} {"signature":"@ Test fun testDiffInsert ( )","body":"{ assertEquals ( \"\"\"\"\"\" . trimIndent ( ) , compute ( listOf ( \"\" , \"\" , \"\" ) , listOf ( \"\" , \"\" , \"\" , \"\" ) ) ) assertEquals ( \"\"\"\"\"\" . trimIndent ( ) , compute ( listOf ( \"\" , \"\" , \"\" ) , listOf ( \"\" , \"\" , \"\" , \"\" ) ) ) assertEquals ( \"\"\"\"\"\" . trimIndent ( ) , compute ( listOf ( \"\" , \"\" , \"\" ) , listOf ( \"\" , \"\" , \"\" , \"\" , \"\" , \"\" ) ) ) assertEquals ( \"\"\"\"\"\" . trimIndent ( ) , compute ( listOf ( \"\" , \"\" , \"\" ) , listOf ( \"\" , \"\" , \"\" , \"\" ) ) ) assertEquals ( \"\"\"\"\"\" . trimIndent ( ) , compute ( listOf ( \"\" , \"\" , \"\" ) , listOf ( \"\" , \"\" , \"\" , \"\" , \"\" ) ) ) }","docstring":""} {"signature":"@ Test fun testDiffDelete ( )","body":"{ assertEquals ( \"\"\"\"\"\" . trimIndent ( ) , compute ( listOf ( \"\" , \"\" , \"\" , \"\" ) , listOf ( \"\" , \"\" , \"\" ) ) ) assertEquals ( \"\"\"\"\"\" . trimIndent ( ) , compute ( listOf ( \"\" , \"\" , \"\" , \"\" ) , listOf ( \"\" , \"\" ) ) ) assertEquals ( \"\"\"\"\"\" . trimIndent ( ) , compute ( listOf ( \"\" , \"\" , \"\" , \"\" , \"\" ) , listOf ( \"\" , \"\" , \"\" ) ) ) }","docstring":""} {"signature":"@ Test fun testDiffChange ( )","body":"{ assertEquals ( \"\"\"\"\"\" . trimIndent ( ) , compute ( listOf ( \"\" , \"\" ) , listOf ( \"\" , \"\" ) ) ) }","docstring":""} {"signature":"@ Test fun testDiffComplex ( )","body":"{ val oldLines = \"\"\"\"\"\" . trimIndent ( ) . lines ( ) val newLines = \"\"\"\"\"\" . trimIndent ( ) . lines ( ) val expectedDiff = \"\"\"\"\"\" . trimIndent ( ) assertEquals ( expectedDiff , compute ( oldLines , newLines ) ) }","docstring":""} {"signature":"@ Test fun testBigDiffNull ( )","body":"{ val n = val k = val rnd = Random ( ) fun rndLines ( ) = List ( n ) { buildString { repeat ( k ) { append ( '' + rnd . nextInt ( ) ) } } } val oldLines = rndLines ( ) val newLines = rndLines ( ) assertNull ( compute ( oldLines , newLines ) ) }","docstring":""} {"signature":"private fun shouldRandomlyFail ( ) : Boolean","body":"= ++ requestCount % == ","docstring":""} {"signature":"fun increaseSnackCount ( snackId : Long )","body":"{ if ( ! shouldRandomlyFail ( ) ) { val currentCount = _orderLines . value . first { it . snack . id == snackId } . count updateSnackCount ( snackId , currentCount + ) } else { snackbarManager . showMessage ( MppR . string . cart_increase_error ) } }","docstring":""} {"signature":"fun decreaseSnackCount ( snackId : Long )","body":"{ if ( ! shouldRandomlyFail ( ) ) { val currentCount = _orderLines . value . first { it . snack . id == snackId } . count if ( currentCount == ) { removeSnack ( snackId ) } else { updateSnackCount ( snackId , currentCount - ) } } else { snackbarManager . showMessage ( MppR . string . cart_decrease_error ) } }","docstring":""} {"signature":"fun removeSnack ( snackId : Long )","body":"{ _orderLines . value = _orderLines . value . filter { it . snack . id != snackId } }","docstring":""} {"signature":"private fun updateSnackCount ( snackId : Long , count : Int )","body":"{ _orderLines . value = _orderLines . value . map { if ( it . snack . id == snackId ) { it . copy ( count = count ) } else { it } } }","docstring":""} {"signature":"@ Composable fun collectOrderLinesAsState ( flow : StateFlow < List < OrderLine > > ) : State < List < OrderLine > >","body":"@ Composable fun collectOrderLinesAsState ( flow : StateFlow < List < OrderLine > > ) : State < List < OrderLine > >","docstring":""} {"signature":"override fun provideArguments ( context : ExtensionContext ? ) : Stream < out Arguments >","body":"{ return buildVersions . stream ( ) . map { Arguments . of ( it ) } }","docstring":""} {"signature":"@ BeforeTest override fun beforeEachTest ( )","body":"{ prepareProjectFiles ( ) copyAndApplyGitDiff ( projectDir . toPath ( ) , templateProjectDir . parent . resolve ( \"\" ) , ) projectDir . updateProjectLocalMavenDir ( ) }","docstring":""} {"signature":"@ ParameterizedTest ( name = \"\" ) @ ArgumentsSource ( SerializationBuildVersionsArgumentsProvider :: class ) fun execute ( buildVersions : BuildVersions )","body":"{ val result = createGradleRunner ( buildVersions , \"\" , \"\" , \"\" ) . buildRelaxed ( ) assertEquals ( TaskOutcome . SUCCESS , assertNotNull ( result . task ( \"\" ) ) . outcome ) assertTrue ( projectOutputLocation . isDirectory , \"\" ) projectOutputLocation . allHtmlFiles ( ) . forEach { file -> assertContainsNoErrorClass ( file ) assertNoUnresolvedLinks ( file ) assertNoEmptyLinks ( file ) assertNoEmptySpans ( file ) } }","docstring":""} {"signature":"fun main ( args : Array < String > )","body":"{ val x = args [ ] . toInt ( ) val y = if ( x in .. y - ) println ( \"\" ) for ( a in .. ) print ( \"\" ) println ( ) val array = mutableListOf < String > ( ) array . add ( \"\" ) array . add ( \"\" ) array . add ( \"\" ) if ( x !in .. array . size ) println ( \"\" ) if ( \"\" in array ) println ( \"\" ) if ( \"\" in array ) println ( \"\" ) else println ( \"\" ) }","docstring":""} {"signature":"abstract fun getScriptDefaultImports ( script : FirScript ) : List < FirImport >","body":"abstract fun getScriptDefaultImports ( script : FirScript ) : List < FirImport >","docstring":""} {"signature":"@ JsModule ( \"\" ) external fun foo ( y : Int ) : Int","body":"= definedExternally","docstring":""} {"signature":"fun box ( ) : String","body":"{ assertEquals ( , foo ( ) ) return \"\" }","docstring":""} {"signature":"override fun getContainingFile ( ) : SourceFile","body":"= SourceFile . NO_SOURCE_FILE","docstring":""} {"signature":"fun assertToString ( s : String , x : Any )","body":"{ assertEquals ( s , x . toString ( ) ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ assertToString ( \"\" , :: top ) assertToString ( \"\" , :: top2 ) assertToString ( \"\" , String :: ext ) assertToString ( \"\" , IntRange :: ext2 ) assertToString ( \"\" , A :: mem ) assertToString ( \"\" , B :: mem ) assertToString ( \"\" , :: top . getter ) assertToString ( \"\" , :: top2 . getter ) assertToString ( \"\" , :: top2 . setter ) assertToString ( \"\" , A :: mem . getter ) assertToString ( \"\" , B :: mem . getter ) assertToString ( \"\" , B :: mem . setter ) return \"\" }","docstring":""} {"signature":"override fun toString ( ) : String","body":"= \"\"","docstring":""} {"signature":"abstract fun getName ( ) : String","body":"abstract fun getName ( ) : String","docstring":""} {"signature":"override fun getName ( ) : String","body":"{ return \"\" }","docstring":""} {"signature":"fun box ( ) : String","body":"{ return A ( ClassDescriptorImpl ( ) ) . result }","docstring":""} {"signature":"fun less1 ( a : Double , b : Double )","body":"= a < b","docstring":""} {"signature":"fun less2 ( a : Double ? , b : Double ? )","body":"= a ! ! < b ! !","docstring":""} {"signature":"fun less3 ( a : Double ? , b : Double ? )","body":"= a != null && b != null && a < b","docstring":""} {"signature":"fun less4 ( a : Double ? , b : Double ? )","body":"= if ( a is Double && b is Double ) a < b else null ! !","docstring":""} {"signature":"fun less5 ( a : Any ? , b : Any ? )","body":"= if ( a is Double && b is Double ) a < b else null ! !","docstring":""} {"signature":"fun box ( ) : String","body":"{ if ( - < ) return \"\" if ( less1 ( - , ) ) return \"\" if ( less2 ( - , ) ) return \"\" if ( less3 ( - , ) ) return \"\" if ( less4 ( - , ) ) return \"\" if ( less5 ( - , ) ) return \"\" return \"\" }","docstring":""} {"signature":"public fun run ( )","body":"public fun run ( )","docstring":"/**\n * @suppress\n */"} {"signature":"@ Suppress ( \"\" ) public expect inline fun Runnable ( crossinline block : ( ) -> Unit ) : Runnable","body":"@ Suppress ( \"\" ) public expect inline fun Runnable ( crossinline block : ( ) -> Unit ) : Runnable","docstring":"/**\n * Creates [Runnable] task instance.\n */"} {"signature":"override fun build ( ) : FirScript","body":"{ return FirScriptImpl ( source , resolvePhase , annotations . toMutableOrEmpty ( ) , moduleData , origin , attributes , name , declarations , symbol , parameters , contextReceivers . toMutableOrEmpty ( ) , resultPropertyName , ) }","docstring":""} {"signature":"@ OptIn ( ExperimentalContracts :: class ) inline fun buildScript ( init : FirScriptBuilder . ( ) -> Unit ) : FirScript","body":"{ contract { callsInPlace ( init , InvocationKind . EXACTLY_ONCE ) } return FirScriptBuilder ( ) . apply ( init ) . build ( ) }","docstring":""} {"signature":"@ OptIn ( ExperimentalContracts :: class ) inline fun buildScriptCopy ( original : FirScript , init : FirScriptBuilder . ( ) -> Unit ) : FirScript","body":"{ contract { callsInPlace ( init , InvocationKind . EXACTLY_ONCE ) } val copyBuilder = FirScriptBuilder ( ) copyBuilder . source = original . source copyBuilder . resolvePhase = original . resolvePhase copyBuilder . annotations . addAll ( original . annotations ) copyBuilder . moduleData = original . moduleData copyBuilder . origin = original . origin copyBuilder . attributes = original . attributes . copy ( ) copyBuilder . name = original . name copyBuilder . declarations . addAll ( original . declarations ) copyBuilder . symbol = original . symbol copyBuilder . parameters . addAll ( original . parameters ) copyBuilder . contextReceivers . addAll ( original . contextReceivers ) copyBuilder . resultPropertyName = original . resultPropertyName return copyBuilder . apply ( init ) . build ( ) }","docstring":""} {"signature":"expect fun foo ( )","body":"expect fun foo ( )","docstring":""} {"signature":"actual fun foo ( )","body":"{ }","docstring":""} {"signature":"actual fun foo ( )","body":"{ }","docstring":""} {"signature":"inline fun foo ( block : ( ) -> Unit )","body":"{ block ( ) }","docstring":""} {"signature":"inline fun bar ( block1 : ( ) -> Unit , noinline block2 : ( ) -> Unit )","body":"{ block1 ( ) block2 ( ) }","docstring":""} {"signature":"inline fun baz ( crossinline block : ( ) -> Unit )","body":"{ block ( ) }","docstring":""} {"signature":"inline fun < T > Iterable < T > . myForEach ( action : ( T ) -> Unit ) : Unit","body":"{ for ( element in this ) action ( element ) }","docstring":""} {"signature":"fun test1 ( )","body":"{ { break } ( ) { continue } ( ) ( fun ( ) { break } ) ( ) ( fun ( ) { continue } ) ( ) foo { break } foo { continue } foo ( fun ( ) { break } ) foo ( fun ( ) { continue } ) }","docstring":""} {"signature":"fun test2 ( )","body":"{ L1 @ while ( true ) { { break@ERROR } ( ) { continue@ERROR } ( ) ( fun ( ) { break@ERROR } ) ( ) ( fun ( ) { continue@ERROR } ) ( ) foo { break@ERROR } foo { continue@ERROR } foo ( fun ( ) { break@ERROR } ) foo ( fun ( ) { continue@ERROR } ) } }","docstring":""} {"signature":"fun test3 ( )","body":"{ L1 @ while ( true ) { val lambda = { { break@L1 } ( ) { continue@L1 } ( ) ( fun ( ) { break@L1 } ) ( ) ( fun ( ) { continue@L1 } ) ( ) foo { break@L1 } foo { continue@L1 } foo ( fun ( ) { break@L1 } ) foo ( fun ( ) { continue@L1 } ) } } }","docstring":""} {"signature":"fun test4 ( )","body":"{ while ( { break } ( ) ) { } while ( { continue } ( ) ) { } while ( ( fun ( ) { break } ) ( ) ) { } while ( ( fun ( ) { continue } ) ( ) ) { } while ( foo { break } ) { } while ( foo { continue } ) { } while ( foo ( fun ( ) { break } ) ) { } while ( foo ( fun ( ) { continue } ) ) { } }","docstring":""} {"signature":"fun test5 ( )","body":"{ listOf ( , , ) . forEach { i -> if ( i == ) break } listOf ( , , ) . forEach { i -> if ( i == ) continue } listOf ( , , ) . forEach ( fun ( i : Int ) { if ( i == ) break } ) listOf ( , , ) . forEach ( fun ( i : Int ) { if ( i == ) continue } ) }","docstring":""} {"signature":"fun test6 ( )","body":"{ while ( true ) { bar ( { } , { break } ) bar ( { } , { continue } ) bar ( fun ( ) { } , fun ( ) { break } ) bar ( fun ( ) { } , fun ( ) { continue } ) } }","docstring":""} {"signature":"fun test7 ( )","body":"{ ( .. ) . myForEach { i -> if ( i == ) { break } } }","docstring":""} {"signature":"fun test8 ( )","body":"{ while ( true ) { baz ( { break } ) } }","docstring":""} {"signature":"fun add ( element : @ UnsafeVariance E ) : ImmutableCollection < E >","body":"fun add ( element : @ UnsafeVariance E ) : ImmutableCollection < E >","docstring":""} {"signature":"fun addAll ( elements : Collection < @ UnsafeVariance E > ) : ImmutableCollection < E >","body":"fun addAll ( elements : Collection < @ UnsafeVariance E > ) : ImmutableCollection < E >","docstring":""} {"signature":"fun remove ( element : @ UnsafeVariance E ) : ImmutableCollection < E >","body":"fun remove ( element : @ UnsafeVariance E ) : ImmutableCollection < E >","docstring":""} {"signature":"override fun contains ( element : E ) : Boolean","body":"{ throw UnsupportedOperationException ( \"\" ) }","docstring":""} {"signature":"override fun containsAll ( elements : Collection < E > ) : Boolean","body":"{ throw UnsupportedOperationException ( \"\" ) }","docstring":""} {"signature":"override fun isEmpty ( ) : Boolean","body":"{ throw UnsupportedOperationException ( \"\" ) }","docstring":""} {"signature":"override fun iterator ( ) : Iterator < E >","body":"{ throw UnsupportedOperationException ( \"\" ) }","docstring":""} {"signature":"override fun add ( element : E ) : ImmutableCollection < E >","body":"= this","docstring":""} {"signature":"override fun addAll ( elements : Collection < E > ) : ImmutableCollection < E >","body":"= this","docstring":""} {"signature":"override fun remove ( element : E ) : ImmutableCollection < E >","body":"= this","docstring":""} {"signature":"fun box ( ) : String","body":"{ val c = ImmutableCollectionmpl < String > ( ) if ( c . remove ( \"\" ) !== c ) return \"\" if ( c . add ( \"\" ) !== c ) return \"\" if ( c . addAll ( java . util . ArrayList ( ) ) !== c ) return \"\" val method = c . javaClass . methods . single { it . name == \"\" && it . returnType == Boolean :: class . javaPrimitiveType } try { method . invoke ( c , \"\" ) return \"\" } catch ( e : java . lang . reflect . InvocationTargetException ) { if ( e . cause ! ! . message != \"\" ) return \"\" } return \"\" }","docstring":""} {"signature":"fun thread ( block : ( ) -> Unit )","body":"{ val thread = object : Thread ( ) { override fun run ( ) { block ( ) } } thread . start ( ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val mtref = AtomicInteger ( ) val cdl = CountDownLatch ( ) for ( i in .. ) { thread { var current = do { current = synchronized ( mtref ) { val v = mtref . get ( ) + if ( v < ) mtref . set ( v + ) v } } while ( current < ) cdl . countDown ( ) } } cdl . await ( ) return if ( mtref . get ( ) == ) \"\" else mtref . get ( ) . toString ( ) }","docstring":""} {"signature":"internal fun interpretUnaryFunction ( name : String , type : String , a : Any ? ) : Any ?","body":"{ when ( name ) { \"\" -> when ( type ) { \"\" -> return ( a as Boolean ) . hashCode ( ) \"\" -> return ( a as Char ) . hashCode ( ) \"\" -> return ( a as Byte ) . hashCode ( ) \"\" -> return ( a as Short ) . hashCode ( ) \"\" -> return ( a as Int ) . hashCode ( ) \"\" -> return ( a as Float ) . hashCode ( ) \"\" -> return ( a as Long ) . hashCode ( ) \"\" -> return ( a as Double ) . hashCode ( ) \"\" -> return ( a as String ) . hashCode ( ) \"\" -> return ( a as Any ) . hashCode ( ) } \"\" -> when ( type ) { \"\" -> return ( a as Boolean ) . not ( ) } \"\" -> when ( type ) { \"\" -> return ( a as Boolean ) . toString ( ) \"\" -> return ( a as Char ) . toString ( ) \"\" -> return ( a as Byte ) . toString ( ) \"\" -> return ( a as Short ) . toString ( ) \"\" -> return ( a as Int ) . toString ( ) \"\" -> return ( a as Float ) . toString ( ) \"\" -> return ( a as Long ) . toString ( ) \"\" -> return ( a as Double ) . toString ( ) \"\" -> return ( a as String ) . toString ( ) \"\" -> return ( a as Any ) . toString ( ) \"\" -> return a ? . toString ( ) ? : \"\" \"\" -> return Unit . toString ( ) } \"\" -> when ( type ) { \"\" -> return ( a as Char ) . dec ( ) \"\" -> return ( a as Byte ) . dec ( ) \"\" -> return ( a as Short ) . dec ( ) \"\" -> return ( a as Int ) . dec ( ) \"\" -> return ( a as Float ) . dec ( ) \"\" -> return ( a as Long ) . dec ( ) \"\" -> return ( a as Double ) . dec ( ) } \"\" -> when ( type ) { \"\" -> return ( a as Char ) . inc ( ) \"\" -> return ( a as Byte ) . inc ( ) \"\" -> return ( a as Short ) . inc ( ) \"\" -> return ( a as Int ) . inc ( ) \"\" -> return ( a as Float ) . inc ( ) \"\" -> return ( a as Long ) . inc ( ) \"\" -> return ( a as Double ) . inc ( ) } \"\" -> when ( type ) { \"\" -> return ( a as Char ) . toByte ( ) \"\" -> return ( a as Byte ) . toByte ( ) \"\" -> return ( a as Short ) . toByte ( ) \"\" -> return ( a as Int ) . toByte ( ) \"\" -> return ( a as Float ) . toByte ( ) \"\" -> return ( a as Long ) . toByte ( ) \"\" -> return ( a as Double ) . toByte ( ) \"\" -> return ( a as Number ) . toByte ( ) } \"\" -> when ( type ) { \"\" -> return ( a as Char ) . toChar ( ) \"\" -> return ( a as Byte ) . toChar ( ) \"\" -> return ( a as Short ) . toChar ( ) \"\" -> return ( a as Int ) . toChar ( ) \"\" -> return ( a as Float ) . toChar ( ) \"\" -> return ( a as Long ) . toChar ( ) \"\" -> return ( a as Double ) . toChar ( ) \"\" -> return ( a as Number ) . toChar ( ) } \"\" -> when ( type ) { \"\" -> return ( a as Char ) . toDouble ( ) \"\" -> return ( a as Byte ) . toDouble ( ) \"\" -> return ( a as Short ) . toDouble ( ) \"\" -> return ( a as Int ) . toDouble ( ) \"\" -> return ( a as Float ) . toDouble ( ) \"\" -> return ( a as Long ) . toDouble ( ) \"\" -> return ( a as Double ) . toDouble ( ) \"\" -> return ( a as Number ) . toDouble ( ) } \"\" -> when ( type ) { \"\" -> return ( a as Char ) . toFloat ( ) \"\" -> return ( a as Byte ) . toFloat ( ) \"\" -> return ( a as Short ) . toFloat ( ) \"\" -> return ( a as Int ) . toFloat ( ) \"\" -> return ( a as Float ) . toFloat ( ) \"\" -> return ( a as Long ) . toFloat ( ) \"\" -> return ( a as Double ) . toFloat ( ) \"\" -> return ( a as Number ) . toFloat ( ) } \"\" -> when ( type ) { \"\" -> return ( a as Char ) . toInt ( ) \"\" -> return ( a as Byte ) . toInt ( ) \"\" -> return ( a as Short ) . toInt ( ) \"\" -> return ( a as Int ) . toInt ( ) \"\" -> return ( a as Float ) . toInt ( ) \"\" -> return ( a as Long ) . toInt ( ) \"\" -> return ( a as Double ) . toInt ( ) \"\" -> return ( a as Number ) . toInt ( ) } \"\" -> when ( type ) { \"\" -> return ( a as Char ) . toLong ( ) \"\" -> return ( a as Byte ) . toLong ( ) \"\" -> return ( a as Short ) . toLong ( ) \"\" -> return ( a as Int ) . toLong ( ) \"\" -> return ( a as Float ) . toLong ( ) \"\" -> return ( a as Long ) . toLong ( ) \"\" -> return ( a as Double ) . toLong ( ) \"\" -> return ( a as Number ) . toLong ( ) } \"\" -> when ( type ) { \"\" -> return ( a as Char ) . toShort ( ) \"\" -> return ( a as Byte ) . toShort ( ) \"\" -> return ( a as Short ) . toShort ( ) \"\" -> return ( a as Int ) . toShort ( ) \"\" -> return ( a as Float ) . toShort ( ) \"\" -> return ( a as Long ) . toShort ( ) \"\" -> return ( a as Double ) . toShort ( ) \"\" -> return ( a as Number ) . toShort ( ) } \"\" -> when ( type ) { \"\" -> return ( a as Byte ) . unaryMinus ( ) \"\" -> return ( a as Short ) . unaryMinus ( ) \"\" -> return ( a as Int ) . unaryMinus ( ) \"\" -> return ( a as Float ) . unaryMinus ( ) \"\" -> return ( a as Long ) . unaryMinus ( ) \"\" -> return ( a as Double ) . unaryMinus ( ) } \"\" -> when ( type ) { \"\" -> return ( a as Byte ) . unaryPlus ( ) \"\" -> return ( a as Short ) . unaryPlus ( ) \"\" -> return ( a as Int ) . unaryPlus ( ) \"\" -> return ( a as Float ) . unaryPlus ( ) \"\" -> return ( a as Long ) . unaryPlus ( ) \"\" -> return ( a as Double ) . unaryPlus ( ) } \"\" -> when ( type ) { \"\" -> return ( a as Int ) . inv ( ) \"\" -> return ( a as Long ) . inv ( ) } \"\" -> when ( type ) { \"\" -> return ( a as String ) . length \"\" -> return ( a as CharSequence ) . length } \"\" -> when ( type ) { \"\" -> return ( a as Throwable ) . cause } \"\" -> when ( type ) { \"\" -> return ( a as Throwable ) . message } \"\" -> when ( type ) { \"\" -> return ( a as BooleanArray ) . size \"\" -> return ( a as CharArray ) . size \"\" -> return ( a as ByteArray ) . size \"\" -> return ( a as ShortArray ) . size \"\" -> return ( a as IntArray ) . size \"\" -> return ( a as FloatArray ) . size \"\" -> return ( a as LongArray ) . size \"\" -> return ( a as DoubleArray ) . size \"\" -> return ( a as Array < Any ? > ) . size } \"\" -> when ( type ) { \"\" -> return ( a as BooleanArray ) . iterator ( ) \"\" -> return ( a as CharArray ) . iterator ( ) \"\" -> return ( a as ByteArray ) . iterator ( ) \"\" -> return ( a as ShortArray ) . iterator ( ) \"\" -> return ( a as IntArray ) . iterator ( ) \"\" -> return ( a as FloatArray ) . iterator ( ) \"\" -> return ( a as LongArray ) . iterator ( ) \"\" -> return ( a as DoubleArray ) . iterator ( ) \"\" -> return ( a as Array < Any ? > ) . iterator ( ) } \"\" -> when ( type ) { \"\" -> return a ! ! } \"\" -> when ( type ) { \"\" -> return ( a as Char ) . code } } throw InterpreterMethodNotFoundError ( \"\" ) }","docstring":"/** This file is generated by `./gradlew generateInterpreterMap`. DO NOT MODIFY MANUALLY */"} {"signature":"internal fun interpretBinaryFunction ( name : String , typeA : String , typeB : String , a : Any ? , b : Any ? ) : Any ?","body":"{ when ( name ) { \"\" -> when ( typeA ) { \"\" -> if ( typeB == \"\" ) return ( a as Boolean ) . and ( b as Boolean ) \"\" -> if ( typeB == \"\" ) return ( a as Int ) . and ( b as Int ) \"\" -> if ( typeB == \"\" ) return ( a as Long ) . and ( b as Long ) } \"\" -> when ( typeA ) { \"\" -> if ( typeB == \"\" ) return ( a as Boolean ) . compareTo ( b as Boolean ) \"\" -> if ( typeB == \"\" ) return ( a as Char ) . compareTo ( b as Char ) \"\" -> when ( typeB ) { \"\" -> return ( a as Byte ) . compareTo ( b as Byte ) \"\" -> return ( a as Byte ) . compareTo ( b as Double ) \"\" -> return ( a as Byte ) . compareTo ( b as Float ) \"\" -> return ( a as Byte ) . compareTo ( b as Int ) \"\" -> return ( a as Byte ) . compareTo ( b as Long ) \"\" -> return ( a as Byte ) . compareTo ( b as Short ) } \"\" -> when ( typeB ) { \"\" -> return ( a as Short ) . compareTo ( b as Byte ) \"\" -> return ( a as Short ) . compareTo ( b as Double ) \"\" -> return ( a as Short ) . compareTo ( b as Float ) \"\" -> return ( a as Short ) . compareTo ( b as Int ) \"\" -> return ( a as Short ) . compareTo ( b as Long ) \"\" -> return ( a as Short ) . compareTo ( b as Short ) } \"\" -> when ( typeB ) { \"\" -> return ( a as Int ) . compareTo ( b as Byte ) \"\" -> return ( a as Int ) . compareTo ( b as Double ) \"\" -> return ( a as Int ) . compareTo ( b as Float ) \"\" -> return ( a as Int ) . compareTo ( b as Int ) \"\" -> return ( a as Int ) . compareTo ( b as Long ) \"\" -> return ( a as Int ) . compareTo ( b as Short ) } \"\" -> when ( typeB ) { \"\" -> return ( a as Float ) . compareTo ( b as Byte ) \"\" -> return ( a as Float ) . compareTo ( b as Double ) \"\" -> return ( a as Float ) . compareTo ( b as Float ) \"\" -> return ( a as Float ) . compareTo ( b as Int ) \"\" -> return ( a as Float ) . compareTo ( b as Long ) \"\" -> return ( a as Float ) . compareTo ( b as Short ) } \"\" -> when ( typeB ) { \"\" -> return ( a as Long ) . compareTo ( b as Byte ) \"\" -> return ( a as Long ) . compareTo ( b as Double ) \"\" -> return ( a as Long ) . compareTo ( b as Float ) \"\" -> return ( a as Long ) . compareTo ( b as Int ) \"\" -> return ( a as Long ) . compareTo ( b as Long ) \"\" -> return ( a as Long ) . compareTo ( b as Short ) } \"\" -> when ( typeB ) { \"\" -> return ( a as Double ) . compareTo ( b as Byte ) \"\" -> return ( a as Double ) . compareTo ( b as Double ) \"\" -> return ( a as Double ) . compareTo ( b as Float ) \"\" -> return ( a as Double ) . compareTo ( b as Int ) \"\" -> return ( a as Double ) . compareTo ( b as Long ) \"\" -> return ( a as Double ) . compareTo ( b as Short ) } \"\" -> if ( typeB == \"\" ) return ( a as String ) . compareTo ( b as String ) \"\" -> if ( typeB == \"\" ) return ( a as Comparable < Any ? > ) . compareTo ( b ) } \"\" -> when ( typeA ) { \"\" -> if ( typeB == \"\" ) return ( a as Boolean ) . equals ( b ) \"\" -> if ( typeB == \"\" ) return ( a as Char ) . equals ( b ) \"\" -> if ( typeB == \"\" ) return ( a as Byte ) . equals ( b ) \"\" -> if ( typeB == \"\" ) return ( a as Short ) . equals ( b ) \"\" -> if ( typeB == \"\" ) return ( a as Int ) . equals ( b ) \"\" -> if ( typeB == \"\" ) return ( a as Float ) . equals ( b ) \"\" -> if ( typeB == \"\" ) return ( a as Long ) . equals ( b ) \"\" -> if ( typeB == \"\" ) return ( a as Double ) . equals ( b ) \"\" -> if ( typeB == \"\" ) return ( a as String ) . equals ( b ) \"\" -> if ( typeB == \"\" ) return ( a as Any ) . equals ( b ) } \"\" -> when ( typeA ) { \"\" -> if ( typeB == \"\" ) return ( a as Boolean ) . or ( b as Boolean ) \"\" -> if ( typeB == \"\" ) return ( a as Int ) . or ( b as Int ) \"\" -> if ( typeB == \"\" ) return ( a as Long ) . or ( b as Long ) } \"\" -> when ( typeA ) { \"\" -> if ( typeB == \"\" ) return ( a as Boolean ) . xor ( b as Boolean ) \"\" -> if ( typeB == \"\" ) return ( a as Int ) . xor ( b as Int ) \"\" -> if ( typeB == \"\" ) return ( a as Long ) . xor ( b as Long ) } \"\" -> when ( typeA ) { \"\" -> when ( typeB ) { \"\" -> return ( a as Char ) . minus ( b as Char ) \"\" -> return ( a as Char ) . minus ( b as Int ) } \"\" -> when ( typeB ) { \"\" -> return ( a as Byte ) . minus ( b as Byte ) \"\" -> return ( a as Byte ) . minus ( b as Double ) \"\" -> return ( a as Byte ) . minus ( b as Float ) \"\" -> return ( a as Byte ) . minus ( b as Int ) \"\" -> return ( a as Byte ) . minus ( b as Long ) \"\" -> return ( a as Byte ) . minus ( b as Short ) } \"\" -> when ( typeB ) { \"\" -> return ( a as Short ) . minus ( b as Byte ) \"\" -> return ( a as Short ) . minus ( b as Double ) \"\" -> return ( a as Short ) . minus ( b as Float ) \"\" -> return ( a as Short ) . minus ( b as Int ) \"\" -> return ( a as Short ) . minus ( b as Long ) \"\" -> return ( a as Short ) . minus ( b as Short ) } \"\" -> when ( typeB ) { \"\" -> return ( a as Int ) . minus ( b as Byte ) \"\" -> return ( a as Int ) . minus ( b as Double ) \"\" -> return ( a as Int ) . minus ( b as Float ) \"\" -> return ( a as Int ) . minus ( b as Int ) \"\" -> return ( a as Int ) . minus ( b as Long ) \"\" -> return ( a as Int ) . minus ( b as Short ) } \"\" -> when ( typeB ) { \"\" -> return ( a as Float ) . minus ( b as Byte ) \"\" -> return ( a as Float ) . minus ( b as Double ) \"\" -> return ( a as Float ) . minus ( b as Float ) \"\" -> return ( a as Float ) . minus ( b as Int ) \"\" -> return ( a as Float ) . minus ( b as Long ) \"\" -> return ( a as Float ) . minus ( b as Short ) } \"\" -> when ( typeB ) { \"\" -> return ( a as Long ) . minus ( b as Byte ) \"\" -> return ( a as Long ) . minus ( b as Double ) \"\" -> return ( a as Long ) . minus ( b as Float ) \"\" -> return ( a as Long ) . minus ( b as Int ) \"\" -> return ( a as Long ) . minus ( b as Long ) \"\" -> return ( a as Long ) . minus ( b as Short ) } \"\" -> when ( typeB ) { \"\" -> return ( a as Double ) . minus ( b as Byte ) \"\" -> return ( a as Double ) . minus ( b as Double ) \"\" -> return ( a as Double ) . minus ( b as Float ) \"\" -> return ( a as Double ) . minus ( b as Int ) \"\" -> return ( a as Double ) . minus ( b as Long ) \"\" -> return ( a as Double ) . minus ( b as Short ) } } \"\" -> when ( typeA ) { \"\" -> if ( typeB == \"\" ) return ( a as Char ) . plus ( b as Int ) \"\" -> when ( typeB ) { \"\" -> return ( a as Byte ) . plus ( b as Byte ) \"\" -> return ( a as Byte ) . plus ( b as Double ) \"\" -> return ( a as Byte ) . plus ( b as Float ) \"\" -> return ( a as Byte ) . plus ( b as Int ) \"\" -> return ( a as Byte ) . plus ( b as Long ) \"\" -> return ( a as Byte ) . plus ( b as Short ) } \"\" -> when ( typeB ) { \"\" -> return ( a as Short ) . plus ( b as Byte ) \"\" -> return ( a as Short ) . plus ( b as Double ) \"\" -> return ( a as Short ) . plus ( b as Float ) \"\" -> return ( a as Short ) . plus ( b as Int ) \"\" -> return ( a as Short ) . plus ( b as Long ) \"\" -> return ( a as Short ) . plus ( b as Short ) } \"\" -> when ( typeB ) { \"\" -> return ( a as Int ) . plus ( b as Byte ) \"\" -> return ( a as Int ) . plus ( b as Double ) \"\" -> return ( a as Int ) . plus ( b as Float ) \"\" -> return ( a as Int ) . plus ( b as Int ) \"\" -> return ( a as Int ) . plus ( b as Long ) \"\" -> return ( a as Int ) . plus ( b as Short ) } \"\" -> when ( typeB ) { \"\" -> return ( a as Float ) . plus ( b as Byte ) \"\" -> return ( a as Float ) . plus ( b as Double ) \"\" -> return ( a as Float ) . plus ( b as Float ) \"\" -> return ( a as Float ) . plus ( b as Int ) \"\" -> return ( a as Float ) . plus ( b as Long ) \"\" -> return ( a as Float ) . plus ( b as Short ) } \"\" -> when ( typeB ) { \"\" -> return ( a as Long ) . plus ( b as Byte ) \"\" -> return ( a as Long ) . plus ( b as Double ) \"\" -> return ( a as Long ) . plus ( b as Float ) \"\" -> return ( a as Long ) . plus ( b as Int ) \"\" -> return ( a as Long ) . plus ( b as Long ) \"\" -> return ( a as Long ) . plus ( b as Short ) } \"\" -> when ( typeB ) { \"\" -> return ( a as Double ) . plus ( b as Byte ) \"\" -> return ( a as Double ) . plus ( b as Double ) \"\" -> return ( a as Double ) . plus ( b as Float ) \"\" -> return ( a as Double ) . plus ( b as Int ) \"\" -> return ( a as Double ) . plus ( b as Long ) \"\" -> return ( a as Double ) . plus ( b as Short ) } \"\" -> if ( typeB == \"\" ) return ( a as String ) . plus ( b ) } \"\" -> when ( typeA ) { \"\" -> if ( typeB == \"\" ) return ( a as Char ) . rangeTo ( b as Char ) \"\" -> when ( typeB ) { \"\" -> return ( a as Byte ) . rangeTo ( b as Byte ) \"\" -> return ( a as Byte ) . rangeTo ( b as Int ) \"\" -> return ( a as Byte ) . rangeTo ( b as Long ) \"\" -> return ( a as Byte ) . rangeTo ( b as Short ) } \"\" -> when ( typeB ) { \"\" -> return ( a as Short ) . rangeTo ( b as Byte ) \"\" -> return ( a as Short ) . rangeTo ( b as Int ) \"\" -> return ( a as Short ) . rangeTo ( b as Long ) \"\" -> return ( a as Short ) . rangeTo ( b as Short ) } \"\" -> when ( typeB ) { \"\" -> return ( a as Int ) . rangeTo ( b as Byte ) \"\" -> return ( a as Int ) . rangeTo ( b as Int ) \"\" -> return ( a as Int ) . rangeTo ( b as Long ) \"\" -> return ( a as Int ) . rangeTo ( b as Short ) } \"\" -> when ( typeB ) { \"\" -> return ( a as Long ) . rangeTo ( b as Byte ) \"\" -> return ( a as Long ) . rangeTo ( b as Int ) \"\" -> return ( a as Long ) . rangeTo ( b as Long ) \"\" -> return ( a as Long ) . rangeTo ( b as Short ) } } \"\" -> when ( typeA ) { \"\" -> when ( typeB ) { \"\" -> return ( a as Byte ) . div ( b as Byte ) \"\" -> return ( a as Byte ) . div ( b as Double ) \"\" -> return ( a as Byte ) . div ( b as Float ) \"\" -> return ( a as Byte ) . div ( b as Int ) \"\" -> return ( a as Byte ) . div ( b as Long ) \"\" -> return ( a as Byte ) . div ( b as Short ) } \"\" -> when ( typeB ) { \"\" -> return ( a as Short ) . div ( b as Byte ) \"\" -> return ( a as Short ) . div ( b as Double ) \"\" -> return ( a as Short ) . div ( b as Float ) \"\" -> return ( a as Short ) . div ( b as Int ) \"\" -> return ( a as Short ) . div ( b as Long ) \"\" -> return ( a as Short ) . div ( b as Short ) } \"\" -> when ( typeB ) { \"\" -> return ( a as Int ) . div ( b as Byte ) \"\" -> return ( a as Int ) . div ( b as Double ) \"\" -> return ( a as Int ) . div ( b as Float ) \"\" -> return ( a as Int ) . div ( b as Int ) \"\" -> return ( a as Int ) . div ( b as Long ) \"\" -> return ( a as Int ) . div ( b as Short ) } \"\" -> when ( typeB ) { \"\" -> return ( a as Float ) . div ( b as Byte ) \"\" -> return ( a as Float ) . div ( b as Double ) \"\" -> return ( a as Float ) . div ( b as Float ) \"\" -> return ( a as Float ) . div ( b as Int ) \"\" -> return ( a as Float ) . div ( b as Long ) \"\" -> return ( a as Float ) . div ( b as Short ) } \"\" -> when ( typeB ) { \"\" -> return ( a as Long ) . div ( b as Byte ) \"\" -> return ( a as Long ) . div ( b as Double ) \"\" -> return ( a as Long ) . div ( b as Float ) \"\" -> return ( a as Long ) . div ( b as Int ) \"\" -> return ( a as Long ) . div ( b as Long ) \"\" -> return ( a as Long ) . div ( b as Short ) } \"\" -> when ( typeB ) { \"\" -> return ( a as Double ) . div ( b as Byte ) \"\" -> return ( a as Double ) . div ( b as Double ) \"\" -> return ( a as Double ) . div ( b as Float ) \"\" -> return ( a as Double ) . div ( b as Int ) \"\" -> return ( a as Double ) . div ( b as Long ) \"\" -> return ( a as Double ) . div ( b as Short ) } } \"\" -> when ( typeA ) { \"\" -> when ( typeB ) { \"\" -> return ( a as Byte ) . rem ( b as Byte ) \"\" -> return ( a as Byte ) . rem ( b as Double ) \"\" -> return ( a as Byte ) . rem ( b as Float ) \"\" -> return ( a as Byte ) . rem ( b as Int ) \"\" -> return ( a as Byte ) . rem ( b as Long ) \"\" -> return ( a as Byte ) . rem ( b as Short ) } \"\" -> when ( typeB ) { \"\" -> return ( a as Short ) . rem ( b as Byte ) \"\" -> return ( a as Short ) . rem ( b as Double ) \"\" -> return ( a as Short ) . rem ( b as Float ) \"\" -> return ( a as Short ) . rem ( b as Int ) \"\" -> return ( a as Short ) . rem ( b as Long ) \"\" -> return ( a as Short ) . rem ( b as Short ) } \"\" -> when ( typeB ) { \"\" -> return ( a as Int ) . rem ( b as Byte ) \"\" -> return ( a as Int ) . rem ( b as Double ) \"\" -> return ( a as Int ) . rem ( b as Float ) \"\" -> return ( a as Int ) . rem ( b as Int ) \"\" -> return ( a as Int ) . rem ( b as Long ) \"\" -> return ( a as Int ) . rem ( b as Short ) } \"\" -> when ( typeB ) { \"\" -> return ( a as Float ) . rem ( b as Byte ) \"\" -> return ( a as Float ) . rem ( b as Double ) \"\" -> return ( a as Float ) . rem ( b as Float ) \"\" -> return ( a as Float ) . rem ( b as Int ) \"\" -> return ( a as Float ) . rem ( b as Long ) \"\" -> return ( a as Float ) . rem ( b as Short ) } \"\" -> when ( typeB ) { \"\" -> return ( a as Long ) . rem ( b as Byte ) \"\" -> return ( a as Long ) . rem ( b as Double ) \"\" -> return ( a as Long ) . rem ( b as Float ) \"\" -> return ( a as Long ) . rem ( b as Int ) \"\" -> return ( a as Long ) . rem ( b as Long ) \"\" -> return ( a as Long ) . rem ( b as Short ) } \"\" -> when ( typeB ) { \"\" -> return ( a as Double ) . rem ( b as Byte ) \"\" -> return ( a as Double ) . rem ( b as Double ) \"\" -> return ( a as Double ) . rem ( b as Float ) \"\" -> return ( a as Double ) . rem ( b as Int ) \"\" -> return ( a as Double ) . rem ( b as Long ) \"\" -> return ( a as Double ) . rem ( b as Short ) } } \"\" -> when ( typeA ) { \"\" -> when ( typeB ) { \"\" -> return ( a as Byte ) . times ( b as Byte ) \"\" -> return ( a as Byte ) . times ( b as Double ) \"\" -> return ( a as Byte ) . times ( b as Float ) \"\" -> return ( a as Byte ) . times ( b as Int ) \"\" -> return ( a as Byte ) . times ( b as Long ) \"\" -> return ( a as Byte ) . times ( b as Short ) } \"\" -> when ( typeB ) { \"\" -> return ( a as Short ) . times ( b as Byte ) \"\" -> return ( a as Short ) . times ( b as Double ) \"\" -> return ( a as Short ) . times ( b as Float ) \"\" -> return ( a as Short ) . times ( b as Int ) \"\" -> return ( a as Short ) . times ( b as Long ) \"\" -> return ( a as Short ) . times ( b as Short ) } \"\" -> when ( typeB ) { \"\" -> return ( a as Int ) . times ( b as Byte ) \"\" -> return ( a as Int ) . times ( b as Double ) \"\" -> return ( a as Int ) . times ( b as Float ) \"\" -> return ( a as Int ) . times ( b as Int ) \"\" -> return ( a as Int ) . times ( b as Long ) \"\" -> return ( a as Int ) . times ( b as Short ) } \"\" -> when ( typeB ) { \"\" -> return ( a as Float ) . times ( b as Byte ) \"\" -> return ( a as Float ) . times ( b as Double ) \"\" -> return ( a as Float ) . times ( b as Float ) \"\" -> return ( a as Float ) . times ( b as Int ) \"\" -> return ( a as Float ) . times ( b as Long ) \"\" -> return ( a as Float ) . times ( b as Short ) } \"\" -> when ( typeB ) { \"\" -> return ( a as Long ) . times ( b as Byte ) \"\" -> return ( a as Long ) . times ( b as Double ) \"\" -> return ( a as Long ) . times ( b as Float ) \"\" -> return ( a as Long ) . times ( b as Int ) \"\" -> return ( a as Long ) . times ( b as Long ) \"\" -> return ( a as Long ) . times ( b as Short ) } \"\" -> when ( typeB ) { \"\" -> return ( a as Double ) . times ( b as Byte ) \"\" -> return ( a as Double ) . times ( b as Double ) \"\" -> return ( a as Double ) . times ( b as Float ) \"\" -> return ( a as Double ) . times ( b as Int ) \"\" -> return ( a as Double ) . times ( b as Long ) \"\" -> return ( a as Double ) . times ( b as Short ) } } \"\" -> when ( typeA ) { \"\" -> if ( typeB == \"\" ) return ( a as Int ) . shl ( b as Int ) \"\" -> if ( typeB == \"\" ) return ( a as Long ) . shl ( b as Int ) } \"\" -> when ( typeA ) { \"\" -> if ( typeB == \"\" ) return ( a as Int ) . shr ( b as Int ) \"\" -> if ( typeB == \"\" ) return ( a as Long ) . shr ( b as Int ) } \"\" -> when ( typeA ) { \"\" -> if ( typeB == \"\" ) return ( a as Int ) . ushr ( b as Int ) \"\" -> if ( typeB == \"\" ) return ( a as Long ) . ushr ( b as Int ) } \"\" -> when ( typeA ) { \"\" -> if ( typeB == \"\" ) return ( a as String ) . get ( b as Int ) \"\" -> if ( typeB == \"\" ) return ( a as CharSequence ) . get ( b as Int ) \"\" -> if ( typeB == \"\" ) return ( a as BooleanArray ) . get ( b as Int ) \"\" -> if ( typeB == \"\" ) return ( a as CharArray ) . get ( b as Int ) \"\" -> if ( typeB == \"\" ) return ( a as ByteArray ) . get ( b as Int ) \"\" -> if ( typeB == \"\" ) return ( a as ShortArray ) . get ( b as Int ) \"\" -> if ( typeB == \"\" ) return ( a as IntArray ) . get ( b as Int ) \"\" -> if ( typeB == \"\" ) return ( a as FloatArray ) . get ( b as Int ) \"\" -> if ( typeB == \"\" ) return ( a as LongArray ) . get ( b as Int ) \"\" -> if ( typeB == \"\" ) return ( a as DoubleArray ) . get ( b as Int ) \"\" -> if ( typeB == \"\" ) return ( a as Array < Any ? > ) . get ( b as Int ) } \"\" -> when ( typeA ) { \"\" -> if ( typeB == \"\" ) return ( a as Char ) < ( b as Char ) \"\" -> if ( typeB == \"\" ) return ( a as Byte ) < ( b as Byte ) \"\" -> if ( typeB == \"\" ) return ( a as Short ) < ( b as Short ) \"\" -> if ( typeB == \"\" ) return ( a as Int ) < ( b as Int ) \"\" -> if ( typeB == \"\" ) return ( a as Float ) < ( b as Float ) \"\" -> if ( typeB == \"\" ) return ( a as Long ) < ( b as Long ) \"\" -> if ( typeB == \"\" ) return ( a as Double ) < ( b as Double ) } \"\" -> when ( typeA ) { \"\" -> if ( typeB == \"\" ) return ( a as Char ) <= ( b as Char ) \"\" -> if ( typeB == \"\" ) return ( a as Byte ) <= ( b as Byte ) \"\" -> if ( typeB == \"\" ) return ( a as Short ) <= ( b as Short ) \"\" -> if ( typeB == \"\" ) return ( a as Int ) <= ( b as Int ) \"\" -> if ( typeB == \"\" ) return ( a as Float ) <= ( b as Float ) \"\" -> if ( typeB == \"\" ) return ( a as Long ) <= ( b as Long ) \"\" -> if ( typeB == \"\" ) return ( a as Double ) <= ( b as Double ) } \"\" -> when ( typeA ) { \"\" -> if ( typeB == \"\" ) return ( a as Char ) > ( b as Char ) \"\" -> if ( typeB == \"\" ) return ( a as Byte ) > ( b as Byte ) \"\" -> if ( typeB == \"\" ) return ( a as Short ) > ( b as Short ) \"\" -> if ( typeB == \"\" ) return ( a as Int ) > ( b as Int ) \"\" -> if ( typeB == \"\" ) return ( a as Float ) > ( b as Float ) \"\" -> if ( typeB == \"\" ) return ( a as Long ) > ( b as Long ) \"\" -> if ( typeB == \"\" ) return ( a as Double ) > ( b as Double ) } \"\" -> when ( typeA ) { \"\" -> if ( typeB == \"\" ) return ( a as Char ) >= ( b as Char ) \"\" -> if ( typeB == \"\" ) return ( a as Byte ) >= ( b as Byte ) \"\" -> if ( typeB == \"\" ) return ( a as Short ) >= ( b as Short ) \"\" -> if ( typeB == \"\" ) return ( a as Int ) >= ( b as Int ) \"\" -> if ( typeB == \"\" ) return ( a as Float ) >= ( b as Float ) \"\" -> if ( typeB == \"\" ) return ( a as Long ) >= ( b as Long ) \"\" -> if ( typeB == \"\" ) return ( a as Double ) >= ( b as Double ) } \"\" -> when ( typeA ) { \"\" -> if ( typeB == \"\" ) return a == b } \"\" -> when ( typeA ) { \"\" -> if ( typeB == \"\" ) return if ( a is Proxy && b is Proxy ) a . state === b . state else a === b } \"\" -> when ( typeA ) { \"\" -> if ( typeB == \"\" ) return ( a as Float ? ) == ( b as Float ? ) \"\" -> if ( typeB == \"\" ) return ( a as Double ? ) == ( b as Double ? ) } \"\" -> when ( typeA ) { \"\" -> if ( typeB == \"\" ) return ( a as Boolean ) && ( b as Boolean ) } \"\" -> when ( typeA ) { \"\" -> if ( typeB == \"\" ) return ( a as Boolean ) || ( b as Boolean ) } \"\" -> when ( typeA ) { \"\" -> when ( typeB ) { \"\" -> return ( a as Byte ) . mod ( b as Byte ) \"\" -> return ( a as Byte ) . mod ( b as Short ) \"\" -> return ( a as Byte ) . mod ( b as Int ) \"\" -> return ( a as Byte ) . mod ( b as Long ) } \"\" -> when ( typeB ) { \"\" -> return ( a as Short ) . mod ( b as Byte ) \"\" -> return ( a as Short ) . mod ( b as Short ) \"\" -> return ( a as Short ) . mod ( b as Int ) \"\" -> return ( a as Short ) . mod ( b as Long ) } \"\" -> when ( typeB ) { \"\" -> return ( a as Int ) . mod ( b as Byte ) \"\" -> return ( a as Int ) . mod ( b as Short ) \"\" -> return ( a as Int ) . mod ( b as Int ) \"\" -> return ( a as Int ) . mod ( b as Long ) } \"\" -> when ( typeB ) { \"\" -> return ( a as Long ) . mod ( b as Byte ) \"\" -> return ( a as Long ) . mod ( b as Short ) \"\" -> return ( a as Long ) . mod ( b as Int ) \"\" -> return ( a as Long ) . mod ( b as Long ) } \"\" -> when ( typeB ) { \"\" -> return ( a as Float ) . mod ( b as Float ) \"\" -> return ( a as Float ) . mod ( b as Double ) } \"\" -> when ( typeB ) { \"\" -> return ( a as Double ) . mod ( b as Float ) \"\" -> return ( a as Double ) . mod ( b as Double ) } } \"\" -> when ( typeA ) { \"\" -> when ( typeB ) { \"\" -> return ( a as Byte ) . floorDiv ( b as Byte ) \"\" -> return ( a as Byte ) . floorDiv ( b as Short ) \"\" -> return ( a as Byte ) . floorDiv ( b as Int ) \"\" -> return ( a as Byte ) . floorDiv ( b as Long ) } \"\" -> when ( typeB ) { \"\" -> return ( a as Short ) . floorDiv ( b as Byte ) \"\" -> return ( a as Short ) . floorDiv ( b as Short ) \"\" -> return ( a as Short ) . floorDiv ( b as Int ) \"\" -> return ( a as Short ) . floorDiv ( b as Long ) } \"\" -> when ( typeB ) { \"\" -> return ( a as Int ) . floorDiv ( b as Byte ) \"\" -> return ( a as Int ) . floorDiv ( b as Short ) \"\" -> return ( a as Int ) . floorDiv ( b as Int ) \"\" -> return ( a as Int ) . floorDiv ( b as Long ) } \"\" -> when ( typeB ) { \"\" -> return ( a as Long ) . floorDiv ( b as Byte ) \"\" -> return ( a as Long ) . floorDiv ( b as Short ) \"\" -> return ( a as Long ) . floorDiv ( b as Int ) \"\" -> return ( a as Long ) . floorDiv ( b as Long ) } } } throw InterpreterMethodNotFoundError ( \"\" ) }","docstring":""} {"signature":"internal fun interpretTernaryFunction ( name : String , typeA : String , typeB : String , typeC : String , a : Any ? , b : Any ? , c : Any ? ) : Any","body":"{ when ( name ) { \"\" -> when ( typeA ) { \"\" -> if ( typeB == \"\" && typeC == \"\" ) return ( a as String ) . subSequence ( b as Int , c as Int ) \"\" -> if ( typeB == \"\" && typeC == \"\" ) return ( a as CharSequence ) . subSequence ( b as Int , c as Int ) } \"\" -> when ( typeA ) { \"\" -> if ( typeB == \"\" && typeC == \"\" ) return ( a as BooleanArray ) . set ( b as Int , c as Boolean ) \"\" -> if ( typeB == \"\" && typeC == \"\" ) return ( a as CharArray ) . set ( b as Int , c as Char ) \"\" -> if ( typeB == \"\" && typeC == \"\" ) return ( a as ByteArray ) . set ( b as Int , c as Byte ) \"\" -> if ( typeB == \"\" && typeC == \"\" ) return ( a as ShortArray ) . set ( b as Int , c as Short ) \"\" -> if ( typeB == \"\" && typeC == \"\" ) return ( a as IntArray ) . set ( b as Int , c as Int ) \"\" -> if ( typeB == \"\" && typeC == \"\" ) return ( a as FloatArray ) . set ( b as Int , c as Float ) \"\" -> if ( typeB == \"\" && typeC == \"\" ) return ( a as LongArray ) . set ( b as Int , c as Long ) \"\" -> if ( typeB == \"\" && typeC == \"\" ) return ( a as DoubleArray ) . set ( b as Int , c as Double ) \"\" -> if ( typeB == \"\" && typeC == \"\" ) return ( a as Array < Any ? > ) . set ( b as Int , c ) } } throw InterpreterMethodNotFoundError ( \"\" ) }","docstring":""} {"signature":"override fun getBoundedValue ( codegen : ExpressionCodegen )","body":"= BoundedValue ( lowBound = codegen . generateCallSingleArgument ( rangeCall ) . coerceToRangeElementTypeIfRequired ( ) , highBound = codegen . generateCallReceiver ( rangeCall ) . coerceToRangeElementTypeIfRequired ( ) )","docstring":""} {"signature":"override fun createForLoopGenerator ( codegen : ExpressionCodegen , forExpression : KtForExpression )","body":"= createConstBoundedForInDownToGenerator ( codegen , forExpression ) ? : ForInSimpleProgressionLoopGenerator . fromBoundedValueWithStepMinus1 ( codegen , forExpression , getBoundedValue ( codegen ) , getComparisonGeneratorForKotlinType ( elementKotlinType ) )","docstring":""} {"signature":"override fun createForInReversedLoopGenerator ( codegen : ExpressionCodegen , forExpression : KtForExpression )","body":"= createConstBoundedForInReversedDownToGenerator ( codegen , forExpression ) ? : ForInSimpleProgressionLoopGenerator . fromBoundedValueWithStep1 ( codegen , forExpression , getBoundedValue ( codegen ) , getComparisonGeneratorForKotlinType ( elementKotlinType ) , inverseBoundsEvaluationOrder = true )","docstring":""} {"signature":"private fun createConstBoundedForInDownToGenerator ( codegen : ExpressionCodegen , forExpression : KtForExpression ) : ForLoopGenerator ?","body":"{ val endExpression = rangeCall . getFirstArgumentExpression ( ) ? : return null return createConstBoundedForLoopGeneratorOrNull ( codegen , forExpression , codegen . generateCallReceiver ( rangeCall ) , endExpression , - ) }","docstring":""} {"signature":"private fun createConstBoundedForInReversedDownToGenerator ( codegen : ExpressionCodegen , forExpression : KtForExpression ) : ForLoopGenerator ?","body":"{ val endExpression = rangeCall . getReceiverExpression ( ) ? : return null return createConstBoundedForLoopGeneratorOrNull ( codegen , forExpression , codegen . generateCallSingleArgument ( rangeCall ) , endExpression , ) }","docstring":""} {"signature":"open fun inheritAnnotationInfo ( parent : AbstractAnnotationDeserializer )","body":"{ }","docstring":""} {"signature":"fun loadClassAnnotations ( classProto : ProtoBuf . Class , nameResolver : NameResolver ) : List < FirAnnotation >","body":"{ if ( ! Flags . HAS_ANNOTATIONS . get ( classProto . flags ) ) return emptyList ( ) val annotations = classProto . getExtension ( protocol . classAnnotation ) . orEmpty ( ) return annotations . map { deserializeAnnotation ( it , nameResolver ) } }","docstring":""} {"signature":"fun loadTypeAliasAnnotations ( aliasProto : ProtoBuf . TypeAlias , nameResolver : NameResolver ) : List < FirAnnotation >","body":"{ if ( ! Flags . HAS_ANNOTATIONS . get ( aliasProto . flags ) ) return emptyList ( ) return aliasProto . annotationList . map { deserializeAnnotation ( it , nameResolver ) } }","docstring":""} {"signature":"open fun loadFunctionAnnotations ( containerSource : DeserializedContainerSource ? , functionProto : ProtoBuf . Function , nameResolver : NameResolver , typeTable : TypeTable ) : List < FirAnnotation >","body":"{ if ( ! Flags . HAS_ANNOTATIONS . get ( functionProto . flags ) ) return emptyList ( ) val annotations = functionProto . getExtension ( protocol . functionAnnotation ) . orEmpty ( ) return annotations . map { deserializeAnnotation ( it , nameResolver ) } }","docstring":""} {"signature":"open fun loadPropertyAnnotations ( containerSource : DeserializedContainerSource ? , propertyProto : ProtoBuf . Property , containingClassProto : ProtoBuf . Class ? , nameResolver : NameResolver , typeTable : TypeTable ) : List < FirAnnotation >","body":"{ if ( ! Flags . HAS_ANNOTATIONS . get ( propertyProto . flags ) ) return emptyList ( ) val annotations = propertyProto . getExtension ( protocol . propertyAnnotation ) . orEmpty ( ) return annotations . map { deserializeAnnotation ( it , nameResolver , AnnotationUseSiteTarget . PROPERTY ) } }","docstring":""} {"signature":"open fun loadPropertyBackingFieldAnnotations ( containerSource : DeserializedContainerSource ? , propertyProto : ProtoBuf . Property , nameResolver : NameResolver , typeTable : TypeTable ) : List < FirAnnotation >","body":"{ return emptyList ( ) }","docstring":""} {"signature":"open fun loadPropertyDelegatedFieldAnnotations ( containerSource : DeserializedContainerSource ? , propertyProto : ProtoBuf . Property , nameResolver : NameResolver , typeTable : TypeTable ) : List < FirAnnotation >","body":"{ return emptyList ( ) }","docstring":""} {"signature":"open fun loadPropertyGetterAnnotations ( containerSource : DeserializedContainerSource ? , propertyProto : ProtoBuf . Property , nameResolver : NameResolver , typeTable : TypeTable , getterFlags : Int ) : List < FirAnnotation >","body":"{ if ( ! Flags . HAS_ANNOTATIONS . get ( getterFlags ) ) return emptyList ( ) val annotations = propertyProto . getExtension ( protocol . propertyGetterAnnotation ) . orEmpty ( ) return annotations . map { deserializeAnnotation ( it , nameResolver , AnnotationUseSiteTarget . PROPERTY_GETTER ) } }","docstring":""} {"signature":"open fun loadPropertySetterAnnotations ( containerSource : DeserializedContainerSource ? , propertyProto : ProtoBuf . Property , nameResolver : NameResolver , typeTable : TypeTable , setterFlags : Int ) : List < FirAnnotation >","body":"{ if ( ! Flags . HAS_ANNOTATIONS . get ( setterFlags ) ) return emptyList ( ) val annotations = propertyProto . getExtension ( protocol . propertySetterAnnotation ) . orEmpty ( ) return annotations . map { deserializeAnnotation ( it , nameResolver , AnnotationUseSiteTarget . PROPERTY_SETTER ) } }","docstring":""} {"signature":"open fun loadConstructorAnnotations ( containerSource : DeserializedContainerSource ? , constructorProto : ProtoBuf . Constructor , nameResolver : NameResolver , typeTable : TypeTable ) : List < FirAnnotation >","body":"{ if ( ! Flags . HAS_ANNOTATIONS . get ( constructorProto . flags ) ) return emptyList ( ) val annotations = constructorProto . getExtension ( protocol . constructorAnnotation ) . orEmpty ( ) return annotations . map { deserializeAnnotation ( it , nameResolver ) } }","docstring":""} {"signature":"open fun loadValueParameterAnnotations ( containerSource : DeserializedContainerSource ? , callableProto : MessageLite , valueParameterProto : ProtoBuf . ValueParameter , classProto : ProtoBuf . Class ? , nameResolver : NameResolver , typeTable : TypeTable , kind : CallableKind , parameterIndex : Int ) : List < FirAnnotation >","body":"{ if ( ! Flags . HAS_ANNOTATIONS . get ( valueParameterProto . flags ) ) return emptyList ( ) val annotations = valueParameterProto . getExtension ( protocol . parameterAnnotation ) . orEmpty ( ) return annotations . map { deserializeAnnotation ( it , nameResolver ) } }","docstring":""} {"signature":"open fun loadExtensionReceiverParameterAnnotations ( containerSource : DeserializedContainerSource ? , callableProto : MessageLite , nameResolver : NameResolver , typeTable : TypeTable , kind : CallableKind ) : List < FirAnnotation >","body":"{ return emptyList ( ) }","docstring":""} {"signature":"open fun loadAnnotationPropertyDefaultValue ( containerSource : DeserializedContainerSource ? , propertyProto : ProtoBuf . Property , expectedPropertyType : FirTypeRef , nameResolver : NameResolver , typeTable : TypeTable ) : FirExpression ?","body":"{ return null }","docstring":""} {"signature":"abstract fun loadTypeAnnotations ( typeProto : ProtoBuf . Type , nameResolver : NameResolver ) : List < FirAnnotation >","body":"abstract fun loadTypeAnnotations ( typeProto : ProtoBuf . Type , nameResolver : NameResolver ) : List < FirAnnotation >","docstring":""} {"signature":"open fun loadTypeParameterAnnotations ( typeParameterProto : ProtoBuf . TypeParameter , nameResolver : NameResolver )","body":"= emptyList < FirAnnotation > ( )","docstring":""} {"signature":"fun deserializeAnnotation ( proto : ProtoBuf . Annotation , nameResolver : NameResolver , useSiteTarget : AnnotationUseSiteTarget ? = null ) : FirAnnotation","body":"{ val classId = nameResolver . getClassId ( proto . id ) return buildAnnotation { annotationTypeRef = buildResolvedTypeRef { type = classId . toLookupTag ( ) . constructClassType ( ConeTypeProjection . EMPTY_ARRAY , isNullable = false ) } session . lazyDeclarationResolver . disableLazyResolveContractChecksInside { this . argumentMapping = createArgumentMapping ( proto , classId , nameResolver ) } useSiteTarget ? . let { this . useSiteTarget = it } } }","docstring":""} {"signature":"private fun createArgumentMapping ( proto : ProtoBuf . Annotation , classId : ClassId , nameResolver : NameResolver ) : FirAnnotationArgumentMapping","body":"{ return buildAnnotationArgumentMapping build @ { if ( proto . argumentCount == ) return@build val parameterByName : Map < Name , FirValueParameter > ? by lazy ( LazyThreadSafetyMode . NONE ) { val lookupTag = classId . toLookupTag ( ) val symbol = lookupTag . toSymbol ( session ) val firAnnotationClass = ( symbol as? FirRegularClassSymbol ) ? . fir ? : return@lazy null val classScope = firAnnotationClass . defaultType ( ) . scope ( useSiteSession = session , scopeSession = ScopeSession ( ) , callableCopyTypeCalculator = CallableCopyTypeCalculator . DoNothing , requiredMembersPhase = null , ) ? : error ( \"\" ) val constructor = classScope . getDeclaredConstructors ( ) . singleOrNull ( ) ? . fir ? : error ( \"\" ) constructor . valueParameters . associateBy { it . name } } proto . argumentList . mapNotNull { val name = nameResolver . getName ( it . nameId ) val value = resolveValue ( it . value , nameResolver ) { parameterByName ? . get ( name ) ? . returnTypeRef ? . coneType } name to value } . toMap ( mapping ) } }","docstring":""} {"signature":"private fun resolveValue ( value : ProtoBuf . Annotation . Argument . Value , nameResolver : NameResolver , expectedType : ( ) -> ConeKotlinType ? ) : FirExpression","body":"{ val isUnsigned = Flags . IS_UNSIGNED . get ( value . flags ) return when ( value . type ) { BYTE -> { val kind = if ( isUnsigned ) ConstantValueKind . UnsignedByte else ConstantValueKind . Byte const ( kind , value . intValue . toByte ( ) , session . builtinTypes . byteType ) } SHORT -> { val kind = if ( isUnsigned ) ConstantValueKind . UnsignedShort else ConstantValueKind . Short const ( kind , value . intValue . toShort ( ) , session . builtinTypes . shortType ) } INT -> { val kind = if ( isUnsigned ) ConstantValueKind . UnsignedInt else ConstantValueKind . Int const ( kind , value . intValue . toInt ( ) , session . builtinTypes . intType ) } LONG -> { val kind = if ( isUnsigned ) ConstantValueKind . UnsignedLong else ConstantValueKind . Long const ( kind , value . intValue , session . builtinTypes . longType ) } CHAR -> const ( ConstantValueKind . Char , value . intValue . toInt ( ) . toChar ( ) , session . builtinTypes . charType ) FLOAT -> const ( ConstantValueKind . Float , value . floatValue , session . builtinTypes . floatType ) DOUBLE -> const ( ConstantValueKind . Double , value . doubleValue , session . builtinTypes . doubleType ) BOOLEAN -> const ( ConstantValueKind . Boolean , ( value . intValue != ) , session . builtinTypes . booleanType ) STRING -> const ( ConstantValueKind . String , nameResolver . getString ( value . stringValue ) , session . builtinTypes . stringType ) ANNOTATION -> deserializeAnnotation ( value . annotation , nameResolver ) CLASS -> buildGetClassCall { val classId = nameResolver . getClassId ( value . classId ) val lookupTag = classId . toLookupTag ( ) val referencedType = lookupTag . constructType ( emptyArray ( ) , isNullable = false ) val resolvedType = StandardClassIds . KClass . constructClassLikeType ( arrayOf ( referencedType ) , false ) argumentList = buildUnaryArgumentList ( buildClassReferenceExpression { classTypeRef = buildResolvedTypeRef { type = referencedType } coneTypeOrNull = resolvedType } ) coneTypeOrNull = resolvedType } ENUM -> buildEnumEntryDeserializedAccessExpression { enumClassId = nameResolver . getClassId ( value . classId ) enumEntryName = nameResolver . getName ( value . enumValueId ) } ARRAY -> { val expectedArrayElementType = expectedType ( ) ? . arrayElementType ( ) ? : session . builtinTypes . anyType . type buildArrayLiteral { argumentList = buildArgumentList { value . arrayElementList . mapTo ( arguments ) { resolveValue ( it , nameResolver ) { expectedArrayElementType } } } coneTypeOrNull = expectedArrayElementType . createArrayType ( ) } } else -> error ( \"\" ) } }","docstring":""} {"signature":"private fun < T > const ( kind : ConstantValueKind < T > , value : T , typeRef : FirResolvedTypeRef ) : FirLiteralExpression < T >","body":"{ return buildLiteralExpression ( null , kind , value , setType = true ) . apply { this . replaceConeTypeOrNull ( typeRef . coneType ) } }","docstring":""} {"signature":"fun testCommon ( base : Base )","body":"{ val x = when ( base ) { is A -> B -> } }","docstring":""} {"signature":"fun testPlatform ( base : Base )","body":"{ val x = when ( base ) { is A -> B -> } }","docstring":""} {"signature":"fun box ( )","body":"= \"\"","docstring":""} {"signature":"fun < T1 > Tuple1 < T1 > . splitAt0 ( ) : Tuple2 < EmptyTuple , Tuple1 < T1 > >","body":"= Tuple2 < EmptyTuple , Tuple1 < T1 > > ( EmptyTuple , Tuple1 < T1 > ( this . _1 ( ) ) )","docstring":"/**\n * Given a tuple `t(a1, ..., am)`, returns a [Tuple2] of the tuple `t(a1, ..., an)`\n * consisting of the first n elements, and the tuple `t(an+1, ..., am)` consisting\n * of the remaining elements.\n * Splitting at 0 or at n results in `t(t(), myTuple)` or `t(myTuple, t())` respectively.\n *\n * For example:\n * ```kotlin\n * t(1, 2, 3, 4, 5).splitAt2() == t(t(1, 2), t(3, 4, 5))\n * ```\n */"} {"signature":"fun < T1 > Tuple1 < T1 > . splitAt1 ( ) : Tuple2 < Tuple1 < T1 > , EmptyTuple >","body":"= Tuple2 < Tuple1 < T1 > , EmptyTuple > ( Tuple1 < T1 > ( this . _1 ( ) ) , EmptyTuple )","docstring":""} {"signature":"fun < T1 , T2 > Tuple2 < T1 , T2 > . splitAt0 ( ) : Tuple2 < EmptyTuple , Tuple2 < T1 , T2 > >","body":"= Tuple2 < EmptyTuple , Tuple2 < T1 , T2 > > ( EmptyTuple , Tuple2 < T1 , T2 > ( this . _1 ( ) , this . _2 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 > Tuple2 < T1 , T2 > . splitAt1 ( ) : Tuple2 < Tuple1 < T1 > , Tuple1 < T2 > >","body":"= Tuple2 < Tuple1 < T1 > , Tuple1 < T2 > > ( Tuple1 < T1 > ( this . _1 ( ) ) , Tuple1 < T2 > ( this . _2 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 > Tuple2 < T1 , T2 > . splitAt2 ( ) : Tuple2 < Tuple2 < T1 , T2 > , EmptyTuple >","body":"= Tuple2 < Tuple2 < T1 , T2 > , EmptyTuple > ( Tuple2 < T1 , T2 > ( this . _1 ( ) , this . _2 ( ) ) , EmptyTuple )","docstring":""} {"signature":"fun < T1 , T2 , T3 > Tuple3 < T1 , T2 , T3 > . splitAt0 ( ) : Tuple2 < EmptyTuple , Tuple3 < T1 , T2 , T3 > >","body":"= Tuple2 < EmptyTuple , Tuple3 < T1 , T2 , T3 > > ( EmptyTuple , Tuple3 < T1 , T2 , T3 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 > Tuple3 < T1 , T2 , T3 > . splitAt1 ( ) : Tuple2 < Tuple1 < T1 > , Tuple2 < T2 , T3 > >","body":"= Tuple2 < Tuple1 < T1 > , Tuple2 < T2 , T3 > > ( Tuple1 < T1 > ( this . _1 ( ) ) , Tuple2 < T2 , T3 > ( this . _2 ( ) , this . _3 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 > Tuple3 < T1 , T2 , T3 > . splitAt2 ( ) : Tuple2 < Tuple2 < T1 , T2 > , Tuple1 < T3 > >","body":"= Tuple2 < Tuple2 < T1 , T2 > , Tuple1 < T3 > > ( Tuple2 < T1 , T2 > ( this . _1 ( ) , this . _2 ( ) ) , Tuple1 < T3 > ( this . _3 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 > Tuple3 < T1 , T2 , T3 > . splitAt3 ( ) : Tuple2 < Tuple3 < T1 , T2 , T3 > , EmptyTuple >","body":"= Tuple2 < Tuple3 < T1 , T2 , T3 > , EmptyTuple > ( Tuple3 < T1 , T2 , T3 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) ) , EmptyTuple )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 > Tuple4 < T1 , T2 , T3 , T4 > . splitAt0 ( ) : Tuple2 < EmptyTuple , Tuple4 < T1 , T2 , T3 , T4 > >","body":"= Tuple2 < EmptyTuple , Tuple4 < T1 , T2 , T3 , T4 > > ( EmptyTuple , Tuple4 < T1 , T2 , T3 , T4 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 > Tuple4 < T1 , T2 , T3 , T4 > . splitAt1 ( ) : Tuple2 < Tuple1 < T1 > , Tuple3 < T2 , T3 , T4 > >","body":"= Tuple2 < Tuple1 < T1 > , Tuple3 < T2 , T3 , T4 > > ( Tuple1 < T1 > ( this . _1 ( ) ) , Tuple3 < T2 , T3 , T4 > ( this . _2 ( ) , this . _3 ( ) , this . _4 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 > Tuple4 < T1 , T2 , T3 , T4 > . splitAt2 ( ) : Tuple2 < Tuple2 < T1 , T2 > , Tuple2 < T3 , T4 > >","body":"= Tuple2 < Tuple2 < T1 , T2 > , Tuple2 < T3 , T4 > > ( Tuple2 < T1 , T2 > ( this . _1 ( ) , this . _2 ( ) ) , Tuple2 < T3 , T4 > ( this . _3 ( ) , this . _4 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 > Tuple4 < T1 , T2 , T3 , T4 > . splitAt3 ( ) : Tuple2 < Tuple3 < T1 , T2 , T3 > , Tuple1 < T4 > >","body":"= Tuple2 < Tuple3 < T1 , T2 , T3 > , Tuple1 < T4 > > ( Tuple3 < T1 , T2 , T3 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) ) , Tuple1 < T4 > ( this . _4 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 > Tuple4 < T1 , T2 , T3 , T4 > . splitAt4 ( ) : Tuple2 < Tuple4 < T1 , T2 , T3 , T4 > , EmptyTuple >","body":"= Tuple2 < Tuple4 < T1 , T2 , T3 , T4 > , EmptyTuple > ( Tuple4 < T1 , T2 , T3 , T4 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) ) , EmptyTuple )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 > Tuple5 < T1 , T2 , T3 , T4 , T5 > . splitAt0 ( ) : Tuple2 < EmptyTuple , Tuple5 < T1 , T2 , T3 , T4 , T5 > >","body":"= Tuple2 < EmptyTuple , Tuple5 < T1 , T2 , T3 , T4 , T5 > > ( EmptyTuple , Tuple5 < T1 , T2 , T3 , T4 , T5 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 > Tuple5 < T1 , T2 , T3 , T4 , T5 > . splitAt1 ( ) : Tuple2 < Tuple1 < T1 > , Tuple4 < T2 , T3 , T4 , T5 > >","body":"= Tuple2 < Tuple1 < T1 > , Tuple4 < T2 , T3 , T4 , T5 > > ( Tuple1 < T1 > ( this . _1 ( ) ) , Tuple4 < T2 , T3 , T4 , T5 > ( this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 > Tuple5 < T1 , T2 , T3 , T4 , T5 > . splitAt2 ( ) : Tuple2 < Tuple2 < T1 , T2 > , Tuple3 < T3 , T4 , T5 > >","body":"= Tuple2 < Tuple2 < T1 , T2 > , Tuple3 < T3 , T4 , T5 > > ( Tuple2 < T1 , T2 > ( this . _1 ( ) , this . _2 ( ) ) , Tuple3 < T3 , T4 , T5 > ( this . _3 ( ) , this . _4 ( ) , this . _5 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 > Tuple5 < T1 , T2 , T3 , T4 , T5 > . splitAt3 ( ) : Tuple2 < Tuple3 < T1 , T2 , T3 > , Tuple2 < T4 , T5 > >","body":"= Tuple2 < Tuple3 < T1 , T2 , T3 > , Tuple2 < T4 , T5 > > ( Tuple3 < T1 , T2 , T3 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) ) , Tuple2 < T4 , T5 > ( this . _4 ( ) , this . _5 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 > Tuple5 < T1 , T2 , T3 , T4 , T5 > . splitAt4 ( ) : Tuple2 < Tuple4 < T1 , T2 , T3 , T4 > , Tuple1 < T5 > >","body":"= Tuple2 < Tuple4 < T1 , T2 , T3 , T4 > , Tuple1 < T5 > > ( Tuple4 < T1 , T2 , T3 , T4 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) ) , Tuple1 < T5 > ( this . _5 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 > Tuple5 < T1 , T2 , T3 , T4 , T5 > . splitAt5 ( ) : Tuple2 < Tuple5 < T1 , T2 , T3 , T4 , T5 > , EmptyTuple >","body":"= Tuple2 < Tuple5 < T1 , T2 , T3 , T4 , T5 > , EmptyTuple > ( Tuple5 < T1 , T2 , T3 , T4 , T5 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) ) , EmptyTuple )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 > Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > . splitAt0 ( ) : Tuple2 < EmptyTuple , Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > >","body":"= Tuple2 < EmptyTuple , Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > > ( EmptyTuple , Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 > Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > . splitAt1 ( ) : Tuple2 < Tuple1 < T1 > , Tuple5 < T2 , T3 , T4 , T5 , T6 > >","body":"= Tuple2 < Tuple1 < T1 > , Tuple5 < T2 , T3 , T4 , T5 , T6 > > ( Tuple1 < T1 > ( this . _1 ( ) ) , Tuple5 < T2 , T3 , T4 , T5 , T6 > ( this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 > Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > . splitAt2 ( ) : Tuple2 < Tuple2 < T1 , T2 > , Tuple4 < T3 , T4 , T5 , T6 > >","body":"= Tuple2 < Tuple2 < T1 , T2 > , Tuple4 < T3 , T4 , T5 , T6 > > ( Tuple2 < T1 , T2 > ( this . _1 ( ) , this . _2 ( ) ) , Tuple4 < T3 , T4 , T5 , T6 > ( this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 > Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > . splitAt3 ( ) : Tuple2 < Tuple3 < T1 , T2 , T3 > , Tuple3 < T4 , T5 , T6 > >","body":"= Tuple2 < Tuple3 < T1 , T2 , T3 > , Tuple3 < T4 , T5 , T6 > > ( Tuple3 < T1 , T2 , T3 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) ) , Tuple3 < T4 , T5 , T6 > ( this . _4 ( ) , this . _5 ( ) , this . _6 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 > Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > . splitAt4 ( ) : Tuple2 < Tuple4 < T1 , T2 , T3 , T4 > , Tuple2 < T5 , T6 > >","body":"= Tuple2 < Tuple4 < T1 , T2 , T3 , T4 > , Tuple2 < T5 , T6 > > ( Tuple4 < T1 , T2 , T3 , T4 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) ) , Tuple2 < T5 , T6 > ( this . _5 ( ) , this . _6 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 > Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > . splitAt5 ( ) : Tuple2 < Tuple5 < T1 , T2 , T3 , T4 , T5 > , Tuple1 < T6 > >","body":"= Tuple2 < Tuple5 < T1 , T2 , T3 , T4 , T5 > , Tuple1 < T6 > > ( Tuple5 < T1 , T2 , T3 , T4 , T5 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) ) , Tuple1 < T6 > ( this . _6 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 > Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > . splitAt6 ( ) : Tuple2 < Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > , EmptyTuple >","body":"= Tuple2 < Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > , EmptyTuple > ( Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) ) , EmptyTuple )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 > Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > . splitAt0 ( ) : Tuple2 < EmptyTuple , Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > >","body":"= Tuple2 < EmptyTuple , Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > > ( EmptyTuple , Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 > Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > . splitAt1 ( ) : Tuple2 < Tuple1 < T1 > , Tuple6 < T2 , T3 , T4 , T5 , T6 , T7 > >","body":"= Tuple2 < Tuple1 < T1 > , Tuple6 < T2 , T3 , T4 , T5 , T6 , T7 > > ( Tuple1 < T1 > ( this . _1 ( ) ) , Tuple6 < T2 , T3 , T4 , T5 , T6 , T7 > ( this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 > Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > . splitAt2 ( ) : Tuple2 < Tuple2 < T1 , T2 > , Tuple5 < T3 , T4 , T5 , T6 , T7 > >","body":"= Tuple2 < Tuple2 < T1 , T2 > , Tuple5 < T3 , T4 , T5 , T6 , T7 > > ( Tuple2 < T1 , T2 > ( this . _1 ( ) , this . _2 ( ) ) , Tuple5 < T3 , T4 , T5 , T6 , T7 > ( this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 > Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > . splitAt3 ( ) : Tuple2 < Tuple3 < T1 , T2 , T3 > , Tuple4 < T4 , T5 , T6 , T7 > >","body":"= Tuple2 < Tuple3 < T1 , T2 , T3 > , Tuple4 < T4 , T5 , T6 , T7 > > ( Tuple3 < T1 , T2 , T3 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) ) , Tuple4 < T4 , T5 , T6 , T7 > ( this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 > Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > . splitAt4 ( ) : Tuple2 < Tuple4 < T1 , T2 , T3 , T4 > , Tuple3 < T5 , T6 , T7 > >","body":"= Tuple2 < Tuple4 < T1 , T2 , T3 , T4 > , Tuple3 < T5 , T6 , T7 > > ( Tuple4 < T1 , T2 , T3 , T4 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) ) , Tuple3 < T5 , T6 , T7 > ( this . _5 ( ) , this . _6 ( ) , this . _7 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 > Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > . splitAt5 ( ) : Tuple2 < Tuple5 < T1 , T2 , T3 , T4 , T5 > , Tuple2 < T6 , T7 > >","body":"= Tuple2 < Tuple5 < T1 , T2 , T3 , T4 , T5 > , Tuple2 < T6 , T7 > > ( Tuple5 < T1 , T2 , T3 , T4 , T5 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) ) , Tuple2 < T6 , T7 > ( this . _6 ( ) , this . _7 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 > Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > . splitAt6 ( ) : Tuple2 < Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > , Tuple1 < T7 > >","body":"= Tuple2 < Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > , Tuple1 < T7 > > ( Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) ) , Tuple1 < T7 > ( this . _7 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 > Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > . splitAt7 ( ) : Tuple2 < Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > , EmptyTuple >","body":"= Tuple2 < Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > , EmptyTuple > ( Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) ) , EmptyTuple )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > . splitAt0 ( ) : Tuple2 < EmptyTuple , Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > >","body":"= Tuple2 < EmptyTuple , Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > > ( EmptyTuple , Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > . splitAt1 ( ) : Tuple2 < Tuple1 < T1 > , Tuple7 < T2 , T3 , T4 , T5 , T6 , T7 , T8 > >","body":"= Tuple2 < Tuple1 < T1 > , Tuple7 < T2 , T3 , T4 , T5 , T6 , T7 , T8 > > ( Tuple1 < T1 > ( this . _1 ( ) ) , Tuple7 < T2 , T3 , T4 , T5 , T6 , T7 , T8 > ( this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > . splitAt2 ( ) : Tuple2 < Tuple2 < T1 , T2 > , Tuple6 < T3 , T4 , T5 , T6 , T7 , T8 > >","body":"= Tuple2 < Tuple2 < T1 , T2 > , Tuple6 < T3 , T4 , T5 , T6 , T7 , T8 > > ( Tuple2 < T1 , T2 > ( this . _1 ( ) , this . _2 ( ) ) , Tuple6 < T3 , T4 , T5 , T6 , T7 , T8 > ( this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > . splitAt3 ( ) : Tuple2 < Tuple3 < T1 , T2 , T3 > , Tuple5 < T4 , T5 , T6 , T7 , T8 > >","body":"= Tuple2 < Tuple3 < T1 , T2 , T3 > , Tuple5 < T4 , T5 , T6 , T7 , T8 > > ( Tuple3 < T1 , T2 , T3 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) ) , Tuple5 < T4 , T5 , T6 , T7 , T8 > ( this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > . splitAt4 ( ) : Tuple2 < Tuple4 < T1 , T2 , T3 , T4 > , Tuple4 < T5 , T6 , T7 , T8 > >","body":"= Tuple2 < Tuple4 < T1 , T2 , T3 , T4 > , Tuple4 < T5 , T6 , T7 , T8 > > ( Tuple4 < T1 , T2 , T3 , T4 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) ) , Tuple4 < T5 , T6 , T7 , T8 > ( this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > . splitAt5 ( ) : Tuple2 < Tuple5 < T1 , T2 , T3 , T4 , T5 > , Tuple3 < T6 , T7 , T8 > >","body":"= Tuple2 < Tuple5 < T1 , T2 , T3 , T4 , T5 > , Tuple3 < T6 , T7 , T8 > > ( Tuple5 < T1 , T2 , T3 , T4 , T5 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) ) , Tuple3 < T6 , T7 , T8 > ( this . _6 ( ) , this . _7 ( ) , this . _8 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > . splitAt6 ( ) : Tuple2 < Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > , Tuple2 < T7 , T8 > >","body":"= Tuple2 < Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > , Tuple2 < T7 , T8 > > ( Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) ) , Tuple2 < T7 , T8 > ( this . _7 ( ) , this . _8 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > . splitAt7 ( ) : Tuple2 < Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > , Tuple1 < T8 > >","body":"= Tuple2 < Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > , Tuple1 < T8 > > ( Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) ) , Tuple1 < T8 > ( this . _8 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > . splitAt8 ( ) : Tuple2 < Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > , EmptyTuple >","body":"= Tuple2 < Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > , EmptyTuple > ( Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) ) , EmptyTuple )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > . splitAt0 ( ) : Tuple2 < EmptyTuple , Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > >","body":"= Tuple2 < EmptyTuple , Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > > ( EmptyTuple , Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > . splitAt1 ( ) : Tuple2 < Tuple1 < T1 > , Tuple8 < T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > >","body":"= Tuple2 < Tuple1 < T1 > , Tuple8 < T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > > ( Tuple1 < T1 > ( this . _1 ( ) ) , Tuple8 < T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > ( this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > . splitAt2 ( ) : Tuple2 < Tuple2 < T1 , T2 > , Tuple7 < T3 , T4 , T5 , T6 , T7 , T8 , T9 > >","body":"= Tuple2 < Tuple2 < T1 , T2 > , Tuple7 < T3 , T4 , T5 , T6 , T7 , T8 , T9 > > ( Tuple2 < T1 , T2 > ( this . _1 ( ) , this . _2 ( ) ) , Tuple7 < T3 , T4 , T5 , T6 , T7 , T8 , T9 > ( this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > . splitAt3 ( ) : Tuple2 < Tuple3 < T1 , T2 , T3 > , Tuple6 < T4 , T5 , T6 , T7 , T8 , T9 > >","body":"= Tuple2 < Tuple3 < T1 , T2 , T3 > , Tuple6 < T4 , T5 , T6 , T7 , T8 , T9 > > ( Tuple3 < T1 , T2 , T3 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) ) , Tuple6 < T4 , T5 , T6 , T7 , T8 , T9 > ( this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > . splitAt4 ( ) : Tuple2 < Tuple4 < T1 , T2 , T3 , T4 > , Tuple5 < T5 , T6 , T7 , T8 , T9 > >","body":"= Tuple2 < Tuple4 < T1 , T2 , T3 , T4 > , Tuple5 < T5 , T6 , T7 , T8 , T9 > > ( Tuple4 < T1 , T2 , T3 , T4 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) ) , Tuple5 < T5 , T6 , T7 , T8 , T9 > ( this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > . splitAt5 ( ) : Tuple2 < Tuple5 < T1 , T2 , T3 , T4 , T5 > , Tuple4 < T6 , T7 , T8 , T9 > >","body":"= Tuple2 < Tuple5 < T1 , T2 , T3 , T4 , T5 > , Tuple4 < T6 , T7 , T8 , T9 > > ( Tuple5 < T1 , T2 , T3 , T4 , T5 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) ) , Tuple4 < T6 , T7 , T8 , T9 > ( this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > . splitAt6 ( ) : Tuple2 < Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > , Tuple3 < T7 , T8 , T9 > >","body":"= Tuple2 < Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > , Tuple3 < T7 , T8 , T9 > > ( Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) ) , Tuple3 < T7 , T8 , T9 > ( this . _7 ( ) , this . _8 ( ) , this . _9 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > . splitAt7 ( ) : Tuple2 < Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > , Tuple2 < T8 , T9 > >","body":"= Tuple2 < Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > , Tuple2 < T8 , T9 > > ( Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) ) , Tuple2 < T8 , T9 > ( this . _8 ( ) , this . _9 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > . splitAt8 ( ) : Tuple2 < Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > , Tuple1 < T9 > >","body":"= Tuple2 < Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > , Tuple1 < T9 > > ( Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) ) , Tuple1 < T9 > ( this . _9 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > . splitAt9 ( ) : Tuple2 < Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > , EmptyTuple >","body":"= Tuple2 < Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > , EmptyTuple > ( Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) ) , EmptyTuple )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > . splitAt0 ( ) : Tuple2 < EmptyTuple , Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > >","body":"= Tuple2 < EmptyTuple , Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > > ( EmptyTuple , Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > . splitAt1 ( ) : Tuple2 < Tuple1 < T1 > , Tuple9 < T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > >","body":"= Tuple2 < Tuple1 < T1 > , Tuple9 < T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > > ( Tuple1 < T1 > ( this . _1 ( ) ) , Tuple9 < T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > ( this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > . splitAt2 ( ) : Tuple2 < Tuple2 < T1 , T2 > , Tuple8 < T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > >","body":"= Tuple2 < Tuple2 < T1 , T2 > , Tuple8 < T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > > ( Tuple2 < T1 , T2 > ( this . _1 ( ) , this . _2 ( ) ) , Tuple8 < T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > ( this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > . splitAt3 ( ) : Tuple2 < Tuple3 < T1 , T2 , T3 > , Tuple7 < T4 , T5 , T6 , T7 , T8 , T9 , T10 > >","body":"= Tuple2 < Tuple3 < T1 , T2 , T3 > , Tuple7 < T4 , T5 , T6 , T7 , T8 , T9 , T10 > > ( Tuple3 < T1 , T2 , T3 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) ) , Tuple7 < T4 , T5 , T6 , T7 , T8 , T9 , T10 > ( this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > . splitAt4 ( ) : Tuple2 < Tuple4 < T1 , T2 , T3 , T4 > , Tuple6 < T5 , T6 , T7 , T8 , T9 , T10 > >","body":"= Tuple2 < Tuple4 < T1 , T2 , T3 , T4 > , Tuple6 < T5 , T6 , T7 , T8 , T9 , T10 > > ( Tuple4 < T1 , T2 , T3 , T4 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) ) , Tuple6 < T5 , T6 , T7 , T8 , T9 , T10 > ( this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > . splitAt5 ( ) : Tuple2 < Tuple5 < T1 , T2 , T3 , T4 , T5 > , Tuple5 < T6 , T7 , T8 , T9 , T10 > >","body":"= Tuple2 < Tuple5 < T1 , T2 , T3 , T4 , T5 > , Tuple5 < T6 , T7 , T8 , T9 , T10 > > ( Tuple5 < T1 , T2 , T3 , T4 , T5 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) ) , Tuple5 < T6 , T7 , T8 , T9 , T10 > ( this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > . splitAt6 ( ) : Tuple2 < Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > , Tuple4 < T7 , T8 , T9 , T10 > >","body":"= Tuple2 < Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > , Tuple4 < T7 , T8 , T9 , T10 > > ( Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) ) , Tuple4 < T7 , T8 , T9 , T10 > ( this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > . splitAt7 ( ) : Tuple2 < Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > , Tuple3 < T8 , T9 , T10 > >","body":"= Tuple2 < Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > , Tuple3 < T8 , T9 , T10 > > ( Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) ) , Tuple3 < T8 , T9 , T10 > ( this . _8 ( ) , this . _9 ( ) , this . _10 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > . splitAt8 ( ) : Tuple2 < Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > , Tuple2 < T9 , T10 > >","body":"= Tuple2 < Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > , Tuple2 < T9 , T10 > > ( Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) ) , Tuple2 < T9 , T10 > ( this . _9 ( ) , this . _10 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > . splitAt9 ( ) : Tuple2 < Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > , Tuple1 < T10 > >","body":"= Tuple2 < Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > , Tuple1 < T10 > > ( Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) ) , Tuple1 < T10 > ( this . _10 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > . splitAt10 ( ) : Tuple2 < Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > , EmptyTuple >","body":"= Tuple2 < Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > , EmptyTuple > ( Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) ) , EmptyTuple )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > . splitAt0 ( ) : Tuple2 < EmptyTuple , Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > >","body":"= Tuple2 < EmptyTuple , Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > > ( EmptyTuple , Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > . splitAt1 ( ) : Tuple2 < Tuple1 < T1 > , Tuple10 < T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > >","body":"= Tuple2 < Tuple1 < T1 > , Tuple10 < T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > > ( Tuple1 < T1 > ( this . _1 ( ) ) , Tuple10 < T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > ( this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > . splitAt2 ( ) : Tuple2 < Tuple2 < T1 , T2 > , Tuple9 < T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > >","body":"= Tuple2 < Tuple2 < T1 , T2 > , Tuple9 < T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > > ( Tuple2 < T1 , T2 > ( this . _1 ( ) , this . _2 ( ) ) , Tuple9 < T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > ( this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > . splitAt3 ( ) : Tuple2 < Tuple3 < T1 , T2 , T3 > , Tuple8 < T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > >","body":"= Tuple2 < Tuple3 < T1 , T2 , T3 > , Tuple8 < T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > > ( Tuple3 < T1 , T2 , T3 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) ) , Tuple8 < T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > ( this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > . splitAt4 ( ) : Tuple2 < Tuple4 < T1 , T2 , T3 , T4 > , Tuple7 < T5 , T6 , T7 , T8 , T9 , T10 , T11 > >","body":"= Tuple2 < Tuple4 < T1 , T2 , T3 , T4 > , Tuple7 < T5 , T6 , T7 , T8 , T9 , T10 , T11 > > ( Tuple4 < T1 , T2 , T3 , T4 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) ) , Tuple7 < T5 , T6 , T7 , T8 , T9 , T10 , T11 > ( this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > . splitAt5 ( ) : Tuple2 < Tuple5 < T1 , T2 , T3 , T4 , T5 > , Tuple6 < T6 , T7 , T8 , T9 , T10 , T11 > >","body":"= Tuple2 < Tuple5 < T1 , T2 , T3 , T4 , T5 > , Tuple6 < T6 , T7 , T8 , T9 , T10 , T11 > > ( Tuple5 < T1 , T2 , T3 , T4 , T5 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) ) , Tuple6 < T6 , T7 , T8 , T9 , T10 , T11 > ( this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > . splitAt6 ( ) : Tuple2 < Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > , Tuple5 < T7 , T8 , T9 , T10 , T11 > >","body":"= Tuple2 < Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > , Tuple5 < T7 , T8 , T9 , T10 , T11 > > ( Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) ) , Tuple5 < T7 , T8 , T9 , T10 , T11 > ( this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > . splitAt7 ( ) : Tuple2 < Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > , Tuple4 < T8 , T9 , T10 , T11 > >","body":"= Tuple2 < Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > , Tuple4 < T8 , T9 , T10 , T11 > > ( Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) ) , Tuple4 < T8 , T9 , T10 , T11 > ( this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > . splitAt8 ( ) : Tuple2 < Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > , Tuple3 < T9 , T10 , T11 > >","body":"= Tuple2 < Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > , Tuple3 < T9 , T10 , T11 > > ( Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) ) , Tuple3 < T9 , T10 , T11 > ( this . _9 ( ) , this . _10 ( ) , this . _11 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > . splitAt9 ( ) : Tuple2 < Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > , Tuple2 < T10 , T11 > >","body":"= Tuple2 < Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > , Tuple2 < T10 , T11 > > ( Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) ) , Tuple2 < T10 , T11 > ( this . _10 ( ) , this . _11 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > . splitAt10 ( ) : Tuple2 < Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > , Tuple1 < T11 > >","body":"= Tuple2 < Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > , Tuple1 < T11 > > ( Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) ) , Tuple1 < T11 > ( this . _11 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > . splitAt11 ( ) : Tuple2 < Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > , EmptyTuple >","body":"= Tuple2 < Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > , EmptyTuple > ( Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) ) , EmptyTuple )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > Tuple12 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > . splitAt0 ( ) : Tuple2 < EmptyTuple , Tuple12 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > >","body":"= Tuple2 < EmptyTuple , Tuple12 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > > ( EmptyTuple , Tuple12 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > Tuple12 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > . splitAt1 ( ) : Tuple2 < Tuple1 < T1 > , Tuple11 < T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > >","body":"= Tuple2 < Tuple1 < T1 > , Tuple11 < T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > > ( Tuple1 < T1 > ( this . _1 ( ) ) , Tuple11 < T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > ( this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > Tuple12 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > . splitAt2 ( ) : Tuple2 < Tuple2 < T1 , T2 > , Tuple10 < T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > >","body":"= Tuple2 < Tuple2 < T1 , T2 > , Tuple10 < T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > > ( Tuple2 < T1 , T2 > ( this . _1 ( ) , this . _2 ( ) ) , Tuple10 < T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > ( this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > Tuple12 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > . splitAt3 ( ) : Tuple2 < Tuple3 < T1 , T2 , T3 > , Tuple9 < T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > >","body":"= Tuple2 < Tuple3 < T1 , T2 , T3 > , Tuple9 < T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > > ( Tuple3 < T1 , T2 , T3 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) ) , Tuple9 < T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > ( this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > Tuple12 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > . splitAt4 ( ) : Tuple2 < Tuple4 < T1 , T2 , T3 , T4 > , Tuple8 < T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > >","body":"= Tuple2 < Tuple4 < T1 , T2 , T3 , T4 > , Tuple8 < T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > > ( Tuple4 < T1 , T2 , T3 , T4 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) ) , Tuple8 < T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > ( this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > Tuple12 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > . splitAt5 ( ) : Tuple2 < Tuple5 < T1 , T2 , T3 , T4 , T5 > , Tuple7 < T6 , T7 , T8 , T9 , T10 , T11 , T12 > >","body":"= Tuple2 < Tuple5 < T1 , T2 , T3 , T4 , T5 > , Tuple7 < T6 , T7 , T8 , T9 , T10 , T11 , T12 > > ( Tuple5 < T1 , T2 , T3 , T4 , T5 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) ) , Tuple7 < T6 , T7 , T8 , T9 , T10 , T11 , T12 > ( this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > Tuple12 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > . splitAt6 ( ) : Tuple2 < Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > , Tuple6 < T7 , T8 , T9 , T10 , T11 , T12 > >","body":"= Tuple2 < Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > , Tuple6 < T7 , T8 , T9 , T10 , T11 , T12 > > ( Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) ) , Tuple6 < T7 , T8 , T9 , T10 , T11 , T12 > ( this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > Tuple12 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > . splitAt7 ( ) : Tuple2 < Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > , Tuple5 < T8 , T9 , T10 , T11 , T12 > >","body":"= Tuple2 < Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > , Tuple5 < T8 , T9 , T10 , T11 , T12 > > ( Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) ) , Tuple5 < T8 , T9 , T10 , T11 , T12 > ( this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > Tuple12 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > . splitAt8 ( ) : Tuple2 < Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > , Tuple4 < T9 , T10 , T11 , T12 > >","body":"= Tuple2 < Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > , Tuple4 < T9 , T10 , T11 , T12 > > ( Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) ) , Tuple4 < T9 , T10 , T11 , T12 > ( this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > Tuple12 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > . splitAt9 ( ) : Tuple2 < Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > , Tuple3 < T10 , T11 , T12 > >","body":"= Tuple2 < Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > , Tuple3 < T10 , T11 , T12 > > ( Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) ) , Tuple3 < T10 , T11 , T12 > ( this . _10 ( ) , this . _11 ( ) , this . _12 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > Tuple12 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > . splitAt10 ( ) : Tuple2 < Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > , Tuple2 < T11 , T12 > >","body":"= Tuple2 < Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > , Tuple2 < T11 , T12 > > ( Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) ) , Tuple2 < T11 , T12 > ( this . _11 ( ) , this . _12 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > Tuple12 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > . splitAt11 ( ) : Tuple2 < Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > , Tuple1 < T12 > >","body":"= Tuple2 < Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > , Tuple1 < T12 > > ( Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) ) , Tuple1 < T12 > ( this . _12 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > Tuple12 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > . splitAt12 ( ) : Tuple2 < Tuple12 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > , EmptyTuple >","body":"= Tuple2 < Tuple12 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > , EmptyTuple > ( Tuple12 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) ) , EmptyTuple )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > Tuple13 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > . splitAt0 ( ) : Tuple2 < EmptyTuple , Tuple13 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > >","body":"= Tuple2 < EmptyTuple , Tuple13 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > > ( EmptyTuple , Tuple13 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > Tuple13 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > . splitAt1 ( ) : Tuple2 < Tuple1 < T1 > , Tuple12 < T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > >","body":"= Tuple2 < Tuple1 < T1 > , Tuple12 < T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > > ( Tuple1 < T1 > ( this . _1 ( ) ) , Tuple12 < T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > ( this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > Tuple13 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > . splitAt2 ( ) : Tuple2 < Tuple2 < T1 , T2 > , Tuple11 < T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > >","body":"= Tuple2 < Tuple2 < T1 , T2 > , Tuple11 < T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > > ( Tuple2 < T1 , T2 > ( this . _1 ( ) , this . _2 ( ) ) , Tuple11 < T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > ( this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > Tuple13 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > . splitAt3 ( ) : Tuple2 < Tuple3 < T1 , T2 , T3 > , Tuple10 < T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > >","body":"= Tuple2 < Tuple3 < T1 , T2 , T3 > , Tuple10 < T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > > ( Tuple3 < T1 , T2 , T3 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) ) , Tuple10 < T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > ( this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > Tuple13 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > . splitAt4 ( ) : Tuple2 < Tuple4 < T1 , T2 , T3 , T4 > , Tuple9 < T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > >","body":"= Tuple2 < Tuple4 < T1 , T2 , T3 , T4 > , Tuple9 < T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > > ( Tuple4 < T1 , T2 , T3 , T4 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) ) , Tuple9 < T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > ( this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > Tuple13 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > . splitAt5 ( ) : Tuple2 < Tuple5 < T1 , T2 , T3 , T4 , T5 > , Tuple8 < T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > >","body":"= Tuple2 < Tuple5 < T1 , T2 , T3 , T4 , T5 > , Tuple8 < T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > > ( Tuple5 < T1 , T2 , T3 , T4 , T5 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) ) , Tuple8 < T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > ( this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > Tuple13 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > . splitAt6 ( ) : Tuple2 < Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > , Tuple7 < T7 , T8 , T9 , T10 , T11 , T12 , T13 > >","body":"= Tuple2 < Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > , Tuple7 < T7 , T8 , T9 , T10 , T11 , T12 , T13 > > ( Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) ) , Tuple7 < T7 , T8 , T9 , T10 , T11 , T12 , T13 > ( this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > Tuple13 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > . splitAt7 ( ) : Tuple2 < Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > , Tuple6 < T8 , T9 , T10 , T11 , T12 , T13 > >","body":"= Tuple2 < Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > , Tuple6 < T8 , T9 , T10 , T11 , T12 , T13 > > ( Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) ) , Tuple6 < T8 , T9 , T10 , T11 , T12 , T13 > ( this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > Tuple13 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > . splitAt8 ( ) : Tuple2 < Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > , Tuple5 < T9 , T10 , T11 , T12 , T13 > >","body":"= Tuple2 < Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > , Tuple5 < T9 , T10 , T11 , T12 , T13 > > ( Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) ) , Tuple5 < T9 , T10 , T11 , T12 , T13 > ( this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > Tuple13 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > . splitAt9 ( ) : Tuple2 < Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > , Tuple4 < T10 , T11 , T12 , T13 > >","body":"= Tuple2 < Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > , Tuple4 < T10 , T11 , T12 , T13 > > ( Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) ) , Tuple4 < T10 , T11 , T12 , T13 > ( this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > Tuple13 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > . splitAt10 ( ) : Tuple2 < Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > , Tuple3 < T11 , T12 , T13 > >","body":"= Tuple2 < Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > , Tuple3 < T11 , T12 , T13 > > ( Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) ) , Tuple3 < T11 , T12 , T13 > ( this . _11 ( ) , this . _12 ( ) , this . _13 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > Tuple13 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > . splitAt11 ( ) : Tuple2 < Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > , Tuple2 < T12 , T13 > >","body":"= Tuple2 < Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > , Tuple2 < T12 , T13 > > ( Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) ) , Tuple2 < T12 , T13 > ( this . _12 ( ) , this . _13 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > Tuple13 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > . splitAt12 ( ) : Tuple2 < Tuple12 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > , Tuple1 < T13 > >","body":"= Tuple2 < Tuple12 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > , Tuple1 < T13 > > ( Tuple12 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) ) , Tuple1 < T13 > ( this . _13 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > Tuple13 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > . splitAt13 ( ) : Tuple2 < Tuple13 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > , EmptyTuple >","body":"= Tuple2 < Tuple13 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > , EmptyTuple > ( Tuple13 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) ) , EmptyTuple )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > Tuple14 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > . splitAt0 ( ) : Tuple2 < EmptyTuple , Tuple14 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > >","body":"= Tuple2 < EmptyTuple , Tuple14 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > > ( EmptyTuple , Tuple14 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > Tuple14 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > . splitAt1 ( ) : Tuple2 < Tuple1 < T1 > , Tuple13 < T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > >","body":"= Tuple2 < Tuple1 < T1 > , Tuple13 < T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > > ( Tuple1 < T1 > ( this . _1 ( ) ) , Tuple13 < T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > ( this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > Tuple14 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > . splitAt2 ( ) : Tuple2 < Tuple2 < T1 , T2 > , Tuple12 < T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > >","body":"= Tuple2 < Tuple2 < T1 , T2 > , Tuple12 < T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > > ( Tuple2 < T1 , T2 > ( this . _1 ( ) , this . _2 ( ) ) , Tuple12 < T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > ( this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > Tuple14 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > . splitAt3 ( ) : Tuple2 < Tuple3 < T1 , T2 , T3 > , Tuple11 < T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > >","body":"= Tuple2 < Tuple3 < T1 , T2 , T3 > , Tuple11 < T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > > ( Tuple3 < T1 , T2 , T3 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) ) , Tuple11 < T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > ( this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > Tuple14 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > . splitAt4 ( ) : Tuple2 < Tuple4 < T1 , T2 , T3 , T4 > , Tuple10 < T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > >","body":"= Tuple2 < Tuple4 < T1 , T2 , T3 , T4 > , Tuple10 < T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > > ( Tuple4 < T1 , T2 , T3 , T4 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) ) , Tuple10 < T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > ( this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > Tuple14 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > . splitAt5 ( ) : Tuple2 < Tuple5 < T1 , T2 , T3 , T4 , T5 > , Tuple9 < T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > >","body":"= Tuple2 < Tuple5 < T1 , T2 , T3 , T4 , T5 > , Tuple9 < T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > > ( Tuple5 < T1 , T2 , T3 , T4 , T5 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) ) , Tuple9 < T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > ( this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > Tuple14 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > . splitAt6 ( ) : Tuple2 < Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > , Tuple8 < T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > >","body":"= Tuple2 < Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > , Tuple8 < T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > > ( Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) ) , Tuple8 < T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > ( this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > Tuple14 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > . splitAt7 ( ) : Tuple2 < Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > , Tuple7 < T8 , T9 , T10 , T11 , T12 , T13 , T14 > >","body":"= Tuple2 < Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > , Tuple7 < T8 , T9 , T10 , T11 , T12 , T13 , T14 > > ( Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) ) , Tuple7 < T8 , T9 , T10 , T11 , T12 , T13 , T14 > ( this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > Tuple14 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > . splitAt8 ( ) : Tuple2 < Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > , Tuple6 < T9 , T10 , T11 , T12 , T13 , T14 > >","body":"= Tuple2 < Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > , Tuple6 < T9 , T10 , T11 , T12 , T13 , T14 > > ( Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) ) , Tuple6 < T9 , T10 , T11 , T12 , T13 , T14 > ( this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > Tuple14 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > . splitAt9 ( ) : Tuple2 < Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > , Tuple5 < T10 , T11 , T12 , T13 , T14 > >","body":"= Tuple2 < Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > , Tuple5 < T10 , T11 , T12 , T13 , T14 > > ( Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) ) , Tuple5 < T10 , T11 , T12 , T13 , T14 > ( this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > Tuple14 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > . splitAt10 ( ) : Tuple2 < Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > , Tuple4 < T11 , T12 , T13 , T14 > >","body":"= Tuple2 < Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > , Tuple4 < T11 , T12 , T13 , T14 > > ( Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) ) , Tuple4 < T11 , T12 , T13 , T14 > ( this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > Tuple14 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > . splitAt11 ( ) : Tuple2 < Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > , Tuple3 < T12 , T13 , T14 > >","body":"= Tuple2 < Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > , Tuple3 < T12 , T13 , T14 > > ( Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) ) , Tuple3 < T12 , T13 , T14 > ( this . _12 ( ) , this . _13 ( ) , this . _14 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > Tuple14 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > . splitAt12 ( ) : Tuple2 < Tuple12 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > , Tuple2 < T13 , T14 > >","body":"= Tuple2 < Tuple12 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > , Tuple2 < T13 , T14 > > ( Tuple12 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) ) , Tuple2 < T13 , T14 > ( this . _13 ( ) , this . _14 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > Tuple14 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > . splitAt13 ( ) : Tuple2 < Tuple13 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > , Tuple1 < T14 > >","body":"= Tuple2 < Tuple13 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > , Tuple1 < T14 > > ( Tuple13 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) ) , Tuple1 < T14 > ( this . _14 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > Tuple14 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > . splitAt14 ( ) : Tuple2 < Tuple14 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > , EmptyTuple >","body":"= Tuple2 < Tuple14 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > , EmptyTuple > ( Tuple14 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) ) , EmptyTuple )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > Tuple15 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > . splitAt0 ( ) : Tuple2 < EmptyTuple , Tuple15 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > >","body":"= Tuple2 < EmptyTuple , Tuple15 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > > ( EmptyTuple , Tuple15 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > Tuple15 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > . splitAt1 ( ) : Tuple2 < Tuple1 < T1 > , Tuple14 < T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > >","body":"= Tuple2 < Tuple1 < T1 > , Tuple14 < T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > > ( Tuple1 < T1 > ( this . _1 ( ) ) , Tuple14 < T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > ( this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > Tuple15 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > . splitAt2 ( ) : Tuple2 < Tuple2 < T1 , T2 > , Tuple13 < T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > >","body":"= Tuple2 < Tuple2 < T1 , T2 > , Tuple13 < T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > > ( Tuple2 < T1 , T2 > ( this . _1 ( ) , this . _2 ( ) ) , Tuple13 < T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > ( this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > Tuple15 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > . splitAt3 ( ) : Tuple2 < Tuple3 < T1 , T2 , T3 > , Tuple12 < T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > >","body":"= Tuple2 < Tuple3 < T1 , T2 , T3 > , Tuple12 < T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > > ( Tuple3 < T1 , T2 , T3 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) ) , Tuple12 < T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > ( this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > Tuple15 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > . splitAt4 ( ) : Tuple2 < Tuple4 < T1 , T2 , T3 , T4 > , Tuple11 < T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > >","body":"= Tuple2 < Tuple4 < T1 , T2 , T3 , T4 > , Tuple11 < T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > > ( Tuple4 < T1 , T2 , T3 , T4 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) ) , Tuple11 < T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > ( this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > Tuple15 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > . splitAt5 ( ) : Tuple2 < Tuple5 < T1 , T2 , T3 , T4 , T5 > , Tuple10 < T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > >","body":"= Tuple2 < Tuple5 < T1 , T2 , T3 , T4 , T5 > , Tuple10 < T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > > ( Tuple5 < T1 , T2 , T3 , T4 , T5 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) ) , Tuple10 < T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > ( this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > Tuple15 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > . splitAt6 ( ) : Tuple2 < Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > , Tuple9 < T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > >","body":"= Tuple2 < Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > , Tuple9 < T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > > ( Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) ) , Tuple9 < T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > ( this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > Tuple15 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > . splitAt7 ( ) : Tuple2 < Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > , Tuple8 < T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > >","body":"= Tuple2 < Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > , Tuple8 < T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > > ( Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) ) , Tuple8 < T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > ( this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > Tuple15 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > . splitAt8 ( ) : Tuple2 < Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > , Tuple7 < T9 , T10 , T11 , T12 , T13 , T14 , T15 > >","body":"= Tuple2 < Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > , Tuple7 < T9 , T10 , T11 , T12 , T13 , T14 , T15 > > ( Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) ) , Tuple7 < T9 , T10 , T11 , T12 , T13 , T14 , T15 > ( this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > Tuple15 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > . splitAt9 ( ) : Tuple2 < Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > , Tuple6 < T10 , T11 , T12 , T13 , T14 , T15 > >","body":"= Tuple2 < Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > , Tuple6 < T10 , T11 , T12 , T13 , T14 , T15 > > ( Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) ) , Tuple6 < T10 , T11 , T12 , T13 , T14 , T15 > ( this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > Tuple15 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > . splitAt10 ( ) : Tuple2 < Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > , Tuple5 < T11 , T12 , T13 , T14 , T15 > >","body":"= Tuple2 < Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > , Tuple5 < T11 , T12 , T13 , T14 , T15 > > ( Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) ) , Tuple5 < T11 , T12 , T13 , T14 , T15 > ( this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > Tuple15 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > . splitAt11 ( ) : Tuple2 < Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > , Tuple4 < T12 , T13 , T14 , T15 > >","body":"= Tuple2 < Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > , Tuple4 < T12 , T13 , T14 , T15 > > ( Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) ) , Tuple4 < T12 , T13 , T14 , T15 > ( this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > Tuple15 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > . splitAt12 ( ) : Tuple2 < Tuple12 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > , Tuple3 < T13 , T14 , T15 > >","body":"= Tuple2 < Tuple12 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > , Tuple3 < T13 , T14 , T15 > > ( Tuple12 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) ) , Tuple3 < T13 , T14 , T15 > ( this . _13 ( ) , this . _14 ( ) , this . _15 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > Tuple15 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > . splitAt13 ( ) : Tuple2 < Tuple13 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > , Tuple2 < T14 , T15 > >","body":"= Tuple2 < Tuple13 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > , Tuple2 < T14 , T15 > > ( Tuple13 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) ) , Tuple2 < T14 , T15 > ( this . _14 ( ) , this . _15 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > Tuple15 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > . splitAt14 ( ) : Tuple2 < Tuple14 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > , Tuple1 < T15 > >","body":"= Tuple2 < Tuple14 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > , Tuple1 < T15 > > ( Tuple14 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) ) , Tuple1 < T15 > ( this . _15 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > Tuple15 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > . splitAt15 ( ) : Tuple2 < Tuple15 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > , EmptyTuple >","body":"= Tuple2 < Tuple15 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > , EmptyTuple > ( Tuple15 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) ) , EmptyTuple )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > Tuple16 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > . splitAt0 ( ) : Tuple2 < EmptyTuple , Tuple16 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > >","body":"= Tuple2 < EmptyTuple , Tuple16 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > > ( EmptyTuple , Tuple16 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > Tuple16 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > . splitAt1 ( ) : Tuple2 < Tuple1 < T1 > , Tuple15 < T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > >","body":"= Tuple2 < Tuple1 < T1 > , Tuple15 < T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > > ( Tuple1 < T1 > ( this . _1 ( ) ) , Tuple15 < T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > ( this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > Tuple16 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > . splitAt2 ( ) : Tuple2 < Tuple2 < T1 , T2 > , Tuple14 < T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > >","body":"= Tuple2 < Tuple2 < T1 , T2 > , Tuple14 < T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > > ( Tuple2 < T1 , T2 > ( this . _1 ( ) , this . _2 ( ) ) , Tuple14 < T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > ( this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > Tuple16 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > . splitAt3 ( ) : Tuple2 < Tuple3 < T1 , T2 , T3 > , Tuple13 < T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > >","body":"= Tuple2 < Tuple3 < T1 , T2 , T3 > , Tuple13 < T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > > ( Tuple3 < T1 , T2 , T3 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) ) , Tuple13 < T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > ( this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > Tuple16 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > . splitAt4 ( ) : Tuple2 < Tuple4 < T1 , T2 , T3 , T4 > , Tuple12 < T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > >","body":"= Tuple2 < Tuple4 < T1 , T2 , T3 , T4 > , Tuple12 < T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > > ( Tuple4 < T1 , T2 , T3 , T4 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) ) , Tuple12 < T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > ( this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > Tuple16 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > . splitAt5 ( ) : Tuple2 < Tuple5 < T1 , T2 , T3 , T4 , T5 > , Tuple11 < T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > >","body":"= Tuple2 < Tuple5 < T1 , T2 , T3 , T4 , T5 > , Tuple11 < T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > > ( Tuple5 < T1 , T2 , T3 , T4 , T5 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) ) , Tuple11 < T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > ( this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > Tuple16 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > . splitAt6 ( ) : Tuple2 < Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > , Tuple10 < T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > >","body":"= Tuple2 < Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > , Tuple10 < T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > > ( Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) ) , Tuple10 < T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > ( this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > Tuple16 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > . splitAt7 ( ) : Tuple2 < Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > , Tuple9 < T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > >","body":"= Tuple2 < Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > , Tuple9 < T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > > ( Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) ) , Tuple9 < T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > ( this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > Tuple16 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > . splitAt8 ( ) : Tuple2 < Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > , Tuple8 < T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > >","body":"= Tuple2 < Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > , Tuple8 < T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > > ( Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) ) , Tuple8 < T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > ( this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > Tuple16 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > . splitAt9 ( ) : Tuple2 < Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > , Tuple7 < T10 , T11 , T12 , T13 , T14 , T15 , T16 > >","body":"= Tuple2 < Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > , Tuple7 < T10 , T11 , T12 , T13 , T14 , T15 , T16 > > ( Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) ) , Tuple7 < T10 , T11 , T12 , T13 , T14 , T15 , T16 > ( this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > Tuple16 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > . splitAt10 ( ) : Tuple2 < Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > , Tuple6 < T11 , T12 , T13 , T14 , T15 , T16 > >","body":"= Tuple2 < Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > , Tuple6 < T11 , T12 , T13 , T14 , T15 , T16 > > ( Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) ) , Tuple6 < T11 , T12 , T13 , T14 , T15 , T16 > ( this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > Tuple16 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > . splitAt11 ( ) : Tuple2 < Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > , Tuple5 < T12 , T13 , T14 , T15 , T16 > >","body":"= Tuple2 < Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > , Tuple5 < T12 , T13 , T14 , T15 , T16 > > ( Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) ) , Tuple5 < T12 , T13 , T14 , T15 , T16 > ( this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > Tuple16 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > . splitAt12 ( ) : Tuple2 < Tuple12 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > , Tuple4 < T13 , T14 , T15 , T16 > >","body":"= Tuple2 < Tuple12 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > , Tuple4 < T13 , T14 , T15 , T16 > > ( Tuple12 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) ) , Tuple4 < T13 , T14 , T15 , T16 > ( this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > Tuple16 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > . splitAt13 ( ) : Tuple2 < Tuple13 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > , Tuple3 < T14 , T15 , T16 > >","body":"= Tuple2 < Tuple13 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > , Tuple3 < T14 , T15 , T16 > > ( Tuple13 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) ) , Tuple3 < T14 , T15 , T16 > ( this . _14 ( ) , this . _15 ( ) , this . _16 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > Tuple16 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > . splitAt14 ( ) : Tuple2 < Tuple14 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > , Tuple2 < T15 , T16 > >","body":"= Tuple2 < Tuple14 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > , Tuple2 < T15 , T16 > > ( Tuple14 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) ) , Tuple2 < T15 , T16 > ( this . _15 ( ) , this . _16 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > Tuple16 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > . splitAt15 ( ) : Tuple2 < Tuple15 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > , Tuple1 < T16 > >","body":"= Tuple2 < Tuple15 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > , Tuple1 < T16 > > ( Tuple15 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) ) , Tuple1 < T16 > ( this . _16 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > Tuple16 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > . splitAt16 ( ) : Tuple2 < Tuple16 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > , EmptyTuple >","body":"= Tuple2 < Tuple16 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > , EmptyTuple > ( Tuple16 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) ) , EmptyTuple )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > Tuple17 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > . splitAt0 ( ) : Tuple2 < EmptyTuple , Tuple17 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > >","body":"= Tuple2 < EmptyTuple , Tuple17 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > > ( EmptyTuple , Tuple17 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > Tuple17 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > . splitAt1 ( ) : Tuple2 < Tuple1 < T1 > , Tuple16 < T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > >","body":"= Tuple2 < Tuple1 < T1 > , Tuple16 < T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > > ( Tuple1 < T1 > ( this . _1 ( ) ) , Tuple16 < T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > ( this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > Tuple17 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > . splitAt2 ( ) : Tuple2 < Tuple2 < T1 , T2 > , Tuple15 < T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > >","body":"= Tuple2 < Tuple2 < T1 , T2 > , Tuple15 < T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > > ( Tuple2 < T1 , T2 > ( this . _1 ( ) , this . _2 ( ) ) , Tuple15 < T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > ( this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > Tuple17 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > . splitAt3 ( ) : Tuple2 < Tuple3 < T1 , T2 , T3 > , Tuple14 < T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > >","body":"= Tuple2 < Tuple3 < T1 , T2 , T3 > , Tuple14 < T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > > ( Tuple3 < T1 , T2 , T3 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) ) , Tuple14 < T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > ( this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > Tuple17 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > . splitAt4 ( ) : Tuple2 < Tuple4 < T1 , T2 , T3 , T4 > , Tuple13 < T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > >","body":"= Tuple2 < Tuple4 < T1 , T2 , T3 , T4 > , Tuple13 < T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > > ( Tuple4 < T1 , T2 , T3 , T4 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) ) , Tuple13 < T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > ( this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > Tuple17 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > . splitAt5 ( ) : Tuple2 < Tuple5 < T1 , T2 , T3 , T4 , T5 > , Tuple12 < T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > >","body":"= Tuple2 < Tuple5 < T1 , T2 , T3 , T4 , T5 > , Tuple12 < T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > > ( Tuple5 < T1 , T2 , T3 , T4 , T5 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) ) , Tuple12 < T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > ( this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > Tuple17 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > . splitAt6 ( ) : Tuple2 < Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > , Tuple11 < T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > >","body":"= Tuple2 < Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > , Tuple11 < T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > > ( Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) ) , Tuple11 < T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > ( this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > Tuple17 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > . splitAt7 ( ) : Tuple2 < Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > , Tuple10 < T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > >","body":"= Tuple2 < Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > , Tuple10 < T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > > ( Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) ) , Tuple10 < T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > ( this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > Tuple17 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > . splitAt8 ( ) : Tuple2 < Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > , Tuple9 < T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > >","body":"= Tuple2 < Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > , Tuple9 < T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > > ( Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) ) , Tuple9 < T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > ( this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > Tuple17 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > . splitAt9 ( ) : Tuple2 < Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > , Tuple8 < T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > >","body":"= Tuple2 < Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > , Tuple8 < T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > > ( Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) ) , Tuple8 < T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > ( this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > Tuple17 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > . splitAt10 ( ) : Tuple2 < Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > , Tuple7 < T11 , T12 , T13 , T14 , T15 , T16 , T17 > >","body":"= Tuple2 < Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > , Tuple7 < T11 , T12 , T13 , T14 , T15 , T16 , T17 > > ( Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) ) , Tuple7 < T11 , T12 , T13 , T14 , T15 , T16 , T17 > ( this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > Tuple17 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > . splitAt11 ( ) : Tuple2 < Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > , Tuple6 < T12 , T13 , T14 , T15 , T16 , T17 > >","body":"= Tuple2 < Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > , Tuple6 < T12 , T13 , T14 , T15 , T16 , T17 > > ( Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) ) , Tuple6 < T12 , T13 , T14 , T15 , T16 , T17 > ( this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > Tuple17 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > . splitAt12 ( ) : Tuple2 < Tuple12 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > , Tuple5 < T13 , T14 , T15 , T16 , T17 > >","body":"= Tuple2 < Tuple12 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > , Tuple5 < T13 , T14 , T15 , T16 , T17 > > ( Tuple12 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) ) , Tuple5 < T13 , T14 , T15 , T16 , T17 > ( this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > Tuple17 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > . splitAt13 ( ) : Tuple2 < Tuple13 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > , Tuple4 < T14 , T15 , T16 , T17 > >","body":"= Tuple2 < Tuple13 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > , Tuple4 < T14 , T15 , T16 , T17 > > ( Tuple13 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) ) , Tuple4 < T14 , T15 , T16 , T17 > ( this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > Tuple17 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > . splitAt14 ( ) : Tuple2 < Tuple14 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > , Tuple3 < T15 , T16 , T17 > >","body":"= Tuple2 < Tuple14 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > , Tuple3 < T15 , T16 , T17 > > ( Tuple14 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) ) , Tuple3 < T15 , T16 , T17 > ( this . _15 ( ) , this . _16 ( ) , this . _17 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > Tuple17 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > . splitAt15 ( ) : Tuple2 < Tuple15 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > , Tuple2 < T16 , T17 > >","body":"= Tuple2 < Tuple15 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > , Tuple2 < T16 , T17 > > ( Tuple15 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) ) , Tuple2 < T16 , T17 > ( this . _16 ( ) , this . _17 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > Tuple17 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > . splitAt16 ( ) : Tuple2 < Tuple16 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > , Tuple1 < T17 > >","body":"= Tuple2 < Tuple16 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > , Tuple1 < T17 > > ( Tuple16 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) ) , Tuple1 < T17 > ( this . _17 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > Tuple17 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > . splitAt17 ( ) : Tuple2 < Tuple17 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > , EmptyTuple >","body":"= Tuple2 < Tuple17 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > , EmptyTuple > ( Tuple17 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) ) , EmptyTuple )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > Tuple18 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > . splitAt0 ( ) : Tuple2 < EmptyTuple , Tuple18 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > >","body":"= Tuple2 < EmptyTuple , Tuple18 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > > ( EmptyTuple , Tuple18 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > Tuple18 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > . splitAt1 ( ) : Tuple2 < Tuple1 < T1 > , Tuple17 < T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > >","body":"= Tuple2 < Tuple1 < T1 > , Tuple17 < T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > > ( Tuple1 < T1 > ( this . _1 ( ) ) , Tuple17 < T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > ( this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > Tuple18 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > . splitAt2 ( ) : Tuple2 < Tuple2 < T1 , T2 > , Tuple16 < T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > >","body":"= Tuple2 < Tuple2 < T1 , T2 > , Tuple16 < T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > > ( Tuple2 < T1 , T2 > ( this . _1 ( ) , this . _2 ( ) ) , Tuple16 < T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > ( this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > Tuple18 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > . splitAt3 ( ) : Tuple2 < Tuple3 < T1 , T2 , T3 > , Tuple15 < T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > >","body":"= Tuple2 < Tuple3 < T1 , T2 , T3 > , Tuple15 < T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > > ( Tuple3 < T1 , T2 , T3 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) ) , Tuple15 < T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > ( this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > Tuple18 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > . splitAt4 ( ) : Tuple2 < Tuple4 < T1 , T2 , T3 , T4 > , Tuple14 < T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > >","body":"= Tuple2 < Tuple4 < T1 , T2 , T3 , T4 > , Tuple14 < T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > > ( Tuple4 < T1 , T2 , T3 , T4 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) ) , Tuple14 < T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > ( this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > Tuple18 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > . splitAt5 ( ) : Tuple2 < Tuple5 < T1 , T2 , T3 , T4 , T5 > , Tuple13 < T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > >","body":"= Tuple2 < Tuple5 < T1 , T2 , T3 , T4 , T5 > , Tuple13 < T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > > ( Tuple5 < T1 , T2 , T3 , T4 , T5 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) ) , Tuple13 < T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > ( this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > Tuple18 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > . splitAt6 ( ) : Tuple2 < Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > , Tuple12 < T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > >","body":"= Tuple2 < Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > , Tuple12 < T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > > ( Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) ) , Tuple12 < T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > ( this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > Tuple18 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > . splitAt7 ( ) : Tuple2 < Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > , Tuple11 < T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > >","body":"= Tuple2 < Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > , Tuple11 < T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > > ( Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) ) , Tuple11 < T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > ( this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > Tuple18 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > . splitAt8 ( ) : Tuple2 < Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > , Tuple10 < T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > >","body":"= Tuple2 < Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > , Tuple10 < T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > > ( Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) ) , Tuple10 < T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > ( this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > Tuple18 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > . splitAt9 ( ) : Tuple2 < Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > , Tuple9 < T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > >","body":"= Tuple2 < Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > , Tuple9 < T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > > ( Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) ) , Tuple9 < T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > ( this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > Tuple18 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > . splitAt10 ( ) : Tuple2 < Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > , Tuple8 < T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > >","body":"= Tuple2 < Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > , Tuple8 < T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > > ( Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) ) , Tuple8 < T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > ( this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > Tuple18 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > . splitAt11 ( ) : Tuple2 < Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > , Tuple7 < T12 , T13 , T14 , T15 , T16 , T17 , T18 > >","body":"= Tuple2 < Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > , Tuple7 < T12 , T13 , T14 , T15 , T16 , T17 , T18 > > ( Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) ) , Tuple7 < T12 , T13 , T14 , T15 , T16 , T17 , T18 > ( this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > Tuple18 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > . splitAt12 ( ) : Tuple2 < Tuple12 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > , Tuple6 < T13 , T14 , T15 , T16 , T17 , T18 > >","body":"= Tuple2 < Tuple12 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > , Tuple6 < T13 , T14 , T15 , T16 , T17 , T18 > > ( Tuple12 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) ) , Tuple6 < T13 , T14 , T15 , T16 , T17 , T18 > ( this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > Tuple18 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > . splitAt13 ( ) : Tuple2 < Tuple13 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > , Tuple5 < T14 , T15 , T16 , T17 , T18 > >","body":"= Tuple2 < Tuple13 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > , Tuple5 < T14 , T15 , T16 , T17 , T18 > > ( Tuple13 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) ) , Tuple5 < T14 , T15 , T16 , T17 , T18 > ( this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > Tuple18 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > . splitAt14 ( ) : Tuple2 < Tuple14 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > , Tuple4 < T15 , T16 , T17 , T18 > >","body":"= Tuple2 < Tuple14 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > , Tuple4 < T15 , T16 , T17 , T18 > > ( Tuple14 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) ) , Tuple4 < T15 , T16 , T17 , T18 > ( this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > Tuple18 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > . splitAt15 ( ) : Tuple2 < Tuple15 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > , Tuple3 < T16 , T17 , T18 > >","body":"= Tuple2 < Tuple15 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > , Tuple3 < T16 , T17 , T18 > > ( Tuple15 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) ) , Tuple3 < T16 , T17 , T18 > ( this . _16 ( ) , this . _17 ( ) , this . _18 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > Tuple18 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > . splitAt16 ( ) : Tuple2 < Tuple16 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > , Tuple2 < T17 , T18 > >","body":"= Tuple2 < Tuple16 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > , Tuple2 < T17 , T18 > > ( Tuple16 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) ) , Tuple2 < T17 , T18 > ( this . _17 ( ) , this . _18 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > Tuple18 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > . splitAt17 ( ) : Tuple2 < Tuple17 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > , Tuple1 < T18 > >","body":"= Tuple2 < Tuple17 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > , Tuple1 < T18 > > ( Tuple17 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) ) , Tuple1 < T18 > ( this . _18 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > Tuple18 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > . splitAt18 ( ) : Tuple2 < Tuple18 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > , EmptyTuple >","body":"= Tuple2 < Tuple18 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > , EmptyTuple > ( Tuple18 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) ) , EmptyTuple )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > Tuple19 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > . splitAt0 ( ) : Tuple2 < EmptyTuple , Tuple19 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > >","body":"= Tuple2 < EmptyTuple , Tuple19 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > > ( EmptyTuple , Tuple19 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > Tuple19 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > . splitAt1 ( ) : Tuple2 < Tuple1 < T1 > , Tuple18 < T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > >","body":"= Tuple2 < Tuple1 < T1 > , Tuple18 < T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > > ( Tuple1 < T1 > ( this . _1 ( ) ) , Tuple18 < T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > ( this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > Tuple19 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > . splitAt2 ( ) : Tuple2 < Tuple2 < T1 , T2 > , Tuple17 < T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > >","body":"= Tuple2 < Tuple2 < T1 , T2 > , Tuple17 < T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > > ( Tuple2 < T1 , T2 > ( this . _1 ( ) , this . _2 ( ) ) , Tuple17 < T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > ( this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > Tuple19 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > . splitAt3 ( ) : Tuple2 < Tuple3 < T1 , T2 , T3 > , Tuple16 < T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > >","body":"= Tuple2 < Tuple3 < T1 , T2 , T3 > , Tuple16 < T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > > ( Tuple3 < T1 , T2 , T3 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) ) , Tuple16 < T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > ( this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > Tuple19 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > . splitAt4 ( ) : Tuple2 < Tuple4 < T1 , T2 , T3 , T4 > , Tuple15 < T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > >","body":"= Tuple2 < Tuple4 < T1 , T2 , T3 , T4 > , Tuple15 < T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > > ( Tuple4 < T1 , T2 , T3 , T4 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) ) , Tuple15 < T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > ( this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > Tuple19 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > . splitAt5 ( ) : Tuple2 < Tuple5 < T1 , T2 , T3 , T4 , T5 > , Tuple14 < T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > >","body":"= Tuple2 < Tuple5 < T1 , T2 , T3 , T4 , T5 > , Tuple14 < T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > > ( Tuple5 < T1 , T2 , T3 , T4 , T5 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) ) , Tuple14 < T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > ( this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > Tuple19 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > . splitAt6 ( ) : Tuple2 < Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > , Tuple13 < T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > >","body":"= Tuple2 < Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > , Tuple13 < T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > > ( Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) ) , Tuple13 < T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > ( this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > Tuple19 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > . splitAt7 ( ) : Tuple2 < Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > , Tuple12 < T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > >","body":"= Tuple2 < Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > , Tuple12 < T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > > ( Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) ) , Tuple12 < T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > ( this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > Tuple19 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > . splitAt8 ( ) : Tuple2 < Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > , Tuple11 < T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > >","body":"= Tuple2 < Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > , Tuple11 < T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > > ( Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) ) , Tuple11 < T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > ( this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > Tuple19 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > . splitAt9 ( ) : Tuple2 < Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > , Tuple10 < T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > >","body":"= Tuple2 < Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > , Tuple10 < T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > > ( Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) ) , Tuple10 < T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > ( this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > Tuple19 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > . splitAt10 ( ) : Tuple2 < Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > , Tuple9 < T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > >","body":"= Tuple2 < Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > , Tuple9 < T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > > ( Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) ) , Tuple9 < T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > ( this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > Tuple19 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > . splitAt11 ( ) : Tuple2 < Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > , Tuple8 < T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > >","body":"= Tuple2 < Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > , Tuple8 < T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > > ( Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) ) , Tuple8 < T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > ( this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > Tuple19 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > . splitAt12 ( ) : Tuple2 < Tuple12 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > , Tuple7 < T13 , T14 , T15 , T16 , T17 , T18 , T19 > >","body":"= Tuple2 < Tuple12 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > , Tuple7 < T13 , T14 , T15 , T16 , T17 , T18 , T19 > > ( Tuple12 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) ) , Tuple7 < T13 , T14 , T15 , T16 , T17 , T18 , T19 > ( this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > Tuple19 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > . splitAt13 ( ) : Tuple2 < Tuple13 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > , Tuple6 < T14 , T15 , T16 , T17 , T18 , T19 > >","body":"= Tuple2 < Tuple13 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > , Tuple6 < T14 , T15 , T16 , T17 , T18 , T19 > > ( Tuple13 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) ) , Tuple6 < T14 , T15 , T16 , T17 , T18 , T19 > ( this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > Tuple19 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > . splitAt14 ( ) : Tuple2 < Tuple14 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > , Tuple5 < T15 , T16 , T17 , T18 , T19 > >","body":"= Tuple2 < Tuple14 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > , Tuple5 < T15 , T16 , T17 , T18 , T19 > > ( Tuple14 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) ) , Tuple5 < T15 , T16 , T17 , T18 , T19 > ( this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > Tuple19 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > . splitAt15 ( ) : Tuple2 < Tuple15 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > , Tuple4 < T16 , T17 , T18 , T19 > >","body":"= Tuple2 < Tuple15 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > , Tuple4 < T16 , T17 , T18 , T19 > > ( Tuple15 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) ) , Tuple4 < T16 , T17 , T18 , T19 > ( this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > Tuple19 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > . splitAt16 ( ) : Tuple2 < Tuple16 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > , Tuple3 < T17 , T18 , T19 > >","body":"= Tuple2 < Tuple16 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > , Tuple3 < T17 , T18 , T19 > > ( Tuple16 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) ) , Tuple3 < T17 , T18 , T19 > ( this . _17 ( ) , this . _18 ( ) , this . _19 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > Tuple19 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > . splitAt17 ( ) : Tuple2 < Tuple17 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > , Tuple2 < T18 , T19 > >","body":"= Tuple2 < Tuple17 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > , Tuple2 < T18 , T19 > > ( Tuple17 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) ) , Tuple2 < T18 , T19 > ( this . _18 ( ) , this . _19 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > Tuple19 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > . splitAt18 ( ) : Tuple2 < Tuple18 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > , Tuple1 < T19 > >","body":"= Tuple2 < Tuple18 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > , Tuple1 < T19 > > ( Tuple18 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) ) , Tuple1 < T19 > ( this . _19 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > Tuple19 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > . splitAt19 ( ) : Tuple2 < Tuple19 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > , EmptyTuple >","body":"= Tuple2 < Tuple19 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > , EmptyTuple > ( Tuple19 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) ) , EmptyTuple )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > Tuple20 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > . splitAt0 ( ) : Tuple2 < EmptyTuple , Tuple20 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > >","body":"= Tuple2 < EmptyTuple , Tuple20 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > > ( EmptyTuple , Tuple20 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > Tuple20 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > . splitAt1 ( ) : Tuple2 < Tuple1 < T1 > , Tuple19 < T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > >","body":"= Tuple2 < Tuple1 < T1 > , Tuple19 < T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > > ( Tuple1 < T1 > ( this . _1 ( ) ) , Tuple19 < T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > ( this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > Tuple20 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > . splitAt2 ( ) : Tuple2 < Tuple2 < T1 , T2 > , Tuple18 < T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > >","body":"= Tuple2 < Tuple2 < T1 , T2 > , Tuple18 < T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > > ( Tuple2 < T1 , T2 > ( this . _1 ( ) , this . _2 ( ) ) , Tuple18 < T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > ( this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > Tuple20 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > . splitAt3 ( ) : Tuple2 < Tuple3 < T1 , T2 , T3 > , Tuple17 < T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > >","body":"= Tuple2 < Tuple3 < T1 , T2 , T3 > , Tuple17 < T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > > ( Tuple3 < T1 , T2 , T3 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) ) , Tuple17 < T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > ( this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > Tuple20 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > . splitAt4 ( ) : Tuple2 < Tuple4 < T1 , T2 , T3 , T4 > , Tuple16 < T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > >","body":"= Tuple2 < Tuple4 < T1 , T2 , T3 , T4 > , Tuple16 < T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > > ( Tuple4 < T1 , T2 , T3 , T4 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) ) , Tuple16 < T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > ( this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > Tuple20 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > . splitAt5 ( ) : Tuple2 < Tuple5 < T1 , T2 , T3 , T4 , T5 > , Tuple15 < T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > >","body":"= Tuple2 < Tuple5 < T1 , T2 , T3 , T4 , T5 > , Tuple15 < T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > > ( Tuple5 < T1 , T2 , T3 , T4 , T5 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) ) , Tuple15 < T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > ( this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > Tuple20 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > . splitAt6 ( ) : Tuple2 < Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > , Tuple14 < T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > >","body":"= Tuple2 < Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > , Tuple14 < T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > > ( Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) ) , Tuple14 < T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > ( this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > Tuple20 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > . splitAt7 ( ) : Tuple2 < Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > , Tuple13 < T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > >","body":"= Tuple2 < Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > , Tuple13 < T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > > ( Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) ) , Tuple13 < T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > ( this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > Tuple20 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > . splitAt8 ( ) : Tuple2 < Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > , Tuple12 < T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > >","body":"= Tuple2 < Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > , Tuple12 < T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > > ( Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) ) , Tuple12 < T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > ( this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > Tuple20 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > . splitAt9 ( ) : Tuple2 < Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > , Tuple11 < T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > >","body":"= Tuple2 < Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > , Tuple11 < T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > > ( Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) ) , Tuple11 < T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > ( this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > Tuple20 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > . splitAt10 ( ) : Tuple2 < Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > , Tuple10 < T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > >","body":"= Tuple2 < Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > , Tuple10 < T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > > ( Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) ) , Tuple10 < T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > ( this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > Tuple20 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > . splitAt11 ( ) : Tuple2 < Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > , Tuple9 < T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > >","body":"= Tuple2 < Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > , Tuple9 < T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > > ( Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) ) , Tuple9 < T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > ( this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > Tuple20 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > . splitAt12 ( ) : Tuple2 < Tuple12 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > , Tuple8 < T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > >","body":"= Tuple2 < Tuple12 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > , Tuple8 < T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > > ( Tuple12 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) ) , Tuple8 < T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > ( this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > Tuple20 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > . splitAt13 ( ) : Tuple2 < Tuple13 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > , Tuple7 < T14 , T15 , T16 , T17 , T18 , T19 , T20 > >","body":"= Tuple2 < Tuple13 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > , Tuple7 < T14 , T15 , T16 , T17 , T18 , T19 , T20 > > ( Tuple13 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) ) , Tuple7 < T14 , T15 , T16 , T17 , T18 , T19 , T20 > ( this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > Tuple20 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > . splitAt14 ( ) : Tuple2 < Tuple14 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > , Tuple6 < T15 , T16 , T17 , T18 , T19 , T20 > >","body":"= Tuple2 < Tuple14 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > , Tuple6 < T15 , T16 , T17 , T18 , T19 , T20 > > ( Tuple14 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) ) , Tuple6 < T15 , T16 , T17 , T18 , T19 , T20 > ( this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > Tuple20 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > . splitAt15 ( ) : Tuple2 < Tuple15 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > , Tuple5 < T16 , T17 , T18 , T19 , T20 > >","body":"= Tuple2 < Tuple15 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > , Tuple5 < T16 , T17 , T18 , T19 , T20 > > ( Tuple15 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) ) , Tuple5 < T16 , T17 , T18 , T19 , T20 > ( this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > Tuple20 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > . splitAt16 ( ) : Tuple2 < Tuple16 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > , Tuple4 < T17 , T18 , T19 , T20 > >","body":"= Tuple2 < Tuple16 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > , Tuple4 < T17 , T18 , T19 , T20 > > ( Tuple16 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) ) , Tuple4 < T17 , T18 , T19 , T20 > ( this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > Tuple20 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > . splitAt17 ( ) : Tuple2 < Tuple17 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > , Tuple3 < T18 , T19 , T20 > >","body":"= Tuple2 < Tuple17 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > , Tuple3 < T18 , T19 , T20 > > ( Tuple17 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) ) , Tuple3 < T18 , T19 , T20 > ( this . _18 ( ) , this . _19 ( ) , this . _20 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > Tuple20 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > . splitAt18 ( ) : Tuple2 < Tuple18 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > , Tuple2 < T19 , T20 > >","body":"= Tuple2 < Tuple18 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > , Tuple2 < T19 , T20 > > ( Tuple18 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) ) , Tuple2 < T19 , T20 > ( this . _19 ( ) , this . _20 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > Tuple20 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > . splitAt19 ( ) : Tuple2 < Tuple19 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > , Tuple1 < T20 > >","body":"= Tuple2 < Tuple19 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > , Tuple1 < T20 > > ( Tuple19 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) ) , Tuple1 < T20 > ( this . _20 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > Tuple20 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > . splitAt20 ( ) : Tuple2 < Tuple20 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > , EmptyTuple >","body":"= Tuple2 < Tuple20 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > , EmptyTuple > ( Tuple20 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) ) , EmptyTuple )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > Tuple21 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > . splitAt0 ( ) : Tuple2 < EmptyTuple , Tuple21 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > >","body":"= Tuple2 < EmptyTuple , Tuple21 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > > ( EmptyTuple , Tuple21 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) , this . _21 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > Tuple21 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > . splitAt1 ( ) : Tuple2 < Tuple1 < T1 > , Tuple20 < T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > >","body":"= Tuple2 < Tuple1 < T1 > , Tuple20 < T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > > ( Tuple1 < T1 > ( this . _1 ( ) ) , Tuple20 < T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > ( this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) , this . _21 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > Tuple21 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > . splitAt2 ( ) : Tuple2 < Tuple2 < T1 , T2 > , Tuple19 < T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > >","body":"= Tuple2 < Tuple2 < T1 , T2 > , Tuple19 < T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > > ( Tuple2 < T1 , T2 > ( this . _1 ( ) , this . _2 ( ) ) , Tuple19 < T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > ( this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) , this . _21 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > Tuple21 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > . splitAt3 ( ) : Tuple2 < Tuple3 < T1 , T2 , T3 > , Tuple18 < T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > >","body":"= Tuple2 < Tuple3 < T1 , T2 , T3 > , Tuple18 < T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > > ( Tuple3 < T1 , T2 , T3 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) ) , Tuple18 < T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > ( this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) , this . _21 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > Tuple21 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > . splitAt4 ( ) : Tuple2 < Tuple4 < T1 , T2 , T3 , T4 > , Tuple17 < T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > >","body":"= Tuple2 < Tuple4 < T1 , T2 , T3 , T4 > , Tuple17 < T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > > ( Tuple4 < T1 , T2 , T3 , T4 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) ) , Tuple17 < T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > ( this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) , this . _21 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > Tuple21 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > . splitAt5 ( ) : Tuple2 < Tuple5 < T1 , T2 , T3 , T4 , T5 > , Tuple16 < T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > >","body":"= Tuple2 < Tuple5 < T1 , T2 , T3 , T4 , T5 > , Tuple16 < T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > > ( Tuple5 < T1 , T2 , T3 , T4 , T5 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) ) , Tuple16 < T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > ( this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) , this . _21 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > Tuple21 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > . splitAt6 ( ) : Tuple2 < Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > , Tuple15 < T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > >","body":"= Tuple2 < Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > , Tuple15 < T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > > ( Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) ) , Tuple15 < T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > ( this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) , this . _21 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > Tuple21 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > . splitAt7 ( ) : Tuple2 < Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > , Tuple14 < T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > >","body":"= Tuple2 < Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > , Tuple14 < T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > > ( Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) ) , Tuple14 < T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > ( this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) , this . _21 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > Tuple21 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > . splitAt8 ( ) : Tuple2 < Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > , Tuple13 < T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > >","body":"= Tuple2 < Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > , Tuple13 < T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > > ( Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) ) , Tuple13 < T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > ( this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) , this . _21 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > Tuple21 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > . splitAt9 ( ) : Tuple2 < Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > , Tuple12 < T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > >","body":"= Tuple2 < Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > , Tuple12 < T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > > ( Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) ) , Tuple12 < T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > ( this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) , this . _21 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > Tuple21 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > . splitAt10 ( ) : Tuple2 < Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > , Tuple11 < T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > >","body":"= Tuple2 < Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > , Tuple11 < T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > > ( Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) ) , Tuple11 < T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > ( this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) , this . _21 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > Tuple21 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > . splitAt11 ( ) : Tuple2 < Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > , Tuple10 < T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > >","body":"= Tuple2 < Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > , Tuple10 < T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > > ( Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) ) , Tuple10 < T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > ( this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) , this . _21 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > Tuple21 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > . splitAt12 ( ) : Tuple2 < Tuple12 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > , Tuple9 < T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > >","body":"= Tuple2 < Tuple12 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > , Tuple9 < T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > > ( Tuple12 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) ) , Tuple9 < T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > ( this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) , this . _21 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > Tuple21 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > . splitAt13 ( ) : Tuple2 < Tuple13 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > , Tuple8 < T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > >","body":"= Tuple2 < Tuple13 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > , Tuple8 < T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > > ( Tuple13 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) ) , Tuple8 < T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > ( this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) , this . _21 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > Tuple21 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > . splitAt14 ( ) : Tuple2 < Tuple14 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > , Tuple7 < T15 , T16 , T17 , T18 , T19 , T20 , T21 > >","body":"= Tuple2 < Tuple14 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > , Tuple7 < T15 , T16 , T17 , T18 , T19 , T20 , T21 > > ( Tuple14 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) ) , Tuple7 < T15 , T16 , T17 , T18 , T19 , T20 , T21 > ( this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) , this . _21 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > Tuple21 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > . splitAt15 ( ) : Tuple2 < Tuple15 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > , Tuple6 < T16 , T17 , T18 , T19 , T20 , T21 > >","body":"= Tuple2 < Tuple15 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > , Tuple6 < T16 , T17 , T18 , T19 , T20 , T21 > > ( Tuple15 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) ) , Tuple6 < T16 , T17 , T18 , T19 , T20 , T21 > ( this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) , this . _21 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > Tuple21 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > . splitAt16 ( ) : Tuple2 < Tuple16 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > , Tuple5 < T17 , T18 , T19 , T20 , T21 > >","body":"= Tuple2 < Tuple16 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > , Tuple5 < T17 , T18 , T19 , T20 , T21 > > ( Tuple16 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) ) , Tuple5 < T17 , T18 , T19 , T20 , T21 > ( this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) , this . _21 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > Tuple21 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > . splitAt17 ( ) : Tuple2 < Tuple17 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > , Tuple4 < T18 , T19 , T20 , T21 > >","body":"= Tuple2 < Tuple17 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > , Tuple4 < T18 , T19 , T20 , T21 > > ( Tuple17 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) ) , Tuple4 < T18 , T19 , T20 , T21 > ( this . _18 ( ) , this . _19 ( ) , this . _20 ( ) , this . _21 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > Tuple21 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > . splitAt18 ( ) : Tuple2 < Tuple18 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > , Tuple3 < T19 , T20 , T21 > >","body":"= Tuple2 < Tuple18 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > , Tuple3 < T19 , T20 , T21 > > ( Tuple18 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) ) , Tuple3 < T19 , T20 , T21 > ( this . _19 ( ) , this . _20 ( ) , this . _21 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > Tuple21 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > . splitAt19 ( ) : Tuple2 < Tuple19 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > , Tuple2 < T20 , T21 > >","body":"= Tuple2 < Tuple19 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > , Tuple2 < T20 , T21 > > ( Tuple19 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) ) , Tuple2 < T20 , T21 > ( this . _20 ( ) , this . _21 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > Tuple21 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > . splitAt20 ( ) : Tuple2 < Tuple20 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > , Tuple1 < T21 > >","body":"= Tuple2 < Tuple20 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > , Tuple1 < T21 > > ( Tuple20 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) ) , Tuple1 < T21 > ( this . _21 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > Tuple21 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > . splitAt21 ( ) : Tuple2 < Tuple21 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > , EmptyTuple >","body":"= Tuple2 < Tuple21 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > , EmptyTuple > ( Tuple21 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) , this . _21 ( ) ) , EmptyTuple )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > Tuple22 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > . splitAt0 ( ) : Tuple2 < EmptyTuple , Tuple22 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > >","body":"= Tuple2 < EmptyTuple , Tuple22 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > > ( EmptyTuple , Tuple22 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) , this . _21 ( ) , this . _22 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > Tuple22 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > . splitAt1 ( ) : Tuple2 < Tuple1 < T1 > , Tuple21 < T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > >","body":"= Tuple2 < Tuple1 < T1 > , Tuple21 < T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > > ( Tuple1 < T1 > ( this . _1 ( ) ) , Tuple21 < T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > ( this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) , this . _21 ( ) , this . _22 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > Tuple22 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > . splitAt2 ( ) : Tuple2 < Tuple2 < T1 , T2 > , Tuple20 < T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > >","body":"= Tuple2 < Tuple2 < T1 , T2 > , Tuple20 < T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > > ( Tuple2 < T1 , T2 > ( this . _1 ( ) , this . _2 ( ) ) , Tuple20 < T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > ( this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) , this . _21 ( ) , this . _22 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > Tuple22 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > . splitAt3 ( ) : Tuple2 < Tuple3 < T1 , T2 , T3 > , Tuple19 < T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > >","body":"= Tuple2 < Tuple3 < T1 , T2 , T3 > , Tuple19 < T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > > ( Tuple3 < T1 , T2 , T3 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) ) , Tuple19 < T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > ( this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) , this . _21 ( ) , this . _22 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > Tuple22 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > . splitAt4 ( ) : Tuple2 < Tuple4 < T1 , T2 , T3 , T4 > , Tuple18 < T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > >","body":"= Tuple2 < Tuple4 < T1 , T2 , T3 , T4 > , Tuple18 < T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > > ( Tuple4 < T1 , T2 , T3 , T4 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) ) , Tuple18 < T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > ( this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) , this . _21 ( ) , this . _22 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > Tuple22 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > . splitAt5 ( ) : Tuple2 < Tuple5 < T1 , T2 , T3 , T4 , T5 > , Tuple17 < T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > >","body":"= Tuple2 < Tuple5 < T1 , T2 , T3 , T4 , T5 > , Tuple17 < T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > > ( Tuple5 < T1 , T2 , T3 , T4 , T5 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) ) , Tuple17 < T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > ( this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) , this . _21 ( ) , this . _22 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > Tuple22 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > . splitAt6 ( ) : Tuple2 < Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > , Tuple16 < T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > >","body":"= Tuple2 < Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > , Tuple16 < T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > > ( Tuple6 < T1 , T2 , T3 , T4 , T5 , T6 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) ) , Tuple16 < T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > ( this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) , this . _21 ( ) , this . _22 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > Tuple22 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > . splitAt7 ( ) : Tuple2 < Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > , Tuple15 < T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > >","body":"= Tuple2 < Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > , Tuple15 < T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > > ( Tuple7 < T1 , T2 , T3 , T4 , T5 , T6 , T7 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) ) , Tuple15 < T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > ( this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) , this . _21 ( ) , this . _22 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > Tuple22 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > . splitAt8 ( ) : Tuple2 < Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > , Tuple14 < T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > >","body":"= Tuple2 < Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > , Tuple14 < T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > > ( Tuple8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) ) , Tuple14 < T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > ( this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) , this . _21 ( ) , this . _22 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > Tuple22 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > . splitAt9 ( ) : Tuple2 < Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > , Tuple13 < T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > >","body":"= Tuple2 < Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > , Tuple13 < T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > > ( Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) ) , Tuple13 < T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > ( this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) , this . _21 ( ) , this . _22 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > Tuple22 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > . splitAt10 ( ) : Tuple2 < Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > , Tuple12 < T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > >","body":"= Tuple2 < Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > , Tuple12 < T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > > ( Tuple10 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) ) , Tuple12 < T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > ( this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) , this . _21 ( ) , this . _22 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > Tuple22 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > . splitAt11 ( ) : Tuple2 < Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > , Tuple11 < T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > >","body":"= Tuple2 < Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > , Tuple11 < T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > > ( Tuple11 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) ) , Tuple11 < T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > ( this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) , this . _21 ( ) , this . _22 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > Tuple22 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > . splitAt12 ( ) : Tuple2 < Tuple12 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > , Tuple10 < T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > >","body":"= Tuple2 < Tuple12 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > , Tuple10 < T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > > ( Tuple12 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) ) , Tuple10 < T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > ( this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) , this . _21 ( ) , this . _22 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > Tuple22 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > . splitAt13 ( ) : Tuple2 < Tuple13 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > , Tuple9 < T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > >","body":"= Tuple2 < Tuple13 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > , Tuple9 < T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > > ( Tuple13 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) ) , Tuple9 < T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > ( this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) , this . _21 ( ) , this . _22 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > Tuple22 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > . splitAt14 ( ) : Tuple2 < Tuple14 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > , Tuple8 < T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > >","body":"= Tuple2 < Tuple14 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > , Tuple8 < T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > > ( Tuple14 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) ) , Tuple8 < T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > ( this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) , this . _21 ( ) , this . _22 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > Tuple22 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > . splitAt15 ( ) : Tuple2 < Tuple15 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > , Tuple7 < T16 , T17 , T18 , T19 , T20 , T21 , T22 > >","body":"= Tuple2 < Tuple15 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > , Tuple7 < T16 , T17 , T18 , T19 , T20 , T21 , T22 > > ( Tuple15 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) ) , Tuple7 < T16 , T17 , T18 , T19 , T20 , T21 , T22 > ( this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) , this . _21 ( ) , this . _22 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > Tuple22 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > . splitAt16 ( ) : Tuple2 < Tuple16 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > , Tuple6 < T17 , T18 , T19 , T20 , T21 , T22 > >","body":"= Tuple2 < Tuple16 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > , Tuple6 < T17 , T18 , T19 , T20 , T21 , T22 > > ( Tuple16 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) ) , Tuple6 < T17 , T18 , T19 , T20 , T21 , T22 > ( this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) , this . _21 ( ) , this . _22 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > Tuple22 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > . splitAt17 ( ) : Tuple2 < Tuple17 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > , Tuple5 < T18 , T19 , T20 , T21 , T22 > >","body":"= Tuple2 < Tuple17 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > , Tuple5 < T18 , T19 , T20 , T21 , T22 > > ( Tuple17 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) ) , Tuple5 < T18 , T19 , T20 , T21 , T22 > ( this . _18 ( ) , this . _19 ( ) , this . _20 ( ) , this . _21 ( ) , this . _22 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > Tuple22 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > . splitAt18 ( ) : Tuple2 < Tuple18 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > , Tuple4 < T19 , T20 , T21 , T22 > >","body":"= Tuple2 < Tuple18 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > , Tuple4 < T19 , T20 , T21 , T22 > > ( Tuple18 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) ) , Tuple4 < T19 , T20 , T21 , T22 > ( this . _19 ( ) , this . _20 ( ) , this . _21 ( ) , this . _22 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > Tuple22 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > . splitAt19 ( ) : Tuple2 < Tuple19 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > , Tuple3 < T20 , T21 , T22 > >","body":"= Tuple2 < Tuple19 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > , Tuple3 < T20 , T21 , T22 > > ( Tuple19 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) ) , Tuple3 < T20 , T21 , T22 > ( this . _20 ( ) , this . _21 ( ) , this . _22 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > Tuple22 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > . splitAt20 ( ) : Tuple2 < Tuple20 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > , Tuple2 < T21 , T22 > >","body":"= Tuple2 < Tuple20 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > , Tuple2 < T21 , T22 > > ( Tuple20 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) ) , Tuple2 < T21 , T22 > ( this . _21 ( ) , this . _22 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > Tuple22 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > . splitAt21 ( ) : Tuple2 < Tuple21 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > , Tuple1 < T22 > >","body":"= Tuple2 < Tuple21 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > , Tuple1 < T22 > > ( Tuple21 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) , this . _21 ( ) ) , Tuple1 < T22 > ( this . _22 ( ) ) )","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > Tuple22 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > . splitAt22 ( ) : Tuple2 < Tuple22 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > , EmptyTuple >","body":"= Tuple2 < Tuple22 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > , EmptyTuple > ( Tuple22 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 > ( this . _1 ( ) , this . _2 ( ) , this . _3 ( ) , this . _4 ( ) , this . _5 ( ) , this . _6 ( ) , this . _7 ( ) , this . _8 ( ) , this . _9 ( ) , this . _10 ( ) , this . _11 ( ) , this . _12 ( ) , this . _13 ( ) , this . _14 ( ) , this . _15 ( ) , this . _16 ( ) , this . _17 ( ) , this . _18 ( ) , this . _19 ( ) , this . _20 ( ) , this . _21 ( ) , this . _22 ( ) ) , EmptyTuple )","docstring":""} {"signature":"fun foo ( b : Boolean ) : String","body":"{ return if ( b ) { \"\" } else if ( false ) { \"\" } else if ( true ) { \"\" } else if ( true ) { \"\" } else if ( b ) { \"\" } else { \"\" } }","docstring":""} {"signature":"fun box ( ) : String","body":"{ return foo ( true ) }","docstring":""} {"signature":"override fun check ( resolvedCall : ResolvedCall < * > , reportOn : PsiElement , context : CallCheckerContext )","body":"{ check ( resolvedCall . resultingDescriptor , context , reportOn ) }","docstring":""} {"signature":"private fun check ( targetDescriptor : CallableDescriptor , context : CallCheckerContext , element : PsiElement )","body":"{ if ( targetDescriptor is FakeCallableDescriptorForObject ) return val accessibility = targetDescriptor . checkSinceKotlinVersionAccessibility ( context . languageVersionSettings ) if ( accessibility is SinceKotlinAccessibility . NotAccessible ) { context . trace . report ( API_NOT_AVAILABLE . on ( element , accessibility . version . versionString , context . languageVersionSettings . apiVersion . versionString ) ) } if ( accessibility == SinceKotlinAccessibility . Accessible && targetDescriptor is PropertyDescriptor && DeprecatedCallChecker . shouldCheckPropertyGetter ( element ) ) { targetDescriptor . getter ? . let { check ( it , context , element ) } } }","docstring":""} {"signature":"fun testArrayAccess1 ( d : dynamic )","body":"= d [ \"\" ]","docstring":""} {"signature":"fun testArrayAccess2 ( d : dynamic )","body":"= d ( ) [ \"\" ]","docstring":""} {"signature":"fun testArrayAccess3 ( d : dynamic )","body":"= d . get ( \"\" )","docstring":""} {"signature":"inline fun < reified T : Any > Sequence < * > . firstIsInstanceOrNull ( ) : T ?","body":"{ for ( element in this ) if ( element is T ) return element return null }","docstring":""} {"signature":"fun faultyLvt ( )","body":"{ sequenceOf < Foo > ( ) . firstIsInstanceOrNull < Foo > ( ) ? . foos . orEmpty ( ) listOf < Foo > ( ) . map { it } }","docstring":""} {"signature":"fun box ( ) : String","body":"{ faultyLvt ( ) return \"\" }","docstring":""} {"signature":"override fun getContributedDescriptors ( kindFilter : DescriptorKindFilter , nameFilter : ( Name ) -> Boolean )","body":"= classDescriptorFactory . getAllContributedClassesIfPossible ( packageName )","docstring":""} {"signature":"override fun getContributedVariables ( name : Name , location : LookupLocation ) : Collection < PropertyDescriptor >","body":"= emptyList ( )","docstring":""} {"signature":"override fun getContributedFunctions ( name : Name , location : LookupLocation ) : Collection < SimpleFunctionDescriptor >","body":"= emptyList ( )","docstring":""} {"signature":"override fun getFunctionNames ( ) : Set < Name >","body":"= emptySet ( )","docstring":""} {"signature":"override fun getVariableNames ( ) : Set < Name >","body":"= emptySet ( )","docstring":""} {"signature":"override fun getClassifierNames ( ) : Set < Name > ?","body":"= null","docstring":""} {"signature":"override fun printScopeStructure ( p : Printer )","body":"{ TODO ( ) }","docstring":""} {"signature":"override fun getContributedClassifier ( name : Name , location : LookupLocation ) : ClassifierDescriptor ?","body":"= when { classDescriptorFactory . shouldCreateClass ( packageName , name ) -> classifiers . getOrPut ( name ) { classDescriptorFactory . createClass ( ClassId . topLevel ( packageName . child ( name ) ) ) ! ! } else -> null }","docstring":""} {"signature":"override fun getMemberScope ( )","body":"= memberScope","docstring":""} {"signature":"fun functionInterfacePackageFragmentProvider ( storageManager : StorageManager , module : ModuleDescriptor ) : PackageFragmentProvider","body":"{ val classFactory = BuiltInFictitiousFunctionClassFactory ( storageManager , module ) val fragments = listOf ( KOTLIN_REFLECT_FQ_NAME , BUILT_INS_PACKAGE_FQ_NAME , COROUTINES_PACKAGE_FQ_NAME ) . map { fqName -> FunctionInterfacePackageFragmentImpl ( classFactory , module , fqName ) } return PackageFragmentProviderImpl ( fragments ) }","docstring":""} {"signature":"operator fun contains ( position : Int ) : Boolean","body":"{ return position in from until to }","docstring":""} {"signature":"fun < T > use0 ( f : ( Int ) -> T )","body":"= f ( )","docstring":""} {"signature":"fun < T > use1 ( f : ( Int , String ) -> T )","body":"= f ( , \"\" )","docstring":""} {"signature":"fun box ( ) : String","body":"{ val oouter = Outer ( \"\" ) val r1 = use0 ( oouter :: Inner1 ) . result if ( r1 != \"\" ) return \"\" val r2 = use1 ( oouter :: Inner1 ) . result if ( r2 != \"\" ) return \"\" val r3 = use0 ( oouter :: Inner2 ) . result if ( r3 != \"\" ) return \"\" val r4 = use1 ( oouter :: Inner2 ) . result if ( r4 != \"\" ) return \"\" return \"\" }","docstring":""} {"signature":"fun doSetup ( )","body":"{ checkInHeadlessMode ( ) System . getProperties ( ) . setProperty ( \"\" , \"\" ) System . getProperties ( ) . setProperty ( \"\" , \"\" ) System . getProperties ( ) . setProperty ( \"\" , \"\" ) System . getProperties ( ) . setProperty ( \"\" , \"\" ) System . getProperties ( ) . setProperty ( \"\" , \"\" ) System . getProperties ( ) . setProperty ( \"\" , \"\" ) System . getProperties ( ) . setProperty ( \"\" , FALLBACK_IDEA_BUILD_NUMBER ) }","docstring":""} {"signature":"private fun checkInHeadlessMode ( )","body":"{ val application = ApplicationManager . getApplication ( ) ? : return if ( ! application . isHeadlessEnvironment ) { LOG . error ( Throwable ( \"\" ) ) } }","docstring":""} {"signature":"fun setupIdeaStandaloneExecution ( )","body":"= IdeaStandaloneExecutionSetup . doSetup ( )","docstring":""} {"signature":"public operator fun String . rangeTo ( endInclusive : String ) : ColumnSet < * >","body":"= toColumnAccessor ( ) . rangeTo ( endInclusive . toColumnAccessor ( ) )","docstring":"/**\n * @include [CommonRangeOfColumnsDocs]\n * {@set [CommonRangeOfColumnsDocs.Example] `\"fromColumn\"`[`..`][String.rangeTo]`\"toColumn\"`}\n */"} {"signature":"public operator fun String . rangeTo ( endInclusive : KProperty < * > ) : ColumnSet < * >","body":"= toColumnAccessor ( ) . rangeTo ( endInclusive . toColumnAccessor ( ) )","docstring":"/**\n * @include [CommonRangeOfColumnsDocs]\n * {@set [CommonRangeOfColumnsDocs.Example] `\"fromColumn\"`[`..`][String.rangeTo]`Type::toColumn`}\n */"} {"signature":"public operator fun String . rangeTo ( endInclusive : AnyColumnReference ) : ColumnSet < * >","body":"= toColumnAccessor ( ) . rangeTo ( endInclusive )","docstring":"/**\n * @include [CommonRangeOfColumnsDocs]\n * {@set [CommonRangeOfColumnsDocs.Example] `\"fromColumn\"`[`..`][String.rangeTo]`toColumn`}\n */"} {"signature":"public operator fun KProperty < * > . rangeTo ( endInclusive : String ) : ColumnSet < * >","body":"= toColumnAccessor ( ) . rangeTo ( endInclusive . toColumnAccessor ( ) )","docstring":"/**\n * @include [CommonRangeOfColumnsDocs]\n * {@set [CommonRangeOfColumnsDocs.Example] `Type::fromColumn`[`..`][KProperty.rangeTo]`\"toColumn\"`}\n */"} {"signature":"public operator fun KProperty < * > . rangeTo ( endInclusive : KProperty < * > ) : ColumnSet < * >","body":"= toColumnAccessor ( ) . rangeTo ( endInclusive . toColumnAccessor ( ) )","docstring":"/**\n * @include [CommonRangeOfColumnsDocs]\n * {@set [CommonRangeOfColumnsDocs.Example] `Type::fromColumn`[`..`][KProperty.rangeTo]`Type::toColumn`}\n */"} {"signature":"public operator fun KProperty < * > . rangeTo ( endInclusive : AnyColumnReference ) : ColumnSet < * >","body":"= toColumnAccessor ( ) . rangeTo ( endInclusive )","docstring":"/**\n * @include [CommonRangeOfColumnsDocs]\n * {@set [CommonRangeOfColumnsDocs.Example] `Type::fromColumn`[`..`][KProperty.rangeTo]`toColumn`}\n */"} {"signature":"public operator fun AnyColumnReference . rangeTo ( endInclusive : String ) : ColumnSet < * >","body":"= rangeTo ( endInclusive . toColumnAccessor ( ) )","docstring":"/**\n * @include [CommonRangeOfColumnsDocs]\n * {@set [CommonRangeOfColumnsDocs.Example] `fromColumn`[`..`][ColumnReference.rangeTo]`\"toColumn\"`}\n */"} {"signature":"public operator fun AnyColumnReference . rangeTo ( endInclusive : KProperty < * > ) : ColumnSet < * >","body":"= rangeTo ( endInclusive . toColumnAccessor ( ) )","docstring":"/**\n * @include [CommonRangeOfColumnsDocs]\n * {@set [CommonRangeOfColumnsDocs.Example] `fromColumn`[`..`][ColumnReference.rangeTo]`Type::toColumn`}\n */"} {"signature":"public operator fun AnyColumnReference . rangeTo ( endInclusive : AnyColumnReference ) : ColumnSet < * >","body":"= createColumnSet { context -> val startPath = this@rangeTo . resolveSingle ( context ) ! ! . path val endPath = endInclusive . resolveSingle ( context ) ! ! . path val parentPath = startPath . parent ( ) val parentEndPath = endPath . parent ( ) require ( parentPath == parentEndPath ) { \"\" } val parentCol = context . df . getColumnGroup ( parentPath ! ! ) val startIndex = parentCol . getColumnIndex ( startPath . name ) val endIndex = parentCol . getColumnIndex ( endPath . name ) require ( startIndex <= endIndex ) { \"\" } ( startIndex .. endIndex ) . map { parentCol . getColumn ( it ) . let { it . addPath ( parentPath + it . name ) } } }","docstring":"/**\n * @include [CommonRangeOfColumnsDocs]\n * {@set [CommonRangeOfColumnsDocs.Example] `fromColumn`[`..`][ColumnReference.rangeTo]`toColumn`}\n */"} {"signature":"fun DescriptorVisibility . toKVisibility ( ) : KVisibility ?","body":"{ return when ( this ) { DescriptorVisibilities . PUBLIC -> KVisibility . PUBLIC DescriptorVisibilities . PROTECTED -> KVisibility . PROTECTED DescriptorVisibilities . INTERNAL -> KVisibility . INTERNAL DescriptorVisibilities . PRIVATE -> KVisibility . PRIVATE else -> null } }","docstring":""} {"signature":"internal fun ReflectionState . asProxy ( callInterceptor : CallInterceptor ) : ReflectionProxy","body":"{ return when ( this ) { is KPropertyState -> when { this . isKMutableProperty0 ( ) -> KMutableProperty0Proxy ( this , callInterceptor ) this . isKProperty0 ( ) -> KProperty0Proxy ( this , callInterceptor ) this . isKMutableProperty1 ( ) -> KMutableProperty1Proxy ( this , callInterceptor ) this . isKProperty1 ( ) -> KProperty1Proxy ( this , callInterceptor ) this . isKMutableProperty2 ( ) -> KMutableProperty2Proxy ( this , callInterceptor ) this . isKProperty2 ( ) -> KProperty2Proxy ( this , callInterceptor ) else -> TODO ( ) } is KFunctionState -> KFunctionProxy ( this , callInterceptor ) is KClassState -> KClassProxy ( this , callInterceptor ) is KTypeState -> KTypeProxy ( this , callInterceptor ) is KTypeParameterState -> KTypeParameterProxy ( this , callInterceptor ) is KParameterState -> KParameterProxy ( this , callInterceptor ) else -> TODO ( \"\" ) } }","docstring":""} {"signature":"internal fun NonPositionalScale < * , * > . toVisualMap ( aes : Aes , dim : String , seriesIndex : Int , data : List < Any ? > ? , visualMapSize : Int , domainType : KType ) : VisualMap","body":"{ return when ( this ) { is NonPositionalCategoricalScale < * , * > -> { val categoriesString = domainCategories ? . map { value -> value ? . toString ( ) } ? : data ? . toSet ( ) ? . map { it ? . toString ( ) } val inRange = createInRange ( aes , rangeValues ) PiecewiseVisualMap ( dimension = dim , categories = categoriesString , inRange = inRange , seriesIndex = seriesIndex , right = , top = visualMapSize * ) } is NonPositionalContinuousScale < * , * > -> { val min = domainMin ? . toString ( ) ? . toDouble ( ) ? : data ? . asSequence ( ) ? . filterNotNull ( ) ? . minOfOrNull { ( it as Number ) . toDouble ( ) } val max = domainMax ? . toString ( ) ? . toDouble ( ) ? : data ? . asSequence ( ) ? . filterNotNull ( ) ? . maxOfOrNull { ( it as Number ) . toDouble ( ) } val valuesString = if ( rangeMin != null && rangeMax != null ) listOf ( rangeMin , rangeMax ) else null val inRange = createInRange ( aes , valuesString ) ContinuousVisualMap ( dimension = dim , min = min , max = max , inRange = inRange , seriesIndex = seriesIndex , right = , top = visualMapSize * ) } is NonPositionalDefaultScale -> { when ( domainType ) { typeOf < String > ( ) , typeOf < String ? > ( ) -> PiecewiseVisualMap ( dimension = dim , categories = data ? . toSet ( ) ? . map { it ? . toString ( ) } , seriesIndex = seriesIndex , right = , top = visualMapSize * ) else -> { val d = data ? . filterNotNull ( ) val min = d ? . minOfOrNull { ( it as Number ) . toDouble ( ) } val max = d ? . maxOfOrNull { ( it as Number ) . toDouble ( ) } ContinuousVisualMap ( dimension = dim , min = min , max = max , seriesIndex = seriesIndex , right = , top = visualMapSize * ) } } } else -> throw Exception ( \"\" ) } }","docstring":""} {"signature":"fun box ( ) : String","body":"{ var boo = \"\" var foo = object { val bar = object { val baz = boo } } return foo . bar . baz }","docstring":""} {"signature":"fun close ( )","body":"fun close ( )","docstring":""} {"signature":"fun requestPermission ( deprecatedCallback : ( NotificationPermission ) -> Unit = definedExternally ) : Promise < NotificationPermission >","body":"fun requestPermission ( deprecatedCallback : ( NotificationPermission ) -> Unit = definedExternally ) : Promise < NotificationPermission >","docstring":""} {"signature":"@ Suppress ( \"\" , \"\" ) @ kotlin . internal . InlineOnly public inline fun NotificationOptions ( dir : NotificationDirection ? = NotificationDirection . AUTO , lang : String ? = \"\" , body : String ? = \"\" , tag : String ? = \"\" , image : String ? = undefined , icon : String ? = undefined , badge : String ? = undefined , sound : String ? = undefined , vibrate : dynamic = undefined , timestamp : Number ? = undefined , renotify : Boolean ? = false , silent : Boolean ? = false , noscreen : Boolean ? = false , requireInteraction : Boolean ? = false , sticky : Boolean ? = false , data : Any ? = null , actions : Array < NotificationAction > ? = arrayOf ( ) ) : NotificationOptions","body":"{ val o = js ( \"\" ) o [ \"\" ] = dir o [ \"\" ] = lang o [ \"\" ] = body o [ \"\" ] = tag o [ \"\" ] = image o [ \"\" ] = icon o [ \"\" ] = badge o [ \"\" ] = sound o [ \"\" ] = vibrate o [ \"\" ] = timestamp o [ \"\" ] = renotify o [ \"\" ] = silent o [ \"\" ] = noscreen o [ \"\" ] = requireInteraction o [ \"\" ] = sticky o [ \"\" ] = data o [ \"\" ] = actions return o as NotificationOptions }","docstring":""} {"signature":"@ Suppress ( \"\" , \"\" ) @ kotlin . internal . InlineOnly public inline fun NotificationAction ( action : String ? , title : String ? , icon : String ? = undefined ) : NotificationAction","body":"{ val o = js ( \"\" ) o [ \"\" ] = action o [ \"\" ] = title o [ \"\" ] = icon return o as NotificationAction }","docstring":""} {"signature":"@ Suppress ( \"\" , \"\" ) @ kotlin . internal . InlineOnly public inline fun GetNotificationOptions ( tag : String ? = \"\" ) : GetNotificationOptions","body":"{ val o = js ( \"\" ) o [ \"\" ] = tag return o as GetNotificationOptions }","docstring":""} {"signature":"@ Suppress ( \"\" , \"\" ) @ kotlin . internal . InlineOnly public inline fun NotificationEventInit ( notification : Notification ? , action : String ? = \"\" , bubbles : Boolean ? = false , cancelable : Boolean ? = false , composed : Boolean ? = false ) : NotificationEventInit","body":"{ val o = js ( \"\" ) o [ \"\" ] = notification o [ \"\" ] = action o [ \"\" ] = bubbles o [ \"\" ] = cancelable o [ \"\" ] = composed return o as NotificationEventInit }","docstring":""} {"signature":"fun attribute ( key : String , value : String )","body":"{ attrs [ key ] = value }","docstring":"/**\n * Appends an attribute to the generated podspec\n */"} {"signature":"fun rawStatement ( statement : String )","body":"{ statements . add ( statement ) }","docstring":"/**\n * Appends a statement 'as is' to the end of the generated podspec\n */"} {"signature":"fun modifiedFunction ( ) : Int","body":"= ","docstring":""} {"signature":"@ Before fun configure ( )","body":"{ configureProject ( ) }","docstring":""} {"signature":"protected fun doTest ( testPath : String )","body":"{ val fileText = KotlinTestUtils . getText ( testPath ) val testEditor = configureEditor ( KotlinTestUtils . getNameByPath ( testPath ) , fileText ) val ktEditor = testEditor . editor as KotlinEditor val analysisResult = KotlinAnalyzer . analyzeFile ( ktEditor . parsedFile ! ! ) . analysisResult val errorMessages = renderErrors ( analysisResult ) . joinToString ( \"\" ) Assert . assertFalse ( errorMessages , hasErrors ( analysisResult ) ) }","docstring":""} {"signature":"private fun hasErrors ( analysisResult : AnalysisResult ) : Boolean","body":"{ return getErrors ( analysisResult ) . isNotEmpty ( ) }","docstring":""} {"signature":"private fun renderErrors ( analysisResult : AnalysisResult ) : List < String >","body":"{ return getErrors ( analysisResult ) . map { DefaultErrorMessages . render ( it ) } }","docstring":""} {"signature":"private fun getErrors ( analysisResult : AnalysisResult ) : List < Diagnostic >","body":"{ return analysisResult . bindingContext . diagnostics . filter { it . severity == Severity . ERROR } }","docstring":""} {"signature":"private fun resolveKotlinBinaryClass ( kotlinClass : KotlinJvmBinaryClass ? ) : KotlinClassLookupResult","body":"= when { kotlinClass == null -> { KotlinClassLookupResult . NotFound } kotlinClass . classHeader . kind == KotlinClassHeader . Kind . CLASS -> { val descriptor = c . components . deserializedDescriptorResolver . resolveClass ( kotlinClass ) if ( descriptor != null ) KotlinClassLookupResult . Found ( descriptor ) else KotlinClassLookupResult . NotFound } else -> { KotlinClassLookupResult . SyntheticClass } }","docstring":""} {"signature":"override fun equals ( other : Any ? )","body":"= other is FindClassRequest && name == other . name","docstring":""} {"signature":"override fun hashCode ( )","body":"= name . hashCode ( )","docstring":""} {"signature":"override fun getContributedClassifier ( name : Name , location : LookupLocation )","body":"= findClassifier ( name , null )","docstring":""} {"signature":"private fun findClassifier ( name : Name , javaClass : JavaClass ? ) : ClassDescriptor ?","body":"{ if ( ! SpecialNames . isSafeIdentifier ( name ) ) return null val knownClassNamesInPackage = knownClassNamesInPackage ( ) if ( javaClass == null && knownClassNamesInPackage != null && name . asString ( ) !in knownClassNamesInPackage ) { return null } return classes ( FindClassRequest ( name , javaClass ) ) }","docstring":""} {"signature":"internal fun findClassifierByJavaClass ( javaClass : JavaClass )","body":"= findClassifier ( javaClass . name , javaClass )","docstring":""} {"signature":"override fun getContributedVariables ( name : Name , location : LookupLocation ) : Collection < PropertyDescriptor >","body":"= emptyList ( )","docstring":""} {"signature":"override fun computeMemberIndex ( ) : DeclaredMemberIndex","body":"= DeclaredMemberIndex . Empty","docstring":""} {"signature":"override fun computeClassNames ( kindFilter : DescriptorKindFilter , nameFilter : ( ( Name ) -> Boolean ) ? ) : Set < Name >","body":"{ if ( ! kindFilter . acceptsKinds ( DescriptorKindFilter . NON_SINGLETON_CLASSIFIERS_MASK ) ) return emptySet ( ) val knownClassNamesInPackage = knownClassNamesInPackage ( ) if ( knownClassNamesInPackage != null ) return knownClassNamesInPackage . mapTo ( HashSet ( ) ) { Name . identifier ( it ) } return jPackage . getClasses ( nameFilter ? : alwaysTrue ( ) ) . mapNotNullTo ( linkedSetOf ( ) ) { klass -> if ( klass . lightClassOriginKind == LightClassOriginKind . SOURCE ) null else klass . name } }","docstring":""} {"signature":"override fun computeFunctionNames ( kindFilter : DescriptorKindFilter , nameFilter : ( ( Name ) -> Boolean ) ? ) : Set < Name >","body":"= emptySet ( )","docstring":""} {"signature":"override fun computeNonDeclaredFunctions ( result : MutableCollection < SimpleFunctionDescriptor > , name : Name )","body":"{ }","docstring":""} {"signature":"override fun computePropertyNames ( kindFilter : DescriptorKindFilter , nameFilter : ( ( Name ) -> Boolean ) ? )","body":"= emptySet < Name > ( )","docstring":""} {"signature":"override fun getContributedDescriptors ( kindFilter : DescriptorKindFilter , nameFilter : ( Name ) -> Boolean ) : Collection < DeclarationDescriptor >","body":"{ return if ( ! kindFilter . acceptsKinds ( DescriptorKindFilter . CLASSIFIERS_MASK or DescriptorKindFilter . NON_SINGLETON_CLASSIFIERS_MASK ) ) { emptyList ( ) } else { allDescriptors ( ) . filter { it is ClassDescriptor && nameFilter ( it . name ) } } }","docstring":""} {"signature":"suspend fun functionA ( x : Int , s : String , b : Boolean ? = null ) : Int","body":"suspend fun functionA ( x : Int , s : String , b : Boolean ? = null ) : Int","docstring":""} {"signature":"fun function1 ( ) : Int","body":"= ","docstring":""} {"signature":"@ JsName ( \"\" ) fun valueOrThrow ( exp : Throwable ) : T","body":"@ JsName ( \"\" ) fun valueOrThrow ( exp : Throwable ) : T","docstring":""} {"signature":"fun valueOrThrow ( ) : T","body":"= valueOrThrow ( NoSuchElementException ( \"\" ) )","docstring":""} {"signature":"override fun valueOrThrow ( exp : Throwable ) : Nothing","body":"= throw exp","docstring":""} {"signature":"suspend fun doAction ( )","body":"{ suspend fun run ( a : String , f : suspend ( String ) -> Unit = { input -> result = input } ) { f ( a ) } run ( \"\" ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ suspend { doAction ( ) } . startCoroutine ( EmptyContinuation ) return result }","docstring":""} {"signature":"fun < S1 : A > foo ( s : S1 ) : String","body":"= when ( s ) { is B -> foo ( s ) is C -> foo ( s ) else -> throw AssertionError ( s ) }","docstring":""} {"signature":"abstract fun < S2 : B > foo ( s : S2 ) : String","body":"abstract fun < S2 : B > foo ( s : S2 ) : String","docstring":""} {"signature":"abstract fun < S3 : C > foo ( s : S3 ) : String","body":"abstract fun < S3 : C > foo ( s : S3 ) : String","docstring":""} {"signature":"override fun < S4 : B > foo ( s : S4 ) : String","body":"= \"\"","docstring":""} {"signature":"override fun < S5 : C > foo ( s : S5 ) : String","body":"= \"\"","docstring":""} {"signature":"fun box ( ) : String","body":"= Y ( ) . foo ( B ( ) ) + Y ( ) . foo ( C ( ) )","docstring":""} {"signature":"abstract fun visitPredicate ( predicate : AbstractPredicate < P > , data : D ) : R","body":"abstract fun visitPredicate ( predicate : AbstractPredicate < P > , data : D ) : R","docstring":""} {"signature":"open fun visitAnd ( predicate : AbstractPredicate . And < P > , data : D ) : R","body":"{ return visitPredicate ( predicate , data ) }","docstring":""} {"signature":"open fun visitOr ( predicate : AbstractPredicate . Or < P > , data : D ) : R","body":"{ return visitPredicate ( predicate , data ) }","docstring":""} {"signature":"open fun visitAnnotated ( predicate : AbstractPredicate . Annotated < P > , data : D ) : R","body":"{ return visitPredicate ( predicate , data ) }","docstring":""} {"signature":"open fun visitAnnotatedWith ( predicate : AbstractPredicate . AnnotatedWith < P > , data : D ) : R","body":"{ return visitAnnotated ( predicate , data ) }","docstring":""} {"signature":"open fun visitAncestorAnnotatedWith ( predicate : AbstractPredicate . AncestorAnnotatedWith < P > , data : D ) : R","body":"{ return visitAnnotated ( predicate , data ) }","docstring":""} {"signature":"open fun visitParentAnnotatedWith ( predicate : AbstractPredicate . ParentAnnotatedWith < P > , data : D ) : R","body":"{ return visitAnnotated ( predicate , data ) }","docstring":""} {"signature":"open fun visitHasAnnotatedWith ( predicate : AbstractPredicate . HasAnnotatedWith < P > , data : D ) : R","body":"{ return visitAnnotated ( predicate , data ) }","docstring":""} {"signature":"open fun visitMetaAnnotatedWith ( predicate : AbstractPredicate . MetaAnnotatedWith < P > , data : D ) : R","body":"{ return visitPredicate ( predicate , data ) }","docstring":""} {"signature":"private fun test ( setepId : Int , i : InterfaceA ) : Int","body":"{ return i . functionA ( x = , i = ) }","docstring":""} {"signature":"fun testDefaltParam ( setepId : Int ) : Int","body":"{ return test ( setepId , ClassA ( ) ) }","docstring":""} {"signature":"override fun toString ( ) : String","body":"{ return typeAsString }","docstring":""} {"signature":"fun box ( ) : String","body":"{ return \"\" }","docstring":""} {"signature":"fun box ( ) : String","body":"{ class A fun A . foo ( ) = \"\" return ( A :: foo ) . let { c -> c ( ( :: A ) . let { it ( ) } ) } }","docstring":""} {"signature":"@ PublishedApi internal fun NonNullNativePtr . toNativePtr ( )","body":"= this","docstring":""} {"signature":"internal fun NativePtr . toNonNull ( ) : NonNullNativePtr","body":"= this","docstring":""} {"signature":"@ Deprecated ( \"\" ) @ Suppress ( \"\" ) inline fun < reified T : CVariable > typeOf ( )","body":"= @ Suppress ( \"\" ) typeOfCache . getOrPut ( T :: class . java ) { T :: class . companionObjectInstance as CVariable . Type }","docstring":""} {"signature":"@ Suppress ( \"\" ) inline fun < reified T : NativePointed > interpretNullablePointed ( ptr : NativePtr ) : T ?","body":"{ if ( ptr == nativeNullPtr ) { return null } else { val result = nativeMemUtils . allocateInstance < T > ( ) result . rawPtr = ptr return result } }","docstring":"/**\n * Returns interpretation of entity with given pointer, or `null` if it is null.\n *\n * @param T must not be abstract\n */"} {"signature":"fun < T : CPointed > interpretCPointer ( rawValue : NativePtr )","body":"= if ( rawValue == nativeNullPtr ) { null } else { CPointer < T > ( rawValue ) }","docstring":"/**\n * Creates a [CPointer] from the raw pointer of [NativePtr].\n *\n * @return a [CPointer] representation, or `null` if the [rawValue] represents native `nullptr`.\n */"} {"signature":"internal fun CPointer < * > . cPointerToString ( )","body":"= \"\" . format ( rawValue )","docstring":""} {"signature":"override fun createEnvironment ( ) : KotlinCoreEnvironment","body":"{ return createEnvironmentWithJdk ( ConfigurationKind . ALL , TestJdkKind . FULL_JDK ) }","docstring":""} {"signature":"@ OptIn ( ObsoleteTestInfrastructure :: class ) fun testBuiltInPackagesContent ( )","body":"{ val moduleDescriptor = BuiltinsTestUtils . compileBuiltinsModule ( environment ) val session = FirTestSessionFactoryHelper . createSessionForTests ( environment . toAbstractProjectEnvironment ( ) , GlobalSearchScope . allScope ( project ) . toAbstractProjectFileSearchScope ( ) ) for ( packageFqName in BuiltinsTestUtils . BUILTIN_PACKAGE_NAMES ) { val path = \"\" + packageFqName . asString ( ) . replace ( '' , '' ) + \"\" checkPackageContent ( session , packageFqName , moduleDescriptor , path ) } }","docstring":""} {"signature":"inline fun inlineCall ( action : ( complete : ( ) -> Unit ) -> Unit )","body":"{ action { bar += \"\" } }","docstring":""} {"signature":"fun start ( )","body":"{ inlineCall { bar += \"\" it ( ) } }","docstring":""} {"signature":"fun box ( )","body":"{ val foo = Foo ( ) foo . start ( ) }","docstring":""} {"signature":"fun TestBasic ( )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun TestBasicReverse ( )","body":"{ }","docstring":""} {"signature":"fun TestIdenticalReturnTypes ( ) : TestIdenticalReturnTypes","body":"= TestIdenticalReturnTypes ( )","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun TestIdenticalReturnTypesReverse ( ) : TestIdenticalReturnTypesReverse","body":"= TestIdenticalReturnTypesReverse ( )","docstring":""} {"signature":"inline fun < reified T > TestFunctionWithReifiedTypeParameterVsConstructorA ( )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) inline fun < reified T > TestFunctionWithReifiedTypeParameterVsConstructorAReverse ( )","body":"{ }","docstring":""} {"signature":"inline fun < reified T > TestFunctionWithReifiedTypeParameterVsConstructorB ( arg : T )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) inline fun < reified T > TestFunctionWithReifiedTypeParameterVsConstructorBReverse ( arg : T )","body":"{ }","docstring":""} {"signature":"inline fun < reified T > TestFunctionWithReifiedTypeParameterVsConstructorC ( arg : Invariant < T > )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) inline fun < reified T > TestFunctionWithReifiedTypeParameterVsConstructorCReverse ( arg : Invariant < T > )","body":"{ }","docstring":""} {"signature":"inline fun TestInlineFunctionVsConstructor ( )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) inline fun TestInlineFunctionVsConstructorReverse ( )","body":"{ }","docstring":""} {"signature":"tailrec fun TestTailrecFunctionVsConstructor ( )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) tailrec fun TestTailrecFunctionVsConstructorReverse ( )","body":"{ }","docstring":""} {"signature":"fun TestFunctionVsPrimaryConstructor ( )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun TestFunctionVsPrimaryConstructorReverse ( )","body":"{ }","docstring":""} {"signature":"fun TestFunctionVsDelegatedPrimaryConstructorCall ( )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun TestFunctionVsDelegatedPrimaryConstructorCallReverse ( )","body":"{ }","docstring":""} {"signature":"fun TestFunctionVsDelegatedSuperConstructorCall ( )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun TestFunctionVsDelegatedSuperConstructorCallReverse ( )","body":"{ }","docstring":""} {"signature":"fun TestIdenticalValueParameters ( arg : UserKlass )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun TestIdenticalValueParametersReverse ( arg : UserKlass )","body":"{ }","docstring":""} {"signature":"fun TestDifferentlyNamedValueParameters ( argB : UserKlass )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun TestDifferentlyNamedValueParametersReverse ( argB : UserKlass )","body":"{ }","docstring":""} {"signature":"fun TestTypeAliasedValueParameterTypesA ( arg : SameUserKlass )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun TestTypeAliasedValueParameterTypesAReverse ( arg : SameUserKlass )","body":"{ }","docstring":""} {"signature":"fun TestTypeAliasedValueParameterTypesB ( arg : UserKlass )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun TestTypeAliasedValueParameterTypesBReverse ( arg : UserKlass )","body":"{ }","docstring":""} {"signature":"fun TestMultipleIdenticalValueParameters ( arg1 : UserKlassA , arg2 : UserKlassB )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun TestMultipleIdenticalValueParametersReverse ( arg1 : UserKlassA , arg2 : UserKlassB )","body":"{ }","docstring":""} {"signature":"fun TestMultipleDifferentlyNamedValueParametersA ( arg1 : UserKlassA , arg2B : UserKlassB )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun TestMultipleDifferentlyNamedValueParametersAReverse ( arg1 : UserKlassA , arg2B : UserKlassB )","body":"{ }","docstring":""} {"signature":"fun TestMultipleDifferentlyNamedValueParametersB ( arg1B : UserKlassA , arg2B : UserKlassB )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun TestMultipleDifferentlyNamedValueParametersBReverse ( arg1B : UserKlassA , arg2B : UserKlassB )","body":"{ }","docstring":""} {"signature":"fun TestMultipleTypeAliasedValueParameterTypesA ( arg1 : UserKlassA , arg2 : SameUserKlassB )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun TestMultipleTypeAliasedValueParameterTypesAReverse ( arg1 : UserKlassA , arg2 : SameUserKlassB )","body":"{ }","docstring":""} {"signature":"fun TestMultipleTypeAliasedValueParameterTypesB ( arg1 : SameUserKlassA , arg2 : SameUserKlassB )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun TestMultipleTypeAliasedValueParameterTypesBReverse ( arg1 : SameUserKlassA , arg2 : SameUserKlassB )","body":"{ }","docstring":""} {"signature":"fun < T > TestIdenticalTypeParametersA ( )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun < T > TestIdenticalTypeParametersAReverse ( )","body":"{ }","docstring":""} {"signature":"fun < T > TestIdenticalTypeParametersB ( arg : T )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun < T > TestIdenticalTypeParametersBReverse ( arg : T )","body":"{ }","docstring":""} {"signature":"fun < T > TestIdenticalTypeParametersC ( arg : Invariant < T > )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun < T > TestIdenticalTypeParametersCReverse ( arg : Invariant < T > )","body":"{ }","docstring":""} {"signature":"fun < T1 , T2 > TestMultipleIdenticalTypeParameters ( )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun < T1 , T2 > TestMultipleIdenticalTypeParametersReverse ( )","body":"{ }","docstring":""} {"signature":"fun < T : UserInterface > TestTypeParameterWithIdenticalUpperBoundsA ( )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun < T : UserInterface > TestTypeParameterWithIdenticalUpperBoundsAReverse ( )","body":"{ }","docstring":""} {"signature":"fun < T : UserInterface > TestTypeParameterWithIdenticalUpperBoundsB ( arg : T )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun < T : UserInterface > TestTypeParameterWithIdenticalUpperBoundsBReverse ( arg : T )","body":"{ }","docstring":""} {"signature":"fun < T : UserInterface > TestTypeParameterWithIdenticalUpperBoundsC ( arg : Invariant < T > )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun < T : UserInterface > TestTypeParameterWithIdenticalUpperBoundsCReverse ( arg : Invariant < T > )","body":"{ }","docstring":""} {"signature":"fun < T > TestTypeParameterWithMultipleIdenticalUpperBoundsAA ( ) where T : UserInterfaceA , T : UserInterfaceB","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun < T > TestTypeParameterWithMultipleIdenticalUpperBoundsAAReverse ( ) where T : UserInterfaceA , T : UserInterfaceB","body":"{ }","docstring":""} {"signature":"fun < T > TestTypeParameterWithMultipleIdenticalUpperBoundsAB ( arg : T ) where T : UserInterfaceA , T : UserInterfaceB","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun < T > TestTypeParameterWithMultipleIdenticalUpperBoundsABReverse ( arg : T ) where T : UserInterfaceA , T : UserInterfaceB","body":"{ }","docstring":""} {"signature":"fun < T > TestTypeParameterWithMultipleIdenticalUpperBoundsAC ( arg : Invariant < T > ) where T : UserInterfaceA , T : UserInterfaceB","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun < T > TestTypeParameterWithMultipleIdenticalUpperBoundsACReverse ( arg : Invariant < T > ) where T : UserInterfaceA , T : UserInterfaceB","body":"{ }","docstring":""} {"signature":"fun < T : UserInterfaceA > TestTypeParameterWithMultipleIdenticalUpperBoundsBA ( ) where T : UserInterfaceB","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun < T : UserInterfaceA > TestTypeParameterWithMultipleIdenticalUpperBoundsBAReverse ( ) where T : UserInterfaceB","body":"{ }","docstring":""} {"signature":"fun < T : UserInterfaceA > TestTypeParameterWithMultipleIdenticalUpperBoundsBB ( arg : T ) where T : UserInterfaceB","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun < T : UserInterfaceA > TestTypeParameterWithMultipleIdenticalUpperBoundsBBReverse ( arg : T ) where T : UserInterfaceB","body":"{ }","docstring":""} {"signature":"fun < T : UserInterfaceA > TestTypeParameterWithMultipleIdenticalUpperBoundsBC ( arg : Invariant < T > ) where T : UserInterfaceB","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) fun < T : UserInterfaceA > TestTypeParameterWithMultipleIdenticalUpperBoundsBCReverse ( arg : Invariant < T > ) where T : UserInterfaceB","body":"{ }","docstring":""} {"signature":"private fun TestIdenticalPrivateVisibility ( )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) private fun TestIdenticalPrivateVisibilityReverse ( )","body":"{ }","docstring":""} {"signature":"internal fun TestIdenticalInternalVisibility ( )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) internal fun TestIdenticalInternalVisibilityReverse ( )","body":"{ }","docstring":""} {"signature":"public fun TestDifferencesInPrivateAndPublicVisibilitiesA ( )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) public fun TestDifferencesInPrivateAndPublicVisibilitiesAReverse ( )","body":"{ }","docstring":""} {"signature":"private fun TestDifferencesInPrivateAndPublicVisibilitiesB ( )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) private fun TestDifferencesInPrivateAndPublicVisibilitiesBReverse ( )","body":"{ }","docstring":""} {"signature":"public fun TestDifferencesInInternalAndPublicVisibilitiesA ( )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) public fun TestDifferencesInInternalAndPublicVisibilitiesAReverse ( )","body":"{ }","docstring":""} {"signature":"internal fun TestDifferencesInInternalAndPublicVisibilitiesB ( )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) internal fun TestDifferencesInInternalAndPublicVisibilitiesBReverse ( )","body":"{ }","docstring":""} {"signature":"internal fun TestDifferencesInPrivateAndInternalVisibilitiesA ( )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) internal fun TestDifferencesInPrivateAndInternalVisibilitiesAReverse ( )","body":"{ }","docstring":""} {"signature":"private fun TestDifferencesInPrivateAndInternalVisibilitiesB ( )","body":"{ }","docstring":""} {"signature":"@ Deprecated ( message = \"\" , level = DeprecationLevel . HIDDEN ) private fun TestDifferencesInPrivateAndInternalVisibilitiesBReverse ( )","body":"{ }","docstring":""} {"signature":"operator fun get ( index : Int ) : T","body":"= value ! !","docstring":""} {"signature":"operator fun set ( index : Int , value : T )","body":"{ this . value = value }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val list = MyList < Int > ( ) list [ ] = list [ ] = list [ ] ++ return \"\" }","docstring":""} {"signature":"@ JvmStatic fun typedArraysEnabled ( config : JsConfig )","body":"= config . configuration . get ( JSConfigurationKeys . TYPED_ARRAYS_ENABLED , true )","docstring":""} {"signature":"fun unsignedPrimitiveToSigned ( type : KotlinType ) : PrimitiveType ?","body":"{ if ( ! type . isInlineClassType ( ) || type . isMarkedNullable ) return null return when { KotlinBuiltIns . isUByte ( type ) -> BYTE KotlinBuiltIns . isUShort ( type ) -> SHORT KotlinBuiltIns . isUInt ( type ) -> INT KotlinBuiltIns . isULong ( type ) -> LONG else -> null } }","docstring":""} {"signature":"fun castOrCreatePrimitiveArray ( ctx : TranslationContext , type : KotlinType , arg : JsArrayLiteral ) : JsExpression","body":"{ if ( type . isMarkedNullable ) return arg val unsignedPrimitiveType = unsignedPrimitiveToSigned ( type ) if ( unsignedPrimitiveType != null ) { val conversionFunction = \"\" arg . expressions . replaceAll { JsInvocation ( JsNameRef ( conversionFunction , it ) ) } } val primitiveType = unsignedPrimitiveType ? : KotlinBuiltIns . getPrimitiveType ( type ) ? . takeUnless { type . isMarkedNullable } if ( primitiveType == null || ! typedArraysEnabled ( ctx . config ) ) return arg return if ( primitiveType in TYPED_ARRAY_MAP ) { createTypedArray ( primitiveType , arg ) } else { JsAstUtils . invokeKotlinFunction ( primitiveType . lowerCaseName + \"\" , * arg . expressions . toTypedArray ( ) ) } }","docstring":""} {"signature":"private fun createTypedArray ( type : PrimitiveType , arg : JsExpression ) : JsExpression","body":"{ assert ( type in TYPED_ARRAY_MAP ) return JsNew ( JsNameRef ( TYPED_ARRAY_MAP [ type ] + \"\" ) , listOf ( arg ) ) }","docstring":""} {"signature":"fun getTag ( descriptor : CallableDescriptor , config : JsConfig ) : String ?","body":"{ if ( descriptor !is ConstructorDescriptor ) return null val constructedClass = descriptor . constructedClass if ( ! KotlinBuiltIns . isArrayOrPrimitiveArray ( constructedClass ) ) return null if ( descriptor . valueParameters . size != ) return null val ( sizeParam , functionParam ) = descriptor . valueParameters if ( ! KotlinBuiltIns . isInt ( sizeParam . type ) || ! functionParam . type . isBuiltinFunctionalType ) return null if ( functionParam . type . getValueParameterTypesFromFunctionType ( ) . size != ) return null val primitiveType = KotlinBuiltIns . getPrimitiveArrayElementType ( constructedClass . defaultType ) return if ( typedArraysEnabled ( config ) && primitiveType != null ) { if ( primitiveType in TYPED_ARRAY_MAP ) { \"\" } else { \"\" } } else { if ( primitiveType == CHAR ) { \"\" } else { \"\" } } }","docstring":""} {"signature":"private fun createConstructorIntrinsic ( type : PrimitiveType ? ) : FunctionIntrinsic","body":"{ return intrinsify { callInfo , arguments , context -> assert ( arguments . size == ) { \"\" } val ( size , fn ) = arguments val invocation = if ( typedArraysEnabled ( context . config ) && type != null ) { if ( type in TYPED_ARRAY_MAP ) { JsAstUtils . invokeKotlinFunction ( \"\" , createTypedArray ( type , size ) , fn ) } else { JsAstUtils . invokeKotlinFunction ( \"\" , size , fn ) } } else { JsAstUtils . invokeKotlinFunction ( if ( type == CHAR ) \"\" else \"\" , size , fn ) } invocation . isInline = true val descriptor = callInfo . resolvedCall . resultingDescriptor . original val resolvedDescriptor = when ( descriptor ) { is TypeAliasConstructorDescriptor -> descriptor . underlyingConstructorDescriptor else -> descriptor } invocation . descriptor = resolvedDescriptor context . addInlineCall ( resolvedDescriptor ) invocation } }","docstring":""} {"signature":"private fun intrinsify ( f : ( callInfo : CallInfo , arguments : List < JsExpression > , context : TranslationContext ) -> JsExpression ) ","body":"= object : FunctionIntrinsic ( ) { override fun apply ( callInfo : CallInfo , arguments : List < JsExpression > , context : TranslationContext ) : JsExpression { return f ( callInfo , arguments , context ) } }","docstring":""} {"signature":"@ OptIn ( KspExperimental :: class ) internal fun renderExtensions ( declaration : KSClassDeclaration , interfaceName : String , visibility : MarkerVisibility , properties : List < Property > , ) : String","body":"{ val generator = ExtensionsCodeGenerator . create ( ) val typeArguments = declaration . typeParameters . map { it . name . asString ( ) } val typeParameters = declaration . typeParameters . map { buildString { append ( it . name . asString ( ) ) val bounds = it . bounds . toList ( ) if ( bounds . isNotEmpty ( ) ) { append ( \"\" ) append ( bounds . joinToString ( \"\" ) { it . resolve ( ) . render ( ) } ) } } } return generator . generate ( object : AbstractMarker ( typeParameters , typeArguments ) { override val name : String = interfaceName override val fields : List < BaseField > = properties . map { val type = it . propertyType . resolve ( ) val qualifiedTypeReference = getQualifiedTypeReference ( type ) val fieldType = when { qualifiedTypeReference == \"\" && type . singleTypeArgumentIsDataSchema ( ) || qualifiedTypeReference == DataFrameNames . DATA_FRAME -> FieldType . FrameFieldType ( markerName = type . renderTypeArguments ( ) , nullable = type . isMarkedNullable , ) type . declaration . isAnnotationPresent ( DataSchema :: class ) -> FieldType . GroupFieldType ( type . render ( ) ) qualifiedTypeReference == DataFrameNames . DATA_ROW -> FieldType . GroupFieldType ( type . renderTypeArguments ( ) ) else -> FieldType . ValueFieldType ( type . render ( ) ) } BaseFieldImpl ( fieldName = ValidFieldName . of ( it . fieldName ) , columnName = it . columnName , fieldType = fieldType ) } override val visibility : MarkerVisibility = visibility } ) . declarations }","docstring":""} {"signature":"private fun getQualifiedTypeReference ( type : KSType )","body":"= when ( val declaration = type . declaration ) { is KSTypeParameter -> declaration . name . getShortName ( ) else -> declaration . getQualifiedNameOrThrow ( ) }","docstring":""} {"signature":"@ OptIn ( KspExperimental :: class ) private fun KSType . singleTypeArgumentIsDataSchema ( )","body":"= innerArguments . singleOrNull ( ) ? . type ? . resolve ( ) ? . declaration ? . isAnnotationPresent ( DataSchema :: class ) ? : false","docstring":""} {"signature":"private fun KSType . render ( ) : String","body":"{ val fqTypeReference = getQualifiedTypeReference ( this ) return buildString { append ( fqTypeReference ) if ( innerArguments . isNotEmpty ( ) ) { append ( \"\" ) append ( renderTypeArguments ( ) ) append ( \">\" ) } if ( isMarkedNullable ) { append ( \"\" ) } } }","docstring":""} {"signature":"private fun KSType . renderTypeArguments ( ) : String","body":"= innerArguments . joinToString ( \"\" ) { render ( it ) }","docstring":""} {"signature":"private fun render ( typeArgument : KSTypeArgument ) : String","body":"{ return when ( val variance = typeArgument . variance ) { Variance . STAR -> variance . label Variance . INVARIANT , Variance . COVARIANT , Variance . CONTRAVARIANT -> buildString { append ( variance . label ) if ( variance . label . isNotEmpty ( ) ) { append ( \"\" ) } append ( typeArgument . type ? . resolve ( ) ? . render ( ) ? : error ( \"\" ) ) } } }","docstring":""} {"signature":"fun ConeClassifierLookupTag . toSymbol ( useSiteSession : FirSession ) : FirClassifierSymbol < * > ?","body":"= when ( this ) { is ConeClassLikeLookupTag -> toSymbol ( useSiteSession ) is ConeClassifierLookupTagWithFixedSymbol -> this . symbol else -> error ( \"\" ) }","docstring":"/**\n * Main operation on the [ConeClassifierLookupTag]\n *\n * Lookups the tag into its target within the given [useSiteSession]\n *\n * The second step of type refinement, see `/docs/fir/k2_kmp.md`\n *\n * @see ConeClassifierLookupTag\n */"} {"signature":"@ OptIn ( LookupTagInternals :: class ) fun ConeClassLikeLookupTag . toSymbol ( useSiteSession : FirSession ) : FirClassLikeSymbol < * > ?","body":"{ if ( this is ConeClassLookupTagWithFixedSymbol ) { return this . symbol } ( this as? ConeClassLikeLookupTagImpl ) ? . boundSymbol ? . takeIf { it . first === useSiteSession } ? . let { return it . second } return useSiteSession . symbolProvider . getClassLikeSymbolByClassId ( classId ) . also { ( this as? ConeClassLikeLookupTagImpl ) ? . bindSymbolToLookupTag ( useSiteSession , it ) } }","docstring":"/**\n * @see toSymbol\n */"} {"signature":"fun ConeClassLikeLookupTag . toClassSymbol ( session : FirSession ) : FirClassSymbol < * > ?","body":"= toSymbol ( session ) as? FirClassSymbol < * >","docstring":"/**\n * @see toSymbol\n */"} {"signature":"fun ConeClassLikeLookupTag . toFirRegularClassSymbol ( session : FirSession ) : FirRegularClassSymbol ?","body":"= toSymbol ( session ) as? FirRegularClassSymbol","docstring":"/**\n * @see toSymbol\n */"} {"signature":"fun FirClassLikeSymbol < * > . getClassAndItsOuterClassesWhenLocal ( session : FirSession ) : Set < FirClassLikeSymbol < * > >","body":"= generateSequence ( this . takeIf { it . isLocal } ) { if ( it . isInner ) it . getContainingClassLookupTag ( ) ? . toFirRegularClassSymbol ( session ) else null } . toSet ( )","docstring":""} {"signature":"@ OptIn ( LookupTagInternals :: class ) fun ConeClassLikeLookupTagImpl . bindSymbolToLookupTag ( session : FirSession , symbol : FirClassLikeSymbol < * > ? )","body":"{ boundSymbol = WeakPair ( session , symbol ) }","docstring":""} {"signature":"@ SymbolInternals fun ConeClassLikeLookupTag . toFirRegularClass ( session : FirSession ) : FirRegularClass ?","body":"= toFirRegularClassSymbol ( session ) ? . fir","docstring":""} {"signature":"fun FirSymbolProvider . getSymbolByLookupTag ( lookupTag : ConeClassifierLookupTag ) : FirClassifierSymbol < * > ?","body":"{ return lookupTag . toSymbol ( session ) }","docstring":""} {"signature":"fun FirSymbolProvider . getSymbolByLookupTag ( lookupTag : ConeClassLikeLookupTag ) : FirClassLikeSymbol < * > ?","body":"{ return lookupTag . toSymbol ( session ) }","docstring":""} {"signature":"fun ConeKotlinType . withParameterNameAnnotation ( parameter : FirFunctionTypeParameter , session : FirSession ) : ConeKotlinType","body":"{ val name = parameter . name if ( name == null || name == SpecialNames . NO_NAME_PROVIDED || name == SpecialNames . UNDERSCORE_FOR_UNUSED_VAR ) return this if ( attributes . customAnnotations . getAnnotationsByClassId ( StandardNames . FqNames . parameterNameClassId , session ) . isNotEmpty ( ) ) return this val fakeSource = parameter . source ? . fakeElement ( KtFakeSourceElementKind . ParameterNameAnnotationCall ) val parameterNameAnnotationCall = buildAnnotation { source = fakeSource annotationTypeRef = buildResolvedTypeRef { source = fakeSource type = ConeClassLikeTypeImpl ( StandardNames . FqNames . parameterNameClassId . toLookupTag ( ) , emptyArray ( ) , isNullable = false ) } argumentMapping = buildAnnotationArgumentMapping { mapping [ StandardClassIds . Annotations . ParameterNames . parameterNameName ] = buildLiteralExpression ( fakeSource , ConstantValueKind . String , name . asString ( ) , setType = true ) } } val attributesWithParameterNameAnnotation = ConeAttributes . create ( listOf ( CustomAnnotationTypeAttribute ( listOf ( parameterNameAnnotationCall ) ) ) ) return withCombinedAttributesFrom ( attributesWithParameterNameAnnotation ) }","docstring":""} {"signature":"fun ConeKotlinType . withCombinedAttributesFrom ( other : ConeKotlinType ) : ConeKotlinType","body":"= withCombinedAttributesFrom ( other . attributes )","docstring":""} {"signature":"private fun ConeKotlinType . withCombinedAttributesFrom ( other : ConeAttributes ) : ConeKotlinType","body":"{ if ( other . isEmpty ( ) ) return this val combinedConeAttributes = attributes . add ( other ) return withAttributes ( combinedConeAttributes ) }","docstring":""} {"signature":"fun ConeKotlinType . findClassRepresentation ( dispatchReceiverParameterType : ConeKotlinType , session : FirSession ) : ConeClassLikeLookupTag ?","body":"= when ( this ) { is ConeClassLikeType -> this . fullyExpandedType ( session ) . lookupTag is ConeDynamicType -> upperBound . findClassRepresentation ( dispatchReceiverParameterType , session ) is ConeFlexibleType -> lowerBound . findClassRepresentation ( dispatchReceiverParameterType , session ) is ConeCapturedType -> constructor . supertypes . orEmpty ( ) . findClassRepresentationThatIsSubtypeOf ( dispatchReceiverParameterType , session ) is ConeDefinitelyNotNullType -> original . findClassRepresentation ( dispatchReceiverParameterType , session ) is ConeIntegerLiteralType -> possibleTypes . findClassRepresentationThatIsSubtypeOf ( dispatchReceiverParameterType , session ) is ConeIntersectionType -> intersectedTypes . findClassRepresentationThatIsSubtypeOf ( dispatchReceiverParameterType , session ) is ConeTypeParameterType -> lookupTag . findClassRepresentationThatIsSubtypeOf ( dispatchReceiverParameterType , session ) is ConeTypeVariableType -> ( this . typeConstructor . originalTypeParameter as? ConeTypeParameterLookupTag ) ? . findClassRepresentationThatIsSubtypeOf ( dispatchReceiverParameterType , session ) is ConeStubType -> ( this . constructor . variable . typeConstructor . originalTypeParameter as? ConeTypeParameterLookupTag ) ? . findClassRepresentationThatIsSubtypeOf ( dispatchReceiverParameterType , session ) is ConeLookupTagBasedType -> null }","docstring":""} {"signature":"private fun ConeTypeParameterLookupTag . findClassRepresentationThatIsSubtypeOf ( supertype : ConeKotlinType , session : FirSession ) : ConeClassLikeLookupTag ?","body":"= typeParameterSymbol . resolvedBounds . map { it . coneType } . findClassRepresentationThatIsSubtypeOf ( supertype , session )","docstring":""} {"signature":"private fun Collection < ConeKotlinType > . findClassRepresentationThatIsSubtypeOf ( supertype : ConeKotlinType , session : FirSession ) : ConeClassLikeLookupTag ?","body":"{ val supertypeLowerBound = supertype . lowerBoundIfFlexible ( ) val compatibleComponent = this . firstOrNull { it . isSubtypeOf ( supertypeLowerBound , session ) } ? : return null return compatibleComponent . findClassRepresentation ( supertypeLowerBound , session ) }","docstring":""} {"signature":"fun KtExpression . getKotlinTypeForComparison ( bindingContext : BindingContext ) : KotlinType ?","body":"= when { this is KtProperty -> bindingContext [ BindingContext . VARIABLE , this ] ? . type else -> bindingContext . getType ( this ) }","docstring":""} {"signature":"fun KtExpression ? . getKotlinTypeWithPossibleSmartCastToFP ( bindingContext : BindingContext , descriptor : DeclarationDescriptor ? , languageVersionSettings : LanguageVersionSettings , dataFlowValueFactory : DataFlowValueFactory , defaultType : ( KotlinType , Set < KotlinType > ) -> KotlinType = { givenType , _ -> givenType } ) : KotlinType ?","body":"{ val givenType = this ? . getKotlinTypeForComparison ( bindingContext ) ? : return null if ( KotlinBuiltIns . isDoubleOrNullableDouble ( givenType ) ) { return givenType } if ( KotlinBuiltIns . isFloatOrNullableFloat ( givenType ) ) { return givenType } if ( descriptor != null ) { val dataFlow = dataFlowValueFactory . createDataFlowValue ( this , givenType , bindingContext , descriptor ) val stableTypes = bindingContext . getDataFlowInfoBefore ( this ) . getStableTypes ( dataFlow , languageVersionSettings ) return stableTypes . firstNotNullOfOrNull { when { KotlinBuiltIns . isDoubleOrNullableDouble ( it ) -> it KotlinBuiltIns . isFloatOrNullableFloat ( it ) -> it else -> null } } ? : defaultType ( givenType , stableTypes ) } return givenType }","docstring":""} {"signature":"fun foo ( )","body":"{ }","docstring":""} {"signature":"fun box ( ) : String","body":"{ try { foo ( ) as Int ? } catch ( e : ClassCastException ) { return \"\" } catch ( e : Throwable ) { return \"\" } return \"\" }","docstring":""} {"signature":"fun foo ( )","body":"{ }","docstring":""} {"signature":"fun bar ( )","body":"= \"\"","docstring":""} {"signature":"fun Int . baz ( )","body":"= this","docstring":""} {"signature":"fun box ( ) : String","body":"{ assertEquals ( \"\" , :: foo . name ) assertEquals ( \"\" , A :: bar . name ) assertEquals ( \"\" , Int :: baz . name ) return \"\" }","docstring":""} {"signature":"override fun isOverridable ( superDescriptor : CallableDescriptor , subDescriptor : CallableDescriptor , subClassDescriptor : ClassDescriptor ? ) : Result","body":"{ if ( subDescriptor !is JavaMethodDescriptor || subDescriptor . typeParameters . isNotEmpty ( ) ) return Result . UNKNOWN val basicOverridability = OverridingUtil . getBasicOverridabilityProblem ( superDescriptor , subDescriptor ) ? . result if ( basicOverridability != null ) return Result . UNKNOWN val signatureTypes = subDescriptor . valueParameters . asSequence ( ) . map { it . type } + subDescriptor . returnType ! ! + listOfNotNull ( subDescriptor . extensionReceiverParameter ? . type ) if ( signatureTypes . any { it . arguments . isNotEmpty ( ) && it . unwrap ( ) !is RawTypeImpl } ) return Result . UNKNOWN var erasedSuper = superDescriptor . substitute ( RawSubstitution ( ) . buildSubstitutor ( ) ) ? : return Result . UNKNOWN if ( erasedSuper is SimpleFunctionDescriptor && erasedSuper . typeParameters . isNotEmpty ( ) ) { erasedSuper = erasedSuper . newCopyBuilder ( ) . setTypeParameters ( emptyList ( ) ) . build ( ) ! ! } val overridabilityResult = OverridingUtil . DEFAULT . isOverridableByWithoutExternalConditions ( erasedSuper , subDescriptor , false ) . result return when ( overridabilityResult ) { OverridingUtil . OverrideCompatibilityInfo . Result . OVERRIDABLE -> Result . OVERRIDABLE else -> Result . UNKNOWN } }","docstring":""} {"signature":"override fun getContract ( )","body":"= ExternalOverridabilityCondition . Contract . SUCCESS_ONLY","docstring":""} {"signature":"fun yield ( arg : CT )","body":"{ }","docstring":""} {"signature":"fun materialize ( ) : CT","body":"= UserKlass ( ) as CT","docstring":""} {"signature":"fun < FT > build ( instructions : Buildee < FT > . ( ) -> Unit ) : Buildee < FT >","body":"{ return Buildee < FT > ( ) . apply ( instructions ) }","docstring":""} {"signature":"fun testYield ( )","body":"{ val arg : T & Any = UserKlass ( ) as ( T & Any ) val buildee = build { yield ( arg ) } checkExactType < Buildee < T & Any > > ( buildee ) }","docstring":""} {"signature":"fun testMaterialize ( )","body":"{ fun consume ( arg : T & Any ) { } val buildee = build { consume ( materialize ( ) ) } checkExactType < Buildee < T & Any > > ( buildee ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ with ( Context < UserKlass ? > ( ) ) { testYield ( ) testMaterialize ( ) } return \"\" }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val t = java . lang . String . copyValueOf ( java . lang . String ( \"\" ) . toCharArray ( ) ) val i = java . lang . Integer . MAX_VALUE val j = java . lang . Integer . valueOf ( ) val s = java . lang . String . valueOf ( ) val l = java . util . Collections . emptyList < Int > ( ) return \"\" }","docstring":""} {"signature":"fun withoutAnnotation ( x : Int ) : Int","body":"{ if ( x > ) { return + withoutAnnotation ( x - ) } return }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val r = withoutAnnotation ( ) if ( r == ) return \"\" return \"\" }","docstring":""} {"signature":"internal fun insertImplicitCasts ( file : IrFile , context : GeneratorContext )","body":"{ InsertImplicitCasts ( context . irBuiltIns , context . typeTranslator , context . callToSubstitutedDescriptorMap , context . extensions , context . symbolTable , file , ) . run ( file ) }","docstring":""} {"signature":"fun run ( element : IrElement )","body":"{ element . transformChildrenVoid ( this ) postprocessReturnExpressions ( element ) }","docstring":""} {"signature":"private fun postprocessReturnExpressions ( element : IrElement )","body":"{ element . acceptChildrenVoid ( object : IrElementVisitorVoid { override fun visitReturn ( expression : IrReturn ) { super . visitReturn ( expression ) val expectedReturnType = expectedFunctionExpressionReturnType [ expression . returnTargetSymbol . descriptor ] ? : return expression . value = expression . value . cast ( expectedReturnType ) } override fun visitClass ( declaration : IrClass ) { typeTranslator . buildWithScope ( declaration ) { super . visitClass ( declaration ) } } override fun visitFunction ( declaration : IrFunction ) { typeTranslator . buildWithScope ( declaration ) { super . visitFunction ( declaration ) } } override fun visitElement ( element : IrElement ) { element . acceptChildrenVoid ( this ) } override fun visitCall ( expression : IrCall ) { expression . acceptChildrenVoid ( this ) } } ) }","docstring":""} {"signature":"private fun KotlinType . toIrType ( )","body":"= typeTranslator . translateType ( this )","docstring":""} {"signature":"override fun visitCallableReference ( expression : IrCallableReference < * > ) : IrExpression","body":"{ val substitutedDescriptor = expression . substitutedDescriptor return expression . transformPostfix { transformReceiverArguments ( substitutedDescriptor ) } }","docstring":""} {"signature":"private fun IrMemberAccessExpression < * > . transformReceiverArguments ( substitutedDescriptor : CallableDescriptor )","body":"{ dispatchReceiver = dispatchReceiver ? . cast ( getEffectiveDispatchReceiverType ( substitutedDescriptor ) ) val extensionReceiverType = substitutedDescriptor . extensionReceiverParameter ? . type val originalExtensionReceiverType = substitutedDescriptor . original . extensionReceiverParameter ? . type extensionReceiver = extensionReceiver ? . cast ( extensionReceiverType , originalExtensionReceiverType ) }","docstring":""} {"signature":"private fun getEffectiveDispatchReceiverType ( descriptor : CallableDescriptor ) : KotlinType ?","body":"= when { descriptor !is CallableMemberDescriptor -> null descriptor . kind == CallableMemberDescriptor . Kind . FAKE_OVERRIDE -> { val containingDeclaration = descriptor . containingDeclaration if ( containingDeclaration !is ClassDescriptor ) throw AssertionError ( \"\" ) else containingDeclaration . defaultType . replaceArgumentsWithStarProjections ( ) } else -> descriptor . dispatchReceiverParameter ? . type }","docstring":""} {"signature":"override fun visitMemberAccess ( expression : IrMemberAccessExpression < * > ) : IrExpression","body":"{ val substitutedDescriptor = expression . substitutedDescriptor return expression . transformPostfix { transformReceiverArguments ( substitutedDescriptor ) for ( index in substitutedDescriptor . valueParameters . indices ) { val irIndex = index + substitutedDescriptor . contextReceiverParameters . size val argument = getValueArgument ( irIndex ) ? : continue val parameterType = substitutedDescriptor . valueParameters [ index ] . type val originalParameterType = substitutedDescriptor . original . valueParameters [ index ] . type val expectedType = if ( argument . isSamConversion ( ) && KotlinBuiltIns . isNothing ( parameterType ) ) substitutedDescriptor . original . valueParameters [ index ] . type . replaceArgumentsWithNothing ( ) else parameterType putValueArgument ( irIndex , argument . cast ( expectedType , originalExpectedType = originalParameterType ) ) } } }","docstring":""} {"signature":"private fun IrExpression . isSamConversion ( ) : Boolean","body":"= this is IrTypeOperatorCall && operator == IrTypeOperator . SAM_CONVERSION","docstring":""} {"signature":"override fun visitBlockBody ( body : IrBlockBody ) : IrBody","body":"= body . transformPostfix { statements . forEachIndexed { i , irStatement -> if ( irStatement is IrExpression ) { body . statements [ i ] = irStatement . coerceToUnit ( ) } } }","docstring":""} {"signature":"override fun visitContainerExpression ( expression : IrContainerExpression ) : IrExpression","body":"= expression . transformPostfix { if ( statements . isEmpty ( ) ) return this val lastIndex = statements . lastIndex statements . forEachIndexed { i , irStatement -> if ( irStatement is IrExpression ) { statements [ i ] = if ( i == lastIndex ) irStatement . cast ( type ) else irStatement . coerceToUnit ( ) } } }","docstring":""} {"signature":"override fun visitReturn ( expression : IrReturn ) : IrExpression","body":"= expression . transformPostfix { value = if ( expression . returnTargetSymbol is IrConstructorSymbol ) { value . coerceToUnit ( ) } else { value . cast ( expression . returnTargetSymbol . descriptor . returnType ) } }","docstring":""} {"signature":"override fun visitSetValue ( expression : IrSetValue ) : IrExpression","body":"= expression . transformPostfix { value = value . cast ( expression . symbol . owner . type ) }","docstring":""} {"signature":"override fun visitGetField ( expression : IrGetField ) : IrExpression","body":"= expression . transformPostfix { receiver = receiver ? . cast ( getEffectiveDispatchReceiverType ( expression . substitutedDescriptor ) ) }","docstring":""} {"signature":"override fun visitSetField ( expression : IrSetField ) : IrExpression","body":"= expression . transformPostfix { val substituted = expression . substitutedDescriptor as PropertyDescriptor receiver = receiver ? . cast ( getEffectiveDispatchReceiverType ( substituted ) ) value = value . cast ( substituted . type ) }","docstring":""} {"signature":"override fun visitVariable ( declaration : IrVariable ) : IrVariable","body":"= declaration . transformPostfix { initializer = initializer ? . cast ( declaration . type ) }","docstring":""} {"signature":"override fun visitField ( declaration : IrField ) : IrStatement","body":"{ return typeTranslator . withTypeErasure ( declaration . correspondingPropertySymbol ? . descriptor ? : declaration . descriptor ) { declaration . transformPostfix { initializer ? . coerceInnerExpression ( descriptor . type ) } } }","docstring":""} {"signature":"override fun visitFunction ( declaration : IrFunction ) : IrStatement","body":"= typeTranslator . buildWithScope ( declaration ) { declaration . transformPostfix { valueParameters . forEach { it . defaultValue ? . coerceInnerExpression ( it . descriptor . type ) } } }","docstring":""} {"signature":"override fun visitClass ( declaration : IrClass ) : IrStatement","body":"= typeTranslator . buildWithScope ( declaration ) { super . visitClass ( declaration ) }","docstring":""} {"signature":"override fun visitWhen ( expression : IrWhen ) : IrExpression","body":"= expression . transformPostfix { for ( irBranch in branches ) { irBranch . condition = irBranch . condition . cast ( irBuiltIns . booleanType ) irBranch . result = irBranch . result . cast ( type ) } }","docstring":""} {"signature":"override fun visitLoop ( loop : IrLoop ) : IrExpression","body":"= loop . transformPostfix { condition = condition . cast ( irBuiltIns . booleanType ) body = body ? . coerceToUnit ( ) }","docstring":""} {"signature":"override fun visitThrow ( expression : IrThrow ) : IrExpression","body":"= expression . transformPostfix { value = value . cast ( irBuiltIns . throwableType ) }","docstring":""} {"signature":"override fun visitTry ( aTry : IrTry ) : IrExpression","body":"= aTry . transformPostfix { tryResult = tryResult . cast ( type ) for ( aCatch in catches ) { aCatch . result = aCatch . result . cast ( type ) } finallyExpression = finallyExpression ? . coerceToUnit ( ) }","docstring":""} {"signature":"override fun visitTypeOperator ( expression : IrTypeOperatorCall ) : IrExpression","body":"= when ( expression . operator ) { IrTypeOperator . SAM_CONVERSION -> expression . transformPostfix { argument = argument . cast ( typeOperand . originalKotlinType ! ! . getSubstitutedFunctionTypeForSamType ( ) ) } IrTypeOperator . IMPLICIT_CAST -> { expression . transformChildrenVoid ( ) expression . argument . cast ( expression . typeOperand ) } else -> super . visitTypeOperator ( expression ) }","docstring":""} {"signature":"override fun visitVararg ( expression : IrVararg ) : IrExpression","body":"= expression . transformPostfix { elements . forEachIndexed { i , element -> when ( element ) { is IrSpreadElement -> element . expression = element . expression . cast ( expression . type ) is IrExpression -> putElement ( i , element . cast ( varargElementType ) ) } } }","docstring":""} {"signature":"private fun IrExpressionBody . coerceInnerExpression ( expectedType : KotlinType )","body":"{ expression = expression . cast ( expectedType ) }","docstring":""} {"signature":"private fun IrExpression . cast ( irType : IrType ) : IrExpression","body":"= cast ( irType . originalKotlinType )","docstring":""} {"signature":"private fun KotlinType . getFunctionReturnTypeOrNull ( ) : KotlinType ?","body":"= if ( isFunctionType || isSuspendFunctionType ) arguments . last ( ) . type else null","docstring":""} {"signature":"private fun IrExpression . cast ( possiblyNonDenotableExpectedType : KotlinType ? , originalExpectedType : KotlinType ? = possiblyNonDenotableExpectedType ) : IrExpression","body":"{ if ( possiblyNonDenotableExpectedType == null ) return this if ( possiblyNonDenotableExpectedType . isError ) return this val expectedType = typeTranslator . approximate ( possiblyNonDenotableExpectedType ) if ( this is IrFunctionExpression && originalExpectedType != null ) { recordExpectedLambdaReturnTypeIfAppropriate ( expectedType , originalExpectedType ) } val notNullableExpectedType = expectedType . makeNotNullable ( ) val valueType = this . type . originalKotlinType ? : error ( \"\" ) return when { expectedType . isUnit ( ) -> coerceToUnit ( ) valueType . isDynamic ( ) && ! expectedType . isDynamic ( ) -> if ( expectedType . isNullableAny ( ) ) this else implicitCast ( expectedType , IrTypeOperator . IMPLICIT_DYNAMIC_CAST ) valueType . isNullabilityFlexible ( ) && valueType . containsNull ( ) && ! expectedType . acceptsNullValues ( ) -> implicitNonNull ( valueType , expectedType ) valueType . hasEnhancedNullability ( ) && ! expectedType . acceptsNullValues ( ) -> implicitNonNull ( valueType , expectedType ) KotlinTypeChecker . DEFAULT . isSubtypeOf ( valueType . toNonIrBased ( ) , expectedType . toNonIrBased ( ) . makeNullable ( ) ) -> this KotlinBuiltIns . isInt ( valueType ) && notNullableExpectedType . isBuiltInIntegerType ( ) -> coerceIntToAnotherIntegerType ( notNullableExpectedType ) else -> { val targetType = if ( ! valueType . containsNull ( ) ) notNullableExpectedType else expectedType implicitCast ( targetType , IrTypeOperator . IMPLICIT_CAST ) } } }","docstring":""} {"signature":"private fun IrFunctionExpression . recordExpectedLambdaReturnTypeIfAppropriate ( expectedType : KotlinType , originalExpectedType : KotlinType )","body":"{ val returnTypeFromExpected = expectedType . getFunctionReturnTypeOrNull ( ) ? : return val returnTypeFromOriginalExpected = originalExpectedType . getFunctionReturnTypeOrNull ( ) if ( returnTypeFromOriginalExpected ? . isTypeParameter ( ) != true ) { expectedFunctionExpressionReturnType [ function . descriptor ] = returnTypeFromExpected . toIrType ( ) } }","docstring":""} {"signature":"private fun KotlinType . acceptsNullValues ( )","body":"= containsNull ( ) || hasEnhancedNullability ( )","docstring":""} {"signature":"private fun KotlinType . hasEnhancedNullability ( )","body":"= generatorExtensions . enhancedNullability . hasEnhancedNullability ( this )","docstring":""} {"signature":"private fun IrExpression . implicitNonNull ( valueType : KotlinType , expectedType : KotlinType ) : IrExpression","body":"{ val nonNullFlexibleType = valueType . upperIfFlexible ( ) . makeNotNullable ( ) val nonNullValueType = generatorExtensions . enhancedNullability . stripEnhancedNullability ( nonNullFlexibleType ) return implicitCast ( nonNullValueType , IrTypeOperator . IMPLICIT_NOTNULL ) . cast ( expectedType ) }","docstring":""} {"signature":"private fun IrExpression . implicitCast ( targetType : KotlinType , typeOperator : IrTypeOperator ) : IrExpression","body":"{ val irType = targetType . toIrType ( ) return IrTypeOperatorCallImpl ( startOffset , endOffset , irType , typeOperator , irType , this ) }","docstring":""} {"signature":"private fun IrExpression . coerceIntToAnotherIntegerType ( targetType : KotlinType ) : IrExpression","body":"{ if ( ! type . originalKotlinType ! ! . isInt ( ) ) throw AssertionError ( \"\" ) if ( targetType . isInt ( ) ) return this if ( generatorExtensions . shouldPreventDeprecatedIntegerValueTypeLiteralConversion && this is IrCall && preventDeprecatedIntegerValueTypeLiteralConversion ( ) ) return this return if ( this is IrConst < * > ) { val value = this . value as Int val irType = targetType . toIrType ( ) when { targetType . isByte ( ) -> IrConstImpl . byte ( startOffset , endOffset , irType , value . toByte ( ) ) targetType . isShort ( ) -> IrConstImpl . short ( startOffset , endOffset , irType , value . toShort ( ) ) targetType . isLong ( ) -> IrConstImpl . long ( startOffset , endOffset , irType , value . toLong ( ) ) KotlinBuiltIns . isUByte ( targetType ) -> IrConstImpl . byte ( startOffset , endOffset , irType , value . toByte ( ) ) KotlinBuiltIns . isUShort ( targetType ) -> IrConstImpl . short ( startOffset , endOffset , irType , value . toShort ( ) ) KotlinBuiltIns . isUInt ( targetType ) -> IrConstImpl . int ( startOffset , endOffset , irType , value ) KotlinBuiltIns . isULong ( targetType ) -> IrConstImpl . long ( startOffset , endOffset , irType , value . toLong ( ) ) else -> throw AssertionError ( \"\" ) } } else { when { targetType . isByte ( ) -> invokeIntegerCoercionFunction ( targetType , \"\" ) targetType . isShort ( ) -> invokeIntegerCoercionFunction ( targetType , \"\" ) targetType . isLong ( ) -> invokeIntegerCoercionFunction ( targetType , \"\" ) KotlinBuiltIns . isUByte ( targetType ) -> invokeUnsignedIntegerCoercionFunction ( targetType , \"\" ) KotlinBuiltIns . isUShort ( targetType ) -> invokeUnsignedIntegerCoercionFunction ( targetType , \"\" ) KotlinBuiltIns . isUInt ( targetType ) -> invokeUnsignedIntegerCoercionFunction ( targetType , \"\" ) KotlinBuiltIns . isULong ( targetType ) -> invokeUnsignedIntegerCoercionFunction ( targetType , \"\" ) else -> throw AssertionError ( \"\" ) } } }","docstring":""} {"signature":"private fun IrCall . preventDeprecatedIntegerValueTypeLiteralConversion ( ) : Boolean","body":"{ val descriptor = symbol . descriptor if ( descriptor . name !in operatorsWithDeprecatedIntegerValueTypeLiteralConversion ) return false if ( origin in OPERATORS_DESUGARED_TO_CALLS ) return false if ( descriptor . isInfix ) { if ( ( file . fileEntry as? PsiIrFileEntry ) ? . findPsiElement ( this ) is KtBinaryExpression ) return false } return descriptor . dispatchReceiverParameter ? . type ? . let { KotlinBuiltIns . isPrimitiveType ( it ) } == true }","docstring":""} {"signature":"private fun IrExpression . invokeIntegerCoercionFunction ( targetType : KotlinType , coercionFunName : String ) : IrExpression","body":"{ val coercionFunction = irBuiltIns . intClass . descriptor . unsubstitutedMemberScope . findSingleFunction ( Name . identifier ( coercionFunName ) ) return IrCallImpl ( startOffset , endOffset , targetType . toIrType ( ) , symbolTable . descriptorExtension . referenceSimpleFunction ( coercionFunction ) , typeArgumentsCount = , valueArgumentsCount = ) . also { irCall -> irCall . dispatchReceiver = this } }","docstring":""} {"signature":"private fun IrExpression . invokeUnsignedIntegerCoercionFunction ( targetType : KotlinType , coercionFunName : String ) : IrExpression","body":"{ val coercionFunction = targetType . constructor . declarationDescriptor ! ! . module . getPackage ( StandardNames . BUILT_INS_PACKAGE_FQ_NAME ) . memberScope . getContributedFunctions ( Name . identifier ( coercionFunName ) , NoLookupLocation . FROM_BACKEND ) . find { val extensionReceiver = it . extensionReceiverParameter extensionReceiver != null && extensionReceiver . type . isInt ( ) } ? : throw AssertionError ( \"\" ) return IrCallImpl ( startOffset , endOffset , targetType . toIrType ( ) , symbolTable . descriptorExtension . referenceSimpleFunction ( coercionFunction ) , typeArgumentsCount = , valueArgumentsCount = ) . also { irCall -> irCall . extensionReceiver = this } }","docstring":""} {"signature":"private fun KotlinType . isBuiltInIntegerType ( ) : Boolean","body":"= KotlinBuiltIns . isByte ( this ) || KotlinBuiltIns . isShort ( this ) || KotlinBuiltIns . isInt ( this ) || KotlinBuiltIns . isLong ( this ) || KotlinBuiltIns . isUByte ( this ) || KotlinBuiltIns . isUShort ( this ) || KotlinBuiltIns . isUInt ( this ) || KotlinBuiltIns . isULong ( this )","docstring":""} {"signature":"private fun IrExpression . coerceToUnit ( ) : IrExpression","body":"{ return if ( KotlinTypeChecker . DEFAULT . isSubtypeOf ( type . toKotlinType ( ) , irBuiltIns . unitType . toKotlinType ( ) ) ) this else IrTypeOperatorCallImpl ( startOffset , endOffset , irBuiltIns . unitType , IrTypeOperator . IMPLICIT_COERCION_TO_UNIT , irBuiltIns . unitType , this ) }","docstring":""} {"signature":"private fun KotlinType . toNonIrBased ( ) : KotlinType","body":"{ if ( this !is SimpleType ) return this if ( this . isError ) return this val newDescriptor = constructor . declarationDescriptor ? . let { if ( it is IrBasedDeclarationDescriptor < * > && it . owner . symbol . hasDescriptor ) it . owner . symbol . descriptor as ClassifierDescriptor else it } ? : return this val newArguments = arguments . mapIndexed { index , it -> if ( it . isStarProjection ) StarProjectionImpl ( ( newDescriptor as ClassDescriptor ) . typeConstructor . parameters [ index ] ) else TypeProjectionImpl ( it . projectionKind , it . type . toNonIrBased ( ) ) } return newDescriptor . defaultType . replace ( newArguments = newArguments ) . makeNullableAsSpecified ( isMarkedNullable ) }","docstring":""} {"signature":"fun test ( )","body":"= cross { foo { \"\" } } . toString ( )","docstring":""} {"signature":"inline fun cross ( crossinline fn : ( ) -> String ) : Any","body":"= object { override fun toString ( ) : String = fn ( ) }","docstring":""} {"signature":"fun foo ( ) : String","body":"fun foo ( ) : String","docstring":""} {"signature":"fun foo ( iFoo : IFoo )","body":"= iFoo . foo ( )","docstring":""} {"signature":"fun box ( )","body":"= C ( ) . test ( )","docstring":""} {"signature":"fun foo ( vararg args : Any ? ) : Any ?","body":"= args [ ]","docstring":""} {"signature":"fun box ( ) : String","body":"{ val mh = MethodHandles . lookup ( ) . findStatic ( object { } :: class . java . enclosingClass , \"\" , MethodType . methodType ( Any :: class . java , Array < Any > :: class . java ) ) val args = arrayOf ( \"\" , ) val r1 = mh . invokeExact ( args ) if ( r1 !is Array < * > || ! r1 . contentEquals ( args ) ) return \"\" val r2 = mh . invokeExact ( * args ) if ( r2 != \"\" ) return \"\" val r3 = mh . invokeExact ( arrayOf ( args ) as Array < * > ) if ( r3 !is Array < * > || r3 [ ] !is Array < * > || ! ( r3 [ ] as Array < * > ) . contentEquals ( args ) ) return \"\" val r4 = mh . invokeExact ( arrayOf ( args ) ) if ( r4 !is Array < * > || r4 [ ] !is Array < * > || ! ( r4 [ ] as Array < * > ) . contentEquals ( args ) ) return \"\" val r5 = mh . invoke ( args ) if ( r5 !is Array < * > || ! r5 . contentEquals ( args ) ) return \"\" val r6 = mh . invoke ( * args ) if ( r6 != \"\" ) return \"\" val r7 = mh . invoke ( arrayOf ( args ) as Array < * > ) if ( r7 !is Array < * > || r7 [ ] !is Array < * > || ! ( r7 [ ] as Array < * > ) . contentEquals ( args ) ) return \"\" val r8 = mh . invoke ( arrayOf ( args ) ) if ( r8 !is Array < * > || r8 [ ] !is Array < * > || ! ( r8 [ ] as Array < * > ) . contentEquals ( args ) ) return \"\" mh . invokeExact ( args ) mh . invoke ( args ) return \"\" }","docstring":""} {"signature":"override fun < T : Any > getSetting ( key : CommonizerSettings . Key < T > ) : T","body":"{ return key . defaultValue }","docstring":""} {"signature":"override fun < T : Any > getSetting ( key : CommonizerSettings . Key < T > ) : T","body":"{ @ Suppress ( \"\" ) return settings [ key ] as? T ? : key . defaultValue }","docstring":""} {"signature":"fun update ( hash : FingerprintHash )","body":"{ hashes . add ( hash ) }","docstring":""} {"signature":"fun digest ( )","body":"= FingerprintHash ( hashes . fold ( Hash128Bits ( hashes . size . toULong ( ) ) ) { acc , x -> acc . combineWith ( x . hash ) } )","docstring":""} {"signature":"private fun LibraryHashComputer . digestLibrary ( library : KotlinLibrary )","body":"= update ( SerializedKlibFingerprint ( library . libraryFile . javaFile ( ) ) . klibFingerprint )","docstring":""} {"signature":"private fun getArtifactName ( target : KonanTarget , baseName : String , kind : CompilerOutputKind )","body":"= \"\"","docstring":""} {"signature":"protected abstract fun computeBitcodeDependencies ( ) : List < DependenciesTracker . UnresolvedDependency >","body":"protected abstract fun computeBitcodeDependencies ( ) : List < DependenciesTracker . UnresolvedDependency >","docstring":""} {"signature":"protected abstract fun computeBinariesPaths ( ) : List < String >","body":"protected abstract fun computeBinariesPaths ( ) : List < String >","docstring":""} {"signature":"protected abstract fun computeSerializedInlineFunctionBodies ( ) : List < SerializedInlineFunctionReference >","body":"protected abstract fun computeSerializedInlineFunctionBodies ( ) : List < SerializedInlineFunctionReference >","docstring":""} {"signature":"protected abstract fun computeSerializedClassFields ( ) : List < SerializedClassFields >","body":"protected abstract fun computeSerializedClassFields ( ) : List < SerializedClassFields >","docstring":""} {"signature":"protected abstract fun computeSerializedEagerInitializedFiles ( ) : List < SerializedEagerInitializedFile >","body":"protected abstract fun computeSerializedEagerInitializedFiles ( ) : List < SerializedEagerInitializedFile >","docstring":""} {"signature":"protected fun Kind . toCompilerOutputKind ( ) : CompilerOutputKind","body":"= when ( this ) { Kind . DYNAMIC -> CompilerOutputKind . DYNAMIC_CACHE Kind . STATIC -> CompilerOutputKind . STATIC_CACHE Kind . HEADER -> CompilerOutputKind . HEADER_CACHE }","docstring":""} {"signature":"override fun computeBitcodeDependencies ( ) : List < DependenciesTracker . UnresolvedDependency >","body":"{ val directory = File ( path ) . absoluteFile . parentFile val data = directory . child ( BITCODE_DEPENDENCIES_FILE_NAME ) . readStrings ( ) return DependenciesSerializer . deserialize ( path , data ) }","docstring":""} {"signature":"override fun computeBinariesPaths ( )","body":"= listOf ( path )","docstring":""} {"signature":"override fun computeSerializedInlineFunctionBodies ( )","body":"= mutableListOf < SerializedInlineFunctionReference > ( ) . also { val directory = File ( path ) . absoluteFile . parentFile . parentFile val data = directory . child ( PER_FILE_CACHE_IR_LEVEL_DIR_NAME ) . child ( INLINE_FUNCTION_BODIES_FILE_NAME ) . readBytes ( ) InlineFunctionBodyReferenceSerializer . deserializeTo ( data , it ) }","docstring":""} {"signature":"override fun computeSerializedClassFields ( )","body":"= mutableListOf < SerializedClassFields > ( ) . also { val directory = File ( path ) . absoluteFile . parentFile . parentFile val data = directory . child ( PER_FILE_CACHE_IR_LEVEL_DIR_NAME ) . child ( CLASS_FIELDS_FILE_NAME ) . readBytes ( ) ClassFieldsSerializer . deserializeTo ( data , it ) }","docstring":""} {"signature":"override fun computeSerializedEagerInitializedFiles ( )","body":"= mutableListOf < SerializedEagerInitializedFile > ( ) . also { val directory = File ( path ) . absoluteFile . parentFile . parentFile val data = directory . child ( PER_FILE_CACHE_IR_LEVEL_DIR_NAME ) . child ( EAGER_INITIALIZED_PROPERTIES_FILE_NAME ) . readBytes ( ) EagerInitializedPropertySerializer . deserializeTo ( data , it ) }","docstring":""} {"signature":"fun getFileDependencies ( file : String )","body":"= perFileBitcodeDependencies [ file ] ? : error ( \"\" )","docstring":""} {"signature":"fun getFileBinaryPath ( file : String )","body":"= File ( path ) . child ( file ) . child ( PER_FILE_CACHE_BINARY_LEVEL_DIR_NAME ) . child ( getArtifactName ( target , file , kind . toCompilerOutputKind ( ) ) ) . let { require ( it . exists ) { \"\" } it . absolutePath }","docstring":""} {"signature":"fun getFileHash ( file : String )","body":"= File ( path ) . child ( file ) . child ( HASH_FILE_NAME ) . readBytes ( )","docstring":""} {"signature":"override fun computeBitcodeDependencies ( )","body":"= perFileBitcodeDependencies . values . flatten ( )","docstring":""} {"signature":"override fun computeBinariesPaths ( )","body":"= existingFileDirs . map { it . child ( PER_FILE_CACHE_BINARY_LEVEL_DIR_NAME ) . child ( getArtifactName ( target , it . name , kind . toCompilerOutputKind ( ) ) ) . absolutePath }","docstring":""} {"signature":"override fun computeSerializedInlineFunctionBodies ( )","body":"= mutableListOf < SerializedInlineFunctionReference > ( ) . also { existingFileDirs . forEach { fileDir -> val data = fileDir . child ( PER_FILE_CACHE_IR_LEVEL_DIR_NAME ) . child ( INLINE_FUNCTION_BODIES_FILE_NAME ) . readBytes ( ) InlineFunctionBodyReferenceSerializer . deserializeTo ( data , it ) } }","docstring":""} {"signature":"override fun computeSerializedClassFields ( )","body":"= mutableListOf < SerializedClassFields > ( ) . also { existingFileDirs . forEach { fileDir -> val data = fileDir . child ( PER_FILE_CACHE_IR_LEVEL_DIR_NAME ) . child ( CLASS_FIELDS_FILE_NAME ) . readBytes ( ) ClassFieldsSerializer . deserializeTo ( data , it ) } }","docstring":""} {"signature":"override fun computeSerializedEagerInitializedFiles ( )","body":"= mutableListOf < SerializedEagerInitializedFile > ( ) . also { existingFileDirs . forEach { fileDir -> val data = fileDir . child ( PER_FILE_CACHE_IR_LEVEL_DIR_NAME ) . child ( EAGER_INITIALIZED_PROPERTIES_FILE_NAME ) . readBytes ( ) EagerInitializedPropertySerializer . deserializeTo ( data , it ) } }","docstring":""} {"signature":"private fun File . trySelectCacheFor ( library : KotlinLibrary ) : Cache ?","body":"{ val cacheDirContents = listFilesOrEmpty . map { it . absolutePath } . toSet ( ) if ( cacheDirContents . isEmpty ( ) ) return null val cacheBinaryPartDir = child ( PER_FILE_CACHE_BINARY_LEVEL_DIR_NAME ) val cacheBinaryPartDirContents = cacheBinaryPartDir . listFilesOrEmpty . map { it . absolutePath } . toSet ( ) val baseName = getCachedLibraryName ( library ) val dynamicFile = cacheBinaryPartDir . child ( getArtifactName ( target , baseName , CompilerOutputKind . DYNAMIC_CACHE ) ) val staticFile = cacheBinaryPartDir . child ( getArtifactName ( target , baseName , CompilerOutputKind . STATIC_CACHE ) ) val headerFile = cacheBinaryPartDir . child ( getArtifactName ( target , baseName , CompilerOutputKind . HEADER_CACHE ) ) if ( dynamicFile . absolutePath in cacheBinaryPartDirContents && staticFile . absolutePath in cacheBinaryPartDirContents ) error ( \"\" + \"\" ) return when { dynamicFile . absolutePath in cacheBinaryPartDirContents -> Cache . Monolithic ( target , Kind . DYNAMIC , dynamicFile . absolutePath ) staticFile . absolutePath in cacheBinaryPartDirContents -> Cache . Monolithic ( target , Kind . STATIC , staticFile . absolutePath ) headerFile . absolutePath in cacheBinaryPartDirContents -> Cache . Monolithic ( target , Kind . HEADER , headerFile . absolutePath ) else -> { val libraryFileDirs = library . getFilesWithFqNames ( ) . map { child ( CacheSupport . cacheFileId ( it . fqName , it . filePath ) ) } Cache . PerFile ( target , Kind . STATIC , absolutePath , libraryFileDirs , complete = cacheDirContents . containsAll ( libraryFileDirs . map { it . absolutePath } ) ) } } }","docstring":""} {"signature":"private fun KotlinLibrary . trySelectCacheAt ( dirBuilder : ( String ) -> File ? )","body":"= sequenceOf ( getPerFileCachedLibraryName ( this ) , getCachedLibraryName ( this ) ) . map ( dirBuilder ) . mapNotNull { it ? . trySelectCacheFor ( this ) } . firstOrNull ( )","docstring":""} {"signature":"fun isLibraryCached ( library : KotlinLibrary ) : Boolean","body":"= getLibraryCache ( library ) != null","docstring":""} {"signature":"fun getLibraryCache ( library : KotlinLibrary , allowIncomplete : Boolean = false ) : Cache ?","body":"= allCaches [ library ] ? . takeIf { allowIncomplete || ( it as? Cache . PerFile ) ? . complete != false }","docstring":""} {"signature":"fun getPerFileCachedLibraryName ( library : KotlinLibrary ) : String","body":"= \"\"","docstring":""} {"signature":"fun getCachedLibraryName ( library : KotlinLibrary ) : String","body":"= getCachedLibraryName ( library . uniqueName )","docstring":""} {"signature":"fun getCachedLibraryName ( libraryName : String ) : String","body":"= \"\"","docstring":""} {"signature":"private fun computeLibraryHash ( library : KotlinLibrary , librariesHashes : MutableMap < String , FingerprintHash > )","body":"= librariesHashes . getOrPut ( library . uniqueName ) { val hashComputer = LibraryHashComputer ( ) hashComputer . digestLibrary ( library ) hashComputer . digest ( ) }","docstring":""} {"signature":"fun computeVersionedCacheDirectory ( baseCacheDirectory : File , library : KotlinLibrary , allLibraries : Map < String , KotlinLibrary > , librariesHashes : MutableMap < String , FingerprintHash > , ) : File","body":"{ val dependencies = library . getAllTransitiveDependencies ( allLibraries ) val hashComputer = LibraryHashComputer ( ) hashComputer . update ( computeLibraryHash ( library , librariesHashes ) ) dependencies . sortedBy { it . uniqueName } . forEach { hashComputer . update ( computeLibraryHash ( it , librariesHashes ) ) } val version = library . versions . libraryVersion ? : \"\" val hashString = hashComputer . digest ( ) . toString ( ) return baseCacheDirectory . child ( library . uniqueName ) . child ( version ) . child ( hashString ) }","docstring":""} {"signature":"override fun run ( )","body":"{ for ( checker in configuration . enabledModuleMetadataCheckers ) { checker . check ( metadata1 , metadata2 , report ) } checkPackageParts ( ) }","docstring":""} {"signature":"private fun checkPackageParts ( )","body":"{ val packageParts1 = metadata1 . packageParts val packageParts2 = metadata2 . packageParts val commonIds = packageParts1 . keys . intersect ( packageParts2 . keys ) . sorted ( ) for ( id in commonIds ) { val packagePart1 = packageParts1 [ id ] ! ! val packagePart2 = packageParts2 [ id ] ! ! val packagePartsReport = report . packagePartsReport ( id ) PackagePartsMetadataTask ( configuration , packagePart1 , packagePart2 , packagePartsReport ) . run ( ) } }","docstring":""} {"signature":"@ OptIn ( UnstableMetadataApi :: class ) private fun ByteArray . toKmModule ( )","body":"= KotlinModuleMetadata . read ( this ) . kmModule","docstring":""} {"signature":"override fun convert ( output : OrtSession . Result ) : MultiPoseDetectionResult","body":"{ val rawPoseLandMarks = output . get2DFloatArray ( outputName ) val poses = rawPoseLandMarks . map { floats -> val foundPoseLandmarks = mutableListOf < PoseLandmark > ( ) for ( keyPointIdx in .. ) { val poseLandmark = PoseLandmark ( x = floats [ * keyPointIdx + ] , y = floats [ * keyPointIdx ] , probability = floats [ * keyPointIdx + ] , label = keyPointsLabels [ keyPointIdx ] ! ! ) foundPoseLandmarks . add ( poseLandmark ) } val detectedObject = DetectedObject ( xMin = floats [ ] , xMax = floats [ ] , yMin = floats [ ] , yMax = floats [ ] , probability = floats [ ] ) val foundPoseEdges = buildPoseEdges ( foundPoseLandmarks , edgeKeyPoints ) val detectedPose = DetectedPose ( foundPoseLandmarks , foundPoseEdges ) detectedObject to detectedPose } return MultiPoseDetectionResult ( poses ) }","docstring":""} {"signature":"public fun detectPoses ( image : I , confidence : Float = ) : MultiPoseDetectionResult","body":"{ val result = predict ( image ) val filteredPoses = result . poses . filter { ( detectedObject , _ ) -> detectedObject . probability > confidence } return MultiPoseDetectionResult ( filteredPoses ) }","docstring":"/**\n * Detects poses for the given [image] with the given [confidence].\n * @param [confidence] confidence value to use\n */"} {"signature":"fun test ( p : T ) : T","body":"{ return null ! ! }","docstring":""} {"signature":"override fun test ( p : String ) : String","body":"{ return p }","docstring":""} {"signature":"fun box ( ) : String","body":"{ checkMethodExists ( Test2 :: class . java , \"\" , Any :: class . java ) checkMethodExists ( Test2 :: class . java , \"\" , String :: class . java ) checkNoMethod ( TestClass :: class . java , \"\" , String :: class . java ) checkNoMethod ( TestClass :: class . java , \"\" , Any :: class . java ) val test2DefaultImpls = java . lang . Class . forName ( \"\" ) checkMethodExists ( test2DefaultImpls , \"\" , Test2 :: class . java , String :: class . java ) checkNoMethod ( test2DefaultImpls , \"\" , Test2 :: class . java , Any :: class . java ) return \"\" }","docstring":""} {"signature":"fun checkNoMethod ( clazz : Class < * > , name : String , vararg parameterTypes : Class < * > )","body":"{ try { clazz . getDeclaredMethod ( name , * parameterTypes ) } catch ( e : NoSuchMethodException ) { return } throw AssertionError ( \"\" + clazz ) }","docstring":""} {"signature":"fun checkMethodExists ( clazz : Class < * > , name : String , vararg parameterTypes : Class < * > )","body":"{ try { clazz . getDeclaredMethod ( name , * parameterTypes ) return } catch ( e : NoSuchMethodException ) { throw AssertionError ( \"\" + clazz , e ) } }","docstring":""} {"signature":"fun < T > runLogged ( entry : String , action : ( ) -> T ) : T","body":"{ log += entry return action ( ) }","docstring":""} {"signature":"operator fun String . provideDelegate ( host : Any ? , p : Any ) : String","body":"= runLogged ( \"\" ) { this }","docstring":""} {"signature":"operator fun String . getValue ( receiver : Any ? , p : Any ) : String","body":"= runLogged ( \"\" ) { this }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val testO by runLogged ( \"\" ) { \"\" } val testK by runLogged ( \"\" ) { \"\" } val testOK = runLogged ( \"\" ) { testO + testK } assertEquals ( \"\" , log ) return testOK }","docstring":""} {"signature":"private fun loadMainDispatcher ( ) : MainCoroutineDispatcher","body":"{ return try { val factories = if ( FAST_SERVICE_LOADER_ENABLED ) { FastServiceLoader . loadMainDispatcherFactory ( ) } else { ServiceLoader . load ( MainDispatcherFactory :: class . java , MainDispatcherFactory :: class . java . classLoader ) . iterator ( ) . asSequence ( ) . toList ( ) } @ Suppress ( \"\" ) factories . maxByOrNull { it . loadPriority } ? . tryCreateDispatcher ( factories ) ? : createMissingDispatcher ( ) } catch ( e : Throwable ) { createMissingDispatcher ( e ) } }","docstring":""} {"signature":"@ InternalCoroutinesApi public fun MainDispatcherFactory . tryCreateDispatcher ( factories : List < MainDispatcherFactory > ) : MainCoroutineDispatcher","body":"= try { createDispatcher ( factories ) } catch ( cause : Throwable ) { createMissingDispatcher ( cause , hintOnError ( ) ) }","docstring":"/**\n * If anything goes wrong while trying to create main dispatcher (class not found,\n * initialization failed, etc), then replace the main dispatcher with a special\n * stub that throws an error message on any attempt to actually use it.\n *\n * @suppress internal API\n */"} {"signature":"@ InternalCoroutinesApi public fun MainCoroutineDispatcher . isMissing ( ) : Boolean","body":"= this . immediate is MissingMainCoroutineDispatcher","docstring":"/** @suppress */"} {"signature":"@ Suppress ( \"\" , \"\" ) private fun createMissingDispatcher ( cause : Throwable ? = null , errorHint : String ? = null )","body":"= if ( SUPPORT_MISSING ) MissingMainCoroutineDispatcher ( cause , errorHint ) else cause ? . let { throw it } ? : throwMissingMainDispatcherException ( )","docstring":""} {"signature":"internal fun throwMissingMainDispatcherException ( ) : Nothing","body":"{ throw IllegalStateException ( \"\" + \"\" + \"\" ) }","docstring":""} {"signature":"override fun isDispatchNeeded ( context : CoroutineContext ) : Boolean","body":"= missing ( )","docstring":""} {"signature":"override fun limitedParallelism ( parallelism : Int ) : CoroutineDispatcher","body":"= missing ( )","docstring":""} {"signature":"override fun invokeOnTimeout ( timeMillis : Long , block : Runnable , context : CoroutineContext ) : DisposableHandle","body":"= missing ( )","docstring":""} {"signature":"override fun dispatch ( context : CoroutineContext , block : Runnable )","body":"= missing ( )","docstring":""} {"signature":"override fun scheduleResumeAfterDelay ( timeMillis : Long , continuation : CancellableContinuation < Unit > )","body":"= missing ( )","docstring":""} {"signature":"private fun missing ( ) : Nothing","body":"{ if ( cause == null ) { throwMissingMainDispatcherException ( ) } else { val message = \"\" + ( errorHint ? . let { \"\" } ? : \"\" ) throw IllegalStateException ( message , cause ) } }","docstring":""} {"signature":"override fun toString ( ) : String","body":"= \"\"","docstring":""} {"signature":"override fun createDispatcher ( allFactories : List < MainDispatcherFactory > ) : MainCoroutineDispatcher","body":"{ return MissingMainCoroutineDispatcher ( null ) }","docstring":""} {"signature":"fun foo ( x : Number , y : Int )","body":"{ when ( x ) { x as Int -> checkSubtype < Int > ( x ) y -> { } else -> { } } checkSubtype < Int > ( x ) }","docstring":""} {"signature":"fun bar ( x : Number )","body":"{ when ( x ) { x as Int -> checkSubtype < Int > ( x ) else -> { } } checkSubtype < Int > ( x ) }","docstring":""} {"signature":"fun whenWithoutSubject ( x : Number )","body":"{ when { ( x as Int ) == -> checkSubtype < Int > ( x ) else -> { } } checkSubtype < Int > ( x ) }","docstring":""} {"signature":"fun foo ( x : ( @ Foo ( ( @ Foo kotlin . Any ) -> ( Int ) ) . ( @ Foo kotlin . Any ) -> ( ) -> Unit ) )","body":"= x","docstring":""} {"signature":"fun foo ( x : suspend @ Foo ( ) @ Bar Comparable < T > . ( kotlin . Any ) -> Unit = { x : Int -> x } )","body":"{ }","docstring":""} {"signature":"fun foo ( )","body":"{ val x : @ Foo suspend @ Bar ( Coomparable < kotlin . Any > ) -> Unit . ( Coomparable < kotlin . Any > ) -> Unit = { } }","docstring":""} {"signature":"fun foo ( )","body":"{ val x = { x : suspend @ Foo @ Foo ( ) -> Unit . ( Coomparable < @ Foo @ Bar ( ) @ Foo ( ) -> Unit > ) -> ( ) -> Unit -> x } }","docstring":""} {"signature":"fun foo ( vararg x : @ Foo @ Bar ( ) @ Foo Any . ( Any ) -> Unit )","body":"= ","docstring":""} {"signature":"fun foo ( ) : @ Foo . Bar suspend Nothing . ( Nothing ) -> Unit","body":"= { }","docstring":""} {"signature":"fun foo ( ) : ( ) -> @ Foo . Bar suspend Iterable < @ Foo . Bar Int . ( Bar ) -> Unit > . ( Bar ) -> Unit","body":"= { }","docstring":""} {"signature":"fun foo ( )","body":"{ var x : ( @ Foo ( ( ) -> Unit ) -> @ Foo Int . ( ) -> Unit ) -> Unit = { } }","docstring":""} {"signature":"fun foo ( x : Any )","body":"{ if ( x as @ Foo @ Bar ( ) @ Foo ( ) -> Unit . ( ( ) -> Unit ) -> Unit is suspend @ Foo @ Bar ( ) @ Foo ( ( ( ) -> Unit ) . ( ) -> Unit ) -> Unit ) { } }","docstring":""} {"signature":"fun foo ( y : Any )","body":"{ var x = y as ( @ Foo suspend ( suspend ( ( ) -> Unit ) -> Int ) . ( ( ) -> Unit ) -> ( Float . ( ) -> Unit ) -> Unit ) -> Unit }","docstring":""} {"signature":"override fun < R , D > accept ( visitor : FirVisitor < R , D > , data : D ) : R","body":"= visitor . visitDelegatedConstructorCall ( this , data )","docstring":""} {"signature":"@ Suppress ( \"\" ) override fun < E : FirElement , D > transform ( transformer : FirTransformer < D > , data : D ) : E","body":"= transformer . transformDelegatedConstructorCall ( this , data ) as E","docstring":""} {"signature":"abstract override fun replaceAnnotations ( newAnnotations : List < FirAnnotation > )","body":"abstract override fun replaceAnnotations ( newAnnotations : List < FirAnnotation > )","docstring":""} {"signature":"abstract override fun replaceArgumentList ( newArgumentList : FirArgumentList )","body":"abstract override fun replaceArgumentList ( newArgumentList : FirArgumentList )","docstring":""} {"signature":"abstract override fun replaceContextReceiverArguments ( newContextReceiverArguments : List < FirExpression > )","body":"abstract override fun replaceContextReceiverArguments ( newContextReceiverArguments : List < FirExpression > )","docstring":""} {"signature":"abstract fun replaceConstructedTypeRef ( newConstructedTypeRef : FirTypeRef )","body":"abstract fun replaceConstructedTypeRef ( newConstructedTypeRef : FirTypeRef )","docstring":""} {"signature":"abstract fun replaceDispatchReceiver ( newDispatchReceiver : FirExpression ? )","body":"abstract fun replaceDispatchReceiver ( newDispatchReceiver : FirExpression ? )","docstring":""} {"signature":"abstract override fun replaceCalleeReference ( newCalleeReference : FirReference )","body":"abstract override fun replaceCalleeReference ( newCalleeReference : FirReference )","docstring":""} {"signature":"@ FirImplementationDetail abstract fun replaceSource ( newSource : KtSourceElement ? )","body":"@ FirImplementationDetail abstract fun replaceSource ( newSource : KtSourceElement ? )","docstring":""} {"signature":"abstract override fun < D > transformAnnotations ( transformer : FirTransformer < D > , data : D ) : FirDelegatedConstructorCall","body":"abstract override fun < D > transformAnnotations ( transformer : FirTransformer < D > , data : D ) : FirDelegatedConstructorCall","docstring":""} {"signature":"abstract fun < D > transformDispatchReceiver ( transformer : FirTransformer < D > , data : D ) : FirDelegatedConstructorCall","body":"abstract fun < D > transformDispatchReceiver ( transformer : FirTransformer < D > , data : D ) : FirDelegatedConstructorCall","docstring":""} {"signature":"abstract override fun < D > transformCalleeReference ( transformer : FirTransformer < D > , data : D ) : FirDelegatedConstructorCall","body":"abstract override fun < D > transformCalleeReference ( transformer : FirTransformer < D > , data : D ) : FirDelegatedConstructorCall","docstring":""} {"signature":"fun equals ( other : Any ) : Boolean ","body":"= ( this as java . lang . Object ) . equals ( other as java . lang . Object )","docstring":""} {"signature":"fun get ( key : K ) : V","body":"fun get ( key : K ) : V","docstring":""} {"signature":"fun set ( key : K , value : V ) : V","body":"fun set ( key : K , value : V ) : V","docstring":""} {"signature":"fun remove ( key : K ) : V","body":"fun remove ( key : K ) : V","docstring":""} {"signature":"fun containsKey ( key : K ) : Boolean","body":"fun containsKey ( key : K ) : Boolean","docstring":""} {"signature":"@ [ inline ] fun Any . hashable ( ) : HashableWrapper","body":"= HashableWrapper ( this )","docstring":""} {"signature":"fun equals ( a : K , b : K ) : Boolean","body":"fun equals ( a : K , b : K ) : Boolean","docstring":""} {"signature":"fun hashCode ( a : K ) : Integer","body":"fun hashCode ( a : K ) : Integer","docstring":""} {"signature":"override fun equals ( a : K , b : K ) : Boolean","body":"= a . equals ( b )","docstring":""} {"signature":"override fun hashCode ( a : K ) : Integer","body":"= a . hashCode","docstring":""} {"signature":"override fun equals ( a : K , b : K ) : Boolean ","body":"= a . hashable ( ) . equals ( b )","docstring":""} {"signature":"override fun hashCode ( a : K ) : Integer ","body":"= a . hashable ( ) . hashCode","docstring":""} {"signature":"private @ [ inline ] fun hashCode ( a : K )","body":"= a . hashable ( ) . hashCode","docstring":""} {"signature":"private @ [ inline ] fun equals ( a : K , b : K )","body":"= a . hashable ( ) == b","docstring":""} {"signature":"override fun getName ( ) : String","body":"= _name","docstring":""} {"signature":"override fun hasTypeParameters ( ) : Boolean","body":"= hasTypeParameters ( ktModule , functionDeclaration , functionSymbolPointer ) || containingClass . isDefaultImplsForInterfaceWithTypeParameters","docstring":""} {"signature":"override fun getTypeParameterList ( ) : PsiTypeParameterList ?","body":"= _typeParameterList","docstring":""} {"signature":"override fun getTypeParameters ( ) : Array < PsiTypeParameter >","body":"= _typeParameterList ? . typeParameters ? : PsiTypeParameter . EMPTY_ARRAY","docstring":""} {"signature":"private fun computeModifiers ( modifier : String ) : Map < String , Boolean > ?","body":"= when ( modifier ) { in GranularModifiersBox . MODALITY_MODIFIERS -> { ifInlineOnly { return modifiersForInlineOnlyCase ( ) } val modality = when { isTopLevel -> PsiModifier . FINAL containingClass is SymbolLightClassForInterfaceDefaultImpls -> null else -> withFunctionSymbol { functionSymbol -> functionSymbol . computeSimpleModality ( ) ? . takeUnless { it . isSuppressedFinalModifier ( containingClass , functionSymbol ) } } } GranularModifiersBox . MODALITY_MODIFIERS_MAP . with ( modality ) } in GranularModifiersBox . VISIBILITY_MODIFIERS -> { ifInlineOnly { return modifiersForInlineOnlyCase ( ) } GranularModifiersBox . computeVisibilityForMember ( ktModule , functionSymbolPointer ) } PsiModifier . STATIC -> { ifInlineOnly { return null } val isStatic = if ( suppressStatic ) { false } else { isTopLevel || containingClass is SymbolLightClassForInterfaceDefaultImpls || withFunctionSymbol { it . isStatic || it . hasJvmStaticAnnotation ( ) } } mapOf ( modifier to isStatic ) } PsiModifier . NATIVE -> { ifInlineOnly { return null } val isExternal = functionDeclaration ? . hasModifier ( KtTokens . EXTERNAL_KEYWORD ) ? : withFunctionSymbol { it . isExternal } mapOf ( modifier to isExternal ) } PsiModifier . STRICTFP -> { ifInlineOnly { return null } val hasAnnotation = withFunctionSymbol { it . hasAnnotation ( STRICTFP_ANNOTATION_CLASS_ID ) } mapOf ( modifier to hasAnnotation ) } PsiModifier . SYNCHRONIZED -> { ifInlineOnly { return null } val hasAnnotation = withFunctionSymbol { it . hasAnnotation ( SYNCHRONIZED_ANNOTATION_CLASS_ID ) } mapOf ( modifier to hasAnnotation ) } else -> null }","docstring":""} {"signature":"private inline fun ifInlineOnly ( action : ( ) -> Unit )","body":"{ if ( hasInlineOnlyAnnotation ) { action ( ) } }","docstring":""} {"signature":"private fun modifiersForInlineOnlyCase ( ) : PersistentMap < String , Boolean >","body":"= GranularModifiersBox . MODALITY_MODIFIERS_MAP . mutate { it . putAll ( GranularModifiersBox . VISIBILITY_MODIFIERS_MAP ) it [ PsiModifier . FINAL ] = true it [ PsiModifier . PRIVATE ] = true }","docstring":""} {"signature":"override fun getModifierList ( ) : PsiModifierList","body":"= _modifierList","docstring":""} {"signature":"override fun isConstructor ( ) : Boolean","body":"= false","docstring":""} {"signature":"override fun isOverride ( ) : Boolean","body":"= _isOverride","docstring":""} {"signature":"private fun KtAnalysisSession . forceBoxedReturnType ( functionSymbol : KtFunctionSymbol ) : Boolean","body":"{ val returnType = functionSymbol . returnType if ( functionSymbol . isBuiltinFunctionInvoke && isInlineClassType ( returnType ) ) return true return returnType . isPrimitive && functionSymbol . getAllOverriddenSymbols ( ) . any { overriddenSymbol -> ! overriddenSymbol . returnType . isPrimitive } }","docstring":""} {"signature":"@ Suppress ( \"\" ) private fun KtAnalysisSession . isInlineClassType ( type : KtType ) : Boolean","body":"{ return ( ( type as? KtNonErrorClassType ) ? . classSymbol as? KtNamedClassOrObjectSymbol ) ? . isInline == true }","docstring":""} {"signature":"private fun KtAnalysisSession . isVoidType ( type : KtType ) : Boolean","body":"{ val expandedType = type . fullyExpandedType return expandedType . isUnit && expandedType . nullability != KtTypeNullability . NULLABLE }","docstring":""} {"signature":"override fun getReturnType ( ) : PsiType","body":"= _returnedType","docstring":""} {"signature":"fun create ( target : DecoratedExternalKotlinTarget . Delegate ) : T","body":"fun create ( target : DecoratedExternalKotlinTarget . Delegate ) : T","docstring":""} {"signature":"@ ExternalKotlinTargetApi fun < T : DecoratedExternalKotlinTarget > ExternalKotlinTargetDescriptor ( configure : ExternalKotlinTargetDescriptorBuilder < T > . ( ) -> Unit , ) : ExternalKotlinTargetDescriptor < T >","body":"{ return ExternalKotlinTargetDescriptorBuilder < T > ( ) . also ( configure ) . build ( ) }","docstring":"/**\n * Creates a new [ExternalKotlinTargetDescriptor] using the builder pattern.\n * There are some required properties that have to be set.\n * Check [ExternalKotlinTargetDescriptorBuilder] for further details.\n *\n * * The following properties have to be specified:\n * * - [ExternalKotlinTargetDescriptorBuilder.targetName]\n * * - [ExternalKotlinTargetDescriptorBuilder.platformType]\n * * - [ExternalKotlinTargetDescriptorBuilder.targetFactory]\n *\n * Not providing a required/necessary property will throw [IllegalStateException]\n */"} {"signature":"fun configure ( action : ( T ) -> Unit )","body":"{ val configure = this . configure if ( configure == null ) this . configure = action else this . configure = { configure ( it ) ; action ( it ) } }","docstring":"/**\n * Generic configuration that will be invoked when building the target.\n * This configuration is called right after creating the instance and before\n * publishing the target to all subscribers of `kotlin.targets.all {}`\n */"} {"signature":"fun configureIdeImport ( action : IdeMultiplatformImport . ( ) -> Unit )","body":"{ val configureIdeImport = this . configureIdeImport if ( configureIdeImport == null ) this . configureIdeImport = action else this . configureIdeImport = { configureIdeImport ( ) ; action ( ) } }","docstring":"/**\n * Main entrance of configuring the ide import:\n * The [IdeMultiplatformImport] instance passed to this function shall\n * not be captured and used outside of this block.\n *\n * The [IdeMultiplatformImport] instance shall not be retrieved any other way than using this function.\n */"} {"signature":"internal fun build ( ) : ExternalKotlinTargetDescriptor < T >","body":"= ExternalKotlinTargetDescriptorImpl ( targetName = targetName , platformType = platformType , targetFactory = targetFactory , apiElements = apiElements . build ( ) , runtimeElements = runtimeElements . build ( ) , sourcesElements = sourcesElements . build ( ) , apiElementsPublished = apiElementsPublished . build ( ) , runtimeElementsPublished = runtimeElementsPublished . build ( ) , sourcesElementsPublished = sourcesElementsPublished . build ( ) , configure = configure , configureIdeImport = configureIdeImport )","docstring":""} {"signature":"private fun foo_class ( c : Any , x : Int , i : Int ) : Int","body":"{ var x = x if ( c is C0 ) x += i if ( c is C1 ) x = x xor i if ( c is C2 ) x += i if ( c is C3 ) x = x xor i if ( c is C4 ) x += i if ( c is C5 ) x = x xor i if ( c is C6 ) x += i if ( c is C7 ) x = x xor i if ( c is C8 ) x += i if ( c is C9 ) x = x xor i return x }","docstring":""} {"signature":"private fun foo_iface ( c : Any , x : Int , i : Int ) : Int","body":"{ var x = x if ( c is I0 ) x += i if ( c is I1 ) x = x xor i if ( c is I2 ) x += i if ( c is I3 ) x = x xor i if ( c is I4 ) x += i if ( c is I5 ) x = x xor i if ( c is I6 ) x += i if ( c is I7 ) x = x xor i if ( c is I8 ) x += i if ( c is I9 ) x = x xor i return x }","docstring":""} {"signature":"fun classCast ( ) : Int","body":"{ val c0 : Any = C0 ( ) val c1 : Any = C1 ( ) val c2 : Any = C2 ( ) val c3 : Any = C3 ( ) val c4 : Any = C4 ( ) val c5 : Any = C5 ( ) val c6 : Any = C6 ( ) val c7 : Any = C7 ( ) val c8 : Any = C8 ( ) val c9 : Any = C9 ( ) var x = for ( i in until RUNS ) { x += foo_class ( c0 , x , i ) x += foo_class ( c1 , x , i ) x += foo_class ( c2 , x , i ) x += foo_class ( c3 , x , i ) x += foo_class ( c4 , x , i ) x += foo_class ( c5 , x , i ) x += foo_class ( c6 , x , i ) x += foo_class ( c7 , x , i ) x += foo_class ( c8 , x , i ) x += foo_class ( c9 , x , i ) } return x }","docstring":""} {"signature":"fun interfaceCast ( ) : Int","body":"{ val c0 : Any = C0 ( ) val c1 : Any = C1 ( ) val c2 : Any = C2 ( ) val c3 : Any = C3 ( ) val c4 : Any = C4 ( ) val c5 : Any = C5 ( ) val c6 : Any = C6 ( ) val c7 : Any = C7 ( ) val c8 : Any = C8 ( ) val c9 : Any = C9 ( ) var x = for ( i in until RUNS ) { x += foo_iface ( c0 , x , i ) x += foo_iface ( c1 , x , i ) x += foo_iface ( c2 , x , i ) x += foo_iface ( c3 , x , i ) x += foo_iface ( c4 , x , i ) x += foo_iface ( c5 , x , i ) x += foo_iface ( c6 , x , i ) x += foo_iface ( c7 , x , i ) x += foo_iface ( c8 , x , i ) x += foo_iface ( c9 , x , i ) } return x }","docstring":""} {"signature":"override fun getCompilerPluginId ( )","body":"= NOARG_COMPILER_PLUGIN_ID","docstring":""} {"signature":"override fun isApplicable ( project : MavenProject , execution : MojoExecution )","body":"= true","docstring":""} {"signature":"override fun getPluginOptions ( project : MavenProject , execution : MojoExecution ) : List < PluginOption >","body":"{ logger . debug ( \"\" + javaClass . name ) return emptyList ( ) }","docstring":""} {"signature":"override fun getCompilerPluginId ( )","body":"= NOARG_COMPILER_PLUGIN_ID","docstring":""} {"signature":"override fun isApplicable ( project : MavenProject , execution : MojoExecution )","body":"= true","docstring":""} {"signature":"override fun getPluginOptions ( project : MavenProject , execution : MojoExecution ) : List < PluginOption >","body":"{ logger . debug ( \"\" + javaClass . name ) return listOf ( PluginOption ( \"\" , NOARG_COMPILER_PLUGIN_ID , PRESET_ARG_NAME , \"\" ) ) }","docstring":""} {"signature":"override fun analyze ( graph : ControlFlowGraph , reporter : DiagnosticReporter , context : CheckerContext )","body":"{ val logicSystem = object : LogicSystem ( context . session . typeContext ) { override val variableStorage : VariableStorageImpl get ( ) = throw IllegalStateException ( \"\" ) } analyze ( graph , reporter , context , logicSystem ) }","docstring":""} {"signature":"private fun analyze ( graph : ControlFlowGraph , reporter : DiagnosticReporter , context : CheckerContext , logicSystem : LogicSystem )","body":"{ for ( subGraph in graph . subGraphs ) { analyze ( subGraph , reporter , context ) } val function = graph . declaration as? FirFunction ? : return if ( function !is FirContractDescriptionOwner ) return val contractDescription = function . contractDescription ? : return val effects = contractDescription . effects ? : return val dataFlowInfo = function . controlFlowGraphReference ? . dataFlowInfo ? : return val argumentIdentifiers = Array ( function . valueParameters . size + ) { i -> val parameterSymbol = if ( i > ) { function . valueParameters [ i - ] . symbol } else { if ( function . symbol is FirPropertyAccessorSymbol ) { context . containingProperty ? . symbol } else { null } ? : function . symbol } Identifier ( parameterSymbol , null , null ) } for ( firEffect in effects ) { val coneEffect = firEffect . effect as? ConeConditionalEffectDeclaration ? : continue val returnValue = coneEffect . effect as? ConeReturnsEffectDeclaration ? : continue val wrongCondition = graph . exitNode . previousCfgNodes . any { isWrongConditionOnNode ( it , coneEffect , returnValue , function , logicSystem , dataFlowInfo , argumentIdentifiers , context ) } if ( wrongCondition ) { reporter . reportOn ( firEffect . source , FirErrors . WRONG_IMPLIES_CONDITION , context ) } } }","docstring":""} {"signature":"private fun isWrongConditionOnNode ( node : CFGNode < * > , effectDeclaration : ConeConditionalEffectDeclaration , effect : ConeReturnsEffectDeclaration , function : FirFunction , logicSystem : LogicSystem , dataFlowInfo : DataFlowInfo , argumentIdentifiers : Array < Identifier > , context : CheckerContext ) : Boolean","body":"{ val builtinTypes = context . session . builtinTypes val typeContext = context . session . typeContext val isReturn = node is JumpNode && node . fir is FirReturnExpression @ Suppress ( \"\" ) val resultExpression = if ( isReturn ) ( node . fir as FirReturnExpression ) . result else node . fir val expressionType = ( resultExpression as? FirExpression ) ? . resolvedType if ( expressionType == builtinTypes . nothingType . type ) return false if ( isReturn && resultExpression is FirWhenExpression ) { return node . collectBranchExits ( ) . any { isWrongConditionOnNode ( it , effectDeclaration , effect , function , logicSystem , dataFlowInfo , argumentIdentifiers , context ) } } var flow = node . flow val operation = effect . value . toOperation ( ) if ( operation != null ) { if ( resultExpression is FirLiteralExpression < * > ) { if ( ! operation . isTrueFor ( resultExpression . value ) ) return false } else { if ( expressionType != null && ! operation . canBeTrueFor ( context . session , expressionType ) ) return false val variableStorage = dataFlowInfo . variableStorage as VariableStorageImpl val resultVar = variableStorage . getOrCreateIfReal ( resultExpression , unwrapAlias = { variable , _ -> flow . unwrapVariable ( variable ) } ) if ( resultVar != null ) { val impliedByReturnValue = logicSystem . approveOperationStatement ( flow , OperationStatement ( resultVar , operation ) ) if ( impliedByReturnValue . isNotEmpty ( ) ) { flow = flow . fork ( ) . also { logicSystem . addTypeStatements ( it , impliedByReturnValue ) } . freeze ( ) } } } } val knownVariables = flow . knownVariables . associateBy { it . identifier } val argumentVariables = Array ( argumentIdentifiers . size ) { i -> val identifier = argumentIdentifiers [ i ] knownVariables [ identifier ] ? : RealVariable ( identifier , i == , null , i , PropertyStability . STABLE_VALUE ) } val conditionStatements = logicSystem . approveContractStatement ( effectDeclaration . condition , argumentVariables , substitutor = null ) { logicSystem . approveOperationStatement ( flow , it ) } ? : return true return ! conditionStatements . values . all { requirement -> val originalType = requirement . variable . identifier . symbol . correspondingParameterType ? : return@all true val requiredType = requirement . smartCastedType ( typeContext , originalType ) val actualType = flow . getTypeStatement ( requirement . variable ) . smartCastedType ( typeContext , originalType ) actualType . isSubtypeOf ( typeContext , requiredType ) } }","docstring":""} {"signature":"private fun Operation . canBeTrueFor ( session : FirSession , type : ConeKotlinType ) : Boolean","body":"= when ( this ) { Operation . EqTrue , Operation . EqFalse -> AbstractTypeChecker . isSubtypeOf ( session . typeContext , session . builtinTypes . booleanType . type , type ) Operation . EqNull -> type . canBeNull ( session ) Operation . NotEqNull -> ! type . isNullableNothing }","docstring":""} {"signature":"private fun Operation . isTrueFor ( value : Any ? )","body":"= when ( this ) { Operation . EqTrue -> value == true Operation . EqFalse -> value == false Operation . EqNull -> value == null Operation . NotEqNull -> value != null }","docstring":""} {"signature":"private fun CFGNode < * > . collectBranchExits ( nodes : MutableList < CFGNode < * > > = mutableListOf ( ) ) : List < CFGNode < * > >","body":"{ if ( this is BlockExitNode ) { nodes += previousCfgNodes } else previousCfgNodes . forEach { it . collectBranchExits ( nodes ) } return nodes }","docstring":""} {"signature":"internal fun GradleBuild . runAndCheck ( steps : List < TestExecutionStep > )","body":"{ logInfo ( \"\"\"\"\"\" . trimIndent ( ) ) steps . forEachIndexed { i , step -> val description = \"\" when ( step ) { is TestGradleStep -> { val runResult = this . runWithParams ( step . args ) createCheckerContext ( runResult ) . check ( description , step . errorExpected , step . checker ) } is TestFileEditStep -> { val file = projectFile ( step . filePath , description ) if ( ! file . exists ( ) ) { throw Exception ( \"\" ) } val content = file . readText ( ) val newContent = step . editor ( content ) file . writeText ( newContent ) } is TestFileAddStep -> { val file = projectFile ( step . filePath , description ) file . writeText ( step . editor ( ) ) } is TestFileDeleteStep -> { val file = projectFile ( step . filePath , description ) file . delete ( ) } } } }","docstring":""} {"signature":"private fun GradleBuild . projectFile ( path : String , description : String ) : File","body":"{ if ( File ( path ) . isAbsolute ) { throw Exception ( \"\" ) } return targetDir . resolve ( path ) }","docstring":""} {"signature":"private fun File . buildScript ( ) : String","body":"{ var file = this . resolve ( \"\" ) if ( file . exists ( ) && file . isFile ) return file . readText ( ) file = this . resolve ( \"\" ) if ( file . exists ( ) && file . isFile ) return file . readText ( ) return \"\" }","docstring":""} {"signature":"fun dispose ( )","body":"{ if ( deleteOnExit ) { dir . deleteRecursively ( ) } }","docstring":""} {"signature":"private fun createDirForTemporaryFiles ( path : String ) : File","body":"{ if ( File ( path ) . isFile ) { throw IllegalArgumentException ( \"\" ) } return File ( path ) . apply { if ( ! exists ) { mkdirs ( ) } } }","docstring":""} {"signature":"fun create ( prefix : String , suffix : String = \"\" ) : File","body":"= File ( dir , \"\" )","docstring":"/**\n * Create file named {name}{suffix} inside temporary dir\n */"} {"signature":"@ Test fun vgg11OnCifar10ExportImportToTxtTest ( )","body":"{ vgg11OnCifar10ExportImport ( ) }","docstring":""} {"signature":"@ Test fun nextBits ( )","body":"{ repeat ( ) { assertEquals ( , subject . nextBits ( ) ) } for ( bitCount in .. ) { val upperBitCount = - bitCount var result1 = var result2 = - repeat ( ) { val bits = subject . nextBits ( bitCount ) result1 = result1 or bits result2 = result2 and bits assertEquals ( , bits . ushr ( bitCount - ) . ushr ( ) , \"\" ) } assertEquals ( . shl ( bitCount - ) . shl ( ) - , result1 , \"\" ) assertEquals ( , result2 , \"\" ) } }","docstring":""} {"signature":"@ Test fun nextInt ( )","body":"{ var result1 = var result2 = - repeat ( ) { val r = subject . nextInt ( ) result1 = result1 or r result2 = result2 and r } assertEquals ( - , result1 , \"\" ) assertEquals ( , result2 , \"\" ) }","docstring":""} {"signature":"@ Test fun nextUInt ( )","body":"{ var result1 = var result2 = UInt . MAX_VALUE repeat ( ) { val r = subject . nextUInt ( ) result1 = result1 or r result2 = result2 and r } assertEquals ( UInt . MAX_VALUE , result1 , \"\" ) assertEquals ( , result2 , \"\" ) }","docstring":""} {"signature":"@ Test fun nextIntUntil ( )","body":"{ assertFailsWith < IllegalArgumentException > { subject . nextInt ( ) } assertFailsWith < IllegalArgumentException > { subject . nextInt ( - ) } assertFailsWith < IllegalArgumentException > { subject . nextInt ( Int . MIN_VALUE ) } repeat ( ) { assertEquals ( , subject . nextInt ( ) ) } for ( bound in listOf ( , , , , , , Int . MAX_VALUE ) ) { repeat ( ) { val x = subject . nextInt ( bound ) if ( x !in until bound ) fail ( \"\" ) } } }","docstring":""} {"signature":"@ Test fun nextUIntUntil ( )","body":"{ assertFailsWith < IllegalArgumentException > { subject . nextUInt ( UInt . MIN_VALUE ) } repeat ( ) { assertEquals ( , subject . nextUInt ( ) ) } for ( bound in listOf ( , , , , , , UInt . MAX_VALUE ) ) { repeat ( ) { val x = subject . nextUInt ( bound ) if ( x !in until bound ) fail ( \"\" ) } } }","docstring":""} {"signature":"@ Test fun nextIntFromUntil ( )","body":"{ assertFailsWith < IllegalArgumentException > { subject . nextInt ( , ) } assertFailsWith < IllegalArgumentException > { subject . nextInt ( - , - ) } assertFailsWith < IllegalArgumentException > { subject . nextInt ( Int . MIN_VALUE , Int . MIN_VALUE ) } for ( n in Int . MIN_VALUE until Int . MAX_VALUE step ) { assertEquals ( n , subject . nextInt ( n , n + ) ) } ( Int . MAX_VALUE - ) . let { n -> assertEquals ( n , subject . nextInt ( n , n + ) ) } for ( ( from , until ) in listOf ( ( to ) , ( - to ) , ( to ) , ( to Int . MAX_VALUE ) , ( - to Int . MAX_VALUE ) , ( Int . MIN_VALUE to Int . MAX_VALUE ) ) ) { repeat ( ) { val x = subject . nextInt ( from , until ) if ( x !in from until until ) fail ( \"\" ) } } }","docstring":""} {"signature":"@ Test fun nextUIntFromUntil ( )","body":"{ assertFailsWith < IllegalArgumentException > { subject . nextUInt ( , ) } assertFailsWith < IllegalArgumentException > { subject . nextUInt ( ( - ) . toUInt ( ) , ( - ) . toUInt ( ) ) } assertFailsWith < IllegalArgumentException > { subject . nextUInt ( UInt . MIN_VALUE , UInt . MIN_VALUE ) } for ( n in UInt . MIN_VALUE until UInt . MAX_VALUE step ) { assertEquals ( n , subject . nextUInt ( n , n + ) ) } ( UInt . MAX_VALUE - ) . let { n -> assertEquals ( n , subject . nextUInt ( n , n + ) ) } for ( ( from , until ) in listOf ( ( to ) , ( to ) , ( to ) , ( to UInt . MAX_VALUE ) , ( to ( Int . MAX_VALUE . toUInt ( ) + ) ) , ( UInt . MIN_VALUE to UInt . MAX_VALUE ) ) ) { repeat ( ) { val x = subject . nextUInt ( from , until ) if ( x !in from until until ) fail ( \"\" ) } } }","docstring":""} {"signature":"@ Suppress ( \"\" ) @ Test fun nextIntInIntRange ( )","body":"{ assertFailsWith < IllegalArgumentException > { subject . nextInt ( until ) } assertFailsWith < IllegalArgumentException > { subject . nextInt ( - .. Int . MIN_VALUE ) } assertFailsWith < IllegalArgumentException > { subject . nextInt ( Int . MAX_VALUE until Int . MAX_VALUE ) } repeat ( ) { n -> assertEquals ( n , subject . nextInt ( n .. n ) ) } for ( range in listOf ( ( until ) , ( - until ) , ( until ) , ( until Int . MAX_VALUE ) , ( .. Int . MAX_VALUE ) , ( Int . MIN_VALUE .. ) , ( Int . MIN_VALUE .. Int . MAX_VALUE ) ) ) { repeat ( ) { val x = subject . nextInt ( range ) if ( x !in range ) fail ( \"\" ) } } }","docstring":""} {"signature":"@ Test fun nextUIntInUIntRange ( )","body":"{ assertFailsWith < IllegalArgumentException > { subject . nextUInt ( .. ) } assertFailsWith < IllegalArgumentException > { subject . nextUInt ( UInt . MAX_VALUE .. UInt . MIN_VALUE ) } assertFailsWith < IllegalArgumentException > { subject . nextUInt ( UInt . MAX_VALUE .. ( UInt . MAX_VALUE - ) ) } repeat ( ) { it -> val n = it . toUInt ( ) assertEquals ( n , subject . nextUInt ( n .. n ) ) } for ( range in listOf ( ( .. ) , ( .. ) , ( .. ) , ( .. UInt . MAX_VALUE - ) , ( .. UInt . MAX_VALUE ) , ( .. UInt . MAX_VALUE ) ) ) { repeat ( ) { val x = subject . nextUInt ( range ) if ( x !in range ) fail ( \"\" ) } } }","docstring":""} {"signature":"@ Test fun nextLong ( )","body":"{ var result1 = var result2 = - repeat ( ) { val r = subject . nextLong ( ) result1 = result1 or r result2 = result2 and r } assertEquals ( - , result1 , \"\" ) assertEquals ( , result2 , \"\" ) }","docstring":""} {"signature":"@ Test fun nextULong ( )","body":"{ var result1 = var result2 = ULong . MAX_VALUE repeat ( ) { val r = subject . nextULong ( ) result1 = result1 or r result2 = result2 and r } assertEquals ( ULong . MAX_VALUE , result1 , \"\" ) assertEquals ( , result2 , \"\" ) }","docstring":""} {"signature":"@ Test fun nextLongUntil ( )","body":"{ assertFailsWith < IllegalArgumentException > { subject . nextLong ( ) } assertFailsWith < IllegalArgumentException > { subject . nextLong ( - ) } assertFailsWith < IllegalArgumentException > { subject . nextLong ( Long . MIN_VALUE ) } repeat ( ) { assertEquals ( , subject . nextLong ( ) ) } for ( bound in listOf ( , , , , , , Long . MAX_VALUE ) ) { repeat ( ) { val x = subject . nextLong ( bound ) if ( x !in until bound ) fail ( \"\" ) } } }","docstring":""} {"signature":"@ Test fun nextULongUntil ( )","body":"{ assertFailsWith < IllegalArgumentException > { subject . nextULong ( ULong . MIN_VALUE ) } repeat ( ) { assertEquals ( , subject . nextULong ( ) ) } for ( bound in listOf ( , , , , , , ULong . MAX_VALUE ) ) { repeat ( ) { val x = subject . nextULong ( bound ) if ( x !in until bound ) { fail ( \"\" ) } } } }","docstring":""} {"signature":"@ Test fun nextLongFromUntil ( )","body":"{ assertFailsWith < IllegalArgumentException > { subject . nextLong ( , ) } assertFailsWith < IllegalArgumentException > { subject . nextLong ( - , - ) } assertFailsWith < IllegalArgumentException > { subject . nextLong ( Long . MIN_VALUE , Long . MIN_VALUE ) } for ( i in - .. ) { val n = + i assertEquals ( n , subject . nextLong ( n , n + ) ) } for ( ( from , until ) in listOf ( ( to ) , ( - to ) , ( to ) , ( - to ) , ( to Long . MAX_VALUE ) , ( - to Long . MAX_VALUE ) , ( Long . MIN_VALUE to Long . MAX_VALUE ) ) ) { repeat ( ) { val x = subject . nextLong ( from , until ) if ( x !in from until until ) fail ( \"\" ) } } }","docstring":""} {"signature":"@ Test fun nextULongFromUntil ( )","body":"{ assertFailsWith < IllegalArgumentException > { subject . nextULong ( , ) } assertFailsWith < IllegalArgumentException > { subject . nextULong ( ( - ) . toULong ( ) , ( - ) . toULong ( ) ) } for ( i in .. ) { val n = - + i assertEquals ( n , subject . nextULong ( n , n + ) ) } for ( ( from , until ) in listOf ( ( to ) , ( to ) , ( to . toULong ( ) ) , ( to . toULong ( ) ) , ( to ULong . MAX_VALUE ) ) ) { repeat ( ) { val x = subject . nextULong ( from , until ) if ( x !in from until until ) { fail ( \"\" ) } } } }","docstring":""} {"signature":"@ Suppress ( \"\" ) @ Test fun nextLongInLongRange ( )","body":"{ assertFailsWith < IllegalArgumentException > { subject . nextLong ( until ) } assertFailsWith < IllegalArgumentException > { subject . nextLong ( - .. Long . MIN_VALUE ) } assertFailsWith < IllegalArgumentException > { subject . nextLong ( Long . MAX_VALUE until Long . MAX_VALUE ) } repeat ( ) { i -> val n = - + i assertEquals ( n , subject . nextLong ( n .. n ) ) } for ( range in listOf ( ( until ) , ( - until ) , ( until ) , ( until . shl ( ) ) , ( until Long . MAX_VALUE ) , ( .. Long . MAX_VALUE ) , ( Long . MIN_VALUE .. ) , ( Long . MIN_VALUE .. Long . MAX_VALUE ) ) ) { repeat ( ) { val x = subject . nextLong ( range ) if ( x !in range ) fail ( \"\" ) } } }","docstring":""} {"signature":"@ Test fun nextULongInULongRange ( )","body":"{ assertFailsWith < IllegalArgumentException > { subject . nextULong ( .. ) } assertFailsWith < IllegalArgumentException > { subject . nextULong ( ULong . MAX_VALUE .. ULong . MIN_VALUE ) } assertFailsWith < IllegalArgumentException > { subject . nextULong ( ULong . MAX_VALUE .. ( ULong . MAX_VALUE - ) ) } repeat ( ) { i -> val n = ( ) . toULong ( ) - + i . toULong ( ) assertEquals ( n , subject . nextULong ( n .. n ) ) } for ( range in listOf ( ( .. ) , ( .. ) , ( .. ) , ( until ) , ( .. ( ULong . MAX_VALUE - ) ) , ( .. ULong . MAX_VALUE ) , ( .. ULong . MAX_VALUE ) ) ) { repeat ( ) { val x = subject . nextULong ( range ) if ( x !in range ) { fail ( \"\" ) } } } }","docstring":""} {"signature":"@ Test fun nextDouble ( )","body":"{ repeat ( ) { val d = subject . nextDouble ( ) if ( ! ( d >= && d < ) ) { fail ( \"\" ) } } }","docstring":""} {"signature":"@ Test fun nextDoubleUntil ( )","body":"{ assertFailsWith < IllegalArgumentException > { subject . nextDouble ( - ) } assertFailsWith < IllegalArgumentException > { subject . nextDouble ( - ) } assertFailsWith < IllegalArgumentException > { subject . nextDouble ( ) } assertFailsWith < IllegalArgumentException > { subject . nextDouble ( Double . NaN ) } repeat ( ) { assertEquals ( , subject . nextDouble ( . nextUp ( ) ) ) } assertTrue ( subject . nextDouble ( Double . POSITIVE_INFINITY ) . isFinite ( ) , \"\" ) for ( bound in listOf ( , , , Double . MAX_VALUE ) ) { repeat ( ) { val d = subject . nextDouble ( bound ) if ( ! ( d >= && d < bound ) ) { fail ( \"\" ) } } } }","docstring":""} {"signature":"@ Test fun nextDoubleFromUntil ( )","body":"{ assertFailsWith < IllegalArgumentException > { subject . nextDouble ( , - ) } assertFailsWith < IllegalArgumentException > { subject . nextDouble ( , Double . NaN ) } assertFailsWith < IllegalArgumentException > { subject . nextDouble ( Double . NaN , ) } assertFailsWith < IllegalArgumentException > { subject . nextDouble ( Double . NaN , Double . POSITIVE_INFINITY ) } assertFailsWith < IllegalArgumentException > { subject . nextDouble ( Double . MAX_VALUE , Double . MAX_VALUE ) } for ( exp in - .. ) { val origin = . pow ( exp ) assertEquals ( origin , subject . nextDouble ( origin , origin . nextUp ( ) ) , \"\" ) assertEquals ( - origin , subject . nextDouble ( - origin , ( - origin ) . nextUp ( ) ) , \"\" ) } run { val size = val fullRangeValues = ( .. size ) . map { subject . nextDouble ( - Double . MAX_VALUE , Double . MAX_VALUE ) } . distinct ( ) fullRangeValues . forEach { assertTrue ( it . isFinite ( ) && it < Double . MAX_VALUE ) } assertTrue ( fullRangeValues . size >= ( size * ) , \"\" ) } for ( ( from , until ) in listOf ( to , - to , to , - PI to PI , to Double . MAX_VALUE ) ) { repeat ( ) { val d = subject . nextDouble ( from , until ) if ( ! ( d >= from && d < until ) ) { fail ( \"\" ) } } } }","docstring":""} {"signature":"@ Test fun nextFloat ( )","body":"{ repeat ( ) { val d = subject . nextFloat ( ) if ( ! ( d >= && d < ) ) { fail ( \"\" ) } } }","docstring":""} {"signature":"@ Test fun nextBoolean ( )","body":"{ val size = val booleans = ( .. size ) . map { subject . nextBoolean ( ) } . groupingBy { it } . eachCount ( ) val ts = booleans [ true ] ! ! val fs = booleans [ false ] ! ! assertNotEquals ( , ts ) assertNotEquals ( , fs ) val skew = abs ( ts . toDouble ( ) - fs . toDouble ( ) ) / size assertTrue ( skew < , \"\" ) }","docstring":""} {"signature":"@ Test fun nextBytes ( )","body":"{ val size = val bytes1 = subject . nextBytes ( size ) assertEquals ( size , bytes1 . size ) assertTrue ( bytes1 . any { it != . toByte ( ) } ) val bytes2 = subject . nextBytes ( ByteArray ( size ) ) assertEquals ( size , bytes2 . size ) assertTrue ( bytes2 . any { it != . toByte ( ) } ) assertFalse ( bytes1 contentEquals bytes2 ) }","docstring":""} {"signature":"@ Test fun nextUBytes ( )","body":"{ val size = val ubytes1 = subject . nextUBytes ( size ) assertEquals ( size , ubytes1 . size ) assertTrue ( ubytes1 . any { it != . toUByte ( ) } ) val ubytes2 = subject . nextUBytes ( UByteArray ( size ) ) assertEquals ( size , ubytes2 . size ) assertTrue ( ubytes2 . any { it != . toUByte ( ) } ) assertFalse ( ubytes1 contentEquals ubytes2 ) }","docstring":""} {"signature":"@ Test fun nextBytesRange ( )","body":"{ val size = val array = subject . nextBytes ( size ) assertFailsWith < IllegalArgumentException > { subject . nextBytes ( array , - , ) } assertFailsWith < IllegalArgumentException > { subject . nextBytes ( array , , size + ) } assertFailsWith < IllegalArgumentException > { subject . nextBytes ( array , , ) } repeat ( ) { val from = subject . nextInt ( , size - ) val to = subject . nextInt ( from + , size ) val prev = array . copyOf ( ) subject . nextBytes ( array , from , to ) var noChanges = array contentEquals prev val rangeSize = to - from val retries = / rangeSize var n = while ( noChanges && n < retries ) { subject . nextBytes ( array , from , to ) noChanges = array contentEquals prev n ++ } if ( noChanges ) { fail ( \"\" + array . copyOfRange ( from , to ) . contentToString ( ) ) } for ( p in until from ) { assertEquals ( prev [ p ] , array [ p ] ) } for ( p in to until size ) { assertEquals ( prev [ p ] , array [ p ] ) } } }","docstring":""} {"signature":"@ Test fun nextUBytesRange ( )","body":"{ val size = val array = subject . nextUBytes ( size ) assertFailsWith < IllegalArgumentException > { subject . nextUBytes ( array , - , ) } assertFailsWith < IllegalArgumentException > { subject . nextUBytes ( array , , size + ) } assertFailsWith < IllegalArgumentException > { subject . nextUBytes ( array , , ) } repeat ( ) { val from = subject . nextInt ( , size - ) val to = subject . nextInt ( from + , size ) val prev = array . copyOf ( ) subject . nextUBytes ( array , from , to ) var noChanges = array contentEquals prev val rangeSize = to - from val retries = / rangeSize var n = while ( noChanges && n < retries ) { subject . nextUBytes ( array , from , to ) noChanges = array contentEquals prev n ++ } if ( noChanges ) { fail ( \"\" + array . copyOfRange ( from , to ) . contentToString ( ) ) } for ( p in until from ) { assertEquals ( prev [ p ] , array [ p ] ) } for ( p in to until size ) { assertEquals ( prev [ p ] , array [ p ] ) } } }","docstring":""} {"signature":"@ Test fun sameIntSeed ( )","body":"{ val v = subject . nextInt ( .. Int . MAX_VALUE ) for ( seed in listOf ( v , - v ) ) { testSameSeededRandoms ( Random ( seed ) , Random ( seed ) , seed ) } }","docstring":""} {"signature":"@ Test fun sameLongSeed ( )","body":"{ val v = subject . nextLong ( .. Long . MAX_VALUE ) for ( seed in listOf ( v , - v ) ) { testSameSeededRandoms ( Random ( seed ) , Random ( seed ) , seed ) } }","docstring":""} {"signature":"@ Test fun sameIntLongSeed ( )","body":"{ val v = subject . nextInt ( .. Int . MAX_VALUE ) for ( seed in listOf ( v , , - v ) ) { testSameSeededRandoms ( Random ( seed ) , Random ( seed . toLong ( ) ) , seed ) } }","docstring":""} {"signature":"private fun testSameSeededRandoms ( r1 : Random , r2 : Random , seed : Any )","body":"{ val seq1 = List ( ) { r1 . nextInt ( ) } val seq2 = List ( ) { r2 . nextInt ( ) } assertEquals ( seq1 , seq2 , \"\" ) }","docstring":""} {"signature":"fun toString ( x : String ) : String","body":"= \"\"","docstring":""} {"signature":"fun on ( )","body":"fun on ( )","docstring":""} {"signature":"fun off ( )","body":"fun off ( )","docstring":""} {"signature":"fun box ( )","body":"= \"\"","docstring":""} {"signature":"fun emergePrimitiveKClass ( root : JsNode )","body":"{ val visitor = object : JsVisitorWithContextImpl ( ) { override fun endVisit ( invocation : JsInvocation , ctx : JsContext < in JsNode > ) { val qualifier = invocation . qualifier as? JsNameRef ? : return if ( qualifier . name ? . specialFunction != SpecialFunction . GET_KCLASS ) return val firstArg = invocation . arguments . firstOrNull ( ) as? JsNameRef ? : return firstArg . primitiveKClass ? . let { ctx . replaceMe ( it ) } } } visitor . accept ( root ) }","docstring":""} {"signature":"fun readNumber ( reader : BufferedReader )","body":"{ val number = try { Integer . parseInt ( reader . readLine ( ) ) } catch ( e : NumberFormatException ) { null } println ( number ) }","docstring":""} {"signature":"fun main ( )","body":"{ val reader = BufferedReader ( StringReader ( \"\" ) ) readNumber ( reader ) }","docstring":""} {"signature":"override fun processClassifiersByNameWithSubstitution ( name : Name , processor : ( FirClassifierSymbol < * > , ConeSubstitutor ) -> Unit )","body":"{ processClassifiersByNameWithSubstitutionFromBothLevelsConditionally ( name ) { symbol , substitutor -> processor ( symbol , substitutor ) true } }","docstring":""} {"signature":"fun processClassifiersByNameWithSubstitutionFromBothLevelsConditionally ( name : Name , processor : ( FirClassifierSymbol < * > , ConeSubstitutor ) -> Boolean , )","body":"{ var wasFoundAny = false first . processClassifiersByNameWithSubstitution ( name ) { symbol , substitutor -> wasFoundAny = processor ( symbol , substitutor ) } if ( ! wasFoundAny ) { second . processClassifiersByNameWithSubstitution ( name , processor :: invoke ) } }","docstring":"/**\n * Starts by querying [first] and calling [processor] with the results.\n * If [processor] doesn't return `true` for any of them (or no symbols were found), also queries [second] and calls [processor].\n */"} {"signature":"private fun < S : FirCallableSymbol < * > > processSymbolsByName ( name : Name , processingFactory : FirScope . ( Name , ( S ) -> Unit ) -> Unit , processor : ( S ) -> Unit , )","body":"{ var wasFoundAny = false first . processingFactory ( name ) { wasFoundAny = true processor ( it ) } if ( ! wasFoundAny ) { second . processingFactory ( name , processor ) } }","docstring":""} {"signature":"override fun processFunctionsByName ( name : Name , processor : ( FirNamedFunctionSymbol ) -> Unit )","body":"{ processSymbolsByName ( name , FirScope :: processFunctionsByName , processor ) }","docstring":""} {"signature":"override fun processPropertiesByName ( name : Name , processor : ( FirVariableSymbol < * > ) -> Unit )","body":"{ processSymbolsByName ( name , FirScope :: processPropertiesByName , processor ) }","docstring":""} {"signature":"override fun processDeclaredConstructors ( processor : ( FirConstructorSymbol ) -> Unit )","body":"{ var wasFoundAny = false first . processDeclaredConstructors { symbol -> wasFoundAny = true processor ( symbol ) } if ( ! wasFoundAny ) { second . processDeclaredConstructors ( processor ) } }","docstring":""} {"signature":"@ Suppress ( \"\" ) internal inline fun < T > MultiArray < T , D1 > . unsafeIndex ( index : Int ) : Int","body":"= offset + strides . first ( ) * index","docstring":""} {"signature":"@ Suppress ( \"\" ) internal inline fun < T > MultiArray < T , D2 > . unsafeIndex ( ind1 : Int , ind2 : Int ) : Int","body":"= offset + strides [ ] * ind1 + strides [ ] * ind2","docstring":""} {"signature":"@ Suppress ( \"\" ) internal inline fun < T > MultiArray < T , D3 > . unsafeIndex ( ind1 : Int , ind2 : Int , ind3 : Int ) : Int","body":"= offset + strides [ ] * ind1 + strides [ ] * ind2 + strides [ ] * ind3","docstring":""} {"signature":"@ Suppress ( \"\" ) internal inline fun < T > MultiArray < T , D4 > . unsafeIndex ( ind1 : Int , ind2 : Int , ind3 : Int , ind4 : Int ) : Int","body":"= offset + strides [ ] * ind1 + strides [ ] * ind2 + strides [ ] * ind3 + strides [ ] * ind4","docstring":""} {"signature":"@ Suppress ( \"\" ) internal inline fun < T > MultiArray < T , * > . unsafeIndex ( indices : IntArray ) : Int","body":"= strides . foldIndexed ( offset ) { i , acc , stride -> acc + indices [ i ] * stride }","docstring":""} {"signature":"public operator fun get ( vararg indices : Int ) : MultiArray < T , DN >","body":"{ return indices . fold ( this . base ) { m , pos -> m . view ( pos ) } }","docstring":""} {"signature":"public fun < T , D : Dimension , M : Dimension > MultiArray < T , D > . view ( index : Int , axis : Int = ) : MultiArray < T , M >","body":"{ checkBounds ( index in until shape [ axis ] , index , axis , axis ) return NDArray ( data , offset + strides [ axis ] * index , shape . remove ( axis ) , strides . remove ( axis ) , dimensionOf ( this . dim . d - ) , base ? : this ) }","docstring":""} {"signature":"@ Suppress ( \"\" ) public fun < T , D : Dimension , M : Dimension > MultiArray < T , D > . view ( indices : IntArray , axes : IntArray ) : MultiArray < T , M >","body":"{ for ( ( ind , axis ) in indices . zip ( axes ) ) checkBounds ( ind in until this . shape [ axis ] , ind , axis , this . shape [ axis ] ) val newShape = shape . filterIndexed { i , _ -> ! axes . contains ( i ) } . toIntArray ( ) val newStrides = strides . filterIndexed { i , _ -> ! axes . contains ( i ) } . toIntArray ( ) var newOffset = offset for ( i in axes . indices ) newOffset += strides [ axes [ i ] ] * indices [ i ] return NDArray ( data , newOffset , newShape , newStrides , dimensionOf ( this . dim . d - axes . size ) , base ? : this ) }","docstring":""} {"signature":"@ JvmName ( \"\" ) public fun < T > MultiArray < T , D2 > . view ( index : Int , axis : Int = ) : MultiArray < T , D1 >","body":"= view < T , D2 , D1 > ( index , axis )","docstring":""} {"signature":"@ JvmName ( \"\" ) public fun < T > MultiArray < T , D3 > . view ( index : Int , axis : Int = ) : MultiArray < T , D2 >","body":"= view < T , D3 , D2 > ( index , axis )","docstring":""} {"signature":"@ JvmName ( \"\" ) public fun < T > MultiArray < T , D3 > . view ( ind1 : Int , ind2 : Int , axis1 : Int = , axis2 : Int = ) : MultiArray < T , D1 >","body":"= view ( intArrayOf ( ind1 , ind2 ) , intArrayOf ( axis1 , axis2 ) )","docstring":""} {"signature":"@ JvmName ( \"\" ) public fun < T > MultiArray < T , D4 > . view ( index : Int , axis : Int = ) : MultiArray < T , D3 >","body":"= view < T , D4 , D3 > ( index , axis )","docstring":""} {"signature":"@ JvmName ( \"\" ) public fun < T > MultiArray < T , D4 > . view ( ind1 : Int , ind2 : Int , axis1 : Int = , axis2 : Int = ) : MultiArray < T , D2 >","body":"= view ( intArrayOf ( ind1 , ind2 ) , intArrayOf ( axis1 , axis2 ) )","docstring":""} {"signature":"@ JvmName ( \"\" ) public fun < T > MultiArray < T , D4 > . view ( ind1 : Int , ind2 : Int , ind3 : Int , axis1 : Int = , axis2 : Int = , axis3 : Int = ) : MultiArray < T , D1 >","body":"= view ( intArrayOf ( ind1 , ind2 , ind3 ) , intArrayOf ( axis1 , axis2 , axis3 ) )","docstring":""} {"signature":"@ JvmName ( \"\" ) public fun < T > MultiArray < T , DN > . view ( index : Int , axis : Int = ) : MultiArray < T , DN >","body":"= view < T , DN , DN > ( index , axis )","docstring":""} {"signature":"@ JvmName ( \"\" ) public fun < T > MultiArray < T , DN > . view ( index : IntArray , axes : IntArray ) : MultiArray < T , DN >","body":"= view < T , DN , DN > ( index , axes )","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MultiArray < T , D2 > . get ( index : Int ) : MultiArray < T , D1 >","body":"= view ( index , )","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MultiArray < T , D3 > . get ( index : Int ) : MultiArray < T , D2 >","body":"= view ( index , )","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MultiArray < T , D3 > . get ( ind1 : Int , ind2 : Int ) : MultiArray < T , D1 >","body":"= view ( ind1 , ind2 , , )","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MultiArray < T , D4 > . get ( index : Int ) : MultiArray < T , D3 >","body":"= view ( index , )","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MultiArray < T , D4 > . get ( ind1 : Int , ind2 : Int ) : MultiArray < T , D2 >","body":"= view ( ind1 , ind2 , , )","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MultiArray < T , D4 > . get ( ind1 : Int , ind2 : Int , ind3 : Int ) : MultiArray < T , D1 >","body":"= view ( ind1 , ind2 , ind3 , , , )","docstring":""} {"signature":"public fun < T , D : Dimension , O : Dimension > MultiArray < T , D > . slice ( inSlice : ClosedRange < Int > , axis : Int = ) : NDArray < T , O >","body":"{ require ( axis in until this . dim . d ) { \"\" } val slice = inSlice . toSlice ( ) val actualFrom = if ( slice . start != - ) { check ( slice . start > - ) { \"\" } slice . start } else { } val actualTo = if ( slice . stop != - ) { check ( slice . stop <= shape [ axis ] ) { \"\" } slice . stop } else { check ( shape [ axis ] > actualFrom ) { \"\" } shape [ axis ] - } val sliceStrides = strides . copyOf ( ) . apply { this [ axis ] *= slice . step } val sliceShape = if ( actualFrom > actualTo ) { intArrayOf ( ) } else { shape . copyOf ( ) . apply { this [ axis ] = ( actualTo - actualFrom + slice . step ) / slice . step } } return NDArray ( data , offset + actualFrom * strides [ axis ] , sliceShape , sliceStrides , dimensionOf ( sliceShape . size ) , base ? : this ) }","docstring":""} {"signature":"public fun < T , D : Dimension , O : Dimension > MultiArray < T , D > . slice ( indexing : Map < Int , Indexing > ) : NDArray < T , O >","body":"{ var newOffset = offset var newShape : IntArray = shape . copyOf ( ) var newStrides : IntArray = strides . copyOf ( ) val removeAxes = mutableListOf < Int > ( ) for ( ind in indexing ) { require ( ind . key in until this . dim . d ) { \"\" } when ( ind . value ) { is RInt -> { val index = ( ind . value as RInt ) . data require ( index in until shape [ ind . key ] ) { \"\" } newOffset += newStrides [ ind . key ] * index removeAxes . add ( ind . key ) } is Slice -> { val index = ind . value as Slice val actualFrom = if ( index . start != - ) { check ( index . start > - ) { \"\" } index . start } else { } val actualTo = if ( index . stop != - ) { check ( index . stop <= shape [ ind . key ] ) { \"\" } index . stop } else { check ( shape [ ind . key ] > index . start ) { \"\" } shape [ ind . key ] - } newOffset += actualFrom * newStrides [ ind . key ] newShape [ ind . key ] = if ( actualFrom > actualTo ) else ( actualTo - actualFrom + index . step ) / index . step newStrides [ ind . key ] *= index . step } } } newShape = newShape . removeAll ( removeAxes ) newStrides = newStrides . removeAll ( removeAxes ) return NDArray ( this . data , newOffset , newShape , newStrides , dimensionOf ( newShape . size ) , base ? : this ) }","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MultiArray < T , D1 > . get ( index : ClosedRange < Int > ) : MultiArray < T , D1 >","body":"= slice ( index )","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MultiArray < T , D2 > . get ( index : ClosedRange < Int > ) : MultiArray < T , D2 >","body":"= slice ( index )","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MultiArray < T , D2 > . get ( ind1 : ClosedRange < Int > , ind2 : ClosedRange < Int > ) : MultiArray < T , D2 >","body":"= slice ( mapOf ( to ind1 . toSlice ( ) , to ind2 . toSlice ( ) ) )","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MultiArray < T , D2 > . get ( ind1 : Int , ind2 : ClosedRange < Int > ) : MultiArray < T , D1 >","body":"= slice ( mapOf ( to ind1 . r , to ind2 . toSlice ( ) ) )","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MultiArray < T , D2 > . get ( ind1 : ClosedRange < Int > , ind2 : Int ) : MultiArray < T , D1 >","body":"= slice ( mapOf ( to ind1 . toSlice ( ) , to ind2 . r ) )","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MultiArray < T , D3 > . get ( index : ClosedRange < Int > ) : MultiArray < T , D3 >","body":"= slice ( index )","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MultiArray < T , D3 > . get ( ind1 : ClosedRange < Int > , ind2 : ClosedRange < Int > ) : MultiArray < T , D3 >","body":"= slice ( mapOf ( to ind1 . toSlice ( ) , to ind2 . toSlice ( ) ) )","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MultiArray < T , D3 > . get ( ind1 : Int , ind2 : ClosedRange < Int > ) : MultiArray < T , D2 >","body":"= slice ( mapOf ( to ind1 . r , to ind2 . toSlice ( ) ) )","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MultiArray < T , D3 > . get ( ind1 : ClosedRange < Int > , ind2 : Int ) : MultiArray < T , D2 >","body":"= slice ( mapOf ( to ind1 . toSlice ( ) , to ind2 . r ) )","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MultiArray < T , D3 > . get ( ind1 : ClosedRange < Int > , ind2 : ClosedRange < Int > , ind3 : ClosedRange < Int > ) : MultiArray < T , D3 >","body":"= slice ( mapOf ( to ind1 . toSlice ( ) , to ind2 . toSlice ( ) , to ind3 . toSlice ( ) ) )","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MultiArray < T , D3 > . get ( ind1 : Int , ind2 : Int , ind3 : ClosedRange < Int > ) : MultiArray < T , D1 >","body":"= slice ( mapOf ( to ind1 . r , to ind2 . r , to ind3 . toSlice ( ) ) )","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MultiArray < T , D3 > . get ( ind1 : Int , ind2 : ClosedRange < Int > , ind3 : Int ) : MultiArray < T , D1 >","body":"= slice ( mapOf ( to ind1 . r , to ind2 . toSlice ( ) , to ind3 . r ) )","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MultiArray < T , D3 > . get ( ind1 : ClosedRange < Int > , ind2 : Int , ind3 : Int ) : MultiArray < T , D1 >","body":"= slice ( mapOf ( to ind1 . toSlice ( ) , to ind2 . r , to ind3 . r ) )","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MultiArray < T , D3 > . get ( ind1 : Int , ind2 : ClosedRange < Int > , ind3 : ClosedRange < Int > ) : MultiArray < T , D2 >","body":"= slice ( mapOf ( to ind1 . r , to ind2 . toSlice ( ) , to ind3 . toSlice ( ) ) )","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MultiArray < T , D3 > . get ( ind1 : ClosedRange < Int > , ind2 : ClosedRange < Int > , ind3 : Int ) : MultiArray < T , D2 >","body":"= slice ( mapOf ( to ind1 . toSlice ( ) , to ind2 . toSlice ( ) , to ind3 . r ) )","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MultiArray < T , D3 > . get ( ind1 : ClosedRange < Int > , ind2 : Int , ind3 : ClosedRange < Int > ) : MultiArray < T , D2 >","body":"= slice ( mapOf ( to ind1 . toSlice ( ) , to ind2 . r , to ind3 . toSlice ( ) ) )","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MultiArray < T , D4 > . get ( index : ClosedRange < Int > ) : MultiArray < T , D4 >","body":"= slice ( index )","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MultiArray < T , D4 > . get ( ind1 : ClosedRange < Int > , ind2 : ClosedRange < Int > ) : MultiArray < T , D4 >","body":"= slice ( mapOf ( to ind1 . toSlice ( ) , to ind2 . toSlice ( ) ) )","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MultiArray < T , D4 > . get ( ind1 : Int , ind2 : ClosedRange < Int > ) : MultiArray < T , D3 >","body":"= slice ( mapOf ( to ind1 . r , to ind2 . toSlice ( ) ) )","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MultiArray < T , D4 > . get ( ind1 : ClosedRange < Int > , ind2 : Int ) : MultiArray < T , D3 >","body":"= slice ( mapOf ( to ind1 . toSlice ( ) , to ind2 . r ) )","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MultiArray < T , D4 > . get ( ind1 : ClosedRange < Int > , ind2 : ClosedRange < Int > , ind3 : ClosedRange < Int > ) : MultiArray < T , D4 >","body":"= slice ( mapOf ( to ind1 . toSlice ( ) , to ind2 . toSlice ( ) , to ind3 . toSlice ( ) ) )","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MultiArray < T , D4 > . get ( ind1 : Int , ind2 : Int , ind3 : ClosedRange < Int > ) : MultiArray < T , D2 >","body":"= slice ( mapOf ( to ind1 . r , to ind2 . r , to ind3 . toSlice ( ) ) )","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MultiArray < T , D4 > . get ( ind1 : Int , ind2 : ClosedRange < Int > , ind3 : Int ) : MultiArray < T , D2 >","body":"= slice ( mapOf ( to ind1 . r , to ind2 . toSlice ( ) , to ind3 . r ) )","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MultiArray < T , D4 > . get ( ind1 : ClosedRange < Int > , ind2 : Int , ind3 : Int ) : MultiArray < T , D2 >","body":"= slice ( mapOf ( to ind1 . toSlice ( ) , to ind2 . r , to ind3 . r ) )","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MultiArray < T , D4 > . get ( ind1 : Int , ind2 : ClosedRange < Int > , ind3 : ClosedRange < Int > ) : MultiArray < T , D3 >","body":"= slice ( mapOf ( to ind1 . r , to ind2 . toSlice ( ) , to ind3 . toSlice ( ) ) )","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MultiArray < T , D4 > . get ( ind1 : ClosedRange < Int > , ind2 : ClosedRange < Int > , ind3 : Int ) : MultiArray < T , D3 >","body":"= slice ( mapOf ( to ind1 . toSlice ( ) , to ind2 . toSlice ( ) , to ind3 . r ) )","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MultiArray < T , D4 > . get ( ind1 : ClosedRange < Int > , ind2 : Int , ind3 : ClosedRange < Int > ) : MultiArray < T , D3 >","body":"= slice ( mapOf ( to ind1 . toSlice ( ) , to ind2 . r , to ind3 . toSlice ( ) ) )","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MultiArray < T , D4 > . get ( ind1 : ClosedRange < Int > , ind2 : ClosedRange < Int > , ind3 : ClosedRange < Int > , ind4 : ClosedRange < Int > ) : MultiArray < T , D4 >","body":"= slice ( mapOf ( to ind1 . toSlice ( ) , to ind2 . toSlice ( ) , to ind3 . toSlice ( ) , to ind4 . toSlice ( ) ) )","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MultiArray < T , D4 > . get ( ind1 : Int , ind2 : Int , ind3 : Int , ind4 : ClosedRange < Int > ) : MultiArray < T , D1 >","body":"= slice ( mapOf ( to ind1 . r , to ind2 . r , to ind3 . r , to ind4 . toSlice ( ) ) )","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MultiArray < T , D4 > . get ( ind1 : Int , ind2 : Int , ind3 : ClosedRange < Int > , ind4 : Int ) : MultiArray < T , D1 >","body":"= slice ( mapOf ( to ind1 . r , to ind2 . r , to ind3 . toSlice ( ) , to ind4 . r ) )","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MultiArray < T , D4 > . get ( ind1 : Int , ind2 : ClosedRange < Int > , ind3 : Int , ind4 : Int ) : MultiArray < T , D1 >","body":"= slice ( mapOf ( to ind1 . r , to ind2 . toSlice ( ) , to ind3 . r , to ind4 . r ) )","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MultiArray < T , D4 > . get ( ind1 : ClosedRange < Int > , ind2 : Int , ind3 : Int , ind4 : Int ) : MultiArray < T , D1 >","body":"= slice ( mapOf ( to ind1 . toSlice ( ) , to ind2 . r , to ind3 . r , to ind4 . r ) )","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MultiArray < T , D4 > . get ( ind1 : Int , ind2 : Int , ind3 : ClosedRange < Int > , ind4 : ClosedRange < Int > ) : MultiArray < T , D2 >","body":"= slice ( mapOf ( to ind1 . r , to ind2 . r , to ind3 . toSlice ( ) , to ind4 . toSlice ( ) ) )","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MultiArray < T , D4 > . get ( ind1 : Int , ind2 : ClosedRange < Int > , ind3 : ClosedRange < Int > , ind4 : Int ) : MultiArray < T , D2 >","body":"= slice ( mapOf ( to ind1 . r , to ind2 . toSlice ( ) , to ind3 . toSlice ( ) , to ind4 . r ) )","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MultiArray < T , D4 > . get ( ind1 : ClosedRange < Int > , ind2 : ClosedRange < Int > , ind3 : Int , ind4 : Int ) : MultiArray < T , D2 >","body":"= slice ( mapOf ( to ind1 . toSlice ( ) , to ind2 . toSlice ( ) , to ind3 . r , to ind4 . r ) )","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MultiArray < T , D4 > . get ( ind1 : Int , ind2 : ClosedRange < Int > , ind3 : Int , ind4 : ClosedRange < Int > ) : MultiArray < T , D2 >","body":"= slice ( mapOf ( to ind1 . r , to ind2 . toSlice ( ) , to ind3 . r , to ind4 . toSlice ( ) ) )","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MultiArray < T , D4 > . get ( ind1 : ClosedRange < Int > , ind2 : Int , ind3 : Int , ind4 : ClosedRange < Int > ) : MultiArray < T , D2 >","body":"= slice ( mapOf ( to ind1 . toSlice ( ) , to ind2 . r , to ind3 . r , to ind4 . toSlice ( ) ) )","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MultiArray < T , D4 > . get ( ind1 : ClosedRange < Int > , ind2 : Int , ind3 : ClosedRange < Int > , ind4 : Int ) : MultiArray < T , D2 >","body":"= slice ( mapOf ( to ind1 . toSlice ( ) , to ind2 . r , to ind3 . toSlice ( ) , to ind4 . r ) )","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MultiArray < T , D4 > . get ( ind1 : Int , ind2 : ClosedRange < Int > , ind3 : ClosedRange < Int > , ind4 : ClosedRange < Int > ) : MultiArray < T , D3 >","body":"= slice ( mapOf ( to ind1 . r , to ind2 . toSlice ( ) , to ind3 . toSlice ( ) , to ind4 . toSlice ( ) ) )","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MultiArray < T , D4 > . get ( ind1 : ClosedRange < Int > , ind2 : Int , ind3 : ClosedRange < Int > , ind4 : ClosedRange < Int > ) : MultiArray < T , D3 >","body":"= slice ( mapOf ( to ind1 . toSlice ( ) , to ind2 . r , to ind3 . toSlice ( ) , to ind4 . toSlice ( ) ) )","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MultiArray < T , D4 > . get ( ind1 : ClosedRange < Int > , ind2 : ClosedRange < Int > , ind3 : Int , ind4 : ClosedRange < Int > ) : MultiArray < T , D3 >","body":"= slice ( mapOf ( to ind1 . toSlice ( ) , to ind2 . toSlice ( ) , to ind3 . r , to ind4 . toSlice ( ) ) )","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MultiArray < T , D4 > . get ( ind1 : ClosedRange < Int > , ind2 : ClosedRange < Int > , ind3 : ClosedRange < Int > , ind4 : Int ) : MultiArray < T , D3 >","body":"= slice ( mapOf ( to ind1 . toSlice ( ) , to ind2 . toSlice ( ) , to ind3 . toSlice ( ) , to ind4 . r ) )","docstring":""} {"signature":"public fun < T > MultiArray < T , DN > . slice ( map : Map < Int , Indexing > ) : MultiArray < T , DN >","body":"= slice < T , DN , DN > ( map )","docstring":""} {"signature":"public operator fun get ( vararg indices : Int ) : MutableMultiArray < T , DN >","body":"{ return indices . fold ( this . base ) { m , pos -> m . mutableView ( pos ) } }","docstring":""} {"signature":"public inline fun < T , D : Dimension , reified M : Dimension > MultiArray < T , D > . writableView ( index : Int , axis : Int = ) : MutableMultiArray < T , M >","body":"{ checkBounds ( index in until shape [ axis ] , index , axis , axis ) return NDArray ( data , offset + strides [ axis ] * index , shape . remove ( axis ) , strides . remove ( axis ) , dimensionClassOf ( this . dim . d - ) , base ? : this ) }","docstring":""} {"signature":"public inline fun < T , D : Dimension , reified M : Dimension > MultiArray < T , D > . writableView ( indices : IntArray , axes : IntArray ) : MutableMultiArray < T , M >","body":"{ for ( ( ind , axis ) in indices . zip ( axes ) ) checkBounds ( ind in until this . shape [ axis ] , ind , axis , this . shape [ axis ] ) val newShape = shape . filterIndexed { i , _ -> ! axes . contains ( i ) } . toIntArray ( ) val newStrides = strides . filterIndexed { i , _ -> ! axes . contains ( i ) } . toIntArray ( ) var newOffset = offset for ( i in axes . indices ) newOffset += strides [ axes [ i ] ] * indices [ i ] return NDArray ( data , newOffset , newShape , newStrides , dimensionOf ( this . dim . d - axes . size ) , base ? : this ) }","docstring":""} {"signature":"public inline fun < T , D : Dimension , reified M : Dimension > MutableMultiArray < T , D > . mutableView ( index : Int , axis : Int = ) : MutableMultiArray < T , M >","body":"= this . writableView ( index , axis )","docstring":""} {"signature":"public inline fun < T , D : Dimension , reified M : Dimension > MutableMultiArray < T , D > . mutableView ( index : IntArray , axes : IntArray ) : MutableMultiArray < T , M >","body":"= this . writableView ( index , axes )","docstring":""} {"signature":"@ JvmName ( \"\" ) public fun < T > MutableMultiArray < T , D2 > . mutableView ( index : Int , axis : Int = ) : MutableMultiArray < T , D1 >","body":"= mutableView < T , D2 , D1 > ( index , axis )","docstring":""} {"signature":"@ JvmName ( \"\" ) public fun < T > MutableMultiArray < T , D3 > . mutableView ( index : Int , axis : Int = ) : MutableMultiArray < T , D2 >","body":"= mutableView < T , D3 , D2 > ( index , axis )","docstring":""} {"signature":"@ JvmName ( \"\" ) public fun < T > MutableMultiArray < T , D3 > . mutableView ( ind1 : Int , ind2 : Int , axis1 : Int = , axis2 : Int = ) : MutableMultiArray < T , D1 >","body":"= mutableView ( intArrayOf ( ind1 , ind2 ) , intArrayOf ( axis1 , axis2 ) )","docstring":""} {"signature":"@ JvmName ( \"\" ) public fun < T > MutableMultiArray < T , D4 > . mutableView ( index : Int , axis : Int = ) : MutableMultiArray < T , D3 >","body":"= mutableView < T , D4 , D3 > ( index , axis )","docstring":""} {"signature":"@ JvmName ( \"\" ) public fun < T > MutableMultiArray < T , D4 > . mutableView ( ind1 : Int , ind2 : Int , axis1 : Int = , axis2 : Int = ) : MutableMultiArray < T , D2 >","body":"= mutableView ( intArrayOf ( ind1 , ind2 ) , intArrayOf ( axis1 , axis2 ) )","docstring":""} {"signature":"@ JvmName ( \"\" ) public fun < T > MutableMultiArray < T , D4 > . mutableView ( ind1 : Int , ind2 : Int , ind3 : Int , axis1 : Int = , axis2 : Int = , axis3 : Int = ) : MutableMultiArray < T , D1 >","body":"= mutableView ( intArrayOf ( ind1 , ind2 , ind3 ) , intArrayOf ( axis1 , axis2 , axis3 ) )","docstring":""} {"signature":"@ JvmName ( \"\" ) public fun < T > MutableMultiArray < T , DN > . mutableView ( index : Int , axis : Int = ) : MutableMultiArray < T , DN >","body":"= mutableView < T , DN , DN > ( index , axis )","docstring":""} {"signature":"@ JvmName ( \"\" ) public fun < T > MutableMultiArray < T , DN > . mutableView ( index : IntArray , axes : IntArray ) : MutableMultiArray < T , DN >","body":"= mutableView < T , DN , DN > ( index , axes )","docstring":""} {"signature":"@ Deprecated ( \"\"\"\"\"\" , replaceWith = ReplaceWith ( \"\" ) , level = DeprecationLevel . WARNING ) @ JvmName ( \"\" ) public operator fun < T > MutableMultiArray < T , D2 > . get ( write : WritableView . Companion , index : Int ) : MutableMultiArray < T , D1 >","body":"= mutableView ( index , )","docstring":""} {"signature":"@ Deprecated ( \"\"\"\"\"\" , replaceWith = ReplaceWith ( \"\" ) , level = DeprecationLevel . WARNING ) @ JvmName ( \"\" ) public operator fun < T > MutableMultiArray < T , D3 > . get ( write : WritableView . Companion , index : Int ) : MutableMultiArray < T , D2 >","body":"= mutableView ( index , )","docstring":""} {"signature":"@ Deprecated ( \"\"\"\"\"\" , replaceWith = ReplaceWith ( \"\" ) , level = DeprecationLevel . WARNING ) @ JvmName ( \"\" ) public operator fun < T > MutableMultiArray < T , D3 > . get ( write : WritableView . Companion , ind1 : Int , ind2 : Int ) : MultiArray < T , D1 >","body":"= mutableView ( ind1 , ind2 , , )","docstring":""} {"signature":"@ Deprecated ( \"\"\"\"\"\" , replaceWith = ReplaceWith ( \"\" ) , level = DeprecationLevel . WARNING ) @ JvmName ( \"\" ) public operator fun < T > MutableMultiArray < T , D4 > . get ( write : WritableView . Companion , index : Int ) : MutableMultiArray < T , D3 >","body":"= mutableView ( index , )","docstring":""} {"signature":"@ Deprecated ( \"\"\"\"\"\" , replaceWith = ReplaceWith ( \"\" ) , level = DeprecationLevel . WARNING ) @ JvmName ( \"\" ) public operator fun < T > MutableMultiArray < T , D4 > . get ( write : WritableView . Companion , ind1 : Int , ind2 : Int ) : MultiArray < T , D2 >","body":"= mutableView ( ind1 , ind2 , , )","docstring":""} {"signature":"@ Deprecated ( \"\"\"\"\"\" , replaceWith = ReplaceWith ( \"\" ) , level = DeprecationLevel . WARNING ) @ JvmName ( \"\" ) public operator fun < T > MutableMultiArray < T , D4 > . get ( write : WritableView . Companion , ind1 : Int , ind2 : Int , ind3 : Int ) : MutableMultiArray < T , D1 >","body":"= mutableView ( ind1 , ind2 , ind3 , , , )","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MutableMultiArray < T , D2 > . set ( index : Int , value : MultiArray < T , D1 > )","body":"{ val ret = this . mutableView ( index , ) requireArraySizes ( ret . size , value . size ) for ( i in ret . indices ) ret [ i ] = value [ i ] }","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MutableMultiArray < T , D3 > . set ( index : Int , value : MultiArray < T , D2 > )","body":"{ val ret = this . mutableView ( index , ) requireArraySizes ( ret . size , value . size ) for ( ( i , j ) in ret . multiIndices ) ret [ i , j ] = value [ i , j ] }","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MutableMultiArray < T , D3 > . set ( ind1 : Int , ind2 : Int , value : MultiArray < T , D1 > )","body":"{ val ret = this . mutableView ( ind1 , ind2 , , ) requireArraySizes ( ret . size , value . size ) for ( i in ret . indices ) ret [ i ] = value [ i ] }","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MutableMultiArray < T , D4 > . set ( index : Int , value : MultiArray < T , D3 > )","body":"{ val ret = this . mutableView ( index , ) requireArraySizes ( ret . size , value . size ) for ( ( i , j , k ) in ret . multiIndices ) ret [ i , j , k ] = value [ i , j , k ] }","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MutableMultiArray < T , D4 > . set ( ind1 : Int , ind2 : Int , value : MultiArray < T , D2 > )","body":"{ val ret = this . mutableView ( ind1 , ind2 , , ) requireArraySizes ( ret . size , value . size ) for ( ( i , j ) in ret . multiIndices ) ret [ i , j ] = value [ i , j ] }","docstring":""} {"signature":"@ JvmName ( \"\" ) public operator fun < T > MutableMultiArray < T , D4 > . set ( ind1 : Int , ind2 : Int , ind3 : Int , value : MultiArray < T , D1 > )","body":"{ val ret = this . mutableView ( ind1 , ind2 , ind3 , , , ) requireArraySizes ( ret . size , value . size ) for ( i in ret . indices ) ret [ i ] = value [ i ] }","docstring":""} {"signature":"fun foo ( )","body":"{ }","docstring":""} {"signature":"fun bar ( )","body":"{ }","docstring":""} {"signature":"fun testConstructor ( )","body":"{ val generatedClass : AllOpenGenerated = AllOpenGenerated ( ) }","docstring":""} {"signature":"fun testNestedClasses ( )","body":"{ val nestedFoo = AllOpenGenerated . NestedFoo ( ) nestedFoo . materialize ( ) . foo ( ) val nestedBar = AllOpenGenerated . NestedBar ( ) nestedBar . materialize ( ) . bar ( ) }","docstring":""} {"signature":"fun load ( path : String )","body":"= DataRow . read ( \"\" )","docstring":""} {"signature":"fun load ( path : String , maxPages : Int ) : AnyFrame","body":"{ val rows = mutableListOf < AnyRow > ( ) var pagePath = path do { val row = load ( pagePath ) rows . add ( row ) val next = row . getValueOrNull < String > ( \"\" ) pagePath = \"\" } while ( next != null && rows . size < maxPages ) return rows . concat ( ) }","docstring":""} {"signature":"fun main ( )","body":"{ val searchRequest = \"\" val resultsPerPage = val maxPages = val videoId by column < String > ( \"\" ) val channel by columnGroup ( ) val videos = load ( \"\" , maxPages ) . convertTo < SearchResponse > { convert < String ? > ( ) . with { it . toString ( ) } convert < Int ? > ( ) . with { it ? : } } . items . concat ( ) . dropNulls { id . videoId } . select { id . videoId into videoId and snippet } . distinct ( ) . parse ( ) . convert { colsAtAnyDepth ( ) . colsOf < URL > ( ) } . with { IMG ( it , maxHeight = ) } . add ( \"\" ) { val id = videoId ( ) IFRAME ( \"\" ) } . move { snippet . title and snippet . publishTime } . toTop ( ) . move { snippet . channelId and snippet . channelTitle } . under ( channel ) . remove { snippet } val stats = videos [ videoId ] . chunked ( ) . map { val ids = it . joinToString ( \"\" ) load ( \"\" ) . cast < StatisticsResponse > ( ) } . asColumnGroup ( ) . items . concat ( ) . select { id and statistics . allCols ( ) } . parse ( ) val withStat = videos . join ( stats ) { videoId match right . id } val viewCount by column < Int > ( ) val publishTime by column < Instant > ( ) val channels = withStat . groupBy { channel } . sum { viewCount } . sortByDesc { viewCount } . flatten ( ) channels . print ( borders = true , columnTypes = true ) val growth = withStat . select { publishTime and viewCount } . convert { publishTime and viewCount } . toLong ( ) . sortBy { publishTime } . cumSum { viewCount } growth . print ( borders = true , columnTypes = true ) }","docstring":""} {"signature":"fun box ( )","body":"= if ( A . value == ) \"\" else \"\"","docstring":""} {"signature":"fun createTestData ( )","body":"{ }","docstring":""} {"signature":"override fun call ( vararg args : Any ? ) : Any ?","body":"{ var index = val dispatchReceiver = state . irFunction . dispatchReceiverParameter ? . let { environment . convertToState ( args [ index ++ ] , it . type ) } val extensionReceiver = state . irFunction . extensionReceiverParameter ? . let { environment . convertToState ( args [ index ++ ] , it . type ) } val argsVariables = state . irFunction . valueParameters . map { parameter -> environment . convertToState ( args [ index ++ ] , parameter . type ) } val valueArguments = listOfNotNull ( dispatchReceiver , extensionReceiver ) + argsVariables return callInterceptor . interceptProxy ( state . irFunction , valueArguments ) }","docstring":""} {"signature":"override fun callBy ( args : Map < KParameter , Any ? > ) : Any ?","body":"{ TODO ( \"\" ) }","docstring":""} {"signature":"override fun equals ( other : Any ? ) : Boolean","body":"{ if ( this === other ) return true if ( other !is KFunctionProxy ) return false if ( arity != other . arity || isSuspend != other . isSuspend ) return false if ( this . state . funInterface ? . classOrNull ? . owner ? . origin == IrDeclarationOrigin . IR_EXTERNAL_JAVA_DECLARATION_STUB ) return this . state === other . state if ( ! state . hasTheSameFieldsWith ( other . state ) ) return false return when { state . irFunction . isAdapter ( ) && other . state . irFunction . isAdapter ( ) -> state . irFunction . equalsByAdapteeCall ( other . state . irFunction ) else -> state . irFunction == other . state . irFunction } }","docstring":""} {"signature":"override fun hashCode ( ) : Int","body":"{ return when { state . irFunction . isAdapter ( ) -> state . irFunction . getAdapteeCallSymbol ( ) ! ! . hashCode ( ) else -> state . irFunction . hashCode ( ) } }","docstring":""} {"signature":"override fun toString ( ) : String","body":"{ return state . toString ( ) }","docstring":""} {"signature":"private fun IrFunction . isAdapter ( )","body":"= this . origin == IrDeclarationOrigin . ADAPTER_FOR_CALLABLE_REFERENCE","docstring":""} {"signature":"private fun IrFunction . getAdapteeCallSymbol ( ) : IrFunctionSymbol ?","body":"{ if ( ! this . isAdapter ( ) ) return null val call = when ( val statement = this . body ! ! . statements . single ( ) ) { is IrTypeOperatorCall -> statement . argument is IrReturn -> statement . value else -> statement } return ( call as? IrFunctionAccessExpression ) ? . symbol }","docstring":""} {"signature":"private fun IrFunction . equalsByAdapteeCall ( other : IrFunction ) : Boolean","body":"{ if ( ! this . isAdapter ( ) || ! other . isAdapter ( ) ) return false val statement = this . body ! ! . statements . single ( ) val otherStatement = other . body ! ! . statements . single ( ) val ( thisArg , otherArg ) = when ( statement ) { is IrTypeOperatorCall -> { if ( otherStatement !is IrTypeOperatorCall ) return false Pair ( statement . argument , otherStatement . argument ) } is IrReturn -> { if ( otherStatement !is IrReturn ) return false Pair ( statement . value , otherStatement . value ) } else -> Pair ( statement , otherStatement ) } if ( thisArg !is IrFunctionAccessExpression || otherArg !is IrFunctionAccessExpression ) return false if ( thisArg . symbol != otherArg . symbol ) return false return true }","docstring":""} {"signature":"fun box ( ) : String","body":"{ assertEquals ( , c_x . getter ( Host ) ) assertEquals ( , c_x . getter . call ( Host ) ) assertEquals ( , c_xx ( Host ) ) assertEquals ( , c_xx . getter . call ( Host ) ) assertEquals ( , c_y . getter ( Host ) ) assertEquals ( , c_y . getter . call ( Host ) ) assertEquals ( , c_yy ( Host ) ) assertEquals ( , c_yy ( Host ) ) c_y . setter ( Host , ) assertEquals ( , c_y . getter ( Host ) ) assertEquals ( , c_yy . getter ( Host ) ) c_yy . setter ( Host , ) assertEquals ( , c_y . getter ( Host ) ) assertEquals ( , c_yy . getter ( Host ) ) c_y . setter . call ( Host , ) assertEquals ( , c_yy ( Host ) ) c_yy . setter . call ( Host , ) assertEquals ( , c_y ( Host ) ) return \"\" }","docstring":""} {"signature":"override fun check ( expression : FirQualifiedAccessExpression , context : CheckerContext , reporter : DiagnosticReporter )","body":"{ checkExplicitReceiver ( expression , context , reporter ) checkExpressionItself ( expression , context , reporter ) }","docstring":""} {"signature":"private fun checkExpressionItself ( expression : FirQualifiedAccessExpression , context : CheckerContext , reporter : DiagnosticReporter )","body":"{ if ( context . getClassCalls . lastOrNull ( ) ? . argument == expression ) return val secondLast = context . callsOrAssignments . elementAtOrNull ( context . callsOrAssignments . size - ) if ( secondLast is FirQualifiedAccessExpression && secondLast . explicitReceiver == expression ) return val diagnostic = expression . resolvedType . coneTypeParameterInQualifiedAccess ? : return val source = expression . calleeReference . source ? : return reporter . reportOn ( source , FirErrors . TYPE_PARAMETER_IS_NOT_AN_EXPRESSION , diagnostic . symbol , context ) }","docstring":""} {"signature":"private fun checkExplicitReceiver ( expression : FirQualifiedAccessExpression , context : CheckerContext , reporter : DiagnosticReporter )","body":"{ val explicitReceiver = expression . explicitReceiver val typeParameterSymbol = ( explicitReceiver as? FirResolvedReifiedParameterReference ) ? . symbol ? : explicitReceiver ? . resolvedType ? . coneTypeParameterInQualifiedAccess ? . symbol ? : return if ( expression is FirCallableReferenceAccess ) { reporter . reportOn ( expression . source , FirErrors . CALLABLE_REFERENCE_LHS_NOT_A_CLASS , context ) } else { reporter . reportOn ( explicitReceiver ? . source , FirErrors . TYPE_PARAMETER_ON_LHS_OF_DOT , typeParameterSymbol , context ) } }","docstring":""} {"signature":"override fun resolveSingle ( context : ColumnResolutionContext ) : ColumnWithPath < C > ?","body":"{ return source . resolveSingle ( context ) ? . let { it . data . rename ( name ) . addPath ( it . path ) } }","docstring":""} {"signature":"override fun name ( )","body":"= name","docstring":""} {"signature":"override fun rename ( newName : String )","body":"= RenamedColumnReference ( source , newName )","docstring":""} {"signature":"override fun getValue ( row : AnyRow )","body":"= source . getValue ( row )","docstring":""} {"signature":"override fun getValueOrNull ( row : AnyRow )","body":"= source . getValueOrNull ( row )","docstring":""} {"signature":"fun main ( )","body":"{ assertEquals ( \"\" , readLine ( ) ) assertNull ( readLine ( ) ) }","docstring":""} {"signature":"fun outerLambda ( action : String . ( ) -> Unit )","body":"{ }","docstring":""} {"signature":"fun consume ( arg : String )","body":"{ }","docstring":""} {"signature":"fun consumeInt ( arg : Int )","body":"{ }","docstring":""} {"signature":"fun main ( )","body":"{ outerLambda { lambda = { consume ( this @ outerLambda ) } } outerLambda { lambda = innerLambda @ { consumeInt ( this @ innerLambda ) } } lateinit var c : Int . ( ) -> Unit val a = \"\" . apply { val b : Int . ( ) -> Unit = { this@apply . hello ( ) } c = { this@apply . hello ( ) } } }","docstring":""} {"signature":"fun String . hello ( )","body":"= this","docstring":""} {"signature":"fun box ( ) : String","body":"{ assertTrue ( :: readonly is KProperty0 < * > ) assertFalse ( :: readonly is KMutableProperty0 < * > ) assertFalse ( :: readonly is KProperty1 < * , * > ) assertFalse ( :: readonly is KProperty2 < * , * , * > ) assertTrue ( :: mutable is KProperty0 < * > ) assertTrue ( :: mutable is KMutableProperty0 < * > ) assertFalse ( :: mutable is KProperty1 < * , * > ) assertFalse ( :: mutable is KProperty2 < * , * , * > ) assertFalse ( A :: readonly is KProperty0 < * > ) assertTrue ( A :: readonly is KProperty1 < * , * > ) assertFalse ( A :: readonly is KMutableProperty1 < * , * > ) assertFalse ( A :: readonly is KProperty2 < * , * , * > ) assertFalse ( A :: mutable is KProperty0 < * > ) assertTrue ( A :: mutable is KProperty1 < * , * > ) assertTrue ( A :: mutable is KMutableProperty1 < * , * > ) assertFalse ( A :: mutable is KProperty2 < * , * , * > ) return \"\" }","docstring":""} {"signature":"protected fun protectedFun ( ) : String","body":"= \"\"","docstring":""} {"signature":"private inline fun test ( ) : String","body":"= protectedFun ( )","docstring":""} {"signature":"fun onlyTestCallSite ( )","body":"= test ( )","docstring":""} {"signature":"fun cinterops ( action : Action < NamedDomainObjectContainer < DefaultCInteropSettings > > )","body":"= action . execute ( cinterops )","docstring":""} {"signature":"fun foo ( )","body":"{ \"\" val b = val f = { x : Int -> val a = x + b } \"\" }","docstring":""} {"signature":"fun enable ( ) : AsyncHook","body":"fun enable ( ) : AsyncHook","docstring":""} {"signature":"fun disable ( ) : AsyncHook","body":"fun disable ( ) : AsyncHook","docstring":""} {"signature":"fun build ( ) : FirSuperReference","body":"{ return FirExplicitSuperReference ( source , labelName , superTypeRef , ) }","docstring":""} {"signature":"@ OptIn ( ExperimentalContracts :: class ) inline fun buildExplicitSuperReference ( init : FirExplicitSuperReferenceBuilder . ( ) -> Unit ) : FirSuperReference","body":"{ contract { callsInPlace ( init , InvocationKind . EXACTLY_ONCE ) } return FirExplicitSuperReferenceBuilder ( ) . apply ( init ) . build ( ) }","docstring":""} {"signature":"override fun markDiagnostic ( diagnostic : DiagnosticMarker ) : List < TextRange >","body":"{ @ Suppress ( \"\" ) val typed = diagnostic as KtDiagnosticWithParameters2 < Set < KtSourceElement > , Set < KtSourceElement > > val source = diagnostic . element as KtPsiSourceElement return UnreachableCode . getUnreachableTextRanges ( source . psi as KtElement , typed . a . mapNotNull { it . psi as? KtElement } . toSet ( ) , typed . b . mapNotNull { it . psi as? KtElement } . toSet ( ) ) }","docstring":""} {"signature":"override fun markDiagnostic ( diagnostic : DiagnosticMarker ) : List < TextRange >","body":"{ require ( diagnostic is KtDiagnostic ) val element = diagnostic . element . psi ? : return emptyList ( ) ( element as? KtNamedDeclaration ) ? . nameIdentifier ? . let { nameIdentifier -> return mark ( nameIdentifier ) } return mark ( element ) }","docstring":""} {"signature":"override fun A . write ( parcel : Parcel , flags : Int )","body":"{ parcel . writeString ( a . value ) }","docstring":""} {"signature":"override fun create ( parcel : Parcel )","body":"= A ( parcel . readString ( ) )","docstring":""} {"signature":"fun box ( )","body":"= parcelTest { parcel -> val test = A ( \"\" ) test . writeToParcel ( parcel , ) val bytes = parcel . marshall ( ) parcel . unmarshall ( bytes , , bytes . size ) parcel . setDataPosition ( ) val test2 = parcelableCreator < A > ( ) . createFromParcel ( parcel ) assert ( test . a . value == test2 . a . value ) }","docstring":""} {"signature":"override fun getInstance ( project : Project )","body":"= ConfigurationCacheStartParameterAccessorG6 ( project . gradle )","docstring":""} {"signature":"inline fun g ( h : ( ) -> String ) : String","body":"= h ( )","docstring":""} {"signature":"fun box ( ) : String","body":"{ val result = \"\" fun Any . f ( ) : String = result return g ( \"\" :: f ) }","docstring":""} {"signature":"suspend fun yield ( t : T )","body":"{ }","docstring":""} {"signature":"fun < S > generate ( g : suspend GenericController < S > . ( ) -> Unit ) : List < S >","body":"= TODO ( )","docstring":""} {"signature":"@ InternalDokkaApi fun AbstractDokkaTask . buildJsonConfiguration ( prettyPrint : Boolean = true ) : String","body":"{ val configuration = this . buildDokkaConfiguration ( ) return if ( prettyPrint ) { configuration . toPrettyJsonString ( ) } else { configuration . toCompactJsonString ( ) } }","docstring":"/**\n * Serializes [DokkaConfiguration] of this [AbstractDokkaTask] as json\n *\n * Should be used for short-term debugging only, no guarantees are given for the support of this API.\n *\n * Better alternative should be introduced as part of [#2873](https://github.com/Kotlin/dokka/issues/2873).\n */"} {"signature":"fun main ( )","body":"{ Annotated . bar ( ) . length }","docstring":""} {"signature":"@ DisplayName ( \"\" ) @ GradleAndroidTest fun testKt15001 ( gradleVersion : GradleVersion , agpVersion : String , jdkVersion : JdkVersions . ProvidedJdk , )","body":"{ project ( \"\" . withPrefix , gradleVersion , buildOptions = defaultBuildOptions . copy ( androidVersion = agpVersion ) , buildJdk = jdkVersion . location ) { build ( \"\" ) { assertKaptSuccessful ( ) } } }","docstring":""} {"signature":"@ DisplayName ( \"\" ) @ GradleAndroidTest fun testICWithAnonymousClasses ( gradleVersion : GradleVersion , agpVersion : String , jdkVersion : JdkVersions . ProvidedJdk , )","body":"{ project ( \"\" . withPrefix , gradleVersion , buildOptions = defaultBuildOptions . copy ( androidVersion = agpVersion ) , buildJdk = jdkVersion . location ) { gradleProperties . appendText ( \"\"\"\"\"\" . trimMargin ( ) ) build ( \"\" ) { assertKaptSuccessful ( ) } val modifiedSource = javaSourcesDir ( ) . resolve ( \"\" ) modifiedSource . modify { assert ( it . contains ( \"\" ) ) it . replace ( \"\" , \"\" ) } build ( \"\" ) } }","docstring":""} {"signature":"@ DisplayName ( \"\" ) @ GradleAndroidTest fun testStaticDslOptionsPassedToKapt ( gradleVersion : GradleVersion , agpVersion : String , jdkVersion : JdkVersions . ProvidedJdk , )","body":"{ project ( \"\" . withPrefix , gradleVersion , buildOptions = defaultBuildOptions . copy ( androidVersion = agpVersion ) , buildJdk = jdkVersion . location ) { subProject ( \"\" ) . buildGradle . appendText ( \"\"\"\"\"\" . trimIndent ( ) ) build ( \"\" ) { assertOutputContains ( Regex ( \"\" ) ) } } }","docstring":""} {"signature":"@ DisplayName ( \"\" ) @ GradleAndroidTest fun kaptTasksShouldNotCreateOutputsOnConfigurationPhase ( gradleVersion : GradleVersion , agpVersion : String , jdkVersion : JdkVersions . ProvidedJdk , )","body":"{ project ( \"\" . withPrefix , gradleVersion , buildOptions = defaultBuildOptions . copy ( androidVersion = agpVersion ) , buildJdk = jdkVersion . location ) { build ( \"\" , \"\" ) { assertFileInProjectNotExists ( \"\" ) assertFileInProjectNotExists ( \"\" ) } } }","docstring":""} {"signature":"@ DisplayName ( \"\" ) @ GradleAndroidTest fun testKotlinProcessorUsingFiler ( gradleVersion : GradleVersion , agpVersion : String , jdkVersion : JdkVersions . ProvidedJdk , )","body":"{ project ( \"\" , gradleVersion , buildOptions = defaultBuildOptions . copy ( androidVersion = agpVersion ) , buildJdk = jdkVersion . location ) { gradleProperties . append ( \"\"\"\"\"\" . trimIndent ( ) ) buildGradle . appendText ( \"\"\"\"\"\" . trimIndent ( ) ) val javaSources = projectPath . allJavaSources assert ( javaSources . isEmpty ( ) ) { \"\" } kotlinSourcesDir ( ) . resolve ( \"\" ) . modify { it . replace ( \"\" , \"\" ) } build ( \"\" ) { assertFileInProjectExists ( \"\" ) assertTasksExecuted ( \"\" ) assertTasksNoSource ( \"\" ) } } }","docstring":""} {"signature":"@ DisplayName ( \"\" ) @ GradleAndroidTest fun testKaptUsingApOptionProvidersAsNestedInputOutput ( gradleVersion : GradleVersion , agpVersion : String , jdkVersion : JdkVersions . ProvidedJdk , )","body":"{ project ( \"\" , gradleVersion , buildOptions = defaultBuildOptions . copy ( androidVersion = agpVersion , kaptOptions = null ) , buildJdk = jdkVersion . location ) { subProject ( \"\" ) . buildGradle . appendText ( \"\"\"\"\"\" . trimIndent ( ) ) val inFile = subProject ( \"\" ) . projectPath . resolve ( \"\" ) inFile . writeText ( \"\" ) val argsFile = projectPath . resolve ( \"\" ) argsFile . writeText ( \"\" ) val kaptTasks = listOf ( \"\" ) val javacTasks = listOf ( \"\" ) val buildTasks = ( kaptTasks + javacTasks ) . toTypedArray ( ) build ( * buildTasks ) { assertTasksExecuted ( kaptTasks + javacTasks ) } inFile . appendText ( \"\" ) build ( * buildTasks ) { assertTasksExecuted ( kaptTasks ) assertTasksUpToDate ( javacTasks ) } argsFile . appendText ( \"\" ) build ( * buildTasks ) { assertTasksUpToDate ( javacTasks + kaptTasks ) } } }","docstring":""} {"signature":"@ DisplayName ( \"\" ) @ GradleAndroidTest fun testAgpNestedArgsNotEvaluatedDuringConfiguration ( gradleVersion : GradleVersion , agpVersion : String , jdkVersion : JdkVersions . ProvidedJdk , )","body":"{ project ( \"\" , gradleVersion , buildOptions = defaultBuildOptions . copy ( androidVersion = agpVersion ) , buildJdk = jdkVersion . location ) { subProject ( \"\" ) . buildGradle . appendText ( \"\"\"\"\"\" . trimIndent ( ) ) build ( \"\" , \"\" ) build ( \"\" , \"\" , buildOptions = buildOptions . copy ( kaptOptions = BuildOptions . KaptOptions ( verbose = false ) ) ) } }","docstring":""} {"signature":"@ DisplayName ( \"\" ) @ GradleAndroidTest fun kaptGenerateStubsModuleName ( gradleVersion : GradleVersion , agpVersion : String , jdkVersion : JdkVersions . ProvidedJdk )","body":"{ project ( \"\" , gradleVersion , buildOptions = defaultBuildOptions . copy ( androidVersion = agpVersion ) , buildJdk = jdkVersion . location ) { build ( \"\" ) { val stubsFile = subProject ( \"\" ) . projectPath . resolve ( \"\" ) assertFileExists ( stubsFile ) assertFileContains ( stubsFile , \"\" ) val compiledClassFile = subProject ( \"\" ) . projectPath . resolve ( \"\" ) assertFileExists ( compiledClassFile ) checkBytecodeContains ( compiledClassFile . toFile ( ) , \"\" ) } } }","docstring":""} {"signature":"operator fun < R > get ( prop : KProperty1 < * , R > ) : R","body":"= TODO ( )","docstring":""} {"signature":"operator fun < R > set ( prop : KMutableProperty1 < * , R > , value : R )","body":"{ }","docstring":""} {"signature":"fun main ( intDTO : DTO < Int > ? )","body":"{ if ( intDTO != null ) { intDTO [ DTO < Int > :: q ] = intDTO [ DTO < Int > :: test ] ! ! . size intDTO [ DTO < Int > :: q ] = intDTO [ DTO < Int > :: test ] ! ! . size } }","docstring":""} {"signature":"fun foo ( )","body":"{ }","docstring":""} {"signature":"fun findClass ( request : JavaClassFinder . Request , searchScope : GlobalSearchScope ) : JavaClass ?","body":"fun findClass ( request : JavaClassFinder . Request , searchScope : GlobalSearchScope ) : JavaClass ?","docstring":""} {"signature":"fun knownClassNamesInPackage ( packageFqName : FqName ) : Set < String > ?","body":"fun knownClassNamesInPackage ( packageFqName : FqName ) : Set < String > ?","docstring":""} {"signature":"@ Test fun uncParent ( )","body":"{ if ( ! isWindows ) return assertEquals ( Path ( \"\" ) , Path ( \"\" ) . parent ) assertEquals ( Path ( \"\" ) , Path ( \"\" ) . parent ) }","docstring":""} {"signature":"override fun < R , D > acceptChildren ( visitor : FirVisitor < R , D > , data : D )","body":"{ status . accept ( visitor , data ) returnTypeRef . accept ( visitor , data ) contextReceivers . forEach { it . accept ( visitor , data ) } controlFlowGraphReference ? . accept ( visitor , data ) valueParameters . forEach { it . accept ( visitor , data ) } body ? . accept ( visitor , data ) contractDescription ? . accept ( visitor , data ) annotations . forEach { it . accept ( visitor , data ) } typeParameters . forEach { it . accept ( visitor , data ) } }","docstring":""} {"signature":"override fun < D > transformChildren ( transformer : FirTransformer < D > , data : D ) : FirPropertyAccessorImpl","body":"{ transformStatus ( transformer , data ) transformReturnTypeRef ( transformer , data ) contextReceivers . transformInplace ( transformer , data ) controlFlowGraphReference = controlFlowGraphReference ? . transform ( transformer , data ) transformValueParameters ( transformer , data ) transformBody ( transformer , data ) transformContractDescription ( transformer , data ) transformAnnotations ( transformer , data ) transformTypeParameters ( transformer , data ) return this }","docstring":""} {"signature":"override fun < D > transformStatus ( transformer : FirTransformer < D > , data : D ) : FirPropertyAccessorImpl","body":"{ status = status . transform ( transformer , data ) return this }","docstring":""} {"signature":"override fun < D > transformReturnTypeRef ( transformer : FirTransformer < D > , data : D ) : FirPropertyAccessorImpl","body":"{ returnTypeRef = returnTypeRef . transform ( transformer , data ) return this }","docstring":""} {"signature":"override fun < D > transformReceiverParameter ( transformer : FirTransformer < D > , data : D ) : FirPropertyAccessorImpl","body":"{ return this }","docstring":""} {"signature":"override fun < D > transformValueParameters ( transformer : FirTransformer < D > , data : D ) : FirPropertyAccessorImpl","body":"{ valueParameters . transformInplace ( transformer , data ) return this }","docstring":""} {"signature":"override fun < D > transformBody ( transformer : FirTransformer < D > , data : D ) : FirPropertyAccessorImpl","body":"{ body = body ? . transform ( transformer , data ) return this }","docstring":""} {"signature":"override fun < D > transformContractDescription ( transformer : FirTransformer < D > , data : D ) : FirPropertyAccessorImpl","body":"{ contractDescription = contractDescription ? . transform ( transformer , data ) return this }","docstring":""} {"signature":"override fun < D > transformAnnotations ( transformer : FirTransformer < D > , data : D ) : FirPropertyAccessorImpl","body":"{ annotations . transformInplace ( transformer , data ) return this }","docstring":""} {"signature":"override fun < D > transformTypeParameters ( transformer : FirTransformer < D > , data : D ) : FirPropertyAccessorImpl","body":"{ typeParameters . transformInplace ( transformer , data ) return this }","docstring":""} {"signature":"override fun replaceStatus ( newStatus : FirDeclarationStatus )","body":"{ status = newStatus }","docstring":""} {"signature":"override fun replaceReturnTypeRef ( newReturnTypeRef : FirTypeRef )","body":"{ returnTypeRef = newReturnTypeRef }","docstring":""} {"signature":"override fun replaceReceiverParameter ( newReceiverParameter : FirReceiverParameter ? )","body":"{ }","docstring":""} {"signature":"override fun replaceDeprecationsProvider ( newDeprecationsProvider : DeprecationsProvider )","body":"{ deprecationsProvider = newDeprecationsProvider }","docstring":""} {"signature":"override fun replaceContextReceivers ( newContextReceivers : List < FirContextReceiver > )","body":"{ contextReceivers = newContextReceivers . toMutableOrEmpty ( ) }","docstring":""} {"signature":"override fun replaceControlFlowGraphReference ( newControlFlowGraphReference : FirControlFlowGraphReference ? )","body":"{ controlFlowGraphReference = newControlFlowGraphReference }","docstring":""} {"signature":"override fun replaceValueParameters ( newValueParameters : List < FirValueParameter > )","body":"{ valueParameters . clear ( ) valueParameters . addAll ( newValueParameters ) }","docstring":""} {"signature":"override fun replaceBody ( newBody : FirBlock ? )","body":"{ body = newBody }","docstring":""} {"signature":"override fun replaceContractDescription ( newContractDescription : FirContractDescription ? )","body":"{ contractDescription = newContractDescription }","docstring":""} {"signature":"override fun replaceAnnotations ( newAnnotations : List < FirAnnotation > )","body":"{ annotations = newAnnotations . toMutableOrEmpty ( ) }","docstring":""} {"signature":"override fun getInstance ( ) : ConfigurationTimePropertiesAccessor","body":"= ConfigurationTimePropertiesAccessorG6 ( )","docstring":""} {"signature":"override fun < T > Provider < T > . usedAtConfigurationTime ( ) : Provider < T >","body":"= forUseAtConfigurationTime ( )","docstring":""} {"signature":"@ Test fun testKotlinStdlibJvm ( )","body":"{ val konanHome = KotlinNativePaths . homePath doTestKotlinStdLibResolve ( NativePlatforms . unspecifiedNativePlatform , konanHome . resolve ( konanCommonLibraryPath ( KONAN_STDLIB_NAME ) ) . toPath ( ) ) }","docstring":""} {"signature":"abstract fun apply ( document : IDocument , psiElement : PsiElement )","body":"abstract fun apply ( document : IDocument , psiElement : PsiElement )","docstring":""} {"signature":"abstract override fun getDisplayString ( ) : String","body":"abstract override fun getDisplayString ( ) : String","docstring":""} {"signature":"override fun apply ( document : IDocument )","body":"{ getActiveElement ( ) ? . let { apply ( document , it ) } }","docstring":""} {"signature":"fun getActiveFile ( ) : IFile ?","body":"{ return editor . eclipseFile }","docstring":""} {"signature":"fun getEndOffset ( element : PsiElement , editor : KotlinEditor ) : Int","body":"{ return element . getEndLfOffset ( editor . document ) }","docstring":""} {"signature":"fun insertAfter ( element : PsiElement , text : String )","body":"{ insertAfter ( element , text , editor . javaEditor . getViewer ( ) . getDocument ( ) ) }","docstring":""} {"signature":"fun replaceBetween ( from : PsiElement , till : PsiElement , text : String )","body":"{ replaceBetween ( from , till , text , editor . javaEditor . getViewer ( ) . getDocument ( ) ) }","docstring":""} {"signature":"fun replace ( toReplace : PsiElement , text : String )","body":"{ replaceBetween ( toReplace , toReplace , text ) }","docstring":""} {"signature":"protected fun getAnalysisResultWithProvider ( jetFile : KtFile ) : AnalysisResultWithProvider","body":"{ return KotlinAnalyzer . analyzeFile ( jetFile ) }","docstring":""} {"signature":"override fun getSelection ( document : IDocument ? ) : Point ?","body":"= null","docstring":""} {"signature":"override fun getAdditionalProposalInfo ( ) : String ?","body":"= null","docstring":""} {"signature":"override fun getImage ( ) : Image ?","body":"= JavaPluginImages . get ( JavaPluginImages . IMG_CORRECTION_CHANGE )","docstring":""} {"signature":"override fun getContextInformation ( ) : IContextInformation ?","body":"= null","docstring":""} {"signature":"override fun getRelevance ( ) : Int","body":"= ","docstring":""} {"signature":"fun getStartOffset ( element : PsiElement , editor : KotlinEditor ) : Int","body":"{ return getStartOffset ( element , editor . document ) }","docstring":""} {"signature":"fun getStartOffset ( element : PsiElement , document : IDocument ) : Int","body":"{ return element . getOffsetByDocument ( document , element . getTextRange ( ) . getStartOffset ( ) ) }","docstring":""} {"signature":"fun insertBefore ( element : PsiElement , text : String , fileDocument : IDocument )","body":"{ fileDocument . replace ( getStartOffset ( element , fileDocument ) , , text ) }","docstring":""} {"signature":"fun replaceBetween ( from : PsiElement , till : PsiElement , text : String , fileDocument : IDocument )","body":"{ val startOffset = getStartOffset ( from , fileDocument ) val endOffset = getEndOffset ( till , fileDocument ) fileDocument . replace ( startOffset , endOffset - startOffset , text ) }","docstring":""} {"signature":"fun getEndOffset ( element : PsiElement , editor : KotlinEditor ) : Int","body":"{ return getEndOffset ( element , editor . document ) }","docstring":""} {"signature":"fun getEndOffset ( element : PsiElement , fileDocument : IDocument ) : Int","body":"{ return element . getEndLfOffset ( fileDocument ) }","docstring":""} {"signature":"fun replace ( toReplace : PsiElement , text : String , fileDocument : IDocument )","body":"{ replaceBetween ( toReplace , toReplace , text , fileDocument ) }","docstring":""} {"signature":"fun remove ( element : PsiElement , fileDocument : IDocument )","body":"{ replace ( element , \"\" , fileDocument ) }","docstring":""} {"signature":"fun insertAfter ( element : PsiElement , text : String , fileDocument : IDocument )","body":"{ fileDocument . replace ( getEndOffset ( element , fileDocument ) , , text ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val vector = java . util . Vector < Int > ( ) vector . add ( ) vector . add ( ) vector . add ( ) var sum = for ( e in vector . elements ( ) ) { sum += e } return if ( sum == ) \"\" else \"\" }","docstring":""} {"signature":"override fun resumeWith ( result : Result < Any ? > )","body":"{ result . getOrThrow ( ) }","docstring":""} {"signature":"fun builder ( c : suspend ( ) -> Unit )","body":"{ c . startCoroutine ( EmptyContinuation ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ builder { sb . appendLine ( coroutineContext ) } assertEquals ( \"\"\"\"\"\" . trimIndent ( ) , sb . toString ( ) ) return \"\" }","docstring":""} {"signature":"override fun configure ( builder : TestConfigurationBuilder )","body":"{ super . configure ( builder ) builder . apply { defaultDirectives { + JvmEnvironmentConfigurationDirectives . USE_JAVAC } useMetaTestConfigurators ( :: DiagnosticTestWithJavacSkipConfigurator ) } }","docstring":""} {"signature":"fun box ( )","body":"= MyEnum . E1 . f ( ) + MyEnum . E2 . f ( )","docstring":""} {"signature":"override fun f ( )","body":"= \"\"","docstring":""} {"signature":"override fun f ( )","body":"= \"\"","docstring":""} {"signature":"fun f ( ) : String","body":"fun f ( ) : String","docstring":""} {"signature":"@ JvmOverloads fun defaultHostPreset ( subproject : Project , whitelist : List < KotlinTargetPreset < * > > = listOf ( subproject . kotlin . presets . macosX64 , subproject . kotlin . presets . macosArm64 , subproject . kotlin . presets . linuxX64 , subproject . kotlin . presets . mingwX64 ) ) : KotlinTargetPreset < * >","body":"{ if ( whitelist . isEmpty ( ) ) throw Exception ( \"\" ) val presetCandidate = when { PlatformInfo . isMac ( ) -> if ( PlatformInfo . hostName . endsWith ( \"\" ) ) subproject . kotlin . presets . macosX64 else subproject . kotlin . presets . macosArm64 PlatformInfo . isLinux ( ) -> subproject . kotlin . presets . linuxX64 PlatformInfo . isWindows ( ) -> subproject . kotlin . presets . mingwX64 else -> null } return if ( presetCandidate != null && presetCandidate in whitelist ) presetCandidate else throw Exception ( \"\" ) }","docstring":""} {"signature":"fun targetHostPreset ( subproject : Project , crossTarget : String ) : KotlinTargetPreset < * >","body":"{ return when ( crossTarget ) { \"\" -> subproject . kotlin . presets . linuxArm64 \"\" -> subproject . kotlin . presets . linuxX64 else -> throw Exception ( \"\" ) } }","docstring":""} {"signature":"fun getNativeProgramExtension ( ) : String","body":"= when { PlatformInfo . isMac ( ) -> \"\" PlatformInfo . isLinux ( ) -> \"\" PlatformInfo . isWindows ( ) -> \"\" else -> error ( \"\" ) }","docstring":""} {"signature":"fun getFileSize ( filePath : String ) : Long ?","body":"{ val file = File ( filePath ) return if ( file . exists ( ) ) file . length ( ) else null }","docstring":""} {"signature":"fun getCodeSizeBenchmark ( programName : String , filePath : String ) : BenchmarkResult","body":"{ val codeSize = getFileSize ( filePath ) return BenchmarkResult ( programName , codeSize ? . let { BenchmarkResult . Status . PASSED } ? : run { BenchmarkResult . Status . FAILED } , codeSize ? . toDouble ( ) ? : , BenchmarkResult . Metric . CODE_SIZE , codeSize ? . toDouble ( ) ? : , , ) }","docstring":""} {"signature":"fun toCodeSizeBenchmark ( metricDescription : String , status : String , programName : String ) : BenchmarkResult","body":"{ if ( ! metricDescription . startsWith ( \"\" ) ) { error ( \"\" ) } val codeSize = metricDescription . split ( '' ) [ ] . toDouble ( ) return BenchmarkResult ( programName , if ( status == \"\" ) BenchmarkResult . Status . PASSED else BenchmarkResult . Status . FAILED , codeSize , BenchmarkResult . Metric . CODE_SIZE , codeSize , , ) }","docstring":""} {"signature":"fun createJsonReport ( projectProperties : Map < String , Any > ) : String","body":"{ fun getValue ( key : String ) : String = projectProperties [ key ] as? String ? : \"\" val machine = Environment . Machine ( getValue ( \"\" ) , getValue ( \"\" ) ) val jdk = Environment . JDKInstance ( getValue ( \"\" ) , getValue ( \"\" ) ) val env = Environment ( machine , jdk ) val flags : List < String > = ( projectProperties [ \"\" ] as? List < * > ) ? . filterIsInstance < String > ( ) ? : emptyList ( ) val backend = Compiler . Backend ( Compiler . backendTypeFromString ( getValue ( \"\" ) ) ! ! , getValue ( \"\" ) , flags ) val kotlin = Compiler ( backend , getValue ( \"\" ) ) val benchDesc = getValue ( \"\" ) val benchmarksArray = JsonTreeParser . parse ( benchDesc ) val benchmarks = parseBenchmarksArray ( benchmarksArray ) . union ( ( projectProperties [ \"\" ] as? List < * > ) ? . filterIsInstance < BenchmarkResult > ( ) ? : emptyList ( ) ) . union ( listOf ( projectProperties [ \"\" ] as? BenchmarkResult ) . filterNotNull ( ) ) . toList ( ) val report = BenchmarksReport ( env , benchmarks , kotlin ) return report . toJson ( ) }","docstring":""} {"signature":"fun mergeReports ( reports : List < File > ) : String","body":"{ val reportsToMerge = reports . filter { it . exists ( ) } . map { val json = it . inputStream ( ) . bufferedReader ( ) . use { it . readText ( ) } val reportElement = JsonTreeParser . parse ( json ) BenchmarksReport . create ( reportElement ) } val structuredReports = mutableMapOf < String , MutableList < BenchmarksReport > > ( ) reportsToMerge . map { it . compiler . backend . flags . joinToString ( ) to it } . forEach { structuredReports . getOrPut ( it . first ) { mutableListOf < BenchmarksReport > ( ) } . add ( it . second ) } val jsons = structuredReports . map { ( _ , value ) -> value . reduce { result , it -> result + it } . toJson ( ) } return when ( jsons . size ) { -> \"\" -> jsons [ ] else -> jsons . joinToString ( prefix = \"\" , postfix = \"\" ) } }","docstring":""} {"signature":"fun getCompileOnlyBenchmarksOpts ( project : Project , defaultCompilerOpts : List < String > ) : List < String >","body":"{ val dist = project . file ( project . findProperty ( \"\" ) ? : \"\" ) val useCache = ! project . hasProperty ( \"\" ) val cacheOption = \"\" . takeIf { useCache && ! PlatformInfo . isWindows ( ) } return ( project . findProperty ( \"\" ) as String ? ) ? . let { if ( it . equals ( \"\" , true ) ) listOf ( \"\" ) else if ( it . equals ( \"\" , true ) ) listOfNotNull ( \"\" , cacheOption ) else listOf ( ) } ? : defaultCompilerOpts + listOfNotNull ( cacheOption ? . takeIf { ! defaultCompilerOpts . contains ( \"\" ) } ) }","docstring":""} {"signature":"fun findFile ( fileName : String , directory : String ) : String ?","body":"= File ( directory ) . walkTopDown ( ) . filter { ! it . absolutePath . contains ( \"\" ) } . find { it . name == fileName } ? . getAbsolutePath ( )","docstring":""} {"signature":"fun uploadFileToArtifactory ( url : String , project : String , artifactoryFilePath : String , filePath : String , password : String )","body":"{ val uploadUrl = \"\" sendUploadRequest ( uploadUrl , filePath , extraHeaders = listOf ( Pair ( \"\" , password ) ) ) }","docstring":""} {"signature":"fun sendUploadRequest ( url : String , fileName : String , username : String ? = null , password : String ? = null , extraHeaders : List < Pair < String , String > > = emptyList ( ) )","body":"{ val uploadingFile = File ( fileName ) val connection = URL ( url ) . openConnection ( ) as HttpURLConnection connection . doOutput = true connection . doInput = true connection . requestMethod = \"\" connection . setRequestProperty ( \"\" , \"\" ) if ( username != null && password != null ) { val auth = Base64 . getEncoder ( ) . encode ( ( username + \"\" + password ) . toByteArray ( ) ) . toString ( Charsets . UTF_8 ) connection . addRequestProperty ( \"\" , \"\" ) } extraHeaders . forEach { connection . addRequestProperty ( it . first , it . second ) } try { connection . connect ( ) BufferedOutputStream ( connection . outputStream ) . use { output -> BufferedInputStream ( FileInputStream ( uploadingFile ) ) . use { input -> input . copyTo ( output ) } } val response = connection . responseMessage println ( \"\" ) } catch ( t : Throwable ) { error ( \"\" ) } }","docstring":""} {"signature":"fun createRunTask ( subproject : Project , name : String , linkTask : Task , executable : String , outputFileName : String ) : Task","body":"{ return subproject . tasks . create ( name , RunKotlinNativeTask :: class . java , linkTask , executable , outputFileName ) }","docstring":""} {"signature":"fun getJvmCompileTime ( subproject : Project , programName : String ) : BenchmarkResult","body":"= TaskTimerListener . getTimerListenerOfSubproject ( subproject ) . getBenchmarkResult ( programName , listOf ( \"\" , \"\" ) )","docstring":""} {"signature":"@ JvmOverloads fun getNativeCompileTime ( subproject : Project , programName : String , tasks : List < String > = listOf ( \"\" ) ) : BenchmarkResult","body":"= TaskTimerListener . getTimerListenerOfSubproject ( subproject ) . getBenchmarkResult ( programName , tasks )","docstring":""} {"signature":"fun getCompileBenchmarkTime ( subproject : Project , programName : String , tasksNames : Iterable < String > , repeats : Int , exitCodes : Map < String , Int > )","body":"= ( .. repeats ) . map { number -> var time = var status = BenchmarkResult . Status . PASSED tasksNames . forEach { time += TaskTimerListener . getTimerListenerOfSubproject ( subproject ) . getTime ( \"\" ) status = if ( exitCodes [ \"\" ] != ) BenchmarkResult . Status . FAILED else status } BenchmarkResult ( programName , status , time , BenchmarkResult . Metric . COMPILE_TIME , time , number , ) } . toList ( )","docstring":""} {"signature":"fun toCompileBenchmark ( metricDescription : String , status : String , programName : String ) : BenchmarkResult","body":"{ if ( ! metricDescription . startsWith ( \"\" ) ) { error ( \"\" ) } val time = metricDescription . split ( '' ) [ ] . toDouble ( ) return BenchmarkResult ( programName , if ( status == \"\" ) BenchmarkResult . Status . PASSED else BenchmarkResult . Status . FAILED , time , BenchmarkResult . Metric . COMPILE_TIME , time , , ) }","docstring":""} {"signature":"internal fun getTimerListenerOfSubproject ( subproject : Project )","body":"= timerListeners [ subproject . name ] ? : error ( \"\" )","docstring":""} {"signature":"fun getBenchmarkResult ( programName : String , tasksNames : List < String > ) : BenchmarkResult","body":"{ val time = tasksNames . map { tasksTimes [ it ] ? : } . sum ( ) val status = tasksNames . map { tasksTimes . containsKey ( it ) } . reduce { a , b -> a && b } return BenchmarkResult ( programName , if ( status ) BenchmarkResult . Status . PASSED else BenchmarkResult . Status . FAILED , time , BenchmarkResult . Metric . COMPILE_TIME , time , , ) }","docstring":""} {"signature":"fun getTime ( taskName : String )","body":"= tasksTimes [ taskName ] ? : ","docstring":""} {"signature":"override fun beforeExecute ( task : Task )","body":"{ startTime = System . nanoTime ( ) }","docstring":""} {"signature":"override fun afterExecute ( task : Task , taskState : TaskState )","body":"{ tasksTimes [ task . name ] = ( System . nanoTime ( ) - startTime ) / }","docstring":""} {"signature":"fun addTimeListener ( subproject : Project )","body":"{ val listener = TaskTimerListener ( ) TaskTimerListener . timerListeners . put ( subproject . name , listener ) subproject . gradle . addListener ( listener ) }","docstring":""} {"signature":"override fun getNotUnderContentRootModule ( project : Project ) : KtNotUnderContentRootModule","body":"{ return ktNotUnderContentRootModuleWithoutPsiFile }","docstring":""} {"signature":"@ OptIn ( KtModuleStructureInternals :: class ) override fun getModule ( element : PsiElement , contextualModule : KtModule ? ) : KtModule","body":"{ val containingFile = element . containingFile ? : return ktNotUnderContentRootModuleWithoutPsiFile val virtualFile = containingFile . virtualFile if ( virtualFile != null && virtualFile . extension == BuiltInSerializerProtocol . BUILTINS_FILE_EXTENSION ) { return builtinsModule } computeSpecialModule ( containingFile ) ? . let { return it } if ( virtualFile == null ) { throw KotlinExceptionWithAttachments ( \"\" ) . withPsiAttachment ( \"\" , containingFile ) . withAttachment ( \"\" , contextualModule ? . asDebugString ( ) ) } return allKtModules . firstOrNull { module -> virtualFile in module . contentScope } ? : throw KotlinExceptionWithAttachments ( \"\" ) . withPsiAttachment ( \"\" , containingFile ) . withAttachment ( \"\" , contextualModule ? . asDebugString ( ) ) . withAttachment ( \"\" , virtualFile . path ) . withAttachment ( \"\" , allKtModules . joinToString ( separator = System . lineSeparator ( ) ) { it . asDebugString ( ) } ) }","docstring":""} {"signature":"override fun hasNext ( ) : Boolean","body":"{ return index < builder . size }","docstring":""} {"signature":"override fun next ( ) : LinkedValue < V >","body":"{ checkForComodification ( ) checkHasNext ( ) lastIteratedKey = nextKey nextWasInvoked = true index ++ @ Suppress ( \"\" ) val result = builder . hashMapBuilder . getOrElse ( nextKey as K ) { throw ConcurrentModificationException ( \"\" ) } nextKey = result . next return result }","docstring":""} {"signature":"override fun remove ( )","body":"{ checkNextWasInvoked ( ) builder . remove ( lastIteratedKey ) lastIteratedKey = null nextWasInvoked = false expectedModCount = builder . hashMapBuilder . modCount index -- }","docstring":""} {"signature":"private fun checkHasNext ( )","body":"{ if ( ! hasNext ( ) ) throw NoSuchElementException ( ) }","docstring":""} {"signature":"private fun checkNextWasInvoked ( )","body":"{ if ( ! nextWasInvoked ) throw IllegalStateException ( ) }","docstring":""} {"signature":"private fun checkForComodification ( )","body":"{ if ( builder . hashMapBuilder . modCount != expectedModCount ) throw ConcurrentModificationException ( ) }","docstring":""} {"signature":"override fun hasNext ( ) : Boolean","body":"{ return internal . hasNext ( ) }","docstring":""} {"signature":"override fun next ( ) : MutableMap . MutableEntry < K , V >","body":"{ val links = internal . next ( ) @ Suppress ( \"\" ) return MutableMapEntry ( internal . builder . hashMapBuilder , internal . lastIteratedKey as K , links ) }","docstring":""} {"signature":"override fun remove ( )","body":"{ internal . remove ( ) }","docstring":""} {"signature":"override fun setValue ( newValue : V ) : V","body":"{ val result = links . value links = links . withValue ( newValue ) mutableMap [ key ] = links return result }","docstring":""} {"signature":"override fun hasNext ( ) : Boolean","body":"{ return internal . hasNext ( ) }","docstring":""} {"signature":"override fun next ( ) : K","body":"{ internal . next ( ) @ Suppress ( \"\" ) return internal . lastIteratedKey as K }","docstring":""} {"signature":"override fun remove ( )","body":"{ internal . remove ( ) }","docstring":""} {"signature":"override fun hasNext ( ) : Boolean","body":"{ return internal . hasNext ( ) }","docstring":""} {"signature":"override fun next ( ) : V","body":"{ return internal . next ( ) . value }","docstring":""} {"signature":"override fun remove ( )","body":"{ internal . remove ( ) }","docstring":""} {"signature":"fun main ( )","body":"= runBlocking { val table = Channel < Ball > ( ) launch { player ( \"\" , table ) } launch { player ( \"\" , table ) } table . send ( Ball ( ) ) delay ( ) coroutineContext . cancelChildren ( ) }","docstring":""} {"signature":"suspend fun player ( name : String , table : Channel < Ball > )","body":"{ for ( ball in table ) { ball . hits ++ println ( \"\" ) delay ( ) table . send ( ball ) } }","docstring":""} {"signature":"protected fun element ( kind : Element . Kind , vararg dependencies : Element ) : ElementDelegateProvider","body":"{ return ElementDelegateProvider ( kind , dependencies , isSealed = false , predefinedName = null ) }","docstring":""} {"signature":"protected fun sealedElement ( kind : Element . Kind , vararg dependencies : Element ) : ElementDelegateProvider","body":"{ return ElementDelegateProvider ( kind , dependencies , isSealed = true , predefinedName = null ) }","docstring":""} {"signature":"protected fun element ( name : String , kind : Element . Kind , vararg dependencies : Element ) : ElementDelegateProvider","body":"{ return ElementDelegateProvider ( kind , dependencies , isSealed = false , predefinedName = name ) }","docstring":""} {"signature":"protected fun sealedElement ( name : String , kind : Element . Kind , vararg dependencies : Element ) : ElementDelegateProvider","body":"{ return ElementDelegateProvider ( kind , dependencies , isSealed = true , predefinedName = name ) }","docstring":""} {"signature":"private fun createElement ( name : String , propertyName : String , kind : Element . Kind , vararg dependencies : Element ) : Element","body":"= Element ( name , propertyName , kind ) . also { if ( dependencies . isEmpty ( ) ) { it . elementParents . add ( ElementRef ( baseFirElement ) ) } for ( dependency in dependencies ) { it . elementParents . add ( ElementRef ( dependency ) ) } elements += it }","docstring":""} {"signature":"private fun createSealedElement ( name : String , propertyName : String , kind : Element . Kind , vararg dependencies : Element , ) : Element","body":"{ return createElement ( name , propertyName , kind , * dependencies ) . apply { isSealed = true } }","docstring":""} {"signature":"fun applyConfigurations ( )","body":"{ for ( element in elements ) { configurations [ element ] ? . invoke ( ) } }","docstring":""} {"signature":"operator fun provideDelegate ( thisRef : AbstractFirTreeBuilder , prop : KProperty < * > ) : ReadOnlyProperty < Any ? , Element >","body":"{ val path = thisRef :: class . qualifiedName + \"\" + prop . name val name = predefinedName ? : prop . name . replaceFirstChar { it . uppercaseChar ( ) } val element = if ( isSealed ) { createSealedElement ( name , path , kind , * dependencies ) } else { createElement ( name , path , kind , * dependencies ) } return DummyDelegate ( element ) }","docstring":""} {"signature":"fun generatedType ( type : String , kind : TypeKind = TypeKind . Class ) : ClassRef < PositionTypeParameterRef >","body":"= generatedType ( \"\" , type , kind )","docstring":""} {"signature":"fun generatedType ( packageName : String , type : String , kind : TypeKind = TypeKind . Class ) : ClassRef < PositionTypeParameterRef >","body":"{ val realPackage = BASE_PACKAGE + if ( packageName . isNotBlank ( ) ) \"\" else \"\" return type ( realPackage , type , exactPackage = true , kind = kind ) }","docstring":""} {"signature":"fun type ( packageName : String , type : String , exactPackage : Boolean = false , kind : TypeKind = TypeKind . Interface , ) : ClassRef < PositionTypeParameterRef >","body":"{ val realPackage = if ( exactPackage ) packageName else packageName . let { \"\" } return org . jetbrains . kotlin . generators . tree . type ( realPackage , type , kind ) }","docstring":""} {"signature":"inline fun < reified T : Any > type ( )","body":"= org . jetbrains . kotlin . generators . tree . type < T > ( )","docstring":""} {"signature":"override fun preprocessModuleStructure ( moduleStructure : TestModuleStructure )","body":"{ checkAllModulesHaveTheSameProject ( moduleStructure ) testServices . environmentManager . initializeEnvironment ( ) val project = testServices . environmentManager . getProject ( ) as MockProject val application = testServices . environmentManager . getApplication ( ) as MockApplication configurator . registerApplicationServices ( application , testServices ) createAndRegisterKtModules ( moduleStructure , project ) configurator . registerProjectExtensionPoints ( project , testServices ) configurator . registerProjectServices ( project , testServices ) testServices . environmentManager . initializeProjectStructure ( ) configurator . registerProjectModelServices ( project , testServices ) }","docstring":""} {"signature":"private fun createAndRegisterKtModules ( moduleStructure : TestModuleStructure , project : MockProject )","body":"{ val ktTestModuleStructure = configurator . createModules ( moduleStructure , testServices , project ) testServices . ktTestModuleStructureProvider . registerModuleStructure ( ktTestModuleStructure ) }","docstring":""} {"signature":"private fun checkAllModulesHaveTheSameProject ( moduleStructure : TestModuleStructure )","body":"{ val modules = moduleStructure . modules val project = testServices . compilerConfigurationProvider . getProject ( moduleStructure . modules . first ( ) ) as MockProject check ( modules . all { testServices . compilerConfigurationProvider . getProject ( it ) == project } ) }","docstring":""} {"signature":"fun foo ( ) : T","body":"fun foo ( ) : T","docstring":""} {"signature":"override fun foo ( )","body":"= \"\"","docstring":""} {"signature":"fun box ( ) : String","body":"{ val c = C ( B ( ) ) val a : A < String > = c val cfoo = c . foo ( ) if ( cfoo != \"\" ) return \"\" val afoo = a . foo ( ) if ( afoo != \"\" ) return \"\" return \"\" }","docstring":""} {"signature":"override fun toString ( ) : String","body":"= \"\"","docstring":""} {"signature":"override fun toString ( ) : String","body":"override fun toString ( ) : String","docstring":""} {"signature":"override fun toString ( ) : String","body":"= super . toString ( )","docstring":""} {"signature":"override fun toString ( ) : String","body":"= super . toString ( )","docstring":""} {"signature":"fun box ( ) : String","body":"{ return when { C1 ( ) . toString ( ) != \"\" -> \"\" C2 ( ) . toString ( ) != \"\" -> \"\" else -> \"\" } }","docstring":""} {"signature":"open fun bar ( ) : String","body":"open fun bar ( ) : String","docstring":""} {"signature":"fun bar ( ) : String","body":"fun bar ( ) : String","docstring":""} {"signature":"@ Test fun switchCases ( )","body":"= box ( )","docstring":""} {"signature":"@ Test fun afterReturn ( )","body":"= box ( )","docstring":""} {"signature":"fun box ( ) : String","body":"{ val a = IntArray ( ) val x = a . iterator ( ) var i = while ( x . hasNext ( ) ) { if ( a [ i ] != x . next ( ) ) return \"\" i ++ } return \"\" }","docstring":""} {"signature":"private fun foo ( i : Int = )","body":"{ }","docstring":""} {"signature":"fun f ( )","body":"{ foo ( ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ return \"\" }","docstring":""} {"signature":"fun extractDefaultValue ( parameter : ValueParameterDescriptor , expectedType : KotlinType ) : ConstantValue < * > ?","body":"fun extractDefaultValue ( parameter : ValueParameterDescriptor , expectedType : KotlinType ) : ConstantValue < * > ?","docstring":""} {"signature":"override fun check ( declaration : KtDeclaration , descriptor : DeclarationDescriptor , context : DeclarationCheckerContext )","body":"{ if ( ! context . languageVersionSettings . supportsFeature ( LanguageFeature . MultiPlatformProjects ) ) return if ( context . languageVersionSettings . getFlag ( AnalysisFlags . skipExpectedActualDeclarationChecker ) ) return if ( descriptor is PropertyAccessorDescriptor ) return if ( declaration !is KtNamedDeclaration ) return if ( descriptor !is MemberDescriptor || DescriptorUtils . isEnumEntry ( descriptor ) ) return val checkActualModifier = ! context . languageVersionSettings . getFlag ( AnalysisFlags . multiPlatformDoNotCheckActual ) if ( descriptor . isExpect ) { checkExpectedDeclarationHasProperActuals ( declaration , descriptor , context . trace , checkActualModifier , context ) checkOptInAnnotation ( declaration , descriptor , descriptor , context ) } if ( descriptor . isActualOrSomeContainerIsActual ( ) ) { val allDependsOnModules = moduleStructureOracle . findAllDependsOnPaths ( descriptor . module ) . flatMap { it . nodes } . toHashSet ( ) checkActualDeclarationHasExpected ( declaration , descriptor , checkActualModifier , context , moduleVisibilityFilter = { it in allDependsOnModules } ) } }","docstring":""} {"signature":"private fun MemberDescriptor . isActualOrSomeContainerIsActual ( ) : Boolean","body":"{ var declaration : MemberDescriptor = this while ( true ) { if ( declaration . isActual ) return true declaration = declaration . containingDeclaration as? MemberDescriptor ? : return false } }","docstring":""} {"signature":"private fun checkExpectedDeclarationHasProperActuals ( reportOn : KtNamedDeclaration , descriptor : MemberDescriptor , trace : BindingTrace , checkActualModifier : Boolean , context : DeclarationCheckerContext )","body":"{ val allActualizationPaths = moduleStructureOracle . findAllReversedDependsOnPaths ( descriptor . module ) val allLeafModules = allActualizationPaths . map { it . nodes . last ( ) } . toSet ( ) allLeafModules . forEach { leafModule -> val actuals = ExpectedActualResolver . findActualForExpected ( descriptor , leafModule ) ? : return@forEach checkExpectedDeclarationHasAtLeastOneActual ( reportOn , descriptor , actuals , trace , leafModule , checkActualModifier , context . expectActualTracker ) checkImplicitJavaActualization ( reportOn , descriptor , actuals , leafModule , context ) checkExpectedDeclarationHasAtMostOneActual ( reportOn , descriptor , actuals , allActualizationPaths , trace ) } }","docstring":""} {"signature":"private fun checkImplicitJavaActualization ( expectPsi : KtNamedDeclaration , expect : MemberDescriptor , actuals : ActualsMap , module : ModuleDescriptor , context : DeclarationCheckerContext )","body":"{ if ( ! context . languageVersionSettings . supportsFeature ( LanguageFeature . MultiplatformRestrictions ) ) return val actualMembers = actuals . filter { ( compatibility , _ ) -> compatibility . isCompatibleOrWeaklyIncompatible } . flatMap { ( _ , members ) -> members } . takeIf ( List < MemberDescriptor > :: isNotEmpty ) ? : return if ( actualMembers . any { it is MppJavaImplicitActualizatorMarker && with ( OptInUsageChecker ) { ! expectPsi . isDeclarationAnnotatedWith ( implicitlyActualizedAnnotationFqn , context . trace . bindingContext ) } } ) { context . trace . report ( Errors . IMPLICIT_JVM_ACTUALIZATION . on ( expectPsi , expect , module ) ) } }","docstring":""} {"signature":"private fun checkExpectedDeclarationHasAtMostOneActual ( reportOn : KtNamedDeclaration , expectDescriptor : MemberDescriptor , actuals : ActualsMap , modulePaths : List < ModulePath > , trace : BindingTrace , )","body":"{ val atLeastWeaklyCompatibleActuals = actuals . filterKeys { compatibility -> compatibility . isCompatibleOrWeaklyIncompatible } . values . flatten ( ) if ( atLeastWeaklyCompatibleActuals . size <= ) return val actualsByModulePath = modulePaths . associateWith { path -> atLeastWeaklyCompatibleActuals . filter { it . module in path . nodes } } actualsByModulePath . forEach { ( _ , actualsInPath ) -> if ( actualsInPath . size > ) { trace . report ( Errors . AMBIGUOUS_ACTUALS . on ( reportOn , expectDescriptor , actualsInPath . map { it . module } . sortedBy { it . name . asString ( ) } ) ) } } }","docstring":""} {"signature":"private fun checkExpectedDeclarationHasAtLeastOneActual ( reportOn : KtNamedDeclaration , expectDescriptor : MemberDescriptor , actuals : ActualsMap , trace : BindingTrace , module : ModuleDescriptor , checkActualModifier : Boolean , expectActualTracker : ExpectActualTracker )","body":"{ if ( expectDescriptor . containingDeclaration !is PackageFragmentDescriptor ) return if ( actuals . allStrongIncompatibilities ( ) && OptionalAnnotationUtil . isOptionalAnnotationClass ( expectDescriptor ) ) return if ( actuals . allStrongIncompatibilities ( ) || Compatible !in actuals && expectDescriptor . hasNoActualWithDiagnostic ( actuals ) ) { assert ( actuals . keys . all { it is Incompatible } ) @ Suppress ( \"\" ) val incompatibility = actuals as Map < Incompatible < MemberDescriptor > , Collection < MemberDescriptor > > trace . report ( Errors . NO_ACTUAL_FOR_EXPECT . on ( reportOn , expectDescriptor , module , incompatibility ) ) return } val actualMembers = actuals . asSequence ( ) . filter { it . key . isCompatibleOrWeaklyIncompatible } . flatMap { it . value . asSequence ( ) } if ( checkActualModifier ) { actualMembers . forEach { reportMissingActualModifier ( it , reportOn = null , trace ) } } expectActualTracker . reportExpectActual ( expected = expectDescriptor , actualMembers = actualMembers ) }","docstring":""} {"signature":"private fun reportMissingActualModifier ( actual : MemberDescriptor , reportOn : KtNamedDeclaration ? , trace : BindingTrace )","body":"{ if ( actual . isActual ) return @ Suppress ( \"\" ) val reportOn = reportOn ? : ( actual . source as? KotlinSourceElement ) ? . psi as? KtNamedDeclaration ? : return if ( requireActualModifier ( actual ) ) { trace . report ( Errors . ACTUAL_MISSING . on ( reportOn ) ) } }","docstring":""} {"signature":"private fun checkIfExpectHasDefaultArgumentsAndActualizedWithTypealias ( expectDescriptor : MemberDescriptor , actualDeclaration : KtNamedDeclaration , context : DeclarationCheckerContext , )","body":"{ if ( ! context . languageVersionSettings . supportsFeature ( LanguageFeature . MultiplatformRestrictions ) ) return if ( expectDescriptor !is ClassDescriptor || actualDeclaration !is KtTypeAlias ) return val membersWithDefaultValueParameters = getMembersWithDefaultValueParametersUnlessAnnotation ( expectDescriptor ) if ( membersWithDefaultValueParameters . isEmpty ( ) ) return context . trace . report ( Errors . DEFAULT_ARGUMENTS_IN_EXPECT_WITH_ACTUAL_TYPEALIAS . on ( actualDeclaration , expectDescriptor , membersWithDefaultValueParameters ) ) }","docstring":""} {"signature":"private fun getMembersWithDefaultValueParametersUnlessAnnotation ( classDescriptor : ClassDescriptor ) : List < FunctionDescriptor >","body":"{ val result = mutableListOf < FunctionDescriptor > ( ) fun collectFunctions ( classDescriptor : ClassDescriptor ) { if ( classDescriptor . kind == ClassKind . ANNOTATION_CLASS ) { return } val functionsAndConstructors = classDescriptor . constructors + classDescriptor . unsubstitutedMemberScope . getContributedDescriptors ( DescriptorKindFilter . FUNCTIONS ) . filterIsInstance < FunctionDescriptor > ( ) functionsAndConstructors . filterTo ( result ) { it . valueParameters . any { p -> p . declaresDefaultValue ( ) } } val nestedClasses = classDescriptor . unsubstitutedMemberScope . getContributedDescriptors ( DescriptorKindFilter . CLASSIFIERS ) . filterIsInstance < ClassDescriptor > ( ) for ( nestedClass in nestedClasses ) { collectFunctions ( nestedClass ) } } collectFunctions ( classDescriptor ) return result }","docstring":""} {"signature":"private fun MemberDescriptor . hasNoActualWithDiagnostic ( compatibility : Map < K1ExpectActualCompatibility < MemberDescriptor > , List < MemberDescriptor > > ) : Boolean","body":"{ return compatibility . values . flatMapTo ( hashSetOf ( ) ) { it } . all { actual -> val expectedOnes = ExpectedActualResolver . findExpectedForActual ( actual , onlyFromThisModule ( module ) ) expectedOnes != null && Compatible in expectedOnes . keys } }","docstring":""} {"signature":"private fun ExpectActualTracker . reportExpectActual ( expected : MemberDescriptor , actualMembers : Sequence < MemberDescriptor > )","body":"{ if ( this is ExpectActualTracker . DoNothing ) return val expectedFile = sourceFile ( expected ) ? : return for ( actual in actualMembers ) { val actualFile = sourceFile ( actual ) ? : continue report ( expectedFile = expectedFile , actualFile = actualFile ) } }","docstring":""} {"signature":"private fun sourceFile ( descriptor : MemberDescriptor ) : File ?","body":"{ val containingFile = descriptor . source . containingFile as? PsiSourceFile ? : return null return VfsUtilCore . virtualToIoFile ( containingFile . psiFile . virtualFile ) }","docstring":""} {"signature":"private fun checkActualDeclarationHasExpected ( reportOn : KtNamedDeclaration , descriptor : MemberDescriptor , checkActualModifier : Boolean , context : DeclarationCheckerContext , moduleVisibilityFilter : ModuleFilter )","body":"{ val trace = context . trace val compatibility = ExpectedActualResolver . findExpectedForActual ( descriptor , moduleVisibilityFilter , shouldCheckAbsenceOfDefaultParamsInActual = true ) ? : return checkAmbiguousExpects ( compatibility , trace , reportOn , descriptor ) if ( checkActualModifier && descriptor . containingDeclaration !is PackageFragmentDescriptor && compatibility . any { it . key . isCompatibleOrWeaklyIncompatible } ) { reportMissingActualModifier ( descriptor , reportOn , trace ) } if ( ! reportOn . hasActualModifier ( ) && compatibility . allStrongIncompatibilities ( ) ) return val singleIncompatibility = compatibility . keys . firstOrNull ( ) if ( singleIncompatibility is Incompatible . ClassScopes ) { assert ( descriptor is ClassDescriptor || descriptor is TypeAliasDescriptor ) { \"\" } fun hasSingleActualSuspect ( expectedWithIncompatibility : Pair < MemberDescriptor , Map < Incompatible < MemberDescriptor > , Collection < MemberDescriptor > > > ) : Boolean { val ( expectedMember , incompatibility ) = expectedWithIncompatibility val actualMember = incompatibility . values . singleOrNull ( ) ? . singleOrNull ( ) return actualMember != null && actualMember . isExplicitActualDeclaration ( ) && ! incompatibility . allStrongIncompatibilities ( ) && ExpectedActualResolver . findExpectedForActual ( actualMember , onlyFromThisModule ( expectedMember . module ) ) ? . values ? . singleOrNull ( ) ? . singleOrNull ( ) == expectedMember } val nonTrivialUnfulfilled = singleIncompatibility . unfulfilled . filterNot ( :: hasSingleActualSuspect ) if ( nonTrivialUnfulfilled . isNotEmpty ( ) ) { val classDescriptor = ( descriptor as? TypeAliasDescriptor ) ? . expandedType ? . constructor ? . declarationDescriptor as? ClassDescriptor ? : ( descriptor as ClassDescriptor ) trace . report ( Errors . NO_ACTUAL_CLASS_MEMBER_FOR_EXPECTED_CLASS . on ( reportOn , classDescriptor , nonTrivialUnfulfilled ) ) } } else if ( Compatible !in compatibility ) { assert ( compatibility . keys . all { it is Incompatible } ) @ Suppress ( \"\" ) val incompatibility = compatibility as Map < Incompatible < MemberDescriptor > , Collection < MemberDescriptor > > if ( reportOn is KtFunction && incompatibility . keys . any { it is Incompatible . ActualFunctionWithDefaultParameters } ) { trace . report ( Errors . ACTUAL_FUNCTION_WITH_DEFAULT_ARGUMENTS . on ( reportOn ) ) } else { trace . report ( Errors . ACTUAL_WITHOUT_EXPECT . on ( reportOn , descriptor , incompatibility ) ) } } else { val expected = compatibility [ Compatible ] ! ! . first ( ) if ( expected is ClassDescriptor && expected . kind == ClassKind . ANNOTATION_CLASS ) { val actualConstructor = ( descriptor as? ClassDescriptor ) ? . constructors ? . singleOrNull ( ) ? : ( descriptor as? TypeAliasDescriptor ) ? . constructors ? . singleOrNull ( ) ? . underlyingConstructorDescriptor val expectedConstructor = expected . constructors . singleOrNull ( ) if ( expectedConstructor != null && actualConstructor != null ) { checkAnnotationConstructors ( expectedConstructor , actualConstructor , trace , reportOn ) } checkOptInAnnotation ( reportOn , descriptor , expected , context ) } } val expectSingleCandidate = ( compatibility [ Compatible ] ? : compatibility . values . singleOrNull ( ) ) ? . singleOrNull ( ) if ( expectSingleCandidate != null ) { checkIfExpectHasDefaultArgumentsAndActualizedWithTypealias ( expectSingleCandidate , reportOn , context ) checkAnnotationsMatch ( expectSingleCandidate , descriptor , reportOn , context ) } }","docstring":""} {"signature":"private fun checkAmbiguousExpects ( compatibility : Map < K1ExpectActualCompatibility < MemberDescriptor > , List < MemberDescriptor > > , trace : BindingTrace , reportOn : KtNamedDeclaration , descriptor : MemberDescriptor )","body":"{ val filesWithAtLeastWeaklyCompatibleExpects = compatibility . asSequence ( ) . filter { ( compatibility , _ ) -> compatibility . isCompatibleOrWeaklyIncompatible } . map { ( _ , members ) -> members } . flatten ( ) . map { it . module } . sortedBy { it . name . asString ( ) } . toList ( ) if ( filesWithAtLeastWeaklyCompatibleExpects . size > ) { trace . report ( Errors . AMBIGUOUS_EXPECTS . on ( reportOn , descriptor , filesWithAtLeastWeaklyCompatibleExpects ) ) } }","docstring":""} {"signature":"private fun requireActualModifier ( descriptor : MemberDescriptor ) : Boolean","body":"{ return ! descriptor . isAnnotationConstructor ( ) && ! descriptor . isPrimaryConstructorOfInlineClass ( ) && ! isUnderlyingPropertyOfInlineClass ( descriptor ) }","docstring":""} {"signature":"private fun isUnderlyingPropertyOfInlineClass ( descriptor : MemberDescriptor ) : Boolean","body":"{ return descriptor is PropertyDescriptor && descriptor . isUnderlyingPropertyOfInlineClass ( ) }","docstring":""} {"signature":"private fun MemberDescriptor . isExplicitActualDeclaration ( ) : Boolean","body":"= when ( this ) { is ConstructorDescriptor -> DescriptorToSourceUtils . getSourceFromDescriptor ( this ) is KtConstructor < * > is CallableMemberDescriptor -> kind == CallableMemberDescriptor . Kind . DECLARATION else -> true }","docstring":""} {"signature":"private fun checkAnnotationConstructors ( expected : ConstructorDescriptor , actual : ConstructorDescriptor , trace : BindingTrace , reportOn : PsiElement )","body":"{ for ( expectedParameterDescriptor in expected . valueParameters ) { val actualParameterDescriptor = actual . valueParameters . first { it . name == expectedParameterDescriptor . name } if ( expectedParameterDescriptor . declaresDefaultValue ( ) && actualParameterDescriptor . declaresDefaultValue ( ) ) { val expectedParameter = DescriptorToSourceUtils . descriptorToDeclaration ( expectedParameterDescriptor ) as? KtParameter ? : continue val expectedValue = trace . bindingContext . get ( BindingContext . COMPILE_TIME_VALUE , expectedParameter . defaultValue ) ? . toConstantValue ( expectedParameterDescriptor . type ) val actualValue = getActualAnnotationParameterValue ( actualParameterDescriptor , trace . bindingContext , expectedParameterDescriptor . type ) if ( expectedValue != actualValue ) { val ktParameter = DescriptorToSourceUtils . descriptorToDeclaration ( actualParameterDescriptor ) val target = ( ktParameter as? KtParameter ) ? . defaultValue ? : ( reportOn as? KtTypeAlias ) ? . nameIdentifier ? : reportOn trace . report ( Errors . ACTUAL_ANNOTATION_CONFLICTING_DEFAULT_ARGUMENT_VALUE . on ( target , actualParameterDescriptor ) ) } } } }","docstring":""} {"signature":"private fun getActualAnnotationParameterValue ( actualParameter : ValueParameterDescriptor , bindingContext : BindingContext , expectedType : KotlinType ) : ConstantValue < * > ?","body":"{ val declaration = DescriptorToSourceUtils . descriptorToDeclaration ( actualParameter ) if ( declaration is KtParameter ) { return bindingContext . get ( BindingContext . COMPILE_TIME_VALUE , declaration . defaultValue ) ? . toConstantValue ( expectedType ) } for ( extractor in argumentExtractors ) { extractor . extractDefaultValue ( actualParameter , expectedType ) ? . let { return it } } return null }","docstring":""} {"signature":"private fun checkOptInAnnotation ( reportOn : KtNamedDeclaration , descriptor : MemberDescriptor , expectDescriptor : MemberDescriptor , context : DeclarationCheckerContext , )","body":"{ if ( context . languageVersionSettings . supportsFeature ( LanguageFeature . MultiplatformRestrictions ) && descriptor is ClassDescriptor && descriptor . kind == ClassKind . ANNOTATION_CLASS && descriptor . annotations . hasAnnotation ( OptInNames . REQUIRES_OPT_IN_FQ_NAME ) && ! expectDescriptor . annotations . hasAnnotation ( OptionalAnnotationUtil . OPTIONAL_EXPECTATION_FQ_NAME ) ) { context . trace . report ( Errors . EXPECT_ACTUAL_OPT_IN_ANNOTATION . on ( reportOn ) ) } }","docstring":""} {"signature":"private fun checkAnnotationsMatch ( expectDescriptor : MemberDescriptor , actualDescriptor : MemberDescriptor , reportOn : KtNamedDeclaration , context : DeclarationCheckerContext )","body":"{ if ( ! context . languageVersionSettings . supportsFeature ( LanguageFeature . MultiplatformRestrictions ) ) return val matchingContext = ClassicExpectActualMatchingContext ( actualDescriptor . module ) val incompatibility = K1AbstractExpectActualAnnotationMatchChecker . areAnnotationsCompatible ( expectDescriptor , actualDescriptor , matchingContext ) ? : return val actualAnnotationTargetSourceElement = ( incompatibility . actualAnnotationTargetElement as ClassicSourceElement ) . element context . trace . report ( Errors . ACTUAL_ANNOTATIONS_NOT_MATCH_EXPECT . on ( reportOn , incompatibility . expectSymbol as DeclarationDescriptor , incompatibility . actualSymbol as DeclarationDescriptor , Optional . ofNullable ( actualAnnotationTargetSourceElement ) , incompatibility . type . mapAnnotationType { it . annotationSymbol as AnnotationDescriptor } ) ) }","docstring":""} {"signature":"fun Map < out K1ExpectActualCompatibility < MemberDescriptor > , Collection < MemberDescriptor > > . allStrongIncompatibilities ( ) : Boolean","body":"= this . keys . all { it is Incompatible . StrongIncompatible }","docstring":""} {"signature":"actual fun createRandomUUID ( ) : Long","body":"{ return UUID . randomUUID ( ) . mostSignificantBits }","docstring":""} {"signature":"operator fun getValue ( t : Any ? , p : KProperty < * > )","body":"= ","docstring":""} {"signature":"operator fun D1 . setValue ( t : Any ? , p : KProperty < * > , v : Int )","body":"{ }","docstring":""} {"signature":"operator fun setValue ( t : Any ? , p : KProperty < * > , v : Int )","body":"{ }","docstring":""} {"signature":"operator fun D2 . getValue ( t : Any ? , p : KProperty < * > )","body":"= ","docstring":""} {"signature":"operator fun D2 . provideDelegate ( p : Any ? , k : Any )","body":"= this","docstring":""} {"signature":"operator fun provideDelegate ( p : Any ? , k : Any )","body":"= this","docstring":""} {"signature":"override fun doMultiFileTest ( wholeFile : File , files : List < TestFile > )","body":"{ setupEnvironment ( files ) loadMultiFiles ( files ) doTest ( wholeFile , files ) }","docstring":""} {"signature":"private fun setupEnvironment ( files : List < TestFile > )","body":"{ val jdkKind = getTestJdkKind ( files ) val javacOptions = ArrayList < String > ( ) var addRuntime = false var addReflect = false for ( file in files ) { if ( InTextDirectivesUtils . isDirectiveDefined ( file . content , \"\" ) ) { addRuntime = true } if ( InTextDirectivesUtils . isDirectiveDefined ( file . content , \"\" ) ) { addReflect = true } javacOptions . addAll ( InTextDirectivesUtils . findListWithPrefixes ( file . content , \"\" ) ) } val configurationKind = when { addReflect -> ConfigurationKind . ALL addRuntime -> ConfigurationKind . NO_KOTLIN_REFLECT else -> ConfigurationKind . JDK_ONLY } val configuration = createConfiguration ( configurationKind , jdkKind , listOf < File > ( getAnnotationsJar ( ) ) , listOfNotNull ( writeJavaFiles ( files ) ) , files ) myEnvironment = KotlinCoreEnvironment . createForTests ( testRootDisposable , configuration , EnvironmentConfigFiles . JVM_CONFIG_FILES ) }","docstring":""} {"signature":"protected abstract fun doTest ( wholeFile : File , testFiles : List < TestFile > )","body":"protected abstract fun doTest ( wholeFile : File , testFiles : List < TestFile > )","docstring":""} {"signature":"protected open fun generateIrModule ( ignoreErrors : Boolean = false ) : IrModuleFragment","body":"{ assert ( myFiles != null ) { \"\" } assert ( myEnvironment != null ) { \"\" } val psi2Ir = Psi2IrTranslator ( myEnvironment . configuration . languageVersionSettings , Psi2IrConfiguration ( ignoreErrors ) , myEnvironment . configuration :: checkNoUnboundSymbols ) return doGenerateIrModule ( psi2Ir ) }","docstring":""} {"signature":"protected open fun doGenerateIrModule ( psi2IrTranslator : Psi2IrTranslator ) : IrModuleFragment","body":"= generateIrModuleWithJvmResolve ( myFiles . psiFiles , myEnvironment , psi2IrTranslator , myEnvironment . configuration . languageVersionSettings )","docstring":""} {"signature":"protected fun generateIrFilesAsSingleModule ( testFiles : List < TestFile > , ignoreErrors : Boolean = false ) : Map < TestFile , IrFile >","body":"{ val irModule = generateIrModule ( ignoreErrors ) val ktFiles = testFiles . filter { it . name . endsWith ( \"\" ) } return ktFiles . zip ( irModule . files ) . toMap ( ) }","docstring":""} {"signature":"internal fun shouldIgnoreErrors ( wholeFile : File ) : Boolean","body":"= IGNORE_ERRORS_PATTERN . containsMatchIn ( wholeFile . readText ( ) )","docstring":""} {"signature":"fun generateIrModuleWithJsResolve ( ktFilesToAnalyze : List < KtFile > , environment : KotlinCoreEnvironment , psi2ir : Psi2IrTranslator ) : IrModuleFragment","body":"= generateIrModule ( TopDownAnalyzerFacadeForJS . analyzeFiles ( ktFilesToAnalyze , environment . project , environment . configuration , moduleDescriptors = emptyList ( ) , friendModuleDescriptors = emptyList ( ) , CompilerEnvironment , ) , psi2ir , ktFilesToAnalyze , GeneratorExtensions ( ) , createIdSignatureComposer = { IdSignatureDescriptor ( JsManglerDesc ) } )","docstring":""} {"signature":"fun generateIrModuleWithJvmResolve ( ktFilesToAnalyze : List < KtFile > , environment : KotlinCoreEnvironment , psi2ir : Psi2IrTranslator , languageVersionSettings : LanguageVersionSettings ) : IrModuleFragment","body":"{ return generateIrModule ( JvmResolveUtil . analyze ( ktFilesToAnalyze , environment ) , psi2ir , ktFilesToAnalyze , JvmGeneratorExtensionsImpl ( environment . configuration , generateFacades = false ) , createIdSignatureComposer = { bindingContext -> JvmIdSignatureDescriptor ( JvmDescriptorMangler ( MainFunctionDetector ( bindingContext , languageVersionSettings ) ) ) } ) }","docstring":""} {"signature":"private fun generateIrModule ( analysisResult : AnalysisResult , psi2ir : Psi2IrTranslator , ktFilesToAnalyze : List < KtFile > , generatorExtensions : GeneratorExtensions , createIdSignatureComposer : ( BindingContext ) -> IdSignatureComposer ) : IrModuleFragment","body":"{ val ( bindingContext , moduleDescriptor ) = analysisResult if ( ! psi2ir . configuration . ignoreErrors ) { analysisResult . throwIfError ( ) AnalyzingUtils . throwExceptionOnErrors ( bindingContext ) } val context = psi2ir . createGeneratorContext ( moduleDescriptor , bindingContext , SymbolTable ( createIdSignatureComposer ( bindingContext ) , IrFactoryImpl , NameProvider . DEFAULT ) , generatorExtensions ) val irProviders = generateTypicalIrProviderList ( moduleDescriptor , context . irBuiltIns , context . symbolTable , DescriptorByIdSignatureFinderImpl ( moduleDescriptor , JsManglerDesc ) , extensions = generatorExtensions , ) return psi2ir . generateModuleFragment ( context , ktFilesToAnalyze , irProviders , emptyList ( ) ) }","docstring":""} {"signature":"override fun tryMerge ( pages : List < PageNode > , path : List < String > ) : List < PageNode >","body":"{ pages . map { ( it as? ContentPage ) } val renderedPath = path . joinToString ( separator = \"\" ) if ( pages . size != ) logger . warn ( \"\" ) return listOf ( pages . first ( ) ) }","docstring":""} {"signature":"@ Test fun successfullyParsed ( )","body":"= assertEquals ( listOf ( \"\" , \"\" , \"\" , \"\" , \"\" , \"\" , \"\" , \"\" , \"\" , \"\" , \"\" , \"\" , \"\" , \"\" , \"\" , \"\" , \"\" , \"\" , ) . map ( :: TestName ) , GTestListing . parse ( \"\"\"\"\"\" . trimMargin ( ) ) )","docstring":""} {"signature":"@ Test fun unexpectedEmptyLine1 ( )","body":"= assertCorrectParseError ( \"\" , , \"\"\"\"\"\" . trimMargin ( ) )","docstring":""} {"signature":"@ Test fun unexpectedEmptyLine2 ( )","body":"= assertCorrectParseError ( \"\" , , \"\"\"\"\"\" . trimMargin ( ) )","docstring":""} {"signature":"@ Test fun unexpectedEmptyLine3 ( )","body":"= assertCorrectParseError ( \"\" , , \"\"\"\"\"\" . trimMargin ( ) )","docstring":""} {"signature":"@ Test fun unexpectedEmptyLine4 ( )","body":"= assertCorrectParseError ( \"\" , , \"\"\"\"\"\" . trimMargin ( ) )","docstring":""} {"signature":"@ Test fun testNameBeforeTestSuiteName ( )","body":"= assertCorrectParseError ( \"\" , , \"\"\"\"\"\" . trimMargin ( ) )","docstring":""} {"signature":"@ Test fun unexpectedTestSuiteName ( )","body":"= assertCorrectParseError ( \"\" , , \"\"\"\"\"\" . trimMargin ( ) )","docstring":""} {"signature":"@ Test fun noTestNameAfterTestSuiteName ( )","body":"= assertCorrectParseError ( \"\" , , \"\"\"\"\"\" . trimMargin ( ) )","docstring":""} {"signature":"private fun assertCorrectParseError ( expectedMessage : String , lineNumber : Int , listing : String )","body":"{ try { GTestListing . parse ( listing ) fail { \"\" } } catch ( e : AssertionError ) { val message = e . message . orEmpty ( ) if ( message . startsWith ( expectedMessage ) && \"\" in message ) { } else throw e } }","docstring":""} {"signature":"suspend fun callLocal ( ) : String","body":"{ suspend fun local ( ) = suspendCoroutineUninterceptedOrReturn < String > { it . resume ( \"\" ) COROUTINE_SUSPENDED } return local ( ) }","docstring":""} {"signature":"fun builder ( c : suspend ( ) -> Unit )","body":"{ c . startCoroutine ( EmptyContinuation ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ var res = \"\" builder { res = callLocal ( ) } return res }","docstring":""} {"signature":"fun foo ( )","body":"{ }","docstring":""} {"signature":"fun bar ( x : Int )","body":"{ }","docstring":""} {"signature":"fun baz ( )","body":"= \"\"","docstring":""} {"signature":"fun A . main ( )","body":"{ val x = :: foo val y = :: bar val z = :: baz checkSubtype < KFunction0 < Unit > > ( x ) checkSubtype < KFunction1 < Int , Unit > > ( y ) checkSubtype < KFunction0 < String > > ( z ) }","docstring":""} {"signature":"external fun __promisify__ ( path : String ) : Promise < Boolean >","body":"external fun __promisify__ ( path : String ) : Promise < Boolean >","docstring":""} {"signature":"external fun __promisify__ ( path : Buffer ) : Promise < Boolean >","body":"external fun __promisify__ ( path : Buffer ) : Promise < Boolean >","docstring":""} {"signature":"external fun __promisify__ ( path : URL ) : Promise < Boolean >","body":"external fun __promisify__ ( path : URL ) : Promise < Boolean >","docstring":""} {"signature":"fun getProperty ( key : String ) : Any ?","body":"fun getProperty ( key : String ) : Any ?","docstring":""} {"signature":"fun getSystemProperty ( key : String ) : String ?","body":"fun getSystemProperty ( key : String ) : String ?","docstring":""} {"signature":"private fun loadPropertyFile ( fileName : String , propertiesDestination : Properties )","body":"{ val propertiesFile = propertiesProvider . rootProjectDir . resolve ( fileName ) if ( propertiesFile . isFile ) { propertiesFile . reader ( ) . use ( propertiesDestination :: load ) } }","docstring":""} {"signature":"fun getOrNull ( key : String ) : Any ?","body":"= localProperties . getProperty ( key ) ? : propertiesProvider . getProperty ( key ) ? : rootProperties . getProperty ( key )","docstring":""} {"signature":"fun getBoolean ( key : String , default : Boolean = false ) : Boolean","body":"{ val value = this . getOrNull ( key ) ? . toString ( ) ? : return default if ( value . isEmpty ( ) ) return true return value . trim ( ) . toBoolean ( ) }","docstring":""} {"signature":"override fun getProperty ( key : String ) : Any ?","body":"= project . findProperty ( key )","docstring":""} {"signature":"override fun getSystemProperty ( key : String )","body":"= project . providers . systemProperty ( key ) . orNull","docstring":""} {"signature":"override fun getProperty ( key : String ) : Any ?","body":"{ val obj = ( settings as DynamicObjectAware ) . asDynamicObject return if ( obj . hasProperty ( key ) ) obj . getProperty ( key ) else null }","docstring":""} {"signature":"override fun getSystemProperty ( key : String )","body":"= settings . providers . systemProperty ( key ) . orNull","docstring":""} {"signature":"fun getKotlinBuildPropertiesForSettings ( settings : Any )","body":"= ( settings as Settings ) . kotlinBuildProperties","docstring":""} {"signature":"fun int ( a : Int , b : Int ) : Boolean","body":"= ( a as Any ) === ( b as Any )","docstring":""} {"signature":"fun short ( a : Short , b : Short ) : Boolean","body":"= ( a as Any ) === ( b as Any )","docstring":""} {"signature":"fun char ( a : Char , b : Char ) : Boolean","body":"= ( a as Any ) === ( b as Any )","docstring":""} {"signature":"fun long ( a : Long , b : Long ) : Boolean","body":"= ( a as Any ) === ( b as Any )","docstring":""} {"signature":"fun float ( a : Float , b : Float ) : Boolean","body":"= ( a as Any ) === ( b as Any )","docstring":""} {"signature":"fun double ( a : Double , b : Double ) : Boolean","body":"= ( a as Any ) === ( b as Any )","docstring":""} {"signature":"fun byte ( a : Byte , b : Byte ) : Boolean","body":"= ( a as Any ) === ( b as Any )","docstring":""} {"signature":"fun boolean ( a : Boolean , b : Boolean ) : Boolean","body":"= ( a as Any ) === ( b as Any )","docstring":""} {"signature":"fun box ( ) : String","body":"{ if ( int ( , ) ) return \"\" if ( short ( , ) ) return \"\" if ( char ( . toChar ( ) , . toChar ( ) ) ) return \"\" if ( long ( , ) ) return \"\" if ( float ( , ) ) return \"\" if ( double ( , ) ) return \"\" if ( ! byte ( , ) ) return \"\" if ( ! boolean ( true , true ) ) return \"\" return \"\" }","docstring":""} {"signature":"private fun prioritizedHistory ( receiverClass : KClass < * > ? , receiverInstance : Any ? ) : List < EvalClassWithInstanceAndLoader >","body":"{ val evalState = state . asState ( GenericReplEvaluatorState :: class . java ) return evalState . history . map { it . item } . filter { it . instance != null } . reversed ( ) . ensureNotEmpty ( \"\" ) . let { history -> if ( receiverInstance != null ) { val receiverKlass = receiverClass ? : receiverInstance :: class val receiverInHistory = history . find { it . instance == receiverInstance } ? : EvalClassWithInstanceAndLoader ( receiverKlass , receiverInstance , receiverKlass . java . classLoader , history . first ( ) . invokeWrapper ) listOf ( receiverInHistory ) + history . filterNot { it == receiverInHistory } } else { history } } }","docstring":""} {"signature":"override fun invokeFunction ( name : String ? , vararg args : Any ? ) : Any ?","body":"{ if ( name == null ) throw java . lang . NullPointerException ( \"\" ) return invokeImpl ( prioritizedHistory ( null , null ) , name , args ) }","docstring":""} {"signature":"override fun invokeMethod ( thiz : Any ? , name : String ? , vararg args : Any ? ) : Any ?","body":"{ if ( name == null ) throw java . lang . NullPointerException ( \"\" ) if ( thiz == null ) throw IllegalArgumentException ( \"\" ) return invokeImpl ( prioritizedHistory ( thiz :: class , thiz ) , name , args ) }","docstring":""} {"signature":"private fun invokeImpl ( prioritizedCallOrder : List < EvalClassWithInstanceAndLoader > , name : String , args : Array < out Any ? > ) : Any ?","body":"{ val ( fn , mapping , invokeWrapper ) = prioritizedCallOrder . asSequence ( ) . map { ( klass , instance , _ , invokeWrapper ) -> val candidates = klass . functions . filter { it . name == name } candidates . findMapping ( listOf ( instance ) + args ) ? . let { Triple ( it . first , it . second , invokeWrapper ) } } . filterNotNull ( ) . firstOrNull ( ) ? : throw NoSuchMethodException ( \"\" ) val res = try { if ( invokeWrapper != null ) { invokeWrapper . invoke { fn . callBy ( mapping ) } } else { fn . callBy ( mapping ) } } catch ( e : Throwable ) { throw ScriptException ( renderReplStackTrace ( e . cause ! ! , startFromMethodName = fn . name ) ) } return if ( fn . returnType . classifier == Unit :: class ) Unit else res }","docstring":""} {"signature":"override fun < T : Any > getInterface ( clasz : Class < T > ? ) : T ?","body":"{ return proxyInterface ( null , clasz ) }","docstring":""} {"signature":"override fun < T : Any > getInterface ( thiz : Any ? , clasz : Class < T > ? ) : T ?","body":"{ if ( thiz == null ) throw IllegalArgumentException ( \"\" ) return proxyInterface ( thiz , clasz ) }","docstring":""} {"signature":"private fun < T : Any > proxyInterface ( thiz : Any ? , clasz : Class < T > ? ) : T ?","body":"{ if ( state . history . size == ) throw IllegalStateException ( \"\" ) val priority = prioritizedHistory ( thiz ? . javaClass ? . kotlin , thiz ) if ( clasz == null ) throw IllegalArgumentException ( \"\" ) if ( ! clasz . isInterface ) throw IllegalArgumentException ( \"\" ) val proxy = Proxy . newProxyInstance ( Thread . currentThread ( ) . contextClassLoader , arrayOf ( clasz ) ) { _ , method , args -> invokeImpl ( priority , method . name , args ? : emptyArray ( ) ) } return clasz . kotlin . safeCast ( proxy ) }","docstring":""} {"signature":"private fun Iterable < KFunction < * > > . findMapping ( args : List < Any ? > ) : Pair < KFunction < * > , Map < KParameter , Any ? > > ?","body":"{ for ( fn in this ) { val mapping = tryCreateCallableMapping ( fn , args ) if ( mapping != null ) return fn to mapping } return null }","docstring":""} {"signature":"fun test ( )","body":"{ E :: entries val ref = E :: entries val refType : ( E ) -> Int = E :: entries val refTypeWithAnyExpectedType : Any = E :: entries }","docstring":""} {"signature":"fun runNoInline ( f : ( ) -> Unit )","body":"= f ( )","docstring":""} {"signature":"fun box ( ) : String","body":"{ lateinit var ok : String runNoInline { ok = \"\" } return ok }","docstring":""} {"signature":"internal fun loadSequentialModelConfiguration ( configuration : File , inputShape : IntArray ? = null ) : Sequential","body":"{ val sequentialConfig = loadSerializedModel ( configuration ) return deserializeSequentialModel ( sequentialConfig , inputShape ) }","docstring":"/**\n * Loads a [Sequential] model from json file with model configuration.\n *\n * @param [configuration] File containing model configuration.\n * @return Non-compiled and non-trained Sequential model.\n */"} {"signature":"internal fun deserializeSequentialModel ( sequentialConfig : KerasModel ? , inputShape : IntArray ? = null ) : Sequential","body":"{ val pair = loadSequentialModelLayers ( sequentialConfig , inputShape ) val input : Input = pair . first val layers = pair . second return Sequential . of ( input , * layers . toList ( ) . toTypedArray ( ) ) }","docstring":""} {"signature":"internal fun loadSequentialModelLayers ( config : KerasModel ? , inputShape : IntArray ? = null ) : Pair < Input , List < Layer > >","body":"{ val kerasLayers = config ! ! . config ! ! . layers ! ! val input = createInputLayer ( kerasLayers . first ( ) , inputShape ) val layers = kerasLayers . filter { ! it . class_name . equals ( LAYER_INPUT ) } . mapTo ( mutableListOf ( ) ) { convertToLayer ( it ) } return Pair ( input , layers ) }","docstring":"/**\n * Loads a [Sequential] model layers from json file with model configuration.\n *\n * NOTE: This method is useful in transfer learning, when you need to manipulate on layers before building the Sequential model.\n *\n * @param config Model configuration.\n * @return Pair of .\n */"} {"signature":"private fun convertToLayer ( kerasLayer : KerasLayer ) : Layer","body":"{ return when ( kerasLayer . class_name ) { LAYER_ACTIVATION -> createActivationLayer ( kerasLayer . config ! ! ) LAYER_DENSE -> createDenseLayer ( kerasLayer . config ! ! ) LAYER_PERMUTE -> createPermuteLayer ( kerasLayer . config ! ! ) LAYER_CONV1D -> createConv1DLayer ( kerasLayer . config ! ! ) LAYER_CONV2D -> createConv2DLayer ( kerasLayer . config ! ! ) LAYER_CONV3D -> createConv3DLayer ( kerasLayer . config ! ! ) LAYER_CONV1D_TRANSPOSE -> createConv1DTransposeLayer ( kerasLayer . config ! ! ) LAYER_CONV2D_TRANSPOSE -> createConv2DTransposeLayer ( kerasLayer . config ! ! ) LAYER_CONV3D_TRANSPOSE -> createConv3DTransposeLayer ( kerasLayer . config ! ! ) LAYER_DEPTHWISE_CONV2D -> createDepthwiseConv2DLayer ( kerasLayer . config ! ! ) LAYER_SEPARABLE_CONV2D -> createSeparableConv2DLayer ( kerasLayer . config ! ! ) LAYER_MAX_POOL_1D -> createMaxPool1DLayer ( kerasLayer . config ! ! ) LAYER_MAX_POOL_2D -> createMaxPool2DLayer ( kerasLayer . config ! ! ) LAYER_MAX_POOL_3D -> createMaxPool3DLayer ( kerasLayer . config ! ! ) LAYER_AVG_POOL_1D -> createAvgPool1DLayer ( kerasLayer . config ! ! ) LAYER_AVG_POOL_2D -> createAvgPool2DLayer ( kerasLayer . config ! ! ) LAYER_AVG_POOL_3D -> createAvgPool3DLayer ( kerasLayer . config ! ! ) LAYER_GLOBAL_MAX_POOL_1D -> GlobalMaxPool1D ( ) LAYER_GLOBAL_MAX_POOL_2D -> GlobalMaxPool2D ( ) LAYER_GLOBAL_MAX_POOL_3D -> GlobalMaxPool3D ( ) LAYER_GLOBAL_AVG_POOL_1D -> GlobalAvgPool1D ( ) LAYER_GLOBAL_AVG_POOL_2D -> GlobalAvgPool2D ( ) LAYER_GLOBAL_AVG_POOL_3D -> GlobalAvgPool3D ( ) LAYER_BATCH_NORM -> createBatchNormLayer ( kerasLayer . config ! ! ) LAYER_DROPOUT -> createDropoutLayer ( kerasLayer . config ! ! ) LAYER_FLATTEN -> Flatten ( ) LAYER_REPEAT_VECTOR -> createRepeatVectorLayer ( kerasLayer . config ! ! ) LAYER_RESHAPE -> createReshapeLayer ( kerasLayer . config ! ! ) LAYER_CROPPING_1D -> createCropping1DLayer ( kerasLayer . config ! ! ) LAYER_CROPPING_2D -> createCropping2DLayer ( kerasLayer . config ! ! ) LAYER_CROPPING_3D -> createCropping3DLayer ( kerasLayer . config ! ! ) LAYER_ZERO_PADDING_1D -> createZeroPadding1DLayer ( kerasLayer . config ! ! ) LAYER_ZERO_PADDING_2D -> createZeroPadding2DLayer ( kerasLayer . config ! ! ) LAYER_ZERO_PADDING_3D -> createZeroPadding3DLayer ( kerasLayer . config ! ! ) LAYER_UP_SAMPLING_1D -> createUpSampling1DLayer ( kerasLayer . config ! ! ) LAYER_UP_SAMPLING_2D -> createUpSampling2DLayer ( kerasLayer . config ! ! ) LAYER_UP_SAMPLING_3D -> createUpSampling3DLayer ( kerasLayer . config ! ! ) LAYER_ADD -> Add ( ) LAYER_AVERAGE -> Average ( ) LAYER_SUBTRACT -> Subtract ( ) LAYER_MAXIMUM -> Maximum ( ) LAYER_MINIMUM -> Minimum ( ) LAYER_MULTIPLY -> Multiply ( ) LAYER_CONCATENATE -> createConcatenateLayer ( kerasLayer . config ! ! ) LAYER_DOT -> createDotLayer ( kerasLayer . config ! ! ) LAYER_RELU -> createReLULayer ( kerasLayer . config ! ! ) LAYER_ELU -> createELULayer ( kerasLayer . config ! ! ) LAYER_PRELU -> createPReLULayer ( kerasLayer . config ! ! ) LAYER_LEAKY_RELU -> createLeakyReLULayer ( kerasLayer . config ! ! ) LAYER_THRESHOLDED_RELU -> createThresholdedReLULayer ( kerasLayer . config ! ! ) LAYER_SOFTMAX -> createSoftmaxLayer ( kerasLayer . config ! ! ) else -> throw IllegalStateException ( \"\" ) } . apply { if ( this is TrainableLayer ) { isTrainable = kerasLayer . config ? . trainable ? : isTrainable } name = kerasLayer . config ? . name ? : name } }","docstring":""} {"signature":"internal fun loadFunctionalModelConfiguration ( configuration : File , inputShape : IntArray ? = null ) : Functional","body":"{ val functionalConfig = loadSerializedModel ( configuration ) return deserializeFunctionalModel ( functionalConfig , inputShape ) }","docstring":"/**\n * Loads a [Sequential] model from json file with model configuration.\n *\n * @param [configuration] File containing model configuration.\n * @return Non-compiled and non-trained Sequential model.\n */"} {"signature":"internal fun deserializeFunctionalModel ( functionalConfig : KerasModel ? , inputShape : IntArray ? = null )","body":"= Functional . of ( loadFunctionalModelLayers ( functionalConfig , inputShape ) . toList ( ) )","docstring":""} {"signature":"internal fun loadFunctionalModelLayers ( config : KerasModel ? , inputShape : IntArray ? = null ) : List < Layer >","body":"{ val layers = mutableListOf < Layer > ( ) val layersByNames = mutableMapOf < String , Layer > ( ) val kerasLayers = config ! ! . config ! ! . layers ! ! val input = createInputLayer ( kerasLayers . first ( ) , inputShape ) layers . add ( input ) layersByNames [ input . name ] = input kerasLayers . forEach { if ( ! it . class_name . equals ( LAYER_INPUT ) ) { val layer = convertToLayer ( it , layersByNames ) layers . add ( layer ) layersByNames [ layer . name ] = layer } } return layers }","docstring":"/**\n * Loads a [Functional] model layers from json file with model configuration.\n *\n * NOTE: This method is useful in transfer learning, when you need to manipulate on layers before building the Functional model.\n *\n * @param config Model configuration.\n * @return Pair of .\n */"} {"signature":"internal fun loadSerializedModel ( jsonConfigFile : File )","body":"= try { val jsonString = jsonConfigFile . readText ( Charsets . UTF_8 ) Klaxon ( ) . converter ( PaddingConverter ( ) ) . parse < KerasModel > ( jsonString ) } catch ( e : Exception ) { e . printStackTrace ( ) try { Klaxon ( ) . converter ( PaddingConverter ( ) ) . parse < KerasModel > ( jsonConfigFile ) } catch ( e : Exception ) { e . printStackTrace ( ) throw IllegalArgumentException ( \"\" ) } }","docstring":""} {"signature":"private fun convertToLayer ( kerasLayer : KerasLayer , layersByName : Map < String , Layer > ) : Layer","body":"{ val layer = convertToLayer ( kerasLayer ) val inboundLayers = mutableListOf < Layer > ( ) if ( kerasLayer . class_name != LAYER_INPUT ) { val inboundNodes = kerasLayer . inbound_nodes ! ! as List < List < List < Any > > > inboundNodes [ ] . forEach { inboundNode -> check ( inboundNode . isNotEmpty ( ) ) { \"\" } layersByName [ inboundNode [ ] as String ] ? . let { inboundLayers . add ( it ) } } layer . inboundLayers = inboundLayers } return layer }","docstring":""} {"signature":"private fun convertToRegularizer ( regularizer : KerasRegularizer ? ) : Regularizer ?","body":"{ return if ( regularizer != null ) { val l1 = regularizer . config ! ! . l1 val l2 = regularizer . config . l2 if ( l1 != && l2 != ) { L2L1 ( l1 ! ! . toFloat ( ) , l2 ! ! . toFloat ( ) ) } else if ( l1 == && l2 != ) { L2 ( l2 ! ! . toFloat ( ) ) } else if ( l1 != && l2 == ) { L1 ( l1 ! ! . toFloat ( ) ) } else { null } } else { null } }","docstring":""} {"signature":"private fun convertToInitializer ( initializer : KerasInitializer ) : Initializer","body":"{ val config = initializer . config val seed = config ! ! . seed ? . toLong ( ) ? : return when ( initializer . class_name ! ! ) { INITIALIZER_GLOROT_UNIFORM -> GlorotUniform ( seed = seed ) INITIALIZER_GLOROT_NORMAL -> GlorotNormal ( seed = seed ) INITIALIZER_HE_NORMAL -> HeNormal ( seed = seed ) INITIALIZER_HE_UNIFORM -> HeUniform ( seed = seed ) INITIALIZER_LECUN_NORMAL -> LeCunNormal ( seed = seed ) INITIALIZER_LECUN_UNIFORM -> LeCunUniform ( seed = seed ) INITIALIZER_RANDOM_NORMAL -> RandomNormal ( seed = seed , mean = config . mean ! ! . toFloat ( ) , stdev = config . stddev ! ! . toFloat ( ) ) INITIALIZER_RANDOM_UNIFORM -> RandomUniform ( seed = seed , minVal = config . minval ! ! . toFloat ( ) , maxVal = config . maxval ! ! . toFloat ( ) ) INITIALIZER_VARIANCE_SCALING -> convertVarianceScalingInitializer ( initializer ) INITIALIZER_TRUNCATED_NORMAL -> TruncatedNormal ( seed = seed ) INITIALIZER_PARAMETRIZED_TRUNCATED_NORMAL -> ParametrizedTruncatedNormal ( mean = config . mean ! ! . toFloat ( ) , stdev = config . stddev ! ! . toFloat ( ) , p1 = config . p1 ! ! . toFloat ( ) , p2 = config . p2 ! ! . toFloat ( ) , seed = seed ) INITIALIZER_ORTHOGONAL -> Orthogonal ( seed = seed , gain = config . gain ! ! . toFloat ( ) ) INITIALIZER_ZEROS -> Zeros ( ) INITIALIZER_ONES -> Ones ( ) INITIALIZER_CONSTANT -> Constant ( config . value ! ! . toFloat ( ) ) INITIALIZER_IDENTITY -> Identity ( config . gain ? . toFloat ( ) ? : ) else -> throw IllegalStateException ( \"\" ) } }","docstring":""} {"signature":"private fun convertVarianceScalingInitializer ( initializer : KerasInitializer ) : Initializer","body":"{ val seed = if ( initializer . config ! ! . seed != null ) { initializer . config . seed ! ! . toLong ( ) } else val config = initializer . config val scale = config . scale ! ! val mode : Mode = convertMode ( config . mode ! ! ) val distribution : Distribution = convertDistribution ( config . distribution ! ! ) return if ( scale == && mode == Mode . FAN_IN ) { when ( distribution ) { Distribution . UNIFORM -> HeUniform ( seed ) Distribution . TRUNCATED_NORMAL -> { HeNormal ( seed ) } else -> VarianceScaling ( scale , mode , distribution , seed ) } } else { when ( mode ) { Mode . FAN_IN -> { when ( distribution ) { Distribution . UNIFORM -> LeCunUniform ( seed ) Distribution . TRUNCATED_NORMAL -> { LeCunNormal ( seed ) } else -> VarianceScaling ( scale , mode , distribution , seed ) } } Mode . FAN_AVG -> { when ( distribution ) { Distribution . UNIFORM -> GlorotUniform ( seed ) Distribution . TRUNCATED_NORMAL -> { GlorotNormal ( seed ) } else -> VarianceScaling ( scale , mode , distribution , seed ) } } else -> VarianceScaling ( scale , mode , distribution , seed ) } } }","docstring":""} {"signature":"private fun convertDistribution ( distribution : String ) : Distribution","body":"{ return when ( distribution ) { \"\" -> Distribution . TRUNCATED_NORMAL \"\" -> Distribution . UNIFORM \"\" -> Distribution . UNTRUNCATED_NORMAL else -> Distribution . TRUNCATED_NORMAL } }","docstring":""} {"signature":"private fun convertMode ( mode : String ) : Mode","body":"{ return when ( mode ) { \"\" -> Mode . FAN_IN \"\" -> Mode . FAN_OUT \"\" -> Mode . FAN_AVG else -> Mode . FAN_AVG } }","docstring":""} {"signature":"private fun convertToActivation ( activation : String ) : Activations","body":"{ return when ( activation ) { ACTIVATION_RELU -> Activations . Relu ACTIVATION_SIGMOID -> Activations . Sigmoid ACTIVATION_SOFTMAX -> Activations . Softmax ACTIVATION_LINEAR -> Activations . Linear ACTIVATION_TANH -> Activations . Tanh ACTIVATION_TANHSHRINK -> Activations . TanhShrink ACTIVATION_RELU6 -> Activations . Relu6 ACTIVATION_ELU -> Activations . Elu ACTIVATION_SELU -> Activations . Selu ACTIVATION_LOG_SOFTMAX -> Activations . LogSoftmax ACTIVATION_EXP -> Activations . Exponential ACTIVATION_SOFTPLUS -> Activations . SoftPlus ACTIVATION_SOFTSIGN -> Activations . SoftSign ACTIVATION_HARD_SIGMOID -> Activations . HardSigmoid ACTIVATION_SWISH -> Activations . Swish ACTIVATION_MISH -> Activations . Mish ACTIVATION_HARDSHRINK -> Activations . HardShrink ACTIVATION_LISHT -> Activations . LiSHT ACTIVATION_SNAKE -> Activations . Snake ACTIVATION_GELU -> Activations . Gelu ACTIVATION_SPARSEMAX -> Activations . Sparsemax else -> throw IllegalStateException ( \"\" ) } }","docstring":""} {"signature":"private fun convertToInterpolationMethod ( interpolation : String ) : InterpolationMethod","body":"{ return when ( interpolation ) { InterpolationMethod . NEAREST . methodName -> InterpolationMethod . NEAREST InterpolationMethod . BILINEAR . methodName -> InterpolationMethod . BILINEAR InterpolationMethod . BICUBIC . methodName -> InterpolationMethod . BICUBIC else -> throw IllegalArgumentException ( \"\" ) } }","docstring":""} {"signature":"private fun createInputLayer ( layer : KerasLayer , inputShape : IntArray ? = null ) : Input","body":"{ val inputLayerDims = if ( inputShape != null ) { inputShape . map { it . toLong ( ) } . toLongArray ( ) } else { val batchInputShape = layer . config ! ! . batch_input_shape ! ! batchInputShape . subList ( , batchInputShape . size ) . map { it ! ! . toLong ( ) } . toLongArray ( ) } val inputLayerName = if ( layer . class_name . equals ( LAYER_INPUT ) ) layer . config ! ! . name ? : \"\" else \"\" return Input ( * inputLayerDims , name = inputLayerName ) }","docstring":"/**\n * The layer creator functions should be put below.\n */"} {"signature":"private fun createConcatenateLayer ( config : LayerConfig ) : Layer","body":"{ return Concatenate ( axis = config . axis ! ! as Int ) }","docstring":""} {"signature":"private fun createDotLayer ( config : LayerConfig ) : Layer","body":"{ return Dot ( axis = config . axis ! ! as IntArray , normalize = config . normalize ? : false ) }","docstring":""} {"signature":"private fun createDropoutLayer ( config : LayerConfig ) : Layer","body":"{ return Dropout ( rate = config . rate ! ! . toFloat ( ) ) }","docstring":""} {"signature":"private fun createActivationLayer ( config : LayerConfig ) : Layer","body":"{ return ActivationLayer ( activation = convertToActivation ( config . activation ! ! ) ) }","docstring":""} {"signature":"private fun createReLULayer ( config : LayerConfig ) : Layer","body":"{ return ReLU ( maxValue = config . max_value ! ! . toFloat ( ) , negativeSlope = config . negative_slope ! ! . toFloat ( ) , threshold = config . threshold ! ! . toFloat ( ) ) }","docstring":""} {"signature":"private fun createELULayer ( config : LayerConfig ) : Layer","body":"{ return ELU ( alpha = config . alpha ! ! . toFloat ( ) ) }","docstring":""} {"signature":"private fun createPReLULayer ( config : LayerConfig ) : Layer","body":"{ return PReLU ( alphaInitializer = convertToInitializer ( config . alpha_initializer ! ! ) , alphaRegularizer = convertToRegularizer ( config . alpha_regularizer ) , sharedAxes = config . shared_axes ? . toIntArray ( ) ) }","docstring":""} {"signature":"private fun createLeakyReLULayer ( config : LayerConfig ) : Layer","body":"{ return LeakyReLU ( alpha = config . alpha ! ! . toFloat ( ) ) }","docstring":""} {"signature":"private fun createThresholdedReLULayer ( config : LayerConfig ) : Layer","body":"{ return ThresholdedReLU ( theta = config . theta ! ! . toFloat ( ) ) }","docstring":""} {"signature":"private fun createSoftmaxLayer ( config : LayerConfig ) : Layer","body":"{ val axis = when ( config . axis ) { is Int -> listOf ( config . axis ) is List < * > -> config . axis as List < Int > else -> throw IllegalArgumentException ( \"\" ) } return Softmax ( axis = axis ) }","docstring":""} {"signature":"private fun createBatchNormLayer ( config : LayerConfig ) : Layer","body":"{ return BatchNorm ( axis = config . axis ! ! as List < Int > , momentum = config . momentum ! ! , center = config . center ! ! , epsilon = config . epsilon ! ! , scale = config . scale ! ! as Boolean , gammaInitializer = convertToInitializer ( config . gamma_initializer ! ! ) , betaInitializer = convertToInitializer ( config . beta_initializer ! ! ) , gammaRegularizer = convertToRegularizer ( config . gamma_regularizer ) , betaRegularizer = convertToRegularizer ( config . beta_regularizer ) , movingMeanInitializer = convertToInitializer ( config . moving_mean_initializer ! ! ) , movingVarianceInitializer = convertToInitializer ( config . moving_variance_initializer ! ! ) ) }","docstring":""} {"signature":"private fun createDenseLayer ( config : LayerConfig ) : Layer","body":"{ return Dense ( outputSize = config . units ! ! , activation = convertToActivation ( config . activation ! ! ) , kernelInitializer = convertToInitializer ( config . kernel_initializer ! ! ) , biasInitializer = convertToInitializer ( config . bias_initializer ! ! ) , kernelRegularizer = convertToRegularizer ( config . kernel_regularizer ) , biasRegularizer = convertToRegularizer ( config . bias_regularizer ) , activityRegularizer = convertToRegularizer ( config . activity_regularizer ) , useBias = config . use_bias ? : true ) }","docstring":""} {"signature":"private fun createPermuteLayer ( config : LayerConfig ) : Layer","body":"{ return Permute ( dims = config . dims ! ! ) }","docstring":""} {"signature":"private fun createMaxPool1DLayer ( config : LayerConfig ) : Layer","body":"{ return MaxPool1D ( poolSize = intArrayOf ( , config . pool_size ! ! [ ] , ) , strides = intArrayOf ( , config . strides ! ! [ ] , ) , padding = convertPadding ( config . padding ! ! ) ) }","docstring":""} {"signature":"private fun createMaxPool2DLayer ( config : LayerConfig ) : Layer","body":"{ val poolSize = config . pool_size ! ! . toIntArray ( ) val strides = config . strides ! ! . toIntArray ( ) return MaxPool2D ( poolSize = intArrayOf ( , * poolSize , ) , strides = intArrayOf ( , * strides , ) , padding = convertPadding ( config . padding ! ! ) ) }","docstring":""} {"signature":"private fun createAvgPool1DLayer ( config : LayerConfig ) : Layer","body":"{ return AvgPool1D ( poolSize = intArrayOf ( , config . pool_size ! ! [ ] , ) , strides = intArrayOf ( , config . strides ! ! [ ] , ) , padding = convertPadding ( config . padding ! ! ) ) }","docstring":""} {"signature":"private fun createAvgPool2DLayer ( config : LayerConfig ) : Layer","body":"{ val poolSize = config . pool_size ! ! . toIntArray ( ) val strides = config . strides ! ! . toIntArray ( ) return AvgPool2D ( poolSize = intArrayOf ( , * poolSize , ) , strides = intArrayOf ( , * strides , ) , padding = convertPadding ( config . padding ! ! ) ) }","docstring":""} {"signature":"private fun createAvgPool3DLayer ( config : LayerConfig ) : Layer","body":"{ val poolSize = config . pool_size ! ! . toIntArray ( ) val strides = config . strides ! ! . toIntArray ( ) return AvgPool3D ( poolSize = intArrayOf ( , * poolSize , ) , strides = intArrayOf ( , * strides , ) , padding = convertPadding ( config . padding ! ! ) ) }","docstring":""} {"signature":"private fun createMaxPool3DLayer ( config : LayerConfig ) : Layer","body":"{ val poolSize = config . pool_size ! ! . toIntArray ( ) val strides = config . strides ! ! . toIntArray ( ) return MaxPool3D ( poolSize = intArrayOf ( , * poolSize , ) , strides = intArrayOf ( , * strides , ) , padding = convertPadding ( config . padding ! ! ) ) }","docstring":""} {"signature":"private fun convertPadding ( padding : KerasPadding ) : ConvPadding","body":"{ return when ( padding ) { is KerasPadding . Same -> ConvPadding . SAME is KerasPadding . Valid -> ConvPadding . VALID is KerasPadding . Full -> ConvPadding . FULL else -> throw UnsupportedOperationException ( \"\" ) } }","docstring":""} {"signature":"private fun createRepeatVectorLayer ( config : LayerConfig ) : Layer","body":"{ return RepeatVector ( n = config . n ! ! ) }","docstring":""} {"signature":"private fun createReshapeLayer ( config : LayerConfig ) : Layer","body":"{ return Reshape ( targetShape = config . target_shape ! ! ) }","docstring":""} {"signature":"private fun createConv1DLayer ( config : LayerConfig ) : Layer","body":"{ return Conv1D ( filters = config . filters ! ! , kernelLength = config . kernel_size ! ! [ ] , strides = intArrayOf ( , config . strides ! ! [ ] , ) , dilations = intArrayOf ( , config . dilation_rate ! ! [ ] , ) , activation = convertToActivation ( config . activation ! ! ) , kernelInitializer = convertToInitializer ( config . kernel_initializer ! ! ) , biasInitializer = convertToInitializer ( config . bias_initializer ! ! ) , kernelRegularizer = convertToRegularizer ( config . kernel_regularizer ) , biasRegularizer = convertToRegularizer ( config . bias_regularizer ) , activityRegularizer = convertToRegularizer ( config . activity_regularizer ) , padding = convertPadding ( config . padding ! ! ) , useBias = config . use_bias ! ! ) }","docstring":""} {"signature":"private fun createConv2DLayer ( config : LayerConfig ) : Layer","body":"{ val kernelSize = config . kernel_size ! ! . toIntArray ( ) val strides = config . strides ! ! . toIntArray ( ) val dilation = config . dilation_rate ! ! . toIntArray ( ) return Conv2D ( filters = config . filters ! ! , kernelSize = kernelSize , strides = intArrayOf ( , * strides , ) , dilations = intArrayOf ( , * dilation , ) , activation = convertToActivation ( config . activation ! ! ) , kernelInitializer = convertToInitializer ( config . kernel_initializer ! ! ) , biasInitializer = convertToInitializer ( config . bias_initializer ! ! ) , kernelRegularizer = convertToRegularizer ( config . kernel_regularizer ) , biasRegularizer = convertToRegularizer ( config . bias_regularizer ) , activityRegularizer = convertToRegularizer ( config . activity_regularizer ) , padding = convertPadding ( config . padding ! ! ) , useBias = config . use_bias ! ! ) }","docstring":""} {"signature":"private fun createConv3DLayer ( config : LayerConfig ) : Layer","body":"{ val kernelSize = config . kernel_size ! ! . toIntArray ( ) val strides = config . strides ! ! . toIntArray ( ) val dilation = config . dilation_rate ! ! . toIntArray ( ) return Conv3D ( filters = config . filters ! ! , kernelSize = kernelSize , strides = intArrayOf ( , * strides , ) , dilations = intArrayOf ( , * dilation , ) , activation = convertToActivation ( config . activation ! ! ) , kernelInitializer = convertToInitializer ( config . kernel_initializer ! ! ) , biasInitializer = convertToInitializer ( config . bias_initializer ! ! ) , kernelRegularizer = convertToRegularizer ( config . kernel_regularizer ) , biasRegularizer = convertToRegularizer ( config . bias_regularizer ) , activityRegularizer = convertToRegularizer ( config . activity_regularizer ) , padding = convertPadding ( config . padding ! ! ) , useBias = config . use_bias ! ! ) }","docstring":""} {"signature":"private fun createConv1DTransposeLayer ( config : LayerConfig ) : Layer","body":"{ return Conv1DTranspose ( filters = config . filters ! ! , kernelLength = config . kernel_size ! ! [ ] , strides = intArrayOf ( , config . strides ! ! [ ] , ) , dilations = intArrayOf ( , config . dilation_rate ! ! [ ] , ) , activation = convertToActivation ( config . activation ! ! ) , kernelInitializer = convertToInitializer ( config . kernel_initializer ! ! ) , biasInitializer = convertToInitializer ( config . bias_initializer ! ! ) , kernelRegularizer = convertToRegularizer ( config . kernel_regularizer ) , biasRegularizer = convertToRegularizer ( config . bias_regularizer ) , activityRegularizer = convertToRegularizer ( config . activity_regularizer ) , padding = convertPadding ( config . padding ! ! ) , outputPadding = config . output_padding ? . convertToOutputPadding ( ) , useBias = config . use_bias ! ! , ) }","docstring":""} {"signature":"private fun createConv2DTransposeLayer ( config : LayerConfig ) : Layer","body":"{ val kernelSize = config . kernel_size ! ! . toIntArray ( ) val strides = config . strides ! ! . toIntArray ( ) val dilation = config . dilation_rate ! ! . toIntArray ( ) return Conv2DTranspose ( filters = config . filters ! ! , kernelSize = kernelSize , strides = intArrayOf ( , * strides , ) , dilations = intArrayOf ( , * dilation , ) , activation = convertToActivation ( config . activation ! ! ) , kernelInitializer = convertToInitializer ( config . kernel_initializer ! ! ) , biasInitializer = convertToInitializer ( config . bias_initializer ! ! ) , kernelRegularizer = convertToRegularizer ( config . kernel_regularizer ) , biasRegularizer = convertToRegularizer ( config . bias_regularizer ) , activityRegularizer = convertToRegularizer ( config . activity_regularizer ) , padding = convertPadding ( config . padding ! ! ) , outputPadding = config . output_padding ? . convertToOutputPadding ( ) , useBias = config . use_bias ! ! , ) }","docstring":""} {"signature":"private fun createConv3DTransposeLayer ( config : LayerConfig ) : Layer","body":"{ val kernelSize = config . kernel_size ! ! . toIntArray ( ) val strides = config . strides ! ! . toIntArray ( ) val dilation = config . dilation_rate ! ! . toIntArray ( ) return Conv3DTranspose ( filters = config . filters ! ! , kernelSize = kernelSize , strides = intArrayOf ( , * strides , ) , dilations = intArrayOf ( , * dilation , ) , activation = convertToActivation ( config . activation ! ! ) , kernelInitializer = convertToInitializer ( config . kernel_initializer ! ! ) , biasInitializer = convertToInitializer ( config . bias_initializer ! ! ) , kernelRegularizer = convertToRegularizer ( config . kernel_regularizer ) , biasRegularizer = convertToRegularizer ( config . bias_regularizer ) , activityRegularizer = convertToRegularizer ( config . activity_regularizer ) , padding = convertPadding ( config . padding ! ! ) , useBias = config . use_bias ! ! , ) }","docstring":""} {"signature":"private fun List < Int > . convertToOutputPadding ( ) : IntArray","body":"{ return intArrayOf ( , , * flatMap { padding -> listOf ( padding / , padding - padding / ) } . toIntArray ( ) , , ) }","docstring":""} {"signature":"private fun createDepthwiseConv2DLayer ( config : LayerConfig ) : Layer","body":"{ val kernelSize = config . kernel_size ! ! . toIntArray ( ) val strides = config . strides ! ! . toIntArray ( ) val dilation = config . dilation_rate ! ! . toIntArray ( ) return DepthwiseConv2D ( kernelSize = kernelSize , strides = intArrayOf ( , * strides , ) , dilations = intArrayOf ( , * dilation , ) , activation = convertToActivation ( config . activation ! ! ) , depthwiseInitializer = convertToInitializer ( config . depthwise_initializer ! ! ) , depthMultiplier = config . depth_multiplier ! ! , biasInitializer = convertToInitializer ( config . bias_initializer ! ! ) , depthwiseRegularizer = convertToRegularizer ( config . depthwise_regularizer ) , biasRegularizer = convertToRegularizer ( config . bias_regularizer ) , activityRegularizer = convertToRegularizer ( config . activity_regularizer ) , padding = convertPadding ( config . padding ! ! ) , useBias = config . use_bias ! ! ) }","docstring":""} {"signature":"private fun createSeparableConv2DLayer ( config : LayerConfig ) : Layer","body":"{ val kernelSize = config . kernel_size ! ! . toIntArray ( ) val strides = config . strides ! ! . toIntArray ( ) val dilation = config . dilation_rate ! ! . toIntArray ( ) return SeparableConv2D ( filters = config . filters ! ! , kernelSize = kernelSize , strides = intArrayOf ( , * strides , ) , dilations = intArrayOf ( , * dilation , ) , activation = convertToActivation ( config . activation ! ! ) , depthwiseInitializer = convertToInitializer ( config . depthwise_initializer ! ! ) , pointwiseInitializer = convertToInitializer ( config . pointwise_initializer ! ! ) , depthMultiplier = config . depth_multiplier ! ! , biasInitializer = convertToInitializer ( config . bias_initializer ! ! ) , depthwiseRegularizer = convertToRegularizer ( config . depthwise_regularizer ) , pointwiseRegularizer = convertToRegularizer ( config . pointwise_regularizer ) , activityRegularizer = convertToRegularizer ( config . activity_regularizer ) , biasRegularizer = convertToRegularizer ( config . bias_regularizer ) , padding = convertPadding ( config . padding ! ! ) , useBias = config . use_bias ! ! ) }","docstring":""} {"signature":"private fun createZeroPadding1DLayer ( config : LayerConfig ) : Layer","body":"{ assert ( config . padding is KerasPadding . ZeroPadding1D ) return ZeroPadding1D ( padding = ( config . padding as KerasPadding . ZeroPadding1D ) . padding ) }","docstring":""} {"signature":"private fun createZeroPadding2DLayer ( config : LayerConfig ) : Layer","body":"{ assert ( config . padding is KerasPadding . ZeroPadding2D ) return ZeroPadding2D ( padding = ( config . padding as KerasPadding . ZeroPadding2D ) . padding , dataFormat = config . data_format ) }","docstring":""} {"signature":"private fun createZeroPadding3DLayer ( config : LayerConfig ) : Layer","body":"{ assert ( config . padding is KerasPadding . ZeroPadding3D ) return ZeroPadding3D ( padding = ( config . padding as KerasPadding . ZeroPadding3D ) . padding ) }","docstring":""} {"signature":"private fun createCropping1DLayer ( config : LayerConfig ) : Layer","body":"{ val cropping = config . cropping ! ! . map { it as Int } . toTypedArray ( ) . toIntArray ( ) return Cropping1D ( cropping = cropping ) }","docstring":""} {"signature":"private fun createCropping2DLayer ( config : LayerConfig ) : Layer","body":"{ val cropping = config . cropping ! ! . map { ( it as List < Int > ) . toIntArray ( ) } . toTypedArray ( ) return Cropping2D ( cropping = cropping ) }","docstring":""} {"signature":"private fun createCropping3DLayer ( config : LayerConfig ) : Layer","body":"{ val cropping = config . cropping ! ! . map { ( it as List < Int > ) . toIntArray ( ) } . toTypedArray ( ) return Cropping3D ( cropping = cropping ) }","docstring":""} {"signature":"private fun createUpSampling1DLayer ( config : LayerConfig ) : Layer","body":"{ return UpSampling1D ( size = config . size ! ! as Int ) }","docstring":""} {"signature":"private fun createUpSampling2DLayer ( config : LayerConfig ) : Layer","body":"{ return UpSampling2D ( size = ( config . size ! ! as List < Int > ) . toIntArray ( ) , interpolation = convertToInterpolationMethod ( config . interpolation ! ! ) ) }","docstring":""} {"signature":"private fun createUpSampling3DLayer ( config : LayerConfig ) : Layer","body":"{ return UpSampling3D ( size = ( config . size ! ! as List < Int > ) . toIntArray ( ) ) }","docstring":""} {"signature":"fun test ( s1 : String , s2 : String , s3 : String ) : String","body":"{ fun foo ( s : String ) = s return \"\" + foo ( s1 + s2 + \"\" ) + \"\" }","docstring":""} {"signature":"@ Test fun testSin ( )","body":"{ val answers = arrayOf ( , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ) checkAnswers ( :: sin , arguments , answers , true ) }","docstring":""} {"signature":"@ Test fun testCos ( )","body":"{ val answers = arrayOf ( , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ) checkAnswers ( :: cos , arguments , answers , true ) }","docstring":""} {"signature":"@ Test fun testTan ( )","body":"{ val answers = arrayOf ( , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ) checkAnswers ( :: tan , arguments , answers , false ) }","docstring":""} {"signature":"@ Test fun testAsin ( )","body":"{ val answers = arrayOf ( , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ) checkAnswers ( :: asin , arguments , answers , true ) }","docstring":""} {"signature":"@ Test fun testAtan ( )","body":"{ val answers = arrayOf ( , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ) checkAnswers ( :: atan , arguments , answers , true ) }","docstring":""} {"signature":"@ Test fun testAtan2 ( )","body":"{ val answers = arrayOf ( , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ) checkAnswers ( :: atan2 , arguments , answers , true ) }","docstring":""} {"signature":"@ Test fun testSinh ( )","body":"{ val answers = arrayOf ( , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ) checkAnswers ( :: sinh , arguments , answers , true ) }","docstring":""} {"signature":"@ Test fun testCosh ( )","body":"{ val answers = arrayOf ( , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ) checkAnswers ( :: cosh , arguments , answers , true ) }","docstring":""} {"signature":"@ Test fun testTanh ( )","body":"{ val answers = arrayOf ( , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ) checkAnswers ( :: tanh , arguments , answers , true ) }","docstring":""} {"signature":"@ Test fun testAsinh ( )","body":"{ val answers = arrayOf ( , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ) checkAnswers ( :: asinh , arguments , answers , false ) }","docstring":""} {"signature":"@ Test fun testAcosh ( )","body":"{ val answers = arrayOf ( , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ) checkAnswers ( :: acosh , arguments , answers , false ) }","docstring":""} {"signature":"@ Test fun testAtanh ( )","body":"{ val answers = arrayOf ( , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ) checkAnswers ( :: atanh , arguments , answers , false ) }","docstring":""} {"signature":"fun main ( args : Array < String > )","body":"{ Application . launch ( ExampleApp :: class . java , * args ) }","docstring":""} {"signature":"override fun start ( stage : Stage )","body":"{ stage . title = \"\" stage . scene = scene stage . show ( ) setup ( hello , fab ) }","docstring":""} {"signature":"fun setup ( hello : Text , fab : Circle )","body":"{ fab . onClick { for ( i in downTo ) { hello . text = \"\" delay ( ) } hello . text = \"\" } }","docstring":""} {"signature":"fun Node . onClick ( action : suspend ( MouseEvent ) -> Unit )","body":"{ val eventActor = GlobalScope . actor < MouseEvent > ( Dispatchers . Main ) { for ( event in channel ) action ( event ) } onMouseClicked = EventHandler { event -> eventActor . trySend ( event ) } }","docstring":""} {"signature":"override fun foo ( ) : Int","body":"= ","docstring":""} {"signature":"@ Test fun testKT38234 ( )","body":"{ assertEquals ( , KT38234_Impl ( ) . callFoo ( ) ) }","docstring":""} {"signature":"fun foo ( x : String )","body":"= x","docstring":""} {"signature":"fun box ( ) : String","body":"{ val x = :: foo return x ( \"\" ) }","docstring":""} {"signature":"override fun asStringForDebugging ( ) : String","body":"= withValidityAssertion { fe10Type . asStringForDebugging ( analysisContext ) }","docstring":""} {"signature":"fun usageWithMember ( )","body":"{ JavaClass ( ) . foo { \"\" } }","docstring":""} {"signature":"fun foo ( )","body":"{ }","docstring":""} {"signature":"fun test ( )","body":"{ open class BaseLocal : Bar ( ) { fun baz ( ) { } } val base = BaseLocal ( ) base . baz ( ) base . foo ( ) val anonymous = object : Bar ( ) { fun baz ( ) { } } anonymous . baz ( ) anonymous . foo ( ) class DerivedLocal : BaseLocal ( ) { fun gau ( ) { } } val derived = DerivedLocal ( ) derived . gau ( ) derived . baz ( ) derived . foo ( ) }","docstring":""} {"signature":"private fun DeclarationIrBuilder . ensureNotNullable ( expression : IrExpression )","body":"= if ( expression . type is IrSimpleType && expression . type . isNullable ( ) ) { irImplicitCast ( expression , expression . type . makeNotNull ( ) ) } else { expression }","docstring":""} {"signature":"protected fun incrementInductionVariable ( builder : DeclarationIrBuilder ) : IrStatement","body":"= with ( builder ) { with ( headerInfo . progressionType ) { val stepType = stepClass . defaultType val plusFun = elementClass . defaultType . getClass ( ) ! ! . functions . single { it . name == OperatorNameConventions . PLUS && it . valueParameters . size == && it . valueParameters [ ] . type == stepType } irSet ( inductionVariable . symbol , irCallOp ( plusFun . symbol , plusFun . returnType , irGet ( inductionVariable ) , stepExpression . shallowCopy ( ) , IrStatementOrigin . PLUSEQ ) , IrStatementOrigin . PLUSEQ ) } }","docstring":"/** Statement used to increment the induction variable. */"} {"signature":"protected fun buildLoopCondition ( builder : DeclarationIrBuilder ) : IrExpression","body":"{ with ( builder ) { with ( headerInfo . progressionType ) { val builtIns = context . irBuiltIns val intCompFun = if ( headerInfo . isLastInclusive ) { builtIns . lessOrEqualFunByOperandType . getValue ( builtIns . intClass ) } else { builtIns . lessFunByOperandType . getValue ( builtIns . intClass ) } val unsignedCompareToFun = if ( this is UnsignedProgressionType ) { unsignedType . getClass ( ) ! ! . functions . single { it . name == OperatorNameConventions . COMPARE_TO && it . dispatchReceiverParameter != null && it . extensionReceiverParameter == null && it . valueParameters . size == && it . valueParameters [ ] . type == unsignedType } } else null val elementCompFun = if ( headerInfo . isLastInclusive ) { builtIns . lessOrEqualFunByOperandType [ elementClass . symbol ] } else { builtIns . lessFunByOperandType [ elementClass . symbol ] } fun conditionForDecreasing ( ) : IrExpression = if ( this is UnsignedProgressionType ) { irCall ( intCompFun ) . apply { putValueArgument ( , irCall ( unsignedCompareToFun ! ! ) . apply { dispatchReceiver = lastExpression . asUnsigned ( ) putValueArgument ( , irGet ( inductionVariable ) . asUnsigned ( ) ) } ) putValueArgument ( , irInt ( ) ) } } else { irCall ( elementCompFun ! ! ) . apply { putValueArgument ( , lastExpression ) putValueArgument ( , irGet ( inductionVariable ) ) } } fun conditionForIncreasing ( ) : IrExpression = if ( this is UnsignedProgressionType ) { irCall ( intCompFun ) . apply { putValueArgument ( , irCall ( unsignedCompareToFun ! ! ) . apply { dispatchReceiver = irGet ( inductionVariable ) . asUnsigned ( ) putValueArgument ( , lastExpression . asUnsigned ( ) ) } ) putValueArgument ( , irInt ( ) ) } } else { irCall ( elementCompFun ! ! ) . apply { putValueArgument ( , irGet ( inductionVariable ) ) putValueArgument ( , lastExpression ) } } return when ( headerInfo . direction ) { ProgressionDirection . DECREASING -> conditionForDecreasing ( ) ProgressionDirection . INCREASING -> conditionForIncreasing ( ) ProgressionDirection . UNKNOWN -> { context . oror ( context . andand ( irCall ( builtIns . greaterFunByOperandType . getValue ( stepClass . symbol ) ) . apply { putValueArgument ( , stepExpression . shallowCopy ( ) ) putValueArgument ( , zeroStepExpression ( ) ) } , conditionForIncreasing ( ) ) , context . andand ( irCall ( builtIns . lessFunByOperandType . getValue ( stepClass . symbol ) ) . apply { putValueArgument ( , stepExpression . shallowCopy ( ) ) putValueArgument ( , zeroStepExpression ( ) ) } , conditionForDecreasing ( ) ) ) } } } } }","docstring":""} {"signature":"fun testD ( x : Comparable < Double > , y : Comparable < Double > )","body":"= x is Double && y is Double && x < y","docstring":""} {"signature":"fun testF ( x : Comparable < Float > , y : Comparable < Float > )","body":"= x is Float && y is Float && x < y","docstring":""} {"signature":"override fun check ( declaration : FirRegularClass , context : CheckerContext , reporter : DiagnosticReporter )","body":"{ if ( ( declaration . classKind . isSingleton || declaration . classKind == ClassKind . ENUM_CLASS ) && declaration . isLocal ) return val containingDeclaration = context . containingDeclarations . lastOrNull ( ) as? FirClass ? : return if ( containingDeclaration . classKind == ClassKind . ENUM_ENTRY && ! declaration . isInner && ! declaration . isCompanion ) { reporter . reportOn ( declaration . source , NESTED_CLASS_NOT_ALLOWED , declaration . description , context ) return } val containerIsLocal = containingDeclaration . effectiveVisibility == EffectiveVisibility . Local if ( ! declaration . isInner && ( containingDeclaration . isInner || containerIsLocal || context . isInsideAnonymousObject ) ) { reporter . reportOn ( declaration . source , NESTED_CLASS_NOT_ALLOWED , declaration . description , context ) } }","docstring":""} {"signature":"fun f1 ( value : Pair < String , String > ) : Boolean","body":"{ val ( `false` , `true` ) = value if ( `false` != \"\" ) return false if ( `true` != \"\" ) return false return true }","docstring":""} {"signature":"fun box ( ) : String ?","body":"{ var i = for ( `false` : Int in .. ) { i ++ } if ( ! `true` ( false ) ) return null val `true` = { `false` : Boolean , `true` : Int -> true } var `false` : Boolean `false` = false if ( ! f1 ( Pair ( \"\" , \"\" ) ) ) return null if ( i != ) return null if ( ! `true` ( false , ) ) return null if ( `false` ) return null return \"\" }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val chars = mapOf ( '' to , '' to , '' to , '' to , '' to , '' to , '' to , '' to , '' to ) for ( ( char , code ) in chars ) { assertEquals ( code , char . toInt ( ) ) assertEquals ( char , code . toChar ( ) ) } return \"\" }","docstring":""} {"signature":"fun box ( ) : String","body":"{ run { ok = \"\" } return ok }","docstring":""} {"signature":"public fun foo ( vararg p : String )","body":"public fun foo ( vararg p : String )","docstring":""} {"signature":"public fun dummy ( )","body":"public fun dummy ( )","docstring":""} {"signature":"override fun foo ( vararg p : String )","body":"override fun foo ( vararg p : String )","docstring":""} {"signature":"fun < R > myRun ( block : ( ) -> R ) : R","body":"{ return block ( ) }","docstring":""} {"signature":"fun A . test ( foo : String )","body":"{ val a : String = foo }","docstring":""} {"signature":"@ Test fun able_to_create_main_tag ( )","body":"{ val tree = createHTMLDocument ( ) . html { body { main ( classes = \"\" ) { id = \"\" + \"\" } } } print ( tree . serialize ( true ) . trim ( ) . replace ( \"\" , \"\" ) ) assertEquals ( \"\" , tree . serialize ( false ) ) assertEquals ( \"\"\"\"\"\" . trimIndent ( ) , tree . serialize ( true ) . trim ( ) . replace ( \"\" , \"\" ) ) }","docstring":""} {"signature":"@ Test fun `able to create complex tree and render it with pretty print` ( )","body":"{ val tree = createHTMLDocument ( ) . html { body { h1 { + \"\" } div { + \"\" span { + \"\" } } } } assertEquals ( \"\" , tree . serialize ( false ) ) val serialize = tree . serialize ( true ) assertEquals ( \"\"\"\"\"\" . trimIndent ( ) , serialize . trim ( ) . replace ( \"\" , \"\" ) ) }","docstring":""} {"signature":"operator fun FiveTimes . iterator ( )","body":"= IntCell ( )","docstring":""} {"signature":"operator fun IntCell . hasNext ( )","body":"= value > ","docstring":""} {"signature":"operator fun IntCell . next ( )","body":"= value --","docstring":""} {"signature":"fun IReceiver . test ( )","body":"{ for ( i in FiveTimes ) { println ( i ) } }","docstring":""} {"signature":"fun sayHello ( name : String ) : String","body":"{ var result = MyString ( name ) result += \"\" return result . content }","docstring":""} {"signature":"private operator fun MyString . plus ( suffix : String ) : MyString","body":"= MyString ( \"\" )","docstring":""} {"signature":"fun box ( ) : String","body":"{ return Greeter . sayHello ( \"\" ) }","docstring":""} {"signature":"fun findAndExpand ( vararg path : ( ) -> String ) : List < String >","body":"= TODO ( )","docstring":""} {"signature":"inline fun < reified T : C > foo ( bar : String ? ) : T ?","body":"= TODO ( )","docstring":""} {"signature":"fun box ( ) : String","body":"{ return Baz ( ) . bar }","docstring":""} {"signature":"public fun foo ( )","body":"{ }","docstring":""} {"signature":"override fun collectShortenings ( file : KtFile , selection : TextRange , shortenOptions : ShortenOptions , classShortenStrategy : ( KtClassLikeSymbol ) -> ShortenStrategy , callableShortenStrategy : ( KtCallableSymbol ) -> ShortenStrategy , ) : ShortenCommand","body":"{ val ktFilePointer = SmartPointerManager . createPointer ( file ) return object : ShortenCommand { override val targetFile : SmartPsiElementPointer < KtFile > get ( ) = ktFilePointer override val importsToAdd : Set < FqName > get ( ) = emptySet ( ) override val starImportsToAdd : Set < FqName > get ( ) = emptySet ( ) override val listOfTypeToShortenInfo : List < TypeToShortenInfo > get ( ) = emptyList ( ) override val listOfQualifierToShortenInfo : List < QualifierToShortenInfo > get ( ) = emptyList ( ) override val thisLabelsToShorten : List < ThisLabelToShortenInfo > = emptyList ( ) override val kDocQualifiersToShorten : List < SmartPsiElementPointer < KDocName > > get ( ) = emptyList ( ) override val isEmpty : Boolean get ( ) = true } }","docstring":""} {"signature":"override fun < T > injectCoroutineContext ( publisher : Publisher < T > , coroutineContext : CoroutineContext ) : Publisher < T >","body":"{ val reactorContext = coroutineContext [ ReactorContext ] ? . context ? : return publisher return when ( publisher ) { is Mono -> publisher . contextWrite ( reactorContext ) is Flux -> publisher . contextWrite ( reactorContext ) else -> publisher } }","docstring":"/**\n * Injects all values from the [ReactorContext] entry of the given coroutine context\n * into the downstream [Context] of Reactor's [Publisher] instances of [Mono] or [Flux].\n */"} {"signature":"fun replaceRenderConfiguration ( renderConfiguration : DiagnosticCodeMetaInfoRenderConfiguration )","body":"{ this . renderConfiguration = renderConfiguration }","docstring":""} {"signature":"override fun asString ( ) : String","body":"= renderConfiguration . asString ( this )","docstring":""} {"signature":"@ MyAnnotation fun foo ( )","body":"{ }","docstring":""} {"signature":"override fun foo ( )","body":"{ }","docstring":""} {"signature":"fun test ( )","body":"{ val outerBuildee = build outerBuild @ { val innerBuildee = build innerBuild @ { this@outerBuild . setTypeVariable ( TargetType ( ) ) this@innerBuild . setTypeVariable ( TargetType ( ) ) } checkExactType < Buildee < TargetType > > ( innerBuildee ) } checkExactType < Buildee < TargetType > > ( outerBuildee ) }","docstring":""} {"signature":"fun setTypeVariable ( value : TV )","body":"{ storage = value }","docstring":""} {"signature":"fun < PTV > build ( instructions : Buildee < PTV > . ( ) -> Unit ) : Buildee < PTV >","body":"{ return Buildee < PTV > ( ) . apply ( instructions ) }","docstring":""} {"signature":"public abstract fun forward ( tf : Ops , input : Operand < Float > ) : Operand < Float >","body":"public abstract fun forward ( tf : Ops , input : Operand < Float > ) : Operand < Float >","docstring":"/**\n * Applies the activation functions to the [input] to produce the output.\n *\n * @param [tf] TensorFlow graph API for building operations.\n * @param [input] TensorFlow graph leaf node representing layer output before activation function.\n */"} {"signature":"override fun build ( tf : Ops , input : Operand < Float > , isTraining : Operand < Boolean > , numberOfLosses : Operand < Float > ? ) : Operand < Float >","body":"= forward ( tf , input )","docstring":""} {"signature":"fun isAllowed ( qualifiedName : String ) : Boolean","body":"fun isAllowed ( qualifiedName : String ) : Boolean","docstring":"/**\n * @return **true** if an annotations with [qualifiedName] is allowed\n */"} {"signature":"fun filtered ( annotations : Collection < PsiAnnotation > ) : Collection < PsiAnnotation >","body":"fun filtered ( annotations : Collection < PsiAnnotation > ) : Collection < PsiAnnotation >","docstring":"/**\n * @return a filtered collection where each annotation in a list has an allowed qualifier\n */"} {"signature":"@ OptIn ( DokkaPluginApiPreview :: class ) override fun pluginApiPreviewAcknowledgement ( ) : PluginApiPreviewAcknowledgement","body":"= PluginApiPreviewAcknowledgement","docstring":""} {"signature":"override fun invoke ( input : RootPageNode ) : RootPageNode","body":"= input . transformContentPagesTree { it . modified ( embeddedResources = it . embeddedResources + if ( it . isNeedingMathjax ) listOf ( LIB_PATH ) else emptyList ( ) ) }","docstring":""} {"signature":"override fun isApplicable ( customTag : CustomTagWrapper ) : Boolean","body":"= customTag . name == ANNOTATION","docstring":""} {"signature":"override fun DocumentableContentBuilder . contentForDescription ( sourceSet : DokkaConfiguration . DokkaSourceSet , customTag : CustomTagWrapper )","body":"{ comment ( customTag . root , sourceSets = setOf ( sourceSet ) ) }","docstring":""} {"signature":"public expect inline fun < reified T > Array < out T > ? . orEmpty ( ) : Array < out T >","body":"public expect inline fun < reified T > Array < out T > ? . orEmpty ( ) : Array < out T >","docstring":"/**\n * Returns the array if it's not `null`, or an empty array otherwise.\n * @sample samples.collections.Arrays.Usage.arrayOrEmpty\n */"} {"signature":"public expect inline fun < reified T > Collection < T > . toTypedArray ( ) : Array < T >","body":"public expect inline fun < reified T > Collection < T > . toTypedArray ( ) : Array < T >","docstring":"/**\n * Returns a *typed* array containing all the elements of this collection.\n *\n * Allocates an array of runtime type `T` having its size equal to the size of this collection\n * and populates the array with the elements of this collection.\n * @sample samples.collections.Collections.Collections.collectionToTypedArray\n */"} {"signature":"@ SinceKotlin ( \"\" ) public expect fun < T > MutableList < T > . fill ( value : T ) : Unit","body":"@ SinceKotlin ( \"\" ) public expect fun < T > MutableList < T > . fill ( value : T ) : Unit","docstring":"/**\n * Fills the list with the provided [value].\n *\n * Each element in the list gets replaced with the [value].\n */"} {"signature":"@ SinceKotlin ( \"\" ) public expect fun < T > MutableList < T > . shuffle ( ) : Unit","body":"@ SinceKotlin ( \"\" ) public expect fun < T > MutableList < T > . shuffle ( ) : Unit","docstring":"/**\n * Randomly shuffles elements in this list.\n *\n * See: https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle#The_modern_algorithm\n */"} {"signature":"@ SinceKotlin ( \"\" ) public expect fun < T > Iterable < T > . shuffled ( ) : List < T >","body":"@ SinceKotlin ( \"\" ) public expect fun < T > Iterable < T > . shuffled ( ) : List < T >","docstring":"/**\n * Returns a new list with the elements of this collection randomly shuffled.\n */"} {"signature":"public expect fun < T : Comparable < T > > MutableList < T > . sort ( ) : Unit","body":"public expect fun < T : Comparable < T > > MutableList < T > . sort ( ) : Unit","docstring":"/**\n * Sorts elements in the list in-place according to their natural sort order.\n *\n * The sort is _stable_. It means that equal elements preserve their order relative to each other after sorting.\n *\n * @sample samples.collections.Collections.Sorting.sortMutableList\n */"} {"signature":"public expect fun < T > MutableList < T > . sortWith ( comparator : Comparator < in T > ) : Unit","body":"public expect fun < T > MutableList < T > . sortWith ( comparator : Comparator < in T > ) : Unit","docstring":"/**\n * Sorts elements in the list in-place according to the order specified with [comparator].\n *\n * The sort is _stable_. It means that equal elements preserve their order relative to each other after sorting.\n *\n * @sample samples.collections.Collections.Sorting.sortMutableListWith\n */"} {"signature":"public expect fun < T , K > Grouping < T , K > . eachCount ( ) : Map < K , Int >","body":"public expect fun < T , K > Grouping < T , K > . eachCount ( ) : Map < K , Int >","docstring":""} {"signature":"internal expect fun collectionToArray ( collection : Collection < * > ) : Array < Any ? >","body":"internal expect fun collectionToArray ( collection : Collection < * > ) : Array < Any ? >","docstring":""} {"signature":"internal expect fun < T > collectionToArray ( collection : Collection < * > , array : Array < T > ) : Array < T >","body":"internal expect fun < T > collectionToArray ( collection : Collection < * > , array : Array < T > ) : Array < T >","docstring":""} {"signature":"internal expect fun < T > arrayOfNulls ( reference : Array < T > , size : Int ) : Array < T >","body":"internal expect fun < T > arrayOfNulls ( reference : Array < T > , size : Int ) : Array < T >","docstring":""} {"signature":"internal expect fun < K , V > Map < K , V > . toSingletonMapOrSelf ( ) : Map < K , V >","body":"internal expect fun < K , V > Map < K , V > . toSingletonMapOrSelf ( ) : Map < K , V >","docstring":""} {"signature":"internal expect fun < K , V > Map < out K , V > . toSingletonMap ( ) : Map < K , V >","body":"internal expect fun < K , V > Map < out K , V > . toSingletonMap ( ) : Map < K , V >","docstring":""} {"signature":"internal expect fun < T > Array < out T > . copyToArrayOfAny ( isVarargs : Boolean ) : Array < out Any ? >","body":"internal expect fun < T > Array < out T > . copyToArrayOfAny ( isVarargs : Boolean ) : Array < out Any ? >","docstring":""} {"signature":"fun foo ( )","body":"fun foo ( )","docstring":""} {"signature":"fun IFooBar . foo ( )","body":"{ }","docstring":""} {"signature":"fun foo ( ) : Any ?","body":"fun foo ( ) : Any ?","docstring":""} {"signature":"fun foo ( ) : String","body":"fun foo ( ) : String","docstring":""} {"signature":"fun bar ( x : Any ? ) : String","body":"{ if ( x is A ) { val k = x . foo ( ) if ( k != \"\" ) return \"\" } if ( x is B ) { val k = x . foo ( ) if ( k . length != ) return \"\" } if ( x is A && x is B ) { return x . foo ( ) } return \"\" }","docstring":""} {"signature":"fun box ( ) : String","body":"= bar ( object : A , B { override fun foo ( ) = \"\" } )","docstring":""} {"signature":"fun filtersPlot ( conv2DLayer : Conv2D , plotFeature : PlotFeature = PlotFeature . GRAY , imageSize : Int = , columns : Int = ) : Figure","body":"{ @ Suppress ( \"\" ) val weights = conv2DLayer . weights . values . toTypedArray ( ) [ ] as TensorImageData val xyInOut = extractXYInputOutputAxeSizes ( weights , FILTER_LAYERS_PERMUTATION ) val plots = cartesianProductIndices ( xyInOut [ ] , xyInOut [ ] ) . map { ( i , o ) -> xyPlot ( xyInOut [ ] , xyInOut [ ] , plotFeature ) { x , y -> weights [ y ] [ x ] [ i ] [ o ] } } return columnPlot ( plots , columns , imageSize ) }","docstring":"/**\n * Create a column plot of tile plots for weights of Conv2D layer filters.\n *\n * @param conv2DLayer which weights will be changed to tile plot\n * @param plotFeature filling colors of the created plot\n * @param imageSize size of width and height of single plot in px\n * @param columns number of columns in which the single filters plots are arranged\n * @return a figure representing the weights plots\n */"} {"signature":"fun modelActivationOnLayersPlot ( model : TrainableModel , x : FloatData , plotFeature : PlotFeature = PlotFeature . GRAY , imageSize : Int = , columns : Int = , ) : List < Figure >","body":"{ val activations = model . predictAndGetActivations ( x ) . second @ Suppress ( \"\" ) val activationArrays = activations . mapNotNull { it as? TensorImageData } return activationArrays . map { weights -> val xyInOut = extractXYInputOutputAxeSizes ( weights , ACTIVATION_LAYERS_PERMUTATION ) val plots = cartesianProductIndices ( xyInOut [ ] , xyInOut [ ] ) . map { ( i , o ) -> xyPlot ( xyInOut [ ] , xyInOut [ ] , plotFeature ) { x , y -> weights [ i ] [ y ] [ x ] [ o ] } } columnPlot ( plots , columns , imageSize ) } }","docstring":"/**\n * Create a list of columns plots for model activation on layers.\n * The model is evaluated on given input and the obtained activations arrays\n * of the following layers are converted into separated figures with columns\n * plots of the weights for the filters in [Conv2D] layers\n *\n * @param model that is evaluated to get the activations on its weights\n * @param x input for model evaluation\n * @param plotFeature filling colors of the created plot\n * @param imageSize size of width and height of single plot in px\n * @param columns number of columns in which the single filters plots are arranged\n * @return list of figures representing the activations plots for model evaluation\n */"} {"signature":"private fun MethodSignatureDeclaration . convertToMethod ( ) : MethodDeclaration","body":"{ return MethodDeclaration ( name = name , parameters = parameters , typeParameters = typeParameters , type = type , modifiers = modifiers , body = null , optional = optional , isGenerator = false ) }","docstring":""} {"signature":"private fun mergeParentEntities ( parentEntitiesA : List < HeritageClauseDeclaration > , parentEntitiesB : List < HeritageClauseDeclaration > ) : List < HeritageClauseDeclaration >","body":"{ val parentSet = parentEntitiesA . toSet ( ) return parentEntitiesA + parentEntitiesB . filter { parentEntity -> ! parentSet . contains ( parentEntity ) } }","docstring":""} {"signature":"private fun mergeInterfaces ( a : InterfaceDeclaration , b : InterfaceDeclaration ) : InterfaceDeclaration","body":"{ return a . copy ( members = b . members + a . members , typeParameters = if ( b . typeParameters . size > a . typeParameters . size ) { b . typeParameters } else { a . typeParameters } , parentEntities = mergeParentEntities ( a . parentEntities , b . parentEntities ) ) }","docstring":""} {"signature":"override fun lowerTypeParamReferenceDeclaration ( declaration : TypeParamReferenceDeclaration ) : ParameterValueDeclaration","body":"{ return typeParamMap . get ( declaration . value ) ? : declaration }","docstring":""} {"signature":"private fun resolveParentMethods ( classLikeDeclaration : ClassLikeDeclaration ) : List < MemberDeclaration >","body":"{ return classLikeDeclaration . parentEntities . flatMap { heritageClause -> val parentClass = topLevelDeclarationResolver . resolveRecursive ( heritageClause . typeReference ? . uid ) if ( parentClass is ClassLikeDeclaration ) { val typeParams = parentClass . typeParameters . mapIndexed { index , typeParam -> Pair ( typeParam . name , heritageClause . typeArguments . getOrNull ( index ) ) } . toMap ( ) ( ( SpecifyTypeReferenceLowering ( typeParams ) . lowerClassLikeDeclaration ( parentClass , null ) as? ClassLikeDeclaration ) ? . let { resolveClass -> resolveClass . members } ? : emptyList ( ) ) + resolveParentMethods ( parentClass ) } else { emptyList ( ) } } }","docstring":""} {"signature":"private fun mergeClassAndInterface ( a : ClassDeclaration , b : InterfaceDeclaration , uid : String ) : ClassDeclaration","body":"{ val parentMembers = resolveParentMethods ( b ) val membersResolved = ( parentMembers + b . members ) . map { when ( it ) { is MethodSignatureDeclaration -> it . convertToMethod ( ) else -> it } } + a . members return a . copy ( members = membersResolved , typeParameters = if ( b . typeParameters . size > a . typeParameters . size ) { b . typeParameters } else { a . typeParameters } , parentEntities = mergeParentEntities ( a . parentEntities , b . parentEntities ) , uid = uid ) }","docstring":""} {"signature":"private fun merge ( a : MergeableDeclaration , b : MergeableDeclaration ) : MergeableDeclaration","body":"{ return when ( a ) { is InterfaceDeclaration -> when ( b ) { is InterfaceDeclaration -> mergeInterfaces ( a , b ) is ClassDeclaration -> mergeClassAndInterface ( b , a , a . uid ) else -> a } is ClassDeclaration -> when ( b ) { is InterfaceDeclaration -> mergeClassAndInterface ( a , b , a . uid ) else -> a } is VariableDeclaration -> when ( b ) { is InterfaceDeclaration -> b else -> a } else -> a } }","docstring":""} {"signature":"override fun lowerClassLikeDeclaration ( declaration : ClassLikeDeclaration , owner : NodeOwner < ModuleDeclaration > ? ) : TopLevelDeclaration ?","body":"{ val definitions = declaration . definitionsInfo . mapNotNull { definition -> topLevelDeclarationResolver . resolve ( definition . uid ) } . filterIsInstance ( ClassLikeDeclaration :: class . java ) val onlyClassLikes = definitions . isNotEmpty ( ) return if ( onlyClassLikes ) { if ( declaration . uid == definitions . firstOrNull ( ) ? . uid ) { @ Suppress ( \"\" ) ( definitions as List < MergeableDeclaration > ) . reduce { acc , definitionInfoDeclaration -> merge ( acc , definitionInfoDeclaration ) } } else { null } } else { declaration } }","docstring":""} {"signature":"private fun SourceSetDeclaration . mergeInterfaces ( topLevelDeclarationResolver : TopLevelDeclarationResolver ) : SourceSetDeclaration","body":"{ return copy ( sources = sources . map { it . copy ( root = MergeClassLikesLowering ( topLevelDeclarationResolver ) . lowerSourceDeclaration ( it . root ) ) } ) }","docstring":""} {"signature":"override fun lower ( source : SourceSetDeclaration ) : SourceSetDeclaration","body":"{ val topLevelDeclarationResolver = TopLevelDeclarationResolver ( source ) return source . mergeInterfaces ( topLevelDeclarationResolver ) }","docstring":""} {"signature":"fun < R > TagConsumer < R > . trace ( ) : TagConsumer < R >","body":"= TraceConsumer ( this , println = :: println )","docstring":""} {"signature":"fun testSealed ( m : MySealedInterface ) : String","body":"{ return when ( m ) { is OneSealedChild -> \"\" } }","docstring":""} {"signature":"@ Before fun setup ( )","body":"{ ignoreLostThreads ( \"\" ) }","docstring":""} {"signature":"override fun isMainThread ( )","body":"= SwingUtilities . isEventDispatchThread ( )","docstring":""} {"signature":"override fun scheduleOnMainQueue ( block : ( ) -> Unit )","body":"{ SwingUtilities . invokeLater { block ( ) } }","docstring":""} {"signature":"@ Test fun testMainIsJavaFx ( )","body":"{ assertSame ( Dispatchers . Swing , Dispatchers . Main ) }","docstring":"/** Tests that the Main dispatcher is in fact the JavaFx one. */"} {"signature":"fun main ( )","body":"= runBlocking < Unit > { val job = launch { repeat ( ) { i -> println ( \"\" ) delay ( ) } } delay ( ) println ( \"\" ) job . cancelAndJoin ( ) println ( \"\" ) }","docstring":""} {"signature":"fun sayHi ( )","body":"= println ( \"\" )","docstring":""} {"signature":"private fun IrType . findEqualsMethod ( ) : IrSimpleFunction","body":"{ val klass = getClass ( ) ? : irBuiltins . anyClass . owner return klass . functions . single { it . isEqualsInheritedFromAny ( ) } }","docstring":""} {"signature":"private fun transformCall ( call : IrCall , builder : DeclarationIrBuilder ) : IrExpression","body":"{ when ( val symbol = call . symbol ) { irBuiltins . linkageErrorSymbol -> { return irCall ( call , context . wasmSymbols . throwLinkageError ) } irBuiltins . ieee754equalsFunByOperandType [ irBuiltins . floatClass ] -> { if ( call . getValueArgument ( ) ! ! . type . isNullable ( ) || call . getValueArgument ( ) ! ! . type . isNullable ( ) ) { return irCall ( call , symbols . nullableFloatIeee754Equals ) } return irCall ( call , symbols . floatEqualityFunctions . getValue ( irBuiltins . floatType ) ) } irBuiltins . ieee754equalsFunByOperandType [ irBuiltins . doubleClass ] -> { if ( call . getValueArgument ( ) ! ! . type . isNullable ( ) || call . getValueArgument ( ) ! ! . type . isNullable ( ) ) { return irCall ( call , symbols . nullableDoubleIeee754Equals ) } return irCall ( call , symbols . floatEqualityFunctions . getValue ( irBuiltins . doubleType ) ) } irBuiltins . eqeqSymbol , irBuiltins . eqeqeqSymbol -> { fun callRefIsNull ( expr : IrExpression ) : IrCall { if ( ! context . isWasmJsTarget && expr . type . erasedUpperBound ? . isExternal == true ) { error ( \"\" ) } val refIsNull = if ( expr . type . erasedUpperBound ? . isExternal == true ) symbols . jsRelatedSymbols . externRefIsNull else symbols . refIsNull return builder . irCall ( refIsNull ) . apply { putValueArgument ( , expr ) } } val lhs = call . getValueArgument ( ) ! ! val rhs = call . getValueArgument ( ) ! ! if ( lhs . isNullConst ( ) ) return callRefIsNull ( rhs ) if ( rhs . isNullConst ( ) ) return callRefIsNull ( lhs ) val lhsType = lhs . type val rhsType = rhs . type if ( lhsType == rhsType ) { val newSymbol = symbols . equalityFunctions [ lhsType ] ? : if ( call . symbol === irBuiltins . eqeqeqSymbol ) symbols . floatEqualityFunctions [ lhsType ] else null if ( newSymbol != null ) { return irCall ( call , newSymbol ) } } if ( call . symbol === irBuiltins . eqeqSymbol && ! lhsType . isNullable ( ) && ! lhsType . isNothing ( ) ) { return irCall ( call , lhsType . findEqualsMethod ( ) . symbol , argumentsAsReceivers = true ) } val fallbackEqFun = if ( call . symbol === irBuiltins . eqeqeqSymbol ) symbols . refEq else symbols . nullableEquals return irCall ( call , fallbackEqFun ) } irBuiltins . checkNotNullSymbol -> { val arg = call . getValueArgument ( ) ! ! if ( arg . isNullConst ( ) ) { return builder . irCall ( symbols . throwNullPointerException ) } return builder . irComposite { val temporary = irTemporary ( arg ) + builder . irIfNull ( type = arg . type . makeNotNull ( ) , subject = irGet ( temporary ) , thenPart = builder . irCall ( symbols . throwNullPointerException ) , elsePart = irGet ( temporary ) ) } } in symbols . comparisonBuiltInsToWasmIntrinsics . keys -> { val newSymbol = symbols . comparisonBuiltInsToWasmIntrinsics [ symbol ] ! ! return irCall ( call , newSymbol ) } irBuiltins . noWhenBranchMatchedExceptionSymbol -> return builder . irCall ( symbols . throwNoBranchMatchedException , irBuiltins . nothingType ) irBuiltins . illegalArgumentExceptionSymbol -> return builder . irCall ( symbols . throwIAE , irBuiltins . nothingType , ) . apply { putValueArgument ( , call . getValueArgument ( ) ! ! ) } irBuiltins . dataClassArrayMemberHashCodeSymbol , irBuiltins . dataClassArrayMemberToStringSymbol -> { val argument = call . getValueArgument ( ) ! ! val argumentType = argument . type val overloadSymbol : IrSimpleFunctionSymbol val returnType : IrType if ( symbol == irBuiltins . dataClassArrayMemberHashCodeSymbol ) { overloadSymbol = symbols . findContentHashCodeOverload ( argumentType ) returnType = irBuiltins . intType } else { overloadSymbol = symbols . findContentToStringOverload ( argumentType ) returnType = irBuiltins . stringType } return builder . irCall ( overloadSymbol , returnType , ) . apply { extensionReceiver = argument if ( argumentType . classOrNull == irBuiltins . arrayClass ) { putTypeArgument ( , argumentType . getArrayElementType ( irBuiltins ) ) } } } in symbols . startCoroutineUninterceptedOrReturnIntrinsics -> { val arity = symbols . startCoroutineUninterceptedOrReturnIntrinsics . indexOf ( symbol ) val newSymbol = irBuiltins . suspendFunctionN ( arity ) . getSimpleFunction ( \"\" ) ! ! return irCall ( call , newSymbol , argumentsAsReceivers = true ) } context . reflectionSymbols . getKClass -> { val type = call . getTypeArgument ( ) ! ! val klass = type . classOrNull ? . owner ? : error ( \"\" ) val constructorArgument : IrExpression val kclassConstructor : IrConstructor if ( klass . isEffectivelyExternal ( ) ) { check ( context . isWasmJsTarget ) { \"\" } kclassConstructor = symbols . jsRelatedSymbols . kExternalClassImpl . owner . constructors . first ( ) constructorArgument = getExternalKClassCtorArgument ( type , builder ) } else { kclassConstructor = symbols . reflectionSymbols . kClassImpl . owner . constructors . first ( ) constructorArgument = getKClassCtorArgument ( type , builder ) } return IrConstructorCallImpl ( startOffset = UNDEFINED_OFFSET , endOffset = UNDEFINED_OFFSET , type = kclassConstructor . returnType , symbol = kclassConstructor . symbol , typeArgumentsCount = , valueArgumentsCount = , constructorTypeArgumentsCount = ) . also { it . putClassTypeArgument ( , type ) it . putValueArgument ( , constructorArgument ) } } symbols . enumValueOfIntrinsic -> return EnumIntrinsicsUtils . transformEnumValueOfIntrinsic ( call ) symbols . enumValuesIntrinsic -> return EnumIntrinsicsUtils . transformEnumValuesIntrinsic ( call ) symbols . enumEntriesIntrinsic -> return EnumIntrinsicsUtils . transformEnumEntriesIntrinsic ( call ) } return call }","docstring":""} {"signature":"private fun getKClassCtorArgument ( type : IrType , builder : DeclarationIrBuilder ) : IrExpression","body":"{ val klass = type . classOrNull ? . owner ? : error ( \"\" ) val typeId = builder . irCall ( symbols . wasmTypeId ) . also { it . putTypeArgument ( , type ) } if ( ! klass . isInterface ) { return builder . irCall ( context . wasmSymbols . reflectionSymbols . getTypeInfoTypeDataByPtr ) . also { it . putValueArgument ( , typeId ) } } else { val fqName = type . classFqName ! ! val fqnShouldBeEmitted = context . configuration . languageVersionSettings . getFlag ( AnalysisFlags . allowFullyQualifiedNameInKClass ) val packageName = if ( fqnShouldBeEmitted ) fqName . parentOrNull ( ) ? . asString ( ) ? : \"\" else \"\" val typeName = fqName . shortName ( ) . asString ( ) return builder . irCallConstructor ( symbols . reflectionSymbols . wasmTypeInfoData . constructors . first ( ) , emptyList ( ) ) . also { it . putValueArgument ( , typeId ) it . putValueArgument ( , packageName . toIrConst ( context . irBuiltIns . stringType ) ) it . putValueArgument ( , typeName . toIrConst ( context . irBuiltIns . stringType ) ) } } }","docstring":""} {"signature":"private fun getExternalKClassCtorArgument ( type : IrType , builder : DeclarationIrBuilder ) : IrExpression","body":"{ val klass = type . classOrNull ? . owner ? : error ( \"\" ) check ( klass . kind != ClassKind . INTERFACE ) { \"\" } val classGetClassFunction = context . mapping . wasmGetJsClass [ klass ] ! ! val wrappedGetClassIfAny = context . mapping . wasmJsInteropFunctionToWrapper [ classGetClassFunction ] ? : classGetClassFunction return builder . irCall ( wrappedGetClassIfAny ) }","docstring":""} {"signature":"override fun lower ( irFile : IrFile )","body":"{ val builder = context . createIrBuilder ( irFile . symbol ) irFile . transformChildrenVoid ( object : IrElementTransformerVoidWithContext ( ) { override fun visitCall ( expression : IrCall ) : IrExpression { val newExpression = transformCall ( expression , builder ) newExpression . transformChildrenVoid ( this ) return newExpression } } ) }","docstring":""} {"signature":"fun applyConfiguration ( project : Project , target : AbstractKotlinTarget , shouldRewritePoms : Provider < Boolean > )","body":"fun applyConfiguration ( project : Project , target : AbstractKotlinTarget , shouldRewritePoms : Provider < Boolean > )","docstring":""} {"signature":"fun getInstance ( ) : MavenPluginConfigurator","body":"fun getInstance ( ) : MavenPluginConfigurator","docstring":""} {"signature":"override fun getInstance ( ) : MavenPluginConfigurator","body":"= object : MavenPluginConfigurator { override fun applyConfiguration ( project : Project , target : AbstractKotlinTarget , shouldRewritePoms : Provider < Boolean > ) = Unit }","docstring":""} {"signature":"override fun accept ( visitor : PsiElementVisitor )","body":"{ if ( visitor is JavaElementVisitor ) { visitor . visitTypeParameterList ( this ) } else { visitor . visitElement ( this ) } }","docstring":""} {"signature":"override fun processDeclarations ( processor : PsiScopeProcessor , state : ResolveState , lastParent : PsiElement ? , place : PsiElement ) : Boolean","body":"= typeParameters . all { processor . execute ( it , state ) }","docstring":""} {"signature":"override fun getTypeParameters ( ) : Array < PsiTypeParameter >","body":"= _typeParameters . toArrayIfNotEmptyOrDefault ( PsiTypeParameter . EMPTY_ARRAY )","docstring":""} {"signature":"override fun getTypeParameterIndex ( typeParameter : PsiTypeParameter ? ) : Int","body":"= _typeParameters . indexOf ( typeParameter )","docstring":""} {"signature":"override fun toString ( ) : String","body":"= \"\"","docstring":""} {"signature":"override fun equals ( other : Any ? ) : Boolean","body":"{ if ( this === other ) return true if ( other !is SymbolLightTypeParameterList || other . ktModule != ktModule ) return false if ( ktDeclaration != null || other . ktDeclaration != null ) { return other . ktDeclaration == ktDeclaration } return other . owner == owner && compareSymbolPointers ( symbolWithTypeParameterPointer , other . symbolWithTypeParameterPointer ) }","docstring":""} {"signature":"override fun hashCode ( ) : Int","body":"= ktDeclaration . hashCode ( ) + ","docstring":""} {"signature":"override fun isEquivalentTo ( another : PsiElement ? ) : Boolean","body":"= basicIsEquivalentTo ( this , another )","docstring":""} {"signature":"override fun getParent ( ) : PsiElement","body":"= owner","docstring":""} {"signature":"override fun getContainingFile ( ) : PsiFile","body":"= parent . containingFile","docstring":""} {"signature":"override fun getText ( ) : String ?","body":"= ktDeclaration ? . typeParameterList ? . text","docstring":""} {"signature":"override fun getTextOffset ( ) : Int","body":"= ktDeclaration ? . typeParameterList ? . textOffset ? : - ","docstring":""} {"signature":"override fun getStartOffsetInParent ( ) : Int","body":"= ktDeclaration ? . typeParameterList ? . startOffsetInParent ? : - ","docstring":""} {"signature":"@ OnlyDescriptors @ Test fun `check if enum values are correctly linked` ( )","body":"{ val writerPlugin = TestOutputWriterPlugin ( ) val testDataDir = getTestDataDir ( \"\" ) . toAbsolutePath ( ) testFromData ( dokkaConfiguration { sourceSets { sourceSet { sourceRoots = listOf ( Paths . get ( \"\" ) . toString ( ) ) analysisPlatform = \"\" name = \"\" } } } , pluginOverrides = listOf ( writerPlugin ) ) { documentablesTransformationStage = { val classlikes = it . packages . single ( ) . children assertEquals ( , classlikes . size ) val javaLinker = classlikes . single { it . name == \"\" } javaLinker . documentation . values . single ( ) . children . run { when ( val kotlinLink = this [ ] . children [ ] . children [ ] ) { is DocumentationLink -> kotlinLink . dri . run { assertEquals ( \"\" , this . classNames ) assertEquals ( null , this . callable ) assertNotNull ( DRIExtraContainer ( extra ) [ EnumEntryDRIExtra ] ) } else -> throw AssertionError ( \"\" ) } when ( val javaLink = this [ ] . children [ ] . children [ ] ) { is DocumentationLink -> javaLink . dri . run { assertEquals ( \"\" , this . classNames ) assertEquals ( null , this . callable ) assertNotNull ( DRIExtraContainer ( extra ) [ EnumEntryDRIExtra ] ) } else -> throw AssertionError ( \"\" ) } } val kotlinLinker = classlikes . single { it . name == \"\" } kotlinLinker . documentation . values . single ( ) . children . run { when ( val kotlinLink = this [ ] . children [ ] . children [ ] ) { is DocumentationLink -> kotlinLink . dri . run { assertEquals ( \"\" , this . classNames ) assertEquals ( null , this . callable ) assertNotNull ( DRIExtraContainer ( extra ) [ EnumEntryDRIExtra ] ) } else -> throw AssertionError ( \"\" ) } when ( val javaLink = this [ ] . children [ ] . children [ ] ) { is DocumentationLink -> javaLink . dri . run { assertEquals ( \"\" , this . classNames ) assertEquals ( null , this . callable ) assertNotNull ( DRIExtraContainer ( extra ) [ EnumEntryDRIExtra ] ) } else -> throw AssertionError ( \"\" ) } } assertEquals ( javaLinker . documentation . values . single ( ) . children [ ] . children [ ] . children [ ] . let { it as? DocumentationLink } ? . dri , kotlinLinker . documentation . values . single ( ) . children [ ] . children [ ] . children [ ] . let { it as? DocumentationLink } ? . dri ) assertEquals ( javaLinker . documentation . values . single ( ) . children [ ] . children [ ] . children [ ] . let { it as? DocumentationLink } ? . dri , kotlinLinker . documentation . values . single ( ) . children [ ] . children [ ] . children [ ] . let { it as? DocumentationLink } ? . dri ) } renderingStage = { rootPageNode , _ -> val classlikes = rootPageNode . children . single ( ) . children assertEquals ( , classlikes . size ) val javaLinker = classlikes . single { it . name == \"\" } ( javaLinker as ContentPage ) . run { assertNotNull ( content . dfs { it is ContentDRILink && it . address . classNames == \"\" } ) assertNotNull ( content . dfs { it is ContentDRILink && it . address . classNames == \"\" } ) } val kotlinLinker = classlikes . single { it . name == \"\" } ( kotlinLinker as ContentPage ) . run { assertNotNull ( content . dfs { it is ContentDRILink && it . address . classNames == \"\" } ) assertNotNull ( content . dfs { it is ContentDRILink && it . address . classNames == \"\" } ) } Jsoup . parse ( writerPlugin . writer . contents . getValue ( \"\" ) ) . select ( \"\" ) . assertOnlyOneElement ( ) Jsoup . parse ( writerPlugin . writer . contents . getValue ( \"\" ) ) . select ( \"\" ) . assertOnlyOneElement ( ) Jsoup . parse ( writerPlugin . writer . contents . getValue ( \"\" ) ) . select ( \"\" ) . assertOnlyOneElement ( ) Jsoup . parse ( writerPlugin . writer . contents . getValue ( \"\" ) ) . select ( \"\" ) . assertOnlyOneElement ( ) } } }","docstring":""} {"signature":"private fun < T > List < T > . assertOnlyOneElement ( )","body":"{ if ( isEmpty ( ) || size > ) { throw AssertionError ( \"\" ) } }","docstring":""} {"signature":"fun test ( )","body":"{ val outerBuildee = build outerBuild @ { class LocalClass { fun localClassMember ( ) { val innerBuildee = build innerBuild @ { this@outerBuild . setTypeVariable ( TargetType ( ) ) this@innerBuild . setTypeVariable ( TargetType ( ) ) } checkExactType < Buildee < TargetType > > ( innerBuildee ) } } } checkExactType < Buildee < TargetType > > ( outerBuildee ) }","docstring":""} {"signature":"fun setTypeVariable ( value : TV )","body":"{ storage = value }","docstring":""} {"signature":"fun < PTV > build ( instructions : Buildee < PTV > . ( ) -> Unit ) : Buildee < PTV >","body":"{ return Buildee < PTV > ( ) . apply ( instructions ) }","docstring":""} {"signature":"fun < T : Any > create ( x : T ) : Derived < T >","body":"= Derived ( x )","docstring":""} {"signature":"fun Int . foo ( a : Int = , b : Int = , c : Int = , d : Int = , e : Int = , f : Int = , g : Int = , h : Int = , i : Int = , j : Int = , k : Int = , l : Int = , m : Int = , n : Int = , o : Int = , p : Int = , q : Int = , r : Int = , s : Int = , t : Int = , u : Int = , v : Int = , w : Int = , x : Int = , y : Int = , z : Int = , aa : Int = , bb : Int = , cc : Int = , dd : Int = , ee : Int = , ff : Int = ) : String","body":"{ return \"\" }","docstring":""} {"signature":"fun String . bar ( a : Int = , b : Int = , c : Int = , d : Int = , e : Int = , f : Int = , g : Int = , h : Int = , i : Int = , j : Int = , k : Int = , l : Int = , m : Int = , n : Int = , o : Int = , p : Int = , q : Int = , r : Int = , s : Int = , t : Int = , u : Int = , v : Int = , w : Int = , x : Int = , y : Int = , z : Int = , aa : Int = , bb : Int = , cc : Int = , dd : Int = , ee : Int = , ff : Int = , gg : Int = , hh : Int = , ii : Int = , jj : Int = , kk : Int = , ll : Int = , mm : Int = , nn : Int = ) : String","body":"{ return \"\" + \"\" }","docstring":""} {"signature":"fun Char . baz ( a : Int = , b : Int = , c : Int = , d : Int = , e : Int = , f : Int = , g : Int = , h : Int = , i : Int = , j : Int = , k : Int = , l : Int = , m : Int = , n : Int = , o : Int = , p : Int = , q : Int = , r : Int = , s : Int = , t : Int = , u : Int = , v : Int = , w : Int = , x : Int = , y : Int = , z : Int = , aa : Int = , bb : Int = , cc : Int = , dd : Int = , ee : Int = , ff : Int = , gg : Int = , hh : Int = , ii : Int = , jj : Int = , kk : Int = , ll : Int = , mm : Int = , nn : Int = , oo : Int = , pp : Int = , qq : Int = , rr : Int = , ss : Int = , tt : Int = , uu : Int = , vv : Int = , ww : Int = , xx : Int = , yy : Int = , zz : Int = , aaa : Int = , bbb : Int = , ccc : Int = , ddd : Int = , eee : Int = , fff : Int = , ggg : Int = , hhh : Int = , iii : Int = , jjj : Int = , kkk : Int = , lll : Int = , mmm : Int = , nnn : Int = , ooo : Int = , ppp : Int = , qqq : Int = , rrr : Int = ) : String","body":"{ return \"\" + \"\" + \"\" }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val test1 = . foo ( , e = , f = , w = , aa = , ff = ) val test2 = . foo ( ) val test3 = . foo ( , , , , , , , , , , , , , , , , q = , r = , s = , t = , u = , v = , w = , x = , y = , z = , aa = , bb = , cc = , dd = , ee = , ff = ) if ( test1 != \"\" ) { return \"\" } if ( test2 != \"\" ) { return \"\" } if ( test3 != \"\" ) { return \"\" } val test4 = \"\" . bar ( , , h = , l = , q = , u = , aa = , ff = , jj = , mm = ) val test5 = \"\" . bar ( ) val test6 = \"\" . bar ( , , , , , , , , , , , , , , , , , , , , u = , v = , w = , x = , y = , z = , aa = , bb = , cc = , dd = , ee = , ff = , gg = , hh = , ii = , jj = , kk = , ll = , mm = , nn = ) if ( test4 != \"\" ) { return \"\" } if ( test5 != \"\" ) { return \"\" } if ( test6 != \"\" ) { return \"\" } val test7 = '' . baz ( , f = , w = , aa = , nn = , qq = , ww = , aaa = , iii = , nnn = , rrr = ) val test8 = '' . baz ( ) val test9 = '' . baz ( , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , jj = , kk = , ll = , mm = , nn = , oo = , pp = , qq = , rr = , ss = , tt = , uu = , vv = , ww = , xx = , yy = , zz = , aaa = , bbb = , ccc = , ddd = , eee = , fff = , ggg = , hhh = , iii = , jjj = , kkk = , lll = , mmm = , nnn = , ooo = , ppp = , qqq = , rrr = ) if ( test7 != \"\" + \"\" ) { return \"\" } if ( test8 != \"\" + \"\" ) { return \"\" } if ( test9 != \"\" + \"\" ) { return \"\" } return \"\" }","docstring":""} {"signature":"actual fun Modifier . notchPadding ( ) : Modifier","body":"= Modifier . padding ( top = . dp )","docstring":""} {"signature":"fun < K , T > foo ( x : ( K ) -> T ) : Pair < K , T >","body":"= ( as K ) to ( as T )","docstring":""} {"signature":"fun box ( ) : String","body":"{ val x = foo < Int , _ > { it . toFloat ( ) } return \"\" }","docstring":""} {"signature":"override fun check ( declaration : FirClass , context : CheckerContext , reporter : DiagnosticReporter )","body":"{ val session = context . session fun checkCanGenerateFunctionImp ( setter : FirPropertyAccessor ) { if ( setter . valueParameters . size > ) reporter . reportOn ( setter . source , FirNativeErrors . TWO_OR_LESS_PARAMETERS_ARE_SUPPORTED_HERE , context ) } fun checkCanGenerateOutletSetterImp ( property : FirProperty ) { if ( ! property . isVar ) { reporter . reportOn ( property . source , FirNativeErrors . PROPERTY_MUST_BE_VAR , objCOutletClassId . asSingleFqName ( ) , context ) return } property . receiverParameter ? . let { reporter . reportOn ( it . source , FirNativeErrors . MUST_NOT_HAVE_EXTENSION_RECEIVER , \"\" , context ) } val type = property . returnTypeRef if ( ! type . isObjCObjectType ( session ) ) reporter . reportOn ( property . returnTypeRef . source , FirNativeErrors . MUST_BE_OBJC_OBJECT_TYPE , \"\" , type . coneType , context ) checkCanGenerateFunctionImp ( property . setter ! ! ) } fun checkKotlinObjCClass ( firClass : FirClass ) { for ( decl in firClass . declarations ) { if ( decl is FirProperty && decl . annotations . hasAnnotation ( objCOutletClassId , session ) ) checkCanGenerateOutletSetterImp ( decl ) } } if ( ! declaration . isExpect && declaration . symbol . isKotlinObjCClass ( context . session ) ) { checkKotlinObjCClass ( declaration ) } }","docstring":""} {"signature":"fun bar ( )","body":"{ super . hash ( ) }","docstring":""} {"signature":"@ OptIn ( DokkaPluginApiPreview :: class ) override fun pluginApiPreviewAcknowledgement ( ) : PluginApiPreviewAcknowledgement","body":"= PluginApiPreviewAcknowledgement","docstring":""} {"signature":"override fun toString ( ) : String","body":"= sourceDescription","docstring":""} {"signature":"suspend fun massiveRun ( action : suspend ( ) -> Unit )","body":"{ val n = val k = val time = measureTimeMillis { coroutineScope { repeat ( n ) { launch { repeat ( k ) { action ( ) } } } } } println ( \"\" ) }","docstring":""} {"signature":"fun main ( )","body":"= runBlocking { withContext ( Dispatchers . Default ) { massiveRun { counter . incrementAndGet ( ) } } println ( \"\" ) }","docstring":""} {"signature":"abstract fun < T > foo ( list : List < T > ) where T : Number , T : Comparable < T >","body":"abstract fun < T > foo ( list : List < T > ) where T : Number , T : Comparable < T >","docstring":""} {"signature":"override fun < T > foo ( list : List < T > ) where T : Number , T : Comparable < T >","body":"{ }","docstring":""} {"signature":"private fun FirBasedSymbol < * > . isCollectable ( ) : Boolean","body":"{ if ( this is FirCallableSymbol < * > ) { if ( resolvedContextReceivers . any { it . typeRef . coneType . hasError ( ) } ) return false if ( typeParameterSymbols . any { it . toConeType ( ) . hasError ( ) } ) return false if ( receiverParameter ? . typeRef ? . coneType ? . hasError ( ) == true ) return false if ( this is FirFunctionSymbol < * > && valueParameterSymbols . any { it . resolvedReturnType . hasError ( ) } ) return false @ OptIn ( SymbolInternals :: class ) if ( fir . isHiddenToOvercomeSignatureClash == true ) return false } return when ( this ) { is FirNamedFunctionSymbol -> isCollectableAccordingToSource && name != SpecialNames . NO_NAME_PROVIDED is FirRegularClassSymbol -> name != SpecialNames . NO_NAME_PROVIDED is FirPropertySymbol -> source ? . kind !is KtFakeSourceElementKind . EnumGeneratedDeclaration is FirFieldSymbol -> source ? . kind != KtFakeSourceElementKind . ClassDelegationField else -> true } }","docstring":""} {"signature":"internal fun isExpectAndNonExpect ( first : FirBasedSymbol < * > , second : FirBasedSymbol < * > ) : Boolean","body":"{ val firstIsExpect = first . resolvedStatus ? . isExpect == true val secondIsExpect = second . resolvedStatus ? . isExpect == true return firstIsExpect xor secondIsExpect }","docstring":""} {"signature":"private fun groupTopLevelByName ( declarations : List < FirDeclaration > , context : CheckerContext ) : Map < Name , DeclarationBuckets >","body":"{ val groups = mutableMapOf < Name , DeclarationBuckets > ( ) for ( declaration in declarations ) { if ( ! declaration . symbol . isCollectable ( ) ) continue when ( declaration ) { is FirSimpleFunction -> groups . getOrPut ( declaration . name , :: DeclarationBuckets ) . simpleFunctions += declaration . symbol to FirRedeclarationPresenter . represent ( declaration . symbol ) is FirProperty -> { val group = groups . getOrPut ( declaration . name , :: DeclarationBuckets ) val representation = FirRedeclarationPresenter . represent ( declaration . symbol ) if ( declaration . receiverParameter != null ) { group . extensionProperties += declaration . symbol to representation } else { group . properties += declaration . symbol to representation } } is FirClassLikeDeclaration -> { val representation = FirRedeclarationPresenter . represent ( declaration . symbol ) ? : continue val group = groups . getOrPut ( declaration . nameOrSpecialName , :: DeclarationBuckets ) group . classLikes += declaration . symbol to representation declaration . symbol . expandedClassWithConstructorsScope ( context ) ? . let { ( expandedClass , scopeWithConstructors ) -> if ( expandedClass . classKind == ClassKind . OBJECT ) { return@let } scopeWithConstructors . processDeclaredConstructors { group . constructors += it to FirRedeclarationPresenter . represent ( it , declaration . symbol ) } } } else -> { } } } return groups }","docstring":""} {"signature":"fun FirDeclarationCollector < FirBasedSymbol < * > > . collectClassMembers ( klass : FirRegularClassSymbol )","body":"{ val otherDeclarations = mutableMapOf < String , MutableSet < FirBasedSymbol < * > > > ( ) val functionDeclarations = mutableMapOf < String , MutableSet < FirFunctionSymbol < * > > > ( ) val declaredMemberScope = klass . declaredMemberScope ( context ) val unsubstitutedScope = klass . unsubstitutedScope ( context ) declaredMemberScope . processAllFunctions { declaredFunction -> if ( ! declaredFunction . isCollectable ( ) ) { return@processAllFunctions } collect ( declaredFunction , FirRedeclarationPresenter . represent ( declaredFunction ) , functionDeclarations ) unsubstitutedScope . processFunctionsByName ( declaredFunction . name ) { anotherFunction -> if ( anotherFunction != declaredFunction && anotherFunction . isCollectable ( ) && anotherFunction . isVisibleInClass ( klass ) ) { collect ( anotherFunction , FirRedeclarationPresenter . represent ( anotherFunction ) , functionDeclarations ) } } } if ( context . isTopLevel ) { unsubstitutedScope . processDeclaredConstructors { if ( it . isCollectable ( ) && it . isVisibleInClass ( klass ) ) { collect ( it , FirRedeclarationPresenter . represent ( it , klass ) , functionDeclarations ) } } } declaredMemberScope . processAllProperties { declaredProperty -> if ( ! declaredProperty . isCollectable ( ) ) { return@processAllProperties } collect ( declaredProperty , FirRedeclarationPresenter . represent ( declaredProperty ) , otherDeclarations ) unsubstitutedScope . processPropertiesByName ( declaredProperty . name ) { anotherProperty -> if ( anotherProperty != declaredProperty && anotherProperty . isCollectable ( ) && anotherProperty . isVisibleInClass ( klass ) ) { collect ( anotherProperty , FirRedeclarationPresenter . represent ( anotherProperty ) , otherDeclarations ) } } } fun processClassifier ( it : FirClassifierSymbol < * > ) { when { ! it . isCollectable ( ) || ! it . isVisibleInClass ( klass ) -> return it is FirRegularClassSymbol -> collect ( it , FirRedeclarationPresenter . represent ( it ) , otherDeclarations ) it is FirTypeAliasSymbol -> collect ( it , FirRedeclarationPresenter . represent ( it ) , otherDeclarations ) else -> { } } if ( it !is FirClassLikeSymbol < * > ) { return } it . expandedClassWithConstructorsScope ( context ) ? . let { ( expandedClass , scopeWithConstructors ) -> if ( expandedClass . classKind == ClassKind . OBJECT ) { return@let } scopeWithConstructors . processDeclaredConstructors { constructor -> collect ( constructor , FirRedeclarationPresenter . represent ( constructor , it ) , functionDeclarations ) } } } for ( declaredClassifier in klass . declarationSymbols ) { if ( declaredClassifier is FirClassifierSymbol < * > ) { processClassifier ( declaredClassifier ) unsubstitutedScope . processClassifiersByName ( declaredClassifier . name ) { anotherClassifier -> if ( anotherClassifier != declaredClassifier ) { processClassifier ( anotherClassifier ) } } } } }","docstring":""} {"signature":"fun collectConflictingLocalFunctionsFrom ( block : FirBlock , context : CheckerContext ) : Map < FirFunctionSymbol < * > , Set < FirBasedSymbol < * > > >","body":"{ val collectables = block . statements . filter { ( it is FirSimpleFunction || it is FirRegularClass ) && ( it as FirDeclaration ) . symbol . isCollectable ( ) } if ( collectables . isEmpty ( ) ) return emptyMap ( ) val inspector = FirDeclarationCollector < FirFunctionSymbol < * > > ( context ) val functionDeclarations = mutableMapOf < String , MutableSet < FirFunctionSymbol < * > > > ( ) for ( collectable in collectables ) { when ( collectable ) { is FirSimpleFunction -> inspector . collect ( collectable . symbol , FirRedeclarationPresenter . represent ( collectable . symbol ) , functionDeclarations ) is FirClassLikeDeclaration -> { collectable . symbol . expandedClassWithConstructorsScope ( context ) ? . let { ( _ , scopeWithConstructors ) -> scopeWithConstructors . processDeclaredConstructors { inspector . collect ( it , FirRedeclarationPresenter . represent ( it , collectable . symbol ) , functionDeclarations ) } } } else -> { } } } return inspector . declarationConflictingSymbols }","docstring":""} {"signature":"private fun < D : FirBasedSymbol < * > , S : D > FirDeclarationCollector < D > . collect ( declaration : S , representation : String , map : MutableMap < String , MutableSet < S > > , )","body":"{ map . getOrPut ( representation , :: mutableSetOf ) . also { if ( ! it . add ( declaration ) ) { return@also } val conflicts = SmartSet . create < FirBasedSymbol < * > > ( ) for ( otherDeclaration in it ) { if ( otherDeclaration != declaration && ! areNonConflictingCallables ( declaration , otherDeclaration ) ) { conflicts . add ( otherDeclaration ) declarationConflictingSymbols . getOrPut ( otherDeclaration ) { SmartSet . create ( ) } . add ( declaration ) } } declarationConflictingSymbols [ declaration ] = conflicts } }","docstring":""} {"signature":"@ Suppress ( \"\" ) fun FirDeclarationCollector < FirBasedSymbol < * > > . collectTopLevel ( file : FirFile , packageMemberScope : FirPackageMemberScope )","body":"{ for ( ( declarationName , group ) in groupTopLevelByName ( file . declarations , context ) ) { val groupHasClassLikesOrProperties = group . classLikes . isNotEmpty ( ) || group . properties . isNotEmpty ( ) val groupHasSimpleFunctions = group . simpleFunctions . isNotEmpty ( ) fun collect ( declarations : List < Pair < FirBasedSymbol < * > , String > > , conflictingSymbol : FirBasedSymbol < * > , conflictingPresentation : String ? = null , conflictingFile : FirFile ? = null , ) { for ( ( declaration , declarationPresentation ) in declarations ) { collectTopLevelConflict ( declaration , declarationPresentation , file , conflictingSymbol , conflictingPresentation , conflictingFile ) session . lookupTracker ? . recordNameLookup ( declarationName , file . packageFqName . asString ( ) , declaration . source , file . source ) } } fun collectFromClassifierSource ( conflictingSymbol : FirClassifierSymbol < * > , conflictingPresentation : String ? = null , conflictingFile : FirFile ? = null , ) { collect ( group . classLikes , conflictingSymbol , conflictingPresentation , conflictingFile ) collect ( group . properties , conflictingSymbol , conflictingPresentation , conflictingFile ) if ( groupHasSimpleFunctions ) { if ( conflictingSymbol !is FirClassLikeSymbol < * > ) { return } conflictingSymbol . expandedClassWithConstructorsScope ( context ) ? . let { ( expandedClass , scopeWithConstructors ) -> if ( expandedClass . classKind == ClassKind . OBJECT || expandedClass . classKind == ClassKind . ENUM_ENTRY ) { return } scopeWithConstructors . processDeclaredConstructors { constructor -> val ctorRepresentation = FirRedeclarationPresenter . represent ( constructor , conflictingSymbol ) collect ( group . simpleFunctions , conflictingSymbol = constructor , conflictingPresentation = ctorRepresentation ) } } } } if ( groupHasSimpleFunctions || group . constructors . isNotEmpty ( ) ) { packageMemberScope . processFunctionsByName ( declarationName ) { collect ( group . simpleFunctions , it ) collect ( group . constructors , it ) } } if ( groupHasClassLikesOrProperties || groupHasSimpleFunctions ) { packageMemberScope . processClassifiersByNameWithSubstitution ( declarationName ) { symbol , _ -> collectFromClassifierSource ( conflictingSymbol = symbol ) } session . nameConflictsTracker ? . let { it as? FirNameConflictsTracker } ? . redeclaredClassifiers ? . get ( ClassId ( file . packageFqName , declarationName ) ) ? . forEach { collectFromClassifierSource ( conflictingSymbol = it . classifier , conflictingFile = it . file ) } for ( ( classLike , representation ) in group . classLikes ) { collectFromClassifierSource ( classLike , conflictingPresentation = representation , conflictingFile = file ) } } if ( groupHasClassLikesOrProperties || group . extensionProperties . isNotEmpty ( ) ) { packageMemberScope . processPropertiesByName ( declarationName ) { collect ( group . classLikes , conflictingSymbol = it ) collect ( group . properties , conflictingSymbol = it ) collect ( group . extensionProperties , conflictingSymbol = it ) } } } }","docstring":"/**\n * To check top-level declarations for redeclarations, we check multiple sources (the packageMemberScope's properties, functions\n * and classifiers), redeclared classifiers from session.nameConflictsTracker and the file's declarations themselves.\n * To prevent inspecting the same source multiple times, we group the declarations in the file by name and subdivide them into\n * buckets (the properties of DeclarationGroup).\n *\n * Depending on the presence of declarations in the buckets, some checks can be omitted.\n * E.g., if there are no functions and no classes with constructors in the file, we don't need to inspect functions.\n *\n * #### Matrix of possible conflicts between \"sources\" and \"buckets\"\n *\n * | | simpleFunctions | constructors | classLikes | Properties | extensionProperties |\n * |-------------------------|-----------------|--------------|------------|------------|---------------------|\n * | functions | X | X | | | |\n * | classifiers | | | X | X | |\n * | constructors of classes | X | | | | |\n * | properties | | | X | X | X |\n */"} {"signature":"private fun FirClassLikeSymbol < * > . expandedClassWithConstructorsScope ( context : CheckerContext ) : Pair < FirRegularClassSymbol , FirScope > ?","body":"{ return when ( this ) { is FirRegularClassSymbol -> this to unsubstitutedScope ( context ) is FirTypeAliasSymbol -> { val expandedType = resolvedExpandedTypeRef . coneType as? ConeClassLikeType val expandedClass = expandedType ? . toRegularClassSymbol ( context . session ) val expandedTypeScope = expandedType ? . scope ( context . session , context . scopeSession , CallableCopyTypeCalculator . DoNothing , requiredMembersPhase = FirResolvePhase . STATUS , ) if ( expandedType != null && expandedClass != null && expandedTypeScope != null ) { val outerType = outerType ( expandedType , context . session ) { it . outerClassSymbol ( context ) } expandedClass to TypeAliasConstructorsSubstitutingScope ( this , expandedTypeScope , outerType ) } else { null } } else -> null } }","docstring":""} {"signature":"private fun shouldCheckForMultiplatformRedeclaration ( dependency : FirBasedSymbol < * > , dependent : FirBasedSymbol < * > ) : Boolean","body":"{ if ( dependency . moduleData !in dependent . moduleData . allDependsOnDependencies ) return false return ! isExpectAndNonExpect ( dependency , dependent ) }","docstring":""} {"signature":"private fun FirDeclarationCollector < FirBasedSymbol < * > > . collectTopLevelConflict ( declaration : FirBasedSymbol < * > , declarationPresentation : String , containingFile : FirFile , conflictingSymbol : FirBasedSymbol < * > , conflictingPresentation : String ? = null , conflictingFile : FirFile ? = null , )","body":"{ conflictingSymbol . lazyResolveToPhase ( FirResolvePhase . STATUS ) if ( conflictingSymbol == declaration ) return if ( declaration . moduleData != conflictingSymbol . moduleData && ! shouldCheckForMultiplatformRedeclaration ( declaration , conflictingSymbol ) ) return val actualConflictingPresentation = conflictingPresentation ? : FirRedeclarationPresenter . represent ( conflictingSymbol ) if ( actualConflictingPresentation != declarationPresentation ) return val actualConflictingFile = conflictingFile ? : when ( conflictingSymbol ) { is FirClassLikeSymbol < * > -> session . firProvider . getFirClassifierContainerFileIfAny ( conflictingSymbol ) is FirCallableSymbol < * > -> session . firProvider . getFirCallableContainerFile ( conflictingSymbol ) else -> null } if ( ! conflictingSymbol . isCollectable ( ) ) return if ( areCompatibleMainFunctions ( declaration , containingFile , conflictingSymbol , actualConflictingFile , session ) ) return @ OptIn ( SymbolInternals :: class ) val conflicting = conflictingSymbol . fir if ( conflicting is FirMemberDeclaration && ! session . visibilityChecker . isVisible ( conflicting , session , containingFile , emptyList ( ) , dispatchReceiver = null ) ) return if ( areNonConflictingCallables ( declaration , conflictingSymbol ) ) return declarationConflictingSymbols . getOrPut ( declaration ) { SmartSet . create ( ) } . add ( conflictingSymbol ) }","docstring":""} {"signature":"private fun FirNamedFunctionSymbol . representsMainFunctionAllowingConflictingOverloads ( session : FirSession ) : Boolean","body":"{ if ( name != StandardNames . MAIN || ! callableId . isTopLevel || ! hasMainFunctionStatus ) return false if ( receiverParameter != null || typeParameterSymbols . isNotEmpty ( ) ) return false if ( valueParameterSymbols . isEmpty ( ) ) return true val paramType = valueParameterSymbols . singleOrNull ( ) ? . resolvedReturnTypeRef ? . coneType ? . fullyExpandedType ( session ) ? : return false if ( ! paramType . isNonPrimitiveArray ) return false val typeArgument = paramType . typeArguments . singleOrNull ( ) as? ConeKotlinTypeProjection ? : return false if ( typeArgument !is ConeKotlinType && typeArgument !is ConeKotlinTypeProjectionOut ) return false return typeArgument . type . fullyExpandedType ( session ) . isString }","docstring":""} {"signature":"private fun areCompatibleMainFunctions ( declaration1 : FirBasedSymbol < * > , file1 : FirFile , declaration2 : FirBasedSymbol < * > , file2 : FirFile ? , session : FirSession , )","body":"= file1 != file2 && declaration1 is FirNamedFunctionSymbol && declaration2 is FirNamedFunctionSymbol && declaration1 . representsMainFunctionAllowingConflictingOverloads ( session ) && declaration2 . representsMainFunctionAllowingConflictingOverloads ( session )","docstring":""} {"signature":"private fun FirDeclarationCollector < * > . areNonConflictingCallables ( declaration : FirBasedSymbol < * > , conflicting : FirBasedSymbol < * > , ) : Boolean","body":"{ if ( isExpectAndNonExpect ( declaration , conflicting ) && declaration . moduleData != conflicting . moduleData ) return true val declarationIsLowPriority = hasLowPriorityAnnotation ( declaration . annotations ) val conflictingIsLowPriority = hasLowPriorityAnnotation ( conflicting . annotations ) if ( declarationIsLowPriority != conflictingIsLowPriority ) return true if ( declaration !is FirCallableSymbol < * > || conflicting !is FirCallableSymbol < * > ) return false val declarationIsFinal = declaration . isEffectivelyFinal ( session ) val conflictingIsFinal = conflicting . isEffectivelyFinal ( session ) if ( declarationIsFinal && conflictingIsFinal ) { val declarationIsHidden = declaration . isDeprecationLevelHidden ( session ) if ( declarationIsHidden ) return true val conflictingIsHidden = conflicting . isDeprecationLevelHidden ( session ) if ( conflictingIsHidden ) return true } return session . declarationOverloadabilityHelper . isOverloadable ( declaration , conflicting ) }","docstring":""} {"signature":"internal fun FirVariable . getDestructuredParameter ( ) : FirValueParameterSymbol ?","body":"{ val initializer = initializer if ( initializer !is FirComponentCall ) return null if ( initializer . source ? . kind !is KtFakeSourceElementKind . DesugaredComponentFunctionCall ) return null val receiver = initializer . dispatchReceiver ? : initializer . extensionReceiver ? : return null if ( receiver !is FirPropertyAccessExpression ) return null val calleeReference = receiver . calleeReference as? FirResolvedNamedReference ? : return null return calleeReference . resolvedSymbol as? FirValueParameterSymbol }","docstring":""} {"signature":"fun checkForLocalRedeclarations ( elements : List < FirElement > , context : CheckerContext , reporter : DiagnosticReporter )","body":"{ if ( elements . size <= ) return val multimap = ListMultimap < Name , FirBasedSymbol < * > > ( ) for ( element in elements ) { val name : Name ? val symbol : FirBasedSymbol < * > ? when ( element ) { is FirVariable -> { symbol = element . symbol name = element . name } is FirOuterClassTypeParameterRef -> { continue } is FirTypeParameterRef -> { symbol = element . symbol name = symbol . name } else -> { symbol = null name = null } } if ( name ? . isSpecial == false ) { multimap . put ( name , symbol ! ! ) } } for ( key in multimap . keys ) { val conflictingElements = multimap [ key ] if ( conflictingElements . size > ) { for ( conflictingElement in conflictingElements ) { reporter . reportOn ( conflictingElement . source , FirErrors . REDECLARATION , conflictingElements , context ) } } } }","docstring":"/** Checks for redeclarations of value and type parameters, and local variables. */"} {"signature":"@ After fun tearDown ( )","body":"{ emitPool . shutdown ( ) reqPool . shutdown ( ) emitPool . awaitTermination ( , TimeUnit . SECONDS ) reqPool . awaitTermination ( , TimeUnit . SECONDS ) }","docstring":""} {"signature":"@ Test fun testRequestStress ( )","body":"{ val expectedValue = AtomicLong ( ) val requestedTill = AtomicLong ( ) val callingOnNext = AtomicInteger ( ) val publisher = mtFlow ( ) . asPublisher ( ) var error = false publisher . subscribe ( object : Subscriber < Long > { private var demand = override fun onComplete ( ) { } override fun onSubscribe ( sub : Subscription ) { subscription = sub maybeRequestMore ( ) } private fun maybeRequestMore ( ) { if ( demand >= minDemand ) return val nextDemand = Random . nextLong ( minDemand + .. maxDemand ) val more = nextDemand - demand demand = nextDemand requestedTill . addAndGet ( more ) subscription . request ( more ) } override fun onNext ( value : Long ) { check ( callingOnNext . getAndIncrement ( ) == ) check ( value == expectedValue . get ( ) ) check ( value < requestedTill . get ( ) ) val nextExpected = value + expectedValue . set ( nextExpected ) reqPool . execute { demand -- maybeRequestMore ( ) } callingOnNext . decrementAndGet ( ) } override fun onError ( ex : Throwable ? ) { error = true error ( \"\" , ex ) } } ) var prevExpected = - for ( second in .. testDurationSec ) { if ( error ) break Thread . sleep ( ) val expected = expectedValue . get ( ) println ( \"\" ) check ( expected > prevExpected ) prevExpected = expected } if ( ! error ) { subscription . cancel ( ) runBlocking { ( subscription as AbstractCoroutine < * > ) . join ( ) } } }","docstring":""} {"signature":"private fun mtFlow ( ) : Flow < Long >","body":"= flow { while ( currentCoroutineContext ( ) . isActive ) { emit ( aWait ( ) ) } }","docstring":""} {"signature":"private suspend fun aWait ( ) : Long","body":"= suspendCancellableCoroutine { cont -> emitPool . execute ( Runnable { cont . resume ( nextValue . getAndIncrement ( ) ) } ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val a1 = A ( true ) if ( a1 . prop != ) return \"\" val a2 = A ( false ) if ( a2 . prop != ) return \"\" return \"\" }","docstring":""} {"signature":"fun packageMetadataParts ( fqName : String ) : Set < String >","body":"fun packageMetadataParts ( fqName : String ) : Set < String >","docstring":""} {"signature":"fun packageMetadata ( fqName : String , partName : String ) : ByteArray","body":"fun packageMetadata ( fqName : String , partName : String ) : ByteArray","docstring":""} {"signature":"fun irDeclaration ( index : Int , fileIndex : Int ) : ByteArray","body":"fun irDeclaration ( index : Int , fileIndex : Int ) : ByteArray","docstring":""} {"signature":"fun type ( index : Int , fileIndex : Int ) : ByteArray","body":"fun type ( index : Int , fileIndex : Int ) : ByteArray","docstring":""} {"signature":"fun signature ( index : Int , fileIndex : Int ) : ByteArray","body":"fun signature ( index : Int , fileIndex : Int ) : ByteArray","docstring":""} {"signature":"fun string ( index : Int , fileIndex : Int ) : ByteArray","body":"fun string ( index : Int , fileIndex : Int ) : ByteArray","docstring":""} {"signature":"fun body ( index : Int , fileIndex : Int ) : ByteArray","body":"fun body ( index : Int , fileIndex : Int ) : ByteArray","docstring":""} {"signature":"fun debugInfo ( index : Int , fileIndex : Int ) : ByteArray ?","body":"fun debugInfo ( index : Int , fileIndex : Int ) : ByteArray ?","docstring":""} {"signature":"fun file ( index : Int ) : ByteArray","body":"fun file ( index : Int ) : ByteArray","docstring":""} {"signature":"fun fileCount ( ) : Int","body":"fun fileCount ( ) : Int","docstring":""} {"signature":"fun types ( fileIndex : Int ) : ByteArray","body":"fun types ( fileIndex : Int ) : ByteArray","docstring":""} {"signature":"fun signatures ( fileIndex : Int ) : ByteArray","body":"fun signatures ( fileIndex : Int ) : ByteArray","docstring":""} {"signature":"fun strings ( fileIndex : Int ) : ByteArray","body":"fun strings ( fileIndex : Int ) : ByteArray","docstring":""} {"signature":"fun declarations ( fileIndex : Int ) : ByteArray","body":"fun declarations ( fileIndex : Int ) : ByteArray","docstring":""} {"signature":"fun bodies ( fileIndex : Int ) : ByteArray","body":"fun bodies ( fileIndex : Int ) : ByteArray","docstring":""} {"signature":"fun BaseKotlinLibrary . unresolvedDependencies ( lenient : Boolean = false ) : List < UnresolvedLibrary >","body":"= manifestProperties . propertyList ( KLIB_PROPERTY_DEPENDS , escapeInQuotes = true ) . map { UnresolvedLibrary ( it , manifestProperties . getProperty ( \"\" ) , lenient = lenient ) }","docstring":""} {"signature":"fun box ( )","body":"= C ( ) . map . entries . first ( ) . let { it . key + it . value }","docstring":""} {"signature":"fun checkBooleanVararg ( vararg xs : Boolean )","body":"{ assertTrue ( xs is BooleanArray ) }","docstring":""} {"signature":"fun checkLongVararg ( vararg xs : Long )","body":"{ assertTrue ( xs is LongArray ) }","docstring":""} {"signature":"fun checkCharVararg ( vararg xs : Char )","body":"{ assertTrue ( xs is CharArray ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ checkBooleanVararg ( ) checkBooleanVararg ( true ) checkBooleanVararg ( true , false ) checkBooleanVararg ( * booleanArrayOf ( ) ) checkBooleanVararg ( * booleanArrayOf ( true , false ) ) checkBooleanVararg ( true , * booleanArrayOf ( false ) , false , * booleanArrayOf ( ) ) checkLongVararg ( ) checkLongVararg ( ) checkLongVararg ( , ) checkLongVararg ( * longArrayOf ( ) ) checkLongVararg ( * longArrayOf ( , ) ) checkLongVararg ( * longArrayOf ( , ) , , , ) checkCharVararg ( ) checkCharVararg ( '' ) checkCharVararg ( '' , '' ) checkCharVararg ( * charArrayOf ( ) ) checkCharVararg ( * charArrayOf ( '' , '' ) ) checkCharVararg ( * charArrayOf ( ) , * charArrayOf ( ) , * charArrayOf ( ) ) checkCharVararg ( '' , * charArrayOf ( ) , '' , * charArrayOf ( ) , '' , * charArrayOf ( ) , '' ) return \"\" }","docstring":""} {"signature":"fun lambdaConsumer ( fn : ( A ) -> Unit )","body":"{ }","docstring":""} {"signature":"fun extensionConsumer ( fn : A . ( ) -> Unit )","body":"{ }","docstring":""} {"signature":"fun testLambdaParameterType ( )","body":"{ lambdaConsumer { it } extensionConsumer { this } }","docstring":""} {"signature":"operator fun getValue ( t : Any ? , p : KProperty < * > ) : T","body":"= inner","docstring":""} {"signature":"operator fun setValue ( t : Any ? , p : KProperty < * > , i : T )","body":"{ inner = i }","docstring":""} {"signature":"fun box ( ) : String","body":"{ if ( Foo . A . f != ) return \"\" if ( Foo . B . f != ) return \"\" Foo . B = Foo ( ) if ( Foo . B . f != ) return \"\" if ( FooTrait . A . f != ) return \"\" if ( FooTrait . B . f != ) return \"\" FooTrait . B = Foo ( ) if ( FooTrait . B . f != ) return \"\" return \"\" }","docstring":""} {"signature":"fun NameEntity . isTsStdlibPrefixed ( ) : Boolean","body":"{ return hasPrefix ( TSLIBROOT ) }","docstring":""} {"signature":"override fun < R , D > accept ( visitor : FirVisitor < R , D > , data : D ) : R","body":"= visitor . visitConstructor ( this , data )","docstring":""} {"signature":"@ Suppress ( \"\" ) override fun < E : FirElement , D > transform ( transformer : FirTransformer < D > , data : D ) : E","body":"= transformer . transformConstructor ( this , data ) as E","docstring":""} {"signature":"abstract override fun replaceStatus ( newStatus : FirDeclarationStatus )","body":"abstract override fun replaceStatus ( newStatus : FirDeclarationStatus )","docstring":""} {"signature":"abstract override fun replaceReturnTypeRef ( newReturnTypeRef : FirTypeRef )","body":"abstract override fun replaceReturnTypeRef ( newReturnTypeRef : FirTypeRef )","docstring":""} {"signature":"abstract override fun replaceReceiverParameter ( newReceiverParameter : FirReceiverParameter ? )","body":"abstract override fun replaceReceiverParameter ( newReceiverParameter : FirReceiverParameter ? )","docstring":""} {"signature":"abstract override fun replaceDeprecationsProvider ( newDeprecationsProvider : DeprecationsProvider )","body":"abstract override fun replaceDeprecationsProvider ( newDeprecationsProvider : DeprecationsProvider )","docstring":""} {"signature":"abstract override fun replaceContextReceivers ( newContextReceivers : List < FirContextReceiver > )","body":"abstract override fun replaceContextReceivers ( newContextReceivers : List < FirContextReceiver > )","docstring":""} {"signature":"abstract override fun replaceControlFlowGraphReference ( newControlFlowGraphReference : FirControlFlowGraphReference ? )","body":"abstract override fun replaceControlFlowGraphReference ( newControlFlowGraphReference : FirControlFlowGraphReference ? )","docstring":""} {"signature":"abstract override fun replaceValueParameters ( newValueParameters : List < FirValueParameter > )","body":"abstract override fun replaceValueParameters ( newValueParameters : List < FirValueParameter > )","docstring":""} {"signature":"abstract override fun replaceContractDescription ( newContractDescription : FirContractDescription ? )","body":"abstract override fun replaceContractDescription ( newContractDescription : FirContractDescription ? )","docstring":""} {"signature":"abstract override fun replaceAnnotations ( newAnnotations : List < FirAnnotation > )","body":"abstract override fun replaceAnnotations ( newAnnotations : List < FirAnnotation > )","docstring":""} {"signature":"abstract fun replaceDelegatedConstructor ( newDelegatedConstructor : FirDelegatedConstructorCall ? )","body":"abstract fun replaceDelegatedConstructor ( newDelegatedConstructor : FirDelegatedConstructorCall ? )","docstring":""} {"signature":"abstract override fun replaceBody ( newBody : FirBlock ? )","body":"abstract override fun replaceBody ( newBody : FirBlock ? )","docstring":""} {"signature":"abstract override fun < D > transformTypeParameters ( transformer : FirTransformer < D > , data : D ) : FirConstructor","body":"abstract override fun < D > transformTypeParameters ( transformer : FirTransformer < D > , data : D ) : FirConstructor","docstring":""} {"signature":"abstract override fun < D > transformStatus ( transformer : FirTransformer < D > , data : D ) : FirConstructor","body":"abstract override fun < D > transformStatus ( transformer : FirTransformer < D > , data : D ) : FirConstructor","docstring":""} {"signature":"abstract override fun < D > transformReturnTypeRef ( transformer : FirTransformer < D > , data : D ) : FirConstructor","body":"abstract override fun < D > transformReturnTypeRef ( transformer : FirTransformer < D > , data : D ) : FirConstructor","docstring":""} {"signature":"abstract override fun < D > transformReceiverParameter ( transformer : FirTransformer < D > , data : D ) : FirConstructor","body":"abstract override fun < D > transformReceiverParameter ( transformer : FirTransformer < D > , data : D ) : FirConstructor","docstring":""} {"signature":"abstract override fun < D > transformValueParameters ( transformer : FirTransformer < D > , data : D ) : FirConstructor","body":"abstract override fun < D > transformValueParameters ( transformer : FirTransformer < D > , data : D ) : FirConstructor","docstring":""} {"signature":"abstract override fun < D > transformContractDescription ( transformer : FirTransformer < D > , data : D ) : FirConstructor","body":"abstract override fun < D > transformContractDescription ( transformer : FirTransformer < D > , data : D ) : FirConstructor","docstring":""} {"signature":"abstract override fun < D > transformAnnotations ( transformer : FirTransformer < D > , data : D ) : FirConstructor","body":"abstract override fun < D > transformAnnotations ( transformer : FirTransformer < D > , data : D ) : FirConstructor","docstring":""} {"signature":"abstract fun < D > transformDelegatedConstructor ( transformer : FirTransformer < D > , data : D ) : FirConstructor","body":"abstract fun < D > transformDelegatedConstructor ( transformer : FirTransformer < D > , data : D ) : FirConstructor","docstring":""} {"signature":"abstract override fun < D > transformBody ( transformer : FirTransformer < D > , data : D ) : FirConstructor","body":"abstract override fun < D > transformBody ( transformer : FirTransformer < D > , data : D ) : FirConstructor","docstring":""} {"signature":"fun A . f ( s : String )","body":"= value + s","docstring":""} {"signature":"fun bar ( s : String )","body":"= ( A :: f ) ( this , s )","docstring":""} {"signature":"fun A . baz ( s : String )","body":"= ( A :: f ) ( this , s )","docstring":""} {"signature":"fun box ( ) : String","body":"{ val a = A ( \"\" ) assertEquals ( \"\" , a . bar ( \"\" ) ) assertEquals ( \"\" , a . baz ( \"\" ) ) return \"\" }","docstring":""} {"signature":"fun runSuspend ( c : suspend ( ) -> Unit )","body":"{ c . startCoroutine ( EmptyContinuation ) }","docstring":""} {"signature":"fun foo ( )","body":"{ test = \"\" }","docstring":""} {"signature":"inline suspend fun invokeSuspend ( fn : suspend ( ) -> Unit )","body":"{ fn ( ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ runSuspend { invokeSuspend ( :: foo ) } return test }","docstring":""} {"signature":"@ ExperimentalStdlibApi private fun KType . computeJavaType ( forceWrapper : Boolean = false ) : Type","body":"{ when ( val classifier = classifier ) { is KTypeParameter -> return TypeVariableImpl ( classifier ) is KClass < * > -> { val jClass = if ( forceWrapper ) classifier . javaObjectType else classifier . java val arguments = arguments if ( arguments . isEmpty ( ) ) return jClass if ( jClass . isArray ) { if ( jClass . componentType . isPrimitive ) return jClass val ( variance , elementType ) = arguments . singleOrNull ( ) ? : throw IllegalArgumentException ( \"\" ) return when ( variance ) { null , KVariance . IN -> jClass KVariance . INVARIANT , KVariance . OUT -> { val javaElementType = elementType ! ! . computeJavaType ( ) if ( javaElementType is Class < * > ) jClass else GenericArrayTypeImpl ( javaElementType ) } } } return createPossiblyInnerType ( jClass , arguments ) } else -> throw UnsupportedOperationException ( \"\" ) } }","docstring":""} {"signature":"@ ExperimentalStdlibApi private fun createPossiblyInnerType ( jClass : Class < * > , arguments : List < KTypeProjection > ) : Type","body":"{ val ownerClass = jClass . declaringClass ? : return ParameterizedTypeImpl ( jClass , null , arguments . map ( KTypeProjection :: javaType ) ) if ( Modifier . isStatic ( jClass . modifiers ) ) return ParameterizedTypeImpl ( jClass , ownerClass , arguments . map ( KTypeProjection :: javaType ) ) val n = jClass . typeParameters . size return ParameterizedTypeImpl ( jClass , createPossiblyInnerType ( ownerClass , arguments . subList ( n , arguments . size ) ) , arguments . subList ( , n ) . map ( KTypeProjection :: javaType ) ) }","docstring":""} {"signature":"@ Suppress ( \"\" ) fun getTypeName ( ) : String","body":"@ Suppress ( \"\" ) fun getTypeName ( ) : String","docstring":""} {"signature":"override fun getName ( ) : String","body":"= typeParameter . name","docstring":""} {"signature":"override fun getGenericDeclaration ( ) : GenericDeclaration","body":"= TODO ( \"\" )","docstring":""} {"signature":"override fun getBounds ( ) : Array < Type >","body":"= typeParameter . upperBounds . map { it . computeJavaType ( forceWrapper = true ) } . toTypedArray ( )","docstring":""} {"signature":"override fun getTypeName ( ) : String","body":"= name","docstring":""} {"signature":"override fun equals ( other : Any ? ) : Boolean","body":"= other is TypeVariable < * > && name == other . name && genericDeclaration == other . genericDeclaration","docstring":""} {"signature":"override fun hashCode ( ) : Int","body":"= name . hashCode ( ) xor genericDeclaration . hashCode ( )","docstring":""} {"signature":"override fun toString ( ) : String","body":"= getTypeName ( )","docstring":""} {"signature":"@ Suppress ( \"\" , \"\" ) fun < T : Annotation > getAnnotation ( annotationClass : Class < T > ) : T ?","body":"= null","docstring":""} {"signature":"@ Suppress ( \"\" ) fun getAnnotations ( ) : Array < Annotation >","body":"= emptyArray ( )","docstring":""} {"signature":"@ Suppress ( \"\" ) fun getDeclaredAnnotations ( ) : Array < Annotation >","body":"= emptyArray ( )","docstring":""} {"signature":"override fun getGenericComponentType ( ) : Type","body":"= elementType","docstring":""} {"signature":"override fun getTypeName ( ) : String","body":"= \"\"","docstring":""} {"signature":"override fun equals ( other : Any ? ) : Boolean","body":"= other is GenericArrayType && genericComponentType == other . genericComponentType","docstring":""} {"signature":"override fun hashCode ( ) : Int","body":"= genericComponentType . hashCode ( )","docstring":""} {"signature":"override fun toString ( ) : String","body":"= getTypeName ( )","docstring":""} {"signature":"override fun getUpperBounds ( ) : Array < Type >","body":"= arrayOf ( upperBound ? : Any :: class . java )","docstring":""} {"signature":"override fun getLowerBounds ( ) : Array < Type >","body":"= if ( lowerBound == null ) emptyArray ( ) else arrayOf ( lowerBound )","docstring":""} {"signature":"override fun getTypeName ( ) : String","body":"= when { lowerBound != null -> \"\" upperBound != null && upperBound != Any :: class . java -> \"\" else -> \"\" }","docstring":""} {"signature":"override fun equals ( other : Any ? ) : Boolean","body":"= other is WildcardType && upperBounds . contentEquals ( other . upperBounds ) && lowerBounds . contentEquals ( other . lowerBounds )","docstring":""} {"signature":"override fun hashCode ( ) : Int","body":"= upperBounds . contentHashCode ( ) xor lowerBounds . contentHashCode ( )","docstring":""} {"signature":"override fun toString ( ) : String","body":"= getTypeName ( )","docstring":""} {"signature":"override fun getRawType ( ) : Type","body":"= rawType","docstring":""} {"signature":"override fun getOwnerType ( ) : Type ?","body":"= ownerType","docstring":""} {"signature":"override fun getActualTypeArguments ( ) : Array < Type >","body":"= typeArguments","docstring":""} {"signature":"override fun getTypeName ( ) : String","body":"= buildString { if ( ownerType != null ) { append ( typeToString ( ownerType ) ) append ( \"\" ) append ( rawType . simpleName ) } else { append ( typeToString ( rawType ) ) } if ( typeArguments . isNotEmpty ( ) ) { typeArguments . joinTo ( this , prefix = \"\" , postfix = \">\" , transform = :: typeToString ) } }","docstring":""} {"signature":"override fun equals ( other : Any ? ) : Boolean","body":"= other is ParameterizedType && rawType == other . rawType && ownerType == other . ownerType && actualTypeArguments . contentEquals ( other . actualTypeArguments )","docstring":""} {"signature":"override fun hashCode ( ) : Int","body":"= rawType . hashCode ( ) xor ownerType . hashCode ( ) xor actualTypeArguments . contentHashCode ( )","docstring":""} {"signature":"override fun toString ( ) : String","body":"= getTypeName ( )","docstring":""} {"signature":"private fun typeToString ( type : Type ) : String","body":"= if ( type is Class < * > ) { if ( type . isArray ) { val unwrap = generateSequence ( type , Class < * > :: getComponentType ) unwrap . last ( ) . name + \"\" . repeat ( unwrap . count ( ) ) } else type . name } else type . toString ( )","docstring":""} {"signature":"override fun visitMethod ( access : Int , name : String ? , desc : String ? , signature : String ? , exceptions : Array < out String > ? ) : MethodVisitor ?","body":"{ return if ( access . isAbi ( ) ) { super . visitMethod ( access , name , desc , signature , exceptions ) } else { null } }","docstring":""} {"signature":"override fun visitAnnotation ( desc : String ? , visible : Boolean ) : AnnotationVisitor ?","body":"{ return if ( desc != null && desc != metadataDescriptor ) { super . visitAnnotation ( desc , visible ) } else { null } }","docstring":""} {"signature":"override fun visitField ( access : Int , name : String ? , desc : String ? , signature : String ? , value : Any ? ) : FieldVisitor ?","body":"{ return if ( access . isAbi ( ) ) { super . visitField ( access , name , desc , signature , value ) } else { null } }","docstring":""} {"signature":"override fun visitInnerClass ( name : String ? , outerName : String ? , innerName : String ? , access : Int )","body":"{ if ( access . isAbi ( ) && outerName != null && innerName != null ) { super . visitInnerClass ( name , outerName , innerName , access ) } }","docstring":""} {"signature":"fun getBytes ( ) : ByteArray","body":"= writer . toByteArray ( )","docstring":""} {"signature":"private fun Int . isAbi ( )","body":"= ( this and Opcodes . ACC_PRIVATE ) == ","docstring":""} {"signature":"operator fun A . component1 ( )","body":"= ","docstring":""} {"signature":"operator fun A . component2 ( )","body":"= ","docstring":""} {"signature":"fun box ( ) : String","body":"{ val ( a , b ) = A ( ) return if ( a == && b == ) \"\" else \"\" }","docstring":""} {"signature":"fun < T , R > foo ( first : ( ) -> T , second : ( T ) -> R ) : R","body":"= throw Exception ( )","docstring":""} {"signature":"fun test ( )","body":"{ val r = foo ( { } , { \"\" } ) r checkType { _ < String > ( ) } }","docstring":""} {"signature":"public abstract fun getInheritorsOfSealedClass ( classSymbol : KtNamedClassOrObjectSymbol ) : List < KtNamedClassOrObjectSymbol >","body":"public abstract fun getInheritorsOfSealedClass ( classSymbol : KtNamedClassOrObjectSymbol ) : List < KtNamedClassOrObjectSymbol >","docstring":""} {"signature":"public abstract fun getEnumEntries ( classSymbol : KtNamedClassOrObjectSymbol ) : List < KtEnumEntrySymbol >","body":"public abstract fun getEnumEntries ( classSymbol : KtNamedClassOrObjectSymbol ) : List < KtEnumEntrySymbol >","docstring":""} {"signature":"public fun KtNamedClassOrObjectSymbol . getSealedClassInheritors ( ) : List < KtNamedClassOrObjectSymbol >","body":"= withValidityAssertion { analysisSession . inheritorsProvider . getInheritorsOfSealedClass ( this ) }","docstring":""} {"signature":"public fun KtNamedClassOrObjectSymbol . getEnumEntries ( ) : List < KtEnumEntrySymbol >","body":"= withValidityAssertion { analysisSession . inheritorsProvider . getEnumEntries ( this ) }","docstring":""} {"signature":"fun < T > materializeDelegate ( ) : Delegate < T >","body":"= Delegate ( )","docstring":""} {"signature":"operator fun < K > K . provideDelegate ( receiver : Any ? , property : kotlin . reflect . KProperty < * > ) : K","body":"= this","docstring":""} {"signature":"operator fun < X > Delegate < X > . getValue ( thisRef : Any ? , property : kotlin . reflect . KProperty < * > ) : X","body":"= TODO ( )","docstring":""} {"signature":"fun box ( ) : String","body":"{ try { C ( ) return \"\" } catch ( e : NotImplementedError ) { } try { Foo ( ) return \"\" } catch ( e : NotImplementedError ) { } try { Bar ( ) return \"\" } catch ( e : NotImplementedError ) { } return \"\" }","docstring":""} {"signature":"@ Test fun testIllegalRepetitions ( )","body":"{ Assertions . assertThrows ( IllegalArgumentException :: class . java ) { RepeatVector ( n = - ) } }","docstring":""} {"signature":"@ Test fun testOutputShape ( )","body":"{ val layer = RepeatVector ( n = ) val x = Array ( ) { FloatArray ( ) { } } val y = layer ( x ) Assertions . assertArrayEquals ( intArrayOf ( , layer . n , ) , y . shape ( ) . toIntArray ( ) ) }","docstring":""} {"signature":"@ Test fun testOutput ( )","body":"{ val layer = RepeatVector ( n = ) val x = Array ( ) { FloatArray ( ) { it . toFloat ( ) } } val y = layer ( x ) val actual = y . tensor ( ) . copyTo ( Array ( ) { Array ( layer . n ) { FloatArray ( ) } } ) val expected = arrayOf ( arrayOf ( floatArrayOf ( , , ) , floatArrayOf ( , , ) ) , arrayOf ( floatArrayOf ( , , ) , floatArrayOf ( , , ) ) , arrayOf ( floatArrayOf ( , , ) , floatArrayOf ( , , ) ) ) Assertions . assertArrayEquals ( expected , actual ) }","docstring":""} {"signature":"private operator fun RepeatVector . invoke ( input : Array < FloatArray > ) : Output < Float >","body":"= Ops . create ( ) . let { tf -> val inputOp = tf . constant ( input ) val isTraining = tf . constant ( true ) val numberOfLosses = tf . constant ( ) build ( tf , inputOp , isTraining , numberOfLosses ) . asOutput ( ) }","docstring":""} {"signature":"fun foo ( s : String ) : String","body":"= \"\"","docstring":""} {"signature":"fun bar ( s : String ? ) : String","body":"= \"\"","docstring":""} {"signature":"fun qux ( s : Any ) : String","body":"= \"\"","docstring":""} {"signature":"fun foo ( s : String ) : String","body":"= \"\"","docstring":""} {"signature":"fun bar ( s : String ? ) : String","body":"= \"\"","docstring":""} {"signature":"fun qux ( s : Any ) : String","body":"= \"\"","docstring":""} {"signature":"fun foo ( ) : String","body":"= \"\"","docstring":""} {"signature":"fun foo ( s : String ) : String","body":"= \"\"","docstring":""} {"signature":"fun foo ( s : String ? ) : String","body":"= \"\"","docstring":""} {"signature":"fun foo ( s : String , p : String ) : String","body":"= \"\"","docstring":""} {"signature":"fun bar ( s : String ? ) : String","body":"= \"\"","docstring":""} {"signature":"fun bar ( s : String ) : String","body":"= \"\"","docstring":""} {"signature":"fun qux ( s : Any ) : String","body":"= \"\"","docstring":""} {"signature":"fun qux ( s : String ) : String","body":"= \"\"","docstring":""} {"signature":"fun foo ( ) : String","body":"= \"\"","docstring":""} {"signature":"fun foo ( s : String ) : String","body":"= \"\"","docstring":""} {"signature":"fun foo ( s : String ? ) : String","body":"= \"\"","docstring":""} {"signature":"fun foo ( s : String , p : String ) : String","body":"= \"\"","docstring":""} {"signature":"fun bar ( s : String ? ) : String","body":"= \"\"","docstring":""} {"signature":"fun bar ( s : String ) : String","body":"= \"\"","docstring":""} {"signature":"fun qux ( s : Any ) : String","body":"= \"\"","docstring":""} {"signature":"fun qux ( s : String ) : String","body":"= \"\"","docstring":""} {"signature":"fun lib ( ) : String","body":"= when { x . foo ( \"\" ) != \"\" -> \"\" x . bar ( \"\" ) != \"\" -> \"\" x . qux ( \"\" ) != \"\" -> \"\" foo ( \"\" ) != \"\" -> \"\" bar ( \"\" ) != \"\" -> \"\" qux ( \"\" ) != \"\" -> \"\" else -> \"\" }","docstring":""} {"signature":"fun box ( ) : String","body":"= lib ( )","docstring":""} {"signature":"@ InlineOnly @ SinceKotlin ( \"\" ) public actual inline fun CancellationException ( message : String ? , cause : Throwable ? ) : CancellationException","body":"{ return CancellationException ( message ) . also { it . initCause ( cause ) } }","docstring":""} {"signature":"@ InlineOnly @ SinceKotlin ( \"\" ) public actual inline fun CancellationException ( cause : Throwable ? ) : CancellationException","body":"{ return CancellationException ( cause ? . toString ( ) ) . also { it . initCause ( cause ) } }","docstring":""} {"signature":"fun hasErrorElement ( psi : PsiNode ) : Boolean","body":"= psi . children . any { it . `class` == NodeClass . ERROR || hasErrorElement ( it ) }","docstring":""} {"signature":"fun getErrorElements ( psi : PsiNode , codeBuffer : StringBuffer = StringBuffer ( ) , errorElementsText : ErrorElements = mutableListOf ( ) ) : ErrorElements","body":"{ psi . children . forEach { if ( it . `class` == NodeClass . ERROR ) { val codeLines = codeBuffer . lines ( ) errorElementsText . add ( Pair ( it . text ! ! , Position ( codeLines . size , codeLines . last ( ) . length + ) ) ) } if ( it . text != null && ( it . `class` == NodeClass . TOKEN || it . `class` == NodeClass . WHITESPACE ) ) { codeBuffer . append ( if ( it . `class` == NodeClass . WHITESPACE ) it . text . replace ( \"\" , System . lineSeparator ( ) ) else it . text ) } getErrorElements ( it , codeBuffer , errorElementsText ) } return errorElementsText }","docstring":""} {"signature":"private fun parse ( psiTextAsLines : List < String > ) : PsiNode","body":"{ val root = PsiNode ( NodeClass . RULE , \"\" ) val nodes = Stack < PsiNode > ( ) . apply { push ( root ) } var prevNode = root var matcher : Matcher ? = null val checkStack : ( currentDeepLevel : Int ) -> Unit = { currentDeepLevel : Int -> when { currentDeepLevel > nodes . size -> nodes . push ( prevNode ) currentDeepLevel < nodes . size -> nodes . pop ( ) } } val addNode = { offset : String , `class` : NodeClass , type : String ? , text : String ? -> val currentDeepLevel = offset . split ( \"\" . repeat ( WHITESPACES_NUMBER_OFFSET ) ) . size checkStack ( currentDeepLevel ) PsiNode ( `class` , type , text ) . also { nodes . peek ( ) . children . add ( it ) prevNode = it } } val matcherFind = { line : String , pattern : Pattern -> matcher = pattern . matcher ( line ) matcher ? . find ( ) ? : false } psiTextAsLines . forEach { line -> when { matcherFind ( line , rulePattern ) -> addNode ( matcher ! ! . group ( \"\" ) , NodeClass . RULE , matcher ! ! . group ( \"\" ) , null ) matcherFind ( line , tokenPattern ) -> addNode ( matcher ! ! . group ( \"\" ) , NodeClass . TOKEN , matcher ! ! . group ( \"\" ) , matcher ! ! . group ( \"\" ) ) matcherFind ( line , errorElementPattern ) -> addNode ( matcher ! ! . group ( \"\" ) , NodeClass . ERROR , null , matcher ! ! . group ( \"\" ) ) matcherFind ( line , whitespaceElementPattern ) -> addNode ( matcher ! ! . group ( \"\" ) , NodeClass . WHITESPACE , null , matcher ! ! . group ( \"\" ) ) matcherFind ( line , otherElementPattern ) -> addNode ( matcher ! ! . group ( \"\" ) , NodeClass . OTHER , null , matcher ! ! . group ( \"\" ) ) } } return root }","docstring":""} {"signature":"fun parse ( psiText : String )","body":"= parse ( psiText . split ( System . lineSeparator ( ) ) . run { subList ( , lastIndex ) } )","docstring":""} {"signature":"fun androidIdToName ( id : String ) : ResourceIdentifier ?","body":"{ val values = AndroidConst . IDENTIFIER_REGEX . matchEntire ( id ) ? . groupValues ? : return null val packageName = values [ ] return ResourceIdentifier ( getJavaIdentifierNameForResourceName ( values [ ] ) , if ( packageName . isEmpty ( ) ) null else packageName ) }","docstring":""} {"signature":"fun getJavaIdentifierNameForResourceName ( styleName : String )","body":"= buildString { for ( char in styleName ) { when ( char ) { '' , '' , '' -> append ( '' ) else -> append ( char ) } } }","docstring":""} {"signature":"fun isWidgetTypeIgnored ( xmlType : String ) : Boolean","body":"{ return ( xmlType . isEmpty ( ) || xmlType in AndroidConst . IGNORED_XML_WIDGET_TYPES ) }","docstring":""} {"signature":"internal fun < T > List < T > . forEachUntilLast ( operation : ( T ) -> Unit )","body":"{ val lastIndex = lastIndex forEachIndexed { i , t -> if ( i < lastIndex ) { operation ( t ) } } }","docstring":""} {"signature":"fun writeBytes ( bytes : ByteArray , tag : Int )","body":"{ out . encode32 ( ( tag shl ) or SIZE_DELIMITED ) writeBytes ( bytes ) }","docstring":""} {"signature":"fun writeBytes ( bytes : ByteArray )","body":"{ out . encode32 ( bytes . size ) out . write ( bytes ) }","docstring":""} {"signature":"fun writeOutput ( output : ByteArrayOutput , tag : Int )","body":"{ out . encode32 ( ( tag shl ) or SIZE_DELIMITED ) writeOutput ( output ) }","docstring":""} {"signature":"fun writeOutput ( output : ByteArrayOutput )","body":"{ out . encode32 ( output . size ( ) ) out . write ( output ) }","docstring":""} {"signature":"fun writeInt ( value : Int , tag : Int , format : ProtoIntegerType )","body":"{ val wireType = if ( format == ProtoIntegerType . FIXED ) i32 else VARINT out . encode32 ( ( tag shl ) or wireType ) out . encode32 ( value , format ) }","docstring":""} {"signature":"fun writeInt ( value : Int )","body":"{ out . encode32 ( value ) }","docstring":""} {"signature":"fun writeLong ( value : Long , tag : Int , format : ProtoIntegerType )","body":"{ val wireType = if ( format == ProtoIntegerType . FIXED ) i64 else VARINT out . encode32 ( ( tag shl ) or wireType ) out . encode64 ( value , format ) }","docstring":""} {"signature":"fun writeLong ( value : Long )","body":"{ out . encode64 ( value ) }","docstring":""} {"signature":"fun writeString ( value : String , tag : Int )","body":"{ val bytes = value . encodeToByteArray ( ) writeBytes ( bytes , tag ) }","docstring":""} {"signature":"fun writeString ( value : String )","body":"{ val bytes = value . encodeToByteArray ( ) writeBytes ( bytes ) }","docstring":""} {"signature":"fun writeDouble ( value : Double , tag : Int )","body":"{ out . encode32 ( ( tag shl ) or i64 ) out . writeLong ( value . reverseBytes ( ) ) }","docstring":""} {"signature":"fun writeDouble ( value : Double )","body":"{ out . writeLong ( value . reverseBytes ( ) ) }","docstring":""} {"signature":"fun writeFloat ( value : Float , tag : Int )","body":"{ out . encode32 ( ( tag shl ) or i32 ) out . writeInt ( value . reverseBytes ( ) ) }","docstring":""} {"signature":"fun writeFloat ( value : Float )","body":"{ out . writeInt ( value . reverseBytes ( ) ) }","docstring":""} {"signature":"private fun ByteArrayOutput . encode32 ( number : Int , format : ProtoIntegerType = ProtoIntegerType . DEFAULT )","body":"{ when ( format ) { ProtoIntegerType . FIXED -> out . writeInt ( number . reverseBytes ( ) ) ProtoIntegerType . DEFAULT -> encodeVarint64 ( number . toLong ( ) ) ProtoIntegerType . SIGNED -> encodeVarint32 ( ( ( number shl ) xor ( number shr ) ) ) } }","docstring":""} {"signature":"private fun ByteArrayOutput . encode64 ( number : Long , format : ProtoIntegerType = ProtoIntegerType . DEFAULT )","body":"{ when ( format ) { ProtoIntegerType . FIXED -> out . writeLong ( number . reverseBytes ( ) ) ProtoIntegerType . DEFAULT -> encodeVarint64 ( number ) ProtoIntegerType . SIGNED -> encodeVarint64 ( ( number shl ) xor ( number shr ) ) } }","docstring":""} {"signature":"private fun Float . reverseBytes ( ) : Int","body":"= toRawBits ( ) . reverseBytes ( )","docstring":""} {"signature":"private fun Double . reverseBytes ( ) : Long","body":"= toRawBits ( ) . reverseBytes ( )","docstring":""} {"signature":"fun testOwnerListNoDuplicates ( )","body":"{ val duplicatedOwnerListEntries = owners . permittedOwners . groupBy { it . name } . filterValues { occurrences -> occurrences . size > } . values if ( duplicatedOwnerListEntries . isNotEmpty ( ) ) { fail ( buildString { appendLine ( \"\" ) for ( group in duplicatedOwnerListEntries ) { group . joinTo ( this , separator = \"\" , postfix = \"\" ) } } ) } }","docstring":""} {"signature":"fun testAllOwnersInOwnerList ( )","body":"{ val permittedOwnerNames = owners . permittedOwners . map { it . name } . toSet ( ) val problems = mutableListOf < String > ( ) for ( pattern in owners . patterns ) { if ( pattern !is OwnershipPattern . Pattern ) continue for ( owner in pattern . owners ) { if ( owner !in permittedOwnerNames ) { problems += \"\" } } } if ( problems . isNotEmpty ( ) ) { fail ( problems . joinToString ( \"\" ) ) } }","docstring":""} {"signature":"fun testFallbackRuleMatchEverything ( )","body":"{ val fallbackRule = owners . patterns . first ( ) assertEquals ( \"\" , \"\" , fallbackRule . pattern ) assertIs < OwnershipPattern . Pattern > ( fallbackRule , \"\" ) }","docstring":""} {"signature":"fun testPatterns ( )","body":"{ val checker = FileOwnershipChecker ( owners , root = File ( \"\" ) ) checker . check ( ) val problems = mutableListOf < String > ( ) if ( checker . unmatchedFilesTop . isNotEmpty ( ) ) { problems . add ( \"\" + checker . unmatchedFilesTop . joinToString ( \"\" ) { \"\" } ) } val unusedPatterns = checker . unusedMatchers ( ) if ( unusedPatterns . isNotEmpty ( ) ) { problems . add ( \"\" + unusedPatterns . joinToString ( \"\" ) { \"\" } ) } if ( problems . isNotEmpty ( ) ) { fail ( problems . joinToString ( \"\" ) ) } }","docstring":""} {"signature":"override fun toString ( ) : String","body":"{ return \"\" }","docstring":""} {"signature":"fun List < ItemUse > . findFirstMatching ( path : String , isDirectory : Boolean , parentMatch : ItemUse ? ) : ItemUse ?","body":"{ val parentMatchLine = parentMatch ? . item ? . line for ( use in this ) { if ( parentMatchLine != null && use . item . line < parentMatchLine ) break if ( use . rule . isMatch ( path , isDirectory ) ) { use . used = true return use } } return parentMatch }","docstring":""} {"signature":"fun findMatchLine ( path : String , isDirectory : Boolean , parentMatch : ItemUse ? ) : ItemUse ?","body":"{ return if ( isDirectory ) { matchers . findFirstMatching ( path , isDirectory = true , parentMatch ) } else { fileMatchers . findFirstMatching ( path , isDirectory = false , parentMatch ) } }","docstring":""} {"signature":"fun visitFile ( file : File , parentMatch : ItemUse ? )","body":"{ val path = file . path . replace ( File . separatorChar , '' ) if ( ignoreTracker . isIgnored ( path , isDirectory = false ) ) return val matchedItem = findMatchLine ( path , isDirectory = false , parentMatch ) if ( matchedItem != fallbackMatcher ) return if ( unmatchedFilesTop . size < ) { unmatchedFilesTop . add ( file ) } }","docstring":""} {"signature":"fun visitDirectory ( directory : File , parentMatch : ItemUse ? , depth : Int )","body":"{ val path = directory . path . replace ( File . separatorChar , '' ) if ( ignoreTracker . isIgnored ( path , isDirectory = true ) ) return val directoryMatch = findMatchLine ( path , isDirectory = true , parentMatch ) ignoreTracker . withDirectory ( directory ) { for ( childName in ( directory . list ( ) ? : emptyArray ( ) ) ) { val child = if ( directory == root ) { File ( childName ) } else { File ( directory , childName ) } if ( child . isDirectory ) { visitDirectory ( child , directoryMatch , depth + ) } else { visitFile ( child , directoryMatch ) } } } }","docstring":""} {"signature":"fun check ( )","body":"{ visitDirectory ( root , null , ) }","docstring":""} {"signature":"fun unusedMatchers ( ) : List < ItemUse >","body":"{ return matchers . filterNot { it . used } }","docstring":""} {"signature":"fun isIgnored ( path : String , isDirectory : Boolean ) : Boolean","body":"{ return reversedIgnoreNodeStack . firstNotNullOfOrNull { ignoreNode -> ignoreNode . checkIgnored ( path , isDirectory ) } ? : false }","docstring":""} {"signature":"inline fun withDirectory ( directory : File , action : ( ) -> Unit )","body":"{ val ignoreFile = directory . resolve ( \"\" ) . takeIf { it . exists ( ) } if ( ignoreFile != null ) { val ignoreNode = IgnoreNode ( ) . apply { ignoreFile . inputStream ( ) . use { parse ( ignoreFile . path , ignoreFile . inputStream ( ) ) } } ignoreNodeStack . add ( ignoreNode ) } action ( ) if ( ignoreFile != null ) { ignoreNodeStack . removeAt ( ignoreNodeStack . lastIndex ) } }","docstring":""} {"signature":"override fun toString ( ) : String","body":"{ return \"\" }","docstring":""} {"signature":"override fun toString ( ) : String","body":"{ return \"\" + owners . joinToString ( separator = \"\" ) { it . quoteIfContainsSpaces ( ) } }","docstring":""} {"signature":"override fun toString ( ) : String","body":"{ return \"\" }","docstring":""} {"signature":"private fun String . quoteIfContainsSpaces ( )","body":"= if ( contains ( '' ) ) \"\" else this","docstring":""} {"signature":"private fun parseCodeOwners ( file : File ) : CodeOwners","body":"{ fun parseDirective ( line : String , directive : String ) : String ? { val value = line . substringAfter ( \"\" ) if ( value != line ) return value return null } val ownersPattern = \"\" . toRegex ( ) fun parseOwnerNames ( ownerString : String ) : List < String > { return ownersPattern . findAll ( ownerString ) . map { it . value . removeSurrounding ( \"\" ) } . toList ( ) } val permittedOwners = mutableListOf < CodeOwners . OwnerListEntry > ( ) val patterns = mutableListOf < OwnershipPattern > ( ) file . useLines { lines -> for ( ( index , line ) in lines . withIndex ( ) ) { val lineNumber = index + if ( line . startsWith ( \"\" ) ) { val unknownDirective = parseDirective ( line , UNKNOWN_DIRECTIVE ) if ( unknownDirective != null ) { patterns += OwnershipPattern . UnknownPathPattern ( unknownDirective . trim ( ) , lineNumber ) continue } val ownerListDirective = parseDirective ( line , OWNER_LIST_DIRECTIVE ) if ( ownerListDirective != null ) { parseOwnerNames ( ownerListDirective ) . mapTo ( permittedOwners ) { owner -> CodeOwners . OwnerListEntry ( owner , lineNumber ) } } } else if ( line . isNotBlank ( ) ) { val ( pattern , owners ) = line . split ( '' , limit = ) patterns += OwnershipPattern . Pattern ( pattern , parseOwnerNames ( owners ) , lineNumber ) } } } return CodeOwners ( permittedOwners , patterns ) }","docstring":""} {"signature":"fun box ( )","body":"= expectThrowableMessage { check ( == ) { \"\" } }","docstring":""} {"signature":"abstract fun tryCalculateReturnTypeOrNull ( declaration : FirCallableDeclaration ) : FirResolvedTypeRef ?","body":"abstract fun tryCalculateReturnTypeOrNull ( declaration : FirCallableDeclaration ) : FirResolvedTypeRef ?","docstring":""} {"signature":"fun tryCalculateReturnType ( declaration : FirCallableDeclaration ) : FirResolvedTypeRef","body":"{ return tryCalculateReturnTypeOrNull ( declaration ) ? : errorWithAttachment ( \"\" ) { withFirEntry ( \"\" , declaration ) } }","docstring":""} {"signature":"fun tryCalculateReturnType ( symbol : FirCallableSymbol < * > ) : FirResolvedTypeRef","body":"{ return tryCalculateReturnType ( symbol . fir ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val two = assertEquals ( , two . toInt ( ) ) return \"\" }","docstring":""} {"signature":"fun foo ( )","body":"{ addMouseListener ( object : MouseAdapter ( ) { private var clickCount = ; override fun mouseClicked ( e : MouseEvent ) { clickCount ++ ; if ( clickCount > ) GOD . sendMessage ( GodMEssages . TOO_MANY_CLICKS ) ; } } ) enum class GodMessages { TOO_MANY_CLICKS , ONE_MORE_MESSAGE } val GOD = object { fun sendMessage ( message : GodMEssage ) = throw RuntimeException ( message . name ) } ; }","docstring":""} {"signature":"fun check ( )","body":"= true","docstring":""} {"signature":"suspend fun f_1 ( ) : Unit","body":"{ return f_2 ( ) }","docstring":""} {"signature":"private inline suspend fun f_2 ( ) : Unit","body":"{ if ( check ( ) ) return return suspendCoroutineUninterceptedOrReturn { TailCallOptimizationChecker . saveStackTrace ( it ) COROUTINE_SUSPENDED } }","docstring":""} {"signature":"fun builder ( c : suspend ( ) -> Unit )","body":"{ c . startCoroutine ( EmptyContinuation ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ builder { f_1 ( ) } TailCallOptimizationChecker . checkNoStateMachineIn ( \"\" ) return \"\" }","docstring":""} {"signature":"override fun < T , R > accept ( visitor : CirNodeVisitor < T , R > , data : T ) : R","body":"= visitor . visitClassConstructorNode ( this , data )","docstring":""} {"signature":"override fun toString ( )","body":"= CirNode . toString ( this )","docstring":""} {"signature":"fun computeJvmMethod ( function : IrFunction ) : Method","body":"= signatureCache . getOrPut ( function . symbol ) { context . defaultMethodSignatureMapper . mapAsmMethod ( function ) }","docstring":""} {"signature":"private fun canHaveSpecialBridge ( function : IrSimpleFunction ) : Boolean","body":"{ if ( function . name in specialBridgeMethods . specialMethodNames ) return true val functionName = function . name . asString ( ) return specialBridgeMethods . specialMethodNames . any { val specialMethodNameString = it . asString ( ) val specialMethodNameLength = specialMethodNameString . length functionName . startsWith ( specialMethodNameString ) && functionName . length > specialMethodNameLength && functionName [ specialMethodNameLength ] == '' } }","docstring":""} {"signature":"fun computeSpecialBridge ( function : IrSimpleFunction ) : SpecialBridge ?","body":"{ val correspondingProperty = function . correspondingPropertySymbol if ( correspondingProperty != null ) { if ( correspondingProperty . owner . name !in specialBridgeMethods . specialPropertyNames ) return null } else { if ( ! canHaveSpecialBridge ( function ) ) { return null } } val specialMethodInfo = specialBridgeMethods . getSpecialMethodInfo ( function ) if ( specialMethodInfo != null ) return SpecialBridge ( overridden = function , signature = computeJvmMethod ( function ) , needsGenericSignature = specialMethodInfo . needsGenericSignature , methodInfo = specialMethodInfo , needsUnsubstitutedBridge = specialMethodInfo . needsUnsubstitutedBridge ) val specialBuiltInInfo = specialBridgeMethods . getBuiltInWithDifferentJvmName ( function ) if ( specialBuiltInInfo != null ) return SpecialBridge ( overridden = function , signature = computeJvmMethod ( function ) , needsGenericSignature = specialBuiltInInfo . needsGenericSignature , isOverriding = specialBuiltInInfo . isOverriding ) for ( overridden in function . overriddenSymbols ) { val specialBridge = computeSpecialBridge ( overridden . owner ) ? : continue if ( ! specialBridge . needsGenericSignature ) return specialBridge val erasedParameterCount = specialBridge . methodInfo ? . argumentsToCheck ? : val substitutedParameterTypes = function . valueParameters . mapIndexed { index , param -> if ( index < erasedParameterCount ) context . irBuiltIns . anyNType else param . type } val substitutedOverride = context . irFactory . buildFun { updateFrom ( specialBridge . overridden ) name = Name . identifier ( specialBridge . signature . name ) returnType = function . returnType } . apply { valueParameters = function . valueParameters . zip ( substitutedParameterTypes ) . map { ( param , type ) -> param . copyTo ( this , IrDeclarationOrigin . BRIDGE , type = type ) } overriddenSymbols = listOf ( specialBridge . overridden . symbol ) parent = function . parent } val substitutedOverrideSignature = computeJvmMethod ( substitutedOverride ) val unsubstitutedSpecialBridge = when { specialBridge . unsubstitutedSpecialBridge != null -> specialBridge . unsubstitutedSpecialBridge specialBridge . needsUnsubstitutedBridge && specialBridge . signature != substitutedOverrideSignature -> specialBridge . copy ( isSynthetic = true ) else -> null } return specialBridge . copy ( signature = substitutedOverrideSignature , substitutedParameterTypes = substitutedParameterTypes , substitutedReturnType = function . returnType , unsubstitutedSpecialBridge = unsubstitutedSpecialBridge ) } return null }","docstring":""} {"signature":"fun jpsReportInternalBuilderError ( context : CompileContext , error : Throwable )","body":"{ @ Suppress ( \"\" ) val builderError = CompilerMessage . createInternalBuilderError ( \"\" , error ) context . processMessage ( builderError ) }","docstring":""} {"signature":"fun test ( a : A , block : A . ( ) -> Int )","body":"{ a . block ( ) }","docstring":""} {"signature":"fun B . otherTest ( block : B . ( ) -> Int )","body":"{ block ( ) }","docstring":""} {"signature":"fun anotherTest ( block : C . ( ) -> Int )","body":"{ block ( ) }","docstring":""} {"signature":"fun getExtraScopes ( codeFragment : KtCodeFragment ) : List < FirLocalScope >","body":"{ val foreignValues = foreignValueProvider ? . getForeignValues ( codeFragment ) ? . takeUnless { it . isEmpty ( ) } ? : return emptyList ( ) return listOf ( getForeignValuesScope ( codeFragment , foreignValues ) ) }","docstring":""} {"signature":"private fun getForeignValuesScope ( ktCodeFragment : KtCodeFragment , foreignValues : Map < String , String > ) : FirLocalScope","body":"{ var result = FirLocalScope ( session ) for ( ( variableNameString , typeDescriptor ) in foreignValues ) { val variableName = Name . identifier ( variableNameString ) val variable = buildProperty { resolvePhase = FirResolvePhase . BODY_RESOLVE moduleData = session . moduleData origin = FirDeclarationOrigin . Source status = FirResolvedDeclarationStatusImpl ( Visibilities . Local , Modality . FINAL , EffectiveVisibility . Local ) returnTypeRef = typeCache . getValue ( typeDescriptor , ktCodeFragment ) deprecationsProvider = EmptyDeprecationsProvider name = variableName isVar = false symbol = FirPropertySymbol ( variableName ) isLocal = true } variable . foreignValueMarker = true result = result . storeVariable ( variable , session ) } return result }","docstring":""} {"signature":"private fun getPrimitiveType ( typeDescriptor : String , session : FirSession ) : FirTypeRef ?","body":"{ val asmType = Type . getType ( typeDescriptor ) return when ( asmType . sort ) { Type . VOID -> session . builtinTypes . unitType Type . BOOLEAN -> session . builtinTypes . booleanType Type . CHAR -> session . builtinTypes . charType Type . BYTE -> session . builtinTypes . byteType Type . SHORT -> session . builtinTypes . shortType Type . INT -> session . builtinTypes . intType Type . FLOAT -> session . builtinTypes . floatType Type . LONG -> session . builtinTypes . longType Type . DOUBLE -> session . builtinTypes . doubleType else -> null } }","docstring":""} {"signature":"override fun resolve ( sourceSet : KotlinSourceSet ) : Set < IdeaKotlinDependency >","body":"{ if ( ! isJvmAndAndroid ( sourceSet ) ) return emptySet ( ) if ( sourceSet !is DefaultKotlinSourceSet ) return emptySet ( ) return sourceSet . resolveMetadata < MetadataDependencyResolution > ( ) . filter { metadataDependencyResolution -> metadataDependencyResolution . projectDependency ( sourceSet . project ) != null } . filter { metadataDependencyResolution -> metadataDependencyResolution . projectDependency ( sourceSet . project ) != sourceSet . project } . flatMap { metadataDependencyResolution -> when ( metadataDependencyResolution ) { is MetadataDependencyResolution . ChooseVisibleSourceSets -> resolveMultiplatformSourceSets ( metadataDependencyResolution . projectDependency ( sourceSet . project ) ? : return@flatMap emptyList ( ) ) is MetadataDependencyResolution . KeepOriginalDependency -> resolveJvmSourceSets ( sourceSet ) else -> emptyList ( ) } } . toSet ( ) }","docstring":""} {"signature":"private fun resolveMultiplatformSourceSets ( dependencyProject : Project ) : Iterable < IdeaKotlinDependency >","body":"{ val kotlin = dependencyProject . multiplatformExtensionOrNull ? : return emptyList ( ) return kotlin . sourceSets . filter { sourceSet -> isJvmAndAndroidMain ( sourceSet ) } . map { sourceSet -> IdeaKotlinSourceDependency ( type = Regular , coordinates = IdeaKotlinSourceCoordinates ( sourceSet ) ) } }","docstring":""} {"signature":"private fun resolveJvmSourceSets ( sourceSet : KotlinSourceSet ) : Iterable < IdeaKotlinDependency >","body":"{ return IdeBinaryDependencyResolver ( binaryType = IdeaKotlinBinaryDependency . KOTLIN_COMPILE_BINARY_TYPE , artifactResolutionStrategy = IdeBinaryDependencyResolver . ArtifactResolutionStrategy . PlatformLikeSourceSet ( setupPlatformResolutionAttributes = { sourceSet . internal . compilations . filter { it . platformType == KotlinPlatformType . jvm } . map { compilation -> compilation . internal . configurations . compileDependencyConfiguration . attributes } . map { attributes -> attributes . toMap ( ) . toList ( ) . toSet ( ) } . reduceOrNull { acc , next -> acc intersect next } . orEmpty ( ) . forEach { ( key , value ) -> @ Suppress ( \"\" ) setAttributeProvider ( sourceSet . project , key as Attribute < Any > ) { value as Any } } } , componentFilter = { id -> id is ProjectComponentIdentifier } ) ) . resolve ( sourceSet ) }","docstring":"/**\n * Pretend that this [sourceSet] is 'jvm' and resolve binaries.\n * #### Setting up attributes:\n * In order to set up the 'platform like' / 'jvm like' dependency resolution, this algorithm\n * will look at all 'jvm' based compilations, uses their 'compileDependencyConfiguration' as reference and\n * then uses the intersection of all available attributes\n *\n * #### componentFilter:\n * This resolver will just care about resolving project dependencies.\n * Therefore, a componentFilter is added to only resolve project dependencies.\n * We expect to resolve project artifact dependencies which can then be matched to the corresponding\n * SourceSets on IDE side.\n */"} {"signature":"private fun isJvmAndAndroidMain ( sourceSet : KotlinSourceSet ) : Boolean","body":"{ if ( ! isJvmAndAndroid ( sourceSet ) ) return false return sourceSet . internal . compilations . filter { it . platformType != KotlinPlatformType . common } . all { compilation -> isJvmMain ( compilation ) || isAndroidMain ( compilation ) } }","docstring":""} {"signature":"private fun isJvmMain ( compilation : KotlinCompilation < * > ) : Boolean","body":"{ return compilation . platformType == KotlinPlatformType . jvm && compilation . isMain ( ) }","docstring":""} {"signature":"private fun isAndroidMain ( compilation : KotlinCompilation < * > ) : Boolean","body":"{ return compilation is KotlinJvmAndroidCompilation && compilation . androidVariant . type == AndroidVariantType . Main }","docstring":""} {"signature":"@ JvmStatic fun canBeUsedForConstVal ( type : KotlinType )","body":"= type . canBeUsedForConstVal ( )","docstring":""} {"signature":"fun KotlinType . canBeUsedForConstVal ( )","body":"= ( KotlinBuiltIns . isPrimitiveType ( this ) || UnsignedTypes . isUnsignedType ( this ) ) && ! TypeUtils . isNullableType ( this ) || KotlinBuiltIns . isString ( this )","docstring":""} {"signature":"@ Parameterized . Parameters ( name = \"\" ) @ JvmStatic fun params ( ) : Collection < Array < Any > >","body":"= TestBroadcastChannelKind . entries . map { arrayOf < Any > ( it ) }","docstring":""} {"signature":"@ After fun tearDown ( )","body":"{ pool . close ( ) }","docstring":""} {"signature":"@ Test fun testStress ( )","body":"= runBlocking { println ( \"\" ) val sender = launch ( pool + CoroutineName ( \"\" ) ) { var i = while ( isActive ) { i ++ broadcast . send ( i ) sentTotal . set ( i ) } } val receivers = mutableListOf < Job > ( ) fun printProgress ( ) { println ( \"\" ) } repeat ( nReceivers ) { delay ( ) val receiverIndex = receivers . size val name = \"\" println ( \"\" ) receivers += launch ( pool + CoroutineName ( name ) ) { val channel = broadcast . openSubscription ( ) when ( receiverIndex % ) { -> doReceive ( channel , receiverIndex ) -> doReceiveCatching ( channel , receiverIndex ) -> doIterator ( channel , receiverIndex ) -> doReceiveSelect ( channel , receiverIndex ) -> doReceiveCatchingSelect ( channel , receiverIndex ) } channel . cancel ( ) } printProgress ( ) } repeat ( nSeconds ) { _ -> delay ( ) printProgress ( ) } sender . cancelAndJoin ( ) println ( \"\" ) val total = sentTotal . get ( ) println ( \"\" ) stopOnReceive . set ( total ) try { withTimeout ( ) { receivers . forEachIndexed { index , receiver -> if ( lastReceived [ index ] . get ( ) >= total ) receiver . cancel ( ) receiver . join ( ) } } } catch ( e : Exception ) { println ( \"\" ) pool . dumpThreads ( \"\" ) receivers . indices . forEach { index -> println ( \"\" ) } throw e } println ( \"\" ) }","docstring":""} {"signature":"private fun doReceived ( receiverIndex : Int , i : Long ) : Boolean","body":"{ val last = lastReceived [ receiverIndex ] . get ( ) check ( i > last ) { \"\" } if ( last != - && ! kind . isConflated ) check ( i == last + ) { \"\" } receivedTotal . incrementAndGet ( ) lastReceived [ receiverIndex ] . set ( i ) return i >= stopOnReceive . get ( ) }","docstring":""} {"signature":"private suspend fun doReceive ( channel : ReceiveChannel < Long > , receiverIndex : Int )","body":"{ while ( true ) { try { val stop = doReceived ( receiverIndex , channel . receive ( ) ) if ( stop ) break } catch ( ex : ClosedReceiveChannelException ) { break } } }","docstring":""} {"signature":"private suspend fun doReceiveCatching ( channel : ReceiveChannel < Long > , receiverIndex : Int )","body":"{ while ( true ) { val stop = doReceived ( receiverIndex , channel . receiveCatching ( ) . getOrNull ( ) ? : break ) if ( stop ) break } }","docstring":""} {"signature":"private suspend fun doIterator ( channel : ReceiveChannel < Long > , receiverIndex : Int )","body":"{ for ( event in channel ) { val stop = doReceived ( receiverIndex , event ) if ( stop ) break } }","docstring":""} {"signature":"private suspend fun doReceiveSelect ( channel : ReceiveChannel < Long > , receiverIndex : Int )","body":"{ while ( true ) { try { val event = select < Long > { channel . onReceive { it } } val stop = doReceived ( receiverIndex , event ) if ( stop ) break } catch ( ex : ClosedReceiveChannelException ) { break } } }","docstring":""} {"signature":"private suspend fun doReceiveCatchingSelect ( channel : ReceiveChannel < Long > , receiverIndex : Int )","body":"{ while ( true ) { val event = select < Long ? > { channel . onReceiveCatching { it . getOrNull ( ) } } ? : break val stop = doReceived ( receiverIndex , event ) if ( stop ) break } }","docstring":""} {"signature":"@ Suppress ( \"\" ) private fun println ( debugMessage : String )","body":"{ }","docstring":""} {"signature":"fun isNotYetComputed ( ) : Boolean","body":"fun isNotYetComputed ( ) : Boolean","docstring":""} {"signature":"fun box ( ) : String","body":"{ val a1 = A ( null ) val a2 = A ( \"\" ) if ( a1 == a2 || a2 == a1 ) return \"\" val b1 = B ( null ) val b2 = B ( \"\" ) if ( b1 == b2 || b2 == b1 ) return \"\" return \"\" }","docstring":""} {"signature":"@ Test fun basicInference ( @ TempDir tempDir : Path ? )","body":"{ assertTrue ( tempDir ! ! . toFile ( ) . isDirectory ) val lenet5 = Sequential . of ( lenet5Layers ) val ( train , test ) = mnist ( ) lenet5 . use { it . compile ( optimizer = SGD ( learningRate = ) , loss = Losses . SOFT_MAX_CROSS_ENTROPY_WITH_LOGITS , metric = Accuracy ( ) ) it . fit ( dataset = train , epochs = EPOCHS , batchSize = TRAINING_BATCH_SIZE ) val accuracy = it . evaluate ( dataset = test , batchSize = TEST_BATCH_SIZE ) . metrics [ Metrics . ACCURACY ] if ( accuracy != null ) { assertTrue ( accuracy > ) } it . save ( modelDirectory = tempDir . toFile ( ) , savingFormat = SavingFormat . TfGraphCustomVariables , writingMode = WritingMode . OVERRIDE ) } val inferenceModel = TensorFlowInferenceModel . load ( tempDir . toFile ( ) , loadOptimizerState = false ) inferenceModel . use { var accuracy = val amountOfTestSet = for ( imageId in .. amountOfTestSet ) { val prediction = it . predict ( train . getX ( imageId ) ) val softPrediction = it . predict ( train . getX ( imageId ) , outputTensorName = OUTPUT_NAME ) { result -> result . getFloatArray ( ) } assertEquals ( , softPrediction . size ) if ( prediction == train . getY ( imageId ) . toInt ( ) ) accuracy += ( / amountOfTestSet ) } assertTrue ( accuracy > ) } }","docstring":""} {"signature":"@ Test fun basicInferenceAndCopy ( @ TempDir tempDir : Path ? )","body":"{ assertTrue ( tempDir ! ! . toFile ( ) . isDirectory ) val lenet5 = Sequential . of ( lenet5Layers ) val ( train , test ) = mnist ( ) lenet5 . use { it . compile ( optimizer = SGD ( learningRate = ) , loss = Losses . SOFT_MAX_CROSS_ENTROPY_WITH_LOGITS , metric = Accuracy ( ) ) it . fit ( dataset = train , epochs = EPOCHS , batchSize = TRAINING_BATCH_SIZE ) val accuracy = it . evaluate ( dataset = test , batchSize = TEST_BATCH_SIZE ) . metrics [ Metrics . ACCURACY ] if ( accuracy != null ) { assertTrue ( accuracy > ) } it . save ( modelDirectory = tempDir . toFile ( ) , savingFormat = SavingFormat . TfGraphCustomVariables , writingMode = WritingMode . OVERRIDE ) } val inferenceModel = TensorFlowInferenceModel . load ( tempDir . toFile ( ) , loadOptimizerState = false ) var copiedInferenceModel : TensorFlowInferenceModel val firstAccuracy : Double val secondAccuracy : Double inferenceModel . use { var accuracy = val amountOfTestSet = for ( imageId in .. amountOfTestSet ) { val prediction = it . predict ( train . getX ( imageId ) ) val softPrediction = it . predict ( train . getX ( imageId ) , outputTensorName = OUTPUT_NAME ) { result -> result . getFloatArray ( ) } assertEquals ( , softPrediction . size ) if ( prediction == train . getY ( imageId ) . toInt ( ) ) accuracy += ( / amountOfTestSet ) } copiedInferenceModel = inferenceModel . copy ( \"\" ) assertTrue ( accuracy > ) firstAccuracy = accuracy } copiedInferenceModel . use { var accuracy = val amountOfTestSet = for ( imageId in .. amountOfTestSet ) { val prediction = it . predict ( train . getX ( imageId ) ) if ( prediction == train . getY ( imageId ) . toInt ( ) ) accuracy += ( / amountOfTestSet ) } assertTrue ( accuracy > ) secondAccuracy = accuracy } assertEquals ( firstAccuracy , secondAccuracy , EPS ) }","docstring":""} {"signature":"@ Test fun emptyInferenceModel ( )","body":"{ val ( train , _ ) = mnist ( ) val inferenceModel = TensorFlowInferenceModel ( ) inferenceModel . use { val exception = Assertions . assertThrows ( IllegalStateException :: class . java ) { it . predict ( train . getX ( ) ) } assertEquals ( \"\" , exception . message ) } }","docstring":""} {"signature":"@ Test fun createInferenceModelOnJSONConfig ( @ TempDir tempDir : Path ? )","body":"{ assertTrue ( tempDir ! ! . toFile ( ) . isDirectory ) val lenet5 = Sequential . of ( lenet5Layers ) val ( train , test ) = mnist ( ) lenet5 . use { it . compile ( optimizer = SGD ( learningRate = ) , loss = Losses . SOFT_MAX_CROSS_ENTROPY_WITH_LOGITS , metric = Accuracy ( ) ) it . fit ( dataset = train , epochs = EPOCHS , batchSize = TRAINING_BATCH_SIZE ) val accuracy = it . evaluate ( dataset = test , batchSize = TEST_BATCH_SIZE ) . metrics [ Metrics . ACCURACY ] if ( accuracy != null ) { assertTrue ( accuracy > ) } it . save ( modelDirectory = tempDir . toFile ( ) , savingFormat = SavingFormat . JsonConfigCustomVariables ( ) , writingMode = WritingMode . OVERRIDE ) } val exception = Assertions . assertThrows ( FileNotFoundException :: class . java ) { TensorFlowInferenceModel . load ( tempDir . toFile ( ) ) } assertEquals ( \"\" , exception . message ) }","docstring":""} {"signature":"@ Test fun createInferenceModelOnCorruptedVariableData ( @ TempDir tempDir : Path ? )","body":"{ assertTrue ( tempDir ! ! . toFile ( ) . isDirectory ) val lenet5 = Sequential . of ( lenet5Layers ) val ( train , test ) = mnist ( ) lenet5 . use { it . compile ( optimizer = SGD ( learningRate = ) , loss = Losses . SOFT_MAX_CROSS_ENTROPY_WITH_LOGITS , metric = Accuracy ( ) ) it . fit ( dataset = train , epochs = EPOCHS , batchSize = TRAINING_BATCH_SIZE ) val accuracy = it . evaluate ( dataset = test , batchSize = TEST_BATCH_SIZE ) . metrics [ Metrics . ACCURACY ] if ( accuracy != null ) { assertTrue ( accuracy > ) } it . save ( modelDirectory = tempDir . toFile ( ) , savingFormat = SavingFormat . TfGraphCustomVariables , writingMode = WritingMode . OVERRIDE ) } File ( tempDir . toFile ( ) . absolutePath + \"\" ) . delete ( ) val exception = Assertions . assertThrows ( FileNotFoundException :: class . java ) { TensorFlowInferenceModel . load ( tempDir . toFile ( ) ) } assertEquals ( \"\" , exception . message ) }","docstring":""} {"signature":"fun test ( )","body":"{ val x = object { } }","docstring":""} {"signature":"fun foo ( x : Int = ) : Int","body":"= + x","docstring":""} {"signature":"public fun < I , O > Operation < I , O > . onResult ( block : ( O ) -> Unit ) : Operation < I , O >","body":"{ return PreprocessingPipeline ( this , object : Operation < O , O > { override fun apply ( input : O ) : O { block ( input ) return input } override fun getOutputShape ( inputShape : TensorShape ) : TensorShape = inputShape } ) }","docstring":"/**\n * Convenience functions for executing custom logic after applying [Operation].\n * Could be useful for debugging purposes.\n */"} {"signature":"public fun < I , M , O > Operation < I , M > . call ( operation : Operation < M , O > ) : Operation < I , O >","body":"{ return PreprocessingPipeline ( this , operation ) }","docstring":"/**\n * Applies provided [operation] to the preprocessing pipeline.\n */"} {"signature":"fun ff ( ) : Int","body":"{ var i = { val i = } return i }","docstring":""} {"signature":"suspend fun foo ( block : suspend Long . ( ) -> String ) : String","body":"{ return . block ( ) }","docstring":""} {"signature":"suspend fun box ( )","body":"{ foo { \"\" } }","docstring":""} {"signature":"fun internalIdGenerated ( id : Int )","body":"fun internalIdGenerated ( id : Int )","docstring":""} {"signature":"fun compilationFinished ( )","body":"fun compilationFinished ( )","docstring":""} {"signature":"override fun create ( elements : Array < out String > ) : Set < String >","body":"{ return persistentHashSetOf ( * elements ) }","docstring":""} {"signature":"override fun create ( elements : Array < out String > ) : Set < String >","body":"{ return persistentHashSetOf < String > ( ) . addAll ( elements . toList ( ) ) }","docstring":""} {"signature":"override fun create ( elements : Array < out String > ) : Set < String >","body":"{ return elements . fold ( persistentHashSetOf ( ) ) { set , element -> set . add ( element ) } }","docstring":""} {"signature":"override fun create ( elements : Array < out String > ) : Set < String >","body":"{ return persistentHashSetOf < String > ( ) . mutate { it . addAll ( elements ) } }","docstring":""} {"signature":"override fun create ( elements : Array < out String > ) : Set < String >","body":"{ return persistentHashSetOf < String > ( ) . mutate { builder -> elements . forEach { builder . add ( it ) } } }","docstring":""} {"signature":"override fun create ( elements : Array < out String > ) : MutableSet < String >","body":"{ return persistentHashSetOf ( * elements ) . builder ( ) }","docstring":""} {"signature":"override fun create ( elements : Array < out String > ) : MutableSet < String >","body":"{ return persistentHashSetOf < String > ( ) . builder ( ) . apply { addAll ( elements ) } }","docstring":""} {"signature":"override fun create ( elements : Array < out String > ) : MutableSet < String >","body":"{ return persistentHashSetOf < String > ( ) . builder ( ) . apply { elements . forEach { add ( it ) } } }","docstring":""} {"signature":"override fun create ( elements : Array < out String > ) : Set < String >","body":"{ return persistentSetOf ( * elements ) }","docstring":""} {"signature":"override fun create ( elements : Array < out String > ) : Set < String >","body":"{ return persistentSetOf < String > ( ) . addAll ( elements . toList ( ) ) }","docstring":""} {"signature":"override fun create ( elements : Array < out String > ) : Set < String >","body":"{ return elements . fold ( persistentSetOf ( ) ) { set , element -> set . add ( element ) } }","docstring":""} {"signature":"override fun create ( elements : Array < out String > ) : Set < String >","body":"{ return persistentSetOf < String > ( ) . mutate { it . addAll ( elements ) } }","docstring":""} {"signature":"override fun create ( elements : Array < out String > ) : Set < String >","body":"{ return persistentSetOf < String > ( ) . mutate { builder -> elements . forEach { builder . add ( it ) } } }","docstring":""} {"signature":"override fun create ( elements : Array < out String > ) : MutableSet < String >","body":"{ return persistentSetOf ( * elements ) . builder ( ) }","docstring":""} {"signature":"override fun create ( elements : Array < out String > ) : MutableSet < String >","body":"{ return persistentSetOf < String > ( ) . builder ( ) . apply { addAll ( elements ) } }","docstring":""} {"signature":"override fun create ( elements : Array < out String > ) : MutableSet < String >","body":"{ return persistentSetOf < String > ( ) . builder ( ) . apply { elements . forEach { add ( it ) } } }","docstring":""} {"signature":"override fun < E : FirElement > transformElement ( element : E , data : Any ? ) : E","body":"{ return element }","docstring":""} {"signature":"override fun transformFile ( file : FirFile , data : Any ? ) : FirFile","body":"{ checkSessionConsistency ( file ) withFileAnalysisExceptionWrapping ( file ) { val prevValue = currentFile currentFile = file try { file . transformChildren ( this , null ) } finally { currentFile = prevValue } } return file }","docstring":""} {"signature":"override fun transformImport ( import : FirImport , data : Any ? ) : FirImport","body":"{ val fqName = import . importedFqName ? . takeUnless { it . isRoot } ? : return import if ( ! fqName . isAcceptable ) return import if ( import . isAllUnder ) { return transformImportForFqName ( fqName , import ) } currentFile ? . let { session . lookupTracker ? . recordFqNameLookup ( fqName , import . source , it . source ) } return transformImportForFqName ( fqName . parent ( ) , import ) }","docstring":""} {"signature":"private fun transformImportForFqName ( fqName : FqName , delegate : FirImport ) : FirImport","body":"{ val ( packageFqName , relativeClassFqName ) = findLongestExistingPackage ( symbolProvider , fqName ) return buildResolvedImport { this . delegate = delegate this . packageFqName = packageFqName this . relativeParentClassName = relativeClassFqName } }","docstring":""} {"signature":"@ Test fun runTest ( )","body":"{ simpleInterop ( ) getMyStructPointer ( ) ? . pointed ? . appleOnlyProperty getMyStructPointer ( ) ? . pointed ? . iosOnlyProperty NativeMain . structFromPosix NativeMain . structPointerFromPosix NativeMain . simple P2NativeMain . structFromPosix P2NativeMain . structPointerFromPosix P2NativeMain . simple AppleAndLinuxMain . MyStruct . posixProperty P2AppleAndLinuxMain . MyStruct . posixProperty AppleMain . MyStruct . appleOnlyProperty P2AppleMain . MyStruct . appleOnlyProperty IosMain . MyStruct . iosOnly P2IosMain . MyStruct . iosOnly }","docstring":""} {"signature":"internal fun Project . findAppliedAndroidPluginIdOrNull ( ) : String ?","body":"{ return androidPluginIds . firstOrNull { androidPluginId -> plugins . findPlugin ( androidPluginId ) != null } }","docstring":""} {"signature":"fun f1 ( s : String ) : Int","body":"fun f1 ( s : String ) : Int","docstring":""} {"signature":"fun f2 ( s : List < String > ? ) : MutableMap < Boolean ? , Foo >","body":"fun f2 ( s : List < String > ? ) : MutableMap < Boolean ? , Foo >","docstring":""} {"signature":"fun < T : Set < Number > > f3 ( t : T ) : T ?","body":"fun < T : Set < Number > > f3 ( t : T ) : T ?","docstring":""} {"signature":"actual fun f1 ( s : dynamic ) : dynamic","body":"= null ! !","docstring":""} {"signature":"actual fun f2 ( s : dynamic ) : MutableMap < Boolean ? , Foo >","body":"= null ! !","docstring":""} {"signature":"actual fun < T : Set < Number > > f3 ( t : T ) : dynamic","body":"= null ! !","docstring":""} {"signature":"@ Test fun toBoolean ( )","body":"{ assertEquals ( true , \"\" . toBoolean ( ) ) assertEquals ( true , \"\" . toBoolean ( ) ) assertEquals ( false , \"\" . toBoolean ( ) ) assertEquals ( false , \"\" . toBoolean ( ) ) assertEquals ( false , ( null as String ? ) . toBoolean ( ) ) }","docstring":""} {"signature":"@ Test fun toByte ( )","body":"{ compareConversion ( { it . toByte ( ) } , { it . toByteOrNull ( ) } ) { assertProduces ( \"\" , Byte . MAX_VALUE ) assertProduces ( \"\" , . toByte ( ) ) assertProduces ( \"\" , Byte . MIN_VALUE ) assertFailsOrNull ( \"\" ) assertFailsOrNull ( \"\" ) assertFailsOrNull ( \"\" ) } compareConversionWithRadix ( String :: toByte , String :: toByteOrNull ) { assertProduces ( , \"\" , . toByte ( ) ) assertProduces ( , \"\" , . toByte ( ) ) assertProduces ( , \"\" , ( - ) . toByte ( ) ) assertFailsOrNull ( , \"\" ) assertFailsOrNull ( , \"\" ) assertFailsOrNull ( , \"\" ) } }","docstring":""} {"signature":"@ Test fun toShort ( )","body":"{ compareConversion ( { it . toShort ( ) } , { it . toShortOrNull ( ) } ) { assertProduces ( \"\" , . toShort ( ) ) assertProduces ( \"\" , Short . MAX_VALUE ) assertProduces ( \"\" , Short . MIN_VALUE ) assertFailsOrNull ( \"\" ) assertFailsOrNull ( \"\" ) assertFailsOrNull ( \"\" ) } compareConversionWithRadix ( String :: toShort , String :: toShortOrNull ) { assertProduces ( , \"\" , . toShort ( ) ) assertProduces ( , \"\" , ( - ) . toShort ( ) ) assertFailsOrNull ( , \"\" ) assertFailsOrNull ( , \"\" ) assertFailsOrNull ( , \"\" ) } }","docstring":""} {"signature":"@ Test fun toInt ( )","body":"{ compareConversion ( { it . toInt ( ) } , { it . toIntOrNull ( ) } ) { assertProduces ( \"\" , ) assertProduces ( \"\" , Int . MAX_VALUE ) assertProduces ( \"\" , Int . MIN_VALUE ) assertFailsOrNull ( \"\" ) assertFailsOrNull ( \"\" ) assertFailsOrNull ( \"\" ) assertFailsOrNull ( \"\" ) assertFailsOrNull ( \"\" ) } compareConversionWithRadix ( String :: toInt , String :: toIntOrNull ) { assertProduces ( , \"\" , ) assertProduces ( , \"\" , ) assertProduces ( , \"\" , ) assertProduces ( , \"\" , ) assertProduces ( , \"\" , ) assertProduces ( , \"\" , - ) assertProduces ( , \"\" , - ) assertProduces ( , \"\" , - ) assertProduces ( , \"\" , ) assertProduces ( , \"\" , ) assertFailsOrNull ( , \"\" ) assertFailsOrNull ( , \"\" ) assertFailsOrNull ( , \"\" ) assertFailsOrNull ( , \"\" ) assertFailsOrNull ( , \"\" ) } assertFailsWith < IllegalArgumentException > ( \"\" ) { \"\" . toInt ( radix = ) } assertFailsWith < IllegalArgumentException > ( \"\" ) { \"\" . toIntOrNull ( radix = ) } }","docstring":""} {"signature":"@ Test fun toLong ( )","body":"{ compareConversion ( { it . toLong ( ) } , { it . toLongOrNull ( ) } ) { assertProduces ( \"\" , . toLong ( ) ) assertProduces ( \"\" , Long . MAX_VALUE ) assertProduces ( \"\" , Long . MIN_VALUE ) assertFailsOrNull ( \"\" ) assertFailsOrNull ( \"\" ) assertFailsOrNull ( \"\" ) assertFailsOrNull ( \"\" ) assertFailsOrNull ( \"\" ) assertFailsOrNull ( \"\" ) assertFailsOrNull ( \"\" ) assertFailsOrNull ( \"\" ) } compareConversionWithRadix ( String :: toLong , String :: toLongOrNull ) { assertProduces ( , \"\" , ) assertProduces ( , \"\" , ) assertProduces ( , \"\" , ) assertProduces ( , \"\" , ) assertProduces ( , \"\" , ) assertProduces ( , \"\" , ) assertProduces ( , \"\" , Long . MIN_VALUE ) assertProduces ( , \"\" , ) assertProduces ( , \"\" , ) assertFailsOrNull ( , \"\" ) assertFailsOrNull ( , \"\" ) assertFailsOrNull ( , \"\" ) assertFailsOrNull ( , \"\" ) } assertFailsWith < IllegalArgumentException > ( \"\" ) { \"\" . toLong ( radix = ) } assertFailsWith < IllegalArgumentException > ( \"\" ) { \"\" . toLongOrNull ( radix = ) } }","docstring":""} {"signature":"@ Test fun toDouble ( )","body":"{ compareConversion ( String :: toDouble , String :: toDoubleOrNull , :: doubleTotalOrderEquals ) { assertProduces ( \"\" , - ) assertProduces ( \"\" , ) assertProduces ( \"\" , ) assertProduces ( \"\" , - ) assertProduces ( \"\" , ) assertProduces ( \"\" , - ) assertProduces ( \"\" , ) assertProduces ( \"\" , ) assertProduces ( \"\" , Double . NaN ) assertProduces ( \"\" , Double . POSITIVE_INFINITY ) assertProduces ( \"\" , Double . POSITIVE_INFINITY ) assertProduces ( \"\" , - Double . NaN ) assertProduces ( \"\" , Double . NEGATIVE_INFINITY ) assertFailsOrNull ( \"\" ) assertFailsOrNull ( \"\" ) assertFailsOrNull ( \"\" ) assertFailsOrNull ( \"\" ) } }","docstring":""} {"signature":"@ Test fun toFloat ( )","body":"{ compareConversion ( String :: toFloat , String :: toFloatOrNull , :: floatTotalOrderEquals ) { assertProduces ( \"\" , - ) assertProduces ( \"\" , ) assertProduces ( \"\" , ) assertProduces ( \"\" , - ) assertProduces ( \"\" , ) assertProduces ( \"\" , - ) assertProduces ( \"\" , ) assertProduces ( \"\" , ) assertProduces ( \"\" , Float . NaN ) assertProduces ( \"\" , Float . POSITIVE_INFINITY ) assertProduces ( \"\" , Float . POSITIVE_INFINITY ) assertProduces ( \"\" , - Float . NaN ) assertProduces ( \"\" , Float . NEGATIVE_INFINITY ) assertFailsOrNull ( \"\" ) assertFailsOrNull ( \"\" ) assertFailsOrNull ( \"\" ) assertFailsOrNull ( \"\" ) } }","docstring":""} {"signature":"@ Test fun toUByte ( )","body":"{ compareConversion ( { it . toUByte ( ) } , { it . toUByteOrNull ( ) } ) { assertProduces ( \"\" , UByte . MAX_VALUE ) assertProduces ( \"\" , . toUByte ( ) ) assertProduces ( \"\" , . toUByte ( ) ) assertFailsOrNull ( \"\" ) assertFailsOrNull ( \"\" ) assertFailsOrNull ( \"\" ) assertFailsOrNull ( \"\" ) } compareConversionWithRadix ( String :: toUByte , String :: toUByteOrNull ) { assertProduces ( , \"\" , . toUByte ( ) ) assertProduces ( , \"\" , . toUByte ( ) ) assertProduces ( , \"\" , . toUByte ( ) ) assertProduces ( , \"\" , . toUByte ( ) ) assertFailsOrNull ( , \"\" ) assertFailsOrNull ( , \"\" ) assertFailsOrNull ( , \"\" ) } }","docstring":""} {"signature":"@ Test fun toUShort ( )","body":"{ compareConversion ( { it . toUShort ( ) } , { it . toUShortOrNull ( ) } ) { assertProduces ( \"\" , . toUShort ( ) ) assertProduces ( \"\" , UShort . MAX_VALUE ) assertFailsOrNull ( \"\" ) assertFailsOrNull ( \"\" ) assertFailsOrNull ( \"\" ) assertFailsOrNull ( \"\" ) } compareConversionWithRadix ( String :: toUShort , String :: toUShortOrNull ) { assertProduces ( , \"\" , . toUShort ( ) ) assertProduces ( , \"\" , UShort . MAX_VALUE ) assertFailsOrNull ( , \"\" ) assertFailsOrNull ( , \"\" ) assertFailsOrNull ( , \"\" ) assertFailsOrNull ( , \"\" ) } }","docstring":""} {"signature":"@ Test fun toUInt ( )","body":"{ compareConversion ( { it . toUInt ( ) } , { it . toUIntOrNull ( ) } ) { assertProduces ( \"\" , ) assertProduces ( \"\" , UInt . MAX_VALUE ) assertFailsOrNull ( \"\" ) assertFailsOrNull ( \"\" ) assertFailsOrNull ( \"\" ) assertFailsOrNull ( \"\" ) assertFailsOrNull ( \"\" ) assertFailsOrNull ( \"\" ) assertFailsOrNull ( \"\" ) } compareConversionWithRadix ( String :: toUInt , String :: toUIntOrNull ) { assertProduces ( , \"\" , ) assertProduces ( , \"\" , ) assertProduces ( , \"\" , ) assertProduces ( , \"\" , ) assertProduces ( , \"\" , ) assertProduces ( , \"\" , - ) assertProduces ( , \"\" , ) assertProduces ( , \"\" , ) assertFailsOrNull ( , \"\" ) assertFailsOrNull ( , \"\" ) assertFailsOrNull ( , \"\" ) assertFailsOrNull ( , \"\" ) assertFailsOrNull ( , \"\" ) assertFailsOrNull ( , \"\" ) } assertFailsWith < IllegalArgumentException > ( \"\" ) { \"\" . toUInt ( radix = ) } assertFailsWith < IllegalArgumentException > ( \"\" ) { \"\" . toUIntOrNull ( radix = ) } }","docstring":""} {"signature":"@ Test fun toULong ( )","body":"{ compareConversion ( { it . toULong ( ) } , { it . toULongOrNull ( ) } ) { assertProduces ( \"\" , ) assertProduces ( \"\" , ULong . MAX_VALUE ) assertFailsOrNull ( \"\" ) assertFailsOrNull ( \"\" ) assertFailsOrNull ( \"\" ) assertFailsOrNull ( \"\" ) assertFailsOrNull ( \"\" ) assertFailsOrNull ( \"\" ) assertFailsOrNull ( \"\" ) assertFailsOrNull ( \"\" ) } compareConversionWithRadix ( String :: toULong , String :: toULongOrNull ) { assertProduces ( , \"\" , ) assertProduces ( , \"\" , ) assertProduces ( , \"\" , ) assertProduces ( , \"\" , ) assertProduces ( , \"\" , ) assertProduces ( , \"\" , Long . MIN_VALUE . toULong ( ) ) assertProduces ( , \"\" , ULong . MAX_VALUE ) assertProduces ( , \"\" , ) assertProduces ( , \"\" , ) assertFailsOrNull ( , \"\" ) assertFailsOrNull ( , \"\" ) assertFailsOrNull ( , \"\" ) assertFailsOrNull ( , \"\" ) assertFailsOrNull ( , \"\" ) } assertFailsWith < IllegalArgumentException > ( \"\" ) { \"\" . toULong ( radix = ) } assertFailsWith < IllegalArgumentException > ( \"\" ) { \"\" . toULongOrNull ( radix = ) } }","docstring":""} {"signature":"@ Test fun byteToStringWithRadix ( )","body":"{ assertEquals ( \"\" , . toByte ( ) . toString ( ) ) assertEquals ( \"\" , Byte . MIN_VALUE . toString ( radix = ) ) assertEquals ( \"\" , Byte . MAX_VALUE . toString ( radix = ) ) assertEquals ( \"\" , Byte . MIN_VALUE . toString ( radix = ) ) assertFailsWith < IllegalArgumentException > ( \"\" ) { . toByte ( ) . toString ( radix = ) } assertFailsWith < IllegalArgumentException > ( \"\" ) { . toByte ( ) . toString ( radix = ) } }","docstring":""} {"signature":"@ Test fun shortToStringWithRadix ( )","body":"{ assertEquals ( \"\" , . toShort ( ) . toString ( radix = ) . uppercase ( ) ) assertEquals ( \"\" , ( - ) . toShort ( ) . toString ( radix = ) ) assertEquals ( \"\" , ( - ) . toShort ( ) . toString ( radix = ) ) assertFailsWith < IllegalArgumentException > ( \"\" ) { . toShort ( ) . toString ( radix = ) } assertFailsWith < IllegalArgumentException > ( \"\" ) { . toShort ( ) . toString ( radix = ) } }","docstring":""} {"signature":"@ Test fun intToStringWithRadix ( )","body":"{ assertEquals ( \"\" , ( - ) . toString ( radix = ) ) assertEquals ( \"\" , . toString ( radix = ) ) assertEquals ( \"\" , . toString ( radix = ) ) assertFailsWith < IllegalArgumentException > ( \"\" ) { . toString ( radix = ) } assertFailsWith < IllegalArgumentException > ( \"\" ) { . toString ( radix = ) } }","docstring":""} {"signature":"@ Test fun longToStringWithRadix ( )","body":"{ assertEquals ( \"\" , . toString ( radix = ) ) assertEquals ( \"\" , . toString ( radix = ) ) val values = listOf ( Int . MAX_VALUE . toLong ( ) , Int . MIN_VALUE . toLong ( ) , Int . MAX_VALUE + , Long . MAX_VALUE , Long . MIN_VALUE ) val expected = listOf ( to listOf ( \"\" , \"\" , \"\" , \"\" , \"\" ) , to listOf ( \"\" , \"\" , \"\" , \"\" , \"\" ) , to listOf ( \"\" , \"\" , \"\" , \"\" , \"\" ) , to listOf ( \"\" , \"\" , \"\" , \"\" , \"\" ) , to listOf ( \"\" , \"\" , \"\" , \"\" , \"\" ) , to listOf ( \"\" , \"\" , \"\" , \"\" , \"\" ) , to listOf ( \"\" , \"\" , \"\" , \"\" , \"\" ) , to listOf ( \"\" , \"\" , \"\" , \"\" , \"\" ) , to listOf ( \"\" , \"\" , \"\" , \"\" , \"\" ) , to listOf ( \"\" , \"\" , \"\" , \"\" , \"\" ) , to listOf ( \"\" , \"\" , \"\" , \"\" , \"\" ) , to listOf ( \"\" , \"\" , \"\" , \"\" , \"\" ) , to listOf ( \"\" , \"\" , \"\" , \"\" , \"\" ) , to listOf ( \"\" , \"\" , \"\" , \"\" , \"\" ) , to listOf ( \"\" , \"\" , \"\" , \"\" , \"\" ) , to listOf ( \"\" , \"\" , \"\" , \"\" , \"\" ) , to listOf ( \"\" , \"\" , \"\" , \"\" , \"\" ) , to listOf ( \"\" , \"\" , \"\" , \"\" , \"\" ) , to listOf ( \"\" , \"\" , \"\" , \"\" , \"\" ) , to listOf ( \"\" , \"\" , \"\" , \"\" , \"\" ) , to listOf ( \"\" , \"\" , \"\" , \"\" , \"\" ) , to listOf ( \"\" , \"\" , \"\" , \"\" , \"\" ) , to listOf ( \"\" , \"\" , \"\" , \"\" , \"\" ) , to listOf ( \"\" , \"\" , \"\" , \"\" , \"\" ) , to listOf ( \"\" , \"\" , \"\" , \"\" , \"\" ) , to listOf ( \"\" , \"\" , \"\" , \"\" , \"\" ) , to listOf ( \"\" , \"\" , \"\" , \"\" , \"\" ) , to listOf ( \"\" , \"\" , \"\" , \"\" , \"\" ) , to listOf ( \"\" , \"\" , \"\" , \"\" , \"\" ) , to listOf ( \"\" , \"\" , \"\" , \"\" , \"\" ) , to listOf ( \"\" , \"\" , \"\" , \"\" , \"\" ) , to listOf ( \"\" , \"\" , \"\" , \"\" , \"\" ) , to listOf ( \"\" , \"\" , \"\" , \"\" , \"\" ) , to listOf ( \"\" , \"\" , \"\" , \"\" , \"\" ) , to listOf ( \"\" , \"\" , \"\" , \"\" , \"\" ) , ) for ( ( base , expectedValues ) in expected ) { for ( ( index , value ) in values . withIndex ( ) ) { assertEquals ( expectedValues [ index ] , value . toString ( base ) , \"\" ) } } assertFailsWith < IllegalArgumentException > ( \"\" ) { . toString ( radix = ) } assertFailsWith < IllegalArgumentException > ( \"\" ) { . toString ( radix = ) } }","docstring":""} {"signature":"@ Test fun ubyteToStringWithRadix ( )","body":"{ assertEquals ( \"\" , . toUByte ( ) . toString ( ) ) assertEquals ( \"\" , Byte . MIN_VALUE . toUByte ( ) . toString ( radix = ) ) assertEquals ( \"\" , UByte . MAX_VALUE . toString ( radix = ) ) assertEquals ( \"\" , Byte . MIN_VALUE . toUByte ( ) . toString ( radix = ) ) assertEquals ( \"\" , UByte . MAX_VALUE . toString ( radix = ) ) assertFailsWith < IllegalArgumentException > ( \"\" ) { . toUByte ( ) . toString ( radix = ) } assertFailsWith < IllegalArgumentException > ( \"\" ) { . toUByte ( ) . toString ( radix = ) } }","docstring":""} {"signature":"@ Test fun ushortToStringWithRadix ( )","body":"{ assertEquals ( \"\" , . toUShort ( ) . toString ( radix = ) . uppercase ( ) ) assertEquals ( \"\" , . toUShort ( ) . toString ( radix = ) ) assertEquals ( \"\" , UShort . MAX_VALUE . toString ( radix = ) ) assertEquals ( \"\" , UShort . MAX_VALUE . toString ( radix = ) ) assertFailsWith < IllegalArgumentException > ( \"\" ) { . toUShort ( ) . toString ( radix = ) } assertFailsWith < IllegalArgumentException > ( \"\" ) { . toUShort ( ) . toString ( radix = ) } }","docstring":""} {"signature":"@ Test fun uintToStringWithRadix ( )","body":"{ assertEquals ( \"\" , ( - ) . toUInt ( ) . toString ( radix = ) ) assertEquals ( \"\" , UInt . MAX_VALUE . toString ( radix = ) ) assertEquals ( \"\" , . toString ( radix = ) ) assertEquals ( \"\" , . toString ( radix = ) ) assertEquals ( \"\" , UInt . MAX_VALUE . toString ( radix = ) ) assertFailsWith < IllegalArgumentException > ( \"\" ) { . toString ( radix = ) } assertFailsWith < IllegalArgumentException > ( \"\" ) { . toString ( radix = ) } }","docstring":""} {"signature":"@ Test fun ulongToStringWithRadix ( )","body":"{ assertEquals ( \"\" , . toString ( radix = ) ) assertEquals ( \"\" , . toString ( radix = ) ) assertEquals ( \"\" , Long . MIN_VALUE . toULong ( ) . toString ( radix = ) ) assertEquals ( \"\" , ULong . MAX_VALUE . toString ( radix = ) ) assertEquals ( \"\" , . toString ( radix = ) ) assertFailsWith < IllegalArgumentException > ( \"\" ) { . toString ( radix = ) } assertFailsWith < IllegalArgumentException > ( \"\" ) { . toString ( radix = ) } }","docstring":""} {"signature":"internal fun doubleTotalOrderEquals ( a : Double ? , b : Double ? ) : Boolean","body":"= ( a as Any ? ) == b","docstring":""} {"signature":"internal fun floatTotalOrderEquals ( a : Float ? , b : Float ? ) : Boolean","body":"= ( a as Any ? ) == b","docstring":""} {"signature":"internal fun < T : Any > compareConversion ( convertOrFail : ( String ) -> T , convertOrNull : ( String ) -> T ? , equality : ( T , T ? ) -> Boolean = { a , b -> a == b } , assertions : ConversionContext < T > . ( ) -> Unit )","body":"{ ConversionContext ( convertOrFail , convertOrNull , equality ) . assertions ( ) }","docstring":""} {"signature":"internal fun < T : Any > compareConversionWithRadix ( convertOrFail : String . ( Int ) -> T , convertOrNull : String . ( Int ) -> T ? , assertions : ConversionWithRadixContext < T > . ( ) -> Unit )","body":"{ ConversionWithRadixContext ( convertOrFail , convertOrNull ) . assertions ( ) }","docstring":""} {"signature":"private fun assertEquals ( expected : T , actual : T ? , input : String , operation : String )","body":"{ assertTrue ( equality ( expected , actual ) , \"\" ) }","docstring":""} {"signature":"fun assertProduces ( input : String , output : T )","body":"{ assertEquals ( output , convertOrFail ( input ) , input , \"\" ) assertEquals ( output , convertOrNull ( input ) , input , \"\" ) }","docstring":""} {"signature":"fun assertFailsOrNull ( input : String )","body":"{ assertFailsWith < NumberFormatException > ( \"\" ) { convertOrFail ( input ) } assertNull ( convertOrNull ( input ) , message = \"\" ) }","docstring":""} {"signature":"fun assertProduces ( radix : Int , input : String , output : T )","body":"{ assertEquals ( output , convertOrFail ( input , radix ) ) assertEquals ( output , convertOrNull ( input , radix ) ) }","docstring":""} {"signature":"fun assertFailsOrNull ( radix : Int , input : String )","body":"{ assertFailsWith < NumberFormatException > ( \"\" , { convertOrFail ( input , radix ) } ) assertNull ( convertOrNull ( input , radix ) , message = \"\" ) }","docstring":""} {"signature":"@ Test fun doubleTest ( )","body":"{ assertEquals ( ( ) . toString ( ) , \"\" ) assertEquals ( ( - ) . toString ( ) , \"\" ) testExceptOn ( TestPlatform . Js ) { assertEquals ( ( ) . toString ( ) , \"\" ) assertEquals ( ( - ) . toString ( ) , \"\" ) } assertEquals ( Double . NaN . toString ( ) , \"\" ) assertEquals ( Double . POSITIVE_INFINITY . toString ( ) , \"\" ) assertEquals ( Double . NEGATIVE_INFINITY . toString ( ) , \"\" ) }","docstring":""} {"signature":"@ Test fun floatTest ( )","body":"{ assertEquals ( ( ) . toString ( ) , \"\" ) assertEquals ( ( - ) . toString ( ) , \"\" ) testExceptOn ( TestPlatform . Js ) { assertEquals ( ( ) . toString ( ) , \"\" ) assertEquals ( ( - ) . toString ( ) , \"\" ) } assertEquals ( Float . NaN . toString ( ) , \"\" ) assertEquals ( Float . POSITIVE_INFINITY . toString ( ) , \"\" ) assertEquals ( Float . NEGATIVE_INFINITY . toString ( ) , \"\" ) }","docstring":""} {"signature":"private fun < T > systemProperty ( name : String , transform : String . ( ) -> T ) : T ? ","body":"= System . getProperty ( name ) ? . transform ( )","docstring":""} {"signature":"private fun timeSystemProperty ( name : String ) : TimeValue ? ","body":"= systemProperty ( name ) { toLong ( ) . let { TimeValue . milliseconds ( it ) } }","docstring":""} {"signature":"private fun intSystemProperty ( name : String ) : Int ? ","body":"= systemProperty ( name ) { toInt ( ) }","docstring":""} {"signature":"private fun arraySystemProperty ( name : String ) : Array < String > ? ","body":"= systemProperty ( name ) { split ( \"\" ) . toTypedArray ( ) }","docstring":""} {"signature":"fun ChainedOptionsBuilder . defaultOptions ( ) : ChainedOptionsBuilder","body":"= this . jvmArgs ( * jvmArgs ) . addProfiler ( \"\" ) . param ( sizeParam , * ( arraySystemProperty ( sizeParam ) ? : sizeParamValues ) ) . param ( hashCodeTypeParam , * ( arraySystemProperty ( hashCodeTypeParam ) ? : hashCodeTypeParamValues ) ) . param ( immutablePercentageParam , * ( arraySystemProperty ( immutablePercentageParam ) ? : immutablePercentageParamValues ) ) . forks ( intSystemProperty ( \"\" ) ? : forks ) . warmupIterations ( intSystemProperty ( \"\" ) ? : warmupIterations ) . measurementIterations ( intSystemProperty ( \"\" ) ? : measurementIterations ) . warmupTime ( timeSystemProperty ( \"\" ) ? : warmupTime ) . measurementTime ( timeSystemProperty ( \"\" ) ? : measurementTime ) . mode ( Mode . AverageTime ) . timeUnit ( TimeUnit . MICROSECONDS )","docstring":""} {"signature":"inline fun runBenchmarks ( outputFileName : String , configure : ChainedOptionsBuilder . ( ) -> ChainedOptionsBuilder )","body":"{ val options = OptionsBuilder ( ) . defaultOptions ( ) . configure ( ) . build ( ) val outputPath = \"\" val regressionReferencePath = \"\" Runner ( options ) . run ( ) . toBenchmarkResults ( ) . also { printCsvResults ( it , \"\" ) } . let { calculateRegression ( it , \"\" ) } ? . also { printReport ( it , System . out , descendingScoreRegress = true ) } ? . also { printCsvResults ( it , \"\" ) } }","docstring":""} {"signature":"internal fun __ieee754_exp ( _x : Double ) : Double","body":"{ var x : Double = _x var y : Double var hi : Double = var lo : Double = var c : Double var t : Double var k : Int = var xsb : Int var hx : UInt hx = __HIu ( x ) xsb = ( ( hx shr ) and ) . toInt ( ) hx = hx and if ( hx >= ) { if ( hx >= ) { if ( ( ( hx and ) or __LOu ( x ) ) != ) return x + x else return if ( xsb == ) x else } if ( x > o_threshold ) return huge * huge if ( x < u_threshold ) return twom1000 * twom1000 } if ( hx > ) { if ( hx < ) { hi = x - ln2HI [ xsb ] ; lo = ln2LO [ xsb ] ; k = - xsb - xsb } else { k = ( invln2 * x + halF [ xsb ] ) . toInt ( ) t = k . toDouble ( ) hi = x - t * ln2HI [ ] lo = t * ln2LO [ ] } x = hi - lo } else if ( hx < ) { if ( huge + x > one ) return one + x } else k = t = x * x c = x - t * ( P1 + t * ( P2 + t * ( P3 + t * ( P4 + t * P5 ) ) ) ) if ( k == ) return one - ( ( x * c ) / ( c - ) - x ) else y = one - ( ( lo - ( x * c ) / ( - c ) ) - hi ) if ( k >= - ) { y = doubleSetWord ( d = y , hi = __HI ( y ) + ( k shl ) ) return y } else { y = doubleSetWord ( d = y , hi = __HI ( y ) + ( ( k + ) shl ) ) return y * twom1000 } }","docstring":""} {"signature":"internal actual fun String . nativeIndexOf ( ch : Char , fromIndex : Int ) : Int","body":"{ for ( index in fromIndex . coerceAtLeast ( ) .. this . lastIndex ) { if ( ch == get ( index ) ) return index } return - }","docstring":"/**\n * Returns the index within this string of the first occurrence of the specified character, starting from the specified offset.\n */"} {"signature":"internal actual fun String . nativeLastIndexOf ( ch : Char , fromIndex : Int ) : Int","body":"{ for ( index in fromIndex . coerceAtMost ( this . lastIndex ) downTo ) { if ( ch == get ( index ) ) return index } return - }","docstring":"/**\n * Returns the index within this string of the last occurrence of the specified character.\n */"} {"signature":"internal actual fun String . nativeIndexOf ( str : String , fromIndex : Int ) : Int","body":"{ for ( index in fromIndex . coerceAtLeast ( ) .. ( this . length - str . length ) ) { if ( str . regionMatchesImpl ( , this , index , str . length , false ) ) { return index } } return - }","docstring":"/**\n * Returns the index within this string of the first occurrence of the specified substring, starting from the specified offset.\n */"} {"signature":"internal actual fun String . nativeLastIndexOf ( str : String , fromIndex : Int ) : Int","body":"{ for ( index in fromIndex . coerceAtMost ( this . length - str . length ) downTo ) { if ( str . regionMatchesImpl ( , this , index , str . length , false ) ) { return index } } return - }","docstring":"/**\n * Returns the index within this string of the last occurrence of the specified character, starting from the specified offset.\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ Deprecated ( \"\" , ReplaceWith ( \"\" ) ) @ DeprecatedSinceKotlin ( warningSince = \"\" , errorSince = \"\" ) public actual fun String ( chars : CharArray ) : String","body":"= chars . concatToString ( )","docstring":"/**\n * Converts the characters in the specified array to a string.\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ Deprecated ( \"\" , ReplaceWith ( \"\" ) ) @ DeprecatedSinceKotlin ( warningSince = \"\" , errorSince = \"\" ) public actual fun String ( chars : CharArray , offset : Int , length : Int ) : String","body":"{ if ( offset < || length < || offset + length > chars . size ) throw IndexOutOfBoundsException ( ) val copy = WasmCharArray ( length ) copyWasmArray ( chars . storage , copy , offset , , length ) return copy . createString ( ) }","docstring":"/**\n * Converts the characters from a portion of the specified array to a string.\n *\n * @throws IndexOutOfBoundsException if either [offset] or [length] are less than zero\n * or `offset + length` is out of [chars] array bounds.\n */"} {"signature":"@ SinceKotlin ( \"\" ) public actual fun CharArray . concatToString ( ) : String","body":"{ val thisStorage = this . storage val thisLength = thisStorage . len ( ) val copy = WasmCharArray ( thisLength ) copyWasmArray ( this . storage , copy , , , thisLength ) return copy . createString ( ) }","docstring":"/**\n * Concatenates characters in this [CharArray] into a String.\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ Suppress ( \"\" ) public actual fun CharArray . concatToString ( startIndex : Int = , endIndex : Int = this . size ) : String","body":"{ AbstractList . checkBoundsIndexes ( startIndex , endIndex , this . size ) val length = endIndex - startIndex val copy = WasmCharArray ( length ) copyWasmArray ( this . storage , copy , startIndex , , length ) return copy . createString ( ) }","docstring":"/**\n * Concatenates characters in this [CharArray] or its subrange into a String.\n *\n * @param startIndex the beginning (inclusive) of the subrange of characters, 0 by default.\n * @param endIndex the end (exclusive) of the subrange of characters, size of this array by default.\n *\n * @throws IndexOutOfBoundsException if [startIndex] is less than zero or [endIndex] is greater than the size of this array.\n * @throws IllegalArgumentException if [startIndex] is greater than [endIndex].\n */"} {"signature":"@ SinceKotlin ( \"\" ) public actual fun String . toCharArray ( ) : CharArray","body":"{ val thisChars = this . chars val thisLength = thisChars . len ( ) val newArray = CharArray ( thisLength ) copyWasmArray ( thisChars , newArray . storage , , , thisLength ) return newArray }","docstring":"/**\n * Returns a [CharArray] containing characters of this string.\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ Suppress ( \"\" ) public actual fun String . toCharArray ( startIndex : Int = , endIndex : Int = this . length ) : CharArray","body":"{ AbstractList . checkBoundsIndexes ( startIndex , endIndex , length ) val newLength = endIndex - startIndex val newArray = CharArray ( newLength ) copyWasmArray ( this . chars , newArray . storage , startIndex , , newLength ) return newArray }","docstring":"/**\n * Returns a [CharArray] containing characters of this string or its substring.\n *\n * @param startIndex the beginning (inclusive) of the substring, 0 by default.\n * @param endIndex the end (exclusive) of the substring, length of this string by default.\n *\n * @throws IndexOutOfBoundsException if [startIndex] is less than zero or [endIndex] is greater than the length of this string.\n * @throws IllegalArgumentException if [startIndex] is greater than [endIndex].\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ Suppress ( \"\" ) public actual fun String . toCharArray ( destination : CharArray , destinationOffset : Int = , startIndex : Int = , endIndex : Int = length ) : CharArray","body":"{ AbstractList . checkBoundsIndexes ( startIndex , endIndex , length ) val rangeSize = endIndex - startIndex AbstractList . checkBoundsIndexes ( destinationOffset , destinationOffset + rangeSize , destination . size ) copyWasmArray ( this . chars , destination . storage , startIndex , destinationOffset , rangeSize ) return destination }","docstring":"/**\n * Copies characters from this string into the [destination] character array and returns that array.\n *\n * @param destination the array to copy to.\n * @param destinationOffset the position in the array to copy to.\n * @param startIndex the start offset (inclusive) of the substring to copy.\n * @param endIndex the end offset (exclusive) of the substring to copy.\n *\n * @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of this string builder indices or when `startIndex > endIndex`.\n * @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationOffset],\n * or when that index is out of the [destination] array indices range.\n */"} {"signature":"@ SinceKotlin ( \"\" ) public actual fun ByteArray . decodeToString ( ) : String","body":"{ return decodeUtf8 ( this , , size , false ) }","docstring":"/**\n * Decodes a string from the bytes in UTF-8 encoding in this array.\n *\n * Malformed byte sequences are replaced by the replacement char `\\uFFFD`.\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ Suppress ( \"\" ) public actual fun ByteArray . decodeToString ( startIndex : Int = , endIndex : Int = this . size , throwOnInvalidSequence : Boolean = false ) : String","body":"{ AbstractList . checkBoundsIndexes ( startIndex , endIndex , this . size ) return decodeUtf8 ( this , startIndex , endIndex , throwOnInvalidSequence ) }","docstring":"/**\n * Decodes a string from the bytes in UTF-8 encoding in this array or its subrange.\n *\n * @param startIndex the beginning (inclusive) of the subrange to decode, 0 by default.\n * @param endIndex the end (exclusive) of the subrange to decode, size of this array by default.\n * @param throwOnInvalidSequence specifies whether to throw an exception on malformed byte sequence or replace it by the replacement char `\\uFFFD`.\n *\n * @throws IndexOutOfBoundsException if [startIndex] is less than zero or [endIndex] is greater than the size of this array.\n * @throws IllegalArgumentException if [startIndex] is greater than [endIndex].\n * @throws CharacterCodingException if the byte array contains malformed UTF-8 byte sequence and [throwOnInvalidSequence] is true.\n */"} {"signature":"@ SinceKotlin ( \"\" ) public actual fun String . encodeToByteArray ( ) : ByteArray","body":"{ return encodeUtf8 ( this , , length , false ) }","docstring":"/**\n * Encodes this string to an array of bytes in UTF-8 encoding.\n *\n * Any malformed char sequence is replaced by the replacement byte sequence.\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ Suppress ( \"\" ) public actual fun String . encodeToByteArray ( startIndex : Int = , endIndex : Int = this . length , throwOnInvalidSequence : Boolean = false ) : ByteArray","body":"{ AbstractList . checkBoundsIndexes ( startIndex , endIndex , length ) return encodeUtf8 ( this , startIndex , endIndex , throwOnInvalidSequence ) }","docstring":"/**\n * Encodes this string or its substring to an array of bytes in UTF-8 encoding.\n *\n * @param startIndex the beginning (inclusive) of the substring to encode, 0 by default.\n * @param endIndex the end (exclusive) of the substring to encode, length of this string by default.\n * @param throwOnInvalidSequence specifies whether to throw an exception on malformed char sequence or replace.\n *\n * @throws IndexOutOfBoundsException if [startIndex] is less than zero or [endIndex] is greater than the length of this string.\n * @throws IllegalArgumentException if [startIndex] is greater than [endIndex].\n * @throws CharacterCodingException if this string contains malformed char sequence and [throwOnInvalidSequence] is true.\n */"} {"signature":"public actual fun String . substring ( startIndex : Int ) : String","body":"= subSequence ( startIndex , this . length ) as String","docstring":"/**\n * Returns a substring of this string that starts at the specified [startIndex] and continues to the end of the string.\n */"} {"signature":"public actual fun String . substring ( startIndex : Int , endIndex : Int ) : String","body":"= subSequence ( startIndex , endIndex ) as String","docstring":"/**\n * Returns the substring of this string starting at the [startIndex] and ending right before the [endIndex].\n *\n * @param startIndex the start index (inclusive).\n * @param endIndex the end index (exclusive).\n */"} {"signature":"@ Deprecated ( \"\" , ReplaceWith ( \"\" ) ) @ DeprecatedSinceKotlin ( warningSince = \"\" ) public actual fun String . toUpperCase ( ) : String","body":"= uppercase ( )","docstring":"/**\n * Returns a copy of this string converted to upper case using the rules of the default locale.\n */"} {"signature":"@ SinceKotlin ( \"\" ) public actual fun String . uppercase ( ) : String","body":"= uppercaseImpl ( )","docstring":"/**\n * Returns a copy of this string converted to upper case using Unicode mapping rules of the invariant locale.\n *\n * This function supports one-to-many and many-to-one character mapping,\n * thus the length of the returned string can be different from the length of the original string.\n *\n * @sample samples.text.Strings.uppercase\n */"} {"signature":"@ Deprecated ( \"\" , ReplaceWith ( \"\" ) ) @ DeprecatedSinceKotlin ( warningSince = \"\" ) public actual fun String . toLowerCase ( ) : String","body":"= lowercase ( )","docstring":"/**\n * Returns a copy of this string converted to lower case using the rules of the default locale.\n */"} {"signature":"@ SinceKotlin ( \"\" ) public actual fun String . lowercase ( ) : String","body":"= lowercaseImpl ( )","docstring":"/**\n * Returns a copy of this string converted to lower case using Unicode mapping rules of the invariant locale.\n *\n * This function supports one-to-many and many-to-one character mapping,\n * thus the length of the returned string can be different from the length of the original string.\n *\n * @sample samples.text.Strings.lowercase\n */"} {"signature":"@ Deprecated ( \"\" , ReplaceWith ( \"\" ) ) @ DeprecatedSinceKotlin ( warningSince = \"\" ) public actual fun String . capitalize ( ) : String","body":"= replaceFirstChar ( Char :: uppercaseChar )","docstring":"/**\n * Returns a copy of this string having its first letter titlecased using the rules of the default locale,\n * or the original string if it's empty or already starts with a title case letter.\n *\n * The title case of a character is usually the same as its upper case with several exceptions.\n * The particular list of characters with the special title case form depends on the underlying platform.\n *\n * @sample samples.text.Strings.capitalize\n */"} {"signature":"@ Deprecated ( \"\" , ReplaceWith ( \"\" ) ) @ DeprecatedSinceKotlin ( warningSince = \"\" ) public actual fun String . decapitalize ( ) : String","body":"= replaceFirstChar ( Char :: lowercaseChar )","docstring":"/**\n * Returns a copy of this string having its first letter lowercased using the rules of the default locale,\n * or the original string if it's empty or already starts with a lower case letter.\n *\n * @sample samples.text.Strings.decapitalize\n */"} {"signature":"public actual fun CharSequence . repeat ( n : Int ) : String","body":"{ require ( n >= ) { \"\" } if ( isEmpty ( ) ) return \"\" return when ( n ) { -> \"\" -> this . toString ( ) else -> { val sequence = this buildString ( n * length ) { repeat ( n ) { append ( sequence ) } } } } }","docstring":"/**\n * Returns a string containing this char sequence repeated [n] times.\n * @throws [IllegalArgumentException] when n < 0.\n * @sample samples.text.Strings.repeat\n */"} {"signature":"@ Suppress ( \"\" ) public actual fun String . replace ( oldChar : Char , newChar : Char , ignoreCase : Boolean = false ) : String","body":"{ return buildString ( length ) { this@replace . forEach { c -> append ( if ( c . equals ( oldChar , ignoreCase ) ) newChar else c ) } } }","docstring":"/**\n * Returns a new string with all occurrences of [oldChar] replaced with [newChar].\n */"} {"signature":"@ Suppress ( \"\" ) public actual fun String . replace ( oldValue : String , newValue : String , ignoreCase : Boolean = false ) : String","body":"{ run { var occurrenceIndex : Int = indexOf ( oldValue , , ignoreCase ) if ( occurrenceIndex < ) return this val oldValueLength = oldValue . length val searchStep = oldValueLength . coerceAtLeast ( ) val newLengthHint = length - oldValueLength + newValue . length if ( newLengthHint < ) throw OutOfMemoryError ( ) val stringBuilder = StringBuilder ( newLengthHint ) var i = do { stringBuilder . append ( this , i , occurrenceIndex ) . append ( newValue ) i = occurrenceIndex + oldValueLength if ( occurrenceIndex >= length ) break occurrenceIndex = indexOf ( oldValue , occurrenceIndex + searchStep , ignoreCase ) } while ( occurrenceIndex > ) return stringBuilder . append ( this , i , length ) . toString ( ) } }","docstring":"/**\n * Returns a new string obtained by replacing all occurrences of the [oldValue] substring in this string\n * with the specified [newValue] string.\n */"} {"signature":"@ Suppress ( \"\" ) public actual fun String . replaceFirst ( oldChar : Char , newChar : Char , ignoreCase : Boolean = false ) : String","body":"{ val index = indexOf ( oldChar , ignoreCase = ignoreCase ) return if ( index < ) this else this . replaceRange ( index , index + , newChar . toString ( ) ) }","docstring":"/**\n * Returns a new string with the first occurrence of [oldChar] replaced with [newChar].\n */"} {"signature":"@ Suppress ( \"\" ) public actual fun String . replaceFirst ( oldValue : String , newValue : String , ignoreCase : Boolean = false ) : String","body":"{ val index = indexOf ( oldValue , ignoreCase = ignoreCase ) return if ( index < ) this else this . replaceRange ( index , index + oldValue . length , newValue ) }","docstring":"/**\n * Returns a new string obtained by replacing the first occurrence of the [oldValue] substring in this string\n * with the specified [newValue] string.\n */"} {"signature":"@ Suppress ( \"\" ) public actual fun String ? . equals ( other : String ? , ignoreCase : Boolean = false ) : Boolean","body":"{ if ( this == null ) return other == null if ( other == null ) return false if ( ! ignoreCase ) return this == other if ( this . length != other . length ) return false for ( index in until this . length ) { val thisChar = this [ index ] val otherChar = other [ index ] if ( ! thisChar . equals ( otherChar , ignoreCase ) ) { return false } } return true }","docstring":"/**\n * Returns `true` if this string is equal to [other], optionally ignoring character case.\n *\n * Two strings are considered to be equal if they have the same length and the same character at the same index.\n * If [ignoreCase] is true, the result of `Char.uppercaseChar().lowercaseChar()` on each character is compared.\n *\n * @param ignoreCase `true` to ignore character case when comparing strings. By default `false`.\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ Suppress ( \"\" ) public actual fun String . compareTo ( other : String , ignoreCase : Boolean = false ) : Int","body":"{ if ( ignoreCase ) { val n1 = this . length val n2 = other . length val min = minOf ( n1 , n2 ) if ( min == ) return n1 - n2 for ( index in until min ) { var thisChar = this [ index ] var otherChar = other [ index ] if ( thisChar != otherChar ) { thisChar = thisChar . uppercaseChar ( ) otherChar = otherChar . uppercaseChar ( ) if ( thisChar != otherChar ) { thisChar = thisChar . lowercaseChar ( ) otherChar = otherChar . lowercaseChar ( ) if ( thisChar != otherChar ) { return thisChar . compareTo ( otherChar ) } } } } return n1 - n2 } else { return compareTo ( other ) } }","docstring":"/**\n * Compares two strings lexicographically, optionally ignoring case differences.\n *\n * If [ignoreCase] is true, the result of `Char.uppercaseChar().lowercaseChar()` on each character is compared.\n */"} {"signature":"@ SinceKotlin ( \"\" ) public actual infix fun CharSequence ? . contentEquals ( other : CharSequence ? ) : Boolean","body":"= contentEqualsImpl ( other )","docstring":"/**\n * Returns `true` if the contents of this char sequence are equal to the contents of the specified [other],\n * i.e. both char sequences contain the same number of the same characters in the same order.\n *\n * @sample samples.text.Strings.contentEquals\n */"} {"signature":"@ SinceKotlin ( \"\" ) public actual fun CharSequence ? . contentEquals ( other : CharSequence ? , ignoreCase : Boolean ) : Boolean","body":"{ return if ( ignoreCase ) this . contentEqualsIgnoreCaseImpl ( other ) else this . contentEqualsImpl ( other ) }","docstring":"/**\n * Returns `true` if the contents of this char sequence are equal to the contents of the specified [other], optionally ignoring case difference.\n *\n * @param ignoreCase `true` to ignore character case when comparing contents.\n *\n * @sample samples.text.Strings.contentEquals\n */"} {"signature":"@ Suppress ( \"\" ) public actual fun String . startsWith ( prefix : String , ignoreCase : Boolean = false ) : Boolean","body":"= regionMatches ( , prefix , , prefix . length , ignoreCase )","docstring":"/**\n * Returns `true` if this string starts with the specified prefix.\n */"} {"signature":"@ Suppress ( \"\" ) public actual fun String . startsWith ( prefix : String , startIndex : Int , ignoreCase : Boolean = false ) : Boolean","body":"= regionMatches ( startIndex , prefix , , prefix . length , ignoreCase )","docstring":"/**\n * Returns `true` if a substring of this string starting at the specified offset [startIndex] starts with the specified prefix.\n */"} {"signature":"@ Suppress ( \"\" ) public actual fun String . endsWith ( suffix : String , ignoreCase : Boolean = false ) : Boolean","body":"= regionMatches ( length - suffix . length , suffix , , suffix . length , ignoreCase )","docstring":"/**\n * Returns `true` if this string ends with the specified suffix.\n */"} {"signature":"public actual fun CharSequence . regionMatches ( thisOffset : Int , other : CharSequence , otherOffset : Int , length : Int , ignoreCase : Boolean ) : Boolean","body":"= regionMatchesImpl ( thisOffset , other , otherOffset , length , ignoreCase )","docstring":"/**\n * Returns `true` if the specified range in this char sequence is equal to the specified range in another char sequence.\n * @param thisOffset the start offset in this char sequence of the substring to compare.\n * @param other the string against a substring of which the comparison is performed.\n * @param otherOffset the start offset in the other char sequence of the substring to compare.\n * @param length the length of the substring to compare.\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ Suppress ( \"\" ) public actual fun String . regionMatches ( thisOffset : Int , other : String , otherOffset : Int , length : Int , ignoreCase : Boolean = false ) : Boolean","body":"= regionMatchesImpl ( thisOffset , other , otherOffset , length , ignoreCase )","docstring":"/**\n * Returns `true` if the specified range in this string is equal to the specified range in another string.\n * @param thisOffset the start offset in this string of the substring to compare.\n * @param other the string against a substring of which the comparison is performed.\n * @param otherOffset the start offset in the other string of the substring to compare.\n * @param length the length of the substring to compare.\n */"} {"signature":"fun main ( )","body":"{ ok = \"\" }","docstring":""} {"signature":"fun box ( )","body":"= ok","docstring":""} {"signature":"@ Synchronized @ JvmOverloads fun testJvmOverloads ( a : Int = )","body":"{ }","docstring":""} {"signature":"@ Synchronized private fun testAccessor ( )","body":"{ }","docstring":""} {"signature":"fun lambda ( )","body":"= { -> testAccessor ( ) }","docstring":""} {"signature":"@ Synchronized @ JvmStatic fun testJvmStatic ( )","body":"{ }","docstring":""} {"signature":"@ Synchronized fun testInlineClassFun ( )","body":"{ }","docstring":""} {"signature":"fun f ( x : String = \"\" ) : String","body":"fun f ( x : String = \"\" ) : String","docstring":""} {"signature":"fun g ( x : String = \"\" ) : String","body":"fun g ( x : String = \"\" ) : String","docstring":""} {"signature":"fun h ( x : T = prop ) : T","body":"fun h ( x : T = prop ) : T","docstring":""} {"signature":"open fun f ( x : String )","body":"= x","docstring":""} {"signature":"open fun g ( x : T )","body":"= x","docstring":""} {"signature":"open fun h ( x : String )","body":"= x","docstring":""} {"signature":"fun box ( ) : String","body":"{ val i : I < String > = B ( ) var result = i . f ( ) + i . g ( ) + i . h ( ) if ( result != \"\" ) return \"\" val b = B ( ) result = b . f ( ) + b . g ( ) + b . h ( ) if ( result != \"\" ) return \"\" val a : A < String > = B ( ) result = a . f ( \"\" ) + a . g ( \"\" ) + a . h ( \"\" ) if ( result != \"\" ) return \"\" return \"\" }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val rem = u % ub if ( rem != uc ) throw AssertionError ( \"\" ) return \"\" }","docstring":""} {"signature":"fun lenetWithEarlyStoppingCallback ( )","body":"{ val ( train , test ) = mnist ( ) lenet5Classic . use { val earlyStopping = EarlyStopping ( monitor = EpochTrainingEvent :: valLossValue , minDelta = , patience = , verbose = true , mode = EarlyStoppingMode . AUTO , baseline = , restoreBestWeights = false ) it . compile ( optimizer = Adam ( clipGradient = ClipGradientByValue ( ) ) , loss = Losses . SOFT_MAX_CROSS_ENTROPY_WITH_LOGITS , metric = Metrics . ACCURACY ) it . logSummary ( ) it . fit ( dataset = train , epochs = EPOCHS , batchSize = TRAINING_BATCH_SIZE , earlyStopping ) val accuracy = it . evaluate ( dataset = test , batchSize = TEST_BATCH_SIZE ) . metrics [ Metrics . ACCURACY ] println ( \"\" ) } }","docstring":"/**\n * This example shows how to do image classification from scratch using [lenet5Classic], without leveraging pre-trained weights or a pre-made model.\n * We demonstrate the workflow on the Mnist classification dataset.\n *\n * It includes:\n * - dataset loading from S3\n * - callback definition\n * - model compilation with [EarlyStopping] callback\n * - model summary\n * - model training\n * - model evaluation\n */"} {"signature":"fun main ( ) : Unit","body":"= lenetWithEarlyStoppingCallback ( )","docstring":"/** */"} {"signature":"internal inline fun < reified T > deserializeConfig ( configString : String , deserializer : DeserializationStrategy < T > , useNamingConvention : Boolean = false , modules : SerializersModule = Hocon . serializersModule ) : T","body":"{ val ucnc = useNamingConvention return Hocon { useConfigNamingConvention = ucnc serializersModule = modules } . decodeFromConfig ( deserializer , ConfigFactory . parseString ( configString ) ) }","docstring":""} {"signature":"@ Test fun `complex config` ( )","body":"{ val obj = deserializeConfig ( configString , ComplexConfig . serializer ( ) ) with ( obj ) { assertEquals ( , i ) assertEquals ( \"\" , s ) assertEquals ( listOf ( , , ) , iList ) assertEquals ( listOf ( Simple ( ) ) , inner ) assertEquals ( listOf ( listOf ( \"\" , \"\" ) , listOf ( \"\" , \"\" ) ) , ll ) assertEquals ( mapOf ( \"\" to ConfigObjectInner ( \"\" , f = ) , \"\" to ConfigObjectInner ( \"\" ) ) , m ) } }","docstring":""} {"signature":"@ Test fun `very complex config` ( )","body":"{ val obj = deserializeConfig ( complexConfigString , VeryComplexConfig . serializer ( ) ) with ( obj ) { assertEquals ( listOf ( mapOf ( \"\" to listOf ( Simple ( ) , null ) ) , null ) , l ) assertEquals ( mapOf ( \"\" to null , \"\" to NestedObj ( listOf ( Simple ( ) ) ) ) , m ) } }","docstring":""} {"signature":"@ Test fun `simple config` ( )","body":"{ val conf = ConfigFactory . parseString ( \"\" ) assertEquals ( , conf . getInt ( \"\" ) ) val simple = Hocon . decodeFromConfig ( Simple . serializer ( ) , conf ) assertEquals ( Simple ( ) , simple ) }","docstring":""} {"signature":"@ Test fun `config with object` ( )","body":"{ val conf = ConfigFactory . parseString ( \"\" ) assertEquals ( , conf . getInt ( \"\" ) ) assertEquals ( \"\" , conf . getString ( \"\" ) ) val obj = Hocon . decodeFromConfig ( ConfigObject . serializer ( ) , conf ) assertEquals ( , obj . a ) assertEquals ( \"\" , obj . b . e ) assertEquals ( , obj . b . f ) }","docstring":""} {"signature":"@ Test fun `config with list` ( )","body":"{ val obj = deserializeConfig ( \"\" , ConfWithList . serializer ( ) ) assertEquals ( , obj . a ) assertEquals ( listOf ( , , ) , obj . b ) }","docstring":""} {"signature":"@ Test fun `config with nested object` ( )","body":"{ val obj = deserializeConfig ( \"\" , NestedObj . serializer ( ) ) assertEquals ( listOf ( , , ) . map { Simple ( it ) } , obj . x ) }","docstring":""} {"signature":"@ Test fun `config with map` ( )","body":"{ val obj = deserializeConfig ( \"\" , ConfWithMap . serializer ( ) ) assertEquals ( mapOf ( \"\" to , \"\" to , \"\" to ) , obj . x ) }","docstring":""} {"signature":"fun block ( lambda : ( ) -> Unit )","body":"{ contract { callsInPlace ( lambda , InvocationKind . EXACTLY_ONCE ) } lambda ( ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val list : List < Int > block { list = listOf ( , , ) } block { if ( listOf ( , , ) . first { list . contains ( it ) } != ) throw AssertionError ( \"\" ) } return \"\" }","docstring":""} {"signature":"@ Test fun `test jvm withJava creates corresponding java source sets eagerly` ( )","body":"= buildProjectWithMPP ( ) . runLifecycleAwareTest { assertNull ( javaSourceSets . findByName ( \"\" ) ) multiplatformExtension . jvm ( ) assertNull ( javaSourceSets . findByName ( \"\" ) , \"\" ) multiplatformExtension . jvm ( ) . withJava ( ) assertNotNull ( javaSourceSets . findByName ( \"\" ) , \"\" ) assertNotNull ( javaSourceSets . findByName ( \"\" ) , \"\" ) multiplatformExtension . jvm ( ) . compilations . create ( \"\" ) assertNotNull ( javaSourceSets . findByName ( \"\" ) , \"\" ) }","docstring":""} {"signature":"operator fun inc ( ) : ST","body":"= ST ( )","docstring":""} {"signature":"fun main ( )","body":"{ val x : ST = ++ topLevel }","docstring":""} {"signature":"fun setOK ( other : B )","body":"{ other . foo = \"\" }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val b = B ( ) b . setOK ( b ) return b . foo }","docstring":""} {"signature":"override fun < R , D > acceptChildren ( visitor : FirVisitor < R , D > , data : D )","body":"{ annotations . forEach { it . accept ( visitor , data ) } }","docstring":""} {"signature":"override fun < D > transformChildren ( transformer : FirTransformer < D > , data : D ) : FirLiteralExpressionImpl < T >","body":"{ transformAnnotations ( transformer , data ) return this }","docstring":""} {"signature":"override fun < D > transformAnnotations ( transformer : FirTransformer < D > , data : D ) : FirLiteralExpressionImpl < T >","body":"{ annotations . transformInplace ( transformer , data ) return this }","docstring":""} {"signature":"override fun replaceConeTypeOrNull ( newConeTypeOrNull : ConeKotlinType ? )","body":"{ coneTypeOrNull = newConeTypeOrNull }","docstring":""} {"signature":"override fun replaceAnnotations ( newAnnotations : List < FirAnnotation > )","body":"{ annotations = newAnnotations . toMutableOrEmpty ( ) }","docstring":""} {"signature":"override fun replaceKind ( newKind : ConstantValueKind < T > )","body":"{ kind = newKind }","docstring":""} {"signature":"fun foo ( a : String ) : String","body":"= bar ( ) + a","docstring":""} {"signature":"fun bar ( ) : String","body":"fun bar ( ) : String","docstring":""} {"signature":"suspend fun suspendK ( a : String )","body":"= a + \"\"","docstring":""} {"signature":"suspend fun test ( a : String ) : String","body":"= super < IFoo > . foo ( suspendK ( a ) )","docstring":""} {"signature":"override fun bar ( ) : String","body":"= \"\"","docstring":""} {"signature":"fun builder ( c : suspend ( ) -> Unit )","body":"{ c . startCoroutine ( EmptyContinuation ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ var result = \"\" builder { result = FooImpl ( ) . test ( \"\" ) } return result }","docstring":""} {"signature":"fun sequenceFromFunctionWithInitialValue ( )","body":"{ val values = generateSequence ( ) { n -> if ( n > ) n - else null } assertEquals ( arrayListOf ( , , , ) , values . toList ( ) ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ sequenceFromFunctionWithInitialValue ( ) return \"\" }","docstring":""} {"signature":"fun getMemberOwnerKind ( descriptor : DeclarationDescriptor ) : OwnerKind","body":"= when ( descriptor ) { is PackageFragmentDescriptor -> PACKAGE is ClassDescriptor -> IMPLEMENTATION else -> throw AssertionError ( \"\" ) }","docstring":""} {"signature":"override fun equals ( other : Any ? ) : Boolean","body":"{ if ( this === other ) return true if ( other !is Experimentality ) return false if ( annotationClassId != other . annotationClassId ) return false if ( severity != other . severity ) return false if ( message != other . message ) return false return true }","docstring":""} {"signature":"override fun hashCode ( ) : Int","body":"{ var result = annotationClassId . hashCode ( ) result = * result + severity . hashCode ( ) result = * result + ( message ? . hashCode ( ) ? : ) return result }","docstring":""} {"signature":"fun FirRegularClassSymbol . loadExperimentalityForMarkerAnnotation ( session : FirSession , annotatedOwnerClassName : String ? = null ) : Experimentality ?","body":"{ lazyResolveToPhase ( FirResolvePhase . BODY_RESOLVE ) @ OptIn ( SymbolInternals :: class ) return fir . loadExperimentalityForMarkerAnnotation ( session , annotatedOwnerClassName ) }","docstring":""} {"signature":"fun FirBasedSymbol < * > . loadExperimentalitiesFromAnnotationTo ( session : FirSession , result : MutableCollection < Experimentality > )","body":"{ lazyResolveToPhase ( FirResolvePhase . STATUS ) @ OptIn ( SymbolInternals :: class ) fir . loadExperimentalitiesFromAnnotationTo ( session , result , fromSupertype = false ) }","docstring":""} {"signature":"private fun FirDeclaration . loadExperimentalitiesFromAnnotationTo ( session : FirSession , result : MutableCollection < Experimentality > , fromSupertype : Boolean )","body":"{ for ( annotation in annotations ) { val annotationType = annotation . annotationTypeRef . coneTypeSafe < ConeClassLikeType > ( ) ? : continue val className = when ( this ) { is FirRegularClass -> name . asString ( ) is FirCallableDeclaration -> symbol . callableId . className ? . shortName ( ) ? . asString ( ) else -> null } result . addIfNotNull ( annotationType . lookupTag . toFirRegularClassSymbol ( session ) ? . loadExperimentalityForMarkerAnnotation ( session , className ) ) if ( fromSupertype ) { if ( annotationType . lookupTag . classId == OptInNames . SUBCLASS_OPT_IN_REQUIRED_CLASS_ID ) { val annotationClass = annotation . findArgumentByName ( OptInNames . OPT_IN_ANNOTATION_CLASS ) ? : continue result . addIfNotNull ( annotationClass . extractClassFromArgument ( session ) ? . loadExperimentalityForMarkerAnnotation ( session ) ? . copy ( fromSupertype = true ) ) } } } }","docstring":""} {"signature":"fun loadExperimentalitiesFromTypeArguments ( context : CheckerContext , typeArguments : List < FirTypeProjection > ) : Set < Experimentality >","body":"{ if ( typeArguments . isEmpty ( ) ) return emptySet ( ) return loadExperimentalitiesFromConeArguments ( context , typeArguments . map { it . toConeTypeProjection ( ) } ) }","docstring":""} {"signature":"fun loadExperimentalitiesFromConeArguments ( context : CheckerContext , typeArguments : List < ConeTypeProjection > ) : Set < Experimentality >","body":"{ if ( typeArguments . isEmpty ( ) ) return emptySet ( ) val result = SmartSet . create < Experimentality > ( ) typeArguments . forEach { if ( ! it . isStarProjection ) it . type ? . addExperimentalities ( context , result ) } return result }","docstring":""} {"signature":"fun FirBasedSymbol < * > . loadExperimentalities ( context : CheckerContext , fromSetter : Boolean , dispatchReceiverType : ConeKotlinType ? ) : Set < Experimentality >","body":"= loadExperimentalities ( context , knownExperimentalities = null , visited = mutableSetOf ( ) , fromSetter , dispatchReceiverType , fromSupertype = false )","docstring":""} {"signature":"fun FirClassLikeSymbol < * > . loadExperimentalitiesFromSupertype ( context : CheckerContext ) : Set < Experimentality >","body":"= loadExperimentalities ( context , knownExperimentalities = null , visited = mutableSetOf ( ) , fromSetter = false , dispatchReceiverType = null , fromSupertype = true )","docstring":""} {"signature":"fun FirClassLikeSymbol < * > . isExperimentalMarker ( session : FirSession )","body":"= this is FirRegularClassSymbol && getAnnotationByClassId ( OptInNames . REQUIRES_OPT_IN_CLASS_ID , session ) != null","docstring":""} {"signature":"@ OptIn ( SymbolInternals :: class ) private fun FirBasedSymbol < * > . loadExperimentalities ( context : CheckerContext , knownExperimentalities : SmartSet < Experimentality > ? , visited : MutableSet < FirDeclaration > , fromSetter : Boolean , dispatchReceiverType : ConeKotlinType ? , fromSupertype : Boolean , ) : Set < Experimentality >","body":"{ lazyResolveToPhase ( FirResolvePhase . STATUS ) val fir = this . fir if ( ! visited . add ( fir ) ) return emptySet ( ) val result = knownExperimentalities ? : SmartSet . create ( ) val session = context . session when ( fir ) { is FirCallableDeclaration -> fir . loadCallableSpecificExperimentalities ( this , context , visited , fromSetter , dispatchReceiverType , result ) is FirClassLikeDeclaration -> fir . loadClassLikeSpecificExperimentalities ( this , context , visited , result ) is FirAnonymousInitializer , is FirDanglingModifierList , is FirFile , is FirTypeParameter , is FirScript , is FirCodeFragment -> { } } lazyResolveToPhase ( FirResolvePhase . ANNOTATION_ARGUMENTS ) fir . loadExperimentalitiesFromAnnotationTo ( session , result , fromSupertype ) if ( fir . getAnnotationByClassId ( OptInNames . WAS_EXPERIMENTAL_CLASS_ID , session ) != null ) { val accessibility = fir . checkSinceKotlinVersionAccessibility ( context ) if ( accessibility is FirSinceKotlinAccessibility . NotAccessibleButWasExperimental ) { accessibility . markerClasses . forEach { it . lazyResolveToPhase ( FirResolvePhase . STATUS ) result . addIfNotNull ( it . fir . loadExperimentalityForMarkerAnnotation ( session ) ) } } } return result }","docstring":""} {"signature":"private fun FirCallableDeclaration . loadCallableSpecificExperimentalities ( symbol : FirBasedSymbol < * > , context : CheckerContext , visited : MutableSet < FirDeclaration > , fromSetter : Boolean , dispatchReceiverType : ConeKotlinType ? , result : SmartSet < Experimentality > )","body":"{ val parentClassSymbol = containingClassLookupTag ( ) ? . toSymbol ( context . session ) as? FirRegularClassSymbol if ( this is FirConstructor ) { val ownerClassLikeSymbol = this . typeAliasForConstructor ? : parentClassSymbol ownerClassLikeSymbol ? . loadExperimentalities ( context , result , visited , fromSetter = false , dispatchReceiverType = null , fromSupertype = false ) } else { returnTypeRef . coneTypeSafe < ConeKotlinType > ( ) . addExperimentalities ( context , result , visited ) receiverParameter ? . typeRef ? . coneType . addExperimentalities ( context , result , visited ) } dispatchReceiverType ? . addExperimentalities ( context , result , visited ) if ( this is FirFunction ) { valueParameters . forEach { it . returnTypeRef . coneType . addExperimentalities ( context , result , visited ) } if ( parentClassSymbol ? . isData == true && DataClassResolver . isComponentLike ( this . nameOrSpecialName ) && parentClassSymbol . classKind == ClassKind . CLASS ) { val componentNIndex = DataClassResolver . getComponentIndex ( this . nameOrSpecialName . identifier ) val valueParameters = parentClassSymbol . primaryConstructorSymbol ( context . session ) ? . valueParameterSymbols val valueParameter = valueParameters ? . getOrNull ( componentNIndex - ) val properties = parentClassSymbol . declarationSymbols . filterIsInstance < FirPropertySymbol > ( ) val property = properties . firstOrNull { it . name == valueParameter ? . name } property ? . loadExperimentalities ( context , result , visited , fromSetter = false , dispatchReceiverType , fromSupertype = false ) } } if ( fromSetter && symbol is FirPropertySymbol ) { symbol . setterSymbol ? . loadExperimentalities ( context , result , visited , fromSetter = false , dispatchReceiverType , fromSupertype = false ) } }","docstring":""} {"signature":"private fun FirClassLikeDeclaration . loadClassLikeSpecificExperimentalities ( symbol : FirBasedSymbol < * > , context : CheckerContext , visited : MutableSet < FirDeclaration > , result : SmartSet < Experimentality > )","body":"{ when ( this ) { is FirRegularClass -> if ( symbol is FirRegularClassSymbol ) { val parentClassSymbol = symbol . outerClassSymbol ( context ) parentClassSymbol ? . loadExperimentalities ( context , result , visited , fromSetter = false , dispatchReceiverType = null , fromSupertype = false ) } is FirAnonymousObject , is FirTypeAlias -> { } } }","docstring":""} {"signature":"private fun ConeKotlinType ? . addExperimentalities ( context : CheckerContext , result : SmartSet < Experimentality > , visited : MutableSet < FirDeclaration > = mutableSetOf ( ) )","body":"{ if ( this !is ConeClassLikeType ) return lookupTag . toSymbol ( context . session ) ? . loadExperimentalities ( context , result , visited , fromSetter = false , dispatchReceiverType = null , fromSupertype = false ) fullyExpandedType ( context . session ) . typeArguments . forEach { if ( ! it . isStarProjection ) it . type ? . addExperimentalities ( context , result , visited ) } }","docstring":""} {"signature":"private fun FirRegularClass . loadExperimentalityForMarkerAnnotation ( session : FirSession , annotatedOwnerClassName : String ? = null ) : Experimentality ?","body":"{ val experimental = getAnnotationByClassId ( OptInNames . REQUIRES_OPT_IN_CLASS_ID , session ) ? : return null val levelArgument = experimental . findArgumentByName ( LEVEL ) val levelName = levelArgument ? . extractEnumValueArgumentInfo ( ) ? . enumEntryName ? . asString ( ) val severity = Experimentality . Severity . entries . firstOrNull { it . name == levelName } ? : Experimentality . DEFAULT_SEVERITY val message = ( experimental . findArgumentByName ( MESSAGE ) as? FirLiteralExpression < * > ) ? . value as? String return Experimentality ( symbol . classId , severity , message , annotatedOwnerClassName ) }","docstring":""} {"signature":"fun reportNotAcceptedExperimentalities ( experimentalities : Collection < Experimentality > , element : FirElement , context : CheckerContext , reporter : DiagnosticReporter , source : KtSourceElement ? = element . source , )","body":"{ for ( ( annotationClassId , severity , message , _ , fromSupertype ) in experimentalities ) { if ( ! isExperimentalityAcceptableInContext ( annotationClassId , context , fromSupertype ) ) { val ( diagnostic , verb ) = when ( severity ) { Experimentality . Severity . WARNING -> FirErrors . OPT_IN_USAGE to \"\" Experimentality . Severity . ERROR -> FirErrors . OPT_IN_USAGE_ERROR to \"\" } val reportedMessage = message ? . takeIf { it . isNotBlank ( ) } ? : OptInNames . buildDefaultDiagnosticMessage ( OptInNames . buildMessagePrefix ( verb ) , annotationClassId . asFqNameString ( ) ) reporter . reportOn ( source , diagnostic , annotationClassId , reportedMessage , context ) } } }","docstring":""} {"signature":"@ SymbolInternals fun reportNotAcceptedOverrideExperimentalities ( experimentalities : Collection < Experimentality > , symbol : FirCallableSymbol < * > , context : CheckerContext , reporter : DiagnosticReporter )","body":"{ for ( ( annotationClassId , severity , markerMessage , supertypeName ) in experimentalities ) { if ( ! symbol . fir . isExperimentalityAcceptable ( context . session , annotationClassId , fromSupertype = false ) && ! isExperimentalityAcceptableInContext ( annotationClassId , context , fromSupertype = false ) ) { val ( diagnostic , verb ) = when ( severity ) { Experimentality . Severity . WARNING -> FirErrors . OPT_IN_OVERRIDE to \"\" Experimentality . Severity . ERROR -> FirErrors . OPT_IN_OVERRIDE_ERROR to \"\" } val message = OptInNames . buildOverrideMessage ( supertypeName ? : \"\" , markerMessage , verb , markerName = annotationClassId . asFqNameString ( ) ) reporter . reportOn ( symbol . source , diagnostic , annotationClassId , message , context ) } } }","docstring":""} {"signature":"private fun isExperimentalityAcceptableInContext ( annotationClassId : ClassId , context : CheckerContext , fromSupertype : Boolean ) : Boolean","body":"{ val languageVersionSettings = context . session . languageVersionSettings val fqNameAsString = annotationClassId . asFqNameString ( ) if ( fqNameAsString in languageVersionSettings . getFlag ( AnalysisFlags . optIn ) ) { return true } for ( annotationContainer in context . annotationContainers ) { if ( annotationContainer . isExperimentalityAcceptable ( context . session , annotationClassId , fromSupertype ) ) { return true } } return false }","docstring":""} {"signature":"private fun FirAnnotationContainer . isExperimentalityAcceptable ( session : FirSession , annotationClassId : ClassId , fromSupertype : Boolean ) : Boolean","body":"{ return getAnnotationByClassId ( annotationClassId , session ) != null || isAnnotatedWithOptIn ( annotationClassId , session ) || fromSupertype && isAnnotatedWithSubclassOptInRequired ( session , annotationClassId ) || primaryConstructorParameterIsExperimentalityAcceptable ( session , annotationClassId ) || isImplicitDeclaration ( ) }","docstring":""} {"signature":"private fun FirAnnotationContainer . isImplicitDeclaration ( ) : Boolean","body":"{ return this is FirDeclaration && this . origin != FirDeclarationOrigin . Source }","docstring":""} {"signature":"@ OptIn ( SymbolInternals :: class ) private fun FirAnnotationContainer . primaryConstructorParameterIsExperimentalityAcceptable ( session : FirSession , annotationClassId : ClassId ) : Boolean","body":"{ if ( this !is FirProperty ) return false val parameterSymbol = correspondingValueParameterFromPrimaryConstructor ? : return false return parameterSymbol . fir . isExperimentalityAcceptable ( session , annotationClassId , fromSupertype = false ) }","docstring":""} {"signature":"private fun FirAnnotationContainer . isAnnotatedWithOptIn ( annotationClassId : ClassId , session : FirSession ) : Boolean","body":"{ for ( annotation in annotations ) { val coneType = annotation . annotationTypeRef . coneType as? ConeClassLikeType if ( coneType ? . lookupTag ? . classId != OptInNames . OPT_IN_CLASS_ID ) { continue } val annotationClasses = annotation . findArgumentByName ( OptInNames . OPT_IN_ANNOTATION_CLASS ) ? : continue if ( annotationClasses . extractClassesFromArgument ( session ) . any { it . classId == annotationClassId } ) { return true } } return false }","docstring":""} {"signature":"private fun FirAnnotationContainer . isAnnotatedWithSubclassOptInRequired ( session : FirSession , annotationClassId : ClassId ) : Boolean","body":"{ for ( annotation in annotations ) { val coneType = annotation . annotationTypeRef . coneType as? ConeClassLikeType if ( coneType ? . lookupTag ? . classId != OptInNames . SUBCLASS_OPT_IN_REQUIRED_CLASS_ID ) { continue } val annotationClass = annotation . findArgumentByName ( OptInNames . OPT_IN_ANNOTATION_CLASS ) ? : continue if ( annotationClass . extractClassFromArgument ( session ) ? . classId == annotationClassId ) { return true } } return false }","docstring":""} {"signature":"fun box ( ) : String","body":"{ try { return \"\" if ( == ) { val z = } if ( == ) { val z = } } finally { } }","docstring":""} {"signature":"fun append ( charCode : Int , categoryId : String ) : Boolean","body":"fun append ( charCode : Int , categoryId : String ) : Boolean","docstring":"/**\n * Appends the [charCode] to this range pattern.\n * Returns true if the [charCode] with the specified [categoryId] could be accommodated within this pattern.\n * Returns false otherwise.\n */"} {"signature":"fun prepend ( charCode : Int , categoryId : String ) : Boolean","body":"fun prepend ( charCode : Int , categoryId : String ) : Boolean","docstring":"/**\n * Prepends the [charCode] to this range pattern.\n * Returns true if the [charCode] with the specified [categoryId] could be accommodated within this pattern.\n * Returns false otherwise.\n */"} {"signature":"fun rangeStart ( ) : Int","body":"fun rangeStart ( ) : Int","docstring":"/**\n * Char code of the first char in this range.\n */"} {"signature":"fun rangeEnd ( ) : Int","body":"fun rangeEnd ( ) : Int","docstring":"/**\n * Char code of the last char in this range.\n */"} {"signature":"fun category ( ) : Int","body":"fun category ( ) : Int","docstring":"/**\n * An integer value that contains information about the category of each char in this range.\n */"} {"signature":"fun categoryIdOf ( charCode : Int ) : String","body":"fun categoryIdOf ( charCode : Int ) : String","docstring":"/**\n * Returns category id of the char with the specified [charCode].\n * Throws an exception if the [charCode] is not in `rangeStart()..rangeEnd()`.\n */"} {"signature":"internal fun RangePattern . rangeLength ( ) : Int","body":"= rangeEnd ( ) - rangeStart ( ) + ","docstring":""} {"signature":"internal fun RangePattern . append ( rangeStart : Int , rangeEnd : Int , categoryIdOf : ( Int ) -> String , charCode : Int , categoryId : String ) : Boolean","body":"{ for ( code in rangeStart .. rangeEnd ) { if ( ! append ( code , categoryIdOf ( code ) ) ) { return false } } if ( ! append ( charCode , categoryId ) ) { return false } return true }","docstring":""} {"signature":"fun box ( ) : String","body":"{ assertArrayEquals ( arrayOf ( arrayOf ( , ) , arrayOf ( , ) ) , arrayOf ( arrayOf ( fizz ( ) , buzz ( ) ) , arrayOf ( fizz ( ) , buzz ( ) ) ) ) assertEquals ( \"\" , pullLog ( ) ) return \"\" }","docstring":""} {"signature":"fun withAttributes ( changeAttributes : KotlinHighlightingAttributes . ( ) -> Unit ) : KotlinHighlightingAttributes","body":"{ val attributes = KotlinHighlightingAttributes ( ) attributes . changeAttributes ( ) return attributes }","docstring":""} {"signature":"override fun transformFlat ( declaration : IrDeclaration ) : List < IrDeclaration > ?","body":"{ if ( declaration !is IrConstructor || ! declaration . isPrimary ) return null val irClass = declaration . parentAsClass if ( irClass . kind != ClassKind . ANNOTATION_CLASS ) return null declaration . body = declaration . factory . createBlockBody ( declaration . startOffset , declaration . endOffset ) { if ( context . es6mode ) { statements += IrDelegatingConstructorCallImpl ( startOffset , endOffset , context . irBuiltIns . anyType , anyConstructor , , ) } statements += IrInstanceInitializerCallImpl ( startOffset , endOffset , irClass . symbol , unitType ) } return null }","docstring":""} {"signature":"override fun configure ( target : KotlinAndroidTarget , kotlinSourceSet : KotlinSourceSet , @ Suppress ( \"\" ) androidSourceSet : DeprecatedAndroidSourceSet )","body":"{ if ( ! androidSourceSet . name . startsWith ( target . disambiguationClassifier ) ) { kotlinSourceSet . kotlin . srcDir ( \"\" ) } }","docstring":""} {"signature":"operator fun Product . contains ( item : Any ? ) : Boolean","body":"= productIterator ( ) . contains ( item )","docstring":"/** Tests whether this iterator contains a given value as an element.\n * Note: may not terminate for infinite iterators.\n *\n * @param item the element to test.\n * @return `true` if this iterator produces some value that\n * is equal (as determined by `==`) to `elem`, `false` otherwise.\n * @note Reuse: After calling this method, one should discard the iterator it was called on.\n * Using it is undefined and subject to change.\n */"} {"signature":"operator fun Product . iterator ( ) : Iterator < Any ? >","body":"= JavaConverters . asJavaIterator ( productIterator ( ) )","docstring":"/**\n * An iterator over all the elements of this product.\n * @return in the default implementation, an `Iterator`\n */"} {"signature":"fun Product . asIterable ( ) : Iterable < Any ? >","body":"= object : Iterable < Any ? > { override fun iterator ( ) : Iterator < Any ? > = JavaConverters . asJavaIterator ( productIterator ( ) ) }","docstring":"/**\n * Converts this product to an `Any?` iterable.\n */"} {"signature":"@ Throws ( IndexOutOfBoundsException :: class ) operator fun Product . get ( n : Int ) : Any ?","body":"= productElement ( n )","docstring":"/** The n'th element of this product, 0-based. In other words, for a\n * product `A(x,,1,,, ..., x,,k,,)`, returns `x,,(n+1),,` where `0 <= n < k`.\n *\n * @param n the index of the element to return\n * @throws IndexOutOfBoundsException\n * @return the element `n` elements after the first element\n */"} {"signature":"fun Product . getOrNull ( n : Int ) : Any ?","body":"= if ( n in until size ) productElement ( n ) else null","docstring":"/** The n'th element of this product, 0-based. In other words, for a\n * product `A(x,,1,,, ..., x,,k,,)`, returns `x,,(n+1),,` where `0 <= n < k`.\n *\n * @param n the index of the element to return\n * @return the element `n` elements after the first element, `null` if out of bounds\n */"} {"signature":"@ Suppress ( \"\" ) @ Throws ( IndexOutOfBoundsException :: class , ClassCastException :: class ) inline fun < reified T > Product . getAs ( n : Int ) : T","body":"= productElement ( n ) as T","docstring":"/** The n'th element of this product, 0-based. In other words, for a\n * product `A(x,,1,,, ..., x,,k,,)`, returns `x,,(n+1),,` where `0 <= n < k`.\n * The result is cast to the given type [T].\n *\n * @param n the index of the element to return\n * @throws IndexOutOfBoundsException\n * @throws ClassCastException\n * @return the element `n` elements after the first element\n */"} {"signature":"@ Suppress ( \"\" ) inline fun < reified T > Product . getAsOrNull ( n : Int ) : T ?","body":"= getOrNull ( n ) as? T","docstring":"/** The n'th element of this product, 0-based. In other words, for a\n * product `A(x,,1,,, ..., x,,k,,)`, returns `x,,(n+1),,` where `0 <= n < k`.\n * The result is cast to the given type [T].\n *\n * @param n the index of the element to return\n * @return the element `n` elements after the first element, `null` if out of bounds or unable to be cast\n */"} {"signature":"@ Throws ( IndexOutOfBoundsException :: class ) operator fun Product . get ( indexRange : IntRange ) : List < Any ? >","body":"= indexRange . map ( :: get )","docstring":"/** The range of n'th elements of this product, 0-based. In other words, for a\n * product `A(x,,1,,, ..., x,,k,,)`, returns `x,,(n+1),,` where `0 <= n < k`.\n *\n * @param indexRange the indices of the elements to return\n * @throws IndexOutOfBoundsException\n * @return the elements in [indexRange]\n */"} {"signature":"fun Product . getOrNull ( indexRange : IntRange ) : List < Any ? >","body":"= indexRange . map ( :: getOrNull )","docstring":"/** The range of n'th elements of this product, 0-based. In other words, for a\n * product `A(x,,1,,, ..., x,,k,,)`, returns `x,,(n+1),,` where `0 <= n < k`.\n *\n * @param indexRange the indices of the elements to return\n * @return the elements in [indexRange], `null` if out of bounds\n */"} {"signature":"@ Throws ( IndexOutOfBoundsException :: class , ClassCastException :: class ) inline fun < reified T > Product . getAs ( indexRange : IntRange ) : List < T >","body":"= indexRange . map ( :: getAs )","docstring":"/** The range of n'th elements of this product, 0-based. In other words, for a\n * product `A(x,,1,,, ..., x,,k,,)`, returns `x,,(n+1),,` where `0 <= n < k`.\n * The results are cast to the given type [T].\n *\n * @param indexRange the indices of the elements to return\n * @throws IndexOutOfBoundsException\n * @throws ClassCastException\n * @return the elements in [indexRange]\n */"} {"signature":"inline fun < reified T > Product . getAsOrNull ( indexRange : IntRange ) : List < T ? >","body":"= indexRange . map ( :: getAsOrNull )","docstring":"/** The range of n'th elements of this product, 0-based. In other words, for a\n * product `A(x,,1,,, ..., x,,k,,)`, returns `x,,(n+1),,` where `0 <= n < k`.\n * The results are cast to the given type [T].\n *\n * @param indexRange the indices of the elements to return\n * @return the elements in [indexRange], `null` is out of bounds or unable to be cast\n */"} {"signature":"fun RepositoryHandler . mavenCentralCacheRedirector ( ) : MavenArtifactRepository","body":"= maven { it . setUrl ( \"\" ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ check ( Base ( \"\" , Base ( \"\" ) ) , \"\" ) check ( Override ( \"\" ) , \"\" ) check ( OverOverride ( \"\" ) , \"\" ) return \"\" }","docstring":""} {"signature":"fun check ( t : Throwable , msg : String )","body":"{ try { throw t } catch ( e : Throwable ) { val c = t . cause val m = if ( c != null ) t . message ! ! + c . message ! ! else t . message ! ! if ( m != msg ) throw AssertionError ( m ) } }","docstring":""} {"signature":"override fun hashCode ( )","body":"= ","docstring":""} {"signature":"fun box ( ) : String","body":"{ val x = A ( ) val y = A ( ) val map = mutableMapOf < A , Int > ( ) map [ x ] = assertEquals ( , map . size ) map . remove ( y ) assertEquals ( , map . size ) map . remove ( x ) assertEquals ( , map . size ) return \"\" }","docstring":""} {"signature":"operator fun invoke ( )","body":"= println ( \"\" )","docstring":""} {"signature":"fun compare ( o1 : String ? , o2 : String ? ) : Int","body":"{ val l1 = o1 ? . length ? : val l2 = o2 ? . length ? : return l1 - l2 }","docstring":""} {"signature":"fun test ( )","body":"{ ( System . getProperty ( \"\" ) ? . length ? : ) * + val x = System . getProperty ( \"\" ) ? . length ? : x * + }","docstring":""} {"signature":"suspend fun useF ( )","body":"{ f { println ( \"\" ) } }","docstring":""} {"signature":"private fun readFrom ( json : JsonReader ) : State ?","body":"{ val result = State ( ) json . obj { check ( json . nextName ( ) == \"\" ) val version = json . nextString ( ) if ( version != this . version ) return null check ( json . nextName ( ) == \"\" ) json . obj { while ( json . peek ( ) == JsonToken . NAME ) { val key = json . nextName ( ) json . beginObject ( ) check ( json . nextName ( ) == \"\" ) val src = json . nextString ( ) var target : String ? = null if ( json . peek ( ) == JsonToken . NAME ) { check ( json . nextName ( ) == \"\" ) if ( json . peek ( ) != JsonToken . NULL ) { target = json . nextString ( ) } } json . endObject ( ) result [ decodeHexString ( key ) ] = Element ( src , target ) } } } return result }","docstring":""} {"signature":"private fun State . writeTo ( json : JsonWriter )","body":"{ json . obj { json . name ( \"\" ) . value ( version ) json . name ( \"\" ) json . obj { byHash . forEach { json . name ( it . key . contents . toHex ( ) ) json . obj { json . name ( \"\" ) . value ( it . value . src ) json . name ( \"\" ) if ( it . value . target == null ) json . nullValue ( ) else json . value ( it . value . target ) } } } } }","docstring":""} {"signature":"private inline fun JsonReader . obj ( body : ( ) -> Unit )","body":"{ beginObject ( ) body ( ) endObject ( ) }","docstring":""} {"signature":"private inline fun JsonWriter . obj ( body : ( ) -> Unit )","body":"{ beginObject ( ) body ( ) endObject ( ) }","docstring":""} {"signature":"private fun decodeHexString ( hexString : String ) : ByteArray","body":"{ check ( hexString . length % == ) val bytes = ByteArray ( hexString . length / ) var i = var o = while ( i < hexString . length ) { bytes [ o ++ ] = hexToByte ( hexString [ i ++ ] , hexString [ i ++ ] ) } return bytes }","docstring":""} {"signature":"private fun hexToByte ( a : Char , b : Char ) : Byte","body":"= ( ( a . toDigit ( ) shl ) + b . toDigit ( ) ) . toByte ( )","docstring":""} {"signature":"private fun Char . toDigit ( ) : Int","body":"= Character . digit ( this , ) . also { check ( it != - ) }","docstring":""} {"signature":"override fun equals ( other : Any ? ) : Boolean","body":"{ if ( this === other ) return true if ( javaClass != other ? . javaClass ) return false other as ByteArrayWrapper if ( ! contents . contentEquals ( other . contents ) ) return false return true }","docstring":""} {"signature":"override fun hashCode ( ) : Int","body":"{ return contents . contentHashCode ( ) }","docstring":""} {"signature":"operator fun get ( elementHash : ByteArray )","body":"= byHash [ ByteArrayWrapper ( elementHash ) ]","docstring":""} {"signature":"operator fun set ( elementHash : ByteArray , element : Element )","body":"{ byHash [ ByteArrayWrapper ( elementHash ) ] = element val target = element . target if ( target != null ) { byTarget [ target ] = element } }","docstring":""} {"signature":"fun remove ( element : Element )","body":"{ if ( element . target != null ) { byTarget . remove ( element . target ) } byHash . values . removeIf { it == element } }","docstring":""} {"signature":"internal fun getOrCompute ( file : File , compute : ( ) -> File ? ) : File ?","body":"= getOrComputeKey ( file , compute ) ? . let { File ( targetDir , it ) }","docstring":""} {"signature":"private fun getOrComputeKey ( file : File , compute : ( ) -> File ? ) : String ?","body":"{ if ( ! file . exists ( ) ) { return null } val hash = fileHasher . hash ( file ) . toByteArray ( ) val old = state [ hash ] if ( old != null ) { if ( checkTarget ( old . target ) ) return old . target else System . err . println ( \"\" ) } val key = compute ( ) ? . relativeTo ( targetDir ) ? . toString ( ) val existedTarget = state . byTarget [ key ] if ( key != null && existedTarget != null ) { if ( ! File ( existedTarget . src ) . exists ( ) ) { System . err . println ( \"\" ) state . remove ( existedTarget ) } } state [ hash ] = Element ( file . normalize ( ) . absolutePath , key ) return key }","docstring":""} {"signature":"private fun checkTarget ( target : String ? ) : Boolean","body":"{ if ( target == null ) return true return targetDir . resolve ( target ) . exists ( ) }","docstring":""} {"signature":"override fun close ( )","body":"{ stateFile . parentFile . mkdirs ( ) GsonBuilder ( ) . setPrettyPrinting ( ) . create ( ) . newJsonWriter ( stateFile . writer ( ) ) . use { state . writeTo ( it ) } }","docstring":""} {"signature":"fun checkClassesInBuildDirectories ( )","body":"{ targetDir . walkTopDown ( ) . filter { it . isDirectory && it . name == \"\" } . forEach { checkReferences ( it ) } }","docstring":""} {"signature":"protected abstract fun checkReferences ( buildDir : File )","body":"protected abstract fun checkReferences ( buildDir : File )","docstring":""} {"signature":"protected fun ByteArray . findAtomicfuRef ( ) : Boolean","body":"{ loop @ for ( i in .. this . size - ATOMIC_FU_REF . size ) { for ( j in ATOMIC_FU_REF . indices ) { if ( this [ i + j ] != ATOMIC_FU_REF [ j ] ) continue@loop } return true } return false }","docstring":""} {"signature":"override fun checkReferences ( buildDir : File )","body":"{ if ( gradleBuild . enableJvmIrTransformation ) { buildDir . walkDirAndCheckBytecode ( skipMetadata = true ) } else { val atomicfuDir = buildDir . resolve ( \"\" ) if ( atomicfuDir . exists ( ) && atomicfuDir . isDirectory ) { atomicfuDir . walkDirAndCheckBytecode ( skipMetadata = false ) } } }","docstring":""} {"signature":"private fun File . walkDirAndCheckBytecode ( skipMetadata : Boolean )","body":"{ walkBottomUp ( ) . filter { it . isFile && it . name . endsWith ( \"\" ) } . forEach { clazz -> val atomicfuRefFound = clazz . readBytes ( ) . let { if ( skipMetadata ) it . eraseMetadata ( ) . findAtomicfuRef ( ) else it . findAtomicfuRef ( ) } assertFalse ( atomicfuRefFound , \"\" ) } }","docstring":""} {"signature":"private fun ByteArray . eraseMetadata ( ) : ByteArray","body":"{ val cw = ClassWriter ( ) ClassReader ( this ) . accept ( object : ClassVisitor ( Opcodes . ASM9 , cw ) { override fun visitAnnotation ( descriptor : String ? , visible : Boolean ) : AnnotationVisitor ? { return if ( descriptor == KOTLIN_METADATA_DESC ) null else super . visitAnnotation ( descriptor , visible ) } } , ClassReader . SKIP_FRAMES ) return cw . toByteArray ( ) }","docstring":""} {"signature":"private fun invokeKlibTool ( kotlinNativeClassLoader : ClassLoader ? , klibFile : File , functionName : String , hasOutput : Boolean , vararg args : Any ) : String","body":"{ val libraryClass = Class . forName ( \"\" , true , kotlinNativeClassLoader ) val entryPoint = libraryClass . declaredMethods . single { it . name == functionName } val lib = libraryClass . getDeclaredConstructor ( String :: class . java , String :: class . java , String :: class . java ) . newInstance ( klibFile . canonicalPath , null , \"\" ) val output = StringBuilder ( ) if ( args . isNotEmpty ( ) ) { entryPoint . invoke ( lib , output , * args ) } else if ( hasOutput ) { entryPoint . invoke ( lib , output ) } else { entryPoint . invoke ( lib ) } return output . toString ( ) }","docstring":""} {"signature":"override fun checkReferences ( buildDir : File )","body":"{ val classesDir = buildDir . resolve ( \"\" ) if ( classesDir . exists ( ) && classesDir . isDirectory ) { classesDir . walkBottomUp ( ) . singleOrNull { it . isFile && it . name == \"\" } ? . let { klib -> val klibIr = invokeKlibTool ( kotlinNativeClassLoader = classLoader , klibFile = klib , functionName = \"\" , hasOutput = true , false ) assertFalse ( klibIr . toByteArray ( ) . findAtomicfuRef ( ) , \"\" ) } ? : error ( \"\" ) } }","docstring":""} {"signature":"internal fun GradleBuild . buildAndCheckBytecode ( )","body":"{ val buildResult = cleanAndBuild ( ) require ( buildResult . isSuccessful ) { \"\" } BytecodeChecker ( this ) . checkClassesInBuildDirectories ( ) }","docstring":""} {"signature":"internal fun GradleBuild . buildAndCheckNativeKlib ( )","body":"{ val buildResult = cleanAndBuild ( ) require ( buildResult . isSuccessful ) { \"\" } KlibChecker ( this . targetDir ) . checkClassesInBuildDirectories ( ) }","docstring":""} {"signature":"override fun iterator ( ) : MutableIterator < T >","body":"= it . iterator ( )","docstring":""} {"signature":"override fun reportMetric ( name : String , value : Boolean , subprojectName : String ? )","body":"{ }","docstring":""} {"signature":"override fun reportMetric ( name : String , value : Number , subprojectName : String ? )","body":"{ }","docstring":""} {"signature":"override fun reportMetric ( name : String , value : String , subprojectName : String ? )","body":"{ }","docstring":""} {"signature":"suspend fun < T > suspendWithResult ( value : T ) : T","body":"= suspendCoroutineUninterceptedOrReturn { c -> c . resume ( value ) COROUTINE_SUSPENDED }","docstring":""} {"signature":"fun builder ( c : suspend Controller . ( ) -> Unit ) : String","body":"{ val controller = Controller ( ) c . startCoroutine ( controller , EmptyContinuation ) return controller . result }","docstring":""} {"signature":"fun box ( ) : String","body":"{ var value = builder { outer @ for ( x in listOf ( \"\" , \"\" ) ) { result += suspendWithResult ( x ) for ( y in listOf ( \"\" , \"\" ) ) { result += suspendWithResult ( y ) if ( y == \"\" ) { break@outer } } } result += \"\" } if ( value != \"\" ) return \"\" value = builder { for ( x in listOf ( \"\" , \"\" ) ) { result += suspendWithResult ( x ) for ( y in listOf ( \"\" , \"\" ) ) { if ( y == \"\" ) { break } result += suspendWithResult ( y ) } } result += \"\" } if ( value != \"\" ) return \"\" return \"\" }","docstring":""} {"signature":"override fun equals ( other : Any ? ) : Boolean","body":"= super . equals ( other )","docstring":""} {"signature":"override operator fun equals ( other : Any ? ) : Boolean","body":"= super . equals ( other )","docstring":""} {"signature":"override fun equals ( other : Any ? ) : Boolean","body":"= super . equals ( other )","docstring":""} {"signature":"override fun equals ( other : Any ? ) : Boolean","body":"= super . equals ( other )","docstring":""} {"signature":"override operator fun equals ( other : Any ? ) : Boolean","body":"= super . equals ( other )","docstring":""} {"signature":"override operator fun equals ( other : Any ? ) : Boolean","body":"= super . equals ( other )","docstring":""} {"signature":"fun Collection < Int > . sumIndices ( ) : Int","body":"{ var sum = for ( i in indices ) { sum += i } return sum }","docstring":""} {"signature":"fun foo ( )","body":"{ Any ( ) as String }","docstring":""} {"signature":"fun box ( ) : String","body":"{ try { foo ( ) } catch ( e : Throwable ) { return \"\" } return \"\" }","docstring":""} {"signature":"fun listOfAny ( ) : List < Any >","body":"= throw Exception ( )","docstring":""} {"signature":"@ Test fun `test - jvm project - kotlin with java compilation - setting classpath on javaSourceSet` ( )","body":"{ val project = buildProjectWithJvm { enableDefaultStdlibDependency ( false ) } val customJavaSourceSet = project . javaSourceSets . create ( \"\" ) val customKotlinSourceSet = project . kotlinJvmExtension . sourceSets . getByName ( \"\" ) val customKotlinCompilation = project . kotlinJvmExtension . target . compilations . getByName ( \"\" ) assertSame ( customKotlinSourceSet , customKotlinCompilation . defaultSourceSet ) assertSame ( customJavaSourceSet , customKotlinCompilation . javaSourceSet ) customJavaSourceSet . compileClasspath = project . files ( \"\" , \"\" ) customJavaSourceSet . runtimeClasspath = project . files ( \"\" , \"\" ) assertEquals ( project . files ( \"\" , \"\" ) . files , customKotlinCompilation . compileDependencyFiles . files ) assertEquals ( project . files ( \"\" , \"\" ) . files , customKotlinCompilation . runtimeDependencyFiles . files ) }","docstring":""} {"signature":"@ GCUnsafeCall ( \"\" ) @ ObsoleteWorkersApi @ Escapes ( ) external private fun createWorkerBoundReference ( value : Any ) : NativePtr","body":"@ GCUnsafeCall ( \"\" ) @ ObsoleteWorkersApi @ Escapes ( ) external private fun createWorkerBoundReference ( value : Any ) : NativePtr","docstring":""} {"signature":"@ GCUnsafeCall ( \"\" ) @ ObsoleteWorkersApi external private fun derefWorkerBoundReference ( ref : NativePtr ) : Any ?","body":"@ GCUnsafeCall ( \"\" ) @ ObsoleteWorkersApi external private fun derefWorkerBoundReference ( ref : NativePtr ) : Any ?","docstring":""} {"signature":"@ GCUnsafeCall ( \"\" ) @ ObsoleteWorkersApi external private fun describeWorkerBoundReference ( ref : NativePtr ) : String","body":"@ GCUnsafeCall ( \"\" ) @ ObsoleteWorkersApi external private fun describeWorkerBoundReference ( ref : NativePtr ) : String","docstring":""} {"signature":"@ ExportForCppRuntime ( \"\" ) private fun freezeHook ( )","body":"{ if ( valueBeforeFreezing == null ) return ptr = createWorkerBoundReference ( valueBeforeFreezing ! ! ) valueBeforeFreezing = null }","docstring":""} {"signature":"fun bar ( a : Any ) : Number","body":"fun bar ( a : Any ) : Number","docstring":""} {"signature":"external fun withObjectTypeParam ( opt : `T$0` )","body":"external fun withObjectTypeParam ( opt : `T$0` )","docstring":""} {"signature":"external fun returnsObjectType ( ) : `T$1`","body":"external fun returnsObjectType ( ) : `T$1`","docstring":""} {"signature":"fun bar ( a : Any ) : Number","body":"fun bar ( a : Any ) : Number","docstring":""} {"signature":"fun baz ( a : Any , b : Any , c : String ) : Boolean","body":"fun baz ( a : Any , b : Any , c : String ) : Boolean","docstring":""} {"signature":"fun setTextColorWithAnotherMethod ( color : Int )","body":"{ this . textColor = color setTextColor ( textColor ! ! ) }","docstring":""} {"signature":"override fun onRestoreInstanceState ( state : Parcelable )","body":"{ super . onRestoreInstanceState ( state ) if ( textColor != null ) { setTextColorWithAnotherMethod ( textColor ! ! ) } }","docstring":""} {"signature":"internal fun nextafter ( _x : Double , _y : Double ) : Double","body":"{ var x : Double = _x var y : Double = _y var hx : Int var hy : Int var ix : Int var iy : Int var lx : UInt var ly : UInt hx = __HI ( x ) lx = __LOu ( x ) hy = __HI ( y ) ly = __LOu ( y ) ix = hx and iy = hy and if ( ( ( ix >= ) && ( ( ix - ) or lx . toInt ( ) ) != ) || ( ( iy >= ) && ( ( iy - ) or ly . toInt ( ) ) != ) ) return x + y if ( x == y ) return x if ( ( ix or lx . toInt ( ) ) == ) { x = doubleSetWord ( d = x , hi = hy and Int . MIN_VALUE ) x = doubleSetWord ( d = x , lo = ) y = x * x if ( y == x ) return y ; else return x } if ( hx >= ) { if ( hx > hy || ( ( hx == hy ) && ( lx > ly ) ) ) { if ( lx == ) hx -= lx -= } else { lx += if ( lx == ) hx += } } else { if ( hy >= || hx > hy || ( ( hx == hy ) && ( lx > ly ) ) ) { if ( lx == ) hx -= lx -= } else { lx += if ( lx == ) hx += } } hy = hx and if ( hy >= ) return x + x if ( hy < ) { y = x * x if ( y != x ) { y = doubleSetWord ( d = y , hi = hx , lo = lx . toInt ( ) ) return y } } x = doubleSetWord ( d = x , hi = hx , lo = lx . toInt ( ) ) return x }","docstring":""} {"signature":"fun box ( ) : String","body":"{ Test :: class . java . declaredConstructors . forEach { it . isAccessible = true } Test . Test1 :: class . java . declaredConstructors . forEach { it . isAccessible = true } val instance = Test . Test1 :: class . java . newInstance ( ) Demo . Foo :: class . java . newInstance ( ) Demo . Free :: class . java . newInstance ( ) A . Free :: class . java . newInstance ( ) return \"\" }","docstring":""} {"signature":"fun foo ( )","body":"= E1 . x + O . y + C . z","docstring":""} {"signature":"fun foo ( )","body":"{ fun bar ( ) { val baz = } }","docstring":""} {"signature":"private fun HttpRequestBuilder . applyCommonProperties ( )","body":"{ headers { bearerAuth ( token ) append ( HttpHeaders . Accept , \"\" ) } timeout { requestTimeoutMillis = REQUEST_TIMEOUT . inWholeMilliseconds } }","docstring":""} {"signature":"internal suspend fun getMutedTestsOnTeamcityForRootProject ( rootScopeId : String ) : List < MuteTestJson >","body":"{ val requestHref = \"\" val requestParams = mapOf ( \"\" to \"\" , \"\" to \"\" ) val jsonResponses = traverseAll ( requestHref , requestParams ) val alreadyMutedTestsOnTeamCity = jsonResponses . flatMap { it . get ( \"\" ) . filter { jn -> jn . get ( \"\" ) . get ( \"\" ) ? . textValue ( ) . toString ( ) . startsWith ( TAG ) } } return alreadyMutedTestsOnTeamCity . mapNotNull { jsonObjectMapper . treeToValue < MuteTestJson > ( it ) } }","docstring":""} {"signature":"private suspend fun traverseAll ( @ Suppress ( \"\" ) requestHref : String , requestParams : Map < String , String > , ) : List < JsonNode >","body":"{ val jsonResponses = mutableListOf < JsonNode > ( ) suspend fun request ( url : String , params : Map < String , String > ) : String { val currentResponse = httpClient . get ( url ) { applyCommonProperties ( ) url { for ( entry in params ) { parameters . append ( entry . key , entry . value ) } } } checkResponseAndLog ( currentResponse ) val currentJsonResponse = jsonObjectMapper . readTree ( currentResponse . bodyAsText ( ) ) jsonResponses . add ( currentJsonResponse ) return currentJsonResponse . get ( \"\" ) ? . textValue ( ) ? : \"\" } var nextHref = request ( \"\" , requestParams ) while ( nextHref . isNotBlank ( ) ) { nextHref = request ( \"\" , emptyMap ( ) ) } return jsonResponses }","docstring":""} {"signature":"internal suspend fun uploadMutedTests ( uploadMap : Map < String , MuteTestJson > )","body":"{ for ( ( _ , muteTestJson ) in uploadMap ) { val response = httpClient . post ( \"\" ) { applyCommonProperties ( ) contentType ( ContentType . Application . Json ) setBody ( muteTestJson ) } checkResponseAndLog ( response ) } }","docstring":""} {"signature":"internal suspend fun deleteMutedTests ( deleteMap : Map < String , MuteTestJson > )","body":"{ for ( ( _ , muteTestJson ) in deleteMap ) { val response = httpClient . delete ( \"\" ) { applyCommonProperties ( ) } try { checkResponseAndLog ( response ) } catch ( e : Exception ) { System . err . println ( e . message ) } } }","docstring":""} {"signature":"private suspend fun checkResponseAndLog ( response : HttpResponse )","body":"{ val isResponseBad = response . status . value !in .. if ( isResponseBad ) { throw Exception ( \"\" + \"\" + \"\" ) } }","docstring":""} {"signature":"public fun canConvert ( content : DocumentationContent ) : Boolean","body":"public fun canConvert ( content : DocumentationContent ) : Boolean","docstring":""} {"signature":"public fun convertToHtml ( content : DocumentationContent , docTagParserContext : DocTagParserContext ) : String","body":"public fun convertToHtml ( content : DocumentationContent , docTagParserContext : DocTagParserContext ) : String","docstring":""} {"signature":"fun `test Byte and Byte - typealias` ( )","body":"{ val result = commonize { outputTarget ( \"\" ) setting ( OptimisticNumberCommonizationEnabledKey , true ) registerFakeStdlibIntegersDependency ( \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) } result . assertCommonized ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) }","docstring":""} {"signature":"fun `test Byte and Short - typealias` ( )","body":"{ val result = commonize { outputTarget ( \"\" ) setting ( OptimisticNumberCommonizationEnabledKey , true ) registerFakeStdlibIntegersDependency ( \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) } result . assertCommonized ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) }","docstring":""} {"signature":"fun `test Byte and Int - typealias` ( )","body":"{ val result = commonize { outputTarget ( \"\" ) setting ( OptimisticNumberCommonizationEnabledKey , true ) registerFakeStdlibIntegersDependency ( \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) } result . assertCommonized ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) }","docstring":""} {"signature":"fun `test Byte and Long - typealias` ( )","body":"{ val result = commonize { outputTarget ( \"\" ) setting ( OptimisticNumberCommonizationEnabledKey , true ) registerFakeStdlibIntegersDependency ( \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) } result . assertCommonized ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) }","docstring":""} {"signature":"fun `test Short and Byte - typealias` ( )","body":"{ val result = commonize { outputTarget ( \"\" ) setting ( OptimisticNumberCommonizationEnabledKey , true ) registerFakeStdlibIntegersDependency ( \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) } result . assertCommonized ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) }","docstring":""} {"signature":"fun `test Short and Short - typealias` ( )","body":"{ val result = commonize { outputTarget ( \"\" ) setting ( OptimisticNumberCommonizationEnabledKey , true ) registerFakeStdlibIntegersDependency ( \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) } result . assertCommonized ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) }","docstring":""} {"signature":"fun `test Short and Int - typealias` ( )","body":"{ val result = commonize { outputTarget ( \"\" ) setting ( OptimisticNumberCommonizationEnabledKey , true ) registerFakeStdlibIntegersDependency ( \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) } result . assertCommonized ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) }","docstring":""} {"signature":"fun `test Short and Long - typealias` ( )","body":"{ val result = commonize { outputTarget ( \"\" ) setting ( OptimisticNumberCommonizationEnabledKey , true ) registerFakeStdlibIntegersDependency ( \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) } result . assertCommonized ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) }","docstring":""} {"signature":"fun `test Int and Byte - typealias` ( )","body":"{ val result = commonize { outputTarget ( \"\" ) setting ( OptimisticNumberCommonizationEnabledKey , true ) registerFakeStdlibIntegersDependency ( \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) } result . assertCommonized ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) }","docstring":""} {"signature":"fun `test Int and Short - typealias` ( )","body":"{ val result = commonize { outputTarget ( \"\" ) setting ( OptimisticNumberCommonizationEnabledKey , true ) registerFakeStdlibIntegersDependency ( \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) } result . assertCommonized ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) }","docstring":""} {"signature":"fun `test Int and Int - typealias` ( )","body":"{ val result = commonize { outputTarget ( \"\" ) setting ( OptimisticNumberCommonizationEnabledKey , true ) registerFakeStdlibIntegersDependency ( \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) } result . assertCommonized ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) }","docstring":""} {"signature":"fun `test Int and Long - typealias` ( )","body":"{ val result = commonize { outputTarget ( \"\" ) setting ( OptimisticNumberCommonizationEnabledKey , true ) registerFakeStdlibIntegersDependency ( \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) } result . assertCommonized ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) }","docstring":""} {"signature":"fun `test Long and Byte - typealias` ( )","body":"{ val result = commonize { outputTarget ( \"\" ) setting ( OptimisticNumberCommonizationEnabledKey , true ) registerFakeStdlibIntegersDependency ( \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) } result . assertCommonized ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) }","docstring":""} {"signature":"fun `test Long and Short - typealias` ( )","body":"{ val result = commonize { outputTarget ( \"\" ) setting ( OptimisticNumberCommonizationEnabledKey , true ) registerFakeStdlibIntegersDependency ( \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) } result . assertCommonized ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) }","docstring":""} {"signature":"fun `test Long and Int - typealias` ( )","body":"{ val result = commonize { outputTarget ( \"\" ) setting ( OptimisticNumberCommonizationEnabledKey , true ) registerFakeStdlibIntegersDependency ( \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) } result . assertCommonized ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) }","docstring":""} {"signature":"fun `test Long and Long - typealias` ( )","body":"{ val result = commonize { outputTarget ( \"\" ) setting ( OptimisticNumberCommonizationEnabledKey , true ) registerFakeStdlibIntegersDependency ( \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) } result . assertCommonized ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) }","docstring":""} {"signature":"fun `test UByte and UByte - typealias` ( )","body":"{ val result = commonize { outputTarget ( \"\" ) setting ( OptimisticNumberCommonizationEnabledKey , true ) registerFakeStdlibIntegersDependency ( \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) } result . assertCommonized ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) }","docstring":""} {"signature":"fun `test UByte and UShort - typealias` ( )","body":"{ val result = commonize { outputTarget ( \"\" ) setting ( OptimisticNumberCommonizationEnabledKey , true ) registerFakeStdlibIntegersDependency ( \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) } result . assertCommonized ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) }","docstring":""} {"signature":"fun `test UByte and UInt - typealias` ( )","body":"{ val result = commonize { outputTarget ( \"\" ) setting ( OptimisticNumberCommonizationEnabledKey , true ) registerFakeStdlibIntegersDependency ( \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) } result . assertCommonized ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) }","docstring":""} {"signature":"fun `test UByte and ULong - typealias` ( )","body":"{ val result = commonize { outputTarget ( \"\" ) setting ( OptimisticNumberCommonizationEnabledKey , true ) registerFakeStdlibIntegersDependency ( \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) } result . assertCommonized ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) }","docstring":""} {"signature":"fun `test UShort and UByte - typealias` ( )","body":"{ val result = commonize { outputTarget ( \"\" ) setting ( OptimisticNumberCommonizationEnabledKey , true ) registerFakeStdlibIntegersDependency ( \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) } result . assertCommonized ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) }","docstring":""} {"signature":"fun `test UShort and UShort - typealias` ( )","body":"{ val result = commonize { outputTarget ( \"\" ) setting ( OptimisticNumberCommonizationEnabledKey , true ) registerFakeStdlibIntegersDependency ( \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) } result . assertCommonized ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) }","docstring":""} {"signature":"fun `test UShort and UInt - typealias` ( )","body":"{ val result = commonize { outputTarget ( \"\" ) setting ( OptimisticNumberCommonizationEnabledKey , true ) registerFakeStdlibIntegersDependency ( \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) } result . assertCommonized ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) }","docstring":""} {"signature":"fun `test UShort and ULong - typealias` ( )","body":"{ val result = commonize { outputTarget ( \"\" ) setting ( OptimisticNumberCommonizationEnabledKey , true ) registerFakeStdlibIntegersDependency ( \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) } result . assertCommonized ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) }","docstring":""} {"signature":"fun `test UInt and UByte - typealias` ( )","body":"{ val result = commonize { outputTarget ( \"\" ) setting ( OptimisticNumberCommonizationEnabledKey , true ) registerFakeStdlibIntegersDependency ( \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) } result . assertCommonized ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) }","docstring":""} {"signature":"fun `test UInt and UShort - typealias` ( )","body":"{ val result = commonize { outputTarget ( \"\" ) setting ( OptimisticNumberCommonizationEnabledKey , true ) registerFakeStdlibIntegersDependency ( \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) } result . assertCommonized ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) }","docstring":""} {"signature":"fun `test UInt and UInt - typealias` ( )","body":"{ val result = commonize { outputTarget ( \"\" ) setting ( OptimisticNumberCommonizationEnabledKey , true ) registerFakeStdlibIntegersDependency ( \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) } result . assertCommonized ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) }","docstring":""} {"signature":"fun `test UInt and ULong - typealias` ( )","body":"{ val result = commonize { outputTarget ( \"\" ) setting ( OptimisticNumberCommonizationEnabledKey , true ) registerFakeStdlibIntegersDependency ( \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) } result . assertCommonized ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) }","docstring":""} {"signature":"fun `test ULong and UByte - typealias` ( )","body":"{ val result = commonize { outputTarget ( \"\" ) setting ( OptimisticNumberCommonizationEnabledKey , true ) registerFakeStdlibIntegersDependency ( \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) } result . assertCommonized ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) }","docstring":""} {"signature":"fun `test ULong and UShort - typealias` ( )","body":"{ val result = commonize { outputTarget ( \"\" ) setting ( OptimisticNumberCommonizationEnabledKey , true ) registerFakeStdlibIntegersDependency ( \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) } result . assertCommonized ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) }","docstring":""} {"signature":"fun `test ULong and UInt - typealias` ( )","body":"{ val result = commonize { outputTarget ( \"\" ) setting ( OptimisticNumberCommonizationEnabledKey , true ) registerFakeStdlibIntegersDependency ( \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) } result . assertCommonized ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) }","docstring":""} {"signature":"fun `test ULong and ULong - typealias` ( )","body":"{ val result = commonize { outputTarget ( \"\" ) setting ( OptimisticNumberCommonizationEnabledKey , true ) registerFakeStdlibIntegersDependency ( \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) } result . assertCommonized ( \"\" , \"\" ) }","docstring":""} {"signature":"fun `test UInt and Long - typealias` ( )","body":"{ val result = commonize { outputTarget ( \"\" ) setting ( OptimisticNumberCommonizationEnabledKey , true ) registerFakeStdlibIntegersDependency ( \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) } result . assertCommonized ( \"\" , \"\" ) }","docstring":""} {"signature":"fun `test UIntVarOf and ULongVarOf - typealias` ( )","body":"{ val result = commonize { outputTarget ( \"\" ) setting ( OptimisticNumberCommonizationEnabledKey , true ) registerFakeStdlibIntegersDependency ( \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) } result . assertCommonized ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) }","docstring":""} {"signature":"fun `test IntVarOf and LongVarOf - typealias` ( )","body":"{ val result = commonize { outputTarget ( \"\" ) setting ( OptimisticNumberCommonizationEnabledKey , true ) registerFakeStdlibIntegersDependency ( \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) } result . assertCommonized ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) }","docstring":""} {"signature":"fun `test Int and Long - typealias chain` ( )","body":"{ val result = commonize { outputTarget ( \"\" ) setting ( OptimisticNumberCommonizationEnabledKey , true ) registerFakeStdlibIntegersDependency ( \"\" ) simpleSingleSourceTarget ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) simpleSingleSourceTarget ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) } result . assertCommonized ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) }","docstring":""} {"signature":"fun `test function with pure number types parameter` ( )","body":"{ val result = commonize { outputTarget ( \"\" ) setting ( OptimisticNumberCommonizationEnabledKey , true ) simpleSingleSourceTarget ( \"\" , \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) } result . assertCommonized ( \"\" , \"\" ) }","docstring":""} {"signature":"fun `test function with aliased number value parameter` ( )","body":"{ val result = commonize { outputTarget ( \"\" ) setting ( OptimisticNumberCommonizationEnabledKey , true ) registerFakeStdlibIntegersDependency ( \"\" ) simpleSingleSourceTarget ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) simpleSingleSourceTarget ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) } result . assertCommonized ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) }","docstring":""} {"signature":"fun `test property with pure number return type` ( )","body":"{ val result = commonize { outputTarget ( \"\" ) setting ( OptimisticNumberCommonizationEnabledKey , true ) registerFakeStdlibIntegersDependency ( \"\" ) registerDependency ( \"\" , \"\" , \"\" ) { unsignedIntegers ( ) } simpleSingleSourceTarget ( \"\" , \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) } result . assertCommonized ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) }","docstring":""} {"signature":"fun `test property with aliased number return type` ( )","body":"{ val result = commonize { outputTarget ( \"\" ) setting ( OptimisticNumberCommonizationEnabledKey , true ) registerFakeStdlibIntegersDependency ( \"\" ) simpleSingleSourceTarget ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) simpleSingleSourceTarget ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) } result . assertCommonized ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) }","docstring":""} {"signature":"fun `test multilevel hierarchy` ( )","body":"{ val result = commonize { outputTarget ( \"\" , \"\" , \"\" , \"\" , \"\" ) setting ( OptimisticNumberCommonizationEnabledKey , true ) registerFakeStdlibIntegersDependency ( \"\" , \"\" , \"\" , \"\" , \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) simpleSingleSourceTarget ( \"\" , \"\" ) } result . assertCommonized ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) result . assertCommonized ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) result . assertCommonized ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) result . assertCommonized ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) result . assertCommonized ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) }","docstring":""} {"signature":"fun `test optimistic commonization in function return types` ( )","body":"{ val result = commonize { outputTarget ( \"\" ) setting ( OptimisticNumberCommonizationEnabledKey , true ) registerFakeStdlibIntegersDependency ( ( \"\" ) ) \"\" withSource \"\"\"\"\"\" . trimIndent ( ) \"\" withSource \"\"\"\"\"\" . trimIndent ( ) } result . assertCommonized ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) }","docstring":""} {"signature":"fun `test optimistic commonization in property return types` ( )","body":"{ val result = commonize { outputTarget ( \"\" ) setting ( OptimisticNumberCommonizationEnabledKey , true ) registerFakeStdlibIntegersDependency ( ( \"\" ) ) \"\" withSource \"\"\"\"\"\" . trimIndent ( ) \"\" withSource \"\"\"\"\"\" . trimIndent ( ) } result . assertCommonized ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) }","docstring":""} {"signature":"fun `test optimistic commonization inside parameterized types` ( )","body":"{ val result = commonize { outputTarget ( \"\" , \"\" , \"\" ) setting ( OptimisticNumberCommonizationEnabledKey , true ) registerFakeStdlibIntegersDependency ( \"\" , \"\" , \"\" ) \"\" withSource \"\"\"\"\"\" . trimIndent ( ) \"\" withSource \"\"\"\"\"\" . trimIndent ( ) \"\" withSource \"\"\"\"\"\" . trimIndent ( ) \"\" withSource \"\"\"\"\"\" . trimIndent ( ) } result . assertCommonized ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) result . assertCommonized ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) result . assertCommonized ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) }","docstring":""} {"signature":"fun `test KT-64376 - UnsafeNumber annotation - isn't applied to a commonization type that isn't a number - when commonizing hierarchically` ( )","body":"{ val result = commonize { outputTarget ( \"\" , \"\" ) setting ( OptimisticNumberCommonizationEnabledKey , true ) registerFakeStdlibIntegersDependency ( \"\" , \"\" ) simpleSingleSourceTarget ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) simpleSingleSourceTarget ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) simpleSingleSourceTarget ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) } result . assertCommonized ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) result . assertCommonized ( \"\" , \"\"\"\"\"\" . trimIndent ( ) ) }","docstring":""} {"signature":"override fun createLexer ( project : Project ) : Lexer","body":"= KotlinLexer ( )","docstring":""} {"signature":"override fun createParser ( project : Project ) : PsiParser","body":"= KotlinParser ( project )","docstring":""} {"signature":"override fun getFileNodeType ( ) : IFileElementType","body":"= KtFileElementType . INSTANCE","docstring":""} {"signature":"override fun getWhitespaceTokens ( ) : TokenSet","body":"= KtTokens . WHITESPACES","docstring":""} {"signature":"override fun getCommentTokens ( ) : TokenSet","body":"= KtTokens . COMMENTS","docstring":""} {"signature":"override fun getStringLiteralElements ( ) : TokenSet","body":"= KtTokens . STRINGS","docstring":""} {"signature":"override fun createElement ( astNode : ASTNode ) : PsiElement","body":"{ val elementType = astNode . elementType return when ( elementType ) { is KtStubElementType < * , * > -> elementType . createPsiFromAst ( astNode ) KtNodeTypes . TYPE_CODE_FRAGMENT , KtNodeTypes . EXPRESSION_CODE_FRAGMENT , KtNodeTypes . BLOCK_CODE_FRAGMENT -> ASTWrapperPsiElement ( astNode ) is KDocElementType -> elementType . createPsi ( astNode ) KDocTokens . MARKDOWN_LINK -> KDocLink ( astNode ) else -> ( elementType as KtNodeType ) . createPsi ( astNode ) } }","docstring":""} {"signature":"@ Suppress ( \"\" ) override fun createFile ( fileViewProvider : FileViewProvider ) : PsiFile","body":"= org . jetbrains . kotlin . psi . KtCommonFile ( fileViewProvider , false )","docstring":""} {"signature":"@ Deprecated ( \"\" ) override fun spaceExistanceTypeBetweenTokens ( left : ASTNode , right : ASTNode ) : ParserDefinition . SpaceRequirements","body":"{ val rightTokenType = right . elementType if ( rightTokenType == KtTokens . GET_KEYWORD || rightTokenType == KtTokens . SET_KEYWORD ) { return MUST_LINE_BREAK } val leftTokenType = left . elementType if ( leftTokenType is KtKeywordToken && rightTokenType is KtKeywordToken ) return MUST val rightWhenEntry = right . psi . getNonStrictParentOfType < KtWhenEntry > ( ) if ( rightWhenEntry != null ) { val leftWhenEntry = left . psi . getNonStrictParentOfType < KtWhenEntry > ( ) if ( leftWhenEntry != null && leftWhenEntry != rightWhenEntry && leftTokenType != KtTokens . SEMICOLON ) { return MUST_LINE_BREAK } } return MAY }","docstring":""} {"signature":"override fun createFile ( fileViewProvider : FileViewProvider ) : PsiFile","body":"{ return KtFile ( fileViewProvider , false ) }","docstring":""} {"signature":"override fun lower ( module : ModuleModel ) : ModuleModel","body":"= module","docstring":""} {"signature":"override fun lower ( source : SourceSetModel ) : SourceSetModel","body":"{ translationContext . initModelContext ( ModelContext ( source ) ) translationContext . initInheritanceContext ( InheritanceContext ( translationContext . modelContext . buildInheritanceGraph ( ) ) ) return super . lower ( source ) }","docstring":""} {"signature":"private fun ModelContext . buildInheritanceGraph ( ) : Graph < ClassLikeModel >","body":"{ val graph = Graph < ClassLikeModel > ( ) getClassLikeIterable ( ) . forEach { classLike -> getAllParents ( classLike ) . forEach { resolvedClassLike -> graph . addEdge ( classLike , resolvedClassLike . classLike ) } } return graph }","docstring":""} {"signature":"fun box ( ) : String","body":"{ var a : Int a = fun f ( ) { foo ( a ) } return \"\" }","docstring":""} {"signature":"fun foo ( l : Int )","body":"{ }","docstring":""} {"signature":"fun < T > bar ( ) : String","body":"{ return { t : T -> t } . toString ( ) }","docstring":""} {"signature":"fun < V : T > baz ( v : V ) : String","body":"{ return ( fun ( t : List < T > ) : V = v ) . toString ( ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ assertEquals ( \"\" , bar < String > ( ) ) assertEquals ( \"\" , Baz < String , Int > ( ) . baz < String > ( \"\" ) ) assertEquals ( \"\" , Bar < Int > ( ) . lambda . toString ( ) ) return \"\" }","docstring":""} {"signature":"open fun openFun ( )","body":"{ }","docstring":""} {"signature":"abstract fun abstractFun ( )","body":"abstract fun abstractFun ( )","docstring":""} {"signature":"fun box ( ) : String","body":"{ assertFalse ( Interface :: openFun . isFinal ) assertTrue ( Interface :: openFun . isOpen ) assertFalse ( Interface :: openFun . isAbstract ) assertFalse ( Interface :: abstractFun . isFinal ) assertFalse ( Interface :: abstractFun . isOpen ) assertTrue ( Interface :: abstractFun . isAbstract ) assertTrue ( AbstractClass :: finalVal . isFinal ) assertFalse ( AbstractClass :: finalVal . isOpen ) assertFalse ( AbstractClass :: finalVal . isAbstract ) assertTrue ( AbstractClass :: finalVal . getter . isFinal ) assertFalse ( AbstractClass :: finalVal . getter . isOpen ) assertFalse ( AbstractClass :: finalVal . getter . isAbstract ) assertFalse ( AbstractClass :: openVal . isFinal ) assertTrue ( AbstractClass :: openVal . isOpen ) assertFalse ( AbstractClass :: openVal . isAbstract ) assertFalse ( AbstractClass :: openVal . getter . isFinal ) assertTrue ( AbstractClass :: openVal . getter . isOpen ) assertFalse ( AbstractClass :: openVal . getter . isAbstract ) assertFalse ( AbstractClass :: abstractVar . isFinal ) assertFalse ( AbstractClass :: abstractVar . isOpen ) assertTrue ( AbstractClass :: abstractVar . isAbstract ) assertFalse ( AbstractClass :: abstractVar . getter . isFinal ) assertFalse ( AbstractClass :: abstractVar . getter . isOpen ) assertTrue ( AbstractClass :: abstractVar . getter . isAbstract ) assertFalse ( AbstractClass :: abstractVar . setter . isFinal ) assertFalse ( AbstractClass :: abstractVar . setter . isOpen ) assertTrue ( AbstractClass :: abstractVar . setter . isAbstract ) return \"\" }","docstring":""} {"signature":"fun updateFrom ( from : IrFunction )","body":"{ super . updateFrom ( from ) containerSource = from . containerSource isInline = from . isInline isExternal = from . isExternal isExpect = from . isExpect if ( from is IrSimpleFunction ) { modality = from . modality isTailrec = from . isTailrec isSuspend = from . isSuspend isOperator = from . isOperator isInfix = from . isInfix isFakeOverride = from . isFakeOverride } else { modality = Modality . FINAL isTailrec = false isSuspend = false isOperator = false isInfix = false } if ( from is IrConstructor ) { isPrimary = from . isPrimary } }","docstring":""} {"signature":"fun first ( ) : Node","body":"= nodes . first ( )","docstring":""} {"signature":"operator fun get ( nodeId : Int ) : Node","body":"= nodes . getOrElse ( nodeId ) { nodes . add ( it , Node ( it ) ) ; nodes [ it ] }","docstring":""} {"signature":"fun parseData ( content : List < String > ) : Graph","body":"{ val graph = Graph ( ) content . filter ( String :: isNotBlank ) . forEachIndexed { lineNumber , line -> addNeighbors ( line , graph , lineNumber ) } return graph }","docstring":""} {"signature":"private fun getClosest ( node : Node ) : ClosestNode ?","body":"{ val nodes = node . neighbors . filter { it . value != && ! visitedNodes . contains ( it . key ) } val clostest = nodes . minByOrNull { it . value } ! ! return ClosestNode ( clostest . key , clostest . value ) }","docstring":""} {"signature":"fun solve ( )","body":"{ var previousNode = graph . first ( ) visitedNodes . add ( graph . first ( ) ) var cost = while ( visitedNodes . size != graph . size ) { val closest = getClosest ( previousNode ) ! ! visitedNodes . add ( closest . node ) cost += closest . distance previousNode = closest . node } cost += visitedNodes . last ( ) . neighbors [ graph . first ( ) ] ! ! }","docstring":""} {"signature":"fun addNeighbors ( line : String , graph : Graph , lineNumber : Int ) : Node","body":"{ val node = graph [ lineNumber ] line . split ( '' ) . forEachIndexed { index , value -> node . neighbors . put ( graph [ index ] , value . trim ( ) . toInt ( ) ) } return node }","docstring":""} {"signature":"fun solve ( )","body":"{ Greedy ( graph ) . solve ( ) }","docstring":""} {"signature":"override fun apply ( bitmap : ImageBitmap ) : ImageBitmap","body":"= applyBlurFilter ( bitmap . asAndroidBitmap ( ) , context ) . asImageBitmap ( )","docstring":""} {"signature":"@ OptIn ( ExperimentalContracts :: class ) fun exactlyOnceContract ( block : ( ) -> Unit )","body":"{ contr < caret > act { callsInPlace ( block , InvocationKind . EXACTLY_ONCE ) } block ( ) }","docstring":""} {"signature":"fun classpathFromClassloader ( currentClassLoader : ClassLoader , unpackJarCollections : Boolean = false ) : List < File > ?","body":"{ val processedJars = hashSetOf < File > ( ) val unpackJarCollectionsDir by lazy { File . createTempFile ( \"\" , null ) . canonicalFile . apply { delete ( ) mkdir ( ) setReadable ( false , false ) setWritable ( false , false ) setExecutable ( false , false ) setReadable ( true , true ) setWritable ( true , true ) setExecutable ( true , true ) Runtime . getRuntime ( ) . addShutdownHook ( Thread { deleteRecursively ( ) } ) } } return allRelatedClassLoaders ( currentClassLoader ) . flatMap { classLoader -> var classPath = emptySequence < File > ( ) if ( unpackJarCollections && JAR_COLLECTIONS_KEY_PATHS . any { classLoader . getResource ( it ) ? . file ? . isNotEmpty ( ) == true } ) { val jarCollections = JAR_COLLECTIONS_KEY_PATHS . asSequence ( ) . flatMap { currentClassLoader . getResources ( it ) . asSequence ( ) } . mapNotNull { it . toContainingJarOrNull ( ) ? . takeIf { file -> file . extension in validJarCollectionFilesExtensions && processedJars . add ( file ) } } classPath += jarCollections . flatMap { it . unpackJarCollection ( unpackJarCollectionsDir ) } . filter { it . isValidClasspathFile ( ) } } classPath += when ( classLoader ) { is URLClassLoader -> { classLoader . urLs . asSequence ( ) . mapNotNull { url -> url . toValidClasspathFileOrNull ( ) } } else -> { classLoader . classPathFromGetUrlsMethodOrNull ( ) ? : classLoader . classPathFromTypicalResourceUrls ( ) } } classPath } . filter { processedJars . add ( it ) } . toList ( ) . takeIf { it . isNotEmpty ( ) } }","docstring":""} {"signature":"internal fun URL . toValidClasspathFileOrNull ( ) : File ?","body":"= ( toContainingJarOrNull ( ) ? : toFileOrNull ( ) ) ? . takeIf { it . isValidClasspathFile ( ) }","docstring":""} {"signature":"internal fun File . isValidClasspathFile ( ) : Boolean","body":"= isDirectory || ( isFile && extension in validClasspathFilesExtensions )","docstring":""} {"signature":"private fun ClassLoader . classPathFromGetUrlsMethodOrNull ( ) : Sequence < File > ?","body":"{ return try { val getUrls = this :: class . java . getMethod ( \"\" ) getUrls . isAccessible = true val result = getUrls . invoke ( this ) as? List < Any ? > result ? . asSequence ( ) ? . filterIsInstance < URL > ( ) ? . mapNotNull { it . toValidClasspathFileOrNull ( ) } } catch ( e : Throwable ) { null } }","docstring":""} {"signature":"operator fun invoke ( resourceFile : File ) : File","body":"{ if ( keyResourcePathDepth < ) { keyResourcePathDepth = if ( keyResourcePath . isBlank ( ) ) else ( keyResourcePath . trim ( '' ) . count { it == '' } + ) } var root = resourceFile for ( i in until keyResourcePathDepth ) { root = root . parentFile } return root }","docstring":""} {"signature":"internal fun ClassLoader . rawClassPathFromKeyResourcePath ( keyResourcePath : String ) : Sequence < File >","body":"{ val resourceRootCalc = ClassLoaderResourceRootFIlePathCalculator ( keyResourcePath ) return getResources ( keyResourcePath ) . asSequence ( ) . mapNotNull { url -> if ( url . protocol == \"\" ) { ( url . openConnection ( ) as? JarURLConnection ) ? . jarFileURL ? . toFileOrNull ( ) } else { url . toFileOrNull ( ) ? . let { resourceRootCalc ( it ) } } } }","docstring":""} {"signature":"fun ClassLoader . classPathFromTypicalResourceUrls ( ) : Sequence < File >","body":"= ( rawClassPathFromKeyResourcePath ( \"\" ) + rawClassPathFromKeyResourcePath ( JAR_MANIFEST_RESOURCE_NAME ) ) . distinct ( ) . filter { it . isValidClasspathFile ( ) }","docstring":""} {"signature":"private fun File . unpackJarCollection ( rootTempDir : File ) : Sequence < File >","body":"{ val targetDir = File . createTempFile ( nameWithoutExtension , null , rootTempDir ) . apply { delete ( ) mkdir ( ) } return try { ArrayList < File > ( ) . apply { JarInputStream ( FileInputStream ( this @ unpackJarCollection ) ) . use { jarInputStream -> for ( classesDir in JAR_COLLECTIONS_CLASSES_PATHS ) { add ( File ( targetDir , classesDir ) ) } do { val entry = jarInputStream . nextJarEntry if ( entry != null ) { try { if ( ! entry . isDirectory ) { val file = File ( targetDir , entry . name ) if ( JAR_COLLECTIONS_LIB_PATHS . any { entry . name . startsWith ( \"\" ) } ) { add ( file ) } file . parentFile . mkdirs ( ) file . outputStream ( ) . use { outputStream -> jarInputStream . copyTo ( outputStream ) outputStream . flush ( ) } } } finally { jarInputStream . closeEntry ( ) } } } while ( entry != null ) } } . asSequence ( ) } catch ( e : Throwable ) { targetDir . deleteRecursively ( ) throw e } }","docstring":""} {"signature":"fun classpathFromClasspathProperty ( ) : List < File > ?","body":"= System . getProperty ( \"\" ) ? . split ( String . format ( \"\" , File . pathSeparatorChar ) . toRegex ( ) ) ? . dropLastWhile ( String :: isEmpty ) ? . map ( :: File )","docstring":""} {"signature":"fun classpathFromClass ( classLoader : ClassLoader , klass : KClass < out Any > ) : List < File > ?","body":"= classpathFromFQN ( classLoader , klass . qualifiedName ! ! )","docstring":""} {"signature":"fun classpathFromClass ( klass : KClass < out Any > ) : List < File > ?","body":"= classpathFromClass ( klass . java . classLoader , klass )","docstring":""} {"signature":"inline fun < reified T : Any > classpathFromClass ( ) : List < File > ?","body":"= classpathFromClass ( T :: class )","docstring":""} {"signature":"fun classpathFromFQN ( classLoader : ClassLoader , fqn : String ) : List < File > ?","body":"{ val clp = \"\" return classLoader . rawClassPathFromKeyResourcePath ( clp ) . filter { it . isValidClasspathFile ( ) } . toList ( ) . takeIf { it . isNotEmpty ( ) } }","docstring":""} {"signature":"fun File . matchMaybeVersionedFile ( baseName : String )","body":"= name == baseName || name == baseName . removeSuffix ( \"\" ) || Regex ( Regex . escape ( baseName . removeSuffix ( \"\" ) ) + \"\" ) . matches ( name )","docstring":""} {"signature":"fun File . hasParentNamed ( baseName : String ) : Boolean","body":"= nameWithoutExtension == baseName || parentFile ? . hasParentNamed ( baseName ) ? : false","docstring":""} {"signature":"private fun allRelatedClassLoaders ( clsLoader : ClassLoader , visited : MutableSet < ClassLoader > = HashSet ( ) ) : Sequence < ClassLoader >","body":"{ if ( ! visited . add ( clsLoader ) ) return emptySequence ( ) val singleParent = clsLoader . parent if ( singleParent != null ) return sequenceOf ( singleParent ) . flatMap { allRelatedClassLoaders ( it , visited ) } + clsLoader return try { val arrayOfClassLoaders = getParentClassLoaders ( clsLoader ) arrayOfClassLoaders . asSequence ( ) . flatMap { allRelatedClassLoaders ( it , visited ) } + clsLoader } catch ( e : Throwable ) { sequenceOf ( clsLoader ) } }","docstring":""} {"signature":"private fun getParentClassLoaders ( clsLoader : ClassLoader ) : Array < ClassLoader >","body":"{ return try { getParentsForNewClassLoader ( clsLoader ) } catch ( exception : NoSuchMethodException ) { try { getParentsForOldClassLoader ( clsLoader ) } catch ( exception : NoSuchFieldException ) { emptyArray ( ) } } }","docstring":""} {"signature":"@ Throws ( NoSuchFieldException :: class ) private fun getParentsForOldClassLoader ( clsLoader : ClassLoader ) : Array < ClassLoader >","body":"{ val field = clsLoader . javaClass . getDeclaredField ( \"\" ) field . isAccessible = true @ Suppress ( \"\" ) return field . get ( clsLoader ) as Array < ClassLoader > }","docstring":""} {"signature":"@ Throws ( NoSuchMethodException :: class ) private fun getParentsForNewClassLoader ( clsLoader : ClassLoader ) : Array < ClassLoader >","body":"{ val method = clsLoader . javaClass . getDeclaredMethod ( \"\" ) method . isAccessible = true @ Suppress ( \"\" ) return method . invoke ( clsLoader ) as Array < ClassLoader > }","docstring":""} {"signature":"internal fun List < File > . takeIfContainsAll ( vararg keyNames : String ) : List < File > ?","body":"= takeIf { classpath -> keyNames . all { key -> classpath . any { it . matchMaybeVersionedFile ( key ) } } }","docstring":""} {"signature":"internal fun List < File > . filterIfContainsAll ( vararg keyNames : String ) : List < File > ?","body":"{ val foundKeys = mutableSetOf < String > ( ) val res = arrayListOf < File > ( ) for ( cpentry in this ) { for ( prefix in keyNames ) { if ( cpentry . matchMaybeVersionedFile ( prefix ) || ( cpentry . isDirectory && cpentry . hasParentNamed ( prefix ) ) ) { foundKeys . add ( prefix ) res . add ( cpentry ) break } } } return res . takeIf { foundKeys . containsAll ( keyNames . asList ( ) ) } }","docstring":""} {"signature":"internal fun List < File > . takeIfContainsAny ( vararg keyNames : String ) : List < File > ?","body":"= takeIf { classpath -> keyNames . any { key -> classpath . any { it . matchMaybeVersionedFile ( key ) } } }","docstring":""} {"signature":"fun scriptCompilationClasspathFromContextOrNull ( vararg keyNames : String , classLoader : ClassLoader = Thread . currentThread ( ) . contextClassLoader , wholeClasspath : Boolean = false , unpackJarCollections : Boolean = false ) : List < File > ?","body":"{ fun List < File > . takeAndFilter ( ) = when { isEmpty ( ) -> null wholeClasspath -> takeIfContainsAll ( * keyNames ) else -> filterIfContainsAll ( * keyNames ) } val fromProperty = System . getProperty ( KOTLIN_SCRIPT_CLASSPATH_PROPERTY ) ? . split ( File . pathSeparator ) ? . map ( :: File ) if ( fromProperty != null ) return fromProperty return classpathFromClassloader ( classLoader , unpackJarCollections ) ? . takeAndFilter ( ) ? : classpathFromClasspathProperty ( ) ? . takeAndFilter ( ) }","docstring":""} {"signature":"fun scriptCompilationClasspathFromContextOrStdlib ( vararg keyNames : String , classLoader : ClassLoader = Thread . currentThread ( ) . contextClassLoader , wholeClasspath : Boolean = false ) : List < File >","body":"= scriptCompilationClasspathFromContextOrNull ( * keyNames , classLoader = classLoader , wholeClasspath = wholeClasspath ) ? : KotlinJars . kotlinScriptStandardJars","docstring":""} {"signature":"fun scriptCompilationClasspathFromContext ( vararg keyNames : String , classLoader : ClassLoader = Thread . currentThread ( ) . contextClassLoader , wholeClasspath : Boolean = false , unpackJarCollections : Boolean = false ) : List < File >","body":"= scriptCompilationClasspathFromContextOrNull ( * keyNames , classLoader = classLoader , wholeClasspath = wholeClasspath , unpackJarCollections = unpackJarCollections ) ? : throw ClasspathExtractionException ( \"\" )","docstring":""} {"signature":"private fun findCompilerClasspath ( withScripting : Boolean ) : List < File >","body":"{ val kotlinCompilerJars = listOf ( KOTLIN_COMPILER_JAR , KOTLIN_COMPILER_EMBEDDABLE_JAR ) val kotlinLibsJars = listOf ( KOTLIN_JAVA_STDLIB_JAR , KOTLIN_JAVA_REFLECT_JAR , KOTLIN_JAVA_SCRIPT_RUNTIME_JAR , TROVE4J_JAR ) val kotlinScriptingJars = if ( withScripting ) listOf ( KOTLIN_SCRIPTING_COMPILER_JAR , KOTLIN_SCRIPTING_COMPILER_EMBEDDABLE_JAR , KOTLIN_SCRIPTING_COMPILER_IMPL_JAR , KOTLIN_SCRIPTING_COMPILER_IMPL_EMBEDDABLE_JAR , KOTLIN_SCRIPTING_COMMON_JAR , KOTLIN_SCRIPTING_JVM_JAR ) else emptyList ( ) val kotlinBaseJars = kotlinCompilerJars + kotlinLibsJars + kotlinScriptingJars val classpath = explicitCompilerClasspath ? : ( classpathFromFQN ( Thread . currentThread ( ) . contextClassLoader , \"\" ) ? : classpathFromClassloader ( Thread . currentThread ( ) . contextClassLoader ) ? . takeIf { it . isNotEmpty ( ) } ? : classpathFromClasspathProperty ( ) ) ? . filter { f -> kotlinBaseJars . any { f . matchMaybeVersionedFile ( it ) } } ? . takeIf { it . isNotEmpty ( ) } if ( classpath == null || ( explicitCompilerClasspath == null && classpath . none { f -> kotlinCompilerJars . any { f . matchMaybeVersionedFile ( it ) } } ) ) { throw FileNotFoundException ( \"\" ) } return classpath }","docstring":""} {"signature":"fun getLib ( propertyName : String , jarName : String , markerClass : KClass < * > , classLoader : ClassLoader ? = null ) : File ?","body":"= getExplicitLib ( propertyName , jarName ) ? : run { val requestedClassloader = classLoader ? : Thread . currentThread ( ) . contextClassLoader val byName = if ( requestedClassloader == markerClass . java . classLoader ) null else tryGetResourcePathForClassByName ( markerClass . java . name , requestedClassloader ) byName ? : tryGetResourcePathForClass ( markerClass . java ) } ? . takeIf ( File :: exists )","docstring":""} {"signature":"fun getLib ( propertyName : String , jarName : String , markerClassName : String , classLoader : ClassLoader ? = null ) : File ?","body":"= getExplicitLib ( propertyName , jarName ) ? : tryGetResourcePathForClassByName ( markerClassName , classLoader ? : Thread . currentThread ( ) . contextClassLoader ) ? . takeIf ( File :: exists )","docstring":""} {"signature":"private fun getExplicitLib ( propertyName : String , jarName : String )","body":"= System . getProperty ( propertyName ) ? . let ( :: File ) ? . takeIf ( File :: exists ) ? : explicitCompilerClasspath ? . firstOrNull { it . matchMaybeVersionedFile ( jarName ) } ? . takeIf ( File :: exists )","docstring":""} {"signature":"override fun loadAnnotation ( proto : ProtoBuf . Annotation , nameResolver : NameResolver ) : AnnotationDescriptor","body":"{ return deserializer . deserializeAnnotation ( proto , nameResolver ) }","docstring":""} {"signature":"override fun loadPropertyConstant ( container : ProtoContainer , proto : ProtoBuf . Property , expectedType : KotlinType ) : ConstantValue < * > ?","body":"{ val value = proto . getExtensionOrNull ( protocol . compileTimeValue ) ? : return null return deserializer . resolveValue ( expectedType , value , container . nameResolver ) }","docstring":""} {"signature":"override fun loadAnnotationDefaultValue ( container : ProtoContainer , proto : ProtoBuf . Property , expectedType : KotlinType ) : ConstantValue < * > ?","body":"{ return null }","docstring":""} {"signature":"fun box ( ) : String","body":"{ Outer < Boolean > ( ) . run { val i = Inner ( true , false ) i . prop = true } return \"\" }","docstring":""} {"signature":"fun ok ( a : A ) : B","body":"{ return when ( a ) { is X -> a is Y -> a } }","docstring":""} {"signature":"fun problem ( a : A ) : B","body":"{ return when ( a ) { is X , is Y -> a } }","docstring":""} {"signature":"private fun getMatchingFirExpressionWithSmartCast ( expression : KtExpression ) : FirSmartCastExpression ?","body":"{ if ( ! expression . isExplicitSmartCastInfoTarget ) return null val possibleFunctionCall = expression . getPossiblyQualifiedCallExpressionForCallee ( ) ? : expression return when ( val firExpression = possibleFunctionCall . getOrBuildFir ( analysisSession . firResolveSession ) ) { is FirSmartCastExpression -> firExpression is FirSafeCallExpression -> firExpression . selector as? FirSmartCastExpression is FirImplicitInvokeCall -> firExpression . explicitReceiver as? FirSmartCastExpression else -> null } }","docstring":""} {"signature":"override fun getSmartCastedInfo ( expression : KtExpression ) : KtSmartCastInfo ?","body":"{ val firSmartCastExpression = getMatchingFirExpressionWithSmartCast ( expression ) ? : return null return getSmartCastedInfo ( firSmartCastExpression ) }","docstring":""} {"signature":"private fun getSmartCastedInfo ( expression : FirSmartCastExpression ) : KtSmartCastInfo ?","body":"{ val type = expression . smartcastType . coneTypeSafe < ConeKotlinType > ( ) ? . asKtType ( ) ? : return null return KtSmartCastInfo ( type , expression . isStable , token ) }","docstring":""} {"signature":"private fun getMatchingFirQualifiedAccessExpression ( expression : KtExpression ) : FirQualifiedAccessExpression ?","body":"{ if ( ! expression . isImplicitSmartCastInfoTarget ) return null val wholeExpression = expression . getOperationExpressionForOperationReference ( ) ? : expression . getPossiblyQualifiedCallExpressionForCallee ( ) ? : expression . getQualifiedExpressionForSelector ( ) ? : expression return when ( val firExpression = wholeExpression . getOrBuildFir ( analysisSession . firResolveSession ) ) { is FirQualifiedAccessExpression -> firExpression is FirSafeCallExpression -> firExpression . selector as? FirQualifiedAccessExpression is FirSmartCastExpression -> firExpression . originalExpression as? FirQualifiedAccessExpression else -> null } }","docstring":""} {"signature":"override fun getImplicitReceiverSmartCast ( expression : KtExpression ) : Collection < KtImplicitReceiverSmartCast >","body":"{ val firQualifiedExpression = getMatchingFirQualifiedAccessExpression ( expression ) ? : return emptyList ( ) return listOfNotNull ( smartCastedImplicitReceiver ( firQualifiedExpression , KtImplicitReceiverSmartCastKind . DISPATCH ) , smartCastedImplicitReceiver ( firQualifiedExpression , KtImplicitReceiverSmartCastKind . EXTENSION ) , ) }","docstring":""} {"signature":"private fun smartCastedImplicitReceiver ( firExpression : FirQualifiedAccessExpression , kind : KtImplicitReceiverSmartCastKind , ) : KtImplicitReceiverSmartCast ?","body":"{ val receiver = when ( kind ) { KtImplicitReceiverSmartCastKind . DISPATCH -> firExpression . dispatchReceiver KtImplicitReceiverSmartCastKind . EXTENSION -> firExpression . extensionReceiver } if ( receiver == null || receiver == firExpression . explicitReceiver ) return null if ( ! receiver . isStableSmartcast ( ) ) return null val type = receiver . resolvedType . asKtType ( ) return KtImplicitReceiverSmartCast ( type , kind , token ) }","docstring":""} {"signature":"private fun KtExpression . getPossiblyQualifiedCallExpressionForCallee ( ) : KtExpression ?","body":"{ val expressionParent = this . parent return if ( expressionParent is KtCallExpression && expressionParent . calleeExpression == this ) { expressionParent . getQualifiedExpressionForSelectorOrThis ( ) } else { null } }","docstring":""} {"signature":"private fun KtExpression . getOperationExpressionForOperationReference ( ) : KtOperationExpression ?","body":"= ( this as? KtOperationReferenceExpression ) ? . parent as? KtOperationExpression","docstring":""} {"signature":"fun materialize ( ) : CT","body":"= UserKlass ( ) as CT","docstring":""} {"signature":"fun < FT > build ( instructions : Buildee < FT > . ( ) -> Unit ) : Buildee < FT >","body":"{ return Buildee < FT > ( ) . apply ( instructions ) }","docstring":""} {"signature":"operator fun getValue ( reference : Nothing ? , property : KProperty < * > ) : T","body":"= value","docstring":""} {"signature":"fun testMaterialize ( )","body":"{ fun consume ( arg : UserKlass ) { } val buildee = build { val temp by Delegate ( materialize ( ) ) consume ( temp ) } checkExactType < Buildee < UserKlass > > ( buildee ) }","docstring":""} {"signature":"override fun getClassLikeSymbolByClassId ( classId : ClassId ) : FirClassLikeSymbol < * > ?","body":"{ if ( classId !in includedForwardDeclarations ) return null if ( classId . isNestedClass ) return null return syntheticForwardDeclarationClassCache . getValue ( classId ) }","docstring":""} {"signature":"private fun createSyntheticForwardDeclarationClass ( classId : ClassId ) : FirClassLikeSymbol < * > ?","body":"{ val forwardDeclarationKind = NativeForwardDeclarationKind . packageFqNameToKind [ classId . packageFqName ] ? : return null val symbol = FirRegularClassSymbol ( classId ) buildRegularClass { moduleData = forwardDeclarationsModuleData origin = FirDeclarationOrigin . Synthetic . ForwardDeclaration check ( ! classId . isNestedClass ) { \"\" } name = classId . shortClassName status = FirResolvedDeclarationStatusImpl ( Visibilities . Public , Modality . FINAL , EffectiveVisibility . Public ) . apply { isExpect = false isActual = false isCompanion = false isInner = false isData = false isInline = false isExternal = false isFun = false } classKind = forwardDeclarationKind . classKind scopeProvider = kotlinScopeProvider this . symbol = symbol resolvePhase = FirResolvePhase . ANALYZED_DEPENDENCIES superTypeRefs += buildResolvedTypeRef { type = ConeClassLikeLookupTagImpl ( forwardDeclarationKind . superClassId ) . constructClassType ( emptyArray ( ) , isNullable = false ) } annotations += buildAnnotation { annotationTypeRef = buildResolvedTypeRef { val annotationClassId = ClassId ( NativeStandardInteropNames . cInteropPackage , NativeStandardInteropNames . ExperimentalForeignApi ) type = annotationClassId . toLookupTag ( ) . constructClassType ( typeArguments = ConeTypeProjection . EMPTY_ARRAY , isNullable = false ) } argumentMapping = FirEmptyAnnotationArgumentMapping } } . apply { replaceDeprecationsProvider ( getDeprecationsProvider ( session ) ) } return symbol }","docstring":""} {"signature":"@ FirSymbolProviderInternals override fun getTopLevelCallableSymbolsTo ( destination : MutableList < FirCallableSymbol < * > > , packageFqName : FqName , name : Name )","body":"{ }","docstring":""} {"signature":"@ FirSymbolProviderInternals override fun getTopLevelFunctionSymbolsTo ( destination : MutableList < FirNamedFunctionSymbol > , packageFqName : FqName , name : Name )","body":"{ }","docstring":""} {"signature":"@ FirSymbolProviderInternals override fun getTopLevelPropertySymbolsTo ( destination : MutableList < FirPropertySymbol > , packageFqName : FqName , name : Name )","body":"{ }","docstring":""} {"signature":"override fun getPackage ( fqName : FqName ) : FqName ?","body":"{ if ( fqName in includedForwardDeclarationsByPackage ) { return fqName } return null }","docstring":""} {"signature":"override fun getPackageNamesWithTopLevelClassifiers ( ) : Set < String > ?","body":"= includedForwardDeclarationsByPackage . keys . mapToSetOrEmpty ( FqName :: asString )","docstring":""} {"signature":"override fun getTopLevelClassifierNamesInPackage ( packageFqName : FqName ) : Set < Name >","body":"= includedForwardDeclarationsByPackage [ packageFqName ] . orEmpty ( )","docstring":""} {"signature":"override fun deserialize ( decoder : Decoder ) : LargeStringData","body":"{ require ( decoder is ChunkedDecoder ) { \"\" } val outStringBuilder = StringBuilder ( ) decoder . decodeStringChunked { chunk -> outStringBuilder . append ( chunk ) } return LargeStringData ( outStringBuilder . toString ( ) ) }","docstring":""} {"signature":"override fun serialize ( encoder : Encoder , value : LargeStringData )","body":"{ encoder . encodeString ( value . largeString ) }","docstring":""} {"signature":"@ Test fun decodePlainLenientString ( )","body":"{ val longString = \"\" . repeat ( ) val sourceObject = ClassWithLargeStringDataField ( LargeStringData ( longString ) ) val serializedObject = \"\" val jsonWithLenientMode = Json { isLenient = true } testDecodeInAllModes ( jsonWithLenientMode , serializedObject , sourceObject ) }","docstring":""} {"signature":"@ Test fun decodePlainString ( )","body":"{ val longStringWithEscape = \"\" val sourceObject = ClassWithLargeStringDataField ( LargeStringData ( longStringWithEscape ) ) val serializedObject = Json . encodeToString ( sourceObject ) testDecodeInAllModes ( Json , serializedObject , sourceObject ) }","docstring":""} {"signature":"private fun testDecodeInAllModes ( seralizer : Json , serializedObject : String , sourceObject : ClassWithLargeStringDataField )","body":"{ JsonTestingMode . values ( ) . filterNot { it == JsonTestingMode . JAVA_STREAMS } . forEach { mode -> if ( mode == JsonTestingMode . TREE ) { assertFailsWithMessage < IllegalArgumentException > ( \"\" , \"\" ) { seralizer . decodeFromString < ClassWithLargeStringDataField > ( serializedObject , mode ) } } else { val deserializedObject = seralizer . decodeFromString < ClassWithLargeStringDataField > ( serializedObject , mode ) assertEquals ( sourceObject . largeStringField , deserializedObject . largeStringField ) } } }","docstring":""} {"signature":"fun < T > foo ( t : T ) : Unit","body":"{ }","docstring":""} {"signature":"fun foo ( i : Int ) : Int","body":"= ","docstring":""} {"signature":"fun test ( )","body":"{ checkSubtype < Int > ( foo ( ) ) checkSubtype < Unit > ( foo ( \"\" ) ) }","docstring":""} {"signature":"fun isLower ( ) : Boolean","body":"= this == LOWER","docstring":""} {"signature":"fun isUpper ( ) : Boolean","body":"= this == UPPER","docstring":""} {"signature":"fun isEqual ( ) : Boolean","body":"= this == EQUALITY","docstring":""} {"signature":"fun opposite ( )","body":"= when ( this ) { LOWER -> UPPER UPPER -> LOWER EQUALITY -> EQUALITY }","docstring":""} {"signature":"override fun equals ( other : Any ? ) : Boolean","body":"{ if ( this === other ) return true if ( other ? . javaClass != javaClass ) return false other as Constraint if ( typeHashCode != other . typeHashCode ) return false if ( kind != other . kind ) return false if ( position != other . position ) return false if ( type != other . type ) return false return true }","docstring":""} {"signature":"override fun hashCode ( )","body":"= typeHashCode","docstring":""} {"signature":"override fun toString ( )","body":"= \"\"","docstring":""} {"signature":"fun getConstraintsContainedSpecifiedTypeVariable ( typeVariableConstructor : TypeConstructorMarker ) : Collection < Constraint >","body":"fun getConstraintsContainedSpecifiedTypeVariable ( typeVariableConstructor : TypeConstructorMarker ) : Collection < Constraint >","docstring":"/**\n * Only necessary for incorporation optimization\n */"} {"signature":"override fun toString ( ) : String","body":"= \"\"","docstring":""} {"signature":"fun asStringWithoutPosition ( ) : String","body":"{ val sign = when ( constraintKind ) { ConstraintKind . EQUALITY -> \"\" ConstraintKind . LOWER -> \"\" ConstraintKind . UPPER -> \"\" } return \"\" }","docstring":""} {"signature":"fun checkConstraint ( context : TypeCheckerProviderContext , constraintType : KotlinTypeMarker , constraintKind : ConstraintKind , resultType : KotlinTypeMarker ) : Boolean","body":"{ val typeChecker = AbstractTypeChecker return when ( constraintKind ) { ConstraintKind . EQUALITY -> typeChecker . equalTypes ( context , constraintType , resultType ) ConstraintKind . LOWER -> typeChecker . isSubtypeOf ( context , constraintType , resultType ) ConstraintKind . UPPER -> typeChecker . isSubtypeOf ( context , resultType , constraintType ) } }","docstring":""} {"signature":"fun Constraint . replaceType ( newType : KotlinTypeMarker )","body":"= Constraint ( kind , newType , position , typeHashCode , derivedFrom , isNullabilityConstraint , inputTypePositionBeforeIncorporation )","docstring":""} {"signature":"fun getFunctionClassKind ( functionTypeKind : FunctionTypeKind ) : FunctionClassKind","body":"= when ( functionTypeKind ) { FunctionTypeKind . Function -> Function FunctionTypeKind . SuspendFunction -> SuspendFunction FunctionTypeKind . KFunction -> KFunction FunctionTypeKind . KSuspendFunction -> KSuspendFunction else -> UNKNOWN }","docstring":""} {"signature":"fun box ( ) : String","body":"{ Test ( ) . remove ( null , \"\" ) return \"\" }","docstring":""} {"signature":"override fun < T > Json . encode ( value : T , serializer : KSerializer < T > ) : String","body":"{ return encodeToJsonElement ( serializer , value ) . toString ( ) }","docstring":""} {"signature":"override fun < T > Json . decode ( json : String , serializer : KSerializer < T > ) : T","body":"{ val jsonElement = parseToJsonElement ( json ) return decodeFromJsonElement ( serializer , jsonElement ) }","docstring":""} {"signature":"fun < T > withLock ( action : ( lockFile : File ) -> T ) : T","body":"{ intraProcessLock . withLock { val lockFile = outputDirectory . resolve ( \"\" ) if ( outputDirectory in lockedOutputDirectories ) { return action ( lockFile ) } outputDirectory . mkdirs ( ) logInfo ( \"\" ) FileOutputStream ( outputDirectory . resolve ( \"\" ) ) . use { stream -> val lock : FileLock = stream . channel . lockWithRetries ( lockFile ) assert ( lock . isValid ) return try { logInfo ( \"\" ) lockedOutputDirectories . add ( outputDirectory ) action ( lockFile ) } finally { lockedOutputDirectories . remove ( outputDirectory ) lock . release ( ) logInfo ( \"\" ) } } } }","docstring":""} {"signature":"private fun FileChannel . lockWithRetries ( file : File ) : FileLock","body":"{ var retries = while ( true ) { try { return lock ( ) } catch ( t : OverlappingFileLockException ) { Thread . sleep ( ) retries ++ if ( retries % == ) { logInfo ( \"\" ) } } } }","docstring":""} {"signature":"fun checkLocked ( outputDirectory : File )","body":"{ check ( intraProcessLock . isHeldByCurrentThread ) { \"\" } check ( outputDirectory in lockedOutputDirectories ) { \"\" } }","docstring":""} {"signature":"override fun < E : FirElement > transformElement ( element : E , data : Any ? ) : E","body":"{ error ( \"\" ) }","docstring":""} {"signature":"override fun transformFile ( file : FirFile , data : Any ? ) : FirFile","body":"{ return withFileAnalysisExceptionWrapping ( file ) { file . transform ( transformer , ResolutionMode . ContextIndependent ) } }","docstring":""} {"signature":"@ BeforeTest open fun setup ( )","body":"{ kotlin = project . applyMultiplatformPlugin ( ) }","docstring":""} {"signature":"protected fun enableCInteropCommonization ( )","body":"{ project . enableCInteropCommonization ( ) }","docstring":""} {"signature":"internal suspend fun expectCInteropCommonizerDependent ( compilation : KotlinSharedNativeCompilation ) : CInteropCommonizerDependent","body":"{ return assertNotNull ( CInteropCommonizerDependent . from ( compilation ) , \"\" ) }","docstring":""} {"signature":"internal suspend fun expectCInteropCommonizerDependent ( sourceSet : KotlinSourceSet ) : CInteropCommonizerDependent","body":"{ return assertNotNull ( CInteropCommonizerDependent . from ( sourceSet ) , \"\" ) }","docstring":""} {"signature":"internal suspend fun findCInteropCommonizerDependent ( compilation : KotlinSharedNativeCompilation ) : CInteropCommonizerDependent ?","body":"{ return CInteropCommonizerDependent . from ( compilation ) }","docstring":""} {"signature":"internal suspend fun findCInteropCommonizerDependent ( sourceSet : KotlinSourceSet ) : CInteropCommonizerDependent ?","body":"{ return CInteropCommonizerDependent . from ( sourceSet ) }","docstring":""} {"signature":"internal suspend fun expectSharedNativeCompilation ( sourceSet : KotlinSourceSet ) : KotlinSharedNativeCompilation","body":"{ val compilation = project . findMetadataCompilation ( sourceSet ) ? : fail ( \"\" ) return assertIsInstance < KotlinSharedNativeCompilation > ( compilation ) }","docstring":""} {"signature":"internal fun KotlinNativeTarget . mainCinteropIdentifier ( name : String ) : CInteropIdentifier","body":"{ return compilations . getByName ( \"\" ) . cinteropIdentifier ( name ) }","docstring":""} {"signature":"internal fun KotlinNativeTarget . testCinteropIdentifier ( name : String ) : CInteropIdentifier","body":"{ return compilations . getByName ( \"\" ) . cinteropIdentifier ( name ) }","docstring":""} {"signature":"internal fun KotlinCompilation < * > . cinteropIdentifier ( name : String ) : CInteropIdentifier","body":"{ return CInteropIdentifier ( CInteropIdentifier . Scope . create ( this ) , name ) }","docstring":""} {"signature":"external fun require ( module : String ) : dynamic","body":"external fun require ( module : String ) : dynamic","docstring":""} {"signature":"private fun insertCode ( testCaseCode : TestCase , helperFilesContent : Set < String > ? = null )","body":"{ val code = StringBuilder ( ) helperFilesContent ? . forEach { helperFile -> code . append ( \"\" ) } code . append ( SAMPLE_WRAP_CODE . format ( testCaseCode . code ) ) code . append ( MAIN_FUN_CODE ) `$` ( TEST_CODE_WRAPPER_SELECTOR ) . html ( TEST_CODE_TEMPLATE . format ( code . toString ( ) . escapeHtml ( ) ) ) KotlinPlayground ( TEST_CODE_SELECTOR , json ( \"\" to { testPopup . computeSizes ( ) } , \"\" to { testPopup . computeSizes ( ) } ) ) }","docstring":""} {"signature":"private fun showTestCaseCode ( specTest : SpecTest , helperFilesContent : Set < String > ? = null )","body":"{ `$` ( TEST_CASE_INFO_SELECTOR ) . remove ( ) `$` ( TESTS_VIEWER_SELECTOR ) . append ( TEST_VIEWER_BODY_TEMPLATE . format ( specTest . testInfo . description ) ) val testCases = specTest . testCases insertCode ( testCases . first ( ) , helperFilesContent ) if ( testCases . size == ) { `$` ( NEXT_TESTCASE_SELECTOR ) . addClass ( \"\" ) } }","docstring":""} {"signature":"private fun getHelpers ( helperNames : Set < String > , testArea : TestArea ) : Promise < Array < out String > >","body":"{ val helperFilesPromises = mutableListOf < Promise < String > > ( ) helperNames . forEach { helperName -> helperFilesPromises . add ( SpecTestsLoader . loadHelperFile ( helperName , testArea ) ) } return Promise . all ( helperFilesPromises . toTypedArray ( ) ) }","docstring":""} {"signature":"fun showViewer ( sentenceElement : JQuery )","body":"{ val tests = sentenceElement . data ( \"\" ) as? SpecSentence ? : return val sentenceText = \"\" . format ( sentenceElement . clone ( ) . children ( \"\" ) . text ( ) ) currentSpecSentenceTests = tests testPopup = Popup ( PopupConfig ( title = \"\" , content = SpecCoverageHighlighter . TEMPLATE , width = , height = ) ) . apply { open ( ) } `$` ( TEST_AREA_OPTION_SELECTOR ) . each { _ , el -> val testArea = `$` ( el ) if ( tests . getTests ( TestArea . getByShortName ( testArea . attr ( \"\" ) ) ) == null ) { testArea . remove ( ) } } `$` ( TEST_AREA_SELECTOR ) . `val` ( `$` ( TEST_AREA_OPTION_SELECTOR ) . eq ( ) . `val` ( ) . toString ( ) ) onTestAreaChange ( ) }","docstring":""} {"signature":"fun onTestAreaChange ( )","body":"{ val testArea = TestArea . getByShortName ( `$` ( TEST_AREA_SELECTOR ) . `val` ( ) . toString ( ) . apply { if ( isEmpty ( ) ) return } ) currentSpecSentenceTests . getTests ( testArea ) ? : return TestType . values ( ) . forEach { testType -> val tests = currentSpecSentenceTests . getTests ( testArea , testType ) ? : return@forEach if ( tests . isNotEmpty ( ) ) `$` ( TEST_TYPE_SELECTOR ) . append ( TEST_TYPE_OPTION_TEMPLATE . format ( testType . shortName , testType . name ) ) } `$` ( TEST_TYPE_SELECTOR ) . show ( ) . `val` ( `$` ( TEST_TYPE_OPTION_SELECTOR ) . eq ( ) . `val` ( ) . toString ( ) ) onTestTypeChange ( ) }","docstring":""} {"signature":"fun onTestTypeChange ( )","body":"{ val testType = TestType . getByShortName ( `$` ( TEST_TYPE_SELECTOR ) . `val` ( ) . toString ( ) . apply { if ( isEmpty ( ) ) return } ) val testArea = TestArea . getByShortName ( `$` ( TEST_AREA_SELECTOR ) . `val` ( ) . toString ( ) ) val tests = currentSpecSentenceTests . getTests ( testArea , testType ) ? : return `$` ( TEST_PRIORITY_OPTION_SELECTOR ) . each { _ , el -> val testPriority = `$` ( el ) if ( tests . getTestsByTestPriority ( LinkType . valueOf ( testPriority . attr ( \"\" ) ) ) . isEmpty ( ) ) { testPriority . remove ( ) } } `$` ( TEST_PRIORITY_SELECTOR ) . `val` ( `$` ( TEST_PRIORITY_OPTION_SELECTOR ) . eq ( ) . `val` ( ) . toString ( ) ) onTestPriorityChange ( ) }","docstring":""} {"signature":"private fun List < SpecTest > . getTestsByTestPriority ( attr : LinkType ) : List < SpecTest >","body":"{ return this . filter { test -> test . testInfo . linkType == attr } }","docstring":""} {"signature":"fun onTestPriorityChange ( )","body":"{ val testPriority = LinkType . valueOf ( `$` ( TEST_PRIORITY_SELECTOR ) . `val` ( ) . toString ( ) . apply { if ( isEmpty ( ) ) return } ) val testArea = TestArea . getByShortName ( `$` ( TEST_AREA_SELECTOR ) . `val` ( ) . toString ( ) ) val testType = TestType . getByShortName ( `$` ( TEST_TYPE_SELECTOR ) . `val` ( ) . toString ( ) ) val tests = currentSpecSentenceTests . getTests ( testArea , testType , testPriority ) ? : return `$` ( TEST_NUMBER_SELECTOR ) . empty ( ) tests . forEach { test -> `$` ( TEST_NUMBER_SELECTOR ) . append ( TEST_NUMBER_OPTION_TEMPLATE . format ( test . testInfo . testNumber , test . testInfo . description ) ) } `$` ( TEST_NUMBER_SELECTOR ) . show ( ) . `val` ( `$` ( TEST_NUMBER_OPTION_SELECTOR ) . eq ( ) . `val` ( ) . toString ( ) ) onTestNumberChange ( ) }","docstring":""} {"signature":"fun onTestNumberChange ( )","body":"{ val testNumber = `$` ( TEST_NUMBER_SELECTOR ) . `val` ( ) . toString ( ) . apply { if ( isEmpty ( ) ) return } . toInt ( ) val testPriority = LinkType . valueOf ( `$` ( TEST_PRIORITY_SELECTOR ) . `val` ( ) . toString ( ) ) val testArea = TestArea . getByShortName ( `$` ( TEST_AREA_SELECTOR ) . `val` ( ) . toString ( ) ) val testType = TestType . getByShortName ( `$` ( TEST_TYPE_SELECTOR ) . `val` ( ) . toString ( ) ) val specTest = currentSpecSentenceTests . getTest ( testArea , testType , testPriority , testNumber ) ? : return if ( specTest . testInfo . helpers . isNotEmpty ( ) ) { getHelpers ( specTest . testInfo . helpers , testArea ) . then { showTestCaseCode ( specTest , it . toSet ( ) ) } } else { showTestCaseCode ( specTest ) } }","docstring":""} {"signature":"fun navigateTestCase ( navigationLink : JQuery , navigationType : NavigationType )","body":"{ if ( navigationLink . hasClass ( \"\" ) ) return val testArea = TestArea . getByShortName ( `$` ( TEST_AREA_SELECTOR ) . `val` ( ) . toString ( ) ) val testType = TestType . getByShortName ( `$` ( TEST_TYPE_SELECTOR ) . `val` ( ) . toString ( ) ) val testNumber = `$` ( TEST_NUMBER_SELECTOR ) . `val` ( ) . toString ( ) . toInt ( ) val testPriority = LinkType . valueOf ( `$` ( TEST_PRIORITY_SELECTOR ) . `val` ( ) . toString ( ) ) val specTest = currentSpecSentenceTests . getTest ( testArea , testType , testPriority , testNumber ) ? : return val currentNumber = `$` ( TESTCASE_NUMBER_SELECTOR ) . text ( ) . toInt ( ) val caseNumber = if ( navigationType == NavigationType . PREV ) currentNumber - else currentNumber val testCases = specTest . testCases `$` ( TESTCASE_NUMBER_SELECTOR ) . html ( ( caseNumber + ) . toString ( ) ) if ( specTest . testInfo . helpers . isNotEmpty ( ) ) { getHelpers ( specTest . testInfo . helpers , testArea ) . then { insertCode ( testCases [ caseNumber ] , it . toSet ( ) ) } } else { insertCode ( testCases [ caseNumber ] ) } if ( caseNumber + >= testCases . size ) { `$` ( NEXT_TESTCASE_SELECTOR ) . addClass ( \"\" ) } else if ( navigationType == NavigationType . PREV && `$` ( NEXT_TESTCASE_SELECTOR ) . hasClass ( \"\" ) ) { `$` ( NEXT_TESTCASE_SELECTOR ) . removeClass ( \"\" ) } if ( navigationType == NavigationType . NEXT && `$` ( PREV_TESTCASE_SELECTOR ) . hasClass ( \"\" ) ) { `$` ( PREV_TESTCASE_SELECTOR ) . removeClass ( \"\" ) } else if ( caseNumber + == ) { `$` ( PREV_TESTCASE_SELECTOR ) . addClass ( \"\" ) } }","docstring":""} {"signature":"inline fun < reified A > isDocumented ( ) : Boolean","body":"= A :: class . java . getDeclaredAnnotation ( Documented :: class . java ) != null","docstring":""} {"signature":"fun box ( ) : String","body":"{ if ( isDocumented < NoDocumented > ( ) ) return \"\" if ( ! isDocumented < ExplicitMustBeDocumented > ( ) ) return \"\" if ( ! isDocumented < ExplicitJavaDocumented > ( ) ) return \"\" if ( ! isDocumented < ExplicitBoth > ( ) ) return \"\" return \"\" }","docstring":""} {"signature":"external fun __promisify__ ( hostname : String ) : Promise < Array < dns . NaptrRecord > >","body":"external fun __promisify__ ( hostname : String ) : Promise < Array < dns . NaptrRecord > >","docstring":""} {"signature":"fun < T > runBlocking ( c : suspend ( ) -> T ) : T","body":"{ var res : T ? = null c . startCoroutine ( Continuation ( EmptyCoroutineContext ) { res = it . getOrThrow ( ) } ) return res ! ! }","docstring":""} {"signature":"fun foo ( )","body":"= runBlocking { action . invoke ( ) }","docstring":""} {"signature":"fun < W > withExponentialBackoff ( action : ( ) -> W ) : Builder < W >","body":"{ return Builder ( action ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ return Owner ( \"\" ) . withExponentialBackoff { \"\" } . foo ( ) }","docstring":""} {"signature":"fun make ( x : String ) : C","body":"fun make ( x : String ) : C","docstring":""} {"signature":"fun make ( makeC : MakeC )","body":"= makeC . make ( \"\" )","docstring":""} {"signature":"fun box ( )","body":"= make ( :: C ) . test","docstring":""} {"signature":"fun invoke ( f : ( ) -> Unit )","body":"{ ( f ) ( ) }","docstring":""} {"signature":"fun addAll ( other : BuildPerformanceMetrics < T > )","body":"{ for ( ( bt , timeNs ) in other . myBuildMetrics ) { add ( bt , timeNs ) } }","docstring":""} {"signature":"fun add ( metric : T , value : Long = )","body":"{ myBuildMetrics [ metric ] = myBuildMetrics . getOrDefault ( metric , ) + value }","docstring":""} {"signature":"fun asMap ( ) : Map < T , Long >","body":"= myBuildMetrics","docstring":""} {"signature":"fun box ( ) : String","body":"{ val plusZero : Any = val minusZero : Any = - val nullDouble : Double ? = null if ( plusZero is Double ) { when ( plusZero ) { nullDouble -> { return \"\" } - -> { } else -> { return \"\" } } if ( minusZero is Double ) { when ( plusZero ) { nullDouble -> { return \"\" } minusZero -> { } else -> { return \"\" } } } } return \"\" }","docstring":""} {"signature":"fun render ( analysisSession : KtAnalysisSession , type : KtType ? , variance : Variance = Variance . INVARIANT , ) : String ?","body":"{ with ( analysisSession ) { return type ? . render ( position = variance ) } }","docstring":""} {"signature":"fun render ( type : PsiType ? ) : String ?","body":"= type ? . let ( PsiClassRenderer :: renderType )","docstring":""} {"signature":"internal fun getContainingKtLightClass ( declaration : KtDeclaration , ktFile : KtFile , ) : KtLightClass","body":"{ val project = ktFile . project return createLightClassByContainingClass ( declaration , project ) ? : getFacadeLightClass ( ktFile , project ) ? : error ( \"\" ) }","docstring":""} {"signature":"private fun getFacadeLightClass ( ktFile : KtFile , project : Project , ) : KtLightClass ?","body":"= project . getService ( KotlinAsJavaSupport :: class . java ) . getLightFacade ( ktFile )","docstring":""} {"signature":"private fun createLightClassByContainingClass ( declaration : KtDeclaration , project : Project ) : KtLightClass ?","body":"{ val containingClass = declaration . parents . firstIsInstanceOrNull < KtClassOrObject > ( ) ? : return null return KotlinAsJavaSupport . getInstance ( project ) . getLightClass ( containingClass ) }","docstring":""} {"signature":"internal fun KtLightClass . findLightDeclarationContext ( ktDeclaration : KtDeclaration ) : KtLightElement < * , * > ?","body":"{ val selfOrParents = listOf ( ktDeclaration ) + ktDeclaration . parents . filterIsInstance < KtDeclaration > ( ) var result : KtLightElement < * , * > ? = null val visitor = object : PsiElementVisitor ( ) { override fun visitElement ( element : PsiElement ) { if ( element !is KtLightElement < * , * > ) return if ( element is PsiClass ) { element . fields . forEach { it . accept ( this ) } element . methods . forEach { it . accept ( this ) } element . innerClasses . forEach { it . accept ( this ) } } if ( result == null && element . kotlinOrigin in selfOrParents ) { result = element return } } } accept ( visitor ) return result }","docstring":""} {"signature":"override fun DokkatooFormatPluginContext . configure ( )","body":"{ project . dependencies { dokkaPlugin ( dokka ( \"\" ) ) } }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val i = if ( i . getter != ) return \"\" return \"\" }","docstring":""} {"signature":"fun foo ( ) : CharSequence ?","body":"fun foo ( ) : CharSequence ?","docstring":""} {"signature":"fun foo ( ) : String","body":"fun foo ( ) : String","docstring":""} {"signature":"fun test ( c : Any )","body":"{ if ( c is B && c is A ) { c . foo ( ) . checkType { _ < String > ( ) } } }","docstring":""} {"signature":"override fun resolveFunctionTypeIfSamInterface ( classDescriptor : ClassDescriptor ) : SimpleType ?","body":"{ return resolver . resolveFunctionTypeIfSamInterface ( classDescriptor ) }","docstring":""} {"signature":"override fun resolveFunctionTypeIfSamInterface ( classDescriptor : ClassDescriptor ) : SimpleType ?","body":"{ return functionTypesForSamInterfaces . computeIfAbsent ( classDescriptor ) { val abstractMethod = getSingleAbstractMethodOrNull ( classDescriptor ) ? : return@computeIfAbsent null val shouldConvertFirstParameterToDescriptor = samWithReceiverResolvers . any { it . shouldConvertFirstSamParameterToReceiver ( abstractMethod ) } getFunctionTypeForAbstractMethod ( abstractMethod , shouldConvertFirstParameterToDescriptor ) } }","docstring":""} {"signature":"fun getSingleAbstractMethodOrNull ( klass : ClassDescriptor ) : FunctionDescriptor ?","body":"{ if ( klass . fqNameSafe . asString ( ) . endsWith ( \"\" ) ) return null if ( klass . isDefinitelyNotSamInterface ) return null val abstractMember = getAbstractMembers ( klass ) . singleOrNull ( ) ? : return null return if ( abstractMember is SimpleFunctionDescriptor && abstractMember . typeParameters . isEmpty ( ) ) abstractMember else null }","docstring":""} {"signature":"@ Suppress ( \"\" ) fun getAbstractMembers ( classDescriptor : ClassDescriptor ) : List < CallableMemberDescriptor >","body":"{ return DescriptorUtils . getAllDescriptors ( classDescriptor . unsubstitutedMemberScope ) . filter { it is CallableMemberDescriptor && it . modality == Modality . ABSTRACT } as List < CallableMemberDescriptor > }","docstring":""} {"signature":"fun getFunctionTypeForAbstractMethod ( function : FunctionDescriptor , shouldConvertFirstParameterToDescriptor : Boolean ) : SimpleType","body":"{ val returnType = function . returnType ? : error ( \"\" ) val valueParameters = function . valueParameters val parameterTypes = ArrayList < KotlinType > ( valueParameters . size ) val parameterNames = ArrayList < Name > ( valueParameters . size ) val contextReceiversTypes = function . contextReceiverParameters . map { it . type } var startIndex = var receiverType : KotlinType ? = null val extensionReceiver = function . extensionReceiverParameter if ( extensionReceiver != null ) { receiverType = extensionReceiver . type } else if ( shouldConvertFirstParameterToDescriptor && function . valueParameters . isNotEmpty ( ) ) { receiverType = valueParameters [ ] . type startIndex = } for ( i in startIndex until valueParameters . size ) { val parameter = valueParameters [ i ] parameterTypes . add ( parameter . type ) parameterNames . add ( if ( function . hasSynthesizedParameterNames ( ) ) SpecialNames . NO_NAME_PROVIDED else parameter . name ) } return createFunctionType ( function . builtIns , EMPTY , receiverType , contextReceiversTypes , parameterTypes , parameterNames , returnType , function . isSuspend ) }","docstring":""} {"signature":"fun SamConversionResolver . getFunctionTypeForPossibleSamType ( possibleSamType : UnwrappedType , samConversionOracle : SamConversionOracle ) : UnwrappedType ?","body":"= getFunctionTypeForSamType ( possibleSamType , this , samConversionOracle ) ? . unwrap ( )","docstring":""} {"signature":"fun getFunctionTypeForSamType ( samType : KotlinType , samResolver : SamConversionResolver , samConversionOracle : SamConversionOracle ) : KotlinType ?","body":"{ val unwrappedType = samType . unwrap ( ) if ( unwrappedType is FlexibleType ) { val lower = getFunctionTypeForSamType ( unwrappedType . lowerBound , samResolver , samConversionOracle ) val upper = getFunctionTypeForSamType ( unwrappedType . upperBound , samResolver , samConversionOracle ) assert ( ( lower == null ) == ( upper == null ) ) { \"\" } if ( lower == null || upper == null ) return null return KotlinTypeFactory . flexibleType ( lower , upper ) } else { return getFunctionTypeForSamType ( unwrappedType as SimpleType , samResolver , samConversionOracle ) } }","docstring":""} {"signature":"private fun getFunctionTypeForSamType ( samType : SimpleType , samResolver : SamConversionResolver , samConversionOracle : SamConversionOracle ) : SimpleType ?","body":"{ val classifier = samType . constructor . declarationDescriptor if ( classifier !is ClassDescriptor ) return null if ( ! samConversionOracle . isPossibleSamType ( samType ) ) return null val functionTypeDefault = samResolver . resolveFunctionTypeIfSamInterface ( classifier ) ? : return null val noProjectionsSamType = nonProjectionParametrization ( samType ) ? : return null val type = TypeSubstitutor . create ( noProjectionsSamType ) . substitute ( functionTypeDefault , Variance . IN_VARIANCE ) assert ( type != null ) { \"\" } val simpleType = type ! ! . asSimpleType ( ) return simpleType . makeNullableAsSpecified ( samType . isMarkedNullable ) }","docstring":""} {"signature":"fun nonProjectionParametrization ( samType : SimpleType ) : SimpleType ?","body":"{ if ( samType . arguments . none { it . projectionKind != Variance . INVARIANT } ) return samType val parameters = samType . constructor . parameters val parametersSet = parameters . toSet ( ) return samType . replace ( newArguments = samType . arguments . zip ( parameters ) . map { val ( projection , parameter ) = it when { projection . projectionKind == Variance . INVARIANT -> projection projection . isStarProjection -> parameter . upperBounds . first ( ) . takeUnless { t -> t . contains { it . constructor . declarationDescriptor in parametersSet } } ? . asTypeProjection ( ) ? : return@nonProjectionParametrization null else -> projection . type . asTypeProjection ( ) } } ) }","docstring":""} {"signature":"override fun toString ( )","body":"= \"\"","docstring":""} {"signature":"fun box ( ) : String","body":"{ val sum = Sign . plus . func ( , ) if ( sum != ) return \"\" val product = Sign . mult . toString ( ) if ( product != \"\" ) return \"\" return \"\" }","docstring":""} {"signature":"fun PropertyAccessorDescriptor . hasBody ( ) : Boolean","body":"{ val ktAccessor = DescriptorToSourceUtils . getSourceFromDescriptor ( this ) as? KtDeclarationWithBody return ktAccessor != null && ktAccessor . hasBody ( ) }","docstring":""} {"signature":"fun isBackingFieldReference ( descriptor : DeclarationDescriptor ? ) : Boolean","body":"{ return descriptor is SyntheticFieldDescriptor }","docstring":""} {"signature":"fun fn0 ( )","body":"{ }","docstring":""} {"signature":"fun fn1 ( x : Any )","body":"{ }","docstring":""} {"signature":"fun Any . extFun ( )","body":"{ }","docstring":""} {"signature":"fun foo ( )","body":"{ }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val f0 = :: fn0 as Any val f1 = :: fn1 as Any val ef = Any :: extFun as Any val afoo = A :: foo fun local0 ( ) { } fun local1 ( x : Any ) { } val localFun0 = :: local0 as Any val localFun1 = :: local1 as Any if ( f0 !is Function0 < * > ) return \"\" if ( f1 !is Function1 < * , * > ) return \"\" if ( lambda0 !is Function0 < * > ) return \"\" if ( lambda1 !is Function1 < * , * > ) return \"\" if ( localFun0 !is Function0 < * > ) return \"\" if ( localFun1 !is Function1 < * , * > ) return \"\" if ( ef !is Function1 < * , * > ) return \"\" if ( afoo !is Function1 < * , * > ) return \"\" return \"\" }","docstring":""} {"signature":"fun test ( foo : Int )","body":"{ test ( . foo ) test ( foo ) }","docstring":""} {"signature":"fun calculateResult ( context : Context ? )","body":"{ context ! ! val project = context . project ! ! }","docstring":""} {"signature":"fun functionStarted ( )","body":"fun functionStarted ( )","docstring":""} {"signature":"fun functionEnded ( tokenStream : TokenStream )","body":"fun functionEnded ( tokenStream : TokenStream )","docstring":""} {"signature":"fun resolvePackageHeader ( packageDirective : KtPackageDirective , module : ModuleDescriptor , trace : BindingTrace )","body":"{ val packageNames = packageDirective . packageNames for ( ( index , nameExpression ) in packageNames . withIndex ( ) ) { storeResult ( trace , nameExpression , module . getPackage ( packageDirective . getFqName ( nameExpression ) ) , shouldBeVisibleFrom = null , position = QualifierPosition . PACKAGE_HEADER , isQualifier = index != packageNames . lastIndex ) } }","docstring":""} {"signature":"fun LexicalScope . findClassifierAndReportDeprecationIfNeeded ( name : Name , lookupLocation : KotlinLookupLocation , reportOn : KtExpression ? , trace : BindingTrace ) : ClassifierDescriptor ?","body":"{ val ( classifier , isDeprecated ) = findFirstClassifierWithDeprecationStatus ( name , lookupLocation ) ? : return null if ( isDeprecated && reportOn != null ) { trace . record ( BindingContext . DEPRECATED_SHORT_NAME_ACCESS , reportOn ) if ( ! classifier . canBeResolvedWithoutDeprecation ( this , lookupLocation ) ) { trace . report ( Errors . DEPRECATED_ACCESS_BY_SHORT_NAME . on ( reportOn , classifier ) ) } } return classifier }","docstring":""} {"signature":"fun resolveDescriptorForType ( userType : KtUserType , scope : LexicalScope , trace : BindingTrace , isDebuggerContext : Boolean ) : TypeQualifierResolutionResult","body":"{ val ownerDescriptor = if ( ! isDebuggerContext ) scope . ownerDescriptor else null if ( userType . qualifier == null ) { val descriptor = userType . referenceExpression ? . let { expression -> val classifier = scope . findClassifierAndReportDeprecationIfNeeded ( expression . getReferencedNameAsName ( ) , KotlinLookupLocation ( expression ) , expression , trace ) checkNotEnumEntry ( classifier , trace , expression ) storeResult ( trace , expression , classifier , ownerDescriptor , position = QualifierPosition . TYPE , isQualifier = false ) classifier } return TypeQualifierResolutionResult ( userType . asQualifierPartList ( ) . first , descriptor ) } val ( qualifierPartList , hasError ) = userType . asQualifierPartList ( ) if ( hasError ) { val descriptor = resolveToPackageOrClass ( qualifierPartList , scope . ownerDescriptor . module , trace , ownerDescriptor , scope , position = QualifierPosition . TYPE ) as? ClassifierDescriptor return TypeQualifierResolutionResult ( qualifierPartList , descriptor ) } return resolveQualifierPartListForType ( qualifierPartList , ownerDescriptor , scope , trace , isQualifier = false ) }","docstring":""} {"signature":"private fun resolveQualifierPartListForType ( qualifierPartList : List < ExpressionQualifierPart > , ownerDescriptor : DeclarationDescriptor ? , scope : LexicalScope , trace : BindingTrace , isQualifier : Boolean ) : TypeQualifierResolutionResult","body":"{ assert ( qualifierPartList . isNotEmpty ( ) ) { \"\" } val qualifier = resolveToPackageOrClass ( qualifierPartList . subList ( , qualifierPartList . size - ) , scope . ownerDescriptor . module , trace , ownerDescriptor , scope , position = QualifierPosition . TYPE ) ? : return TypeQualifierResolutionResult ( qualifierPartList , null ) val lastPart = qualifierPartList . last ( ) val classifier = when ( qualifier ) { is PackageViewDescriptor -> qualifier . memberScope . getContributedClassifier ( lastPart . name , lastPart . location ) is ClassDescriptor -> { val descriptor = qualifier . unsubstitutedInnerClassesScope . getContributedClassifier ( lastPart . name , lastPart . location ) checkNotEnumEntry ( descriptor , trace , lastPart . expression ) descriptor } else -> null } storeResult ( trace , lastPart . expression , classifier , ownerDescriptor , position = QualifierPosition . TYPE , isQualifier = isQualifier ) return TypeQualifierResolutionResult ( qualifierPartList , classifier ) }","docstring":""} {"signature":"private fun checkNotEnumEntry ( descriptor : DeclarationDescriptor ? , trace : BindingTrace , expression : KtSimpleNameExpression ? )","body":"{ expression ? : return if ( descriptor != null && DescriptorUtils . isEnumEntry ( descriptor ) ) { val qualifiedParent = expression . getTopmostParentQualifiedExpressionForSelector ( ) if ( qualifiedParent == null || qualifiedParent . parent !is KtDoubleColonExpression ) { trace . report ( Errors . ENUM_ENTRY_AS_TYPE . on ( expression ) ) } } }","docstring":""} {"signature":"fun resolveDescriptorForDoubleColonLHS ( expression : KtExpression , scope : LexicalScope , trace : BindingTrace , isDebuggerContext : Boolean ) : TypeQualifierResolutionResult","body":"{ val ownerDescriptor = if ( ! isDebuggerContext ) scope . ownerDescriptor else null val qualifierPartList = expression . asQualifierPartList ( doubleColonLHS = true ) if ( qualifierPartList . isEmpty ( ) ) { return TypeQualifierResolutionResult ( qualifierPartList , null ) } if ( qualifierPartList . size == ) { val ( name , simpleNameExpression ) = qualifierPartList . single ( ) val descriptor = scope . findClassifierAndReportDeprecationIfNeeded ( name , KotlinLookupLocation ( simpleNameExpression ) , simpleNameExpression , trace ) storeResult ( trace , simpleNameExpression , descriptor , ownerDescriptor , position = QualifierPosition . TYPE , isQualifier = true ) return TypeQualifierResolutionResult ( qualifierPartList , descriptor ) } return resolveQualifierPartListForType ( qualifierPartList , ownerDescriptor , scope , trace , isQualifier = true ) }","docstring":""} {"signature":"private fun KtUserType . asQualifierPartList ( ) : Pair < List < ExpressionQualifierPart > , Boolean >","body":"{ var hasError = false val result = SmartList < ExpressionQualifierPart > ( ) var userType : KtUserType ? = this while ( userType != null ) { val referenceExpression = userType . referenceExpression if ( referenceExpression != null ) { result . add ( ExpressionQualifierPart ( referenceExpression . getReferencedNameAsName ( ) , referenceExpression , userType . typeArgumentList ) ) } else { hasError = true } userType = userType . qualifier } return result . asReversed ( ) to hasError }","docstring":""} {"signature":"fun processImportReference ( importDirective : KtImportInfo , moduleDescriptor : ModuleDescriptor , trace : BindingTrace , excludedImportNames : Collection < FqName > , packageFragmentForVisibilityCheck : PackageFragmentDescriptor ? ) : ImportingScope ?","body":"{ fun processReferenceInContextOf ( moduleDescriptor : ModuleDescriptor ) : ImportingScope ? = doProcessImportReference ( importDirective , moduleDescriptor , trace , excludedImportNames , packageFragmentForVisibilityCheck ) val primaryImportingScope = processReferenceInContextOf ( moduleDescriptor ) if ( ! languageVersionSettings . isLibraryToSourceAnalysisEnabled ) return primaryImportingScope val resolutionAnchor = moduleDescriptor . getResolutionAnchorIfAny ( ) ? : return primaryImportingScope val anchorImportingScope = processReferenceInContextOf ( resolutionAnchor ) ? : return primaryImportingScope if ( primaryImportingScope == null ) return anchorImportingScope return CompositePrioritizedImportingScope ( anchorImportingScope , primaryImportingScope ) }","docstring":""} {"signature":"private fun doProcessImportReference ( importDirective : KtImportInfo , moduleDescriptor : ModuleDescriptor , trace : BindingTrace , excludedImportNames : Collection < FqName > , packageFragmentForVisibilityCheck : PackageFragmentDescriptor ? ) : ImportingScope ?","body":"{ ProgressIndicatorAndCompilationCanceledStatus . checkCanceled ( ) val importedReference = importDirective . importContent ? : return null val path = importedReference . asQualifierPartList ( ) val lastPart = path . lastOrNull ( ) ? : return null val packageFragmentForCheck = if ( importDirective is KtImportDirective ) computePackageFragmentToCheck ( importDirective . containingKtFile , packageFragmentForVisibilityCheck ) else null if ( importDirective . isAllUnder ) { val packageOrClassDescriptor = resolveToPackageOrClass ( path , moduleDescriptor , trace , packageFragmentForCheck , scopeForFirstPart = null , position = QualifierPosition . IMPORT ) . classDescriptorFromTypeAlias ( ) ? : return null if ( packageOrClassDescriptor is ClassDescriptor && packageOrClassDescriptor . kind . isSingleton && lastPart . expression != null ) { trace . report ( Errors . CANNOT_ALL_UNDER_IMPORT_FROM_SINGLETON . on ( lastPart . expression ! ! , packageOrClassDescriptor ) ) return null } return AllUnderImportScope . create ( packageOrClassDescriptor , excludedImportNames ) } else { return processSingleImport ( moduleDescriptor , trace , importDirective , path , lastPart , packageFragmentForCheck ) } }","docstring":""} {"signature":"private fun DeclarationDescriptor ? . classDescriptorFromTypeAlias ( ) : DeclarationDescriptor ?","body":"{ return if ( this is TypeAliasDescriptor ) classDescriptor else this }","docstring":""} {"signature":"private fun computePackageFragmentToCheck ( containingFile : KtFile , packageFragmentForVisibilityCheck : PackageFragmentDescriptor ? ) : PackageFragmentDescriptor ?","body":"= when { containingFile . suppressDiagnosticsInDebugMode ( ) -> null packageFragmentForVisibilityCheck is DeclarationDescriptorWithSource && packageFragmentForVisibilityCheck . source == SourceElement . NO_SOURCE -> { PackageFragmentWithCustomSource ( packageFragmentForVisibilityCheck , KotlinSourceElement ( containingFile ) ) } else -> packageFragmentForVisibilityCheck }","docstring":""} {"signature":"private fun processSingleImport ( moduleDescriptor : ModuleDescriptor , trace : BindingTrace , importDirective : KtImportInfo , path : List < QualifierPart > , lastPart : QualifierPart , packageFragmentForVisibilityCheck : PackageFragmentDescriptor ? ) : ImportingScope ?","body":"{ val aliasName = importDirective . importedName if ( aliasName == null ) { resolveToPackageOrClass ( path , moduleDescriptor , trace , packageFragmentForVisibilityCheck , scopeForFirstPart = null , position = QualifierPosition . IMPORT ) return null } val resolvedDescriptor = resolveToPackageOrClass ( path . subList ( , path . size - ) , moduleDescriptor , trace , packageFragmentForVisibilityCheck , scopeForFirstPart = null , position = QualifierPosition . IMPORT ) ? : return null val packageOrClassDescriptor = ( resolvedDescriptor as? TypeAliasDescriptor ) ? . let { it . classDescriptor ? : return null } ? : resolvedDescriptor return LazyExplicitImportScope ( languageVersionSettings , packageOrClassDescriptor , packageFragmentForVisibilityCheck , lastPart . name , aliasName , CallOnceFunction ( Unit ) { candidates -> if ( candidates . isNotEmpty ( ) ) { storeResult ( trace , lastPart . expression , candidates , packageFragmentForVisibilityCheck , position = QualifierPosition . IMPORT , isQualifier = false ) } else { tryResolveDescriptorsWhichCannotBeImported ( trace , moduleDescriptor , packageOrClassDescriptor , lastPart ) } } ) }","docstring":""} {"signature":"private fun tryResolveDescriptorsWhichCannotBeImported ( trace : BindingTrace , moduleDescriptor : ModuleDescriptor , packageOrClassDescriptor : DeclarationDescriptor , lastPart : QualifierPart )","body":"{ val lastPartExpression = lastPart . expression ? : return val descriptors = SmartList < DeclarationDescriptor > ( ) val lastName = lastPart . name when ( packageOrClassDescriptor ) { is PackageViewDescriptor -> { val packageDescriptor = moduleDescriptor . getPackage ( packageOrClassDescriptor . fqName . child ( lastName ) ) if ( ! packageDescriptor . isEmpty ( ) ) { trace . report ( Errors . PACKAGE_CANNOT_BE_IMPORTED . on ( lastPartExpression ) ) descriptors . add ( packageOrClassDescriptor ) } } is ClassDescriptor -> { val memberScope = packageOrClassDescriptor . unsubstitutedMemberScope descriptors . addAll ( memberScope . getContributedFunctions ( lastName , lastPart . location ) ) descriptors . addAll ( memberScope . getContributedVariables ( lastName , lastPart . location ) ) if ( descriptors . isNotEmpty ( ) ) { trace . report ( Errors . CANNOT_BE_IMPORTED . on ( lastPartExpression , lastName ) ) } } else -> throw IllegalStateException ( \"\" ) } storeResult ( trace , lastPart . expression , descriptors , shouldBeVisibleFrom = null , position = QualifierPosition . IMPORT , isQualifier = false ) }","docstring":""} {"signature":"private fun KtImportInfo . ImportContent . asQualifierPartList ( ) : List < QualifierPart >","body":"= when ( this ) { is KtImportInfo . ImportContent . ExpressionBased -> expression . asQualifierPartList ( ) is KtImportInfo . ImportContent . FqNameBased -> fqName . pathSegments ( ) . map { QualifierPart ( it ) } }","docstring":""} {"signature":"private fun KtExpression . asQualifierPartList ( doubleColonLHS : Boolean = false ) : List < ExpressionQualifierPart >","body":"{ val result = SmartList < ExpressionQualifierPart > ( ) fun addQualifierPart ( expression : KtExpression ? ) : Boolean { if ( expression is KtSimpleNameExpression ) { result . add ( ExpressionQualifierPart ( expression ) ) return true } if ( doubleColonLHS && expression is KtCallExpression && expression . isWithoutValueArguments ) { val simpleName = expression . calleeExpression if ( simpleName is KtSimpleNameExpression ) { result . add ( ExpressionQualifierPart ( simpleName . getReferencedNameAsName ( ) , simpleName , expression . typeArgumentList ) ) return true } } return false } var expression : KtExpression ? = this while ( true ) { if ( addQualifierPart ( expression ) ) break if ( expression !is KtQualifiedExpression ) break addQualifierPart ( expression . selectorExpression ) expression = expression . receiverExpression } return result . asReversed ( ) }","docstring":""} {"signature":"operator fun component1 ( )","body":"= name","docstring":""} {"signature":"open operator fun component2 ( )","body":"= expression","docstring":""} {"signature":"operator fun component3 ( )","body":"= typeArguments","docstring":""} {"signature":"override fun component2 ( )","body":"= expression","docstring":""} {"signature":"private fun resolveToPackageOrClass ( path : List < QualifierPart > , moduleDescriptor : ModuleDescriptor , trace : BindingTrace , shouldBeVisibleFrom : DeclarationDescriptor ? , scopeForFirstPart : LexicalScope ? , position : QualifierPosition ) : DeclarationDescriptor ?","body":"{ val ( packageOrClassDescriptor , endIndex ) = resolveToPackageOrClassPrefix ( path , moduleDescriptor , trace , shouldBeVisibleFrom , scopeForFirstPart , position ) if ( endIndex != path . size ) { return null } return packageOrClassDescriptor }","docstring":""} {"signature":"private fun resolveInIDEMode ( path : List < QualifierPart > ) : Boolean","body":"= languageVersionSettings . getFlag ( AnalysisFlags . ideMode ) && path . size > && path . first ( ) . name . asString ( ) == ROOT_PREFIX_FOR_IDE_RESOLUTION_MODE","docstring":""} {"signature":"private fun resolveToPackageOrClassPrefix ( path : List < QualifierPart > , moduleDescriptor : ModuleDescriptor , trace : BindingTrace , shouldBeVisibleFrom : DeclarationDescriptor ? , scopeForFirstPart : LexicalScope ? , position : QualifierPosition , isValue : ( ( KtSimpleNameExpression ) -> Boolean ) ? = null ) : Pair < DeclarationDescriptor ? , Int >","body":"{ if ( resolveInIDEMode ( path ) ) { return resolveToPackageOrClassPrefix ( path . subList ( , path . size ) , moduleDescriptor , trace , shouldBeVisibleFrom , scopeForFirstPart = null , position = position , isValue = null ) . let { it . first to it . second + } } if ( path . isEmpty ( ) ) { return Pair ( moduleDescriptor . getPackage ( FqName . ROOT ) , ) } val firstPart = path . first ( ) if ( position == QualifierPosition . EXPRESSION ) { if ( scopeForFirstPart != null && isValue != null && firstPart . expression != null && isValue ( firstPart . expression ! ! ) ) { return Pair ( null , ) } } val classifierDescriptor = scopeForFirstPart ? . findClassifier ( firstPart . name , firstPart . location ) if ( classifierDescriptor != null ) { storeResult ( trace , firstPart . expression , classifierDescriptor , shouldBeVisibleFrom , position ) } val ( prefixDescriptor , nextIndexAfterPrefix ) = if ( classifierDescriptor != null ) Pair ( classifierDescriptor , ) else moduleDescriptor . quickResolveToPackage ( path , trace , position ) var currentDescriptor : DeclarationDescriptor ? = prefixDescriptor for ( qualifierPartIndex in nextIndexAfterPrefix until path . size ) { val qualifierPart = path [ qualifierPartIndex ] val nextPackageOrClassDescriptor = when ( currentDescriptor ) { is TypeAliasDescriptor -> null is ClassDescriptor -> currentDescriptor . getContributedClassifier ( qualifierPart ) is PackageViewDescriptor -> { val packageView = if ( qualifierPart . typeArguments == null ) { moduleDescriptor . getPackage ( currentDescriptor . fqName . child ( qualifierPart . name ) ) } else null if ( packageView != null && ! packageView . isEmpty ( ) ) { packageView } else { currentDescriptor . memberScope . getContributedClassifier ( qualifierPart . name , qualifierPart . location ) } } else -> null } if ( ! ( position == QualifierPosition . EXPRESSION && nextPackageOrClassDescriptor == null ) ) { storeResult ( trace , qualifierPart . expression , nextPackageOrClassDescriptor , shouldBeVisibleFrom , position ) } if ( nextPackageOrClassDescriptor == null ) { return Pair ( currentDescriptor , qualifierPartIndex ) } currentDescriptor = nextPackageOrClassDescriptor } return Pair ( currentDescriptor , path . size ) }","docstring":""} {"signature":"fun ClassDescriptor . getContributedClassifier ( qualifierPart : QualifierPart )","body":"= unsubstitutedInnerClassesScope . getContributedClassifier ( qualifierPart . name , qualifierPart . location )","docstring":""} {"signature":"fun resolveNameExpressionAsQualifierForDiagnostics ( expression : KtSimpleNameExpression , receiver : Receiver ? , context : ExpressionTypingContext ) : Qualifier ?","body":"{ val name = expression . getReferencedNameAsName ( ) if ( ! expression . isPhysical && ! name . isSpecial && name . asString ( ) . endsWith ( CompletionUtilCore . DUMMY_IDENTIFIER_TRIMMED ) ) { return null } val location = KotlinLookupLocation ( expression ) val qualifierDescriptor = when ( receiver ) { is PackageQualifier -> { val childPackageFQN = receiver . descriptor . fqName . child ( name ) receiver . descriptor . module . getPackage ( childPackageFQN ) . takeUnless { it . isEmpty ( ) } ? : receiver . descriptor . memberScope . getContributedClassifier ( name , location ) } is ClassQualifier -> receiver . staticScope . getContributedClassifier ( name , location ) null -> context . scope . findClassifier ( name , location ) ? : context . scope . ownerDescriptor . module . getPackage ( FqName . ROOT . child ( name ) ) . takeUnless { it . isEmpty ( ) } is ReceiverValue -> receiver . type . memberScope . memberScopeAsImportingScope ( ) . findClassifier ( name , location ) else -> null } if ( qualifierDescriptor != null ) { return storeResult ( context . trace , expression , qualifierDescriptor , context . scope . ownerDescriptor , QualifierPosition . EXPRESSION ) } return null }","docstring":""} {"signature":"fun resolveClassOrPackageInQualifiedExpression ( expression : KtQualifiedExpression , scope : LexicalScope , context : BindingContext ) : QualifiedExpressionResolveResult","body":"{ val qualifiedExpressions = unrollToLeftMostQualifiedExpression ( expression ) val path = mapToQualifierParts ( qualifiedExpressions , ) val trace = DelegatingBindingTrace ( context , \"\" ) val ( result , index ) = resolveToPackageOrClassPrefix ( path = path , moduleDescriptor = scope . ownerDescriptor . module , trace = trace , shouldBeVisibleFrom = scope . ownerDescriptor , scopeForFirstPart = scope , position = QualifierPosition . EXPRESSION ) if ( result == null ) return QualifiedExpressionResolveResult . UNRESOLVED return when ( index ) { path . size -> QualifiedExpressionResolveResult ( result , null ) path . size - -> QualifiedExpressionResolveResult ( result , path [ index ] . name ) else -> QualifiedExpressionResolveResult . UNRESOLVED } }","docstring":""} {"signature":"fun resolveQualifierInExpressionAndUnroll ( expression : KtQualifiedExpression , context : ExpressionTypingContext , isValue : ( KtSimpleNameExpression ) -> Boolean ) : List < CallExpressionElement >","body":"{ val qualifiedExpressions = unrollToLeftMostQualifiedExpression ( expression ) val maxPossibleQualifierPrefix = mapToQualifierParts ( qualifiedExpressions , ) val nextIndexAfterPrefix = resolveToPackageOrClassPrefix ( path = maxPossibleQualifierPrefix , moduleDescriptor = context . scope . ownerDescriptor . module , trace = context . trace , shouldBeVisibleFrom = context . scope . ownerDescriptor , scopeForFirstPart = context . scope , position = QualifierPosition . EXPRESSION , isValue = isValue ) . second val nextExpressionIndexAfterQualifier = if ( nextIndexAfterPrefix == ) else nextIndexAfterPrefix - return qualifiedExpressions . subList ( nextExpressionIndexAfterQualifier , qualifiedExpressions . size ) . map ( :: CallExpressionElement ) }","docstring":""} {"signature":"private fun mapToQualifierParts ( qualifiedExpressions : List < KtQualifiedExpression > , skipLast : Int ) : List < QualifierPart >","body":"{ if ( qualifiedExpressions . isEmpty ( ) ) return emptyList ( ) val first = qualifiedExpressions . first ( ) if ( first !is KtDotQualifiedExpression ) return emptyList ( ) val firstReceiver = first . receiverExpression if ( firstReceiver !is KtSimpleNameExpression ) return emptyList ( ) val qualifierParts = arrayListOf < QualifierPart > ( ) qualifierParts . add ( ExpressionQualifierPart ( firstReceiver ) ) for ( qualifiedExpression in qualifiedExpressions . dropLast ( skipLast ) ) { if ( qualifiedExpression !is KtDotQualifiedExpression ) break val selector = qualifiedExpression . selectorExpression if ( selector !is KtSimpleNameExpression ) break qualifierParts . add ( ExpressionQualifierPart ( selector ) ) } return qualifierParts }","docstring":""} {"signature":"private fun ModuleDescriptor . quickResolveToPackage ( path : List < QualifierPart > , trace : BindingTrace , position : QualifierPosition ) : Pair < PackageViewDescriptor , Int >","body":"{ val possiblePackagePrefixSize = path . indexOfFirst { it . typeArguments != null } . let { if ( it == - ) path . size else it + } var fqName = FqName . fromSegments ( path . subList ( , possiblePackagePrefixSize ) . map { it . name . asString ( ) } ) var prefixSize = possiblePackagePrefixSize while ( ! fqName . isRoot ) { val packageDescriptor = getPackage ( fqName ) if ( ! packageDescriptor . isEmpty ( ) ) { recordPackageViews ( path . subList ( , prefixSize ) , packageDescriptor , trace , position ) return Pair ( packageDescriptor , prefixSize ) } fqName = fqName . parent ( ) prefixSize -- } return Pair ( getPackage ( FqName . ROOT ) , ) }","docstring":""} {"signature":"private fun recordPackageViews ( path : List < QualifierPart > , packageView : PackageViewDescriptor , trace : BindingTrace , position : QualifierPosition )","body":"{ path . foldRight ( packageView ) { qualifierPart , currentView -> storeResult ( trace , qualifierPart . expression , currentView , shouldBeVisibleFrom = null , position = position ) currentView . containingDeclaration ? : error ( \"\" + \"\" ) } }","docstring":""} {"signature":"private fun storeResult ( trace : BindingTrace , referenceExpression : KtSimpleNameExpression ? , descriptors : Collection < DeclarationDescriptor > , shouldBeVisibleFrom : DeclarationDescriptor ? , position : QualifierPosition , isQualifier : Boolean = true )","body":"{ referenceExpression ? : return if ( descriptors . size > ) { val visibleDescriptors = descriptors . filter { isVisible ( it , shouldBeVisibleFrom , position , languageVersionSettings ) } when { visibleDescriptors . isEmpty ( ) -> { val descriptor = descriptors . first ( ) as DeclarationDescriptorWithVisibility trace . report ( Errors . INVISIBLE_REFERENCE . on ( referenceExpression , descriptor , descriptor . visibility , descriptor ) ) } visibleDescriptors . size > -> { trace . record ( BindingContext . AMBIGUOUS_REFERENCE_TARGET , referenceExpression , visibleDescriptors ) } else -> { storeResult ( trace , referenceExpression , visibleDescriptors . single ( ) , null , position , isQualifier ) } } } else { storeResult ( trace , referenceExpression , descriptors . singleOrNull ( ) , shouldBeVisibleFrom , position , isQualifier ) } }","docstring":""} {"signature":"private fun storeResult ( trace : BindingTrace , referenceExpression : KtSimpleNameExpression ? , descriptor : DeclarationDescriptor ? , shouldBeVisibleFrom : DeclarationDescriptor ? , position : QualifierPosition , isQualifier : Boolean = true ) : Qualifier ?","body":"{ referenceExpression ? : return null if ( descriptor == null ) { trace . report ( Errors . UNRESOLVED_REFERENCE . on ( referenceExpression , referenceExpression ) ) return null } trace . record ( BindingContext . REFERENCE_TARGET , referenceExpression , descriptor ) UnderscoreUsageChecker . checkSimpleNameUsage ( descriptor , referenceExpression , trace ) if ( descriptor is DeclarationDescriptorWithVisibility ) { val fromToCheck = if ( shouldBeVisibleFrom is PackageFragmentDescriptor && shouldBeVisibleFrom . source == SourceElement . NO_SOURCE && referenceExpression . containingFile !is DummyHolder ) { PackageFragmentWithCustomSource ( shouldBeVisibleFrom , KotlinSourceElement ( referenceExpression . containingKtFile ) ) } else { shouldBeVisibleFrom } if ( ! isVisible ( descriptor , fromToCheck , position , languageVersionSettings ) ) { trace . report ( Errors . INVISIBLE_REFERENCE . on ( referenceExpression , descriptor , descriptor . visibility , descriptor ) ) } } return if ( isQualifier ) storeQualifier ( trace , referenceExpression , descriptor ) else null }","docstring":""} {"signature":"private fun storeQualifier ( trace : BindingTrace , referenceExpression : KtSimpleNameExpression , descriptor : DeclarationDescriptor ) : Qualifier ?","body":"{ val qualifier = when ( descriptor ) { is PackageViewDescriptor -> PackageQualifier ( referenceExpression , descriptor ) is ClassDescriptor -> ClassQualifier ( referenceExpression , descriptor ) is TypeParameterDescriptor -> TypeParameterQualifier ( referenceExpression , descriptor ) is TypeAliasDescriptor -> { val classDescriptor = descriptor . classDescriptor ? : return null TypeAliasQualifier ( referenceExpression , descriptor , classDescriptor ) } else -> return null } trace . record ( BindingContext . QUALIFIER , qualifier . expression , qualifier ) return qualifier }","docstring":""} {"signature":"internal fun isVisible ( descriptor : DeclarationDescriptor , shouldBeVisibleFrom : DeclarationDescriptor ? , position : QualifierPosition , languageVersionSettings : LanguageVersionSettings ) : Boolean","body":"{ if ( descriptor !is DeclarationDescriptorWithVisibility || shouldBeVisibleFrom == null ) return true val visibility = descriptor . visibility if ( position == QualifierPosition . IMPORT ) { if ( DescriptorVisibilities . isPrivate ( visibility ) ) return DescriptorVisibilities . inSameFile ( descriptor , shouldBeVisibleFrom ) if ( ! visibility . mustCheckInImports ( ) ) return true } return DescriptorVisibilityUtils . isVisibleIgnoringReceiver ( descriptor , shouldBeVisibleFrom , languageVersionSettings ) }","docstring":""} {"signature":"override fun getSource ( ) : SourceElement","body":"= source","docstring":""} {"signature":"fun grabDeclarationsToPatch ( ) : Collection < IrDeclaration >","body":"{ val result = declarationsToPatch declarationsToPatch = arrayListOf ( ) return result }","docstring":""} {"signature":"override fun getDeclaration ( symbol : IrSymbol ) : IrDeclaration","body":"{ require ( ! symbol . isBound ) stubbedSymbols . add ( symbol ) return when ( symbol ) { is IrClassSymbol -> generateClass ( symbol ) is IrSimpleFunctionSymbol -> generateSimpleFunction ( symbol ) is IrConstructorSymbol -> generateConstructor ( symbol ) is IrPropertySymbol -> generateProperty ( symbol ) is IrEnumEntrySymbol -> generateEnumEntry ( symbol ) is IrTypeAliasSymbol -> generateTypeAlias ( symbol ) else -> throw NotImplementedError ( \"\" ) } }","docstring":""} {"signature":"private fun generateClass ( symbol : IrClassSymbol ) : IrClass","body":"{ return builtIns . irFactory . createClass ( startOffset = UNDEFINED_OFFSET , endOffset = UNDEFINED_OFFSET , origin = PartiallyLinkedDeclarationOrigin . MISSING_DECLARATION , name = symbol . guessName ( ) , visibility = DescriptorVisibilities . DEFAULT_VISIBILITY , symbol = symbol , kind = ClassKind . CLASS , modality = Modality . OPEN , ) . apply { setCommonParent ( ) createImplicitParameterDeclarationWithWrappedDescriptor ( ) } }","docstring":""} {"signature":"private fun generateSimpleFunction ( symbol : IrSimpleFunctionSymbol ) : IrSimpleFunction","body":"{ return builtIns . irFactory . createSimpleFunction ( startOffset = UNDEFINED_OFFSET , endOffset = UNDEFINED_OFFSET , origin = PartiallyLinkedDeclarationOrigin . MISSING_DECLARATION , name = symbol . guessName ( ) , visibility = DescriptorVisibilities . DEFAULT_VISIBILITY , isInline = false , isExpect = false , returnType = builtIns . nothingType , modality = Modality . FINAL , symbol = symbol , isTailrec = false , isSuspend = false , isOperator = false , isInfix = false , isExternal = false ) . setCommonParent ( ) }","docstring":""} {"signature":"private fun generateConstructor ( symbol : IrConstructorSymbol ) : IrConstructor","body":"{ return builtIns . irFactory . createConstructor ( startOffset = UNDEFINED_OFFSET , endOffset = UNDEFINED_OFFSET , origin = PartiallyLinkedDeclarationOrigin . MISSING_DECLARATION , name = SpecialNames . INIT , visibility = DescriptorVisibilities . DEFAULT_VISIBILITY , isInline = false , isExpect = false , returnType = builtIns . nothingType , symbol = symbol , isPrimary = false , isExternal = false , ) . setCommonParent ( ) }","docstring":""} {"signature":"private fun generateProperty ( symbol : IrPropertySymbol ) : IrProperty","body":"{ return builtIns . irFactory . createProperty ( startOffset = UNDEFINED_OFFSET , endOffset = UNDEFINED_OFFSET , origin = PartiallyLinkedDeclarationOrigin . MISSING_DECLARATION , name = symbol . guessName ( ) , visibility = DescriptorVisibilities . DEFAULT_VISIBILITY , modality = Modality . FINAL , symbol = symbol , isVar = false , isConst = false , isLateinit = false , isDelegated = false , isExternal = false , isExpect = false ) . setCommonParent ( ) }","docstring":""} {"signature":"private fun generateEnumEntry ( symbol : IrEnumEntrySymbol ) : IrEnumEntry","body":"{ return builtIns . irFactory . createEnumEntry ( startOffset = UNDEFINED_OFFSET , endOffset = UNDEFINED_OFFSET , origin = PartiallyLinkedDeclarationOrigin . MISSING_DECLARATION , name = symbol . guessName ( ) , symbol = symbol , ) . setCommonParent ( ) }","docstring":""} {"signature":"private fun generateTypeAlias ( symbol : IrTypeAliasSymbol ) : IrTypeAlias","body":"{ return builtIns . irFactory . createTypeAlias ( startOffset = UNDEFINED_OFFSET , endOffset = UNDEFINED_OFFSET , origin = PartiallyLinkedDeclarationOrigin . MISSING_DECLARATION , name = symbol . guessName ( ) , visibility = DescriptorVisibilities . DEFAULT_VISIBILITY , symbol = symbol , isActual = true , expandedType = builtIns . nothingType , ) . setCommonParent ( ) }","docstring":""} {"signature":"private fun < T : IrDeclaration > T . setCommonParent ( ) : T","body":"{ parent = commonParent declarationsToPatch += this return this }","docstring":""} {"signature":"private fun IrSymbol . guessName ( ) : Name","body":"= signature ? . guessName ( nameSegmentsToPickUp = ) ? . let ( Name :: guessByFirstCharacter ) ? : PartialLinkageUtils . UNKNOWN_NAME","docstring":""} {"signature":"fun < T > eval ( fn : ( ) -> T )","body":"= fn ( )","docstring":""} {"signature":"fun box ( ) : String","body":"{ var s = \"\" var foo = \"\" fun foo ( x : String , y : Int ) { s += x } fun test ( ) { fun foo ( x : String ) { s += x } eval { foo ( \"\" ) foo ( foo , ) } } test ( ) return s }","docstring":""} {"signature":"private fun renderAmbiguousDescriptors ( descriptors : Collection < CallableDescriptor > ) : String","body":"{ val context = RenderingContext . Impl ( descriptors ) return descriptors . sortedWith ( MemberComparator . INSTANCE ) . joinToString ( separator = \"\" , prefix = \"\" ) { FQ_NAMES_IN_TYPES . render ( it , context ) } }","docstring":""} {"signature":"@ JvmStatic @ IDEAPluginsCompatibilityAPI ( IDEAPlatforms . _213 , message = \"\" , plugins = \"\" ) fun < T > commaSeparated ( itemRenderer : DiagnosticParameterRenderer < T > ) : DiagnosticParameterRenderer < Collection < T > >","body":"= CommonRenderers . commaSeparated ( itemRenderer )","docstring":""} {"signature":"@ JvmStatic fun renderConflictingSubstitutionsInferenceError ( inferenceErrorData : InferenceErrorData , result : TabledDescriptorRenderer ) : TabledDescriptorRenderer","body":"{ LOG . assertTrue ( inferenceErrorData . constraintSystem . status . hasConflictingConstraints ( ) , debugMessage ( \"\" , inferenceErrorData ) ) val substitutedDescriptors = Lists . newArrayList < CallableDescriptor > ( ) val substitutors = ConstraintsUtil . getSubstitutorsForConflictingParameters ( inferenceErrorData . constraintSystem ) for ( substitutor in substitutors ) { val substitutedDescriptor = inferenceErrorData . descriptor . substitute ( substitutor ) substitutedDescriptors . add ( substitutedDescriptor ) } val firstConflictingVariable = ConstraintsUtil . getFirstConflictingVariable ( inferenceErrorData . constraintSystem ) if ( firstConflictingVariable == null ) { LOG . error ( debugMessage ( \"\" , inferenceErrorData ) ) return result } result . text ( newText ( ) . normal ( \"\" ) . strong ( firstConflictingVariable . name ) . normal ( \"\" ) ) val table = newTable ( ) result . table ( table ) table . descriptor ( inferenceErrorData . descriptor ) . text ( \"\" ) for ( substitutedDescriptor in substitutedDescriptors ) { val receiverType = DescriptorUtils . getReceiverParameterType ( substitutedDescriptor . extensionReceiverParameter ) val errorPositions = hashSetOf < ConstraintPosition > ( ) val parameterTypes = Lists . newArrayList < KotlinType > ( ) for ( valueParameterDescriptor in substitutedDescriptor . valueParameters ) { parameterTypes . add ( valueParameterDescriptor . type ) if ( valueParameterDescriptor . index >= inferenceErrorData . valueArgumentsTypes . size ) continue val actualType = inferenceErrorData . valueArgumentsTypes . get ( valueParameterDescriptor . index ) if ( ! KotlinTypeChecker . DEFAULT . isSubtypeOf ( actualType , valueParameterDescriptor . type ) ) { errorPositions . add ( VALUE_PARAMETER_POSITION . position ( valueParameterDescriptor . index ) ) } } if ( receiverType != null && inferenceErrorData . receiverArgumentType != null && ! KotlinTypeChecker . DEFAULT . isSubtypeOf ( inferenceErrorData . receiverArgumentType , receiverType ) ) { errorPositions . add ( RECEIVER_POSITION . position ( ) ) } table . functionArgumentTypeList ( receiverType , parameterTypes , { errorPositions . contains ( it ) } ) } table . text ( \"\" ) . functionArgumentTypeList ( inferenceErrorData . receiverArgumentType , inferenceErrorData . valueArgumentsTypes ) return result }","docstring":""} {"signature":"@ JvmStatic fun renderParameterConstraintError ( inferenceErrorData : InferenceErrorData , renderer : TabledDescriptorRenderer ) : TabledDescriptorRenderer","body":"{ val constraintErrors = inferenceErrorData . constraintSystem . status . constraintErrors val errorPositions = constraintErrors . filter { it is ParameterConstraintError } . map { it . constraintPosition } return renderer . table ( TabledDescriptorRenderer . newTable ( ) . descriptor ( inferenceErrorData . descriptor ) . text ( \"\" ) . functionArgumentTypeList ( inferenceErrorData . receiverArgumentType , inferenceErrorData . valueArgumentsTypes , { errorPositions . contains ( it ) } ) ) }","docstring":""} {"signature":"@ JvmStatic fun renderNoInformationForParameterError ( inferenceErrorData : InferenceErrorData , result : TabledDescriptorRenderer ) : TabledDescriptorRenderer","body":"{ val firstUnknownVariable = inferenceErrorData . constraintSystem . typeVariables . firstOrNull { variable -> inferenceErrorData . constraintSystem . getTypeBounds ( variable ) . values . isEmpty ( ) } ? : return result . apply { LOG . error ( debugMessage ( \"\" , inferenceErrorData ) ) } return result . text ( newText ( ) . normal ( \"\" ) . strong ( firstUnknownVariable . name ) . normal ( \"\" ) ) . table ( newTable ( ) . descriptor ( inferenceErrorData . descriptor ) . text ( \"\" ) ) }","docstring":""} {"signature":"@ JvmStatic fun renderUpperBoundViolatedInferenceError ( inferenceErrorData : InferenceErrorData , result : TabledDescriptorRenderer ) : TabledDescriptorRenderer","body":"{ val constraintSystem = inferenceErrorData . constraintSystem val status = constraintSystem . status LOG . assertTrue ( status . hasViolatedUpperBound ( ) , debugMessage ( \"\" , inferenceErrorData ) ) val systemWithoutWeakConstraints = constraintSystem . filterConstraintsOut ( TYPE_BOUND_POSITION ) val typeParameterDescriptor = inferenceErrorData . descriptor . typeParameters . firstOrNull { ! ConstraintsUtil . checkUpperBoundIsSatisfied ( systemWithoutWeakConstraints , it , inferenceErrorData . call , true ) } if ( typeParameterDescriptor == null ) { if ( inferenceErrorData . descriptor is TypeAliasConstructorDescriptor ) { renderUpperBoundViolatedInferenceErrorForTypeAliasConstructor ( inferenceErrorData , result , systemWithoutWeakConstraints ) ? . let { return it } } return if ( status . hasConflictingConstraints ( ) ) renderConflictingSubstitutionsInferenceError ( inferenceErrorData , result ) else { LOG . error ( debugMessage ( \"\" , inferenceErrorData , verbosity = ConstraintSystemRenderingVerbosity . EXTRA_VERBOSE ) ) result } } val typeVariable = systemWithoutWeakConstraints . descriptorToVariable ( inferenceErrorData . call . toHandle ( ) , typeParameterDescriptor ) val inferredValueForTypeParameter = systemWithoutWeakConstraints . getTypeBounds ( typeVariable ) . value if ( inferredValueForTypeParameter == null ) { LOG . error ( debugMessage ( \"\" + typeParameterDescriptor . name + \"\" + systemWithoutWeakConstraints , inferenceErrorData ) ) return result } result . text ( newText ( ) . normal ( \"\" ) . strong ( typeParameterDescriptor . name ) . normal ( \"\" ) ) . table ( newTable ( ) . descriptor ( inferenceErrorData . descriptor ) ) var violatedUpperBound : KotlinType ? = null for ( upperBound in typeParameterDescriptor . upperBounds ) { val upperBoundWithSubstitutedInferredTypes = systemWithoutWeakConstraints . resultingSubstitutor . substitute ( upperBound , Variance . INVARIANT ) if ( upperBoundWithSubstitutedInferredTypes != null && ! KotlinTypeChecker . DEFAULT . isSubtypeOf ( inferredValueForTypeParameter , upperBoundWithSubstitutedInferredTypes ) ) { violatedUpperBound = upperBoundWithSubstitutedInferredTypes break } } if ( violatedUpperBound == null ) { LOG . error ( debugMessage ( \"\" + typeParameterDescriptor . name + \"\" , inferenceErrorData ) ) return result } val context = RenderingContext . of ( inferredValueForTypeParameter , violatedUpperBound ) val typeRenderer = result . typeRenderer result . text ( newText ( ) . normal ( \"\" ) . error ( typeRenderer . render ( inferredValueForTypeParameter , context ) ) . normal ( \"\" ) . strong ( typeRenderer . render ( violatedUpperBound , context ) ) ) return result }","docstring":""} {"signature":"private fun renderUpperBoundViolatedInferenceErrorForTypeAliasConstructor ( inferenceErrorData : InferenceErrorData , result : TabledDescriptorRenderer , systemWithoutWeakConstraints : ConstraintSystem ) : TabledDescriptorRenderer ?","body":"{ val descriptor = inferenceErrorData . descriptor if ( descriptor !is TypeAliasConstructorDescriptor ) { LOG . error ( \"\" ) return result } val inferredTypesForTypeParameters = descriptor . typeParameters . map { val typeVariable = systemWithoutWeakConstraints . descriptorToVariable ( inferenceErrorData . call . toHandle ( ) , it ) systemWithoutWeakConstraints . getTypeBounds ( typeVariable ) . value } val inferredTypeSubstitutor = TypeSubstitutor . create ( object : TypeConstructorSubstitution ( ) { override fun get ( key : TypeConstructor ) : TypeProjection ? { val typeDescriptor = key . declarationDescriptor as? TypeParameterDescriptor ? : return null if ( typeDescriptor . containingDeclaration != descriptor . typeAliasDescriptor ) return null return inferredTypesForTypeParameters [ typeDescriptor . index ] ? . let ( :: TypeProjectionImpl ) } } ) for ( constraintError in inferenceErrorData . constraintSystem . status . constraintErrors ) { val constraintInfo = constraintError . constraintPosition . getValidityConstraintForConstituentType ( ) ? : continue val violatedUpperBound = inferredTypeSubstitutor . safeSubstitute ( constraintInfo . bound , Variance . INVARIANT ) val violatingInferredType = inferredTypeSubstitutor . safeSubstitute ( constraintInfo . typeArgument , Variance . INVARIANT ) val context = RenderingContext . of ( violatingInferredType , violatedUpperBound ) val typeRenderer = result . typeRenderer result . text ( newText ( ) . normal ( \"\" ) . strong ( constraintInfo . typeParameter . name ) . normal ( \"\" ) ) . table ( newTable ( ) . descriptor ( inferenceErrorData . descriptor ) ) result . text ( newText ( ) . normal ( \"\" ) . error ( typeRenderer . render ( violatingInferredType , context ) ) . normal ( \"\" ) . strong ( typeRenderer . render ( violatedUpperBound , context ) ) ) return result } return null }","docstring":""} {"signature":"@ JvmStatic fun renderCannotCaptureTypeParameterError ( inferenceErrorData : InferenceErrorData , result : TabledDescriptorRenderer ) : TabledDescriptorRenderer","body":"{ val system = inferenceErrorData . constraintSystem val errors = system . status . constraintErrors val typeVariableWithCapturedConstraint = errors . firstIsInstanceOrNull < CannotCapture > ( ) ? . typeVariable if ( typeVariableWithCapturedConstraint == null ) { LOG . error ( debugMessage ( \"\" , inferenceErrorData ) ) return result } val typeBounds = system . getTypeBounds ( typeVariableWithCapturedConstraint ) val boundWithCapturedType = typeBounds . bounds . firstOrNull { it . constrainingType . isCaptured ( ) } val capturedTypeConstructor = boundWithCapturedType ? . constrainingType ? . constructor as? CapturedTypeConstructor if ( capturedTypeConstructor == null ) { LOG . error ( debugMessage ( \"\" , inferenceErrorData ) ) return result } val typeParameter = typeVariableWithCapturedConstraint . originalTypeParameter val upperBound = TypeIntersector . getUpperBoundsAsType ( typeParameter ) assert ( ! KotlinBuiltIns . isNullableAny ( upperBound ) && capturedTypeConstructor . projection . projectionKind == Variance . IN_VARIANCE ) { \"\" } val explanation = \"\" + \"\" result . text ( newText ( ) . normal ( typeParameter . name . wrapIntoQuotes ( ) + \"\" + \"\" + explanation ) ) return result }","docstring":""} {"signature":"private fun renderTypes ( types : Collection < KotlinType > , typeRenderer : DiagnosticParameterRenderer < KotlinType > , context : RenderingContext ) : String","body":"{ return StringUtil . join ( types , { typeRenderer . render ( it , context ) } , \"\" ) }","docstring":""} {"signature":"fun renderConstraintSystem ( constraintSystem : ConstraintSystem , verbosity : ConstraintSystemRenderingVerbosity ) : String","body":"{ val typeBounds = linkedSetOf < TypeBounds > ( ) for ( variable in constraintSystem . typeVariables ) { typeBounds . add ( constraintSystem . getTypeBounds ( variable ) ) } val separator = if ( verbosity == ConstraintSystemRenderingVerbosity . EXTRA_VERBOSE ) \"\" else \"\" return \"\" + typeBounds . joinToString ( separator = separator ) { renderTypeBounds ( it , verbosity ) } + \"\" + \"\" + ConstraintsUtil . getDebugMessageForStatus ( constraintSystem . status ) }","docstring":""} {"signature":"private fun renderTypeBounds ( typeBounds : TypeBounds , verbosity : ConstraintSystemRenderingVerbosity ) : String","body":"{ val renderedTypeVariable = renderTypeVariable ( typeBounds . typeVariable , includeTypeConstructor = verbosity == ConstraintSystemRenderingVerbosity . EXTRA_VERBOSE ) return if ( typeBounds . bounds . isEmpty ( ) ) { renderedTypeVariable } else { val boundsPrefix = if ( verbosity == ConstraintSystemRenderingVerbosity . EXTRA_VERBOSE ) \"\" else \"\" val boundsSeparator = if ( verbosity == ConstraintSystemRenderingVerbosity . EXTRA_VERBOSE ) \"\" else \"\" val renderedBounds = typeBounds . bounds . joinToString ( separator = boundsSeparator ) { renderTypeBound ( it , verbosity ) } renderedTypeVariable + boundsPrefix + renderedBounds } }","docstring":""} {"signature":"private fun renderTypeVariable ( typeVariable : TypeVariable , includeTypeConstructor : Boolean ) : String","body":"{ val typeVariableName = typeVariable . name . asString ( ) if ( ! includeTypeConstructor ) return typeVariableName return \"\" + \"\" + \"\" }","docstring":""} {"signature":"private fun renderTypeBound ( bound : Bound , verbosity : ConstraintSystemRenderingVerbosity ) : String","body":"{ val typeRendered = if ( verbosity == ConstraintSystemRenderingVerbosity . COMPACT ) DescriptorRenderer . SHORT_NAMES_IN_TYPES else DescriptorRenderer . FQ_NAMES_IN_TYPES val arrow = when ( bound . kind ) { LOWER_BOUND -> \"\" UPPER_BOUND -> \"\" else -> \"\" } val initialBoundRender = arrow + typeRendered . renderType ( bound . constrainingType ) + if ( ! bound . isProper ) \"\" else \"\" return when ( verbosity ) { ConstraintSystemRenderingVerbosity . COMPACT -> initialBoundRender ConstraintSystemRenderingVerbosity . DEBUG -> \"\" ConstraintSystemRenderingVerbosity . EXTRA_VERBOSE -> { \"\" + \"\" + \"\" + TypeUtils . getAllSupertypes ( bound . constrainingType ) . joinToString ( \"\" ) { \"\" + typeRendered . renderType ( it ) + \"\" } + \"\" } } }","docstring":""} {"signature":"@ Suppress ( \"\" ) private fun renderTypeConstructor ( typeConstructor : TypeConstructor ) : String","body":"{ return \"\" + \"\" }","docstring":""} {"signature":"private fun debugMessage ( message : String , inferenceErrorData : InferenceErrorData , verbosity : ConstraintSystemRenderingVerbosity = ConstraintSystemRenderingVerbosity . DEBUG )","body":"= buildString { append ( message ) append ( \"\" ) append ( renderConstraintSystem ( inferenceErrorData . constraintSystem , verbosity ) ) append ( \"\" ) append ( inferenceErrorData . descriptor ) append ( \"\" ) val context = RenderingContext . Empty if ( TypeUtils . noExpectedType ( inferenceErrorData . expectedType ) ) { append ( inferenceErrorData . expectedType ) } else { append ( RENDER_TYPE_WITH_ANNOTATIONS . render ( inferenceErrorData . expectedType , context ) ) } append ( \"\" ) if ( inferenceErrorData . receiverArgumentType != null ) { append ( RENDER_TYPE_WITH_ANNOTATIONS . render ( inferenceErrorData . receiverArgumentType , context ) ) . append ( \"\" ) } append ( \"\" ) . append ( renderTypes ( inferenceErrorData . valueArgumentsTypes , RENDER_TYPE_WITH_ANNOTATIONS , context ) ) . append ( \"\" ) }","docstring":""} {"signature":"private fun String . wrapIntoQuotes ( ) : String","body":"= \"\"","docstring":""} {"signature":"private fun Name . wrapIntoQuotes ( ) : String","body":"= \"\"","docstring":""} {"signature":"override fun render ( obj : Collection < DeclarationDescriptor > , renderingContext : RenderingContext ) : String","body":"{ return buildString { for ( descriptor in obj ) { mode . newLine ( this ) mode . renderDescriptor ( this , descriptor , renderingContext , \"\" ) } } }","docstring":""} {"signature":"fun renderExpressionType ( type : KotlinType ? , dataFlowTypes : Set < KotlinType > ? ) : String","body":"{ if ( type == null ) return \"\" if ( dataFlowTypes == null ) return DEBUG_TEXT . renderType ( type ) val typesAsString = dataFlowTypes . map { DEBUG_TEXT . renderType ( it ) } . toMutableSet ( ) . apply { add ( DEBUG_TEXT . renderType ( type ) ) } return typesAsString . sorted ( ) . joinToString ( separator = \"\" ) }","docstring":""} {"signature":"fun renderCallInfo ( fqName : FqNameUnsafe ? , typeCall : String )","body":"= buildString { append ( \"\" ) append ( \"\" ) }","docstring":""} {"signature":"fun DescriptorRenderer . asRenderer ( )","body":"= SmartDescriptorRenderer ( this )","docstring":""} {"signature":"fun main ( )","body":"{ println ( \"\" ) }","docstring":""} {"signature":"fun foo ( )","body":"{ val valVariable by Delegate ( ) val varVariable by Delegate ( ) }","docstring":""} {"signature":"operator fun getValue ( thisRef : Any ? , property : KProperty < * > ) : String","body":"= \"\"","docstring":""} {"signature":"operator fun setValue ( thisRef : Any ? , property : KProperty < * > , value : String )","body":"{ }","docstring":""} {"signature":"fun test ( )","body":"= s","docstring":""} {"signature":"fun testB ( )","body":"= z + test ( )","docstring":""} {"signature":"fun box ( ) : String","body":"{ val res = A ( \"\" ) . B ( \"\" ) . testB ( ) return if ( res == \"\" ) \"\" else res ; }","docstring":""} {"signature":"inline fun < T > Iterable < T > . myForEach ( action : ( T ) -> Unit ) : Unit","body":"{ for ( element in this ) action ( element ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val visited = mutableListOf < Pair < Int , Int > > ( ) for ( i in .. ) { ( .. ) . myForEach { j -> if ( j == ) { break } visited += i to j } } assertEquals ( listOf ( to , to ) , visited ) return \"\" }","docstring":""} {"signature":"fun test ( )","body":"{ val z : Int ? = val r = z ! ! + stubPreventBoxingOptimization ( z ) }","docstring":""} {"signature":"fun stubPreventBoxingOptimization ( s : Int ? )","body":"{ s }","docstring":""} {"signature":"suspend fun foo ( ) : String","body":"= bar ( \"\" )","docstring":""} {"signature":"suspend inline fun bar ( result : String ) : String","body":"= suspendCoroutineUninterceptedOrReturn { x -> x . resume ( result ) COROUTINE_SUSPENDED }","docstring":""} {"signature":"fun builder ( c : suspend ( ) -> Unit )","body":"{ c . startCoroutine ( EmptyContinuation ) }","docstring":""} {"signature":"fun test ( ) : String","body":"{ var result = \"\" builder { result = foo ( ) } return result }","docstring":""} {"signature":"fun box ( ) : String","body":"= test . test ( )","docstring":""} {"signature":"override fun replaceVariables ( mapping : Map < String , String > ) : KernelRepository","body":"{ return KernelRepository ( replaceVariables ( path , mapping ) , username ? . let { replaceVariables ( it , mapping ) } , password ? . let { replaceVariables ( it , mapping ) } , ) }","docstring":""} {"signature":"override fun compareTo ( other : KernelRepository ) : Int","body":"{ return compareByProperties ( other , KernelRepository :: path , KernelRepository :: username , KernelRepository :: password , ) }","docstring":""} {"signature":"operator fun < T > MyList < T > . plusAssign ( element : T )","body":"{ }","docstring":""} {"signature":"fun foo ( )","body":"{ listOfFunctions . plusAssign ( { it -> it } ) listOfFunctions += { it -> it } }","docstring":""} {"signature":"fun box ( ) : String","body":"{ return \"\" }","docstring":""} {"signature":"fun cond ( )","body":"= true","docstring":""} {"signature":"fun test ( mh : MethodHandle ? , mt : MethodType ? )","body":"{ val constable = if ( cond ( ) ) mh else mt }","docstring":""} {"signature":"fun box ( ) : String","body":"{ test ( null , null ) return \"\" }","docstring":""} {"signature":"@ Test fun incorrectlyCalledRunBlocking_doesNotHaveSameInterceptor ( )","body":"= runBlockingTest { val outerInterceptor = coroutineContext [ ContinuationInterceptor ] runBlocking { assertNotSame ( coroutineContext [ ContinuationInterceptor ] , outerInterceptor ) } }","docstring":""} {"signature":"@ Test fun testSingleThreadExecutor ( )","body":"= runBlocking { val mainThread = Thread . currentThread ( ) Dispatchers . setMain ( Dispatchers . Unconfined ) newSingleThreadContext ( \"\" ) . use { threadPool -> withContext ( Dispatchers . Main ) { assertSame ( mainThread , Thread . currentThread ( ) ) } Dispatchers . setMain ( threadPool ) withContext ( Dispatchers . Main ) { assertNotSame ( mainThread , Thread . currentThread ( ) ) } assertSame ( mainThread , Thread . currentThread ( ) ) withContext ( Dispatchers . Main . immediate ) { assertNotSame ( mainThread , Thread . currentThread ( ) ) } assertSame ( mainThread , Thread . currentThread ( ) ) Dispatchers . setMain ( Dispatchers . Unconfined ) withContext ( Dispatchers . Main . immediate ) { assertSame ( mainThread , Thread . currentThread ( ) ) } assertSame ( mainThread , Thread . currentThread ( ) ) } }","docstring":""} {"signature":"@ Test fun whenDispatchCalled_runsOnCurrentThread ( )","body":"{ val currentThread = Thread . currentThread ( ) val subject = TestCoroutineDispatcher ( ) val scope = TestCoroutineScope ( subject ) val deferred = scope . async ( Dispatchers . Default ) { withContext ( subject ) { assertNotSame ( currentThread , Thread . currentThread ( ) ) } } runBlocking { assertEquals ( , deferred . await ( ) ) } }","docstring":""} {"signature":"@ Test fun whenAllDispatchersMocked_runsOnSameThread ( )","body":"{ val currentThread = Thread . currentThread ( ) val subject = TestCoroutineDispatcher ( ) val scope = TestCoroutineScope ( subject ) val deferred = scope . async ( subject ) { withContext ( subject ) { assertSame ( currentThread , Thread . currentThread ( ) ) } } runBlocking { assertEquals ( , deferred . await ( ) ) } }","docstring":""} {"signature":"@ Test fun testResumingFromAnotherThread ( )","body":"= runTest { suspendCancellableCoroutine < Unit > { cont -> thread { Thread . sleep ( ) cont . resume ( Unit ) } } }","docstring":"/** Tests that resuming the coroutine of [runTest] asynchronously in reasonable time succeeds. */"} {"signature":"@ Test fun testStandardTestDispatcherIsConfined ( ) : Unit","body":"= runBlocking { val scheduler = TestCoroutineScheduler ( ) val initialThread = Thread . currentThread ( ) val job = launch ( StandardTestDispatcher ( scheduler ) ) { assertEquals ( initialThread , Thread . currentThread ( ) ) withContext ( Dispatchers . IO ) { val ioThread = Thread . currentThread ( ) assertNotSame ( initialThread , ioThread ) } assertEquals ( initialThread , Thread . currentThread ( ) ) } scheduler . advanceUntilIdle ( ) while ( job . isActive ) { scheduler . receiveDispatchEvent ( ) scheduler . advanceUntilIdle ( ) } }","docstring":"/** Tests that [StandardTestDispatcher] is not executed in-place but confined to the thread in which the\n * virtual time control happens. */"} {"signature":"fun registerModuleData ( module : TestModule , moduleData : FirModuleData )","body":"{ firModuleDataByModule [ module ] = moduleData }","docstring":""} {"signature":"fun getCorrespondingModuleData ( module : TestModule ) : FirModuleData","body":"{ return firModuleDataByModule [ module ] ? : error ( \"\" ) }","docstring":""} {"signature":"fun getRegularDependentSourceModules ( module : TestModule ) : List < FirModuleData >","body":"{ return getDependentModulesImpl ( module . regularDependencies ) }","docstring":""} {"signature":"fun getDependentFriendSourceModules ( module : TestModule ) : List < FirModuleData >","body":"{ return getDependentModulesImpl ( module . friendDependencies ) }","docstring":""} {"signature":"fun getDependentDependsOnSourceModules ( module : TestModule ) : List < FirModuleData >","body":"{ return getDependentModulesImpl ( module . dependsOnDependencies ) }","docstring":""} {"signature":"private fun getDependentModulesImpl ( dependencies : List < DependencyDescription > ) : List < FirModuleData >","body":"{ return dependencies . filter { it . kind == DependencyKind . Source } . map { getCorrespondingModuleData ( testServices . dependencyProvider . getTestModule ( it . moduleName ) ) } }","docstring":""} {"signature":"fun < T > bar ( action : ( ) -> T ) : T","body":"= action ( )","docstring":""} {"signature":"fun bar ( action : java . lang . Runnable )","body":"{ }","docstring":""} {"signature":"fun foo ( ) : String","body":"= \"\"","docstring":""} {"signature":"fun main ( )","body":"{ val x = bar ( ) { foo ( ) } x . length }","docstring":""} {"signature":"@ Test fun testChannelSelectLoop ( )","body":"= runTest ( expected = { it is TestException } ) { expect ( ) val channel = Channel < Unit > ( ) val job = launch { expect ( ) channel . send ( Unit ) expect ( ) throw TestException ( ) } try { while ( true ) { select < Unit > { channel . onReceiveCatching { expectUnreached ( ) } job . onJoin { expectUnreached ( ) } } } } catch ( e : CancellationException ) { finish ( ) } }","docstring":""} {"signature":"fun equals ( other : MFVC ) : Boolean","body":"{ return abs ( x - other . x ) < }","docstring":""} {"signature":"override fun hashCode ( ) : Int","body":"{ return }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val set = setOf ( MFVC ( , ) , MFVC ( , ) , MFVC ( , ) ) return if ( set . size == ) \"\" else \"\" }","docstring":""} {"signature":"fun foo ( ) : CreateBuilder","body":"= copy ( )","docstring":""} {"signature":"@ Test fun `check success` ( )","body":"{ val system = object : BaseTestSystem ( ) { } val diagnose = JavaDiagnostic ( system ) . diagnose ( ) val expected = Diagnosis . Builder ( \"\" ) . apply { addSuccess ( \"\" , \"\" ) addSuccess ( \"\" ) addEnvironment ( EnvironmentPiece . Jdk ( Version ( \"\" ) ) ) } . build ( ) assertEquals ( expected , diagnose ) }","docstring":""} {"signature":"@ Test fun `check no java` ( )","body":"{ val system = object : BaseTestSystem ( ) { override fun executeCmd ( cmd : String ) : ProcessResult = when ( cmd ) { \"\" -> { ProcessResult ( , null ) } else -> super . executeCmd ( cmd ) } } val diagnose = JavaDiagnostic ( system ) . diagnose ( ) val expected = Diagnosis . Builder ( \"\" ) . apply { addFailure ( \"\" , \"\" ) } . build ( ) assertEquals ( expected , diagnose ) }","docstring":""} {"signature":"@ Test fun `check no JAVA_HOME` ( )","body":"{ val system = object : BaseTestSystem ( ) { override fun getEnvVar ( name : String ) : String ? = when ( name ) { \"\" -> null else -> super . getEnvVar ( name ) } } val diagnose = JavaDiagnostic ( system ) . diagnose ( ) val expected = Diagnosis . Builder ( \"\" ) . apply { addSuccess ( \"\" , \"\" ) addInfo ( \"\" , \"\" , \"\" , ) addEnvironment ( EnvironmentPiece . Jdk ( Version ( \"\" ) ) ) } . build ( ) assertEquals ( expected , diagnose ) }","docstring":""} {"signature":"@ Test fun `check invalid JAVA_HOME` ( )","body":"{ val system = object : BaseTestSystem ( ) { override fun getEnvVar ( name : String ) : String ? = when ( name ) { \"\" -> \"\" else -> super . getEnvVar ( name ) } override fun fileExists ( path : String ) : Boolean = when ( path ) { \"\" , \"\" , \"\" -> false else -> super . fileExists ( path ) } } val diagnose = JavaDiagnostic ( system ) . diagnose ( ) val expected = Diagnosis . Builder ( \"\" ) . apply { addSuccess ( \"\" , \"\" , ) addFailure ( \"\" , \"\" , \"\" , \"\" , ) addEnvironment ( EnvironmentPiece . Jdk ( Version ( \"\" ) ) ) } . build ( ) assertEquals ( expected , diagnose ) }","docstring":""} {"signature":"@ Test fun `check JAVA_HOME != java location` ( )","body":"{ val system = object : BaseTestSystem ( ) { override fun getEnvVar ( name : String ) : String ? = when ( name ) { \"\" -> \"\" else -> super . getEnvVar ( name ) } } val diagnose = JavaDiagnostic ( system ) . diagnose ( ) val expected = Diagnosis . Builder ( \"\" ) . apply { addSuccess ( \"\" , \"\" ) addSuccess ( \"\" , ) addInfo ( \"\" , \"\" , \"\" , ) addEnvironment ( EnvironmentPiece . Jdk ( Version ( \"\" ) ) ) } . build ( ) assertEquals ( expected , diagnose ) }","docstring":""} {"signature":"override fun generate ( moduleFragment : IrModuleFragment , pluginContext : IrPluginContext )","body":"{ val androidSymbols = AndroidSymbols ( pluginContext , moduleFragment ) ParcelizeFirIrTransformer ( pluginContext , androidSymbols , parcelizeAnnotations ) . transform ( moduleFragment ) }","docstring":""} {"signature":"protected fun doTest ( fileName : String )","body":"{ doTestCompiledKotlinWithTypeTable ( fileName ) }","docstring":""} {"signature":"fun call ( )","body":"{ val s = this@Bar s . isOpen }","docstring":""} {"signature":"fun box ( ) : String","body":"{ Bar ( ) . Baz ( ) return \"\" }","docstring":""} {"signature":"public fun thread ( start : Boolean = true , isDaemon : Boolean = false , contextClassLoader : ClassLoader ? = null , name : String ? = null , priority : Int = - , block : ( ) -> Unit ) : Thread","body":"{ val thread = object : Thread ( ) { public override fun run ( ) { block ( ) } } if ( isDaemon ) thread . isDaemon = true if ( priority > ) thread . priority = priority if ( name != null ) thread . name = name if ( contextClassLoader != null ) thread . contextClassLoader = contextClassLoader if ( start ) thread . start ( ) return thread }","docstring":"/**\n * Creates a thread that runs the specified [block] of code.\n *\n * @param start if `true`, the thread is immediately started.\n * @param isDaemon if `true`, the thread is created as a daemon thread. The Java Virtual Machine exits when\n * the only threads running are all daemon threads.\n * @param contextClassLoader the class loader to use for loading classes and resources in this thread.\n * @param name the name of the thread.\n * @param priority the priority of the thread.\n */"} {"signature":"@ kotlin . internal . InlineOnly public inline fun < T : Any > ThreadLocal < T > . getOrSet ( default : ( ) -> T ) : T","body":"{ return get ( ) ? : default ( ) . also ( this :: set ) }","docstring":"/**\n * Gets the value in the current thread's copy of this\n * thread-local variable or replaces the value with the result of calling\n * [default] function in case if that value was `null`.\n *\n * If the variable has no value for the current thread,\n * it is first initialized to the value returned\n * by an invocation of the [ThreadLocal.initialValue] method.\n * Then if it is still `null`, the provided [default] function is called and its result\n * is stored for the current thread and then returned.\n */"} {"signature":"suspend fun collect ( collector : FlowCollector < T > )","body":"suspend fun collect ( collector : FlowCollector < T > )","docstring":""} {"signature":"suspend fun emit ( value : T )","body":"suspend fun emit ( value : T )","docstring":""} {"signature":"suspend inline fun < T > Flow < T > . collect ( crossinline action : suspend ( value : T ) -> Unit ) : Unit","body":"= collect ( object : FlowCollector < T > { override suspend fun emit ( value : T ) = action ( value ) } )","docstring":""} {"signature":"fun builder ( c : suspend ( ) -> Unit )","body":"{ c . startCoroutine ( Continuation ( EmptyCoroutineContext ) { it . getOrThrow ( ) } ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val flow : Flow < Result < String > > = object : Flow < Result < String > > { override suspend fun collect ( collector : FlowCollector < Result < String > > ) { collector . emit ( Result . success ( \"\" ) ) } } var res = \"\" builder { flow . collect { result -> result . onSuccess { text -> res = text } } } return res }","docstring":""} {"signature":"fun test ( x : Any ? ) : String","body":"{ if ( x !is Int ) return \"\" when ( x ) { -> return \"\" else -> return \"\" } }","docstring":""} {"signature":"fun box ( ) : String","body":"= test ( )","docstring":""} {"signature":"fun x ( )","body":"{ }","docstring":"/**\n * [LazyThreadSafetyMode.PUBLICATION]\n */"} {"signature":"open fun foo ( t : T )","body":"{ }","docstring":""} {"signature":"fun < T > foo ( t : T )","body":"{ }","docstring":""} {"signature":"fun checkTrue ( ) : Boolean","body":"{ var hit = false val l = { hit = true ; true } assert ( l ( ) ) return hit }","docstring":""} {"signature":"fun checkFalse ( ) : Boolean","body":"{ var hit = false val l = { hit = true ; false } assert ( l ( ) ) return hit }","docstring":""} {"signature":"fun checkTrueWithMessage ( ) : Boolean","body":"{ var hit = false val l = { hit = true ; true } assert ( l ( ) ) { \"\" } return hit }","docstring":""} {"signature":"fun checkFalseWithMessage ( ) : Boolean","body":"{ var hit = false val l = { hit = true ; false } assert ( l ( ) ) { \"\" } return hit }","docstring":""} {"signature":"fun enableAssertions ( ) : Checker","body":"{ val loader = Dummy :: class . java . classLoader loader . setPackageAssertionStatus ( \"\" , true ) val c = loader . loadClass ( \"\" ) return c . newInstance ( ) as Checker }","docstring":""} {"signature":"fun box ( ) : String","body":"{ var c = enableAssertions ( ) if ( ! c . checkTrue ( ) ) return \"\" if ( ! c . checkTrueWithMessage ( ) ) return \"\" try { c . checkFalse ( ) return \"\" } catch ( ignore : AssertionError ) { } try { c . checkFalseWithMessage ( ) return \"\" } catch ( ignore : AssertionError ) { } return \"\" }","docstring":""} {"signature":"fun removeDuplicateImports ( node : JsNode )","body":"{ node . accept ( object : RecursiveJsVisitor ( ) { override fun visitBlock ( x : JsBlock ) { super . visitBlock ( x ) removeDuplicateImports ( x . statements ) } } ) }","docstring":""} {"signature":"private fun removeDuplicateImports ( statements : MutableList < JsStatement > )","body":"{ val existingImports = mutableMapOf < String , JsName > ( ) val replacements = mutableMapOf < JsName , JsExpression > ( ) removeDuplicateImports ( statements , existingImports , replacements ) for ( statement in statements ) { replaceNames ( statement , replacements ) } }","docstring":""} {"signature":"private fun removeDuplicateImports ( statements : MutableList < JsStatement > , existingImports : MutableMap < String , JsName > , replacements : MutableMap < JsName , JsExpression > )","body":"{ var index = while ( index < statements . size ) { val statement = statements [ index ] if ( statement is JsVars ) { val importTag = getImportTag ( statement ) if ( importTag != null ) { val name = statement . vars [ ] . name val existingName = existingImports [ importTag ] if ( existingName != null ) { replacements [ name ] = existingName . makeRef ( ) statements . removeAt ( index ) continue } else { existingImports [ importTag ] = name } } } else if ( statement is JsBlock ) { removeDuplicateImports ( statement . statements , existingImports , replacements ) } index ++ } }","docstring":""} {"signature":"override fun configure ( target : KotlinAndroidTarget , kotlinSourceSet : KotlinSourceSet , @ Suppress ( \"\" ) androidSourceSet : DeprecatedAndroidSourceSet )","body":"{ @ Suppress ( \"\" ) val androidKotlinSourceDirectorySet = androidSourceSet . javaClass . getMethod ( \"\" ) . invoke ( androidSourceSet ) as DeprecatedAndroidSourceDirectorySet androidKotlinSourceDirectorySet . setSrcDirs ( listOf ( target . project . provider { kotlinSourceSet . kotlin . srcDirs } ) ) }","docstring":""} {"signature":"abstract fun run ( ) : Int","body":"abstract fun run ( ) : Int","docstring":""} {"signature":"fun foo ( ) : Int","body":"{ val c : Int ? = null val a : Int ? = if ( c is Int ) { val k = object : Runnable ( a ! ! ) { override fun run ( ) = arg } k . run ( ) val d : Int = c return a + d } else return - }","docstring":""} {"signature":"fun requestFlow ( i : Int ) : Flow < String >","body":"= flow { emit ( \"\" ) delay ( ) emit ( \"\" ) }","docstring":""} {"signature":"fun main ( )","body":"= runBlocking < Unit > { val startTime = currentTimeMillis ( ) ( .. ) . asFlow ( ) . onEach { delay ( ) } . flatMapLatest { requestFlow ( it ) } . collect { value -> println ( \"\" ) } }","docstring":""} {"signature":"fun lenetOnMnistInferenceWithTensorNames ( )","body":"{ val ( train , test ) = mnist ( ) SavedModel . load ( PATH_TO_MODEL ) . use { println ( it . graphToString ( ) ) val prediction = it . predict ( train . getX ( ) , \"\" , \"\" ) println ( \"\" ) println ( \"\" + train . getY ( ) ) val predictions = it . predict ( test ) { data -> predict ( data , \"\" , \"\" ) } println ( predictions . toString ( ) ) println ( \"\" ) } }","docstring":"/**\n * This examples demonstrates running [SavedModel] for prediction on [mnist] dataset.\n *\n * It uses string tensor names to get access to input/output tensors in TensorFlow static graph.\n */"} {"signature":"fun main ( ) : Unit","body":"= lenetOnMnistInferenceWithTensorNames ( )","docstring":"/** */"} {"signature":"fun useListImpl ( )","body":"= object : ListImpl ( ) { override fun func ( ) = } . func ( )","docstring":""} {"signature":"public fun append ( value : Char ) : Appendable","body":"public fun append ( value : Char ) : Appendable","docstring":"/**\n * Appends the specified character [value] to this Appendable and returns this instance.\n *\n * @param value the character to append.\n */"} {"signature":"public fun append ( value : CharSequence ? ) : Appendable","body":"public fun append ( value : CharSequence ? ) : Appendable","docstring":"/**\n * Appends the specified character sequence [value] to this Appendable and returns this instance.\n *\n * @param value the character sequence to append. If [value] is `null`, then the four characters `\"null\"` are appended to this Appendable.\n */"} {"signature":"public fun append ( value : CharSequence ? , startIndex : Int , endIndex : Int ) : Appendable","body":"public fun append ( value : CharSequence ? , startIndex : Int , endIndex : Int ) : Appendable","docstring":"/**\n * Appends a subsequence of the specified character sequence [value] to this Appendable and returns this instance.\n *\n * @param value the character sequence from which a subsequence is appended. If [value] is `null`,\n * then characters are appended as if [value] contained the four characters `\"null\"`.\n * @param startIndex the beginning (inclusive) of the subsequence to append.\n * @param endIndex the end (exclusive) of the subsequence to append.\n *\n * @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of the [value] character sequence indices or when `startIndex > endIndex`.\n */"} {"signature":"@ SinceKotlin ( \"\" ) public fun < T : Appendable > T . appendRange ( value : CharSequence , startIndex : Int , endIndex : Int ) : T","body":"{ @ Suppress ( \"\" ) return append ( value , startIndex , endIndex ) as T }","docstring":"/**\n * Appends a subsequence of the specified character sequence [value] to this Appendable and returns this instance.\n *\n * @param value the character sequence from which a subsequence is appended.\n * @param startIndex the beginning (inclusive) of the subsequence to append.\n * @param endIndex the end (exclusive) of the subsequence to append.\n *\n * @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of the [value] character sequence indices or when `startIndex > endIndex`.\n */"} {"signature":"public fun < T : Appendable > T . append ( vararg value : CharSequence ? ) : T","body":"{ for ( item in value ) append ( item ) return this }","docstring":"/**\n * Appends all arguments to the given [Appendable].\n */"} {"signature":"@ SinceKotlin ( \"\" ) @ kotlin . internal . InlineOnly public inline fun Appendable . appendLine ( ) : Appendable","body":"= append ( '' )","docstring":"/** Appends a line feed character (`\\n`) to this Appendable. */"} {"signature":"@ SinceKotlin ( \"\" ) @ kotlin . internal . InlineOnly public inline fun Appendable . appendLine ( value : CharSequence ? ) : Appendable","body":"= append ( value ) . appendLine ( )","docstring":"/** Appends value to the given Appendable and a line feed character (`\\n`) after it. */"} {"signature":"@ SinceKotlin ( \"\" ) @ kotlin . internal . InlineOnly public inline fun Appendable . appendLine ( value : Char ) : Appendable","body":"= append ( value ) . appendLine ( )","docstring":"/** Appends value to the given Appendable and a line feed character (`\\n`) after it. */"} {"signature":"internal fun < T > Appendable . appendElement ( element : T , transform : ( ( T ) -> CharSequence ) ? )","body":"{ when { transform != null -> append ( transform ( element ) ) element is CharSequence ? -> append ( element ) element is Char -> append ( element ) else -> append ( element . toString ( ) ) } }","docstring":""} {"signature":"override fun toString ( ) : String","body":"{ return \"\"\"\"\"\" }","docstring":""} {"signature":"@ Test fun smokeTest ( )","body":"{ assertSame ( TestNGAsserter , asserter ) Assert . assertEquals ( TestNGAsserter :: class . java . simpleName , kotlin . test . asserter . javaClass . simpleName ) }","docstring":""} {"signature":"@ Test fun parallelThreadGetsTheSameAsserter ( )","body":"{ val q = ArrayBlockingQueue < Any > ( ) Thread { q . put ( asserter ) } . start ( ) assertSame ( asserter , q . take ( ) ) }","docstring":""} {"signature":"fun < T > compare ( expected : T , actual : T , block : CompareContext < T > . ( ) -> Unit )","body":"{ CompareContext ( expected , actual ) . block ( ) }","docstring":""} {"signature":"fun equals ( message : String = \"\" )","body":"{ assertEquals ( expected , actual , message ) }","docstring":""} {"signature":"fun < P > propertyEquals ( message : String = \"\" , getter : T . ( ) -> P )","body":"{ assertEquals ( expected . getter ( ) , actual . getter ( ) , message ) }","docstring":""} {"signature":"fun propertyFails ( getter : T . ( ) -> Unit )","body":"{ assertFailEquals ( { expected . getter ( ) } , { actual . getter ( ) } ) }","docstring":""} {"signature":"inline fun < reified E > propertyFailsWith ( noinline getter : T . ( ) -> Unit )","body":"= propertyFailsWith ( { it is E } , getter )","docstring":""} {"signature":"fun propertyFailsWith ( exceptionPredicate : ( Throwable ) -> Boolean , getter : T . ( ) -> Unit )","body":"{ assertFailEquals ( { expected . getter ( ) } , { actual . getter ( ) } , exceptionPredicate ) }","docstring":""} {"signature":"fun < P > compareProperty ( getter : T . ( ) -> P , block : CompareContext < P > . ( ) -> Unit )","body":"{ compare ( expected . getter ( ) , actual . getter ( ) , block ) }","docstring":""} {"signature":"private fun assertFailEquals ( expected : ( ) -> Unit , actual : ( ) -> Unit , exceptionPredicate : ( ( Throwable ) -> Boolean ) ? = null )","body":"{ val expectedFail = assertFails ( expected ) val actualFail = assertFails ( actual ) if ( exceptionPredicate != null ) { assertTrue ( exceptionPredicate ( expectedFail ) , \"\" ) assertTrue ( exceptionPredicate ( actualFail ) , \"\" ) } else { assertTypeEquals ( expectedFail , actualFail ) } }","docstring":""} {"signature":"fun createValues ( ) : Flow < Int >","body":"{ return flow { emit ( ) delay ( . milliseconds ) emit ( ) delay ( . milliseconds ) emit ( ) delay ( . milliseconds ) } }","docstring":""} {"signature":"fun main ( )","body":"= runBlocking { val myFlowOfValues = createValues ( ) myFlowOfValues . collect { log ( it ) } }","docstring":""} {"signature":"override fun getDecompiledText ( file : FileWithMetadata . Compatible , serializerProtocol : SerializerExtensionProtocol , flexibleTypeDeserializer : FlexibleTypeDeserializer ) : DecompiledText","body":"{ return decompiledText ( file , serializerProtocol , flexibleTypeDeserializer , renderer ) }","docstring":""} {"signature":"internal fun decompiledText ( file : FileWithMetadata . Compatible , serializerProtocol : SerializerExtensionProtocol , flexibleTypeDeserializer : FlexibleTypeDeserializer , renderer : DescriptorRenderer , deserializationConfiguration : DeserializationConfiguration = DeserializationConfiguration . Default ) : DecompiledText","body":"{ val packageFqName = file . packageFqName val resolver = KlibMetadataDeserializerForDecompiler ( packageFqName , file . proto , file . nameResolver , serializerProtocol , flexibleTypeDeserializer , deserializationConfiguration , ) val declarations = arrayListOf < DeclarationDescriptor > ( ) declarations . addAll ( resolver . resolveDeclarationsInFacade ( packageFqName ) ) for ( classProto in file . classesToDecompile ) { val classId = file . nameResolver . getClassId ( classProto . fqName ) declarations . addIfNotNull ( resolver . resolveTopLevelClass ( classId ) ) } return buildDecompiledText ( packageFqName , declarations , renderer ) }","docstring":"/**\n * This function is extracted for [Fe10KlibMetadataDecompiler], [Fe10KlibMetadataStubBuilder] and [K2KlibMetadataDecompiler].\n * TODO: K2 shouldn't use descriptor renderer for building decompiled text.\n * Note that decompiled text is not used for building stubs in K2.\n * That's why in K2 it is important to preserve declaration order during deserialization to not get PSI vs. stubs mismatch.\n */"} {"signature":"fun runOnce ( action : ( ) -> Unit )","body":"{ contract { callsInPlace ( action , InvocationKind . EXACTLY_ONCE ) } action ( ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val foo = Foo ( true ) return foo . res }","docstring":""} {"signature":"fun test ( )","body":"{ val d1 : Double = val d2 : Double = val d3 : Double = val d4 : Double = val d5 : Double = }","docstring":""} {"signature":"override fun getLifetimeTokenFactory ( ) : KtLifetimeTokenFactory","body":"{ return KtAlwaysAccessibleLifetimeTokenFactory }","docstring":""} {"signature":"fun serializeFields ( ) : String","body":"fun serializeFields ( ) : String","docstring":""} {"signature":"fun toJson ( ) : String","body":"{ return \"\"\"\"\"\" }","docstring":""} {"signature":"fun < T > arrayToJson ( data : Iterable < T > ) : String","body":"{ return data . joinToString ( prefix = \"\" , postfix = \"\" ) { if ( it is JsonSerializable ) it . toJson ( ) else it . toString ( ) } }","docstring":""} {"signature":"fun create ( data : JsonElement ) : T","body":"fun create ( data : JsonElement ) : T","docstring":""} {"signature":"fun parseBenchmarksArray ( data : JsonElement ) : List < BenchmarkResult >","body":"{ if ( data is JsonArray ) { return data . jsonArray . map { if ( MeanVarianceBenchmark . isMeanVarianceBenchmark ( it ) ) MeanVarianceBenchmark . create ( it as JsonObject ) else BenchmarkResult . create ( it as JsonObject ) } } else { error ( \"\" ) } }","docstring":""} {"signature":"override fun create ( data : JsonElement ) : BenchmarksReport","body":"{ if ( data is JsonObject ) { val env = Environment . create ( data . getRequiredField ( \"\" ) ) val benchmarksObj = data . getRequiredField ( \"\" ) val compiler = Compiler . create ( data . getRequiredField ( \"\" ) ) val buildNumberField = data . getOptionalField ( \"\" ) val benchmarksList = parseBenchmarksArray ( benchmarksObj ) val report = BenchmarksReport ( env , benchmarksList , compiler ) buildNumberField ? . let { report . buildNumber = ( it as JsonLiteral ) . unquoted ( ) } return report } else { error ( \"\" ) } }","docstring":""} {"signature":"private fun structBenchmarks ( benchmarksList : List < BenchmarkResult > )","body":"= benchmarksList . groupBy { it . name }","docstring":""} {"signature":"override fun serializeFields ( ) : String","body":"{ val buildNumberField = buildNumber ? . let { \"\"\"\"\"\" } ? : \"\" return \"\"\"\"\"\" . trimIndent ( ) }","docstring":""} {"signature":"fun merge ( other : BenchmarksReport ) : BenchmarksReport","body":"{ val mergedBenchmarks = HashMap ( benchmarks ) other . benchmarks . forEach { if ( it . key in mergedBenchmarks ) { error ( \"\" ) } } mergedBenchmarks . putAll ( other . benchmarks ) return BenchmarksReport ( env , mergedBenchmarks . flatMap { it . value } , compiler ) }","docstring":""} {"signature":"operator fun plus ( other : BenchmarksReport ) : BenchmarksReport","body":"{ if ( compiler != other . compiler || env . machine != other . env . machine ) { error ( \"\" ) } return merge ( other ) }","docstring":""} {"signature":"override fun create ( data : JsonElement ) : Compiler","body":"{ if ( data is JsonObject ) { val backend = Backend . create ( data . getRequiredField ( \"\" ) ) val kotlinVersion = elementToString ( data . getRequiredField ( \"\" ) , \"\" ) return Compiler ( backend , kotlinVersion ) } else { error ( \"\" ) } }","docstring":""} {"signature":"fun backendTypeFromString ( s : String ) : BackendType ?","body":"= BackendType . values ( ) . find { it . type == s }","docstring":""} {"signature":"override fun create ( data : JsonElement ) : Backend","body":"{ if ( data is JsonObject ) { val typeElement = data . getRequiredField ( \"\" ) if ( typeElement is JsonLiteral ) { val type = backendTypeFromString ( typeElement . unquoted ( ) ) ? : error ( \"\" ) val version = elementToString ( data . getRequiredField ( \"\" ) , \"\" ) val flagsArray = data . getOptionalField ( \"\" ) var flags : List < String > = emptyList ( ) if ( flagsArray != null && flagsArray is JsonArray ) { flags = flagsArray . jsonArray . map { it . toString ( ) } } return Backend ( type , version , flags ) } else { error ( \"\" ) } } else { error ( \"\" ) } }","docstring":""} {"signature":"override fun serializeFields ( ) : String","body":"{ val result = \"\"\"\"\"\" if ( flags . isEmpty ( ) ) { return \"\"\"\"\"\" } else { return \"\"\"\"\"\" } }","docstring":""} {"signature":"override fun serializeFields ( ) : String","body":"{ return \"\"\"\"\"\" }","docstring":""} {"signature":"override fun create ( data : JsonElement ) : Environment","body":"{ if ( data is JsonObject ) { val machine = Machine . create ( data . getRequiredField ( \"\" ) ) val jdk = JDKInstance . create ( data . getRequiredField ( \"\" ) ) return Environment ( machine , jdk ) } else { error ( \"\" ) } }","docstring":""} {"signature":"override fun create ( data : JsonElement ) : Machine","body":"{ if ( data is JsonObject ) { val cpu = elementToString ( data . getRequiredField ( \"\" ) , \"\" ) val os = elementToString ( data . getRequiredField ( \"\" ) , \"\" ) return Machine ( cpu , os ) } else { error ( \"\" ) } }","docstring":""} {"signature":"override fun serializeFields ( ) : String","body":"{ return \"\"\"\"\"\" }","docstring":""} {"signature":"override fun create ( data : JsonElement ) : JDKInstance","body":"{ if ( data is JsonObject ) { val version = elementToString ( data . getRequiredField ( \"\" ) , \"\" ) val vendor = elementToString ( data . getRequiredField ( \"\" ) , \"\" ) return JDKInstance ( version , vendor ) } else { error ( \"\" ) } }","docstring":""} {"signature":"override fun serializeFields ( ) : String","body":"{ return \"\"\"\"\"\" }","docstring":""} {"signature":"override fun serializeFields ( ) : String","body":"{ return \"\"\"\"\"\" }","docstring":""} {"signature":"override fun create ( data : JsonElement ) : BenchmarkResult","body":"{ if ( data is JsonObject ) { var name = elementToString ( data . getRequiredField ( \"\" ) , \"\" ) val metricElement = data . getOptionalField ( \"\" ) val metric = if ( metricElement != null && metricElement is JsonLiteral ) metricFromString ( metricElement . unquoted ( ) ) ? : Metric . EXECUTION_TIME else Metric . EXECUTION_TIME val statusElement = data . getRequiredField ( \"\" ) if ( statusElement is JsonLiteral ) { val status = statusFromString ( statusElement . unquoted ( ) ) ? : error ( \"\" ) val score = elementToDouble ( data . getRequiredField ( \"\" ) , \"\" ) val runtimeInUs = elementToDouble ( data . getRequiredField ( \"\" ) , \"\" ) val repeat = elementToInt ( data . getRequiredField ( \"\" ) , \"\" ) val warmup = elementToInt ( data . getRequiredField ( \"\" ) , \"\" ) return BenchmarkResult ( name , status , score , metric , runtimeInUs , repeat , warmup ) } else { error ( \"\" ) } } else { error ( \"\" ) } }","docstring":""} {"signature":"fun statusFromString ( s : String ) : Status ?","body":"= Status . values ( ) . find { it . value == s }","docstring":""} {"signature":"fun metricFromString ( s : String ) : Metric ?","body":"= Metric . values ( ) . find { it . value == s }","docstring":""} {"signature":"override fun serializeFields ( ) : String","body":"{ return \"\"\"\"\"\" }","docstring":""} {"signature":"fun isMeanVarianceBenchmark ( data : JsonElement )","body":"= data is JsonObject && data . getOptionalField ( \"\" ) != null","docstring":""} {"signature":"override fun create ( data : JsonElement ) : MeanVarianceBenchmark","body":"{ if ( data is JsonObject ) { val baseBenchmark = BenchmarkResult . create ( data ) val variance = elementToDouble ( data . getRequiredField ( \"\" ) , \"\" ) return MeanVarianceBenchmark ( baseBenchmark . name , baseBenchmark . status , baseBenchmark . score , baseBenchmark . metric , baseBenchmark . runtimeInUs , baseBenchmark . repeat , baseBenchmark . warmup , variance ) } else { error ( \"\" ) } }","docstring":""} {"signature":"override fun serializeFields ( ) : String","body":"{ return \"\"\"\"\"\" }","docstring":""} {"signature":"override fun serializeFields ( ) : String","body":"{ return \"\"\"\"\"\" }","docstring":""} {"signature":"override fun create ( data : JsonElement ) : BenchmarkWithStabilityState","body":"{ val parsedObject = BenchmarkResult . create ( data ) if ( data is JsonObject ) { val unstableElement = data . getOptionalField ( \"\" ) val unstableFlag = if ( unstableElement != null && unstableElement is JsonPrimitive ) unstableElement . boolean else false return BenchmarkWithStabilityState ( parsedObject , unstableFlag ) } else { error ( \"\" ) } }","docstring":""} {"signature":"fun testAccessors ( )","body":"{ val kProperty : KProperty0 < String > = :: publicField checkAccessor ( kProperty , \"\" ) checkAccessor ( :: internalField , \"\" ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ testAccessors ( ) return \"\" }","docstring":""} {"signature":"public fun < T , R > checkAccessor ( prop : KProperty0 < T > , value : R )","body":"{ assertEquals < Any ? > ( prop . get ( ) , value , \"\" ) }","docstring":""} {"signature":"override fun < S : KtFunctionLikeSymbol > asSignature ( symbol : S ) : KtFunctionLikeSignature < S >","body":"{ return KtFe10FunctionLikeSignature ( symbol , symbol . returnType , symbol . receiverType , symbol . valueParameters . map { asSignature ( it ) } ) }","docstring":""} {"signature":"override fun < S : KtVariableLikeSymbol > asSignature ( symbol : S ) : KtVariableLikeSignature < S >","body":"{ return KtFe10VariableLikeSignature ( symbol , symbol . returnType , symbol . receiverType ) }","docstring":""} {"signature":"override fun isGenerallyOk ( declaration : FirDeclaration , context : CheckerContext , reporter : DiagnosticReporter ) : Boolean","body":"{ return if ( declaration . isLocalMember && context . containingDeclarations . lastOrNull ( ) !is FirScript ) { reporter . reportOn ( declaration . source , FirErrors . NOT_YET_SUPPORTED_IN_INLINE , \"\" , context ) false } else { true } }","docstring":""} {"signature":"override fun checkSuspendFunctionalParameterWithDefaultValue ( param : FirValueParameter , context : CheckerContext , reporter : DiagnosticReporter , )","body":"{ reporter . reportOn ( param . source , FirErrors . NOT_YET_SUPPORTED_IN_INLINE , \"\" , context ) }","docstring":""} {"signature":"override fun checkFunctionalParametersWithInheritedDefaultValues ( function : FirSimpleFunction , context : CheckerContext , reporter : DiagnosticReporter , overriddenSymbols : List < FirCallableSymbol < FirCallableDeclaration > > , )","body":"{ val paramsWithDefaults = overriddenSymbols . flatMap { if ( it !is FirFunctionSymbol < * > ) return@flatMap emptyList < Int > ( ) it . valueParameterSymbols . mapIndexedNotNull { idx , param -> idx . takeIf { param . hasDefaultValue } } } . toSet ( ) function . valueParameters . forEachIndexed { idx , param -> if ( param . defaultValue == null && paramsWithDefaults . contains ( idx ) ) { reporter . reportOn ( param . source , FirErrors . NOT_YET_SUPPORTED_IN_INLINE , \"\" , context ) } } }","docstring":""} {"signature":"override fun convertSqlTypeToColumnSchemaValue ( tableColumnMetadata : TableColumnMetadata ) : ColumnSchema ?","body":"{ if ( tableColumnMetadata . sqlTypeName == \"\" ) { val kType = String :: class . createType ( nullable = tableColumnMetadata . isNullable ) return ColumnSchema . Value ( kType ) } return null }","docstring":""} {"signature":"override fun isSystemTable ( tableMetadata : TableMetadata ) : Boolean","body":"{ return tableMetadata . name . lowercase ( Locale . getDefault ( ) ) . contains ( \"\" ) || tableMetadata . schemaName ? . lowercase ( Locale . getDefault ( ) ) ? . contains ( \"\" ) ? : false }","docstring":""} {"signature":"override fun buildTableMetadata ( tables : ResultSet ) : TableMetadata","body":"{ return TableMetadata ( tables . getString ( \"\" ) , tables . getString ( \"\" ) , tables . getString ( \"\" ) ) }","docstring":""} {"signature":"override fun convertSqlTypeToKType ( tableColumnMetadata : TableColumnMetadata ) : KType ?","body":"{ if ( tableColumnMetadata . sqlTypeName == \"\" ) { return String :: class . createType ( nullable = tableColumnMetadata . isNullable ) } return null }","docstring":""} {"signature":"fun toViewX ( imageX : Float )","body":"= imageX * width + x","docstring":""} {"signature":"fun toViewY ( imageY : Float )","body":"= imageY * height + y","docstring":""} {"signature":"fun getPreviewImageBounds ( sourceImageWidth : Int , sourceImageHeight : Int , viewWidth : Int , viewHeight : Int , scaleType : PreviewView . ScaleType ) : PreviewImageBounds","body":"{ val scale = if ( scaleType == PreviewView . ScaleType . FILL_START || scaleType == PreviewView . ScaleType . FILL_END || scaleType == PreviewView . ScaleType . FILL_CENTER ) { max ( viewWidth . toFloat ( ) / sourceImageWidth , viewHeight . toFloat ( ) / sourceImageHeight ) } else { min ( viewWidth . toFloat ( ) / sourceImageWidth , viewHeight . toFloat ( ) / sourceImageHeight ) } val previewImageWidth = sourceImageWidth * scale val previewImageHeight = sourceImageHeight * scale return when ( scaleType ) { PreviewView . ScaleType . FILL_START , PreviewView . ScaleType . FIT_START -> { PreviewImageBounds ( , , previewImageWidth , previewImageHeight ) } PreviewView . ScaleType . FILL_END , PreviewView . ScaleType . FIT_END -> { PreviewImageBounds ( viewWidth - previewImageWidth , viewHeight - previewImageHeight , previewImageWidth , previewImageHeight ) } else -> { PreviewImageBounds ( viewWidth / - previewImageWidth / , viewHeight / - previewImageHeight / , previewImageWidth , previewImageHeight ) } } }","docstring":"/**\n * Calculate the location of the preview image top-left corner (relative to the component top-left corner)\n * and dimensions, to be used for displaying detected objects, for example with the [DetectorViewBase].\n *\n * When camera preview resolution differs from the dimensions of the [PreviewView] used to display camera input,\n * image is scaled and cropped or padded according to the provided [PreviewView.ScaleType]. Because of this,\n * in order to display detected objects on the [PreviewView], their coordinates need to be converted.\n * This method returns [PreviewImageBounds] object containing the necessary information to preform the conversion\n * from the image coordinate system to the view coordinate system.\n *\n * @param [sourceImageWidth] width of the image from the camera\n * @param [sourceImageHeight] height of the image from the camera\n * @param [viewWidth] width of the target [PreviewView]\n * @param [viewHeight] height of the target [PreviewView]\n * @param [scaleType] scaling option used in the target [PreviewView]\n *\n * @see Scale type\n */"} {"signature":"operator fun Array < String > . get ( index1 : Int , index2 : Int )","body":"= this [ index1 + index2 ]","docstring":""} {"signature":"operator fun Array < String > . set ( index1 : Int , index2 : Int , elem : String )","body":"{ this [ index1 + index2 ] = elem }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val s = Array < String > ( , { \"\" } ) s [ , - ] = \"\" return s [ - , ] }","docstring":""} {"signature":"fun buildString ( builderAction : ( StringBuilder ) -> Unit , ) : String","body":"{ val sb = StringBuilder ( ) builderAction ( sb ) return sb . toString ( ) }","docstring":""} {"signature":"fun main ( )","body":"{ val s = buildString { it . append ( \"\" ) it . append ( \"\" ) } println ( s ) }","docstring":""} {"signature":"@ Test fun `test - transitive super interfaces` ( )","body":"{ val file = inlineSourceCodeAnalysis . createKtFile ( \"\"\"\"\"\" . trimIndent ( ) ) analyze ( file ) { val foo = file . getClassOrFail ( \"\" ) assertEquals ( listOf ( file . getClassOrFail ( \"\" ) , file . getClassOrFail ( \"\" ) ) , foo . getDeclaredSuperInterfaceSymbols ( ) ) } }","docstring":""} {"signature":"@ Test fun `test - super interface and super class` ( )","body":"{ val file = inlineSourceCodeAnalysis . createKtFile ( \"\"\"\"\"\" . trimIndent ( ) ) analyze ( file ) { assertEquals ( listOf ( file . getClassOrFail ( \"\" ) , file . getClassOrFail ( \"\" ) ) , file . getClassOrFail ( \"\" ) . getDeclaredSuperInterfaceSymbols ( ) ) } }","docstring":""} {"signature":"@ Test fun `test - subclassing Any explicitly` ( )","body":"{ val file = inlineSourceCodeAnalysis . createKtFile ( \"\"\"\"\"\" . trimIndent ( ) ) analyze ( file ) { assertEquals ( listOf ( file . getClassOrFail ( \"\" ) , file . getClassOrFail ( \"\" ) ) , file . getClassOrFail ( \"\" ) . getDeclaredSuperInterfaceSymbols ( ) ) } }","docstring":""} {"signature":"public fun < T : Comparable < T > > DataColumn < T ? > . min ( ) : T","body":"= minOrNull ( ) . suggestIfNull ( \"\" )","docstring":""} {"signature":"public fun < T : Comparable < T > > DataColumn < T ? > . minOrNull ( ) : T ?","body":"= asSequence ( ) . filterNotNull ( ) . minOrNull ( )","docstring":""} {"signature":"public fun < T , R : Comparable < R > > DataColumn < T > . minBy ( selector : ( T ) -> R ) : T","body":"= minByOrNull ( selector ) . suggestIfNull ( \"\" )","docstring":""} {"signature":"public fun < T , R : Comparable < R > > DataColumn < T > . minByOrNull ( selector : ( T ) -> R ) : T ?","body":"= values . minByOrNull ( selector )","docstring":""} {"signature":"public fun < T , R : Comparable < R > > DataColumn < T > . minOf ( selector : ( T ) -> R ) : R","body":"= minOfOrNull ( selector ) . suggestIfNull ( \"\" )","docstring":""} {"signature":"public fun < T , R : Comparable < R > > DataColumn < T > . minOfOrNull ( selector : ( T ) -> R ) : R ?","body":"= values . minOfOrNull ( selector )","docstring":""} {"signature":"public fun AnyRow . rowMinOrNull ( ) : Any ?","body":"= values ( ) . filterIsInstance < Comparable < * > > ( ) . minWithOrNull ( compareBy { it } )","docstring":""} {"signature":"public fun AnyRow . rowMin ( ) : Any","body":"= rowMinOrNull ( ) . suggestIfNull ( \"\" )","docstring":""} {"signature":"public inline fun < reified T : Comparable < T > > AnyRow . rowMinOfOrNull ( ) : T ?","body":"= values ( ) . filterIsInstance < T > ( ) . minOrNull ( )","docstring":""} {"signature":"public inline fun < reified T : Comparable < T > > AnyRow . rowMinOf ( ) : T","body":"= rowMinOfOrNull < T > ( ) . suggestIfNull ( \"\" )","docstring":""} {"signature":"public fun < T > DataFrame < T > . min ( ) : DataRow < T >","body":"= minFor ( comparableColumns ( ) )","docstring":""} {"signature":"public fun < T , C : Comparable < C > > DataFrame < T > . minFor ( columns : ColumnsForAggregateSelector < T , C ? > ) : DataRow < T >","body":"= Aggregators . min . aggregateFor ( this , columns )","docstring":""} {"signature":"public fun < T > DataFrame < T > . minFor ( vararg columns : String ) : DataRow < T >","body":"= minFor { columns . toComparableColumns ( ) }","docstring":""} {"signature":"public fun < T , C : Comparable < C > > DataFrame < T > . minFor ( vararg columns : ColumnReference < C ? > ) : DataRow < T >","body":"= minFor { columns . toColumnSet ( ) }","docstring":""} {"signature":"public fun < T , C : Comparable < C > > DataFrame < T > . minFor ( vararg columns : KProperty < C ? > ) : DataRow < T >","body":"= minFor { columns . toColumnSet ( ) }","docstring":""} {"signature":"public fun < T , C : Comparable < C > > DataFrame < T > . min ( columns : ColumnsSelector < T , C ? > ) : C","body":"= minOrNull ( columns ) . suggestIfNull ( \"\" )","docstring":""} {"signature":"public fun < T > DataFrame < T > . min ( vararg columns : String ) : Comparable < Any >","body":"= minOrNull ( * columns ) . suggestIfNull ( \"\" )","docstring":""} {"signature":"public fun < T , C : Comparable < C > > DataFrame < T > . min ( vararg columns : ColumnReference < C ? > ) : C","body":"= minOrNull ( * columns ) . suggestIfNull ( \"\" )","docstring":""} {"signature":"public fun < T , C : Comparable < C > > DataFrame < T > . min ( vararg columns : KProperty < C ? > ) : C","body":"= minOrNull ( * columns ) . suggestIfNull ( \"\" )","docstring":""} {"signature":"public fun < T , C : Comparable < C > > DataFrame < T > . minOrNull ( columns : ColumnsSelector < T , C ? > ) : C ?","body":"= Aggregators . min . aggregateAll ( this , columns ) as C ?","docstring":""} {"signature":"public fun < T > DataFrame < T > . minOrNull ( vararg columns : String ) : Comparable < Any ? > ?","body":"= minOrNull { columns . toComparableColumns ( ) }","docstring":""} {"signature":"public fun < T , C : Comparable < C > > DataFrame < T > . minOrNull ( vararg columns : ColumnReference < C ? > ) : C ?","body":"= minOrNull { columns . toColumnSet ( ) }","docstring":""} {"signature":"public fun < T , C : Comparable < C > > DataFrame < T > . minOrNull ( vararg columns : KProperty < C ? > ) : C ?","body":"= minOrNull { columns . toColumnSet ( ) }","docstring":""} {"signature":"public fun < T , C : Comparable < C > > DataFrame < T > . minOf ( expression : RowExpression < T , C > ) : C","body":"= minOfOrNull ( expression ) . suggestIfNull ( \"\" )","docstring":""} {"signature":"public fun < T , C : Comparable < C > > DataFrame < T > . minOfOrNull ( expression : RowExpression < T , C > ) : C ?","body":"= rows ( ) . minOfOrNull { expression ( it , it ) }","docstring":""} {"signature":"public fun < T , C : Comparable < C > > DataFrame < T > . minBy ( expression : RowExpression < T , C ? > ) : DataRow < T >","body":"= minByOrNull ( expression ) . suggestIfNull ( \"\" )","docstring":""} {"signature":"public fun < T > DataFrame < T > . minBy ( column : String ) : DataRow < T >","body":"= minByOrNull ( column ) . suggestIfNull ( \"\" )","docstring":""} {"signature":"public fun < T , C : Comparable < C > > DataFrame < T > . minBy ( column : ColumnReference < C ? > ) : DataRow < T >","body":"= minByOrNull ( column ) . suggestIfNull ( \"\" )","docstring":""} {"signature":"public fun < T , C : Comparable < C > > DataFrame < T > . minBy ( column : KProperty < C ? > ) : DataRow < T >","body":"= minByOrNull ( column ) . suggestIfNull ( \"\" )","docstring":""} {"signature":"public fun < T , C : Comparable < C > > DataFrame < T > . minByOrNull ( expression : RowExpression < T , C ? > ) : DataRow < T > ?","body":"= getOrNull ( rows ( ) . asSequence ( ) . map { expression ( it , it ) } . indexOfMin ( ) )","docstring":""} {"signature":"public fun < T > DataFrame < T > . minByOrNull ( column : String ) : DataRow < T > ?","body":"= minByOrNull ( column . toColumnOf < Comparable < Any ? > ? > ( ) )","docstring":""} {"signature":"public fun < T , C : Comparable < C > > DataFrame < T > . minByOrNull ( column : ColumnReference < C ? > ) : DataRow < T > ?","body":"= getOrNull ( get ( column ) . asSequence ( ) . indexOfMin ( ) )","docstring":""} {"signature":"public fun < T , C : Comparable < C > > DataFrame < T > . minByOrNull ( column : KProperty < C ? > ) : DataRow < T > ?","body":"= minByOrNull ( column . toColumnAccessor ( ) )","docstring":""} {"signature":"public fun < T > Grouped < T > . min ( ) : DataFrame < T >","body":"= minFor ( comparableColumns ( ) )","docstring":""} {"signature":"public fun < T , C : Comparable < C > > Grouped < T > . minFor ( columns : ColumnsForAggregateSelector < T , C ? > ) : DataFrame < T >","body":"= Aggregators . min . aggregateFor ( this , columns )","docstring":""} {"signature":"public fun < T > Grouped < T > . minFor ( vararg columns : String ) : DataFrame < T >","body":"= minFor { columns . toComparableColumns ( ) }","docstring":""} {"signature":"public fun < T , C : Comparable < C > > Grouped < T > . minFor ( vararg columns : ColumnReference < C ? > ) : DataFrame < T >","body":"= minFor { columns . toColumnSet ( ) }","docstring":""} {"signature":"public fun < T , C : Comparable < C > > Grouped < T > . minFor ( vararg columns : KProperty < C ? > ) : DataFrame < T >","body":"= minFor { columns . toColumnSet ( ) }","docstring":""} {"signature":"public fun < T , C : Comparable < C > > Grouped < T > . min ( name : String ? = null , columns : ColumnsSelector < T , C ? > , ) : DataFrame < T >","body":"= Aggregators . min . aggregateAll ( this , name , columns )","docstring":""} {"signature":"public fun < T > Grouped < T > . min ( vararg columns : String , name : String ? = null ) : DataFrame < T >","body":"= min ( name ) { columns . toComparableColumns ( ) }","docstring":""} {"signature":"public fun < T , C : Comparable < C > > Grouped < T > . min ( vararg columns : ColumnReference < C ? > , name : String ? = null , ) : DataFrame < T >","body":"= min ( name ) { columns . toColumnSet ( ) }","docstring":""} {"signature":"public fun < T , C : Comparable < C > > Grouped < T > . min ( vararg columns : KProperty < C ? > , name : String ? = null ) : DataFrame < T >","body":"= min ( name ) { columns . toColumnSet ( ) }","docstring":""} {"signature":"public fun < T , C : Comparable < C > > Grouped < T > . minOf ( name : String ? = null , expression : RowExpression < T , C > , ) : DataFrame < T >","body":"= Aggregators . min . aggregateOfDelegated ( this , name ) { minOfOrNull ( expression ) }","docstring":""} {"signature":"public fun < T , G , R : Comparable < R > > GroupBy < T , G > . minBy ( rowExpression : RowExpression < G , R ? > ) : ReducedGroupBy < T , G >","body":"= reduce { minByOrNull ( rowExpression ) }","docstring":""} {"signature":"public fun < T , G , C : Comparable < C > > GroupBy < T , G > . minBy ( column : ColumnReference < C ? > ) : ReducedGroupBy < T , G >","body":"= reduce { minByOrNull ( column ) }","docstring":""} {"signature":"public fun < T , G > GroupBy < T , G > . minBy ( column : String ) : ReducedGroupBy < T , G >","body":"= minBy ( column . toColumnAccessor ( ) . cast < Comparable < Any ? > > ( ) )","docstring":""} {"signature":"public fun < T , G , C : Comparable < C > > GroupBy < T , G > . minBy ( column : KProperty < C ? > ) : ReducedGroupBy < T , G >","body":"= minBy ( column . toColumnAccessor ( ) )","docstring":""} {"signature":"public fun < T > Pivot < T > . min ( separate : Boolean = false ) : DataRow < T >","body":"= delegate { min ( separate ) }","docstring":""} {"signature":"public fun < T , R : Comparable < R > > Pivot < T > . minFor ( separate : Boolean = false , columns : ColumnsForAggregateSelector < T , R ? > , ) : DataRow < T >","body":"= delegate { minFor ( separate , columns ) }","docstring":""} {"signature":"public fun < T > Pivot < T > . minFor ( vararg columns : String , separate : Boolean = false ) : DataRow < T >","body":"= minFor ( separate ) { columns . toComparableColumns ( ) }","docstring":""} {"signature":"public fun < T , R : Comparable < R > > Pivot < T > . minFor ( vararg columns : ColumnReference < R ? > , separate : Boolean = false , ) : DataRow < T >","body":"= minFor ( separate ) { columns . toColumnSet ( ) }","docstring":""} {"signature":"public fun < T , R : Comparable < R > > Pivot < T > . minFor ( vararg columns : KProperty < R ? > , separate : Boolean = false , ) : DataRow < T >","body":"= minFor ( separate ) { columns . toColumnSet ( ) }","docstring":""} {"signature":"public fun < T , R : Comparable < R > > Pivot < T > . min ( columns : ColumnsSelector < T , R ? > ) : DataRow < T >","body":"= delegate { min ( columns ) }","docstring":""} {"signature":"public fun < T , R : Comparable < R > > Pivot < T > . min ( vararg columns : String ) : DataRow < T >","body":"= min { columns . toComparableColumns ( ) }","docstring":""} {"signature":"public fun < T , R : Comparable < R > > Pivot < T > . min ( vararg columns : ColumnReference < R ? > ) : DataRow < T >","body":"= min { columns . toColumnSet ( ) }","docstring":""} {"signature":"public fun < T , R : Comparable < R > > Pivot < T > . min ( vararg columns : KProperty < R ? > ) : DataRow < T >","body":"= min { columns . toColumnSet ( ) }","docstring":""} {"signature":"public fun < T , R : Comparable < R > > Pivot < T > . minOf ( rowExpression : RowExpression < T , R > ) : DataRow < T >","body":"= delegate { minOf ( rowExpression ) }","docstring":""} {"signature":"public fun < T , R : Comparable < R > > Pivot < T > . minBy ( rowExpression : RowExpression < T , R > ) : ReducedPivot < T >","body":"= reduce { minByOrNull ( rowExpression ) }","docstring":""} {"signature":"public fun < T , C : Comparable < C > > Pivot < T > . minBy ( column : ColumnReference < C ? > ) : ReducedPivot < T >","body":"= reduce { minByOrNull ( column ) }","docstring":""} {"signature":"public fun < T > Pivot < T > . minBy ( column : String ) : ReducedPivot < T >","body":"= minBy ( column . toColumnAccessor ( ) . cast < Comparable < Any ? > > ( ) )","docstring":""} {"signature":"public fun < T , C : Comparable < C > > Pivot < T > . minBy ( column : KProperty < C ? > ) : ReducedPivot < T >","body":"= minBy ( column . toColumnAccessor ( ) )","docstring":""} {"signature":"public fun < T > PivotGroupBy < T > . min ( separate : Boolean = false ) : DataFrame < T >","body":"= minFor ( separate , comparableColumns ( ) )","docstring":""} {"signature":"public fun < T , R : Comparable < R > > PivotGroupBy < T > . minFor ( separate : Boolean = false , columns : ColumnsForAggregateSelector < T , R ? > , ) : DataFrame < T >","body":"= Aggregators . min . aggregateFor ( this , separate , columns )","docstring":""} {"signature":"public fun < T > PivotGroupBy < T > . minFor ( vararg columns : String , separate : Boolean = false ) : DataFrame < T >","body":"= minFor ( separate ) { columns . toComparableColumns ( ) }","docstring":""} {"signature":"public fun < T , R : Comparable < R > > PivotGroupBy < T > . minFor ( vararg columns : ColumnReference < R ? > , separate : Boolean = false , ) : DataFrame < T >","body":"= minFor ( separate ) { columns . toColumnSet ( ) }","docstring":""} {"signature":"public fun < T , R : Comparable < R > > PivotGroupBy < T > . minFor ( vararg columns : KProperty < R ? > , separate : Boolean = false , ) : DataFrame < T >","body":"= minFor ( separate ) { columns . toColumnSet ( ) }","docstring":""} {"signature":"public fun < T , R : Comparable < R > > PivotGroupBy < T > . min ( columns : ColumnsSelector < T , R ? > ) : DataFrame < T >","body":"= Aggregators . min . aggregateAll ( this , columns )","docstring":""} {"signature":"public fun < T > PivotGroupBy < T > . min ( vararg columns : String ) : DataFrame < T >","body":"= min { columns . toComparableColumns ( ) }","docstring":""} {"signature":"public fun < T , R : Comparable < R > > PivotGroupBy < T > . min ( vararg columns : ColumnReference < R ? > ) : DataFrame < T >","body":"= min { columns . toColumnSet ( ) }","docstring":""} {"signature":"public fun < T , R : Comparable < R > > PivotGroupBy < T > . min ( vararg columns : KProperty < R ? > ) : DataFrame < T >","body":"= min { columns . toColumnSet ( ) }","docstring":""} {"signature":"public fun < T , R : Comparable < R > > PivotGroupBy < T > . minOf ( rowExpression : RowExpression < T , R > ) : DataFrame < T >","body":"= aggregate { minOf ( rowExpression ) }","docstring":""} {"signature":"public fun < T , R : Comparable < R > > PivotGroupBy < T > . minBy ( rowExpression : RowExpression < T , R > ) : ReducedPivotGroupBy < T >","body":"= reduce { minByOrNull ( rowExpression ) }","docstring":""} {"signature":"public fun < T , C : Comparable < C > > PivotGroupBy < T > . minBy ( column : ColumnReference < C ? > ) : ReducedPivotGroupBy < T >","body":"= reduce { minByOrNull ( column ) }","docstring":""} {"signature":"public fun < T > PivotGroupBy < T > . minBy ( column : String ) : ReducedPivotGroupBy < T >","body":"= minBy ( column . toColumnAccessor ( ) . cast < Comparable < Any ? > > ( ) )","docstring":""} {"signature":"public fun < T , C : Comparable < C > > PivotGroupBy < T > . minBy ( column : KProperty < C ? > ) : ReducedPivotGroupBy < T >","body":"= minBy ( column . toColumnAccessor ( ) )","docstring":""} {"signature":"override fun doTestByMainFile ( mainFile : KtFile , mainModule : KtTestModule , testServices : TestServices )","body":"{ val selectedElement = testServices . expressionMarkerProvider . getSelectedElementOfTypeByDirective ( mainFile , mainModule ) as KtElement val actual = resolveWithClearCaches ( mainFile ) { session -> renderActualFir ( fir = selectedElement . getOrBuildFir ( session ) , ktElement = selectedElement , firFile = mainFile . getOrBuildFirFile ( session ) , ) } testServices . assertions . assertEqualsToTestDataFileSibling ( actual ) }","docstring":""} {"signature":"fun renderActualFir ( fir : FirElement ? , ktElement : KtElement , renderKtText : Boolean = false , firFile : FirFile ? = null , ) : String","body":"= \"\"\"\"\"\" . trimMargin ( )","docstring":""} {"signature":"private fun render ( firElement : FirElement ? ) : String","body":"= when ( firElement ) { null -> \"\" is FirImport -> \"\" else -> FirRenderer ( packageDirectiveRenderer = FirPackageDirectiveRenderer ( ) , resolvePhaseRenderer = FirResolvePhaseRenderer ( ) , declarationRenderer = FirDeclarationRendererWithFilteredAttributes ( ) , ) . renderElementAsString ( firElement ) }","docstring":""} {"signature":"actual fun f ( )","body":"= Unit","docstring":""} {"signature":"fun foo ( )","body":"{ INSTANCE }","docstring":""} {"signature":"fun box ( ) : String","body":"{ try { Test . foo ( ) return \"\" } catch ( e : Exception ) { return \"\" } }","docstring":""} {"signature":"fun generateTestGroupSuite ( args : Array < String > , mainClassName : String ? = TestGeneratorUtil . getMainClassName ( ) , init : TestGroupSuite . ( ) -> Unit )","body":"{ generateTestGroupSuite ( InconsistencyChecker . hasDryRunArg ( args ) , mainClassName , init ) }","docstring":""} {"signature":"fun generateTestGroupSuite ( dryRun : Boolean = false , mainClassName : String ? = TestGeneratorUtil . getMainClassName ( ) , init : TestGroupSuite . ( ) -> Unit , )","body":"{ val suite = testGroupSuite ( init ) suite . forEachTestClassParallel { testClass -> val ( changed , testSourceFilePath ) = TestGeneratorImpl . generateAndSave ( testClass , dryRun , mainClassName ) if ( changed ) { inconsistencyChecker ( dryRun ) . add ( testSourceFilePath ) } } }","docstring":""} {"signature":"fun fn ( c : Char ? ) : Any ?","body":"= if ( c == null ) TODO ( ) else when ( c ) { '' -> when ( c ) { '' -> '' -> \"\" else -> TODO ( ) } else -> TODO ( ) }","docstring":""} {"signature":"override fun check ( expression : IrCall , context : JsKlibDiagnosticContext , reporter : IrDiagnosticReporter )","body":"{ if ( ! context . compilerConfiguration . languageVersionSettings . languageVersion . usesK2 ) { return } if ( expression . symbol . owner . fqNameWhenAvailable != jsCodeFqName ) { return } val jsCodeExpr = expression . getValueArgument ( ) if ( jsCodeExpr !is IrConst < * > || jsCodeExpr . kind != IrConstKind . String ) { reporter . at ( jsCodeExpr ? : expression , context ) . report ( JsKlibErrors . JSCODE_CAN_NOT_VERIFY_JAVASCRIPT ) return } val jsCodeStr = IrConstKind . String . valueOf ( jsCodeExpr ) try { val parserScope = JsFunctionScope ( JsRootScope ( JsProgram ( ) ) , \"\" ) val fileName = context . containingFile ? . fileEntry ? . name ? : \"\" val jsErrorReporter = JsErrorReporter ( jsCodeExpr , context , reporter ) val statements = parseExpressionOrStatement ( jsCodeStr , jsErrorReporter , parserScope , CodePosition ( , ) , fileName ) if ( statements . isNullOrEmpty ( ) ) { reporter . at ( jsCodeExpr , context ) . report ( JsKlibErrors . JSCODE_NO_JAVASCRIPT_PRODUCED ) } } catch ( e : AbortParsingException ) { } }","docstring":""} {"signature":"override fun warning ( message : String , startPosition : CodePosition , endPosition : CodePosition )","body":"{ reporter . at ( codeExpression , context ) . report ( JsKlibErrors . JSCODE_WARNING , message ) }","docstring":""} {"signature":"override fun error ( message : String , startPosition : CodePosition , endPosition : CodePosition )","body":"{ reporter . at ( codeExpression , context ) . report ( JsKlibErrors . JSCODE_ERROR , message ) throw AbortParsingException ( ) }","docstring":""} {"signature":"operator fun minus ( other : AbstractProjectFileSearchScope ) : AbstractProjectFileSearchScope","body":"operator fun minus ( other : AbstractProjectFileSearchScope ) : AbstractProjectFileSearchScope","docstring":""} {"signature":"operator fun plus ( other : AbstractProjectFileSearchScope ) : AbstractProjectFileSearchScope","body":"operator fun plus ( other : AbstractProjectFileSearchScope ) : AbstractProjectFileSearchScope","docstring":""} {"signature":"operator fun not ( ) : AbstractProjectFileSearchScope","body":"operator fun not ( ) : AbstractProjectFileSearchScope","docstring":""} {"signature":"override fun minus ( other : AbstractProjectFileSearchScope ) : AbstractProjectFileSearchScope","body":"= this","docstring":""} {"signature":"override fun plus ( other : AbstractProjectFileSearchScope ) : AbstractProjectFileSearchScope","body":"= other","docstring":""} {"signature":"override fun not ( ) : AbstractProjectFileSearchScope","body":"= ANY","docstring":""} {"signature":"override fun minus ( other : AbstractProjectFileSearchScope ) : AbstractProjectFileSearchScope","body":"= error ( \"\" )","docstring":""} {"signature":"override fun plus ( other : AbstractProjectFileSearchScope ) : AbstractProjectFileSearchScope","body":"= this","docstring":""} {"signature":"override fun not ( ) : AbstractProjectFileSearchScope","body":"= EMPTY","docstring":""} {"signature":"fun getKotlinClassFinder ( fileSearchScope : AbstractProjectFileSearchScope ) : KotlinClassFinder","body":"fun getKotlinClassFinder ( fileSearchScope : AbstractProjectFileSearchScope ) : KotlinClassFinder","docstring":""} {"signature":"fun getJavaModuleResolver ( ) : JavaModuleResolver","body":"fun getJavaModuleResolver ( ) : JavaModuleResolver","docstring":""} {"signature":"fun getPackagePartProvider ( fileSearchScope : AbstractProjectFileSearchScope ) : PackagePartProvider","body":"fun getPackagePartProvider ( fileSearchScope : AbstractProjectFileSearchScope ) : PackagePartProvider","docstring":""} {"signature":"fun registerAsJavaElementFinder ( firSession : FirSession )","body":"fun registerAsJavaElementFinder ( firSession : FirSession )","docstring":""} {"signature":"fun getSearchScopeByIoFiles ( files : Iterable < File > , allowOutOfProjectRoots : Boolean = false ) : AbstractProjectFileSearchScope","body":"fun getSearchScopeByIoFiles ( files : Iterable < File > , allowOutOfProjectRoots : Boolean = false ) : AbstractProjectFileSearchScope","docstring":""} {"signature":"fun getSearchScopeBySourceFiles ( files : Iterable < KtSourceFile > , allowOutOfProjectRoots : Boolean = false ) : AbstractProjectFileSearchScope","body":"fun getSearchScopeBySourceFiles ( files : Iterable < KtSourceFile > , allowOutOfProjectRoots : Boolean = false ) : AbstractProjectFileSearchScope","docstring":""} {"signature":"fun getSearchScopeByDirectories ( directories : Iterable < File > ) : AbstractProjectFileSearchScope","body":"fun getSearchScopeByDirectories ( directories : Iterable < File > ) : AbstractProjectFileSearchScope","docstring":""} {"signature":"fun getSearchScopeForProjectLibraries ( ) : AbstractProjectFileSearchScope","body":"fun getSearchScopeForProjectLibraries ( ) : AbstractProjectFileSearchScope","docstring":""} {"signature":"fun getSearchScopeForProjectJavaSources ( ) : AbstractProjectFileSearchScope","body":"fun getSearchScopeForProjectJavaSources ( ) : AbstractProjectFileSearchScope","docstring":""} {"signature":"fun getFirJavaFacade ( firSession : FirSession , baseModuleData : FirModuleData , fileSearchScope : AbstractProjectFileSearchScope ) : FirJavaFacade","body":"fun getFirJavaFacade ( firSession : FirSession , baseModuleData : FirModuleData , fileSearchScope : AbstractProjectFileSearchScope ) : FirJavaFacade","docstring":""} {"signature":"fun foo ( param : Int )","body":"fun foo ( param : Int )","docstring":""} {"signature":"override fun foo ( param : Int )","body":"{ }","docstring":""} {"signature":"fun foo ( param : Int )","body":"{ }","docstring":""} {"signature":"@ Test fun `test that outgoing configuration of binary frameworks should have user defined attributes` ( )","body":"{ val disambiguationAttribute1 = Attribute . of ( \"\" , String :: class . java ) val disambiguationAttribute2 = Attribute . of ( \"\" , String :: class . java ) val project = buildProjectWithMPP { kotlin { iosArm64 ( \"\" ) { attributes . attributeProvider ( disambiguationAttribute1 , provider { \"\" } ) binaries { framework ( \"\" ) framework ( \"\" ) { embedBitcode ( \"\" ) linkerOpts = mutableListOf ( \"\" ) freeCompilerArgs = mutableListOf ( \"\" ) isStatic = true attributes . attributeProvider ( disambiguationAttribute2 , provider { \"\" } ) } } } } } project . evaluate ( ) val customReleaseFrameworkIos = project . configurations . getByName ( \"\" ) val attribute1Value = customReleaseFrameworkIos . attributes . getAttribute ( disambiguationAttribute1 ) if ( attribute1Value != \"\" ) { fail ( \"\" ) } val attribute2Value = customReleaseFrameworkIos . attributes . getAttribute ( disambiguationAttribute2 ) if ( attribute2Value != \"\" ) { fail ( \"\" ) } }","docstring":""} {"signature":"fun testSize ( ) : Int","body":"{ val a1 = arrayOf < String > ( ) val a2 = arrayOf ( \"\" ) val a3 = arrayOf ( \"\" , \"\" ) return a1 . size + a2 . size + a3 . size }","docstring":""} {"signature":"fun testToListToString ( ) : String","body":"{ val a1 = arrayOf < String > ( ) val a2 = arrayOf ( \"\" ) val a3 = arrayOf ( \"\" , \"\" ) return a1 . toList ( ) . toString ( ) + \"\" + a2 . toList ( ) . toString ( ) + \"\" + a3 . toList ( ) . toString ( ) }","docstring":""} {"signature":"fun firstNotNullLen ( s1 : String ? , s2 : String ? , s3 : String ? ) : Int","body":"{ val len = ( s1 ? . length ? : s2 ? . length ) ? : ( s2 ? . length ? : s3 ? . length ) ? : return return len }","docstring":""} {"signature":"fun box ( ) : String","body":"{ assertEquals ( , firstNotNullLen ( \"\" , null , null ) ) assertEquals ( , firstNotNullLen ( null , \"\" , null ) ) assertEquals ( , firstNotNullLen ( null , null , \"\" ) ) assertEquals ( , firstNotNullLen ( null , null , null ) ) return \"\" }","docstring":""} {"signature":"override fun generateDeclaration ( )","body":"{ v . defineClass ( element , state . config . classFileVersion , ACC_FINAL or ACC_SUPER or DescriptorAsmUtil . getVisibilityAccessFlagForClass ( classDescriptor ) or DescriptorAsmUtil . getSyntheticAccessFlagForLambdaClass ( classDescriptor ) , asmType . internalName , null , superAsmType . internalName , emptyArray ( ) ) v . visitSource ( element . containingFile . name , null ) }","docstring":""} {"signature":"override fun generateBody ( )","body":"{ if ( JvmCodegenUtil . isConst ( closure ) ) { generateConstInstance ( asmType , wrapperMethod . returnType ) } else { DescriptorAsmUtil . genClosureFields ( closure , v , typeMapper , state . languageVersionSettings ) } generateConstructor ( ) if ( ! isOptimizedPropertyReferenceSupertype ( superAsmType ) ) { generateMethod ( \"\" , ACC_PUBLIC , method ( \"\" , JAVA_STRING_TYPE ) ) { aconst ( target . name . asString ( ) ) } generateMethod ( \"\" , ACC_PUBLIC , method ( \"\" , JAVA_STRING_TYPE ) ) { generatePropertyReferenceSignature ( this , target , state ) } generateMethod ( \"\" , ACC_PUBLIC , method ( \"\" , K_DECLARATION_CONTAINER_TYPE ) ) { generateCallableReferenceDeclarationContainer ( this , target , state ) } } if ( ! isLocalDelegatedProperty ) { generateAccessors ( ) } }","docstring":""} {"signature":"private fun generateConstructor ( )","body":"{ generateMethod ( \"\" , , constructor ) { val shouldHaveBoundReferenceReceiver = closure . isForBoundCallableReference ( ) val receiverIndexAndFieldInfo = generateClosureFieldsInitializationFromParameters ( closure , constructorArgs ) load ( , OBJECT_TYPE ) val superCtorArgTypes = mutableListOf < Type > ( ) if ( receiverIndexAndFieldInfo != null ) { val ( receiverIndex , receiverFieldInfo ) = receiverIndexAndFieldInfo loadBoundReferenceReceiverParameter ( receiverIndex , receiverFieldInfo . fieldType , receiverFieldInfo . fieldKotlinType ) superCtorArgTypes . add ( OBJECT_TYPE ) } else { assert ( ! shouldHaveBoundReferenceReceiver ) { \"\" } } if ( isOptimizedPropertyReferenceSupertype ( superAsmType ) ) { generateCallableReferenceDeclarationContainerClass ( this , target , state ) aconst ( target . name . asString ( ) ) generatePropertyReferenceSignature ( this , target , state ) aconst ( getCallableReferenceTopLevelFlag ( target ) ) superCtorArgTypes . add ( JAVA_CLASS_TYPE ) superCtorArgTypes . add ( JAVA_STRING_TYPE ) superCtorArgTypes . add ( JAVA_STRING_TYPE ) superCtorArgTypes . add ( Type . INT_TYPE ) } invokespecial ( superAsmType . internalName , \">\" , Type . getMethodDescriptor ( Type . VOID_TYPE , * superCtorArgTypes . toTypedArray ( ) ) , false ) } }","docstring":""} {"signature":"private fun generateAccessors ( )","body":"{ val getFunction = findGetFunction ( localVariableDescriptorForReference ) val getImpl = createFakeOpenDescriptor ( getFunction , classDescriptor ) functionCodegen . generateMethod ( JvmDeclarationOrigin . NO_ORIGIN , getImpl , PropertyReferenceGenerationStrategy ( true , getFunction , target , asmType , boundReceiverJvmKotlinType , element , state , false ) ) if ( ! ReflectionTypes . isNumberedKMutablePropertyType ( localVariableDescriptorForReference . type ) ) return val setFunction = localVariableDescriptorForReference . type . memberScope . getContributedFunctions ( OperatorNameConventions . SET , NoLookupLocation . FROM_BACKEND ) . single ( ) val setImpl = createFakeOpenDescriptor ( setFunction , classDescriptor ) functionCodegen . generateMethod ( JvmDeclarationOrigin . NO_ORIGIN , setImpl , PropertyReferenceGenerationStrategy ( false , setFunction , target , asmType , boundReceiverJvmKotlinType , element , state , false ) ) }","docstring":""} {"signature":"private fun generateMethod ( debugString : String , access : Int , method : Method , generate : InstructionAdapter . ( ) -> Unit )","body":"{ v . generateMethod ( debugString , access , method , element , JvmDeclarationOrigin . NO_ORIGIN , state , generate ) }","docstring":""} {"signature":"override fun generateKotlinMetadataAnnotation ( )","body":"{ writeSyntheticClassMetadata ( v , state . config , InlineUtil . isInPublicInlineScope ( classDescriptor ) ) }","docstring":""} {"signature":"fun putInstanceOnStack ( receiverValue : StackValue ? ) : StackValue","body":"{ return StackValue . operation ( wrapperMethod . returnType ) { iv -> if ( JvmCodegenUtil . isConst ( closure ) ) { assert ( receiverValue == null ) { \"\" } iv . getstatic ( asmType . internalName , JvmAbi . INSTANCE_FIELD , wrapperMethod . returnType . descriptor ) } else { assert ( receiverValue != null ) { \"\" } iv . anew ( asmType ) iv . dup ( ) receiverValue ! ! . put ( receiverValue . type , receiverValue . kotlinType , iv ) iv . invokespecial ( asmType . internalName , \">\" , constructor . descriptor , false ) } } }","docstring":""} {"signature":"override fun get ( key : KotlinType ) : TypeProjection ?","body":"{ if ( KotlinBuiltIns . isUnit ( key ) ) { return TypeProjectionImpl ( key ) } return TypeProjectionImpl ( key . builtIns . nullableAnyType ) }","docstring":""} {"signature":"@ JvmStatic fun getWrapperMethodForPropertyReference ( property : VariableDescriptor , receiverCount : Int ) : Method","body":"{ return when ( receiverCount ) { -> when { property . isVar -> method ( \"\" , K_MUTABLE_PROPERTY2_TYPE , MUTABLE_PROPERTY_REFERENCE2 ) else -> method ( \"\" , K_PROPERTY2_TYPE , PROPERTY_REFERENCE2 ) } -> when { property . isVar -> method ( \"\" , K_MUTABLE_PROPERTY1_TYPE , MUTABLE_PROPERTY_REFERENCE1 ) else -> method ( \"\" , K_PROPERTY1_TYPE , PROPERTY_REFERENCE1 ) } else -> when { property . isVar -> method ( \"\" , K_MUTABLE_PROPERTY0_TYPE , MUTABLE_PROPERTY_REFERENCE0 ) else -> method ( \"\" , K_PROPERTY0_TYPE , PROPERTY_REFERENCE0 ) } } }","docstring":""} {"signature":"@ JvmStatic fun createFakeOpenDescriptor ( getFunction : FunctionDescriptor , classDescriptor : ClassDescriptor ) : FunctionDescriptor","body":"{ val copy = getFunction . original . copy ( classDescriptor , Modality . OPEN , getFunction . visibility , getFunction . kind , false ) return copy . substitute ( ANY_SUBSTITUTOR ) ! ! }","docstring":""} {"signature":"@ JvmStatic fun findGetFunction ( localVariableDescriptorForReference : VariableDescriptor )","body":"= localVariableDescriptorForReference . type . memberScope . getContributedFunctions ( OperatorNameConventions . GET , NoLookupLocation . FROM_BACKEND ) . single ( )","docstring":""} {"signature":"override fun doGenerateBody ( codegen : ExpressionCodegen , signature : JvmMethodSignature )","body":"{ val v = codegen . v val typeMapper = state . typeMapper val targetKotlinType = target . type if ( target is PropertyImportedFromObject ) { val containingObject = target . containingObject StackValue . singleton ( containingObject , typeMapper ) . put ( typeMapper . mapClass ( containingObject ) , containingObject . defaultType , v ) } if ( boundReceiverType != null ) { capturedBoundReferenceReceiver ( asmType , boundReceiverType , boundReceiverKotlinType , isInliningStrategy ) . put ( expectedReceiverType ! ! , expectedReceiverKotlinType , v ) } else { val receivers = originalFunctionDesc . valueParameters . dropLast ( if ( isGetter ) else ) receivers . forEachIndexed { i , valueParameterDescriptor -> val nullableAny = valueParameterDescriptor . builtIns . nullableAnyType StackValue . local ( i + , OBJECT_TYPE , nullableAny ) . put ( typeMapper . mapType ( valueParameterDescriptor ) , valueParameterDescriptor . type , v ) } } val value = when { target is LocalVariableDescriptor -> codegen . findLocalOrCapturedValue ( target ) ! ! target . isUnderlyingPropertyOfInlineClass ( ) -> { if ( expectedReceiverType == null ) throw AssertionError ( \"\" ) val receiver = if ( boundReceiverType != null ) StackValue . onStack ( expectedReceiverType , expectedReceiverKotlinType ) else StackValue . none ( ) StackValue . underlyingValueOfInlineClass ( typeMapper . mapType ( targetKotlinType ) , targetKotlinType , receiver ) } else -> codegen . intermediateValueForProperty ( target as PropertyDescriptor , false , null , StackValue . none ( ) ) } codegen . markStartLineNumber ( expression ) if ( isGetter ) { value . put ( OBJECT_TYPE , targetKotlinType , v ) } else { value . store ( StackValue . local ( codegen . frameMap . getIndex ( codegen . context . functionDescriptor . valueParameters . last ( ) ) , OBJECT_TYPE , targetKotlinType ) , v ) } v . areturn ( signature . returnType ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val l = listOf ( Wrapper ( EType . A ) , Wrapper ( null ) ) val ll = l . map { when ( it . t ) { EType . A -> \"\" null -> \"\" } } return ll [ ] + ll [ ] }","docstring":""} {"signature":"fun < T > id2 ( x : T , y : T ) : T","body":"= x","docstring":""} {"signature":"fun star ( ) : Sample < * >","body":"{ return Sample < Int > ( ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ targetArgument return \"\" }","docstring":""} {"signature":"public fun renderUseSiteTarget ( analysisSession : KtAnalysisSession , annotation : KtAnnotationApplication , owner : KtAnnotated , annotationRenderer : KtAnnotationRenderer , printer : PrettyPrinter , )","body":"public fun renderUseSiteTarget ( analysisSession : KtAnalysisSession , annotation : KtAnnotationApplication , owner : KtAnnotated , annotationRenderer : KtAnnotationRenderer , printer : PrettyPrinter , )","docstring":""} {"signature":"override fun renderUseSiteTarget ( analysisSession : KtAnalysisSession , annotation : KtAnnotationApplication , owner : KtAnnotated , annotationRenderer : KtAnnotationRenderer , printer : PrettyPrinter , )","body":"{ }","docstring":""} {"signature":"override fun renderUseSiteTarget ( analysisSession : KtAnalysisSession , annotation : KtAnnotationApplication , owner : KtAnnotated , annotationRenderer : KtAnnotationRenderer , printer : PrettyPrinter , )","body":"{ val useSite = annotation . useSiteTarget ? : return printer . append ( useSite . renderName ) printer . append ( '' ) }","docstring":""} {"signature":"override fun renderUseSiteTarget ( analysisSession : KtAnalysisSession , annotation : KtAnnotationApplication , owner : KtAnnotated , annotationRenderer : KtAnnotationRenderer , printer : PrettyPrinter , )","body":"{ val print = when ( owner ) { is KtReceiverParameterSymbol -> true !is KtCallableSymbol -> return is KtAnonymousFunctionSymbol -> true is KtConstructorSymbol -> true is KtFunctionSymbol -> true is KtPropertyGetterSymbol -> annotation . useSiteTarget != AnnotationUseSiteTarget . PROPERTY_GETTER is KtPropertySetterSymbol -> annotation . useSiteTarget != AnnotationUseSiteTarget . PROPERTY_SETTER is KtSamConstructorSymbol -> true is KtBackingFieldSymbol -> annotation . useSiteTarget != AnnotationUseSiteTarget . FIELD is KtEnumEntrySymbol -> true is KtValueParameterSymbol -> { val containingSymbol = with ( analysisSession ) { owner . getContainingSymbol ( ) } containingSymbol !is KtPropertySetterSymbol || annotation . useSiteTarget != AnnotationUseSiteTarget . SETTER_PARAMETER } is KtJavaFieldSymbol -> true is KtLocalVariableSymbol -> true is KtPropertySymbol -> annotation . useSiteTarget != AnnotationUseSiteTarget . PROPERTY else -> return } if ( print ) { WITH_USES_SITE . renderUseSiteTarget ( analysisSession , annotation , owner , annotationRenderer , printer ) } }","docstring":""} {"signature":"protected fun assign ( dim : Int , values : FloatArray )","body":"{ glBindBuffer ( GL_ARRAY_BUFFER , this . buffer ) glBufferData ( GL_ARRAY_BUFFER , ( values . size * ) . signExtend ( ) , values . refTo ( ) , GL_STREAM_DRAW ) glEnableVertexAttribArray ( this . location ) glVertexAttribPointer ( this . location , dim , GL_FLOAT , GL_FALSE . convert ( ) , , null ) }","docstring":""} {"signature":"fun assign ( values : FloatArray )","body":"= this . assign ( , values )","docstring":""} {"signature":"fun assign ( values : List < Vector2 > )","body":"= this . assign ( , values . flatten ( ) )","docstring":""} {"signature":"fun assign ( values : List < Vector3 > )","body":"= this . assign ( , values . flatten ( ) )","docstring":""} {"signature":"fun assign ( value : Int )","body":"= glUniform1i ( this . location , value )","docstring":""} {"signature":"fun assign ( value : Vector2 )","body":"= glUniform2f ( this . location , value . x , value . y )","docstring":""} {"signature":"fun assign ( value : Vector3 )","body":"= glUniform3f ( this . location , value . x , value . y , value . z )","docstring":""} {"signature":"fun assign ( value : Matrix4 )","body":"= glUniformMatrix4fv ( this . location , , GL_FALSE . convert ( ) , value . flatten ( ) . refTo ( ) )","docstring":""} {"signature":"fun activate ( )","body":"{ glUseProgram ( this . program ) glBindVertexArray ( vertexArrayObject ) }","docstring":""} {"signature":"private fun compileGlShader ( type : GLenum , source : String )","body":"= memScoped { val shader = glCreateShader ( type ) checkGlError ( ) if ( shader == ) throw Error ( \"\" ) glShaderSource ( shader , , cValuesOf ( source . cstr . getPointer ( memScope ) ) , null ) glCompileShader ( shader ) val statusVar = alloc < GLintVar > ( ) glGetShaderiv ( shader , GL_COMPILE_STATUS , statusVar . ptr ) if ( statusVar . value != GL_TRUE ) { val logBuffer = allocArray < ByteVar > ( ) glGetShaderInfoLog ( shader , , null , logBuffer ) throw Error ( \"\" ) } checkGlError ( ) shader }","docstring":""} {"signature":"private fun createGlBuffer ( )","body":"= memScoped { val bufferVar = alloc < GLuintVar > ( ) glGenBuffers ( , bufferVar . ptr ) checkGlError ( ) bufferVar . value }","docstring":""} {"signature":"fun checkGlError ( )","body":"{ val error = glGetError ( ) . toInt ( ) if ( error != ) { val errorString = when ( error ) { GL_INVALID_ENUM -> \"\" GL_INVALID_VALUE -> \"\" GL_INVALID_OPERATION -> \"\" GL_INVALID_FRAMEBUFFER_OPERATION -> \"\" GL_OUT_OF_MEMORY -> \"\" else -> \"\" } throw Error ( \"\" ) } }","docstring":""} {"signature":"override fun < R , D > accept ( visitor : FirVisitor < R , D > , data : D ) : R","body":"= visitor . visitReceiverParameter ( this , data )","docstring":""} {"signature":"@ Suppress ( \"\" ) override fun < E : FirElement , D > transform ( transformer : FirTransformer < D > , data : D ) : E","body":"= transformer . transformReceiverParameter ( this , data ) as E","docstring":""} {"signature":"abstract fun replaceTypeRef ( newTypeRef : FirTypeRef )","body":"abstract fun replaceTypeRef ( newTypeRef : FirTypeRef )","docstring":""} {"signature":"abstract override fun replaceAnnotations ( newAnnotations : List < FirAnnotation > )","body":"abstract override fun replaceAnnotations ( newAnnotations : List < FirAnnotation > )","docstring":""} {"signature":"abstract fun < D > transformTypeRef ( transformer : FirTransformer < D > , data : D ) : FirReceiverParameter","body":"abstract fun < D > transformTypeRef ( transformer : FirTransformer < D > , data : D ) : FirReceiverParameter","docstring":""} {"signature":"abstract override fun < D > transformAnnotations ( transformer : FirTransformer < D > , data : D ) : FirReceiverParameter","body":"abstract override fun < D > transformAnnotations ( transformer : FirTransformer < D > , data : D ) : FirReceiverParameter","docstring":""} {"signature":"override fun apply ( project : Project )","body":"{ project . dynamicallyApplyWhenAndroidPluginIsApplied ( { project . objects . newInstance ( KotlinAndroidTarget :: class . java , \"\" , project ) . also { target -> val kotlinAndroidExtension = project . kotlinExtension as KotlinAndroidProjectExtension kotlinAndroidExtension . targetFuture . complete ( target ) project . configureCompilerOptionsForTarget ( kotlinAndroidExtension . compilerOptions , target . compilerOptions ) kotlinAndroidExtension . compilerOptions . noJdk . value ( true ) . disallowChanges ( ) @ Suppress ( \"\" ) val kotlinOptions = object : KotlinJvmOptions { override val options : KotlinJvmCompilerOptions get ( ) = kotlinAndroidExtension . compilerOptions } val ext = project . extensions . getByName ( \"\" ) as BaseExtension ext . addExtension ( KOTLIN_OPTIONS_DSL_NAME , kotlinOptions ) } } ) { androidTarget -> registry . register ( KotlinModelBuilder ( project . getKotlinPluginVersion ( ) , androidTarget ) ) project . whenEvaluated { project . components . addAll ( androidTarget . components ) } } }","docstring":""} {"signature":"fun androidTargetHandler ( ) : AndroidProjectHandler","body":"{ val tasksProvider = KotlinTasksProvider ( ) val androidGradlePluginVersion = AndroidGradlePluginVersion . currentOrNull if ( androidGradlePluginVersion != null ) { if ( androidGradlePluginVersion < minimalSupportedAgpVersion ) { throw IllegalStateException ( \"\" + \"\" ) } } return AndroidProjectHandler ( tasksProvider ) }","docstring":""} {"signature":"internal fun Project . dynamicallyApplyWhenAndroidPluginIsApplied ( kotlinAndroidTargetProvider : ( ) -> KotlinAndroidTarget , additionalConfiguration : ( KotlinAndroidTarget ) -> Unit = { } )","body":"{ var wasConfigured = false androidPluginIds . forEach { pluginId -> plugins . withId ( pluginId ) { wasConfigured = true val target = kotlinAndroidTargetProvider ( ) androidTargetHandler ( ) . configureTarget ( target ) additionalConfiguration ( target ) } } afterEvaluate { if ( ! wasConfigured ) { throw GradleException ( \"\"\"\"\"\" . trimMargin ( ) ) } } }","docstring":""} {"signature":"override fun eval ( script : String , context : ScriptContext ) : Any ?","body":"= compileAndEval ( script , context )","docstring":""} {"signature":"override fun eval ( script : Reader , context : ScriptContext ) : Any ?","body":"= compileAndEval ( script . readText ( ) , context )","docstring":""} {"signature":"override fun compile ( script : String ) : CompiledScript","body":"= compile ( script , getContext ( ) )","docstring":""} {"signature":"override fun compile ( script : Reader ) : CompiledScript","body":"= compile ( script . readText ( ) , getContext ( ) )","docstring":""} {"signature":"override fun createBindings ( ) : Bindings","body":"= SimpleBindings ( ) . apply { put ( KOTLIN_SCRIPT_ENGINE_BINDINGS_KEY , this ) }","docstring":""} {"signature":"override fun getFactory ( ) : ScriptEngineFactory","body":"= myFactory","docstring":""} {"signature":"fun nextCodeLine ( context : ScriptContext , code : String )","body":"= getCurrentState ( context ) . let { ReplCodeLine ( it . getNextLineNo ( ) , it . currentGeneration , code ) }","docstring":""} {"signature":"protected abstract fun createState ( lock : ReentrantReadWriteLock = ReentrantReadWriteLock ( ) ) : IReplStageState < * >","body":"protected abstract fun createState ( lock : ReentrantReadWriteLock = ReentrantReadWriteLock ( ) ) : IReplStageState < * >","docstring":""} {"signature":"protected fun getCurrentState ( context : ScriptContext )","body":"= context . getBindings ( ScriptContext . ENGINE_SCOPE ) . getOrPut ( KOTLIN_SCRIPT_STATE_BINDINGS_KEY , { context . getBindings ( ScriptContext . ENGINE_SCOPE ) . put ( KOTLIN_SCRIPT_ENGINE_BINDINGS_KEY , this @ KotlinJsr223JvmScriptEngineBase ) createState ( ) } ) as IReplStageState < * >","docstring":""} {"signature":"open fun getInvokeWrapper ( context : ScriptContext ) : InvokeWrapper ?","body":"= null","docstring":""} {"signature":"open fun overrideScriptArgs ( context : ScriptContext ) : ScriptArgsWithTypes ?","body":"= null","docstring":""} {"signature":"open fun compileAndEval ( script : String , context : ScriptContext ) : Any ?","body":"{ val codeLine = nextCodeLine ( context , script ) val state = getCurrentState ( context ) return asJsr223EvalResult { replEvaluator . compileAndEval ( state , codeLine , overrideScriptArgs ( context ) , getInvokeWrapper ( context ) ) } }","docstring":""} {"signature":"open fun compile ( script : String , context : ScriptContext ) : CompiledScript","body":"{ val codeLine = nextCodeLine ( context , script ) val state = getCurrentState ( context ) val result = replCompiler . compile ( state , codeLine ) val compiled = when ( result ) { is ReplCompileResult . Error -> throw ScriptException ( \"\" ) is ReplCompileResult . Incomplete -> throw ScriptException ( \"\" ) is ReplCompileResult . CompiledClasses -> result } return CompiledKotlinScript ( this , codeLine , compiled ) }","docstring":""} {"signature":"open fun eval ( compiledScript : CompiledKotlinScript , context : ScriptContext ) : Any ?","body":"{ val state = getCurrentState ( context ) return asJsr223EvalResult { replEvaluator . eval ( state , compiledScript . compiledData , overrideScriptArgs ( context ) , getInvokeWrapper ( context ) ) } }","docstring":""} {"signature":"private fun asJsr223EvalResult ( body : ( ) -> ReplEvalResult ) : Any ?","body":"{ val result = try { body ( ) } catch ( e : Exception ) { throw ScriptException ( e ) } return when ( result ) { is ReplEvalResult . ValueResult -> result . value is ReplEvalResult . UnitResult -> null is ReplEvalResult . Error -> when { result is ReplEvalResult . Error . Runtime && result . cause != null -> throw ScriptException ( ( result . cause as? java . lang . Exception ) ? : RuntimeException ( result . cause ) ) result is ReplEvalResult . Error . CompileTime && result . location != null -> throw ScriptException ( result . message , result . location . path , result . location . line , result . location . column ) else -> throw ScriptException ( result . message ) } is ReplEvalResult . Incomplete -> throw ScriptException ( \"\" ) is ReplEvalResult . HistoryMismatch -> throw ScriptException ( \"\" ) } }","docstring":""} {"signature":"override fun eval ( context : ScriptContext ) : Any ?","body":"= engine . eval ( this , context )","docstring":""} {"signature":"override fun getEngine ( ) : ScriptEngine","body":"= engine","docstring":""} {"signature":"private fun ReplCompileResult . Error . locationString ( )","body":"= if ( location == null ) \"\" else \"\"","docstring":""} {"signature":"private fun privateMethod ( )","body":"{ }","docstring":""} {"signature":"@ Test fun testResolverRepoOrder ( )","body":"{ val res = eval ( \"\"\"\"\"\" . trimIndent ( ) , ) Assertions . assertTrue ( res . metadata . newClasspath . size >= ) }","docstring":""} {"signature":"@ Test fun testStandardLibraryResolver ( )","body":"{ val baseClassLoader = repl . currentClassLoader . parent fun urlClassLoadersCount ( ) = generateSequence ( repl . currentClassLoader ) { classLoader -> classLoader . parent ? . takeIf { it != baseClassLoader } } . filter { it is URLClassLoader } . count ( ) urlClassLoadersCount ( ) shouldBe val res = eval ( \"\"\"\"\"\" . trimIndent ( ) , ) assertEquals ( \"\" , res . renderedValue ) urlClassLoadersCount ( ) shouldBe eval ( \"\" ) urlClassLoadersCount ( ) shouldBe }","docstring":""} {"signature":"@ Test fun testDefaultInfoSwitcher ( )","body":"{ val infoProvider = repl . resolutionInfoProvider val initialDefaultResolutionInfo = infoProvider . fallback Assertions . assertTrue ( initialDefaultResolutionInfo is AbstractLibraryResolutionInfo . ByClasspath ) eval ( \"\" ) Assertions . assertTrue ( infoProvider . fallback is AbstractLibraryResolutionInfo . ByGitRef ) eval ( \"\" ) Assertions . assertTrue ( infoProvider . fallback === initialDefaultResolutionInfo ) }","docstring":""} {"signature":"@ Test fun testUseFileUrlRef ( )","body":"{ val commit = \"\" val libsCommit = \"\" val libraryPath = \"\" val res1 = eval ( \"\"\"\"\"\" . trimIndent ( ) , ) assertEquals ( , res1 . renderedValue ) val res2 = eval ( \"\"\"\"\"\" . trimIndent ( ) , ) assertEquals ( , res2 . renderedValue ) val res3 = eval ( \"\" ) assertEquals ( , displays . count ( ) ) assertUnit ( res3 . renderedValue ) displays . clear ( ) val res4 = eval ( \"\"\"\"\"\" . trimIndent ( ) , ) assertEquals ( , res4 . renderedValue ) }","docstring":""} {"signature":"@ Test fun testHttpRedirection ( )","body":"{ val res = eval ( \"\"\"\"\"\" . trimIndent ( ) , ) . renderedValue assertEquals ( , res ) }","docstring":""} {"signature":"@ Test fun testLibraryRequestsRecording ( )","body":"{ eval ( \"\" ) val res = eval ( \"\" ) . renderedValue res . shouldBeInstanceOf < List < LibraryResolutionRequest > > ( ) res . shouldHaveSize ( ) val expectedLibs = listOf ( \"\" , \"\" , \"\" ) for ( i in res . indices ) { res [ i ] . reference . name shouldBe expectedLibs [ i ] res [ i ] . definition . originalDescriptorText . shouldNotBeBlank ( ) } }","docstring":""} {"signature":"@ Test fun testLocalLibrariesStorage ( )","body":"{ @ Language ( \"\" ) val descriptorText = \"\"\"\"\"\" . trimIndent ( ) val libName = \"\" val file = KERNEL_LIBRARIES . userLibrariesDir . resolve ( KERNEL_LIBRARIES . descriptorFileName ( libName ) ) file . delete ( ) file . parentFile . mkdirs ( ) file . writeText ( descriptorText ) val result = eval ( \"\"\"\"\"\" . trimIndent ( ) , ) assertEquals ( , result . renderedValue ) file . delete ( ) }","docstring":""} {"signature":"@ Test fun `multiple integrations in one JAR with the filter enabled` ( )","body":"{ fun includeLib ( name : String ) = eval ( \"\" ) includeLib ( \"\" ) eval ( \"\" ) . renderedValue shouldBe evalError < ReplCompilerException > ( \"\" ) includeLib ( \"\" ) eval ( \"\" ) . renderedValue shouldBe eval ( \"\"\"\"\"\" ) . shouldBeTypeOf < EvalResultEx . Success > ( ) }","docstring":""} {"signature":"@ Test @ Disabled fun kotlinSpark ( )","body":"{ eval ( \"\"\"\"\"\" . trimIndent ( ) , ) eval ( \"\"\"\"\"\" . trimIndent ( ) , ) var res : EvalResultEx ? = null val resultThread = thread ( contextClassLoader = repl . currentClassLoader ) { res = eval ( \"\" ) } resultThread . join ( ) val resultValue = res ? . renderedValue resultValue . shouldBeInstanceOf < MimeTypedResult > ( ) }","docstring":""} {"signature":"@ Test fun `transitive sources are resolved even they are lacking for some of the dependencies in the graph` ( )","body":"{ eval ( \"\"\"\"\"\" . trimIndent ( ) , ) val result = eval ( \"\"\"\"\"\" . trimIndent ( ) , ) with ( result . metadata . newSources ) { filter { \"\" in it } . shouldBeEmpty ( ) filter { \"\" in it } . shouldNotBeEmpty ( ) } }","docstring":""} {"signature":"@ Test fun `mpp dependencies are resolved to maven artifacts` ( )","body":"{ eval ( \"\"\"\"\"\" . trimIndent ( ) , ) val result = eval ( \"\"\"\"\"\" . trimIndent ( ) , ) with ( result . metadata . newClasspath ) { filter { \"\" in it } . shouldNotBeEmpty ( ) } val client = eval ( \"\"\"\"\"\" . trimIndent ( ) , ) ( client . renderedValue ! ! ) :: class . qualifiedName shouldBe \"\" }","docstring":""} {"signature":"@ Test @ Timeout ( , unit = TimeUnit . SECONDS ) fun `mpp dependencies are not resolved for dataframe and kandy` ( )","body":"{ eval ( \"\"\"\"\"\" . trimIndent ( ) , ) eval ( \"\"\"\"\"\" . trimIndent ( ) , ) }","docstring":""} {"signature":"@ Test fun `options should not interfer` ( )","body":"{ eval ( \"\"\"\"\"\" . trimIndent ( ) , ) }","docstring":""} {"signature":"@ Test fun testGGDslSourcesResolution ( )","body":"{ eval ( \"\" ) val res = eval ( \"\"\"\"\"\" . trimIndent ( ) , ) res . metadata . newSources . shouldHaveSize ( ) }","docstring":""} {"signature":"@ Test fun `some options could be ignored` ( )","body":"{ eval ( \"\" ) val exception = evalError < ReplPreprocessingException > ( \"\" ) exception . message shouldContain \"\" }","docstring":""} {"signature":"@ Test fun testCompletionForLibraryWithOrderedParameters ( )","body":"{ val lib = \"\" complete ( \"\" ) . matches ( ) shouldHaveSize complete ( \"\" ) . matches ( ) . single ( ) shouldContain \"\" complete ( \"\" ) . matches ( ) shouldHaveAtLeastSize complete ( \"\" ) . matches ( ) shouldHaveSize complete ( \"\" ) . matches ( ) shouldHaveSize complete ( \"\" ) . matches ( ) . apply { shouldHaveAtLeastSize ( ) shouldNotContain ( \"\" ) } }","docstring":""} {"signature":"fun foo ( ) : String","body":"fun foo ( ) : String","docstring":""} {"signature":"private inline fun getHasFoo ( s : String )","body":"= object : HasFoo { override fun foo ( ) : String = s }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val hasFoo = getHasFoo ( \"\" ) checkClass ( hasFoo :: class , expectedQualifiedName = null , expectedSimpleName = null , expectedToStringName = \"\" , expectedInstance = hasFoo , expectedNotInstance = Any ( ) ) return \"\" }","docstring":""} {"signature":"private fun checkClass ( clazz : KClass < * > , expectedQualifiedName : String ? , expectedSimpleName : String ? , expectedToStringName : String , expectedInstance : Any , expectedNotInstance : Any ? )","body":"{ assertEquals ( expectedQualifiedName , clazz . qualifiedName ) assertEquals ( expectedSimpleName , clazz . simpleName ) assertEquals ( expectedToStringName , clazz . toString ( ) ) assertTrue ( clazz . isInstance ( expectedInstance ) ) if ( expectedNotInstance != null ) assertTrue ( ! clazz . isInstance ( expectedNotInstance ) ) }","docstring":""} {"signature":"internal fun Appendable . writeTypes ( types : List < NamedTypeVariant > )","body":"{ types . filter { type -> type . variant . features . location == FILE_ROOT } . forEach { type -> writeTypeDef ( type ) } append ( \"\" ) append ( CLASS_FOR_NESTED ) append ( \"\" ) types . filter { named -> named . variant . features . location == NESTED } . forEach { type -> writeTypeDef ( type , \"\" ) } append ( \"\" ) append ( \"\" ) append ( CLASS_FOR_INNER ) append ( \"\" ) types . filter { named -> named . variant . features . location == LOCAL } . forEach { type -> writeTypeDef ( type , \"\" ) } append ( \"\" ) types . forEach { type -> writeCustomSerializer ( type ) } appendLine ( ) types . forEach { type -> writeContextualSerializer ( type ) } appendLine ( ) types . forEach { type -> writeUseSerializer ( type ) } appendLine ( ) writeSerialInfo ( ) appendLine ( ) }","docstring":""} {"signature":"internal fun Appendable . writeHeader ( types : List < NamedTypeVariant > , generator : String )","body":"{ appendLine ( \"\" ) appendLine ( ) appendLine ( \"\" ) appendLine ( \"\" ) appendLine ( \"\" ) appendLine ( ) writeUseSerializers ( types ) writeUseContextualSerializers ( types ) appendLine ( ) appendLine ( \"\" ) appendLine ( \"\" ) appendLine ( \"\" ) appendLine ( \"\" ) appendLine ( \"\" ) appendLine ( \"\" ) appendLine ( ) }","docstring":""} {"signature":"internal fun Appendable . writeUtils ( )","body":"{ append ( \"\" ) append ( \"\" ) append ( \"\" ) append ( \"\" ) appendLine ( TODO_SERIALIZER ) }","docstring":""} {"signature":"private fun Appendable . writeTypeDef ( named : NamedTypeVariant , indent : String = \"\" )","body":"{ when ( named . variant ) { is EnumVariant -> writeEnumDef ( named , indent ) } }","docstring":""} {"signature":"private fun Appendable . writeEnumDef ( named : NamedTypeVariant , indent : String )","body":"{ val enum = named . variant as EnumVariant if ( enum . features . location == LOCAL ) { throw IllegalArgumentException ( \"\" ) } val classUsage = named . classUsage if ( enum . features . serializer == GENERATED ) { append ( indent ) appendLine ( \"\" ) } if ( enum . features . serializer == CUSTOM_OBJECT || enum . features . serializer == CUSTOM_CLASS ) { append ( indent ) appendLine ( \"\" ) } if ( SerialInfo . ON_TYPE in enum . options . serialInfo ) { append ( indent ) appendLine ( \"\" ) } append ( indent ) appendLine ( \"\" ) enum . options . entries . forEach { entry -> append ( indent ) append ( \"\" ) if ( SerialInfo . ON_ELEMENTS in enum . options . serialInfo ) { append ( \"\" ) } append ( entry ) appendLine ( \"\" ) } append ( indent ) appendLine ( \"\" ) appendLine ( ) }","docstring":""} {"signature":"private fun Appendable . writeUseSerializers ( types : List < NamedTypeVariant > )","body":"{ val serializers = types . mapNotNull { type -> type . useSerializer } if ( serializers . isEmpty ( ) ) { return } append ( \"\" ) serializers . forEach { name -> append ( name ) append ( \"\" ) } appendLine ( \"\" ) }","docstring":""} {"signature":"private fun Appendable . writeUseContextualSerializers ( types : List < NamedTypeVariant > )","body":"{ val types = types . filter { type -> type . useContextualSerializer != null } if ( types . isEmpty ( ) ) { return } append ( \"\" ) types . forEach { type -> append ( type . classUsage ) append ( \"\" ) } appendLine ( \"\" ) }","docstring":""} {"signature":"private fun Appendable . writeSerialInfo ( )","body":"{ appendLine ( \"\" ) appendLine ( \"\" ) appendLine ( \"\" ) }","docstring":""} {"signature":"private fun Appendable . writeCustomSerializer ( type : NamedTypeVariant )","body":"{ when ( type . variant . features . serializer ) { CUSTOM_CLASS -> { appendLine ( \"\" ) } CUSTOM_OBJECT -> { appendLine ( \"\" ) } else -> Unit } }","docstring":""} {"signature":"private fun Appendable . writeContextualSerializer ( type : NamedTypeVariant )","body":"{ when ( type . variant . features . serializer ) { CONTEXTUAL , USE_CONTEXTUAL -> { val usage = type . classUsage appendLine ( \"\" ) } else -> Unit } }","docstring":""} {"signature":"private fun Appendable . writeUseSerializer ( type : NamedTypeVariant )","body":"{ when ( type . variant . features . serializer ) { CLASS_USE_SERIALIZER -> { val usage = type . classUsage appendLine ( \"\" ) } else -> Unit } }","docstring":""} {"signature":"public fun print ( message : kotlin . Any ? ) : kotlin . Unit","body":"public fun print ( message : kotlin . Any ? ) : kotlin . Unit","docstring":""} {"signature":"public fun println ( ) : kotlin . Unit","body":"public fun println ( ) : kotlin . Unit","docstring":""} {"signature":"public fun println ( message : kotlin . Any ? ) : kotlin . Unit","body":"public fun println ( message : kotlin . Any ? ) : kotlin . Unit","docstring":""} {"signature":"@ kotlin . SinceKotlin ( version = \"\" ) public fun readln ( ) : kotlin . String","body":"@ kotlin . SinceKotlin ( version = \"\" ) public fun readln ( ) : kotlin . String","docstring":""} {"signature":"@ kotlin . SinceKotlin ( version = \"\" ) public fun readlnOrNull ( ) : kotlin . String ?","body":"@ kotlin . SinceKotlin ( version = \"\" ) public fun readlnOrNull ( ) : kotlin . String ?","docstring":""} {"signature":"override fun equals ( other : Any ? ) : Boolean","body":"{ return if ( other === this ) true else other is JavaElementPsiSourceWithSmartPointer < * > && originalPsi == other . originalPsi }","docstring":""} {"signature":"override fun hashCode ( ) : Int","body":"= originalPsi . hashCode ( )","docstring":""} {"signature":"fun ConeKotlinType . asKtType ( )","body":"= analysisSession . firSymbolBuilder . typeBuilder . buildKtType ( this )","docstring":""} {"signature":"fun KtPsiDiagnostic . asKtDiagnostic ( ) : KtDiagnosticWithPsi < * >","body":"= KT_DIAGNOSTIC_CONVERTER . convert ( analysisSession , this as KtDiagnostic )","docstring":""} {"signature":"fun ConeDiagnostic . asKtDiagnostic ( source : KtSourceElement , callOrAssignmentSource : KtSourceElement ? , ) : KtDiagnosticWithPsi < * > ?","body":"{ val firDiagnostic = toFirDiagnostics ( analysisSession . useSiteSession , source , callOrAssignmentSource ) . firstOrNull ( ) ? : return null check ( firDiagnostic is KtPsiDiagnostic ) return firDiagnostic . asKtDiagnostic ( ) }","docstring":""} {"signature":"fun createTypeCheckerContext ( ) : TypeCheckerState","body":"{ return analysisSession . firResolveSession . useSiteFirSession . typeContext . newTypeCheckerState ( errorTypesEqualToAnything = true , stubTypesEqualToAnything = true ) }","docstring":""} {"signature":"fun FirQualifiedAccessExpression . createSubstitutorFromTypeArguments ( discardErrorTypes : Boolean = false ) : KtSubstitutor ?","body":"{ return createConeSubstitutorFromTypeArguments ( rootModuleSession , discardErrorTypes ) ? . toKtSubstitutor ( ) }","docstring":""} {"signature":"fun FirQualifiedAccessExpression . createSubstitutorFromTypeArguments ( callableSymbol : FirCallableSymbol < * > , discardErrorTypes : Boolean = false ) : KtSubstitutor","body":"{ return createConeSubstitutorFromTypeArguments ( callableSymbol , rootModuleSession , discardErrorTypes ) . toKtSubstitutor ( ) }","docstring":""} {"signature":"fun ConeSubstitutor . toKtSubstitutor ( ) : KtSubstitutor","body":"{ return analysisSession . firSymbolBuilder . typeBuilder . buildSubstitutor ( this ) }","docstring":""} {"signature":"internal fun __ieee754_atan2 ( y : Double , x : Double ) : Double","body":"{ var z : Double var k : Int var m : Int var hx : Int var hy : Int var ix : Int var iy : Int var lx : UInt var ly : UInt hx = __HI ( x ) ; ix = hx and lx = __LOu ( x ) hy = __HI ( y ) ; iy = hy and ly = __LOu ( y ) if ( ( ( ix or ( ( lx or lx . negate ( ) ) shr ) . toInt ( ) ) > ) || ( ( iy or ( ( ly or ly . negate ( ) ) shr ) . toInt ( ) ) > ) ) return x + y if ( ( ( hx - ) or lx . toInt ( ) ) == ) return atan ( y ) m = ( ( hy shr ) and ) or ( ( hx shr ) and ) if ( ( iy or ly . toInt ( ) ) == ) { when ( m ) { , -> return y -> return pi + tiny -> return - pi - tiny } } if ( ( ix or lx . toInt ( ) ) == ) return if ( hy < ) - pi_o_2 - tiny else pi_o_2 + tiny if ( ix == ) { if ( iy == ) { when ( m ) { -> return pi_o_4 + tiny -> return - pi_o_4 - tiny -> return * pi_o_4 + tiny -> return - * pi_o_4 - tiny } } else { when ( m ) { -> return zero -> return - zero -> return pi + tiny -> return - pi - tiny } } } if ( iy == ) return if ( hy < ) - pi_o_2 - tiny else pi_o_2 + tiny k = ( iy - ix ) shr if ( k > ) z = pi_o_2 + * pi_lo else if ( hx < && k < - ) z = else z = atan ( fabs ( y / x ) ) when ( m ) { -> return z -> { z = doubleSetWord ( d = z , hi = __HI ( z ) xor Int . MIN_VALUE ) return z } -> return pi - ( z - pi_lo ) else -> return ( z - pi_lo ) - pi } }","docstring":""} {"signature":"override fun resolveDependencies ( sourceSetName : String ) : Set < IdeaKotlinDependency >","body":"{ return resolveDependencies ( extension . sourceSets . getByName ( sourceSetName ) ) }","docstring":""} {"signature":"override fun resolveDependencies ( sourceSet : KotlinSourceSet ) : Set < IdeaKotlinDependency >","body":"{ return createDependencyResolver ( ) . resolve ( sourceSet ) }","docstring":""} {"signature":"override fun resolveDependenciesSerialized ( sourceSetName : String ) : List < ByteArray >","body":"{ return serialize ( resolveDependencies ( sourceSetName ) ) }","docstring":""} {"signature":"override fun resolveExtrasSerialized ( owner : Any ) : ByteArray ?","body":"{ if ( owner !is HasMutableExtras ) return null return owner . extras . toByteArray ( createSerializationContext ( ) ) }","docstring":""} {"signature":"override fun serialize ( dependencies : Iterable < IdeaKotlinDependency > ) : List < ByteArray >","body":"{ val context = createSerializationContext ( ) return dependencies . map { dependency -> dependency . toByteArray ( context ) } }","docstring":""} {"signature":"override fun < T : Any > serialize ( key : Extras . Key < T > , value : T ) : ByteArray ?","body":"{ val context = createSerializationContext ( ) return context . extrasSerializationExtension . serializer ( key ) ? . serialize ( context , value ) }","docstring":""} {"signature":"@ OptIn ( Idea222Api :: class ) override fun registerDependencyResolver ( resolver : IdeDependencyResolver , constraint : SourceSetConstraint , phase : DependencyResolutionPhase , priority : Priority , )","body":"{ registeredDependencyResolvers . add ( RegisteredDependencyResolver ( extension . project . kotlinIdeMultiplatformImportStatistics , resolver , constraint , phase , priority ) ) if ( resolver is IdeDependencyResolver . WithBuildDependencies ) { val project = extension . project val dependencies = project . provider { resolver . dependencies ( project ) } extension . project . locateOrRegisterIdeResolveDependenciesTask ( ) . configure { it . dependsOn ( dependencies ) } extension . project . prepareKotlinIdeaImportTask . configure { it . dependsOn ( dependencies ) } } }","docstring":""} {"signature":"override fun registerDependencyTransformer ( transformer : IdeDependencyTransformer , constraint : SourceSetConstraint , phase : DependencyTransformationPhase , )","body":"{ registeredDependencyTransformers . add ( RegisteredDependencyTransformer ( transformer , constraint , phase ) ) }","docstring":""} {"signature":"override fun registerAdditionalArtifactResolver ( resolver : IdeAdditionalArtifactResolver , constraint : SourceSetConstraint , phase : AdditionalArtifactResolutionPhase , priority : Priority , )","body":"{ registeredAdditionalArtifactResolvers . add ( RegisteredAdditionalArtifactResolver ( extension . project . kotlinIdeMultiplatformImportStatistics , resolver , constraint , phase , priority ) ) }","docstring":""} {"signature":"override fun registerDependencyEffect ( effect : IdeDependencyEffect , constraint : SourceSetConstraint )","body":"{ registeredDependencyEffects . add ( RegisteredDependencyEffect ( effect , constraint ) ) }","docstring":""} {"signature":"override fun registerExtrasSerializationExtension ( extension : IdeaKotlinExtrasSerializationExtension )","body":"{ registeredExtrasSerializationExtensions . add ( extension ) }","docstring":""} {"signature":"override fun registerImportAction ( action : IdeMultiplatformImportAction )","body":"{ IdeMultiplatformImportAction . extensionPoint . register ( extension . project , action ) }","docstring":""} {"signature":"private fun createDependencyResolver ( ) : IdeDependencyResolver","body":"{ return IdeDependencyResolver ( DependencyResolutionPhase . values ( ) . map { phase -> createDependencyResolver ( phase ) } ) . withAdditionalArtifactResolver ( createAdditionalArtifactsResolver ( ) ) . withTransformer ( createDependencyTransformer ( ) ) . withEffect ( createDependencyEffect ( ) ) }","docstring":""} {"signature":"private fun createDependencyResolver ( phase : DependencyResolutionPhase )","body":"= IdeDependencyResolver resolve @ { sourceSet -> val applicableResolvers = registeredDependencyResolvers . filter { it . phase == phase } . filter { it . constraint ( sourceSet ) } . groupBy { it . priority } applicableResolvers . keys . sortedDescending ( ) . forEach { priority -> val resolvers = applicableResolvers [ priority ] . orEmpty ( ) if ( resolvers . isNotEmpty ( ) ) { return@resolve IdeDependencyResolver ( resolvers ) . resolve ( sourceSet ) } } emptySet ( ) }","docstring":""} {"signature":"private fun createAdditionalArtifactsResolver ( )","body":"= IdeAdditionalArtifactResolver ( AdditionalArtifactResolutionPhase . values ( ) . map { phase -> createAdditionalArtifactsResolver ( phase ) } )","docstring":""} {"signature":"private fun createAdditionalArtifactsResolver ( phase : AdditionalArtifactResolutionPhase ) : IdeAdditionalArtifactResolver","body":"{ if ( phase == SourcesAndDocumentationResolution && ideaGradleDownloadSourcesEnabledProperty . orNull ? . toBoolean ( ) == true && ideaGradleDownloadSourcesProperty . orNull ? . toBoolean ( ) == false ) { return IdeAdditionalArtifactResolver . empty } return IdeAdditionalArtifactResolver resolve @ { sourceSet , dependencies -> val applicableResolvers = registeredAdditionalArtifactResolvers . filter { it . phase == phase } . filter { it . constraint ( sourceSet ) } . groupBy { it . priority } applicableResolvers . keys . sortedDescending ( ) . forEach { priority -> val resolvers = applicableResolvers [ priority ] . orEmpty ( ) if ( resolvers . isNotEmpty ( ) ) { resolvers . forEach { resolver -> resolver . resolve ( sourceSet , dependencies ) } return@resolve } } } }","docstring":""} {"signature":"private fun createDependencyTransformer ( ) : IdeDependencyTransformer","body":"{ return IdeDependencyTransformer ( DependencyTransformationPhase . values ( ) . map { phase -> createDependencyTransformer ( phase ) } ) }","docstring":""} {"signature":"private fun createDependencyTransformer ( phase : DependencyTransformationPhase ) : IdeDependencyTransformer","body":"{ return IdeDependencyTransformer { sourceSet , dependencies -> IdeDependencyTransformer ( registeredDependencyTransformers . filter { it . phase == phase } . filter { it . constraint ( sourceSet ) } . map { it . transformer } ) . transform ( sourceSet , dependencies ) } }","docstring":""} {"signature":"private fun createDependencyEffect ( ) : IdeDependencyEffect","body":"= IdeDependencyEffect { sourceSet , dependencies -> registeredDependencyEffects . filter { it . constraint ( sourceSet ) } . forEach { it . effect ( sourceSet , dependencies ) } }","docstring":""} {"signature":"private fun createSerializationContext ( ) : IdeaKotlinSerializationContext","body":"{ return IdeaKotlinSerializationContext ( logger = extension . project . logger , extrasSerializationExtensions = registeredExtrasSerializationExtensions . toList ( ) ) }","docstring":""} {"signature":"override fun resolve ( sourceSet : KotlinSourceSet ) : Set < IdeaKotlinDependency >","body":"{ return runCatching { resolveTimed ( sourceSet ) } . onFailure { error -> reportError ( sourceSet , error ) } . onSuccess { result -> reportSuccess ( sourceSet , result ) } . onSuccess { result -> attachResolvedByExtra ( result . dependencies ) } . getOrNull ( ) ? . dependencies . orEmpty ( ) }","docstring":""} {"signature":"private fun resolveTimed ( sourceSet : KotlinSourceSet ) : TimeMeasuredResult","body":"{ val ( time , result ) = measureTimeMillisWithResult { resolver . resolve ( sourceSet ) } statistics . addExecutionTime ( resolver :: class . java , time ) return TimeMeasuredResult ( time , result ) }","docstring":""} {"signature":"private fun reportError ( sourceSet : KotlinSourceSet , error : Throwable )","body":"{ logger . error ( \"\" , error ) }","docstring":""} {"signature":"private fun reportSuccess ( sourceSet : KotlinSourceSet , result : TimeMeasuredResult )","body":"{ if ( ! logger . isDebugEnabled ) return logger . debug ( \"\" + \"\" ) }","docstring":""} {"signature":"private fun attachResolvedByExtra ( dependencies : Iterable < IdeaKotlinDependency > )","body":"{ dependencies . forEach { dependency -> if ( dependency . resolvedBy == null ) dependency . resolvedBy = resolver } }","docstring":""} {"signature":"override fun resolve ( sourceSet : KotlinSourceSet , dependencies : Set < IdeaKotlinDependency > )","body":"{ runCatching { measureTimeMillis { resolver . resolve ( sourceSet , dependencies ) } } . onFailure { logger . error ( \"\" , it ) } . onSuccess { statistics . addExecutionTime ( resolver :: class . java , it ) } }","docstring":""} {"signature":"@ Test fun testEagerly ( )","body":"= testSharingStarted ( SharingStarted . Eagerly , SharingCommand . START ) { subscriptions ( ) rampUpAndDown ( ) subscriptions ( ) delay ( ) }","docstring":""} {"signature":"@ Test fun testLazily ( )","body":"= testSharingStarted ( SharingStarted . Lazily ) { subscriptions ( , SharingCommand . START ) rampUpAndDown ( ) subscriptions ( ) }","docstring":""} {"signature":"@ Test fun testWhileSubscribed ( )","body":"= testSharingStarted ( SharingStarted . WhileSubscribed ( ) ) { subscriptions ( , SharingCommand . START ) rampUpAndDown ( ) subscriptions ( , SharingCommand . STOP ) delay ( ) }","docstring":""} {"signature":"@ Test fun testWhileSubscribedExpireImmediately ( )","body":"= testSharingStarted ( SharingStarted . WhileSubscribed ( replayExpirationMillis = ) ) { subscriptions ( , SharingCommand . START ) rampUpAndDown ( ) subscriptions ( , SharingCommand . STOP_AND_RESET_REPLAY_CACHE ) delay ( ) }","docstring":""} {"signature":"@ Test fun testWhileSubscribedWithTimeout ( )","body":"= testSharingStarted ( SharingStarted . WhileSubscribed ( stopTimeoutMillis = ) ) { subscriptions ( , SharingCommand . START ) rampUpAndDown ( ) subscriptions ( ) delay ( ) subscriptions ( ) rampUpAndDown ( ) subscriptions ( ) afterTime ( , SharingCommand . STOP ) delay ( ) }","docstring":""} {"signature":"@ Test fun testWhileSubscribedExpiration ( )","body":"= testSharingStarted ( SharingStarted . WhileSubscribed ( replayExpirationMillis = ) ) { subscriptions ( , SharingCommand . START ) rampUpAndDown ( ) subscriptions ( , SharingCommand . STOP ) delay ( ) subscriptions ( , SharingCommand . START ) rampUpAndDown ( ) subscriptions ( , SharingCommand . STOP ) afterTime ( , SharingCommand . STOP_AND_RESET_REPLAY_CACHE ) }","docstring":""} {"signature":"@ Test fun testWhileSubscribedStopAndExpiration ( )","body":"= testSharingStarted ( SharingStarted . WhileSubscribed ( stopTimeoutMillis = , replayExpirationMillis = ) ) { subscriptions ( , SharingCommand . START ) rampUpAndDown ( ) subscriptions ( ) delay ( ) subscriptions ( ) rampUpAndDown ( ) subscriptions ( ) afterTime ( , SharingCommand . STOP ) delay ( ) subscriptions ( , SharingCommand . START ) rampUpAndDown ( ) subscriptions ( ) afterTime ( , SharingCommand . STOP ) afterTime ( , SharingCommand . STOP_AND_RESET_REPLAY_CACHE ) delay ( ) }","docstring":""} {"signature":"private suspend fun SharingStartedDsl . rampUpAndDown ( )","body":"{ for ( i in .. ) { delay ( ) subscriptions ( i ) } delay ( ) for ( i in downTo ) { subscriptions ( i ) delay ( ) } }","docstring":""} {"signature":"private fun testSharingStarted ( started : SharingStarted , initialCommand : SharingCommand ? = null , scenario : suspend SharingStartedDsl . ( ) -> Unit )","body":"= withVirtualTime { expect ( ) val dsl = SharingStartedDsl ( started , initialCommand , coroutineContext ) dsl . launch ( ) repeat ( ) { dsl . scenario ( ) delay ( ) } dsl . stop ( ) finish ( ) }","docstring":""} {"signature":"suspend fun launch ( )","body":"{ started . command ( subscriptionCount . asStateFlow ( ) ) . onEach { checkCommand ( it ) } . launchIn ( scope ) letItRun ( ) }","docstring":""} {"signature":"fun checkCommand ( command : SharingCommand )","body":"{ assertTrue ( command != previousCommand ) previousCommand = command assertEquals ( expectedCommand , command ) assertEquals ( expectedTime , dispatcher . currentTime ) }","docstring":""} {"signature":"suspend fun subscriptions ( count : Int , command : SharingCommand ? = null )","body":"{ expectedTime = dispatcher . currentTime subscriptionCount . value = count if ( command != null ) { afterTime ( , command ) } else { letItRun ( ) } }","docstring":""} {"signature":"suspend fun afterTime ( time : Long = , command : SharingCommand )","body":"{ expectedCommand = command val remaining = ( time - ) . coerceAtLeast ( ) expectedTime += remaining delay ( remaining ) letItRun ( ) }","docstring":""} {"signature":"private suspend fun letItRun ( )","body":"{ delay ( ) assertEquals ( expectedCommand , previousCommand ) expectedTime ++ }","docstring":""} {"signature":"fun stop ( )","body":"{ scope . cancel ( ) }","docstring":""} {"signature":"fun allocUnsafe ( bytes : Int ) : Buffer","body":"fun allocUnsafe ( bytes : Int ) : Buffer","docstring":""} {"signature":"fun readInt8 ( offset : Int ) : Byte","body":"fun readInt8 ( offset : Int ) : Byte","docstring":""} {"signature":"fun writeInt8 ( value : Byte , offset : Int )","body":"fun writeInt8 ( value : Byte , offset : Int )","docstring":""} {"signature":"private fun getTestDataDir ( ) : File","body":"{ val testCaseDir = lowercaseFirstLetter ( this :: class . java . simpleName . substringBefore ( \"\" ) . substringBefore ( \"\" ) , true ) val testDir = testDirectoryName return File ( KtTestUtil . getHomeDirectory ( ) ) . resolve ( \"\" ) . resolve ( testCaseDir ) . resolve ( testDir ) . also ( :: assertIsDirectory ) }","docstring":""} {"signature":"protected fun doTestSuccessfulCommonization ( )","body":"{ val sourceModuleRoots : SourceModuleRoots = SourceModuleRoots . load ( getTestDataDir ( ) ) val analyzedModules : AnalyzedModules = AnalyzedModules . create ( sourceModuleRoots , testRootDisposable ) val results = MockResultsConsumer ( ) runCommonization ( analyzedModules . toCommonizerParameters ( results ) ) assertEquals ( Status . DONE , results . status ) val sharedTarget : SharedCommonizerTarget = analyzedModules . sharedTarget assertEquals ( sharedTarget , results . sharedTarget ) val sharedModuleAsExpected : SerializedMetadata = analyzedModules . commonizedModules . getValue ( sharedTarget ) val sharedModuleByCommonizer : SerializedMetadata = results . modulesByTargets . getValue ( sharedTarget ) . single ( ) . metadata assertModulesAreEqual ( sharedModuleAsExpected , sharedModuleByCommonizer , sharedTarget ) }","docstring":""} {"signature":"fun load ( directory : File ) : SourceModuleRoot","body":"= SourceModuleRoot ( targetName = directory . name , location = directory )","docstring":""} {"signature":"fun load ( dataDir : File ) : SourceModuleRoots","body":"= try { val originalRoots = listRoots ( dataDir , ORIGINAL_ROOTS_DIR ) . mapKeys { LeafCommonizerTarget ( it . key ) } val leafTargets = originalRoots . keys val sharedTarget = SharedCommonizerTarget ( leafTargets ) fun getTarget ( targetName : String ) : CommonizerTarget = if ( targetName == SHARED_TARGET_NAME ) sharedTarget else leafTargets . first { it . name == targetName } val commonizedRoots = listRoots ( dataDir , COMMONIZED_ROOTS_DIR ) . mapKeys { getTarget ( it . key ) } val dependencyRoots = listRoots ( dataDir , DEPENDENCY_ROOTS_DIR ) . mapKeys { getTarget ( it . key ) } SourceModuleRoots ( originalRoots , commonizedRoots , dependencyRoots ) } catch ( e : Exception ) { fail ( \"\" , cause = e ) }","docstring":""} {"signature":"private fun listRoots ( dataDir : File , rootsDirName : String ) : Map < String , SourceModuleRoot >","body":"= dataDir . resolve ( rootsDirName ) . listFiles ( ) ? . toSet ( ) . orEmpty ( ) . map ( SourceModuleRoot :: load ) . associateBy { it . targetName }","docstring":""} {"signature":"fun withExpectByDependency ( dependency : ModuleDescriptor )","body":"= AnalyzedModuleDependencies ( regularDependencies = regularDependencies , expectByDependencies = expectByDependencies + dependency )","docstring":""} {"signature":"fun toCommonizerParameters ( resultsConsumer : ResultsConsumer , manifestDataProvider : ( CommonizerTarget ) -> NativeManifestDataProvider = { MockNativeManifestDataProvider ( it ) } , commonizerSettings : CommonizerSettings = DefaultCommonizerSettings , )","body":"= CommonizerParameters ( outputTargets = setOf ( SharedCommonizerTarget ( leafTargets . toSet ( ) ) ) , manifestProvider = TargetDependent ( sharedTarget . withAllLeaves ( ) , manifestDataProvider ) , dependenciesProvider = TargetDependent ( sharedTarget . withAllLeaves ( ) ) { target -> dependencyModules . filter { ( registeredTarget , _ ) -> target in registeredTarget . withAllLeaves ( ) } . values . flatten ( ) . let ( MockModulesProvider :: create ) } , targetProviders = TargetDependent ( leafTargets ) { leafTarget -> TargetProvider ( target = leafTarget , modulesProvider = MockModulesProvider . create ( originalModules . getValue ( leafTarget ) ) ) } , resultsConsumer = resultsConsumer , settings = commonizerSettings , )","docstring":""} {"signature":"fun create ( sourceModuleRoots : SourceModuleRoots , parentDisposable : Disposable ) : AnalyzedModules","body":"= with ( sourceModuleRoots ) { val ( dependencyModules : Map < CommonizerTarget , List < ModuleDescriptor > > , dependencies : AnalyzedModuleDependencies ) = createDependencyModules ( sharedTarget , dependencyRoots , parentDisposable ) val originalModules : Map < CommonizerTarget , ModuleDescriptor > = createModules ( sharedTarget , originalRoots , dependencies , parentDisposable ) val commonizedModules : Map < CommonizerTarget , SerializedMetadata > = createModules ( sharedTarget , commonizedRoots , dependencies , parentDisposable ) . mapValues { ( _ , moduleDescriptor ) -> MockModulesProvider . SERIALIZER . serializeModule ( moduleDescriptor ) } return AnalyzedModules ( originalModules , commonizedModules , dependencyModules ) }","docstring":""} {"signature":"private fun createDependencyModules ( sharedTarget : SharedCommonizerTarget , dependencyRoots : Map < out CommonizerTarget , SourceModuleRoot > , parentDisposable : Disposable ) : Pair < Map < CommonizerTarget , List < ModuleDescriptor > > , AnalyzedModuleDependencies >","body":"{ val customDependencyModules = createModules ( sharedTarget , dependencyRoots , AnalyzedModuleDependencies . EMPTY , parentDisposable , isDependencyModule = true ) val stdlibModule = DefaultBuiltIns . Instance . builtInsModule val dependencyModules = ( sharedTarget . targets + sharedTarget ) . associateWith { target -> listOfNotNull ( stdlibModule , customDependencyModules [ target ] ) } return dependencyModules to AnalyzedModuleDependencies ( regularDependencies = dependencyModules , expectByDependencies = dependencyModules . getValue ( sharedTarget ) . filter { module -> module !== stdlibModule } ) }","docstring":""} {"signature":"private fun createModules ( sharedTarget : SharedCommonizerTarget , moduleRoots : Map < out CommonizerTarget , SourceModuleRoot > , dependencies : AnalyzedModuleDependencies , parentDisposable : Disposable , isDependencyModule : Boolean = false ) : Map < CommonizerTarget , ModuleDescriptor >","body":"{ val result = mutableMapOf < CommonizerTarget , ModuleDescriptor > ( ) var dependenciesForOthers = dependencies moduleRoots [ sharedTarget ] ? . let { moduleRoot -> val commonModule = createModule ( sharedTarget , sharedTarget , moduleRoot , dependencies , parentDisposable , isDependencyModule ) result [ sharedTarget ] = commonModule dependenciesForOthers = dependencies . withExpectByDependency ( commonModule ) } moduleRoots . filterKeys { it != sharedTarget } . forEach { ( leafTarget , moduleRoot ) -> result [ leafTarget ] = createModule ( sharedTarget , leafTarget , moduleRoot , dependenciesForOthers , parentDisposable , isDependencyModule ) } return result }","docstring":""} {"signature":"private fun createModule ( sharedTarget : SharedCommonizerTarget , currentTarget : CommonizerTarget , moduleRoot : SourceModuleRoot , dependencies : AnalyzedModuleDependencies , parentDisposable : Disposable , isDependencyModule : Boolean ) : ModuleDescriptor","body":"{ val moduleName : String = moduleRoot . location . parentFile . parentFile . name . let { if ( isDependencyModule ) \"\" else it } check ( Name . isValidIdentifier ( moduleName ) ) val configuration : CompilerConfiguration = newConfiguration ( ) configuration . put ( CommonConfigurationKeys . MODULE_NAME , moduleName ) val environment : KotlinCoreEnvironment = KotlinCoreEnvironment . createForTests ( parentDisposable = parentDisposable , initialConfiguration = configuration , extensionConfigs = EnvironmentConfigFiles . METADATA_CONFIG_FILES ) val psiFactory = KtPsiFactory ( environment . project ) val psiFiles : List < KtFile > = moduleRoot . location . walkTopDown ( ) . filter { it . isFile } . map { psiFactory . createFile ( it . name , KtTestUtil . doLoadFile ( it ) ) } . toList ( ) val module = CommonResolverForModuleFactory . analyzeFiles ( psiFiles , Name . special ( \"\" ) , dependOnBuiltIns = true , environment . configuration . languageVersionSettings , CommonPlatforms . defaultCommonPlatform , CompilerEnvironment , dependenciesContainer = DependenciesContainerImpl ( sharedTarget , currentTarget , dependencies ) , ) { content -> environment . createPackagePartProvider ( content . moduleContentScope ) } . moduleDescriptor if ( ! isDependencyModule ) module . accept ( PatchingTestDescriptorVisitor , Unit ) return module }","docstring":""} {"signature":"override fun dependencies ( )","body":"= listOf ( this ) + regularDependencies","docstring":""} {"signature":"override fun dependencyOnBuiltIns ( )","body":"= ModuleInfo . DependencyOnBuiltIns . LAST","docstring":""} {"signature":"override fun moduleDescriptorForModuleInfo ( moduleInfo : ModuleInfo )","body":"= moduleInfoToModule [ moduleInfo ] ? : error ( \"\" )","docstring":""} {"signature":"override fun registerDependencyForAllModules ( moduleInfo : ModuleInfo , descriptorForModule : ModuleDescriptorImpl )","body":"= Unit","docstring":""} {"signature":"override fun packageFragmentProviderForModuleInfo ( moduleInfo : ModuleInfo ) : PackageFragmentProvider ?","body":"= null","docstring":""} {"signature":"override fun visitModuleDeclaration ( descriptor : ModuleDescriptor , data : Unit )","body":"{ val packageFragmentProvider = ( descriptor as ModuleDescriptorImpl ) . packageFragmentProviderForModuleContentWithoutDependencies fun recurse ( packageFqName : FqName ) { val ownPackageMemberScopes = packageFragmentProvider . packageFragments ( packageFqName ) . asSequence ( ) . map { it . getMemberScope ( ) } . filter { it != MemberScope . Empty } . toList ( ) if ( ownPackageMemberScopes . isNotEmpty ( ) ) { val memberScope = ChainedMemberScope . create ( \"\" , ownPackageMemberScopes ) visitMemberScope ( memberScope ) } packageFragmentProvider . getSubPackagesOf ( packageFqName , alwaysTrue ( ) ) . toSet ( ) . map { recurse ( it ) } } recurse ( FqName . ROOT ) }","docstring":""} {"signature":"private fun visitMemberScope ( memberScope : MemberScope )","body":"{ memberScope . getContributedDescriptors ( ) . forEach { descriptor -> when ( descriptor ) { is ClassDescriptor -> { descriptor . constructors . forEach ( :: visitCallableMemberDescriptor ) visitMemberScope ( descriptor . unsubstitutedMemberScope ) } is SimpleFunctionDescriptor -> { if ( descriptor . kind . isReal && ! descriptor . isKniBridgeFunction ( ) && ! descriptor . isDeprecatedTopLevelFunction ( ) ) { visitCallableMemberDescriptor ( descriptor ) } } else -> Unit } } }","docstring":""} {"signature":"private fun visitCallableMemberDescriptor ( callableDescriptor : CallableMemberDescriptor )","body":"{ val comment = callableDescriptor . findPsi ( ) ? . text ? . lineSequence ( ) ? . firstOrNull ( ) ? . takeIf { it . startsWith ( \"\" ) } ? : return val ( key , value ) = comment . substringAfter ( \"\" ) . split ( '' , limit = ) . takeIf { it . size == } ? . map { it . trim ( ) } ? : return when ( key ) { \"\" -> { if ( ! value . toBoolean ( ) ) ( callableDescriptor as FunctionDescriptorImpl ) . setHasStableParameterNames ( false ) } else -> { } } }","docstring":""} {"signature":"private fun SimpleFunctionDescriptor . isKniBridgeFunction ( )","body":"= name . asString ( ) . startsWith ( KNI_BRIDGE_FUNCTION_PREFIX )","docstring":""} {"signature":"private fun SimpleFunctionDescriptor . isDeprecatedTopLevelFunction ( )","body":"= containingDeclaration is PackageFragmentDescriptor && annotations . hasAnnotation ( DEPRECATED_ANNOTATION_FQN )","docstring":""} {"signature":"internal fun generateKotlinVersion ( apiDir : File , filePrinter : ( targetFile : File , Printer . ( ) -> Unit ) -> Unit )","body":"{ val kotlinVersionFqName = FqName ( \"\" ) filePrinter ( fileFromFqName ( apiDir , kotlinVersionFqName ) ) { generateDeclaration ( \"\" , kotlinVersionFqName , afterType = \"\" ) { for ( languageVersion in LanguageVersion . values ( ) ) { val prefix = when { languageVersion . isUnsupported -> \"\" languageVersion . isDeprecated -> \"\" else -> \"\" } println ( \"\" ) } println ( \"\" ) println ( ) println ( \"\" ) withIndent { println ( \"\" ) println ( \"\" ) println ( \"\" ) println ( \"\" ) println ( ) println ( \"\" ) println ( \"\" ) } println ( \"\" ) } } }","docstring":"/**\n * ApiVersion and LanguageVersion are almost the same in the compiler api, so Gradle DSL options\n * exposes KotlinVersion that covers both of them.\n */"} {"signature":"public fun chars ( value : String )","body":"public fun chars ( value : String )","docstring":"/**\n * A literal string.\n *\n * When formatting, the string is appended to the result as is,\n * and when parsing, the string is expected to be present in the input verbatim.\n */"} {"signature":"public fun year ( padding : Padding = Padding . ZERO )","body":"public fun year ( padding : Padding = Padding . ZERO )","docstring":"/**\n * A year number.\n *\n * By default, for years [-9999..9999], it's formatted as a decimal number, zero-padded to four digits, though\n * this padding can be disabled or changed to space padding by passing [padding].\n * For years outside this range, it's formatted as a decimal number with a leading sign, so the year 12345\n * is formatted as \"+12345\".\n */"} {"signature":"public fun yearTwoDigits ( baseYear : Int )","body":"public fun yearTwoDigits ( baseYear : Int )","docstring":"/**\n * The last two digits of the ISO year.\n *\n * [baseYear] is the base year for the two-digit year.\n * For example, if [baseYear] is 1960, then this format correctly works with years [1960..2059].\n *\n * On formatting, when given a year in the valid range, it returns the last two digits of the year,\n * so 1993 becomes \"93\". When given a year outside the valid range, it returns the full year number\n * with a leading sign, so 1850 becomes \"+1850\", and -200 becomes \"-200\".\n *\n * On parsing, it accepts either a two-digit year or a full year number with a leading sign.\n * When given a two-digit year, it returns a year in the valid range, so \"93\" becomes 1993,\n * and when given a full year number with a leading sign, it parses the full year number,\n * so \"+1850\" becomes 1850.\n */"} {"signature":"public fun monthNumber ( padding : Padding = Padding . ZERO )","body":"public fun monthNumber ( padding : Padding = Padding . ZERO )","docstring":"/**\n * A month-of-year number, from 1 to 12.\n *\n * By default, it's padded with zeros to two digits. This can be changed by passing [padding].\n */"} {"signature":"public fun monthName ( names : MonthNames )","body":"public fun monthName ( names : MonthNames )","docstring":"/**\n * A month name (for example, \"January\").\n *\n * Example:\n * ```\n * monthName(MonthNames.ENGLISH_FULL)\n * ```\n */"} {"signature":"public fun dayOfMonth ( padding : Padding = Padding . ZERO )","body":"public fun dayOfMonth ( padding : Padding = Padding . ZERO )","docstring":"/**\n * A day-of-month number, from 1 to 31.\n *\n * By default, it's padded with zeros to two digits. This can be changed by passing [padding].\n */"} {"signature":"public fun dayOfWeek ( names : DayOfWeekNames )","body":"public fun dayOfWeek ( names : DayOfWeekNames )","docstring":"/**\n * A day-of-week name (for example, \"Thursday\").\n *\n * Example:\n * ```\n * dayOfWeek(DayOfWeekNames.ENGLISH_FULL)\n * ```\n */"} {"signature":"public fun date ( format : DateTimeFormat < LocalDate > )","body":"public fun date ( format : DateTimeFormat < LocalDate > )","docstring":"/**\n * An existing [DateTimeFormat] for the date part.\n *\n * Example:\n * ```\n * date(LocalDate.Formats.ISO)\n * ```\n */"} {"signature":"public fun hour ( padding : Padding = Padding . ZERO )","body":"public fun hour ( padding : Padding = Padding . ZERO )","docstring":"/**\n * The hour of the day, from 0 to 23.\n *\n * By default, it's zero-padded to two digits, but this can be changed with [padding].\n */"} {"signature":"public fun amPmHour ( padding : Padding = Padding . ZERO )","body":"public fun amPmHour ( padding : Padding = Padding . ZERO )","docstring":"/**\n * The hour of the day in the 12-hour clock:\n *\n * * Midnight is 12,\n * * Hours 1-11 are 1-11,\n * * Noon is 12,\n * * Hours 13-23 are 1-11.\n *\n * To disambiguate between the first and the second halves of the day, [amPmMarker] should be used.\n *\n * By default, it's zero-padded to two digits, but this can be changed with [padding].\n *\n * @see [amPmMarker]\n */"} {"signature":"public fun amPmMarker ( am : String , pm : String )","body":"public fun amPmMarker ( am : String , pm : String )","docstring":"/**\n * The AM/PM marker, using the specified strings.\n *\n * [am] is used for the AM marker (0-11 hours), [pm] is used for the PM marker (12-23 hours).\n *\n * @see [amPmHour]\n */"} {"signature":"public fun minute ( padding : Padding = Padding . ZERO )","body":"public fun minute ( padding : Padding = Padding . ZERO )","docstring":"/**\n * The minute of hour.\n *\n * By default, it's zero-padded to two digits, but this can be changed with [padding].\n */"} {"signature":"public fun second ( padding : Padding = Padding . ZERO )","body":"public fun second ( padding : Padding = Padding . ZERO )","docstring":"/**\n * The second of minute.\n *\n * By default, it's zero-padded to two digits, but this can be changed with [padding].\n *\n * This field has the default value of 0. If you want to omit it, use [optional].\n */"} {"signature":"public fun secondFraction ( minLength : Int = , maxLength : Int = )","body":"public fun secondFraction ( minLength : Int = , maxLength : Int = )","docstring":"/**\n * The fractional part of the second without the leading dot.\n *\n * When formatting, the decimal fraction will be rounded to fit in the specified [maxLength] and will add\n * trailing zeroes to the specified [minLength].\n * Rounding is performed using the round-toward-zero rounding mode.\n *\n * When parsing, the parser will require that the fraction is at least [minLength] and at most [maxLength]\n * digits long.\n *\n * This field has the default value of 0. If you want to omit it, use [optional].\n *\n * See also the [secondFraction] overload that accepts just one parameter, the exact length of the fractional\n * part.\n *\n * @throws IllegalArgumentException if [minLength] is greater than [maxLength] or if either is not in the range 1..9.\n */"} {"signature":"public fun secondFraction ( fixedLength : Int )","body":"{ secondFraction ( fixedLength , fixedLength ) }","docstring":"/**\n * The fractional part of the second without the leading dot.\n *\n * When formatting, the decimal fraction will add trailing zeroes or be rounded as necessary to always output\n * exactly the number of digits specified in [fixedLength].\n * Rounding is performed using the round-toward-zero rounding mode.\n *\n * When parsing, exactly [fixedLength] digits will be consumed.\n *\n * This field has the default value of 0. If you want to omit it, use [optional].\n *\n * See also the [secondFraction] overload that accepts two parameters, the minimum and maximum length of the\n * fractional part.\n *\n * @throws IllegalArgumentException if [fixedLength] is not in the range 1..9.\n *\n * @see secondFraction that accepts two parameters.\n */"} {"signature":"public fun time ( format : DateTimeFormat < LocalTime > )","body":"public fun time ( format : DateTimeFormat < LocalTime > )","docstring":"/**\n * An existing [DateTimeFormat] for the time part.\n *\n * Example:\n * ```\n * time(LocalTime.Formats.ISO)\n * ```\n */"} {"signature":"public fun dateTime ( format : DateTimeFormat < LocalDateTime > )","body":"public fun dateTime ( format : DateTimeFormat < LocalDateTime > )","docstring":"/**\n * An existing [DateTimeFormat] for the date-time part.\n *\n * Example:\n * ```\n * dateTime(LocalDateTime.Formats.ISO)\n * ```\n */"} {"signature":"public fun offsetHours ( padding : Padding = Padding . ZERO )","body":"public fun offsetHours ( padding : Padding = Padding . ZERO )","docstring":"/**\n * The total number of hours in the UTC offset, including the sign.\n *\n * By default, it's zero-padded to two digits, but this can be changed with [padding].\n *\n * This field has the default value of 0. If you want to omit it, use [optional].\n */"} {"signature":"public fun offsetMinutesOfHour ( padding : Padding = Padding . ZERO )","body":"public fun offsetMinutesOfHour ( padding : Padding = Padding . ZERO )","docstring":"/**\n * The minute-of-hour of the UTC offset.\n *\n * By default, it's zero-padded to two digits, but this can be changed with [padding].\n *\n * This field has the default value of 0. If you want to omit it, use [optional].\n */"} {"signature":"public fun offsetSecondsOfMinute ( padding : Padding = Padding . ZERO )","body":"public fun offsetSecondsOfMinute ( padding : Padding = Padding . ZERO )","docstring":"/**\n * The second-of-minute of the UTC offset.\n *\n * By default, it's zero-padded to two digits, but this can be changed with [padding].\n *\n * This field has the default value of 0. If you want to omit it, use [optional].\n */"} {"signature":"public fun offset ( format : DateTimeFormat < UtcOffset > )","body":"public fun offset ( format : DateTimeFormat < UtcOffset > )","docstring":"/**\n * An existing [DateTimeFormat] for the UTC offset part.\n *\n * Example:\n * ```\n * offset(UtcOffset.Formats.FOUR_DIGITS)\n * ```\n */"} {"signature":"public fun timeZoneId ( )","body":"public fun timeZoneId ( )","docstring":"/**\n * The IANA time zone identifier, for example, \"Europe/Berlin\".\n *\n * When formatting, the timezone identifier is supplied as is, without any validation.\n * On parsing, [TimeZone.availableZoneIds] is used to validate the identifier.\n */"} {"signature":"public fun dateTimeComponents ( format : DateTimeFormat < DateTimeComponents > )","body":"public fun dateTimeComponents ( format : DateTimeFormat < DateTimeComponents > )","docstring":"/**\n * An existing [DateTimeFormat].\n *\n * Example:\n * ```\n * dateTimeComponents(DateTimeComponents.Formats.RFC_1123)\n * ```\n */"} {"signature":"internal fun DateTimeFormatBuilder . WithTime . secondFractionInternal ( minLength : Int , maxLength : Int , grouping : List < Int > )","body":"{ @ Suppress ( \"\" ) when ( this ) { is AbstractWithTimeBuilder -> addFormatStructureForTime ( BasicFormatStructure ( FractionalSecondDirective ( minLength , maxLength , grouping ) ) ) } }","docstring":"/**\n * The fractional part of the second without the leading dot.\n *\n * When formatting, the decimal fraction will round the number to fit in the specified [maxLength] and will add\n * trailing zeroes to the specified [minLength].\n *\n * Additionally, [grouping] is a list, where the i'th (1-based) element specifies how many trailing zeros to add during\n * formatting when the number would have i digits.\n *\n * When parsing, the parser will require that the fraction is at least [minLength] and at most [maxLength]\n * digits long.\n *\n * This field has the default value of 0. If you want to omit it, use [optional].\n *\n * @throws IllegalArgumentException if [minLength] is greater than [maxLength] or if either is not in the range 1..9.\n */"} {"signature":"@ Suppress ( \"\" ) public fun < T : DateTimeFormatBuilder > T . alternativeParsing ( vararg alternativeFormats : T . ( ) -> Unit , primaryFormat : T . ( ) -> Unit ) : Unit","body":"= when ( this ) { is AbstractDateTimeFormatBuilder < * , * > -> appendAlternativeParsingImpl ( * alternativeFormats as Array < out AbstractDateTimeFormatBuilder < * , * > . ( ) -> Unit > , mainFormat = primaryFormat as ( AbstractDateTimeFormatBuilder < * , * > . ( ) -> Unit ) ) else -> throw IllegalStateException ( \"\" ) }","docstring":"/**\n * A format along with other ways to parse the same portion of the value.\n *\n * When parsing, first, [primaryFormat] is used; if parsing the whole string fails using that, the formats\n * from [alternativeFormats] are tried in order.\n *\n * When formatting, the [primaryFormat] is used to format the value, and [alternativeFormats] are ignored.\n *\n * Example:\n * ```\n * alternativeParsing(\n * { dayOfMonth(); char('-'); monthNumber() },\n * { monthNumber(); char(' '); dayOfMonth() },\n * ) { monthNumber(); char('/'); dayOfMonth() }\n * ```\n *\n * This will always format a date as `MM/DD`, but will also accept `DD-MM` and `MM DD`.\n */"} {"signature":"@ Suppress ( \"\" ) public fun < T : DateTimeFormatBuilder > T . optional ( ifZero : String = \"\" , format : T . ( ) -> Unit ) : Unit","body":"= when ( this ) { is AbstractDateTimeFormatBuilder < * , * > -> appendOptionalImpl ( onZero = ifZero , format as ( AbstractDateTimeFormatBuilder < * , * > . ( ) -> Unit ) ) else -> throw IllegalStateException ( \"\" ) }","docstring":"/**\n * An optional section.\n *\n * When formatting, the section is formatted if the value of any field in the block is not equal to the default value.\n * Only [optional] calls where all the fields have default values are permitted.\n *\n * Example:\n * ```\n * offsetHours(); char(':'); offsetMinutesOfHour()\n * optional { char(':'); offsetSecondsOfMinute() }\n * ```\n *\n * Here, because seconds have the default value of zero, they are formatted only if they are not equal to zero, so the\n * UTC offset `+18:30:00` gets formatted as `\"+18:30\"`, but `+18:30:01` becomes `\"+18:30:01\"`.\n *\n * When parsing, either [format] or, if that fails, the literal [ifZero] are parsed. If the [ifZero] string is parsed,\n * the values in [format] get assigned their default values.\n *\n * [ifZero] defines the string that is used if values are the default ones.\n *\n * @throws IllegalArgumentException if not all fields used in [format] have a default value.\n */"} {"signature":"public fun DateTimeFormatBuilder . char ( value : Char ) : Unit","body":"= chars ( value . toString ( ) )","docstring":"/**\n * A literal character.\n *\n * This is a shorthand for `chars(value.toString())`.\n */"} {"signature":"fun createEmpty ( ) : ActualSelf","body":"fun createEmpty ( ) : ActualSelf","docstring":""} {"signature":"fun appendAlternativeParsingImpl ( vararg otherFormats : ActualSelf . ( ) -> Unit , mainFormat : ActualSelf . ( ) -> Unit )","body":"{ val others = otherFormats . map { block -> createEmpty ( ) . also { block ( it ) } . actualBuilder . build ( ) } val main = createEmpty ( ) . also { mainFormat ( it ) } . actualBuilder . build ( ) actualBuilder . add ( AlternativesParsingFormatStructure ( main , others ) ) }","docstring":""} {"signature":"fun appendOptionalImpl ( onZero : String , format : ActualSelf . ( ) -> Unit )","body":"{ actualBuilder . add ( OptionalFormatStructure ( onZero , createEmpty ( ) . also { format ( it ) } . actualBuilder . build ( ) ) ) }","docstring":""} {"signature":"override fun chars ( value : String )","body":"= actualBuilder . add ( ConstantFormatStructure ( value ) )","docstring":""} {"signature":"fun build ( ) : CachedFormatStructure < Target >","body":"= CachedFormatStructure ( actualBuilder . build ( ) . formats )","docstring":""} {"signature":"internal fun < T > FormatStructure < T > . builderString ( constants : List < Pair < String , CachedFormatStructure < * > > > ) : String","body":"= when ( this ) { is BasicFormatStructure -> directive . builderRepresentation is ConstantFormatStructure -> if ( string . length == ) { \"\" } else { \"\" } is SignedFormatStructure -> { if ( format is BasicFormatStructure && format . directive is UtcOffsetWholeHoursDirective ) { format . directive . builderRepresentation } else { buildString { if ( withPlusSign ) appendLine ( \"\" ) else appendLine ( \"\" ) appendLine ( format . builderString ( constants ) . prependIndent ( CODE_INDENT ) ) append ( \"\" ) } } } is OptionalFormatStructure -> buildString { if ( onZero == \"\" ) { appendLine ( \"\" ) } else { appendLine ( \"\" ) } val subformat = format . builderString ( constants ) if ( subformat . isNotEmpty ( ) ) { appendLine ( subformat . prependIndent ( CODE_INDENT ) ) } append ( \"\" ) } is AlternativesParsingFormatStructure -> buildString { append ( \"\" ) for ( alternative in formats ) { appendLine ( \"\" ) val subformat = alternative . builderString ( constants ) if ( subformat . isNotEmpty ( ) ) { appendLine ( subformat . prependIndent ( CODE_INDENT ) ) } append ( \"\" ) } if ( this [ length - ] == '' ) { repeat ( ) { deleteAt ( length - ) } } appendLine ( \"\" ) appendLine ( mainFormat . builderString ( constants ) . prependIndent ( CODE_INDENT ) ) append ( \"\" ) } is ConcatenatedFormatStructure -> buildString { if ( formats . isNotEmpty ( ) ) { var index = loop @ while ( index < formats . size ) { searchConstant @ for ( constant in constants ) { val constantDirectives = constant . second . formats if ( formats . size - index >= constantDirectives . size ) { for ( i in constantDirectives . indices ) { if ( formats [ index + i ] != constantDirectives [ i ] ) { continue@searchConstant } } append ( constant . first ) index += constantDirectives . size if ( index < formats . size ) { appendLine ( ) } continue@loop } } if ( index == formats . size - ) { append ( formats . last ( ) . builderString ( constants ) ) } else { appendLine ( formats [ index ] . builderString ( constants ) ) } ++ index } } } }","docstring":""} {"signature":"fun result ( ) : Result < Int >","body":"= TODO ( )","docstring":""} {"signature":"internal fun isEmpty ( ) : Boolean","body":"= color == null && width == null && radius == null","docstring":""} {"signature":"internal fun isNotEmpty ( ) : Boolean","body":"= ! isEmpty ( )","docstring":""} {"signature":"override fun createPointer ( ) : KtSymbolPointer < KtEnumEntrySymbol >","body":"= withValidityAssertion { KtPsiBasedSymbolPointer . createForSymbolFromSource < KtEnumEntrySymbol > ( this ) ? . let { return it } val enumClassId = enumDescriptor . classId if ( enumClassId != null ) { return KtFe10DescEnumEntrySymbolPointer ( enumClassId , descriptor . name ) } return KtFe10NeverRestoringSymbolPointer ( ) }","docstring":""} {"signature":"override fun equals ( other : Any ? ) : Boolean","body":"= isEqualTo ( other )","docstring":""} {"signature":"override fun hashCode ( ) : Int","body":"= calculateHashCode ( )","docstring":""} {"signature":"private fun linkJsNames ( )","body":"{ val nameMap = mutableMapOf < String , JsName > ( ) fragments . forEach { f -> f . buildRenames ( nameMap ) . run { rename ( f . declarations ) rename ( f . exports ) f . imports . entries . forEach { ( declaration , importStatement ) -> val importName = nameMap [ declaration ] if ( importName == null && ! isEsModules ) { error ( \"\" ) } importStatements . putIfAbsent ( declaration , rename ( importStatement . importStatementWithName ( importName ) ) ) } val classModels = ( mutableMapOf < JsName , JsIrIcClassModel > ( ) + f . classes ) . also { f . classes . clear ( ) } classModels . entries . forEach { ( name , model ) -> f . classes [ rename ( name ) ] = JsIrIcClassModel ( model . superClasses . map { rename ( it ) } ) . also { it . preDeclarationBlock . statements += model . preDeclarationBlock . statements it . postDeclarationBlock . statements += model . postDeclarationBlock . statements rename ( it . preDeclarationBlock ) rename ( it . postDeclarationBlock ) } } rename ( f . initializers ) rename ( f . eagerInitializers ) } } for ( ( tag , crossModuleJsImport ) in crossModuleReferences . jsImports ) { val importName = nameMap [ tag ] ? : error ( \"\" ) importStatements . putIfAbsent ( tag , crossModuleJsImport . renameImportedSymbolInternalName ( importName ) ) } importStatementsWithEffect . addAll ( crossModuleReferences . jsImportsWithEffect ) if ( crossModuleReferences . exports . isNotEmpty ( ) ) { val internalModuleName = ReservedJsNames . makeInternalModuleName ( ) if ( isEsModules ) { val exportedElements = crossModuleReferences . exports . entries . map { ( tag , hash ) -> val internalName = nameMap [ tag ] ? : error ( \"\" ) JsExport . Element ( internalName . makeRef ( ) , JsName ( hash , false ) ) } additionalExports += JsExport ( JsExport . Subject . Elements ( exportedElements ) ) } else { val createExportBlock = jsAssignment ( ReservedJsNames . makeCrossModuleNameRef ( internalModuleName ) , JsAstUtils . or ( ReservedJsNames . makeCrossModuleNameRef ( internalModuleName ) , JsObjectLiteral ( ) ) ) . makeStmt ( ) additionalExports += createExportBlock crossModuleReferences . exports . entries . forEach { ( tag , hash ) -> val internalName = nameMap [ tag ] ? : error ( \"\" ) val crossModuleRef = ReservedJsNames . makeCrossModuleNameRef ( ReservedJsNames . makeInternalModuleName ( ) ) additionalExports += jsAssignment ( JsNameRef ( hash , crossModuleRef ) , JsNameRef ( internalName ) ) . makeStmt ( ) } } } }","docstring":""} {"signature":"private fun JsIrProgramFragment . buildRenames ( nameMap : MutableMap < String , JsName > ) : Map < JsName , JsName >","body":"{ val result = mutableMapOf < JsName , JsName > ( ) this . importedModules . forEach { module -> val existingModule = importedModulesMap . getOrPut ( module . key ) { module } if ( existingModule !== module ) { result [ module . internalName ] = existingModule . internalName } } this . nameBindings . entries . forEach { ( tag , name ) -> val existingName = nameMap . getOrPut ( tag ) { name } if ( existingName !== name ) { result [ name ] = existingName } } return result }","docstring":""} {"signature":"private fun Map < JsName , JsName > . rename ( name : JsName ) : JsName","body":"= getOrElse ( name ) { name }","docstring":""} {"signature":"private fun < T : JsNode > Map < JsName , JsName > . rename ( rootNode : T ) : T","body":"{ rootNode . accept ( object : RecursiveJsVisitor ( ) { override fun visitElement ( node : JsNode ) { super . visitElement ( node ) if ( node is HasName ) { node . name = node . name ? . let { rename ( it ) } } } } ) return rootNode }","docstring":""} {"signature":"private fun assertSingleDefinition ( )","body":"{ val definitions = mutableSetOf < String > ( ) fragments . forEach { it . definitions . forEach { if ( ! definitions . add ( it ) ) { error ( \"\" ) } } } }","docstring":""} {"signature":"private fun declareAndCallJsExporter ( ) : List < JsStatement >","body":"{ if ( isEsModules ) { val allExportRelatedStatements = fragments . flatMap { it . exports . statements } val ( allExportStatements , restStatements ) = allExportRelatedStatements . partitionIsInstance < JsStatement , JsExport > ( ) val ( currentModuleExportStatements , restExportStatements ) = allExportStatements . partition { it . fromModule == null } val exportedElements = currentModuleExportStatements . takeIf { it . isNotEmpty ( ) } ? . asSequence ( ) ? . flatMap { ( it . subject as JsExport . Subject . Elements ) . elements } ? . distinctBy { it . alias ? . ident ? : it . name . ident } ? . toList ( ) val oneLargeExportStatement = exportedElements ? . let { JsExport ( JsExport . Subject . Elements ( it ) ) } return restStatements + listOfNotNull ( oneLargeExportStatement ) + restExportStatements } else { val exportBody = JsBlock ( fragments . flatMap { it . exports . statements } ) if ( exportBody . isEmpty ) { return emptyList ( ) } val internalModuleName = ReservedJsNames . makeInternalModuleName ( ) val exporterName = ReservedJsNames . makeJsExporterName ( ) val jsExporterFunction = JsFunction ( emptyScope , \"\" ) . apply { body = exportBody name = exporterName parameters . add ( JsParameter ( internalModuleName ) ) } val jsExporterCall = JsInvocation ( exporterName . makeRef ( ) , internalModuleName . makeRef ( ) ) val result = mutableListOf ( jsExporterFunction . makeStmt ( ) , jsExporterCall . makeStmt ( ) ) if ( ! generateCallToMain ) { val exportExporter = jsAssignment ( JsNameRef ( exporterName , internalModuleName . makeRef ( ) ) , exporterName . makeRef ( ) ) result += exportExporter . makeStmt ( ) } return result } }","docstring":""} {"signature":"private fun transitiveJsExport ( ) : List < JsStatement >","body":"{ return if ( isEsModules ) { crossModuleReferences . transitiveExportFrom . map { JsExport ( JsExport . Subject . All , it . getRequireEsmName ( ) ) } } else { val internalModuleName = ReservedJsNames . makeInternalModuleName ( ) val exporterName = ReservedJsNames . makeJsExporterName ( ) crossModuleReferences . transitiveExportFrom . map { JsInvocation ( JsNameRef ( exporterName , it . internalName . makeRef ( ) ) , internalModuleName . makeRef ( ) ) . makeStmt ( ) } } }","docstring":""} {"signature":"fun merge ( ) : JsProgram","body":"{ assertSingleDefinition ( ) linkJsNames ( ) val moduleBody = mutableListOf < JsStatement > ( ) val preDeclarationBlock = JsCompositeBlock ( ) val postDeclarationBlock = JsCompositeBlock ( ) val polyfillDeclarationBlock = JsCompositeBlock ( ) moduleBody . addWithComment ( \"\" , preDeclarationBlock ) val classModels = mutableMapOf < JsName , JsIrIcClassModel > ( ) val initializerBlock = JsCompositeBlock ( ) fragments . forEach { moduleBody += it . declarations . statements classModels += it . classes initializerBlock . statements += it . initializers . statements + it . eagerInitializers . statements polyfillDeclarationBlock . statements += it . polyfills . statements } processClassModels ( classModels , preDeclarationBlock , postDeclarationBlock ) moduleBody . addWithComment ( \"\" , postDeclarationBlock . statements ) moduleBody . addWithComment ( \"\" , initializerBlock . statements ) JsTestFunctionTransformer . generateTestFunctionCall ( fragments . asTestFunctionContainers ( ) ) ? . let { moduleBody . startRegion ( \"\" ) moduleBody += it . makeStmt ( ) moduleBody . endRegion ( ) } val fragmentWithMainFunction = JsMainFunctionDetector . pickMainFunctionFromCandidates ( fragments ) { JsMainFunctionDetector . MainFunctionCandidate ( it . packageFqn , it . mainFunctionTag ) } val exportStatements = declareAndCallJsExporter ( ) + additionalExports + transitiveJsExport ( ) val importedJsModules = this . importedModulesMap . values . toList ( ) + this . crossModuleReferences . importedModules val importStatements = this . importStatements . values . toList ( ) + this . importStatementsWithEffect . toList ( ) val program = JsProgram ( ) val internalModuleName = ReservedJsNames . makeInternalModuleName ( ) val rootFunction = JsFunction ( program . rootScope , JsBlock ( ) , \"\" ) . apply { parameters += JsParameter ( internalModuleName ) parameters += ( importedJsModules ) . map { JsParameter ( it . internalName ) } with ( body ) { if ( ! isEsModules ) { statements += JsStringLiteral ( \"\" ) . makeStmt ( ) } statements . addWithComment ( \"\" , importStatements ) statements += moduleBody statements . addWithComment ( \"\" , exportStatements ) if ( generateCallToMain && fragmentWithMainFunction != null ) { val mainFunctionTag = fragmentWithMainFunction . mainFunctionTag ? : error ( \"\" ) val mainFunctionName = fragmentWithMainFunction . nameBindings [ mainFunctionTag ] ? : error ( \"\" ) statements += JsInvocation ( mainFunctionName . makeRef ( ) ) . makeStmt ( ) } this . statements += JsReturn ( internalModuleName . makeRef ( ) ) } } polyfillDeclarationBlock . statements . takeIf { it . isNotEmpty ( ) } ? . let { program . globalBlock . statements . addWithComment ( \"\" , it ) } program . globalBlock . statements += ModuleWrapperTranslation . wrap ( moduleName , rootFunction , importedJsModules , program , kind = moduleKind ) return program }","docstring":""} {"signature":"private fun processClassModels ( classModelMap : Map < JsName , JsIrIcClassModel > , preDeclarationBlock : JsBlock , postDeclarationBlock : JsBlock )","body":"{ val declarationHandler = object : DFS . AbstractNodeHandler < JsName , Unit > ( ) { override fun result ( ) { } override fun afterChildren ( current : JsName ) { classModelMap [ current ] ? . let { preDeclarationBlock . statements += it . preDeclarationBlock . statements postDeclarationBlock . statements += it . postDeclarationBlock . statements } } } DFS . dfs ( classModelMap . keys , { classModelMap [ it ] ? . superClasses ? : emptyList ( ) } , declarationHandler ) }","docstring":""} {"signature":"private fun MutableList < JsStatement > . startRegion ( description : String = \"\" )","body":"{ if ( generateRegionComments ) { this += JsSingleLineComment ( \"\" ) } }","docstring":""} {"signature":"private fun MutableList < JsStatement > . endRegion ( )","body":"{ if ( generateRegionComments ) { this += JsSingleLineComment ( \"\" ) } }","docstring":""} {"signature":"private fun MutableList < JsStatement > . addWithComment ( regionDescription : String = \"\" , block : JsBlock )","body":"{ startRegion ( regionDescription ) this += block endRegion ( ) }","docstring":""} {"signature":"private fun MutableList < JsStatement > . addWithComment ( regionDescription : String = \"\" , statements : List < JsStatement > )","body":"{ if ( statements . isEmpty ( ) ) return startRegion ( regionDescription ) this += statements endRegion ( ) }","docstring":""} {"signature":"private fun JsStatement . importStatementWithName ( name : JsName ? ) : JsStatement","body":"{ if ( name == null ) return this return when ( this ) { is JsVars -> JsVars ( JsVars . JsVar ( name , vars . single ( ) . initExpression ) ) is JsImport -> JsImport ( module , when ( target ) { is JsImport . Target . Effect -> JsImport . Target . Effect is JsImport . Target . All -> JsImport . Target . All ( alias = name . makeRef ( ) ) is JsImport . Target . Default -> JsImport . Target . Default ( name = name . makeRef ( ) ) is JsImport . Target . Elements -> JsImport . Target . Elements ( mutableListOf ( JsImport . Element ( elements . single ( ) . name , name . makeRef ( ) ) ) ) } ) is JsCompositeBlock -> JsCompositeBlock ( statements . dropLast ( ) + statements . last ( ) . importStatementWithName ( name ) ) else -> error ( \"\" ) } }","docstring":""} {"signature":"fun List < JsIrModule > . merge ( ) : JsIrModule","body":"{ assert ( isNotEmpty ( ) ) { \"\" } val firstModule = first ( ) return if ( size == ) { firstModule } else { val fragments = mutableListOf < JsIrProgramFragment > ( ) var reexportedInModuleWithName : String ? = null for ( module in this ) { fragments . addAll ( module . fragments ) module . reexportedInModuleWithName ? . let { reexportedInModuleWithName = it } } JsIrModule ( firstModule . moduleName , firstModule . externalModuleName , fragments , reexportedInModuleWithName ) } }","docstring":""} {"signature":"fun List < JsIrModuleHeader > . merge ( ) : JsIrModuleHeader","body":"{ assert ( isNotEmpty ( ) ) { \"\" } val firstModule = first ( ) return if ( size == ) { firstModule } else { val definitions = mutableSetOf < String > ( ) val nameBindings = mutableMapOf < String , String > ( ) val optionalCrossModuleImports = mutableSetOf < String > ( ) var reexportedInModuleWithName : String ? = null var importedWithEffectInModuleWithName : String ? = null for ( header in this ) { definitions . addAll ( header . definitions ) nameBindings . putAll ( header . nameBindings ) optionalCrossModuleImports . addAll ( header . optionalCrossModuleImports ) header . reexportedInModuleWithName ? . let { reexportedInModuleWithName = it } header . importedWithEffectInModuleWithName ? . let { importedWithEffectInModuleWithName = it } } JsIrModuleHeader ( firstModule . moduleName , firstModule . externalModuleName , definitions , nameBindings , optionalCrossModuleImports , reexportedInModuleWithName , importedWithEffectInModuleWithName , null ) } }","docstring":""} {"signature":"@ GCUnsafeCall ( \"\" ) private external fun kotlin_ObjCExport_ExceptionDetails ( nativeException : Any ) : String ?","body":"@ GCUnsafeCall ( \"\" ) private external fun kotlin_ObjCExport_ExceptionDetails ( nativeException : Any ) : String ?","docstring":""} {"signature":"@ ExportForCppRuntime @ BetaInteropApi @ ExperimentalForeignApi internal fun CreateForeignException ( payload : NativePtr ) : Throwable ","body":"= ForeignException ( interpretObjCPointerOrNull < Any ? > ( payload ) )","docstring":""} {"signature":"fun box ( ) : String","body":"{ val plusK = Class . forName ( \"\" ) . kotlinPackage . getMemberByName ( \"\" ) as KProperty1 < String , String > return plusK . getter . callBy ( mapOf ( plusK . parameters [ ] to \"\" ) ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ assertEquals ( , arrayOf ( , ) [ fizz ( ) + buzz ( ) ] ) assertEquals ( \"\" , pullLog ( ) ) return \"\" }","docstring":""} {"signature":"override fun decodeElementIndex ( descriptor : SerialDescriptor ) : Int","body":"= ","docstring":""} {"signature":"@ Test fun testJsonDecodingException ( )","body":"= checkRecovered ( \"\" ) { Json . decodeFromString < String > ( \"\" ) }","docstring":""} {"signature":"@ Test fun testJsonEncodingException ( )","body":"= checkRecovered ( \"\" ) { Json . encodeToString ( Double . NaN ) }","docstring":""} {"signature":"@ Test fun testUnknownFieldException ( )","body":"= checkRecovered ( \"\" ) { val serializer = Data . serializer ( ) serializer . deserialize ( BadDecoder ( ) ) }","docstring":""} {"signature":"private fun checkRecovered ( exceptionClassSimpleName : String , block : ( ) -> Unit )","body":"= runBlocking { val result = runCatching { callBlockWithRecovery ( block ) } assertTrue ( result . isFailure , \"\" ) val e = result . exceptionOrNull ( ) ! ! assertEquals ( exceptionClassSimpleName , e :: class . simpleName ! ! ) val cause = e . cause assertNotNull ( cause , \"\" ) assertEquals ( e . message , cause . message ) assertEquals ( exceptionClassSimpleName , e :: class . simpleName ! ! ) }","docstring":""} {"signature":"private suspend fun callBlockWithRecovery ( block : ( ) -> Unit )","body":"{ yield ( ) withContext ( NonCancellable ) { block ( ) } }","docstring":""} {"signature":"fun box ( ) : String","body":"{ assertEquals ( \"\" , C :: arrayOfInt . annotations . filterIsInstance < ArrayOfInt > ( ) . map { it . ints . single ( ) } . toString ( ) ) assertEquals ( \"\" , C :: arrayOfString . annotations . filterIsInstance < ArrayOfString > ( ) . map { it . strings . single ( ) } . toString ( ) ) assertEquals ( \"\" , C :: arrayOfEnum . annotations . filterIsInstance < ArrayOfEnum > ( ) . map { it . enums . single ( ) } . toString ( ) ) assertEquals ( \"\" , C :: arrayOfAnnotation . annotations . filterIsInstance < ArrayOfAnnotation > ( ) . map { it . annotations . single ( ) . strings . single ( ) } . toString ( ) ) return \"\" }","docstring":""} {"signature":"suspend fun suspendHere ( ) : String","body":"= suspendCoroutineUninterceptedOrReturn { x -> x . resume ( ( i ++ ) . toString ( ) ) COROUTINE_SUSPENDED }","docstring":""} {"signature":"fun builder ( c : suspend Controller . ( ) -> Unit )","body":"{ c . startCoroutine ( Controller ( ) , EmptyContinuation ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ var result = \"\" builder { result += \"\" result += suspendHere ( ) if ( result == \"\" ) { builder { result += \"\" result += suspendHere ( ) result += suspendHere ( ) result += \"\" } result += suspendHere ( ) result += \"\" } } if ( result != \"\" ) return \"\" return \"\" }","docstring":""} {"signature":"override fun getForeignValues ( codeFragment : KtCodeFragment ) : Map < String , String >","body":"{ return codeFragment . getUserData ( FOREIGN_VALUES_KEY ) ? : emptyMap ( ) }","docstring":""} {"signature":"fun submitForeignValues ( codeFragment : KtCodeFragment , values : List < TestForeignValue > )","body":"{ require ( codeFragment . getUserData ( FOREIGN_VALUES_KEY ) == null ) val map = values . map { Pair ( it . name , it . internalType ) } . toMap ( ) codeFragment . putUserData ( FOREIGN_VALUES_KEY , map ) }","docstring":""} {"signature":"override fun check ( rttiInformation : RttiExpressionInformation , reportOn : PsiElement , trace : BindingTrace )","body":"{ val sourceType = rttiInformation . sourceType val targetType = rttiInformation . targetType val targetDescriptor = targetType ? . constructor ? . declarationDescriptor if ( sourceType != null && targetDescriptor is ClassDescriptor ) { val kind = targetDescriptor . getForwardDeclarationKindOrNull ( ) ? : return when ( rttiInformation . operation ) { RttiOperation . IS , RttiOperation . NOT_IS -> trace . report ( ErrorsNative . CANNOT_CHECK_FOR_FORWARD_DECLARATION . on ( reportOn , targetType ) ) RttiOperation . AS , RttiOperation . SAFE_AS -> { val sourceDescriptor = sourceType . constructor . declarationDescriptor as? ClassDescriptor val isAllowedCast = sourceDescriptor != null && sourceDescriptor . name == targetDescriptor . name && sourceDescriptor . kind == kind . classKind && sourceDescriptor . getAllSuperClassifiers ( ) . any { it . fqNameSafe == kind . matchSuperClassFqName } if ( ! isAllowedCast ) { trace . report ( ErrorsNative . UNCHECKED_CAST_TO_FORWARD_DECLARATION . on ( reportOn , sourceType , targetType ) ) } } } } }","docstring":""} {"signature":"override fun check ( expression : KtClassLiteralExpression , type : KotlinType , context : ResolutionContext < * > )","body":"{ val descriptor = type . constructor . declarationDescriptor as? ClassDescriptor if ( descriptor ? . getForwardDeclarationKindOrNull ( ) != null ) { context . trace . report ( ErrorsNative . FORWARD_DECLARATION_AS_CLASS_LITERAL . on ( expression , type ) ) } }","docstring":""} {"signature":"override fun hasNext ( ) : Boolean","body":"= TODO ( )","docstring":""} {"signature":"override fun next ( ) : E","body":"= TODO ( )","docstring":""} {"signature":"override fun contains ( element : E ) : Boolean","body":"= TODO ( )","docstring":""} {"signature":"override fun containsAll ( elements : Collection < E > ) : Boolean","body":"= TODO ( )","docstring":""} {"signature":"override fun isEmpty ( ) : Boolean","body":"= TODO ( )","docstring":""} {"signature":"override fun iterator ( )","body":"= MyIterator < E > ( )","docstring":""} {"signature":"fun generate ( )","body":"fun generate ( )","docstring":""} {"signature":"fun generateClassOrObject ( classOrObject : KtClassOrObject , packagePartContext : FieldOwnerContext < PackageFragmentDescriptor > )","body":"fun generateClassOrObject ( classOrObject : KtClassOrObject , packagePartContext : FieldOwnerContext < PackageFragmentDescriptor > )","docstring":""} {"signature":"private fun getDeserializedCallables ( compiledPackageFragment : PackageFragmentDescriptor )","body":"= compiledPackageFragment . getMemberScope ( ) . getContributedDescriptors ( DescriptorKindFilter . CALLABLES , MemberScope . ALL_NAME_FILTER ) . filterIsInstance < DeserializedCallableMemberDescriptor > ( )","docstring":""} {"signature":"private fun getSuperClassForPart ( partInternalName : String )","body":"= if ( shouldGeneratePartHierarchy ) superClassForInheritedPart [ partInternalName ] ? : J_L_OBJECT else J_L_OBJECT","docstring":""} {"signature":"private fun KtFile . isJvmSynthetic ( ) : Boolean","body":"{ return annotationEntries . any { entry -> val descriptor = state . bindingContext [ BindingContext . ANNOTATION , entry ] descriptor ? . annotationClass ? . let ( DescriptorUtils :: getFqNameSafe ) == JVM_SYNTHETIC_ANNOTATION_FQ_NAME } }","docstring":""} {"signature":"override fun generate ( )","body":"{ assert ( delegateGenerationTasks . isEmpty ( ) ) { \"\" } generateCodeForSourceFiles ( ) generateDelegatesToPreviouslyCompiledParts ( ) if ( partInternalNamesSorted . isNotEmpty ( ) ) { generateMultifileFacadeClass ( ) } done ( ) }","docstring":""} {"signature":"private fun generateCodeForSourceFiles ( )","body":"{ for ( file in files ) { ProgressIndicatorAndCompilationCanceledStatus . checkCanceled ( ) try { generatePart ( file ) state . afterIndependentPart ( ) } catch ( e : ProcessCanceledException ) { throw e } catch ( e : Throwable ) { CodegenUtil . reportBackendException ( e , \"\" , file . virtualFile ? . url ) } } }","docstring":""} {"signature":"private fun generateMultifileFacadeClass ( )","body":"{ for ( member in delegateGenerationTasks . keys . sortedWith ( MemberComparator . INSTANCE ) ) { delegateGenerationTasks [ member ] ! ! ( ) } writeKotlinMultifileFacadeAnnotationIfNeeded ( ) }","docstring":""} {"signature":"override fun generateClassOrObject ( classOrObject : KtClassOrObject , packagePartContext : FieldOwnerContext < PackageFragmentDescriptor > )","body":"{ MemberCodegen . genClassOrObject ( packagePartContext , classOrObject , state , null ) }","docstring":""} {"signature":"private fun generatePart ( file : KtFile )","body":"{ val packageFragment = this . packageFragment ? : throw AssertionError ( \"\" ) val partType = Type . getObjectType ( JvmFileClassUtil . getFileClassInternalName ( file ) ) val partContext = state . rootContext . intoMultifileClassPart ( packageFragment , facadeClassType , partType , file ) PackageCodegenImpl . generateClassesAndObjectsInFile ( file , partContext , state ) if ( ! state . generateDeclaredClassFilter . shouldGeneratePackagePart ( file ) || ! file . hasDeclarationsForPartClass ( ) ) return state . factory . packagePartRegistry . addPart ( packageFragment . fqName , partType . internalName , facadeClassType . internalName ) val builder = state . factory . newVisitor ( MultifileClassPart ( file , packageFragment ) , partType , file ) MultifileClassPartCodegen ( builder , file , packageFragment , getSuperClassForPart ( partType . internalName ) , shouldGeneratePartHierarchy , partContext , state ) . generate ( ) addDelegateGenerationTasksForDeclarationsInFile ( file , packageFragment , partType ) }","docstring":""} {"signature":"private fun addDelegateGenerationTasksForDeclarationsInFile ( file : KtFile , packageFragment : PackageFragmentDescriptor , partType : Type )","body":"{ val facadeContext = state . rootContext . intoMultifileClass ( packageFragment , facadeClassType , partType ) val memberCodegen = createCodegenForDelegatesInMultifileFacade ( facadeContext ) for ( declaration in CodegenUtil . getMemberDeclarationsToGenerate ( file ) ) { if ( declaration is KtTypeAlias && ! state . classBuilderMode . generateMetadata ) continue val descriptor = state . bindingContext . get ( BindingContext . DECLARATION_TO_DESCRIPTOR , declaration ) if ( descriptor !is MemberDescriptor ) { throw AssertionError ( \"\" + descriptor + \"\" + declaration . text ) } addDelegateGenerationTaskIfNeeded ( descriptor ) { memberCodegen . genSimpleMember ( declaration ) } } }","docstring":""} {"signature":"private fun shouldGenerateInFacade ( descriptor : MemberDescriptor ) : Boolean","body":"{ if ( DescriptorVisibilities . isPrivate ( descriptor . visibility ) ) return false if ( DescriptorAsmUtil . getVisibilityAccessFlag ( descriptor ) == Opcodes . ACC_PRIVATE ) return false if ( ! state . classBuilderMode . generateBodies ) return true if ( shouldGeneratePartHierarchy ) { if ( descriptor !is PropertyDescriptor || ! descriptor . isConst ) return false } return true }","docstring":""} {"signature":"private fun addDelegateGenerationTaskIfNeeded ( callable : MemberDescriptor , task : ( ) -> Unit )","body":"{ if ( shouldGenerateInFacade ( callable ) ) { delegateGenerationTasks [ callable ] = task } }","docstring":""} {"signature":"private fun generateDelegatesToPreviouslyCompiledParts ( )","body":"{ if ( compiledPackageFragment == null ) return for ( callable in previouslyCompiledCallables ) { val partFqName = JvmFileClassUtil . getPartFqNameForDeserialized ( callable ) val partType = AsmUtil . asmTypeByFqNameWithoutInnerClasses ( partFqName ) addDelegateGenerationTaskIfNeeded ( callable ) { generateDelegateToCompiledMember ( callable , compiledPackageFragment , partType ) } } }","docstring":""} {"signature":"private fun generateDelegateToCompiledMember ( member : CallableMemberDescriptor , compiledPackageFragment : PackageFragmentDescriptor , partType : Type )","body":"{ val context = state . rootContext . intoMultifileClass ( compiledPackageFragment , facadeClassType , partType ) val memberCodegen = createCodegenForDelegatesInMultifileFacade ( context ) when ( member ) { is DeserializedSimpleFunctionDescriptor -> { memberCodegen . functionCodegen . generateMethod ( OtherOrigin ( member ) , member , DelegateToCompiledMemberGenerationStrategy ) memberCodegen . functionCodegen . generateDefaultIfNeeded ( context . intoFunction ( member ) , member , OwnerKind . PACKAGE , DefaultParameterValueLoader . DEFAULT , null ) memberCodegen . functionCodegen . generateOverloadsWithDefaultValues ( null , member , member ) } is DeserializedPropertyDescriptor -> { memberCodegen . propertyCodegen . generateInPackageFacade ( member ) } else -> { throw IllegalStateException ( \"\" ) } } }","docstring":""} {"signature":"override fun skipNotNullAssertionsForParameters ( ) : Boolean","body":"{ throw IllegalStateException ( \"\" ) }","docstring":""} {"signature":"override fun generateBody ( mv : MethodVisitor , frameMap : FrameMap , signature : JvmMethodSignature , context : MethodContext , parentCodegen : MemberCodegen < * > )","body":"{ throw IllegalStateException ( \"\" ) }","docstring":""} {"signature":"private fun writeKotlinMultifileFacadeAnnotationIfNeeded ( )","body":"{ if ( ! state . classBuilderMode . generateMetadata ) { classBuilder . ensureGenerated ( ) return } if ( files . any { it . isScript ( ) } ) return val extraFlags = if ( shouldGeneratePartHierarchy ) JvmAnnotationNames . METADATA_MULTIFILE_PARTS_INHERIT_FLAG else val kotlinPackageFqName = packageFragment ? . fqName ? : compiledPackageFragment ? . fqName ? : error ( \"\" ) if ( files . any { it . packageFqName != kotlinPackageFqName } ) throw UnsupportedOperationException ( \"\" + files . joinToString ( \"\" ) { file -> \"\" } ) writeMetadata ( classBuilder , state , extraFlags , partInternalNamesSorted , facadeClassType , kotlinPackageFqName ) }","docstring":""} {"signature":"private fun createCodegenForDelegatesInMultifileFacade ( facadeContext : FieldOwnerContext < * > ) : MemberCodegen < KtFile >","body":"= object : MemberCodegen < KtFile > ( state , null , facadeContext , null , classBuilder ) { override fun generateDeclaration ( ) = throw UnsupportedOperationException ( ) override fun generateBody ( ) = throw UnsupportedOperationException ( ) override fun generateKotlinMetadataAnnotation ( ) = throw UnsupportedOperationException ( ) }","docstring":""} {"signature":"private fun done ( )","body":"{ classBuilder . done ( state . config . generateSmapCopyToAnnotation ) if ( classBuilder . isComputed ) { state . afterIndependentPart ( ) } }","docstring":""} {"signature":"private fun getOnlyPackageFragment ( files : Collection < KtFile > , moduleDescriptor : ModuleDescriptor ) : PackageFragmentDescriptor ?","body":"{ val fragments = files . mapTo ( linkedSetOf ( ) ) { file -> moduleDescriptor . findPackageFragmentForFile ( file ) ? : throw AssertionError ( \"\" + file + \"\" + file . text ) } if ( fragments . size > ) { throw IllegalStateException ( \"\" ) } return fragments . firstOrNull ( ) }","docstring":""} {"signature":"private fun KtFile . hasDeclarationsForPartClass ( )","body":"= CodegenUtil . getMemberDeclarationsToGenerate ( this ) . isNotEmpty ( )","docstring":""} {"signature":"private fun getCompiledPackageFragment ( facadeFqName : FqName , state : GenerationState ) : IncrementalPackageFragmentProvider . IncrementalMultifileClassPackageFragment ?","body":"{ if ( ! state . isIncrementalCompilation ) return null val packageFqName = facadeFqName . parent ( ) val incrementalPackageFragment = state . module . getPackage ( packageFqName ) . fragments . firstOrNull { fragment -> fragment is IncrementalPackageFragmentProvider . IncrementalPackageFragment && fragment . target == state . targetId } as IncrementalPackageFragmentProvider . IncrementalPackageFragment ? return incrementalPackageFragment ? . getPackageFragmentForMultifileClass ( facadeFqName ) }","docstring":""} {"signature":"fun writeMetadata ( classBuilder : ClassBuilder , state : GenerationState , flags : Int , partInternalNames : List < String > , facadeClassType : Type , kotlinPackageFqName : FqName )","body":"{ writeKotlinMetadata ( classBuilder , state . config , KotlinClassHeader . Kind . MULTIFILE_CLASS , false , flags ) { av -> val arv = av . visitArray ( JvmAnnotationNames . METADATA_DATA_FIELD_NAME ) for ( internalName in partInternalNames ) { arv . visit ( null , internalName ) } arv . visitEnd ( ) if ( kotlinPackageFqName != JvmClassName . byInternalName ( facadeClassType . internalName ) . packageFqName ) { av . visit ( JvmAnnotationNames . METADATA_PACKAGE_NAME_FIELD_NAME , kotlinPackageFqName . asString ( ) ) } } }","docstring":""} {"signature":"override fun lowerTypeValueModel ( ownerContext : NodeOwner < TypeValueModel > ) : TypeValueModel","body":"{ val type = super . lowerTypeValueModel ( ownerContext ) if ( type . value . isGenerated ( ) ) { usedTypes += type . value } return type }","docstring":""} {"signature":"fun isUnused ( name : NameEntity ) : Boolean","body":"{ return ! usedTypes . contains ( name ) }","docstring":""} {"signature":"override fun lowerRoot ( moduleModel : ModuleModel , ownerContext : NodeOwner < ModuleModel > ) : ModuleModel","body":"{ return moduleModel . copy ( declarations = moduleModel . declarations . filterNot { it is InterfaceModel && it . name . isGenerated ( ) && collector . isUnused ( it . name ) } ) }","docstring":""} {"signature":"override fun lower ( source : SourceSetModel ) : SourceSetModel","body":"{ collector = GeneratedInterfaceReferenceCollector ( ) collector . lower ( source ) return super . lower ( source ) }","docstring":""} {"signature":"fun test ( ) : String","body":"{ bar = \"\" return bar }","docstring":""} {"signature":"override fun equals ( other : Any ? ) : Boolean","body":"{ if ( this === other ) return true if ( other == null || this :: class . java != other :: class . java ) return false val bound = other as Bound if ( typeVariable != bound . typeVariable ) return false if ( constrainingType != bound . constrainingType ) return false if ( kind != bound . kind ) return false if ( position . isStrong ( ) != bound . position . isStrong ( ) ) return false return true }","docstring":""} {"signature":"override fun hashCode ( ) : Int","body":"{ var result = typeVariable . hashCode ( ) result = * result + constrainingType . hashCode ( ) result = * result + kind . hashCode ( ) result = * result + if ( position . isStrong ( ) ) else return result }","docstring":""} {"signature":"override fun toString ( )","body":"= \"\"","docstring":""} {"signature":"fun BoundKind . reverse ( )","body":"= when ( this ) { LOWER_BOUND -> UPPER_BOUND UPPER_BOUND -> LOWER_BOUND EXACT_BOUND -> EXACT_BOUND }","docstring":""} {"signature":"override fun isAcceptable ( element : Any ? , context : PsiElement ? ) : Boolean","body":"{ if ( element == null ) return false return getTextByElement ( element ) == value }","docstring":""} {"signature":"override fun isClassAcceptable ( hintClass : Class < * > ) : Boolean","body":"= true","docstring":""} {"signature":"private fun getTextByElement ( element : Any ) : String ?","body":"{ return when ( element ) { is PsiType -> element . presentableText is PsiNamedElement -> element . name is PsiElement -> element . text else -> null } }","docstring":""} {"signature":"override fun isAcceptable ( element : Any ? , context : PsiElement ? ) : Boolean","body":"{ if ( element !is PsiElement ) return false val previous = FilterPositionUtil . searchNonSpaceNonCommentBack ( element ) return if ( previous != null ) getFilter ( ) . isAcceptable ( previous , context ) else false }","docstring":""} {"signature":"internal fun Color . toEchartsColor ( ) : EchartsColor","body":"= when ( this ) { is StandardColor -> BaseColor ( this . description ) is LinearGradient -> LinearGradientColor ( x , y , x2 , y2 , colorStops ) is RadialGradient -> RadialGradientColor ( x , y , r , colorStops ) else -> BaseColor ( this . toString ( ) ) }","docstring":""} {"signature":"fun main ( )","body":"{ println ( \"\" ) }","docstring":""} {"signature":"private fun FirExpression . canBeConsideredProperExpression ( ) : Boolean","body":"{ return when { this is FirQualifiedAccessExpression && explicitReceiver ? . canBeConsideredProperExpression ( ) != true -> false else -> true } }","docstring":""} {"signature":"private fun FirExpression . canBeConsideredProperType ( ) : Boolean","body":"{ return when { this is FirFunctionCall && explicitReceiver ? . canBeConsideredProperType ( ) != false -> false this is FirQualifiedAccessExpression && explicitReceiver ? . canBeConsideredProperType ( ) != false && calleeReference is FirNamedReference -> true this is FirResolvedQualifier -> true else -> false } }","docstring":""} {"signature":"private fun shouldTryResolveLHSAsExpression ( expression : FirCallableReferenceAccess ) : Boolean","body":"{ val lhs = expression . explicitReceiver ? : return false return lhs . canBeConsideredProperExpression ( ) && ! expression . hasQuestionMarkAtLHS }","docstring":""} {"signature":"private fun shouldTryResolveLHSAsType ( expression : FirCallableReferenceAccess ) : Boolean","body":"{ val lhs = expression . explicitReceiver return lhs != null && lhs . canBeConsideredProperType ( ) }","docstring":""} {"signature":"internal fun resolveDoubleColonLHS ( doubleColonExpression : FirCallableReferenceAccess ) : DoubleColonLHS ?","body":"{ val resultForExpr = tryResolveLHS ( doubleColonExpression , this :: shouldTryResolveLHSAsExpression , this :: resolveExpressionOnLHS ) if ( resultForExpr != null && ! resultForExpr . isObjectQualifier ) { return resultForExpr } val resultForType = tryResolveLHS ( doubleColonExpression , this :: shouldTryResolveLHSAsType ) { expression -> resolveTypeOnLHS ( expression ) } if ( resultForType != null ) { if ( resultForExpr != null && resultForType . type == resultForExpr . type ) { return resultForExpr } return resultForType } return resultForExpr }","docstring":""} {"signature":"private fun < T : DoubleColonLHS > tryResolveLHS ( doubleColonExpression : FirCallableReferenceAccess , criterion : ( FirCallableReferenceAccess ) -> Boolean , resolve : ( FirExpression ) -> T ? ) : T ?","body":"{ val expression = doubleColonExpression . explicitReceiver ? : return null if ( ! criterion ( doubleColonExpression ) ) return null return resolve ( expression ) }","docstring":"/**\n * Returns null if the LHS is definitely not an expression. Returns a non-null result if a resolution was attempted and led to\n * either a successful result or not.\n */"} {"signature":"private fun FirResolvedQualifier . expandedRegularClassIfAny ( ) : FirRegularClass ?","body":"{ var fir = symbol ? . fir ? : return null while ( fir is FirTypeAlias ) { fir = fir . expandedConeType ? . lookupTag ? . toSymbol ( session ) ? . fir ? : return null } return fir as? FirRegularClass }","docstring":""} {"signature":"private fun resolveExpressionOnLHS ( expression : FirExpression ) : DoubleColonLHS . Expression ?","body":"{ val type = expression . resolvedType if ( expression is FirResolvedQualifier ) { val firClass = expression . expandedRegularClassIfAny ( ) ? : return null if ( firClass . classKind == ClassKind . OBJECT ) { return DoubleColonLHS . Expression ( type , isObjectQualifier = true ) } return null } return DoubleColonLHS . Expression ( type , isObjectQualifier = false ) }","docstring":""} {"signature":"private fun resolveTypeOnLHS ( expression : FirExpression ) : DoubleColonLHS . Type ?","body":"{ val resolvedExpression = expression as? FirResolvedQualifier ? : return null val firClassLikeDeclaration = resolvedExpression . symbol ? . fir ? : return null val type = ConeClassLikeTypeImpl ( firClassLikeDeclaration . symbol . toLookupTag ( ) , Array ( firClassLikeDeclaration . typeParameters . size ) { index -> val typeArgument = expression . typeArguments . getOrNull ( index ) if ( typeArgument == null ) { val typeParameter = firClassLikeDeclaration . typeParameters [ ] if ( firClassLikeDeclaration . isLocal && typeParameter is FirOuterClassTypeParameterRef && typeParameter . symbol . containingDeclarationSymbol !is FirClassSymbol ) { typeParameter . symbol . defaultType } else { ConeStarProjection } } else { when ( typeArgument ) { is FirTypeProjectionWithVariance -> { val coneType = typeArgument . typeRef . coneType when ( typeArgument . variance ) { Variance . INVARIANT -> coneType Variance . IN_VARIANCE -> ConeKotlinTypeProjectionIn ( coneType ) Variance . OUT_VARIANCE -> ConeKotlinTypeProjectionOut ( coneType ) } } else -> ConeStarProjection } } } , isNullable = resolvedExpression . isNullableLHSForCallableReference ) return DoubleColonLHS . Type ( type ) }","docstring":""} {"signature":"override fun check ( declaration : FirConstructor , context : CheckerContext , reporter : DiagnosticReporter )","body":"{ val containingClass = context . containingDeclarations . lastOrNull ( ) as? FirClass ? : return val source = declaration . source val elementType = source ? . elementType if ( elementType != KtNodeTypes . PRIMARY_CONSTRUCTOR && elementType != KtNodeTypes . SECONDARY_CONSTRUCTOR ) { return } when ( containingClass . classKind ) { ClassKind . OBJECT -> reporter . reportOn ( source , FirErrors . CONSTRUCTOR_IN_OBJECT , context ) ClassKind . INTERFACE -> reporter . reportOn ( source , FirErrors . CONSTRUCTOR_IN_INTERFACE , context ) ClassKind . ENUM_ENTRY -> reporter . reportOn ( source , FirErrors . CONSTRUCTOR_IN_OBJECT , context ) ClassKind . ENUM_CLASS -> if ( declaration . visibility != Visibilities . Private ) { reporter . reportOn ( source , FirErrors . NON_PRIVATE_CONSTRUCTOR_IN_ENUM , context ) } ClassKind . CLASS -> when ( containingClass ) { is FirAnonymousObject -> reporter . reportOn ( source , FirErrors . CONSTRUCTOR_IN_OBJECT , context ) is FirRegularClass -> if ( containingClass . modality == Modality . SEALED ) { val modifierList = source . getModifierList ( ) ? : return val hasIllegalModifier = modifierList . modifiers . any { val token = it . token token in KtTokens . VISIBILITY_MODIFIERS && token != KtTokens . PROTECTED_KEYWORD && token != KtTokens . PRIVATE_KEYWORD } if ( hasIllegalModifier ) { reporter . reportOn ( source , FirErrors . NON_PRIVATE_OR_PROTECTED_CONSTRUCTOR_IN_SEALED , context ) } } } ClassKind . ANNOTATION_CLASS -> { } } }","docstring":""} {"signature":"override fun check ( resolvedCall : ResolvedCall < * > , reportOn : PsiElement , context : CallCheckerContext )","body":"{ val descriptor = resolvedCall . candidateDescriptor if ( descriptor !is FunctionDescriptor || ! descriptor . isSuspend ) return val enclosingSuspendFunctionSource = findEnclosingSuspendFunction ( context ) ? . source ? . getPsi ( ) ? : return var parent = reportOn var child = reportOn var insideLambda = false while ( parent != enclosingSuspendFunctionSource ) { if ( parent is KtCallExpression ) { if ( checkCall ( context , parent , child , insideLambda , reportOn , resolvedCall ) ) break } if ( parent is KtLambdaExpression ) { insideLambda = true } if ( parent !is KtValueArgumentList ) { child = parent } parent = parent . parent ? : return } }","docstring":""} {"signature":"private fun checkCall ( context : CallCheckerContext , parent : KtCallExpression , child : PsiElement , insideLambda : Boolean , reportOn : PsiElement , resolvedCall : ResolvedCall < * > ) : Boolean","body":"{ val call = context . trace [ BindingContext . CALL , parent . calleeExpression ] ? : return false val resolved = context . trace [ BindingContext . RESOLVED_CALL , call ] ? : return false val isSynchronized = resolved . resultingDescriptor . isTopLevelInPackage ( \"\" , \"\" ) if ( isSynchronized ) { val isSecondArgument = ( resolved . valueArgumentsByIndex ? . get ( ) as? ExpressionValueArgument ) ? . valueArgument == child if ( insideLambda && isSecondArgument ) { reportProblem ( context , reportOn , resolvedCall ) } return true } val isWithLock = resolved . resultingDescriptor . isTopLevelInPackage ( \"\" , \"\" ) if ( isWithLock ) { reportProblem ( context , reportOn , resolvedCall ) return true } return false }","docstring":""} {"signature":"private fun reportProblem ( context : CallCheckerContext , reportOn : PsiElement , resolvedCall : ResolvedCall < * > )","body":"{ context . trace . report ( ErrorsJvm . SUSPENSION_POINT_INSIDE_CRITICAL_SECTION . on ( reportOn , resolvedCall . resultingDescriptor ) ) }","docstring":""} {"signature":"public open operator fun equals ( other : Any ? ) : Boolean","body":"= TODO ( )","docstring":""} {"signature":"public open fun hashCode ( ) : Int","body":"= TODO ( )","docstring":""} {"signature":"public open fun toString ( ) : String","body":"= TODO ( )","docstring":""} {"signature":"fun getElement ( element : @ UnsafeVariance E ) : E ?","body":"fun getElement ( element : @ UnsafeVariance E ) : E ?","docstring":"/**\n * Searches for the specified element in this set.\n *\n * @return the element from the set equal to [element], or `null` if no such element found.\n */"} {"signature":"fun second ( ) : Int","body":"fun second ( ) : Int","docstring":""} {"signature":"override fun second ( )","body":"= ","docstring":""} {"signature":"override fun second ( )","body":"= ","docstring":""} {"signature":"fun usages ( )","body":"{ val b = B ( ) val a : A = b val c = C ( ) a . second ( ) b . second ( ) c . second ( ) }","docstring":""} {"signature":"protected abstract fun applyImpl ( data : FloatArray , shape : TensorShape ) : FloatArray","body":"protected abstract fun applyImpl ( data : FloatArray , shape : TensorShape ) : FloatArray","docstring":"/**\n * Actual implementation of the [Operation] that should be applied to the [data].\n */"} {"signature":"override fun apply ( input : FloatData ) : FloatData","body":"{ val ( data , shape ) = input return applyImpl ( data , shape ) to getOutputShape ( shape ) }","docstring":""} {"signature":"override fun getOutputShape ( inputShape : TensorShape ) : TensorShape","body":"= inputShape","docstring":""} {"signature":"internal fun KType . shouldBeConvertedToFrameColumn ( ) : Boolean","body":"= when ( jvmErasure ) { DataFrame :: class -> true List :: class -> arguments [ ] . type ? . jvmErasure ? . hasAnnotation < DataSchema > ( ) == true else -> false }","docstring":""} {"signature":"internal fun KType . shouldBeConvertedToColumnGroup ( ) : Boolean","body":"= jvmErasure . let { it == DataRow :: class || it . hasAnnotation < DataSchema > ( ) }","docstring":""} {"signature":"private fun String . toNullable ( ) : String","body":"= if ( endsWith ( \"\" ) ) this else \"\"","docstring":""} {"signature":"inline fun < reified T > get ( )","body":"= get ( T :: class )","docstring":""} {"signature":"fun get ( markerClass : KClass < * > , nullableProperties : Boolean = false ) : Marker","body":"= cache . getOrPut ( Pair ( markerClass , nullableProperties ) ) { val fields = getFields ( markerClass , nullableProperties ) val isOpen = ! markerClass . isSealed && markerClass . java . isInterface && markerClass . findAnnotation < DataSchema > ( ) ? . isOpen == true val baseSchemas = markerClass . superclasses . filter { it != Any :: class } . map { get ( it , nullableProperties ) } Marker ( name = markerClass . qualifiedName ? : markerClass . simpleName ! ! , isOpen = isOpen , fields = fields , superMarkers = baseSchemas , visibility = MarkerVisibility . IMPLICIT_PUBLIC , klass = markerClass , ) }","docstring":""} {"signature":"private fun getFields ( markerClass : KClass < * > , nullableProperties : Boolean ) : List < GeneratedField >","body":"{ val order = getPropertiesOrder ( markerClass ) return markerClass . memberProperties . sortedBy { order [ it . name ] ? : Int . MAX_VALUE } . mapIndexed { _ , it -> val fieldName = ValidFieldName . of ( it . name ) val columnName = it . findAnnotation < ColumnName > ( ) ? . name ? : fieldName . unquoted val type = it . returnType val fieldType : FieldType val clazz = type . jvmErasure val columnSchema = when { type . shouldBeConvertedToColumnGroup ( ) -> { val nestedType = if ( clazz == DataRow :: class ) type . arguments [ ] . type ? : typeOf < Any ? > ( ) else type val marker = get ( nestedType . jvmErasure , nullableProperties || type . isMarkedNullable ) fieldType = FieldType . GroupFieldType ( marker . name ) ColumnSchema . Group ( marker . schema , nestedType ) } type . shouldBeConvertedToFrameColumn ( ) -> { val frameType = type . arguments [ ] . type ? : typeOf < Any ? > ( ) val marker = get ( frameType . jvmErasure , nullableProperties || type . isMarkedNullable ) fieldType = FieldType . FrameFieldType ( marker . name , type . isMarkedNullable || nullableProperties ) ColumnSchema . Frame ( marker . schema , type . isMarkedNullable , frameType ) } else -> { fieldType = FieldType . ValueFieldType ( if ( nullableProperties ) type . toString ( ) . toNullable ( ) else type . toString ( ) ) ColumnSchema . Value ( if ( nullableProperties ) type . withNullability ( true ) else type ) } } GeneratedField ( fieldName , columnName , false , columnSchema , fieldType ) } }","docstring":""} {"signature":"@ Test fun testParseDataString ( )","body":"= parametrizedTest { streaming -> val ev = default . decodeFromString ( Event . serializer ( ) , inputDataString , streaming ) with ( ev ) { assertEquals ( , id ) assertEquals ( Either . Right ( Payload ( , , \"\" ) ) , payload ) assertEquals ( , timestamp ) } }","docstring":""} {"signature":"@ Test fun testParseErrorString ( )","body":"= parametrizedTest { jsonTestingMode -> val ev = default . decodeFromString ( Event . serializer ( ) , inputErrorString , jsonTestingMode ) with ( ev ) { assertEquals ( , id ) assertEquals ( Either . Left ( \"\" ) , payload ) assertEquals ( , timestamp ) } }","docstring":""} {"signature":"@ Test fun testWriteDataString ( )","body":"= parametrizedTest { jsonTestingMode -> val outputData = Event ( , Either . Right ( Payload ( , , \"\" ) ) , ) val ev = default . encodeToString ( Event . serializer ( ) , outputData , jsonTestingMode ) assertEquals ( inputDataString , ev ) }","docstring":""} {"signature":"@ Test fun testWriteDataStringIndented ( )","body":"= parametrizedTest { jsonTestingMode -> val outputData = Event ( , Either . Right ( Payload ( , , \"\" ) ) , ) val ev = Json { prettyPrint = true } . encodeToString ( Event . serializer ( ) , outputData , jsonTestingMode ) assertEquals ( \"\"\"\"\"\" . trimMargin ( ) , ev ) }","docstring":""} {"signature":"@ Test fun testWriteErrorString ( )","body":"= parametrizedTest { jsonTestingMode -> val outputError = Event ( , Either . Left ( \"\" ) , ) val ev = default . encodeToString ( Event . serializer ( ) , outputError , jsonTestingMode ) assertEquals ( inputErrorString , ev ) }","docstring":""} {"signature":"@ Test fun testParseDataJson ( )","body":"{ val ev = default . decodeFromJsonElement ( Event . serializer ( ) , inputDataJson ) with ( ev ) { assertEquals ( , id ) assertEquals ( Either . Right ( Payload ( , , \"\" ) ) , payload ) assertEquals ( , timestamp ) } }","docstring":""} {"signature":"@ Test fun testParseErrorJson ( )","body":"{ val ev = default . decodeFromJsonElement ( Event . serializer ( ) , inputErrorJson ) with ( ev ) { assertEquals ( , id ) assertEquals ( Either . Left ( \"\" ) , payload ) assertEquals ( , timestamp ) } }","docstring":""} {"signature":"@ Test fun testWriteDataJson ( )","body":"{ val outputData = Event ( , Either . Right ( Payload ( , , \"\" ) ) , ) val ev = default . encodeToJsonElement ( Event . serializer ( ) , outputData ) assertEquals ( inputDataJson , ev ) }","docstring":""} {"signature":"@ Test fun testWriteErrorJson ( )","body":"{ val outputError = Event ( , Either . Left ( \"\" ) , ) val ev = default . encodeToJsonElement ( Event . serializer ( ) , outputError ) assertEquals ( inputErrorJson , ev ) }","docstring":""} {"signature":"@ Test fun testParseRecursive ( )","body":"= parametrizedTest { jsonTestingMode -> val ev = default . decodeFromString ( RecursiveSerializer , inputRecursive , jsonTestingMode ) assertEquals ( outputRecursive , ev ) }","docstring":""} {"signature":"@ Test fun testWriteRecursive ( )","body":"= parametrizedTest { jsonTestingMode -> val ev = default . encodeToString ( RecursiveSerializer , outputRecursive , jsonTestingMode ) assertEquals ( inputRecursive , ev ) }","docstring":""} {"signature":"override fun deserialize ( decoder : Decoder ) : Either","body":"{ val jsonReader = decoder as? JsonDecoder ? : throw SerializationException ( \"\" ) val tree = jsonReader . decodeJsonElement ( ) as? JsonObject ? : throw SerializationException ( \"\" ) if ( \"\" in tree ) return Either . Left ( tree . getValue ( \"\" ) . jsonPrimitive . content ) return Either . Right ( decoder . json . decodeFromJsonElement ( Payload . serializer ( ) , tree ) ) }","docstring":""} {"signature":"override fun serialize ( encoder : Encoder , value : Either )","body":"{ val jsonWriter = encoder as? JsonEncoder ? : throw SerializationException ( \"\" ) val tree = when ( value ) { is Either . Left -> JsonObject ( mapOf ( \"\" to JsonPrimitive ( value . errorMsg ) ) ) is Either . Right -> encoder . json . encodeToJsonElement ( Payload . serializer ( ) , value . data ) } jsonWriter . encodeJsonElement ( tree ) }","docstring":""} {"signature":"override fun serialize ( encoder : Encoder , value : SealedRecursive )","body":"{ if ( encoder !is JsonEncoder ) throw SerializationException ( \"\" ) val ( tree , typeName ) = when ( value ) { is SealedRecursive . A -> encoder . json . encodeToJsonElement ( SealedRecursive . A . serializer ( ) , value ) to typeNameA is SealedRecursive . B -> encoder . json . encodeToJsonElement ( SealedRecursive . B . serializer ( ) , value ) to typeNameB } val contents : MutableMap < String , JsonElement > = mutableMapOf ( typeAttribute to JsonPrimitive ( typeName ) ) contents . putAll ( tree . jsonObject ) val element = JsonObject ( contents ) encoder . encodeJsonElement ( element ) }","docstring":""} {"signature":"override fun deserialize ( decoder : Decoder ) : SealedRecursive","body":"{ val jsonReader = decoder as? JsonDecoder ? : throw SerializationException ( \"\" ) val tree = jsonReader . decodeJsonElement ( ) as? JsonObject ? : throw SerializationException ( \"\" ) val typeName = tree . getValue ( typeAttribute ) . jsonPrimitive . content val objTree = JsonObject ( tree - typeAttribute ) return when ( typeName ) { typeNameA -> decoder . json . decodeFromJsonElement ( SealedRecursive . A . serializer ( ) , objTree ) typeNameB -> decoder . json . decodeFromJsonElement ( SealedRecursive . B . serializer ( ) , objTree ) else -> throw SerializationException ( \"\" ) } }","docstring":""} {"signature":"@ Suppress ( \"\" ) @ Deprecated ( KOTLIN_OPTIONS_AS_TOOLS_DEPRECATION_MESSAGE ) fun kotlinOptions ( fn : KotlinCommonToolOptions . ( ) -> Unit )","body":"{ kotlinOptions . fn ( ) }","docstring":""} {"signature":"@ Suppress ( \"\" ) @ Deprecated ( KOTLIN_OPTIONS_AS_TOOLS_DEPRECATION_MESSAGE ) fun kotlinOptions ( fn : Action < KotlinCommonToolOptions > )","body":"{ fn . execute ( kotlinOptions ) }","docstring":""} {"signature":"@ TaskAction fun link ( )","body":"{ val metricReporter = metrics . get ( ) addBuildMetricsForTaskAction ( metricsReporter = metricReporter , languageVersion = null ) { val outFile = outputFile . get ( ) outFile . ensureParentDirsCreated ( ) fun FileCollection . klibs ( ) = files . filter { it . extension == \"\" } val buildArgs = buildKotlinNativeBinaryLinkerArgs ( outFile = outFile , optimized = optimized . get ( ) , debuggable = debuggable . get ( ) , target = konanTarget , outputKind = outputKind , libraries = libraries . klibs ( ) , friendModules = emptyList ( ) , toolOptions = toolOptions , compilerPlugins = emptyList ( ) , processTests = processTests . get ( ) , entryPoint = entryPoint . getOrNull ( ) , embedBitcode = bitcodeEmbeddingMode ( ) , linkerOpts = linkerOptions . get ( ) , binaryOptions = allBinaryOptions . get ( ) , isStaticFramework = staticFramework . get ( ) , exportLibraries = exportLibraries . klibs ( ) , includeLibraries = includeLibraries . klibs ( ) , additionalOptions = emptyList ( ) ) KotlinNativeCompilerRunner ( settings = runnerSettings , executionContext = KotlinToolRunner . GradleExecutionContext . fromTaskContext ( objectFactory , execOperations , logger ) , metricReporter , ) . run ( buildArgs ) } }","docstring":""} {"signature":"private fun bitcodeEmbeddingMode ( ) : BitcodeEmbeddingMode","body":"{ return XcodeUtils . bitcodeEmbeddingMode ( outputKind , embedBitcode . orNull , xcodeVersion , konanTarget , debuggable . get ( ) ) }","docstring":""} {"signature":"fun getFooValue ( x : Int ) : String","body":"= x . foo","docstring":""} {"signature":"fun setFooValue ( x : Int , value : String )","body":"{ x . foo = value }","docstring":""} {"signature":"fun box ( ) : String","body":"{ var d = Derived ( ) assertEquals ( \"\" , d . getFooValue ( ) ) d . setFooValue ( , \"\" ) assertEquals ( \"\" , d . prop ) return \"\" }","docstring":""} {"signature":"override fun doTestByMainFile ( mainFile : KtFile , mainModule : KtTestModule , testServices : TestServices )","body":"{ val targetElement = testServices . expressionMarkerProvider . getBottommostSelectedElementOfType ( mainFile , KtElement :: class . java ) assertNull ( targetElement . getNonLocalReanalyzableContainingDeclaration ( ) ) val actualText = testInBlockModification ( mainFile , mainFile , testServices , dumpFirFile = false ) testServices . assertions . assertEqualsToTestDataFileSibling ( actualText ) }","docstring":""} {"signature":"fun < T : Any > bar ( a : Array < T > ) : Array < T ? >","body":"= null ! !","docstring":""} {"signature":"fun test1 ( a : Array < out Int > )","body":"{ val r : Array < out Int ? > = bar ( a ) val t = bar ( a ) t checkType { _ < Array < out Int ? > > ( ) } }","docstring":""} {"signature":"fun < T : Any > foo ( l : Array < T > ) : Array < Array < T ? > >","body":"= null ! !","docstring":""} {"signature":"fun test2 ( a : Array < out Int > )","body":"{ val r : Array < out Array < out Int ? > > = foo ( a ) val t = foo ( a ) t checkType { _ < Array < out Array < out Int ? > > > ( ) } }","docstring":""} {"signature":"@ ExperimentalSerializationApi public fun decodeStringChunked ( consumeChunk : ( chunk : String ) -> Unit )","body":"@ ExperimentalSerializationApi public fun decodeStringChunked ( consumeChunk : ( chunk : String ) -> Unit )","docstring":"/**\n * Method allows decoding a string value by fixed-size chunks.\n * Usable for handling very large strings that may not fit in memory.\n * Chunk size is guaranteed to not exceed 16384 chars (but it may be smaller than that).\n * Feeds string chunks to the provided consumer.\n *\n * @param consumeChunk - lambda function to handle string chunks\n *\n * Example usage:\n * ```\n * @Serializable(with = LargeStringSerializer::class)\n * data class LargeStringData(val largeString: String)\n *\n * @Serializable\n * data class ClassWithLargeStringDataField(val largeStringField: LargeStringData)\n *\n * object LargeStringSerializer : KSerializer {\n * override val descriptor: SerialDescriptor = PrimitiveSerialDescriptor(\"LargeStringContent\", PrimitiveKind.STRING)\n *\n * override fun deserialize(decoder: Decoder): LargeStringData {\n * require(decoder is ChunkedDecoder) { \"Only chunked decoder supported\" }\n *\n * val tmpFile = createTempFile()\n * val writer = FileWriter(tmpFile.toFile()).use {\n * decoder.decodeStringChunked { chunk ->\n * writer.append(chunk)\n * }\n * }\n * return LargeStringData(\"file://${tmpFile.absolutePathString()}\")\n * }\n * }\n * ```\n *\n * In this sample, we need to be able to handle a huge string coming from json. Instead of storing it in memory,\n * we offload it into a file and return the file name instead\n */"} {"signature":"fun foo1 ( fs : ( Z ) -> Z )","body":"= fs ( Z ( \"\" ) )","docstring":""} {"signature":"fun box ( ) : String","body":"{ val t = foo1 { Z ( it . value + \"\" ) } if ( t . value != \"\" ) return \"\" return \"\" }","docstring":""} {"signature":"@ Test fun `should substitute AddToNavigationCommand in root directory` ( @ TempDir outputDirectory : File )","body":"{ addToNavigationTest ( outputDirectory ) { val output = outputDirectory . resolve ( \"\" ) . readText ( ) val expected = expectedOutput ( ModuleWithPrefix ( \"\" ) , ModuleWithPrefix ( \"\" ) ) assertHtmlEqualsIgnoringWhitespace ( expected , output ) } }","docstring":""} {"signature":"@ ParameterizedTest @ ValueSource ( strings = [ \"\" , \"\" ] ) fun `should substitute AddToNavigationCommand in modules directory` ( moduleName : String , @ TempDir outputDirectory : File )","body":"{ addToNavigationTest ( outputDirectory ) { val output = outputDirectory . resolve ( moduleName ) . resolve ( \"\" ) . readText ( ) val expected = expectedOutput ( ModuleWithPrefix ( \"\" , \"\" ) , ModuleWithPrefix ( \"\" , \"\" ) ) assertHtmlEqualsIgnoringWhitespace ( expected , output ) } }","docstring":""} {"signature":"private fun expectedOutput ( vararg modulesWithPrefix : ModuleWithPrefix )","body":"= createHTML ( prettyPrint = true ) . div ( \"\" ) { modulesWithPrefix . forEach { ( moduleName , prefix ) -> val relativePrefix = prefix ? . let { \"\" } ? : \"\" div ( \"\" ) { id = \"\" div ( \"\" ) { a { href = \"\" span { + \"\" } } } div ( \"\" ) { id = \"\" div ( \"\" ) { a { href = \"\" span { + \"\" } } } } } } }","docstring":""} {"signature":"private fun inputForModule ( moduleName : String )","body":"= createHTML ( ) . templateCommand ( AddToNavigationCommand ( moduleName ) ) { div ( \"\" ) { id = \"\" div ( \"\" ) { a { href = \"\" span { + \"\" } } } div ( \"\" ) { id = \"\" div ( \"\" ) { a { href = \"\" span { + \"\" } } } } } }","docstring":""} {"signature":"private fun addToNavigationTest ( outputDirectory : File , test : ( DokkaContext ) -> Unit )","body":"{ val module1 = outputDirectory . resolve ( \"\" ) . also { it . mkdirs ( ) } val module2 = outputDirectory . resolve ( \"\" ) . also { it . mkdirs ( ) } val configuration = dokkaConfiguration { modules = listOf ( DokkaModuleDescriptionImpl ( name = \"\" , relativePathToOutputDirectory = module1 , includes = emptySet ( ) , sourceOutputDirectory = module1 , ) , DokkaModuleDescriptionImpl ( name = \"\" , relativePathToOutputDirectory = module2 , includes = emptySet ( ) , sourceOutputDirectory = module2 , ) , ) this . outputDir = outputDirectory } val module1Navigation = module1 . resolve ( \"\" ) module1Navigation . writeText ( inputForModule ( \"\" ) ) val module2Navigation = module2 . resolve ( \"\" ) module2Navigation . writeText ( inputForModule ( \"\" ) ) testFromData ( configuration , useOutputLocationFromConfig = true ) { finishProcessingSubmodules = { ctx -> test ( ctx ) } } }","docstring":""} {"signature":"inline fun < reified T : Any > getSer ( module : SerializersModule ) : KSerializer < T >","body":"{ return module . serializer ( ) }","docstring":""} {"signature":"fun test ( )","body":"{ module . serializer < Simple > ( ) module . serializer < NoSer > ( ) module . serializer < List < Simple > > ( ) module . serializer < List < NoSer > > ( ) getSer < Simple > ( module ) getSer < NoSer > ( module ) getSer < NoSerGeneric < Simple > > ( module ) getSer < NoSerGeneric < NoSer > > ( module ) }","docstring":""} {"signature":"fun < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 , T23 , R > combine ( flow : Flow < T1 > , flow2 : Flow < T2 > , flow3 : Flow < T3 > , flow4 : Flow < T4 > , flow5 : Flow < T5 > , flow6 : Flow < T6 > , flow7 : Flow < T7 > , flow8 : Flow < T8 > , flow9 : Flow < T9 > , flow10 : Flow < T10 > , flow11 : Flow < T11 > , flow12 : Flow < T12 > , flow13 : Flow < T13 > , flow14 : Flow < T14 > , flow15 : Flow < T15 > , flow16 : Flow < T16 > , flow17 : Flow < T17 > , flow18 : Flow < T18 > , flow19 : Flow < T19 > , flow20 : Flow < T20 > , flow21 : Flow < T21 > , flow22 : Flow < T22 > , flow23 : Flow < T23 > , transform : suspend ( T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 , T23 ) -> R ) : Flow < R >","body":"= combine ( flow , flow2 , flow3 , flow4 , flow5 , flow6 , flow7 , flow8 , flow9 , flow10 , flow11 , flow12 , flow13 , flow14 , flow15 , flow16 , flow17 , flow18 , flow19 , flow20 , flow21 , flow22 , flow23 ) { args : Array < * > -> transform ( args [ ] as T1 , args [ ] as T2 , args [ ] as T3 , args [ ] as T4 , args [ ] as T5 , args [ ] as T6 , args [ ] as T7 , args [ ] as T8 , args [ ] as T9 , args [ ] as T10 , args [ ] as T11 , args [ ] as T12 , args [ ] as T13 , args [ ] as T14 , args [ ] as T15 , args [ ] as T16 , args [ ] as T17 , args [ ] as T18 , args [ ] as T19 , args [ ] as T20 , args [ ] as T21 , args [ ] as T22 , args [ ] as T23 , ) }","docstring":""} {"signature":"fun bar ( a : A , extLambda : A . ( Int , String ) -> String ) : String","body":"= a . extLambda ( , \"\" )","docstring":""} {"signature":"internal external fun nativeBox ( b : B ) : String","body":"= definedExternally","docstring":""} {"signature":"fun box ( ) : String","body":"{ val r = nativeBox ( B ( ) ) if ( r != \"\" ) return r return \"\" }","docstring":""} {"signature":"override fun check ( expression : FirLoop , context : CheckerContext , reporter : DiagnosticReporter )","body":"{ val parent = if ( context . containingElements . size >= ) context . containingElements [ context . containingElements . size - ] else return if ( parent . source ? . kind != KtFakeSourceElementKind . DesugaredForLoop ) return val grandParent = if ( context . containingElements . size >= ) context . containingElements [ context . containingElements . size - ] else return if ( grandParent is FirBlock || ( grandParent is FirReturnExpression && grandParent . source ? . kind == KtFakeSourceElementKind . ImplicitReturn . FromLastStatement ) || ( grandParent is FirProperty && ( grandParent . origin as? FirDeclarationOrigin . ScriptCustomization ) ? . kind == FirScriptCustomizationKind . RESULT_PROPERTY ) || ( grandParent is FirErrorExpression ) ) return reporter . reportOn ( expression . source , FirErrors . EXPRESSION_EXPECTED , context ) }","docstring":""} {"signature":"operator fun IntArray . set ( index : Long , elem : Int )","body":"{ this [ index . toInt ( ) ] = elem }","docstring":""} {"signature":"operator fun IntArray . get ( index : Long )","body":"= this [ index . toInt ( ) ]","docstring":""} {"signature":"fun box ( ) : String","body":"{ var l = IntArray ( ) l [ . toLong ( ) ] = l [ . toLong ( ) ] += return if ( l [ . toLong ( ) ] == ) \"\" else \"\" }","docstring":""} {"signature":"@ Test fun testCborDecodingException ( )","body":"= checkRecovered < CborDecodingException > { Cbor . decodeFromByteArray < String > ( byteArrayOf ( . toByte ( ) ) ) }","docstring":""} {"signature":"private inline fun < reified E : Exception > checkRecovered ( noinline block : ( ) -> Unit )","body":"= runBlocking { val result = runCatching { callBlockWithRecovery ( block ) } assertTrue ( result . isFailure , \"\" ) val e = result . exceptionOrNull ( ) ! ! assertEquals ( E :: class , e :: class ) val cause = e . cause assertNotNull ( cause , \"\" ) assertEquals ( e . message , cause . message ) assertEquals ( E :: class , cause :: class ) }","docstring":""} {"signature":"private suspend fun callBlockWithRecovery ( block : ( ) -> Unit )","body":"{ yield ( ) withContext ( NonCancellable ) { block ( ) } }","docstring":""} {"signature":"@ Test fun `test 3rd element` ( )","body":"{ assertEquals ( , fibi . take ( ) . last ( ) ) }","docstring":""} {"signature":"public fun isSuperOrEqual ( ) : Boolean","body":"= this == Equals || this == IsSuper","docstring":""} {"signature":"public fun isEqual ( ) : Boolean","body":"= this == Equals","docstring":""} {"signature":"public fun combine ( other : CompareResult ) : CompareResult","body":"= when ( this ) { Equals -> other None -> None IsDerived -> if ( other == Equals || other == IsDerived ) this else None IsSuper -> if ( other == Equals || other == IsSuper ) this else None }","docstring":""} {"signature":"public fun compareNullability ( thisIsNullable : Boolean , otherIsNullable : Boolean ) : CompareResult","body":"= when { thisIsNullable == otherIsNullable -> Equals thisIsNullable -> IsSuper else -> IsDerived }","docstring":""} {"signature":"fun foo ( )","body":"= { }","docstring":""} {"signature":"private fun DProperty . hasModifier ( modifier : ExtraModifiers . KotlinOnlyModifiers ) : Boolean","body":"= extra [ AdditionalModifiers ] ? . content ? . any { ( _ , modifiers ) -> modifier in modifiers } == true","docstring":""} {"signature":"internal fun DPackage . asJava ( ) : DPackage","body":"{ val syntheticClasses = ( properties . map { jvmNameProvider . nameForSyntheticClass ( it ) to it } + functions . map { jvmNameProvider . nameForSyntheticClass ( it ) to it } ) . groupBy ( { it . first } ) { it . second } . map { ( syntheticClassName , nodes ) -> DClass ( dri = dri . withClass ( syntheticClassName . name ) , name = syntheticClassName . name , properties = nodes . filterIsInstance < DProperty > ( ) . filterNot { it . hasJvmSynthetic ( ) } . map { it . asJava ( true ) } , constructors = emptyList ( ) , functions = ( nodes . filterIsInstance < DProperty > ( ) . filterNot { it . isConst || it . isJvmField || it . hasJvmSynthetic ( ) } . flatMap { it . javaAccessors ( relocateToClass = syntheticClassName . name ) } + nodes . filterIsInstance < DFunction > ( ) . flatMap { it . asJava ( syntheticClassName . name , true ) } ) . filterNot { it . hasJvmSynthetic ( ) } , classlikes = emptyList ( ) , sources = emptyMap ( ) , expectPresentInSet = null , visibility = sourceSets . associateWith { JavaVisibility . Public } , companion = null , generics = emptyList ( ) , supertypes = emptyMap ( ) , documentation = emptyMap ( ) , modifier = sourceSets . associateWith { JavaModifier . Final } , sourceSets = sourceSets , isExpectActual = false , extra = PropertyContainer . empty ( ) ) } return copy ( functions = emptyList ( ) , properties = emptyList ( ) , classlikes = classlikes . map { it . asJava ( ) } + syntheticClasses , typealiases = emptyList ( ) ) }","docstring":""} {"signature":"internal fun DProperty . asJava ( isTopLevel : Boolean = false , relocateToClass : String ? = null , isFromObjectOrCompanion : Boolean = false )","body":"= copy ( dri = if ( relocateToClass . isNullOrBlank ( ) ) { dri } else { dri . withClass ( relocateToClass ) } , modifier = javaModifierFromSetter ( ) , visibility = visibility . mapValues { if ( isConst || isJvmField || ( getter == null && setter == null ) || ( isFromObjectOrCompanion && isLateInit ) ) { it . value . asJava ( ) } else { it . value . propertyVisibilityAsJava ( ) } } , type = type . asJava ( ) , setter = null , getter = null , extra = if ( isTopLevel || isConst || ( isFromObjectOrCompanion && isJvmField ) || ( isFromObjectOrCompanion && isLateInit ) ) extra + extra . mergeAdditionalModifiers ( sourceSets . associateWith { setOf ( ExtraModifiers . JavaOnlyModifiers . Static ) } ) else extra )","docstring":""} {"signature":"internal fun Visibility . asJava ( )","body":"= when ( this ) { is JavaVisibility -> this is KotlinVisibility . Public , KotlinVisibility . Internal -> JavaVisibility . Public is KotlinVisibility . Private -> JavaVisibility . Private is KotlinVisibility . Protected -> JavaVisibility . Protected }","docstring":""} {"signature":"internal fun DProperty . javaModifierFromSetter ( )","body":"= modifier . mapValues { when { it . value is JavaModifier -> it . value setter == null -> JavaModifier . Final else -> JavaModifier . Empty } }","docstring":""} {"signature":"internal fun DProperty . javaAccessors ( isTopLevel : Boolean = false , relocateToClass : String ? = null ) : List < DFunction >","body":"= listOfNotNull ( getter ? . let { getter -> val name = \"\" + name . capitalize ( ) getter . copy ( dri = if ( relocateToClass . isNullOrBlank ( ) ) { getter . dri } else { getter . dri . withClass ( relocateToClass ) } . withCallableName ( name ) , name = name , modifier = javaModifierFromSetter ( ) , visibility = visibility . mapValues { JavaVisibility . Public } , type = getter . type . asJava ( ) , extra = if ( isTopLevel ) getter . extra + getter . extra . mergeAdditionalModifiers ( sourceSets . associateWith { setOf ( ExtraModifiers . JavaOnlyModifiers . Static ) } ) else getter . extra ) } , setter ? . let { setter -> val name = \"\" + name . capitalize ( ) val baseDRI = ( if ( relocateToClass . isNullOrBlank ( ) ) { setter . dri } else { setter . dri . withClass ( relocateToClass ) } ) . withCallableName ( name ) setter . copy ( dri = baseDRI , name = name , parameters = setter . parameters . map { it . copy ( dri = baseDRI . copy ( target = it . dri . target , extra = it . dri . extra ) , type = it . type . asJava ( ) ) } , modifier = javaModifierFromSetter ( ) , visibility = visibility . mapValues { JavaVisibility . Public } , type = Void , extra = if ( isTopLevel ) setter . extra + setter . extra . mergeAdditionalModifiers ( sourceSets . associateWith { setOf ( ExtraModifiers . JavaOnlyModifiers . Static ) } ) else setter . extra ) } )","docstring":""} {"signature":"private fun DFunction . asJava ( containingClassName : String , newName : String , parameters : List < DParameter > , isTopLevel : Boolean = false ) : DFunction","body":"{ return copy ( dri = dri . copy ( classNames = containingClassName , callable = dri . callable ? . copy ( name = newName ) ) , name = newName , type = type . asJava ( ) , modifier = if ( modifier . all { ( _ , v ) -> v is KotlinModifier . Final } && isConstructor ) sourceSets . associateWith { JavaModifier . Empty } else sourceSets . associateWith { modifier . values . first ( ) } , parameters = listOfNotNull ( receiver ? . asJava ( ) ) + parameters . map { it . asJava ( ) } , visibility = visibility . map { ( sourceSet , visibility ) -> Pair ( sourceSet , visibility . asJava ( ) ) } . toMap ( ) , receiver = null , extra = if ( isTopLevel || isJvmStatic ) { extra + extra . mergeAdditionalModifiers ( sourceSets . associateWith { setOf ( ExtraModifiers . JavaOnlyModifiers . Static ) } ) } else { extra } ) }","docstring":""} {"signature":"private fun DFunction . withJvmOverloads ( containingClassName : String , newName : String , isTopLevel : Boolean = false ) : List < DFunction > ?","body":"{ val ( paramsWithDefaults , paramsWithoutDefaults ) = parameters . withIndex ( ) . partition { ( _ , p ) -> p . extra [ DefaultValue ] != null } return paramsWithDefaults . runningFold ( paramsWithoutDefaults ) { acc , param -> ( acc + param ) } . map { params -> asJava ( containingClassName , newName , params . sortedBy ( IndexedValue < DParameter > :: index ) . map { it . value } , isTopLevel ) } . reversed ( ) . takeIf { it . isNotEmpty ( ) } }","docstring":""} {"signature":"internal fun DFunction . asJava ( containingClassName : String , isTopLevel : Boolean = false ) : List < DFunction >","body":"{ val newName = when { isConstructor -> containingClassName else -> name } val baseFunction = asJava ( containingClassName , newName , parameters , isTopLevel ) return if ( hasJvmOverloads ( ) ) { withJvmOverloads ( containingClassName , newName , isTopLevel ) ? : listOf ( baseFunction ) } else { listOf ( baseFunction ) } }","docstring":""} {"signature":"internal fun DClasslike . asJava ( ) : DClasslike","body":"= when ( this ) { is DClass -> asJava ( ) is DEnum -> asJava ( ) is DAnnotation -> asJava ( ) is DObject -> asJava ( ) is DInterface -> asJava ( ) else -> throw IllegalArgumentException ( \"\" ) }","docstring":""} {"signature":"internal fun DClass . asJava ( ) : DClass","body":"= copy ( constructors = constructors . filterNot { it . hasJvmSynthetic ( ) } . flatMap { it . asJava ( dri . classNames ? : name ) } , functions = functionsInJava ( ) , properties = propertiesInJava ( ) , classlikes = classlikesInJava ( ) , generics = generics . map { it . asJava ( ) } , companion = companion ? . companionAsJava ( ) , supertypes = supertypes . mapValues { it . value . map { it . asJava ( ) } } , modifier = if ( modifier . all { ( _ , v ) -> v is KotlinModifier . Empty } ) sourceSets . associateWith { JavaModifier . Final } else sourceSets . associateWith { modifier . values . first ( ) } )","docstring":""} {"signature":"internal fun DClass . classlikesInJava ( ) : List < DClasslike >","body":"{ val classlikes = classlikes . filter { it . name != companion ? . name } . map { it . asJava ( ) } val companionAsJava = companion ? . companionAsJava ( ) return if ( companionAsJava != null ) classlikes . plus ( companionAsJava ) else classlikes }","docstring":"/**\n * Companion objects requires some custom logic for rendering as Java.\n * They are excluded from usual classlikes rendering and added after.\n */"} {"signature":"internal fun DClass . functionsInJava ( ) : List < DFunction >","body":"= properties . filter { ! it . isJvmField && ! it . hasJvmSynthetic ( ) } . flatMap { property -> listOfNotNull ( property . getter , property . setter ) } . plus ( functions ) . plus ( companion . staticFunctionsForJava ( ) ) . filterNot { it . hasJvmSynthetic ( ) } . flatMap { it . asJava ( it . dri . classNames ? : it . name ) }","docstring":""} {"signature":"internal fun DClass . propertiesInJava ( ) : List < DProperty >","body":"{ val propertiesFromCompanion = companion . staticPropertiesForJava ( ) . filterNot { it . hasJvmSynthetic ( ) } . map { it . asJava ( isFromObjectOrCompanion = true ) } val companionInstanceProperty = companion ? . companionInstancePropertyForJava ( ) val ownProperties = properties . filterNot { it . hasJvmSynthetic ( ) } . map { it . asJava ( ) } return propertiesFromCompanion + ownProperties + listOfNotNull ( companionInstanceProperty ) }","docstring":""} {"signature":"private fun DTypeParameter . asJava ( ) : DTypeParameter","body":"= copy ( variantTypeParameter = variantTypeParameter . withDri ( dri . possiblyAsJava ( ) ) , bounds = bounds . map { it . asJava ( ) } )","docstring":""} {"signature":"private fun Projection . asJava ( ) : Projection","body":"= when ( this ) { is Star -> Star is Covariance < * > -> copy ( inner . asJava ( ) ) is Contravariance < * > -> copy ( inner . asJava ( ) ) is Invariance < * > -> copy ( inner . asJava ( ) ) is Bound -> asJava ( ) }","docstring":""} {"signature":"private fun Bound . asJava ( ) : Bound","body":"= when ( this ) { is TypeParameter -> copy ( dri . possiblyAsJava ( ) ) is GenericTypeConstructor -> copy ( dri = dri . possiblyAsJava ( ) , projections = projections . map { it . asJava ( ) } ) is FunctionalTypeConstructor -> copy ( dri = dri . possiblyAsJava ( ) , projections = projections . map { it . asJava ( ) } ) is TypeAliased -> copy ( typeAlias = typeAlias . asJava ( ) , inner = inner . asJava ( ) ) is Nullable -> copy ( inner . asJava ( ) ) is DefinitelyNonNullable -> copy ( inner . asJava ( ) ) is PrimitiveJavaType -> this is Void -> this is JavaObject -> this is Dynamic -> this is UnresolvedBound -> this }","docstring":""} {"signature":"internal fun DEnum . asJava ( ) : DEnum","body":"= copy ( constructors = constructors . flatMap { it . asJava ( dri . classNames ? : name ) } , functions = functions . plus ( properties . filter { ! it . isJvmField && ! it . hasJvmSynthetic ( ) } . flatMap { listOf ( it . getter , it . setter ) } ) . filterNotNull ( ) . filterNot { it . hasJvmSynthetic ( ) } . flatMap { it . asJava ( dri . classNames ? : name ) } , properties = properties . filterNot { it . hasJvmSynthetic ( ) } . map { it . asJava ( ) } , classlikes = classlikes . map { it . asJava ( ) } , supertypes = supertypes . mapValues { it . value . map { it . asJava ( ) } } )","docstring":""} {"signature":"internal fun DObject . asJava ( excludedProps : List < DProperty > = emptyList ( ) , excludedFunctions : List < DFunction > = emptyList ( ) ) : DObject","body":"= copy ( functions = functions . plus ( properties . filterNot { it in excludedProps } . filter { ! it . isJvmField && ! it . isConst && ! it . isLateInit && ! it . hasJvmSynthetic ( ) } . flatMap { listOf ( it . getter , it . setter ) } ) . filterNotNull ( ) . filterNot { it in excludedFunctions } . filterNot { it . hasJvmSynthetic ( ) } . flatMap { it . asJava ( dri . classNames ? : name . orEmpty ( ) ) } , properties = properties . filterNot { it . hasJvmSynthetic ( ) } . filterNot { it in excludedProps } . map { it . asJava ( isFromObjectOrCompanion = true ) } + DProperty ( name = OBJECT_INSTANCE_NAME , modifier = sourceSets . associateWith { JavaModifier . Final } , dri = dri . copy ( callable = Callable ( OBJECT_INSTANCE_NAME , null , emptyList ( ) ) ) , documentation = emptyMap ( ) , sources = emptyMap ( ) , visibility = sourceSets . associateWith { JavaVisibility . Public } , type = GenericTypeConstructor ( dri , emptyList ( ) ) , setter = null , getter = null , sourceSets = sourceSets , receiver = null , generics = emptyList ( ) , expectPresentInSet = expectPresentInSet , isExpectActual = false , extra = PropertyContainer . withAll ( sourceSets . map { mapOf ( it to setOf ( ExtraModifiers . JavaOnlyModifiers . Static ) ) . toAdditionalModifiers ( ) } ) ) , classlikes = classlikes . map { it . asJava ( ) } , supertypes = supertypes . mapValues { it . value . map { it . asJava ( ) } } )","docstring":"/**\n * Parameters [excludedProps] and [excludedFunctions] used for rendering companion objects\n * where some members (that lifted to outer class) are not rendered\n */"} {"signature":"internal fun DInterface . asJava ( ) : DInterface","body":"= copy ( functions = functions . plus ( properties . filter { it . jvmField ( ) == null && ! it . hasJvmSynthetic ( ) } . flatMap { listOf ( it . getter , it . setter ) } ) . filterNotNull ( ) . filterNot { it . hasJvmSynthetic ( ) } . flatMap { it . asJava ( dri . classNames ? : name ) } , properties = emptyList ( ) , classlikes = classlikes . map { it . asJava ( ) } , generics = generics . map { it . asJava ( ) } , supertypes = supertypes . mapValues { it . value . map { it . asJava ( ) } } )","docstring":""} {"signature":"internal fun DAnnotation . asJava ( ) : DAnnotation","body":"= copy ( properties = properties . map { it . asJava ( ) } , constructors = emptyList ( ) , classlikes = classlikes . map { it . asJava ( ) } )","docstring":""} {"signature":"internal fun DParameter . asJava ( ) : DParameter","body":"= copy ( type = type . asJava ( ) , name = if ( name . isNullOrBlank ( ) ) \"\" else name )","docstring":""} {"signature":"internal fun Visibility . propertyVisibilityAsJava ( ) : Visibility","body":"= if ( this is JavaVisibility ) this else JavaVisibility . Private","docstring":""} {"signature":"private fun TypeConstructor . possiblyAsJava ( ) : TypeConstructor","body":"= when ( this ) { is GenericTypeConstructor -> copy ( dri = this . dri . possiblyAsJava ( ) ) is FunctionalTypeConstructor -> copy ( dri = this . dri . possiblyAsJava ( ) ) }","docstring":""} {"signature":"internal fun TypeConstructorWithKind . asJava ( ) : TypeConstructorWithKind","body":"= TypeConstructorWithKind ( typeConstructor = typeConstructor . possiblyAsJava ( ) , kind = kind . asJava ( ) )","docstring":""} {"signature":"internal fun ClassKind . asJava ( ) : ClassKind","body":"{ return when ( this ) { is JavaClassKindTypes -> this KotlinClassKindTypes . CLASS -> JavaClassKindTypes . CLASS KotlinClassKindTypes . INTERFACE -> JavaClassKindTypes . INTERFACE KotlinClassKindTypes . ENUM_CLASS -> JavaClassKindTypes . ENUM_CLASS KotlinClassKindTypes . ENUM_ENTRY -> JavaClassKindTypes . ENUM_ENTRY KotlinClassKindTypes . ANNOTATION_CLASS -> JavaClassKindTypes . ANNOTATION_CLASS KotlinClassKindTypes . OBJECT -> JavaClassKindTypes . CLASS else -> throw IllegalStateException ( \"\" ) } }","docstring":""} {"signature":"private fun < T : Documentable > PropertyContainer < T > . mergeAdditionalModifiers ( second : SourceSetDependent < Set < ExtraModifiers > > )","body":"= this [ AdditionalModifiers ] ? . squash ( AdditionalModifiers ( second ) ) ? : AdditionalModifiers ( second )","docstring":""} {"signature":"private fun AdditionalModifiers . squash ( second : AdditionalModifiers )","body":"= AdditionalModifiers ( content + second . content )","docstring":""} {"signature":"internal fun DObject . companionAsJava ( ) : DObject ?","body":"{ if ( hasNothingToRender ( ) ) return null return asJava ( excludedProps = staticPropertiesForJava ( ) , excludedFunctions = staticFunctionsForJava ( ) ) }","docstring":""} {"signature":"private fun DRI . possiblyAsJava ( ) : DRI","body":"{ return kotlinToJavaMapper . findAsJava ( this ) ? : this }","docstring":""} {"signature":"operator fun invoke ( classType : KotlinType , contextClassLoader : ClassLoader ? , hostConfiguration : ScriptingHostConfiguration ) : KClass < * >","body":"operator fun invoke ( classType : KotlinType , contextClassLoader : ClassLoader ? , hostConfiguration : ScriptingHostConfiguration ) : KClass < * >","docstring":""} {"signature":"override fun invoke ( classType : KotlinType , contextClass : KClass < * > , hostConfiguration : ScriptingHostConfiguration ) : KClass < * >","body":"= invoke ( classType , contextClass . java . classLoader , hostConfiguration )","docstring":""} {"signature":"@ Synchronized override operator fun invoke ( classType : KotlinType , contextClassLoader : ClassLoader ? , hostConfiguration : ScriptingHostConfiguration ) : KClass < * >","body":"{ val fromClass = classType . fromClass if ( fromClass != null ) { if ( fromClass . java . classLoader == null ) return fromClass val actualClassLoadersChain = generateSequence ( contextClassLoader ) { it . parent } if ( actualClassLoadersChain . any { it == fromClass . java . classLoader } ) return fromClass } val newDeps = hostConfiguration [ ScriptingHostConfiguration . configurationDependencies ] if ( dependencies == null ) { dependencies = newDeps } else { if ( newDeps != dependencies ) throw IllegalArgumentException ( \"\" ) } if ( baseClassLoaderIsInitialized != true ) { baseClassLoader = contextClassLoader baseClassLoaderIsInitialized = true } if ( classLoader == null ) { val classpath = dependencies ? . flatMap { dependency -> when ( dependency ) { is JvmDependency -> dependency . classpath . map { it . toURI ( ) . toURL ( ) } else -> throw IllegalArgumentException ( \"\" ) } } classLoader = if ( classpath == null || classpath . isEmpty ( ) ) baseClassLoader else URLClassLoader ( classpath . toTypedArray ( ) , baseClassLoader ) } return try { ( classLoader ? : ClassLoader . getSystemClassLoader ( ) ) . loadClass ( classType . typeName ) . kotlin } catch ( e : Throwable ) { throw IllegalArgumentException ( \"\" , e ) } }","docstring":""} {"signature":"override fun equals ( other : Any ? ) : Boolean","body":"= when { other === this -> true other !is JvmGetScriptingClass -> false else -> { other . dependencies == dependencies && ( other . classLoader == null || classLoader == null || other . classLoader == classLoader ) && ( other . baseClassLoader == null || baseClassLoader == null || other . baseClassLoader == baseClassLoader ) } }","docstring":""} {"signature":"override fun hashCode ( ) : Int","body":"{ return dependencies . hashCode ( ) + * classLoader . hashCode ( ) + * baseClassLoader . hashCode ( ) }","docstring":""} {"signature":"fun getByAlias ( alias : String )","body":"= values ( ) . firstOrNull { it . alias == alias }","docstring":""} {"signature":"fun getInstance ( project : Project ) : JavaSourceSetsAccessor","body":"fun getInstance ( project : Project ) : JavaSourceSetsAccessor","docstring":""} {"signature":"override fun getInstance ( project : Project ) : JavaSourceSetsAccessor","body":"= DefaultJavaSourceSetsAccessor ( project . extensions )","docstring":""} {"signature":"public fun < T > foo ( ) : T","body":"public fun < T > foo ( ) : T","docstring":""} {"signature":"public fun dummy ( )","body":"public fun dummy ( )","docstring":""} {"signature":"override fun < E > foo ( ) : E","body":"override fun < E > foo ( ) : E","docstring":""} {"signature":"override fun serialize ( encoder : Encoder , value : WithUnsigned )","body":"{ val ce = encoder . beginStructure ( descriptor ) ce . encodeInlineElement ( descriptor , ) . encodeInt ( value . u . toInt ( ) ) ce . endStructure ( descriptor ) }","docstring":""} {"signature":"override fun deserialize ( decoder : Decoder ) : WithUnsigned","body":"{ val cd = decoder . beginStructure ( descriptor ) var u : UInt = . toUInt ( ) loop @ while ( true ) { u = when ( val i = cd . decodeElementIndex ( descriptor ) ) { -> cd . decodeInlineElement ( descriptor , i ) . decodeInt ( ) . toUInt ( ) else -> break@loop } } cd . endStructure ( descriptor ) return WithUnsigned ( u ) }","docstring":""} {"signature":"@ Test fun wrapper ( )","body":"{ val w = WithUnsigned ( Int . MAX_VALUE . toUInt ( ) + . toUInt ( ) ) assertStringFormAndRestored < WithUnsigned > ( \"\"\"\"\"\" , w , WithUnsignedSerializer , printResult = true ) }","docstring":""} {"signature":"fun functionInFileFacade ( )","body":"= \"\"","docstring":""} {"signature":"override fun doTestByMainFile ( mainFile : KtFile , mainModule : KtTestModule , testServices : TestServices )","body":"{ val context = testServices . expressionMarkerProvider . getElementOfTypeAtCaret < KtProperty > ( mainFile ) analyseForTest ( context ) { declaration -> val propertySymbol = ( declaration as KtProperty ) . getVariableSymbol ( ) as KtPropertySymbol val setterSymbol = propertySymbol . setter ! ! val setterParameterSymbol = setterSymbol . valueParameters . single ( ) testServices . assertions . assertEquals ( propertySymbol , setterSymbol . getContainingSymbol ( ) ) testServices . assertions . assertEquals ( setterSymbol , setterParameterSymbol . getContainingSymbol ( ) ) } }","docstring":""} {"signature":"fun x ( )","body":"{ val z = kotlin . tex < caret > t . charset ( \"\" ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val z1 = S ( \"\" ) val z2 = S ( \"\" ) val z3 = S ( \"\" ) val z4 = S ( \"\" ) val outer = :: Outer . call ( z1 , z2 ) assertEquals ( z1 , outer . z1 ) assertEquals ( z2 , outer . z2 ) assertEquals ( \"\" , Outer :: Inner . call ( outer , z3 , z4 ) . test ) assertEquals ( \"\" , outer :: Inner . call ( z2 , z4 ) . test ) val inlineNonNullOuter = InlineNonNullOuter ( z1 ) assertEquals ( \"\" , InlineNonNullOuter :: Inner . call ( inlineNonNullOuter , z2 , z3 ) . test ) assertEquals ( \"\" , inlineNonNullOuter :: Inner . call ( z2 , z2 ) . test ) val inlineNullableOuter = InlineNullableOuter ( z1 ) assertEquals ( \"\" , InlineNullableOuter :: Inner . call ( inlineNullableOuter , z2 , z3 ) . test ) assertEquals ( \"\" , inlineNullableOuter :: Inner . call ( z2 , z2 ) . test ) return \"\" }","docstring":""} {"signature":"override fun handleCommandAsTag ( command : Command , body : Element , input : File , output : File )","body":"{ command as ResolveLinkCommand val link = externalModuleLinkResolver . resolve ( command . dri , output ) if ( link == null ) { val children = body . childNodes ( ) . toList ( ) val attributes = Attributes ( ) . apply { put ( \"\" , command . dri . toString ( ) ) } val el = Element ( Tag . valueOf ( \"\" ) , \"\" , attributes ) . apply { children . forEach { ch -> appendChild ( ch ) } } body . replaceWith ( el ) return } val attributes = Attributes ( ) . apply { put ( \"\" , link ) } val children = body . childNodes ( ) . toList ( ) val el = Element ( Tag . valueOf ( \"\" ) , \"\" , attributes ) . apply { children . forEach { ch -> appendChild ( ch ) } } body . replaceWith ( el ) }","docstring":""} {"signature":"override fun canHandle ( command : Command ) : Boolean","body":"= command is ResolveLinkCommand","docstring":""} {"signature":"override fun asStringForDebugging ( ) : String","body":"= withValidityAssertion { coneType . renderForDebugging ( ) }","docstring":""} {"signature":"override fun equals ( other : Any ? )","body":"= typeEquals ( other )","docstring":""} {"signature":"override fun hashCode ( )","body":"= typeHashcode ( )","docstring":""} {"signature":"public operator fun invoke ( input : RootPageNode ) : RootPageNode","body":"public operator fun invoke ( input : RootPageNode ) : RootPageNode","docstring":""} {"signature":"fun box ( ) : String","body":"{ val local = ShortWrapper ( ) if ( global . x + local . x != ) return \"\" global . x = local . x = return if ( global . x + local . x != ) return \"\" else \"\" }","docstring":""} {"signature":"fun shouldReportNoBody ( declaration : FirCallableDeclaration , context : CheckerContext ) : Boolean","body":"fun shouldReportNoBody ( declaration : FirCallableDeclaration , context : CheckerContext ) : Boolean","docstring":""} {"signature":"private fun genInvoke ( type : Type ? , v : InstructionAdapter )","body":"{ when ( type ) { Type . INT_TYPE , Type . CHAR_TYPE -> v . invokestatic ( IntrinsicMethods . INTRINSICS_CLASS_NAME , \"\" , \"\" , false ) Type . LONG_TYPE -> v . lcmp ( ) Type . FLOAT_TYPE -> v . invokestatic ( \"\" , \"\" , \"\" , false ) Type . DOUBLE_TYPE -> v . invokestatic ( \"\" , \"\" , \"\" , false ) Type . BOOLEAN_TYPE -> v . invokestatic ( \"\" , \"\" , \"\" , false ) else -> throw UnsupportedOperationException ( ) } }","docstring":""} {"signature":"override fun toCallable ( method : CallableMethod ) : Callable","body":"{ val parameterType = comparisonOperandType ( method . dispatchReceiverType ? : method . extensionReceiverType , method . parameterTypes . single ( ) ) return createBinaryIntrinsicCallable ( method . returnType , parameterType , parameterType , null ) { genInvoke ( parameterType , it ) } }","docstring":""} {"signature":"fun foo ( )","body":"= ","docstring":""} {"signature":"fun B . bar ( )","body":"= ","docstring":""} {"signature":"fun foo ( )","body":"= ","docstring":""} {"signature":"fun A . bar ( )","body":"= ","docstring":""} {"signature":"fun test ( a : A , b : B )","body":"{ with ( b ) { with ( a ) { foo ( ) bar ( ) } } with ( a ) { with ( b ) { foo ( ) bar ( ) } } }","docstring":""} {"signature":"override fun toString ( ) : String","body":"{ return \"\" }","docstring":""} {"signature":"fun lol ( )","body":"{ }","docstring":""} {"signature":"inline fun < T > foo ( block : ( ) -> T ) : T","body":"= block ( )","docstring":""} {"signature":"fun baz ( )","body":"{ val x : String = foo { val task : String ? = null if ( task == null ) { return } else task } }","docstring":""} {"signature":"@ Parameterized . Parameters ( name = \"\" ) @ JvmStatic fun params ( ) : Collection < Array < Any > >","body":"= listOf ( , , Channel . UNLIMITED , Channel . CONFLATED ) . map { arrayOf < Any > ( it ) }","docstring":""} {"signature":"@ Test fun testEmpty ( )","body":"= runBlocking { expect ( ) val actor = actor < String > ( capacity = capacity ) { expect ( ) } actor as Job assertTrue ( actor . isActive ) assertFalse ( actor . isCompleted ) assertFalse ( actor . isClosedForSend ) expect ( ) yield ( ) assertFalse ( actor . isActive ) assertTrue ( actor . isCompleted ) assertTrue ( actor . isClosedForSend ) finish ( ) }","docstring":""} {"signature":"@ Test fun testOne ( )","body":"= runBlocking { expect ( ) val actor = actor < String > ( capacity = capacity ) { expect ( ) assertEquals ( \"\" , receive ( ) ) expect ( ) } actor as Job assertTrue ( actor . isActive ) assertFalse ( actor . isCompleted ) assertFalse ( actor . isClosedForSend ) expect ( ) yield ( ) assertTrue ( actor . isActive ) assertFalse ( actor . isCompleted ) assertFalse ( actor . isClosedForSend ) expect ( ) actor . send ( \"\" ) expect ( ) yield ( ) assertFalse ( actor . isActive ) assertTrue ( actor . isCompleted ) assertTrue ( actor . isClosedForSend ) finish ( ) }","docstring":""} {"signature":"@ Test fun testCloseWithoutCause ( )","body":"= runTest { val actor = actor < Int > ( capacity = capacity ) { val element = channel . receive ( ) expect ( ) assertEquals ( , element ) val next = channel . receiveCatching ( ) assertNull ( next . exceptionOrNull ( ) ) expect ( ) } expect ( ) actor . send ( ) yield ( ) actor . close ( ) yield ( ) finish ( ) }","docstring":""} {"signature":"@ Test fun testCloseWithCause ( )","body":"= runTest { val actor = actor < Int > ( capacity = capacity ) { val element = channel . receive ( ) expect ( ) require ( element == ) try { channel . receive ( ) } catch ( e : IOException ) { expect ( ) } } expect ( ) actor . send ( ) yield ( ) actor . close ( IOException ( ) ) yield ( ) finish ( ) }","docstring":""} {"signature":"@ Test fun testCancelEnclosingJob ( )","body":"= runTest { val job = async { actor < Int > ( capacity = capacity ) { expect ( ) channel . receive ( ) expectUnreached ( ) } } yield ( ) yield ( ) expect ( ) yield ( ) job . cancel ( ) try { job . await ( ) expectUnreached ( ) } catch ( e : CancellationException ) { assertTrue ( e . message ? . contains ( \"\" ) ? : false ) } finish ( ) }","docstring":""} {"signature":"@ Test fun testThrowingActor ( )","body":"= runTest ( unhandled = listOf ( { e -> e is IllegalArgumentException } ) ) { val parent = Job ( ) val actor = actor < Int > ( parent ) { channel . consumeEach { expect ( ) throw IllegalArgumentException ( ) } } actor . send ( ) parent . cancel ( ) parent . join ( ) finish ( ) }","docstring":""} {"signature":"@ Test fun testChildJob ( )","body":"= runTest { val parent = Job ( ) actor < Int > ( parent ) { launch { try { delay ( Long . MAX_VALUE ) } finally { expect ( ) } } } yield ( ) yield ( ) parent . cancel ( ) parent . join ( ) finish ( ) }","docstring":""} {"signature":"@ Test fun testCloseFreshActor ( )","body":"= runTest { for ( start in CoroutineStart . values ( ) ) { val job = launch { val actor = actor < Int > ( start = start ) { for ( i in channel ) { } } actor . close ( ) } job . join ( ) } }","docstring":""} {"signature":"@ Test fun testCancelledParent ( )","body":"= runTest ( { it is CancellationException } ) { cancel ( ) expect ( ) actor < Int > { expectUnreached ( ) } finish ( ) }","docstring":""} {"signature":"fun I . foo ( )","body":"= \"\"","docstring":""} {"signature":"fun I . bar ( )","body":"{ ( this as C ) . foo ( ) }","docstring":""} {"signature":"public fun recursivePrintGroupInHDF5File ( hdfFile : HdfFile , group : Group )","body":"{ for ( node in group ) { println ( \"\" + node . name ) for ( ( key , value ) in node . attributes ) { println ( \"\" ) if ( value . isScalar ) { println ( \"\" + value . data . toString ( ) ) } else if ( value . data is Array < * > ) { for ( i in until value . size . toInt ( ) ) println ( \"\" + ( value . data as Array < * > ) [ i ] . toString ( ) ) } } if ( node is Group ) { recursivePrintGroupInHDF5File ( hdfFile , node ) } else { println ( \"\" + node . path ) val dataset = hdfFile . getDatasetByPath ( node . path ) val dims = arrayOf ( dataset . dimensions ) println ( \"\" + dims . contentDeepToString ( ) ) } } }","docstring":"/**\n * Helper function to print out file in hdf5 format for debugging purposes.\n */"} {"signature":"fun fooInt ( b : ( Int , Int ) -> String ) : String","body":"{ return b ( , ) }","docstring":""} {"signature":"fun fooULong ( b : ( ULong , ULong ) -> String ) : String","body":"{ return b ( , ) }","docstring":""} {"signature":"fun barInt ( i : Int ) : String","body":"{ return \"\" . get ( i ) . toString ( ) }","docstring":""} {"signature":"fun barULong ( l : ULong ) : String","body":"{ return \"\" . get ( l . toInt ( ) ) . toString ( ) }","docstring":""} {"signature":"fun testInt ( ) : String","body":"{ return fooInt { from , to -> var r = \"\" for ( index in from .. to ) { r += barInt ( index ) } r } }","docstring":""} {"signature":"fun testULong ( ) : String","body":"{ return fooULong { from , to -> var r = \"\" for ( index in from .. to ) { r += barULong ( index ) } r } }","docstring":""} {"signature":"fun box ( ) : String","body":"{ val r1 = testInt ( ) if ( r1 != \"\" ) return \"\" val r2 = testULong ( ) if ( r2 != \"\" ) return \"\" return \"\" }","docstring":""} {"signature":"@ SlicedGeneratedTest ( allTools = true ) fun BuildConfigurator . testDefaultXmlTitle ( )","body":"{ addProjectWithKover { } addProjectWithKover ( \"\" ) { sourcesFrom ( \"\" ) } run ( \"\" ) { subproject ( \"\" ) { file ( \"\" ) { assertContains ( readText ( ) , \"\" ) } } } }","docstring":""} {"signature":"@ SlicedGeneratedTest ( allTools = true ) fun BuildConfigurator . testCustomXmlTitle ( )","body":"{ val title = \"\" addProjectWithKover { } addProjectWithKover ( \"\" ) { sourcesFrom ( \"\" ) kover { reports { total { xml { this . title . set ( \"\" ) } } } } } run ( \"\" ) { subproject ( \"\" ) { file ( \"\" ) { assertContains ( readText ( ) , title ) } } } }","docstring":""} {"signature":"fun valueOfOrNull ( string : String ) : ReplEscapeType ?","body":"{ return try { valueOf ( string ) } catch ( e : IllegalArgumentException ) { null } }","docstring":""} {"signature":"override fun lower ( irFile : IrFile )","body":"{ irFile . transformChildrenVoid ( Transformer ( ) ) }","docstring":""} {"signature":"private fun IrExpression . irNot ( )","body":"= IrCallImpl . fromSymbolOwner ( startOffset , endOffset , booleanNot ) . apply { dispatchReceiver = this@irNot }","docstring":""} {"signature":"private fun irAndAnd ( left : IrExpression , right : IrExpression ) : IrExpression","body":"= IrCallImpl . fromSymbolOwner ( right . startOffset , right . endOffset , context . irBuiltIns . andandSymbol ) . apply { putValueArgument ( , left ) putValueArgument ( , right ) }","docstring":""} {"signature":"private fun IrExpression . irEqEqNull ( ) : IrExpression","body":"= IrCallImpl . fromSymbolOwner ( this . startOffset , this . endOffset , context . irBuiltIns . eqeqSymbol ) . apply { putValueArgument ( , this @ irEqEqNull ) putValueArgument ( , IrConstImpl . constNull ( startOffset , endOffset , context . irBuiltIns . nothingNType ) ) }","docstring":""} {"signature":"private fun IrExpression . wrapWithBlock ( origin : IrStatementOrigin ? ) : IrBlock","body":"= IrBlockImpl ( this . startOffset , this . endOffset , this . type , origin , listOf ( this ) )","docstring":""} {"signature":"private fun irTrue ( startOffset : Int , endOffset : Int )","body":"= IrConstImpl . boolean ( startOffset , endOffset , context . irBuiltIns . booleanType , true )","docstring":""} {"signature":"private fun irFalse ( startOffset : Int , endOffset : Int )","body":"= IrConstImpl . boolean ( startOffset , endOffset , context . irBuiltIns . booleanType , false )","docstring":""} {"signature":"private fun irValNotNull ( startOffset : Int , endOffset : Int , irVariable : IrVariable ) : IrExpression","body":"= if ( irVariable . type . isJvmNullable ( ) || irVariable . initializer ? . isConstantLike != true ) IrGetValueImpl ( startOffset , endOffset , irVariable . symbol ) . irEqEqNull ( ) . irNot ( ) else irTrue ( startOffset , endOffset )","docstring":""} {"signature":"private fun IrType . isJvmNullable ( ) : Boolean","body":"= isNullable ( ) || hasAnnotation ( JvmAnnotationNames . ENHANCED_NULLABILITY_ANNOTATION )","docstring":""} {"signature":"private fun IrType . isJvmPrimitive ( ) : Boolean","body":"= ( isBoolean ( ) || isByte ( ) || isShort ( ) || isInt ( ) || isLong ( ) || isChar ( ) || isFloat ( ) || isDouble ( ) ) && ! hasAnnotation ( JvmAnnotationNames . ENHANCED_NULLABILITY_ANNOTATION )","docstring":""} {"signature":"override fun visitBlock ( expression : IrBlock ) : IrExpression","body":"{ expression . transformChildrenVoid ( ) val safeCallInfo = expression . parseSafeCall ( context . irBuiltIns ) if ( safeCallInfo != null ) { return foldSafeCall ( safeCallInfo ) } val elvisInfo = expression . parseElvis ( context . irBuiltIns ) if ( elvisInfo != null ) { return foldElvis ( elvisInfo ) } return expression }","docstring":""} {"signature":"private fun foldSafeCall ( safeCallInfo : SafeCallInfo ) : IrExpression","body":"{ val safeCallBlock = safeCallInfo . block val startOffset = safeCallBlock . startOffset val endOffset = safeCallBlock . endOffset val safeCallType = safeCallBlock . type val safeCallTmpVal = safeCallInfo . tmpVal val tmpValInitializer = safeCallTmpVal . initializer if ( tmpValInitializer is IrBlock && tmpValInitializer . origin == JvmLoweredStatementOrigin . FOLDED_SAFE_CALL ) { val foldedBlock : IrBlock = tmpValInitializer val foldedWhen = foldedBlock . statements [ ] as IrWhen val safeReceiverCondition = foldedWhen . branches [ ] . condition val safeReceiverResult = foldedWhen . branches [ ] . result safeCallTmpVal . initializer = safeReceiverResult safeCallTmpVal . type = safeReceiverResult . type val foldedConditionPart = IrCompositeImpl ( startOffset , endOffset , context . irBuiltIns . booleanType , null , listOf < IrStatement > ( safeCallTmpVal , irValNotNull ( startOffset , endOffset , safeCallTmpVal ) ) ) foldedBlock . type = safeCallType foldedWhen . type = safeCallType foldedWhen . branches [ ] . condition = irAndAnd ( safeReceiverCondition , foldedConditionPart ) foldedWhen . branches [ ] . result = safeCallInfo . ifNotNullBranch . result return foldedBlock } else { val foldedCondition = IrCompositeImpl ( startOffset , endOffset , context . irBuiltIns . booleanType , null , listOf < IrStatement > ( safeCallTmpVal , irValNotNull ( startOffset , endOffset , safeCallTmpVal ) ) ) val safeCallResult = safeCallInfo . ifNotNullBranch . result val nullResult = safeCallInfo . ifNullBranch . result val foldedWhen = IrWhenImpl ( startOffset , endOffset , safeCallType , JvmLoweredStatementOrigin . FOLDED_SAFE_CALL , listOf ( IrBranchImpl ( startOffset , endOffset , foldedCondition , safeCallResult ) , IrBranchImpl ( startOffset , endOffset , irTrue ( startOffset , endOffset ) , nullResult ) ) ) return foldedWhen . wrapWithBlock ( JvmLoweredStatementOrigin . FOLDED_SAFE_CALL ) } }","docstring":""} {"signature":"private fun foldElvis ( elvisInfo : ElvisInfo ) : IrExpression","body":"{ val elvisLhs = elvisInfo . elvisLhs val elvisBlock = elvisInfo . block val startOffset = elvisBlock . startOffset val endOffset = elvisBlock . endOffset val elvisType = elvisBlock . type val elvisTmpVal = elvisInfo . tmpVal when { elvisLhs is IrBlock && elvisLhs . origin == JvmLoweredStatementOrigin . FOLDED_SAFE_CALL -> { val safeCallWhen = elvisLhs . statements [ ] as IrWhen val safeCallCondition = safeCallWhen . branches [ ] . condition val safeCallResult = safeCallWhen . branches [ ] . result elvisTmpVal . initializer = safeCallResult elvisTmpVal . type = safeCallResult . type val foldedConditionPart = IrCompositeImpl ( startOffset , endOffset , context . irBuiltIns . booleanType , null , listOf < IrStatement > ( elvisTmpVal , irValNotNull ( startOffset , endOffset , elvisTmpVal ) ) ) val branches = ArrayList < IrBranch > ( ) branches . add ( IrBranchImpl ( startOffset , endOffset , irAndAnd ( safeCallCondition , foldedConditionPart ) , IrGetValueImpl ( startOffset , endOffset , elvisTmpVal . symbol ) ) ) val elvisRhs = elvisInfo . elvisRhs if ( elvisRhs . isFoldedSafeCallWithNonNullResult ( ) ) { val rhsInnerWhen = ( elvisRhs as IrBlock ) . statements [ ] as IrWhen branches . addAll ( rhsInnerWhen . branches ) } else { branches . add ( IrBranchImpl ( startOffset , endOffset , irTrue ( startOffset , endOffset ) , elvisInfo . elvisRhs ) ) } return IrWhenImpl ( startOffset , endOffset , elvisType , JvmLoweredStatementOrigin . FOLDED_ELVIS , branches ) . wrapWithBlock ( JvmLoweredStatementOrigin . FOLDED_ELVIS ) } elvisLhs is IrBlock && elvisLhs . origin == JvmLoweredStatementOrigin . FOLDED_ELVIS -> { val innerElvisWhen = elvisLhs . statements [ ] as IrWhen val innerElvisLastBranch = innerElvisWhen . branches . last ( ) val innerElvisRhs = innerElvisLastBranch . result elvisTmpVal . initializer = innerElvisRhs elvisTmpVal . type = innerElvisRhs . type val newCondition = IrCompositeImpl ( startOffset , endOffset , context . irBuiltIns . booleanType , null , listOf ( elvisTmpVal , irValNotNull ( startOffset , endOffset , elvisTmpVal ) ) ) innerElvisLastBranch . condition = newCondition innerElvisLastBranch . result = IrGetValueImpl ( startOffset , endOffset , elvisTmpVal . symbol ) innerElvisWhen . branches . add ( IrBranchImpl ( startOffset , endOffset , irTrue ( startOffset , endOffset ) , elvisInfo . elvisRhs ) ) innerElvisWhen . type = elvisType return innerElvisWhen . wrapWithBlock ( JvmLoweredStatementOrigin . FOLDED_ELVIS ) } else -> { val newCondition = IrCompositeImpl ( startOffset , endOffset , context . irBuiltIns . booleanType , null , listOf ( elvisTmpVal , irValNotNull ( startOffset , endOffset , elvisTmpVal ) ) ) val foldedWhen = IrWhenImpl ( startOffset , endOffset , elvisType , JvmLoweredStatementOrigin . FOLDED_ELVIS , listOf ( IrBranchImpl ( startOffset , endOffset , newCondition , IrGetValueImpl ( startOffset , endOffset , elvisTmpVal . symbol ) ) , IrBranchImpl ( startOffset , endOffset , irTrue ( startOffset , endOffset ) , elvisInfo . elvisRhs ) ) ) return foldedWhen . wrapWithBlock ( JvmLoweredStatementOrigin . FOLDED_ELVIS ) } } }","docstring":""} {"signature":"private fun IrExpression . isFoldedSafeCallWithNonNullResult ( ) : Boolean","body":"{ if ( this !is IrBlock ) return false if ( this . origin != JvmLoweredStatementOrigin . FOLDED_SAFE_CALL ) return false val innerWhen = this . statements [ ] as? IrWhen ? : return false val safeCallResult = innerWhen . branches [ ] . result return ! safeCallResult . type . isJvmNullable ( ) }","docstring":""} {"signature":"override fun visitCall ( expression : IrCall ) : IrExpression","body":"{ expression . transformChildrenVoid ( ) if ( expression . symbol == context . irBuiltIns . eqeqSymbol ) { val startOffset = expression . startOffset val endOffset = expression . endOffset val left = expression . getValueArgument ( ) ? : throw AssertionError ( \"\" ) val right = expression . getValueArgument ( ) ? : throw AssertionError ( \"\" ) if ( left is IrBlock && left . origin == JvmLoweredStatementOrigin . FOLDED_SAFE_CALL && right . type . isJvmPrimitive ( ) ) { val safeCallWhen = left . statements [ ] as IrWhen val safeCallResult = safeCallWhen . branches [ ] . result expression . putValueArgument ( , safeCallResult ) safeCallWhen . branches [ ] . result = expression safeCallWhen . branches [ ] . result = irFalse ( startOffset , endOffset ) safeCallWhen . type = expression . type return safeCallWhen . wrapWithBlock ( origin = null ) } if ( right is IrBlock && right . origin == JvmLoweredStatementOrigin . FOLDED_SAFE_CALL && left . type . isJvmPrimitive ( ) ) { val safeCallWhen = right . statements [ ] as IrWhen val safeCallResult = safeCallWhen . branches [ ] . result expression . putValueArgument ( , safeCallResult ) safeCallWhen . branches [ ] . result = expression safeCallWhen . branches [ ] . result = irFalse ( startOffset , endOffset ) safeCallWhen . type = expression . type return safeCallWhen . wrapWithBlock ( origin = null ) } } return expression }","docstring":""} {"signature":"internal fun IrBlock . parseSafeCall ( irBuiltIns : IrBuiltIns ) : SafeCallInfo ?","body":"{ if ( this . statements . size != ) return null val tmpVal = this . statements [ ] as? IrVariable ? : return null val whenExpr = this . statements [ ] as? IrWhen ? : return null if ( whenExpr . branches . size != ) return null val ifNullBranch = whenExpr . branches [ ] val ifNullBranchCondition = ifNullBranch . condition if ( ifNullBranchCondition !is IrCall ) return null if ( ifNullBranchCondition . symbol != irBuiltIns . eqeqSymbol ) return null val arg0 = ifNullBranchCondition . getValueArgument ( ) if ( arg0 !is IrGetValue || arg0 . symbol != tmpVal . symbol ) return null val arg1 = ifNullBranchCondition . getValueArgument ( ) if ( arg1 !is IrConst < * > || arg1 . value != null ) return null val ifNullBranchResult = ifNullBranch . result if ( ifNullBranchResult !is IrConst < * > || ifNullBranchResult . value != null ) return null val ifNotNullBranch = whenExpr . branches [ ] return SafeCallInfo ( this , tmpVal , ifNullBranch , ifNotNullBranch ) }","docstring":""} {"signature":"internal fun IrBlock . parseElvis ( irBuiltIns : IrBuiltIns ) : ElvisInfo ?","body":"{ if ( this . statements . size != ) return null val tmpVal = this . statements [ ] as? IrVariable ? : return null val whenExpr = this . statements [ ] as? IrWhen ? : return null if ( whenExpr . branches . size != ) return null val elvisLhs = tmpVal . initializer ? : return null val ifNullBranch = whenExpr . branches [ ] val ifNullBranchCondition = ifNullBranch . condition if ( ifNullBranchCondition !is IrCall ) return null if ( ifNullBranchCondition . symbol != irBuiltIns . eqeqSymbol ) return null val arg0 = ifNullBranchCondition . getValueArgument ( ) if ( arg0 !is IrGetValue || arg0 . symbol != tmpVal . symbol ) return null val arg1 = ifNullBranchCondition . getValueArgument ( ) if ( arg1 !is IrConst < * > || arg1 . value != null ) return null val elvisRhs = ifNullBranch . result val ifNonNullBranch = whenExpr . branches [ ] val ifNonNullBranchResult = ifNonNullBranch . result if ( ifNonNullBranchResult !is IrGetValue || ifNonNullBranchResult . symbol != tmpVal . symbol ) return null return ElvisInfo ( this , tmpVal , elvisLhs , elvisRhs ) }","docstring":""} {"signature":"override fun resolveSymbolWithPrefix ( parts : List < FirQualifierPart > , prefix : ClassId ) : FirClassifierSymbol < * > ?","body":"{ val symbolProvider = session . symbolProvider val fqName = ClassId ( prefix . packageFqName , parts . drop ( ) . fold ( prefix . relativeClassName ) { result , suffix -> result . child ( suffix . name ) } , isLocal = false ) return symbolProvider . getClassLikeSymbolByClassId ( fqName ) }","docstring":""} {"signature":"override fun resolveSymbol ( parts : List < FirQualifierPart > ) : FirClassifierSymbol < * > ?","body":"{ if ( parts . firstOrNull ( ) ? . name ? . asString ( ) == ROOT_PREFIX_FOR_IDE_RESOLUTION_MODE ) { return resolveSymbol ( parts . drop ( ) ) } val firProvider = session . symbolProvider if ( parts . isNotEmpty ( ) ) { val lastPart = mutableListOf < FirQualifierPart > ( ) val firstPart = parts . toMutableList ( ) while ( firstPart . isNotEmpty ( ) ) { lastPart . add ( , firstPart . last ( ) ) firstPart . removeAt ( firstPart . lastIndex ) val fqName = ClassId ( firstPart . toFqName ( ) , lastPart . toFqName ( ) , isLocal = false ) val foundSymbol = firProvider . getClassLikeSymbolByClassId ( fqName ) if ( foundSymbol != null ) { return foundSymbol } } } return null }","docstring":""} {"signature":"private fun List < FirQualifierPart > . toFqName ( )","body":"= fold ( FqName . ROOT ) { a , b -> a . child ( b . name ) }","docstring":""} {"signature":"override fun setUp ( )","body":"{ tempDir = createTempDirectory ( ClassPathTest :: class . simpleName ! ! ) super . setUp ( ) }","docstring":""} {"signature":"override fun tearDown ( )","body":"{ super . tearDown ( ) tempDir . toFile ( ) . deleteRecursively ( ) }","docstring":""} {"signature":"@ Test fun testExtractFromFat ( )","body":"{ val collection = createTempFile ( directory = tempDir , \"\" , \"\" ) . apply { createCollectionJar ( emulatedCollectionFiles , \"\" ) } val cl = URLClassLoader ( arrayOf ( collection . toUri ( ) . toURL ( ) ) , null ) val cp = classpathFromClassloader ( cl , true ) Assert . assertTrue ( cp != null && cp . isNotEmpty ( ) ) testUnpackedCollection ( cp ! ! , emulatedCollectionFiles ) }","docstring":""} {"signature":"@ Test fun testDetectClasspathFromResources ( )","body":"{ val root1 = createTempDirectory ( directory = tempDir , \"\" ) val jar = createTempFile ( directory = tempDir , \"\" , \"\" ) . apply { createJarWithManifest ( ) } val cl = URLClassLoader ( ( emulatedClasspath . map { ( root1 / it ) . apply { createDirectories ( ) } . toUri ( ) . toURL ( ) } + jar . toUri ( ) . toURL ( ) ) . toTypedArray ( ) , null ) val cp = cl . classPathFromTypicalResourceUrls ( ) . toList ( ) . map { it . canonicalFile } Assert . assertTrue ( cp . contains ( jar . toFile ( ) . canonicalFile ) ) for ( el in emulatedClasspath ) { Assert . assertTrue ( cp . contains ( ( root1 / el ) . toFile ( ) . canonicalFile ) ) } }","docstring":""} {"signature":"@ Test fun testFilterClasspath ( )","body":"{ val tempDir = createTempDirectory ( ) . toRealPath ( ) try { val files = listOf ( ( tempDir / \"\" ) , ( tempDir / \"\" ) , ( tempDir / \"\" ) ) files . forEach { it . createDirectories ( ) } val classloader = URLClassLoader ( files . map { it . toUri ( ) . toURL ( ) } . toTypedArray ( ) , null ) val classpath = scriptCompilationClasspathFromContextOrNull ( \"\" , classLoader = classloader ) ! ! . map { it . toPath ( ) . relativeTo ( tempDir ) } Assert . assertEquals ( files . dropLast ( ) . map { it . relativeTo ( tempDir ) } , classpath ) } finally { tempDir . toFile ( ) . deleteRecursively ( ) } }","docstring":""} {"signature":"@ Test fun testClasspathFromClass ( )","body":"{ val cpFromThis = classpathFromClass ( this :: class ) val expectedSuffix = File ( \"\" ) . path assertTrue ( \"\" , cpFromThis ! ! . first ( ) . absoluteFile . path . endsWith ( expectedSuffix ) ) }","docstring":""} {"signature":"fun Path . createCollectionJar ( fileNames : Array < String > , infDirName : String )","body":"{ this . outputStream ( ) . use { fileStream -> val jarStream = JarOutputStream ( fileStream ) jarStream . putNextEntry ( JarEntry ( \"\" ) ) jarStream . putNextEntry ( JarEntry ( \"\" ) ) for ( name in fileNames ) { jarStream . putNextEntry ( JarEntry ( \"\" ) ) jarStream . write ( name . toByteArray ( ) ) } jarStream . finish ( ) } }","docstring":""} {"signature":"fun testUnpackedCollection ( classpath : List < File > , fileNames : Array < String > )","body":"{ fun List < String > . checkFiles ( root : File ) = forEach { val file = File ( root , it ) Assert . assertTrue ( file . exists ( ) ) Assert . assertEquals ( it , file . readText ( ) ) } val ( classes , jars ) = fileNames . partition { it . startsWith ( \"\" ) } val ( cpClasses , cpJars ) = classpath . partition { it . isDirectory && it . name == \"\" } Assert . assertTrue ( cpClasses . size == ) classes . checkFiles ( cpClasses . first ( ) . parentFile ) jars . checkFiles ( cpJars . first ( ) . parentFile . parentFile ) }","docstring":""} {"signature":"fun Path . createJarWithManifest ( )","body":"{ this . outputStream ( ) . use { fileStream -> val jarStream = JarOutputStream ( fileStream , Manifest ( ) ) jarStream . finish ( ) } }","docstring":""} {"signature":"abstract fun getExportChecker ( compatibleMode : Boolean ) : KotlinExportChecker < D >","body":"abstract fun getExportChecker ( compatibleMode : Boolean ) : KotlinExportChecker < D >","docstring":""} {"signature":"abstract fun getMangleComputer ( mode : MangleMode , compatibleMode : Boolean ) : KotlinMangleComputer < D >","body":"abstract fun getMangleComputer ( mode : MangleMode , compatibleMode : Boolean ) : KotlinMangleComputer < D >","docstring":""} {"signature":"inline fun < T > mrun ( block : ( ) -> T )","body":"= block ( )","docstring":""} {"signature":"fun bar ( o : String ) : String","body":"{ val callable = mrun { fun localAnonymousFun ( k : String ) : String { val obj = object { fun foo ( ) = o + k } return obj . foo ( ) } :: localAnonymousFun } return callable ( \"\" ) }","docstring":""} {"signature":"fun box ( )","body":"= bar ( \"\" )","docstring":""} {"signature":"operator fun next ( )","body":"= ","docstring":""} {"signature":"operator fun iterator ( ) : It","body":"= It ( )","docstring":""} {"signature":"operator fun It . hasNext ( )","body":"= if ( hasNext ) { hasNext = false ; true } else false","docstring":""} {"signature":"fun test ( )","body":"{ for ( i in C ( ) ) { foo ( i ) } }","docstring":""} {"signature":"fun foo ( x : Int )","body":"{ }","docstring":""} {"signature":"fun box ( ) : String","body":"{ X ( ) . test ( ) return \"\" }","docstring":""} {"signature":"public fun encodeJsonElement ( element : JsonElement )","body":"public fun encodeJsonElement ( element : JsonElement )","docstring":"/**\n * Appends the given JSON [element] to the current output.\n * This method is allowed to invoke only as the part of the whole serialization process of the class,\n * calling this method after invoking [beginStructure] or any `encode*` method will lead to unspecified behaviour\n * and may produce an invalid JSON result.\n * For example:\n * ```\n * class Holder(val value: Int, val list: List())\n *\n * // Holder serialize method\n * fun serialize(encoder: Encoder, value: Holder) {\n * // Completely okay, the whole Holder object is read\n * val jsonObject = JsonObject(...) // build a JsonObject from Holder\n * (encoder as JsonEncoder).encodeJsonElement(jsonObject) // Write it\n * }\n *\n * // Incorrect Holder serialize method\n * fun serialize(encoder: Encoder, value: Holder) {\n * val composite = encoder.beginStructure(descriptor)\n * composite.encodeSerializableElement(descriptor, 0, Int.serializer(), value.value)\n * val array = JsonArray(value.list)\n * // Incorrect, encoder is already in an intermediate state after encodeSerializableElement\n * (composite as JsonEncoder).encodeJsonElement(array)\n * composite.endStructure(descriptor)\n * // ...\n * }\n * ```\n */"} {"signature":"fun mentionedTypes ( ) : List < TypeRef >","body":"= if ( typeArguments . isEmpty ( ) ) listOf ( this ) else typeArguments . flatMap { it . type . mentionedTypes ( ) }","docstring":""} {"signature":"fun mentionedTypeRefs ( ) : List < TypeRef >","body":"= constraint ? . mentionedTypes ( ) . orEmpty ( )","docstring":""} {"signature":"fun parseTypeParameter ( typeString : String ) : TypeParameter","body":"= removeAnnotations ( typeString . trim ( ) . removePrefix ( \"\" ) ) . let { trimmed -> if ( '' in trimmed ) { val ( name , constraint ) = trimmed . split ( '' ) TypeParameter ( typeString , name . trim ( ) , parseTypeRef ( removeAnnotations ( constraint . trim ( ) ) ) ) } else { TypeParameter ( typeString , trimmed ) } }","docstring":""} {"signature":"fun parseTypeRef ( typeRef : String ) : TypeRef","body":"= typeRef . trim ( ) . run { if ( contains ( '' ) && ( endsWith ( '' ) || endsWith ( \"\" ) ) ) { val name = substringBefore ( '' ) + if ( endsWith ( \"\" ) ) \"\" else \"\" val params = substringAfter ( '' ) . substringBeforeLast ( '' ) TypeRef ( name , parseArguments ( params ) ) } else TypeRef ( this ) }","docstring":""} {"signature":"private fun parseTypeArgument ( typeParam : String ) : TypeArgument ","body":"= typeParam . trim ( ) . removePrefix ( \"\" ) . removePrefix ( \"\" ) . let { TypeArgument ( parseTypeRef ( it ) ) }","docstring":""} {"signature":"private fun parseArguments ( typeParams : String ) : List < TypeArgument >","body":"{ var restParams : String = typeParams val params = mutableListOf < TypeArgument > ( ) while ( true ) { val comma = restParams . indexOf ( '' ) if ( comma < ) { params += parseTypeArgument ( restParams ) break } else { val open = restParams . indexOf ( '' ) val close = restParams . indexOf ( '' ) if ( comma !in open .. close ) { params += parseTypeArgument ( restParams . take ( comma ) ) restParams = restParams . drop ( comma + ) } else { params += parseTypeArgument ( restParams . take ( close + ) ) val nextComma = restParams . indexOf ( '' , startIndex = close ) if ( nextComma < ) break restParams = restParams . drop ( nextComma + ) } } } return params }","docstring":""} {"signature":"private fun removeAnnotations ( typeParam : String )","body":"= typeParam . replace ( \"\"\"\"\"\" . toRegex ( ) , \"\" )","docstring":""} {"signature":"fun withEffects ( ) : String","body":"= \"\"","docstring":""} {"signature":"tailrec fun foo ( i : Int = , c : Char = '' , s : String = \"\" , b : Boolean = true , d : Double = , l : Long = , y : String = withEffects ( ) )","body":"{ foo ( i , c , s , b , d , l , y ) }","docstring":""} {"signature":"tailrec fun foo2 ( x : Int = , y : String = withEffects ( ) , z : String = Z )","body":"{ foo2 ( x , y , z ) }","docstring":""} {"signature":"tailrec fun foo3 ( y : String = withEffects ( ) )","body":"{ foo3 ( y ) }","docstring":""} {"signature":"tailrec fun foo4 ( x : String = withEffects ( ) , y : String = withEffects ( ) )","body":"{ foo4 ( x , y ) }","docstring":""} {"signature":"tailrec fun foo5 ( x : String = withEffects ( ) , y : String = withEffects ( ) , z : String = withEffects ( ) )","body":"{ foo5 ( x , y , z ) }","docstring":""} {"signature":"tailrec fun foo6 ( x : String = withEffects ( ) , y : EnumA = EnumA . A )","body":"{ foo6 ( x , y ) }","docstring":""} {"signature":"tailrec fun foo7 ( x : String = withEffects ( ) , y : KClass < out EnumA > = EnumA . A :: class )","body":"{ foo7 ( x , y ) }","docstring":""} {"signature":"override fun check ( resolvedCall : ResolvedCall < * > , reportOn : PsiElement , context : CallCheckerContext )","body":"{ val variableResolvedCall = ( resolvedCall as? VariableAsFunctionResolvedCall ) ? . variableCall ? : resolvedCall val variableDescriptor = variableResolvedCall . resultingDescriptor as? VariableDescriptor if ( variableDescriptor != null ) { checkCapturingInClosure ( variableDescriptor , context . trace , context . scope ) checkFieldInExactlyOnceLambdaInitialization ( variableDescriptor , context . trace , context . scope . ownerDescriptor , reportOn ) } }","docstring":""} {"signature":"private fun checkCapturingInClosure ( variable : VariableDescriptor , trace : BindingTrace , scope : LexicalScope )","body":"{ val variableParent = variable . containingDeclaration val scopeContainer = scope . ownerDescriptor if ( isCapturedVariable ( variableParent , scopeContainer ) ) { if ( trace . get ( CAPTURED_IN_CLOSURE , variable ) != CaptureKind . NOT_INLINE ) { trace . record ( CAPTURED_IN_CLOSURE , variable , getCaptureKind ( trace . bindingContext , scopeContainer , variableParent , variable ) ) return } } }","docstring":""} {"signature":"private fun checkFieldInExactlyOnceLambdaInitialization ( variable : VariableDescriptor , trace : BindingTrace , scopeContainer : DeclarationDescriptor , nameElement : PsiElement )","body":"{ if ( variable !is PropertyDescriptor || scopeContainer !is AnonymousFunctionDescriptor || variable . isVar ) return if ( ! isLhsOfAssignment ( nameElement as KtExpression ) ) return val scopeDeclaration = DescriptorToSourceUtils . descriptorToDeclaration ( scopeContainer ) as? KtFunction ? : return if ( scopeContainer . containingDeclaration !is ConstructorDescriptor && scopeContainer . containingDeclaration !is PropertyDescriptor ) return if ( ! isExactlyOnceContract ( trace . bindingContext , scopeDeclaration ) ) return if ( trace . bindingContext [ CAPTURED_IN_CLOSURE , variable ] == CaptureKind . NOT_INLINE ) return val ( callee , param ) = getCalleeDescriptorAndParameter ( trace . bindingContext , scopeDeclaration ) ? : return if ( callee !is FunctionDescriptor ) return if ( ! callee . isInline || ( param . isCrossinline || ! InlineUtil . isInlineParameter ( param ) ) ) { trace . report ( CAPTURED_VAL_INITIALIZATION . on ( nameElement , variable ) ) } }","docstring":""} {"signature":"private fun isLhsOfAssignment ( nameElement : KtExpression ) : Boolean","body":"{ val parent = nameElement . parent as? KtBinaryExpression ? : return false return parent . operationToken == KtTokens . EQ && parent . left == nameElement }","docstring":""} {"signature":"private fun isCapturedVariable ( variableParent : DeclarationDescriptor , scopeContainer : DeclarationDescriptor ) : Boolean","body":"{ if ( variableParent !is FunctionDescriptor || scopeContainer == variableParent ) return false if ( variableParent is ConstructorDescriptor ) { val classDescriptor = variableParent . containingDeclaration if ( scopeContainer == classDescriptor ) return false if ( scopeContainer is PropertyDescriptor && scopeContainer . containingDeclaration == classDescriptor ) return false } return true }","docstring":""} {"signature":"private fun getCaptureKind ( context : BindingContext , scopeContainer : DeclarationDescriptor , variableParent : DeclarationDescriptor , variable : VariableDescriptor ) : CaptureKind","body":"{ val scopeDeclaration = DescriptorToSourceUtils . descriptorToDeclaration ( scopeContainer ) if ( ! InlineUtil . canBeInlineArgument ( scopeDeclaration ) ) return CaptureKind . NOT_INLINE if ( InlineUtil . isInlinedArgument ( scopeDeclaration as KtFunction , context , false ) && ! isCrossinlineParameter ( context , scopeDeclaration ) ) { val scopeContainerParent = scopeContainer . containingDeclaration ? : error ( \"\" ) return if ( ! isCapturedVariable ( variableParent , scopeContainerParent ) || getCaptureKind ( context , scopeContainerParent , variableParent , variable ) == CaptureKind . INLINE_ONLY ) CaptureKind . INLINE_ONLY else CaptureKind . NOT_INLINE } val exactlyOnceContract = isExactlyOnceContract ( context , scopeDeclaration ) if ( ! exactlyOnceContract ) return CaptureKind . NOT_INLINE return if ( isArgument ( variable , variableParent ) || findDestructuredVariable ( variable , variableParent ) != null || isForLoopParameter ( variable ) || isCatchBlockParameter ( variable ) || isValInWhen ( variable ) ) { CaptureKind . NOT_INLINE } else { CaptureKind . EXACTLY_ONCE_EFFECT } }","docstring":""} {"signature":"private fun isArgument ( variable : VariableDescriptor , variableParent : DeclarationDescriptor ) : Boolean","body":"= variable is ValueParameterDescriptor && variableParent is CallableDescriptor && variableParent . valueParameters . contains ( variable )","docstring":""} {"signature":"private fun isValInWhen ( variable : VariableDescriptor ) : Boolean","body":"{ val psi = ( ( variable as? LocalVariableDescriptor ) ? . source as? KotlinSourceElement ) ? . psi ? : return false return ( psi . parent as? KtWhenExpression ) ? . let { it . subjectVariable == psi } == true }","docstring":""} {"signature":"private fun isCatchBlockParameter ( variable : VariableDescriptor ) : Boolean","body":"{ val psi = ( ( variable as? LocalVariableDescriptor ) ? . source as? KotlinSourceElement ) ? . psi ? : return false return psi . parent . parent . let { it is KtCatchClause && it . parameterList ? . parameters ? . contains ( psi ) == true } }","docstring":""} {"signature":"private fun isForLoopParameter ( variable : VariableDescriptor ) : Boolean","body":"{ val psi = ( ( variable as? LocalVariableDescriptor ) ? . source as? KotlinSourceElement ) ? . psi ? : return false if ( psi . parent is KtForExpression ) { val forExpression = psi . parent as KtForExpression return forExpression . loopParameter == psi } else if ( psi . parent is KtDestructuringDeclaration ) { val parameter = psi . parent . parent as? KtParameter ? : return false val forExpression = parameter . parent as? KtForExpression ? : return false return forExpression . loopParameter == parameter } return false }","docstring":""} {"signature":"private fun isExactlyOnceParameter ( function : DeclarationDescriptor , parameter : VariableDescriptor ) : Boolean","body":"{ if ( function !is CallableDescriptor ) return false if ( parameter !is ValueParameterDescriptor ) return false val contractDescription = function . getUserData ( ContractProviderKey ) ? . getContractDescription ( ) ? : return false val effect = contractDescription . effects . filterIsInstance < CallsEffectDeclaration > ( ) . find { it . variableReference . descriptor == parameter . original } ? : return false return effect . kind == EventOccurrencesRange . EXACTLY_ONCE }","docstring":""} {"signature":"private fun isExactlyOnceContract ( bindingContext : BindingContext , argument : KtFunction ) : Boolean","body":"{ val ( descriptor , parameter ) = getCalleeDescriptorAndParameter ( bindingContext , argument ) ? : return false return isExactlyOnceParameter ( descriptor , parameter ) }","docstring":""} {"signature":"private fun getCalleeDescriptorAndParameter ( bindingContext : BindingContext , argument : KtFunction ) : Pair < CallableDescriptor , ValueParameterDescriptor > ?","body":"{ val call = KtPsiUtil . getParentCallIfPresent ( argument ) ? : return null val resolvedCall = call . getResolvedCall ( bindingContext ) ? : return null val descriptor = resolvedCall . resultingDescriptor val valueArgument = resolvedCall . call . getValueArgumentForExpression ( argument ) ? : return null val mapping = resolvedCall . getArgumentMapping ( valueArgument ) as? ArgumentMatch ? : return null val parameter = mapping . valueParameter return descriptor to parameter }","docstring":""} {"signature":"private fun isCrossinlineParameter ( bindingContext : BindingContext , argument : KtFunction ) : Boolean","body":"{ return getCalleeDescriptorAndParameter ( bindingContext , argument ) ? . second ? . isCrossinline == true }","docstring":""} {"signature":"fun findDestructuredVariable ( variable : VariableDescriptor , variableParent : DeclarationDescriptor ) : ValueParameterDescriptor ?","body":"= if ( variable is LocalVariableDescriptor && variableParent is AnonymousFunctionDescriptor ) { variableParent . valueParameters . find { it is ValueParameterDescriptorImpl . WithDestructuringDeclaration && it . destructuringVariables . contains ( variable ) } } else null","docstring":""} {"signature":"override fun check ( declaration : FirFile , context : CheckerContext , reporter : DiagnosticReporter )","body":"{ declaration . packageDirective . source ? . forEachChildOfType ( setOf ( REFERENCE_EXPRESSION ) ) { checkNameAndReport ( Name . identifier ( it . text . toString ( ) ) , it , context , reporter ) } }","docstring":""} {"signature":"@ Test @ TodoAnalysisApi fun `test - stringBuilder` ( )","body":"{ doTest ( dependenciesDir . resolve ( \"\" ) ) }","docstring":"/**\n * - Missing implementation of mangling\n */"} {"signature":"@ Test fun `test - iterator` ( )","body":"{ doTest ( dependenciesDir . resolve ( \"\" ) ) }","docstring":""} {"signature":"@ Test fun `test - array` ( )","body":"{ doTest ( dependenciesDir . resolve ( \"\" ) ) }","docstring":""} {"signature":"@ Test fun `test - arrayList` ( )","body":"{ doTest ( dependenciesDir . resolve ( \"\" ) ) }","docstring":""} {"signature":"@ Test fun `test - implementIterator` ( )","body":"{ doTest ( dependenciesDir . resolve ( \"\" ) ) }","docstring":""} {"signature":"@ Test fun `test - notExportedDependency` ( )","body":"{ doTest ( dependenciesDir . resolve ( \"\" ) , configuration = HeaderGenerator . Configuration ( frameworkName = \"\" , withObjCBaseDeclarationStubs = true , dependencies = listOf ( testLibraryAKlibFile , testLibraryBKlibFile ) , ) ) }","docstring":""} {"signature":"@ Test fun `test - exportedAndNotExportedDependency` ( )","body":"{ doTest ( dependenciesDir . resolve ( \"\" ) , configuration = HeaderGenerator . Configuration ( frameworkName = \"\" , withObjCBaseDeclarationStubs = true , dependencies = listOf ( testLibraryAKlibFile , testLibraryBKlibFile ) , exportedDependencies = setOf ( testLibraryAKlibFile ) ) ) }","docstring":"/**\n * https://youtrack.jetbrains.com/issue/KT-65327/Support-reading-klib-contents-in-Analysis-API\n * Requires being able to use AA to iterate over symbols to 'export' the dependency\n */"} {"signature":"private fun doTest ( root : File , configuration : HeaderGenerator . Configuration = HeaderGenerator . Configuration ( ) )","body":"{ if ( ! root . isDirectory ) fail ( \"\" ) val generatedHeaders = generator . generateHeaders ( root , configuration ) . toString ( ) KotlinTestUtils . assertEqualsToFile ( root . resolve ( \"\" ) , generatedHeaders ) }","docstring":""} {"signature":"override fun < R , D > acceptChildren ( visitor : FirVisitor < R , D > , data : D )","body":"{ }","docstring":""} {"signature":"override fun < D > transformChildren ( transformer : FirTransformer < D > , data : D ) : FirPlaceholderProjectionImpl","body":"{ return this }","docstring":""} {"signature":"fun f ( s : String ? )","body":"{ if ( s != null ) { s . length var i = s . length System . out . println ( s . length ) } }","docstring":""} {"signature":"@ Suppress ( \"\" ) fun getFrame ( insn : AbstractInsnNode ) : F ?","body":"= frames [ insn . indexOf ( ) ] as? F","docstring":""} {"signature":"fun analyze ( ) : Array < Frame < V > ? >","body":"{ if ( nInsns == ) return frames checkAssertions ( ) computeExceptionHandlers ( method ) for ( tcb in method . tryCatchBlocks ) { isTcbStart [ tcb . start . indexOf ( ) + ] = true } beforeAnalyze ( ) analyzeMainLoop ( ) return frames }","docstring":""} {"signature":"private fun analyzeMainLoop ( )","body":"{ val current = newFrame ( method . maxLocals , method . maxStack ) val handler = newFrame ( method . maxLocals , method . maxStack ) initLocals ( current ) mergeControlFlowEdge ( , current ) while ( top > ) { val insn = queue [ -- top ] @ Suppress ( \"\" ) val f = frames [ insn ] as F queued [ insn ] = false val insnNode = method . instructions [ insn ] try { analyzeInstruction ( insnNode , insn , f , current , handler ) } catch ( e : AnalyzerException ) { throw AnalyzerException ( e . node , \"\" , e ) } catch ( e : Exception ) { throw AnalyzerException ( insnNode , \"\" , e ) } } }","docstring":""} {"signature":"private fun analyzeInstruction ( insnNode : AbstractInsnNode , insnIndex : Int , currentlyAnalyzing : F , current : F , handler : F )","body":"{ val insnOpcode = insnNode . opcode val insnType = insnNode . nodeType if ( insnType == AbstractInsnNode . LABEL || insnType == AbstractInsnNode . LINE || insnType == AbstractInsnNode . FRAME || insnOpcode == Opcodes . NOP ) { visitNopInsn ( insnNode , currentlyAnalyzing , insnIndex ) } else { current . init ( currentlyAnalyzing ) if ( insnOpcode != Opcodes . RETURN ) { current . execute ( insnNode , interpreter ) } visitMeaningfulInstruction ( insnNode , insnType , insnOpcode , current , insnIndex ) } if ( ! pruneExceptionEdges || insnOpcode in Opcodes . ISTORE .. Opcodes . ASTORE || insnOpcode == Opcodes . IINC || isTcbStart [ insnIndex ] ) { handlers [ insnIndex ] ? . forEach { tcb -> val exnType = Type . getObjectType ( tcb . type ? : \"\" ) val jump = tcb . handler . indexOf ( ) handler . init ( currentlyAnalyzing ) if ( handler . maxStackSize > ) { handler . clearStack ( ) handler . push ( interpreter . newExceptionValue ( tcb , handler , exnType ) ) } mergeControlFlowEdge ( jump , handler ) } } }","docstring":""} {"signature":"private fun checkAssertions ( )","body":"{ if ( method . instructions . any { it . opcode == Opcodes . JSR || it . opcode == Opcodes . RET } ) throw AssertionError ( \"\" ) }","docstring":""} {"signature":"private fun computeExceptionHandlers ( m : MethodNode )","body":"{ for ( tcb in m . tryCatchBlocks ) { if ( useFastComputeExceptionHandlers ) computeExceptionHandlerFast ( tcb ) else computeExceptionHandlersForEachInsn ( tcb ) } }","docstring":""} {"signature":"private fun computeExceptionHandlersForEachInsn ( tcb : TryCatchBlockNode )","body":"{ var current : AbstractInsnNode = tcb . start val end = tcb . end while ( current != end ) { if ( current . isMeaningful ) { val currentIndex = current . indexOf ( ) var insnHandlers : MutableList < TryCatchBlockNode > ? = handlers [ currentIndex ] if ( insnHandlers == null ) { insnHandlers = SmartList ( ) handlers [ currentIndex ] = insnHandlers } insnHandlers . add ( tcb ) } current = current . next } }","docstring":""} {"signature":"private fun computeExceptionHandlerFast ( tcb : TryCatchBlockNode )","body":"{ val start = tcb . start . indexOf ( ) var insnHandlers : MutableList < TryCatchBlockNode > ? = handlers [ start ] if ( insnHandlers == null ) { insnHandlers = ArrayList ( ) handlers [ start ] = insnHandlers } insnHandlers . add ( tcb ) }","docstring":""} {"signature":"protected open fun beforeAnalyze ( )","body":"{ }","docstring":""} {"signature":"private fun initLocals ( current : F )","body":"{ current . setReturn ( interpreter . newReturnTypeValue ( Type . getReturnType ( method . desc ) ) ) val args = Type . getArgumentTypes ( method . desc ) var local = val isInstanceMethod = ( method . access and Opcodes . ACC_STATIC ) == if ( isInstanceMethod ) { val ctype = Type . getObjectType ( owner ) current . setLocal ( local , interpreter . newParameterValue ( true , local , ctype ) ) local ++ } for ( arg in args ) { current . setLocal ( local , interpreter . newParameterValue ( isInstanceMethod , local , arg ) ) local ++ if ( arg . size == ) { current . setLocal ( local , interpreter . newEmptyValue ( local ) ) local ++ } } while ( local < method . maxLocals ) { current . setLocal ( local , interpreter . newEmptyValue ( local ) ) local ++ } }","docstring":""} {"signature":"protected open fun visitControlFlowEdge ( insnNode : AbstractInsnNode , successor : Int ) : Boolean","body":"= true","docstring":""} {"signature":"private fun processControlFlowEdge ( current : F , insnNode : AbstractInsnNode , jump : Int , canReuse : Boolean = false )","body":"{ if ( visitControlFlowEdge ( insnNode , jump ) ) { mergeControlFlowEdge ( jump , current , canReuse ) } }","docstring":""} {"signature":"private fun mergeControlFlowEdge ( dest : Int , frame : F , canReuse : Boolean = false )","body":"{ if ( useFastMergeControlFlowEdge ) { fastMergeControlFlowEdge ( dest , frame , canReuse ) } else { fullMergeControlFlowEdge ( dest , frame , canReuse ) } }","docstring":""} {"signature":"private fun fullMergeControlFlowEdge ( dest : Int , frame : F , canReuse : Boolean = false )","body":"{ val oldFrame = frames [ dest ] val changes = when { canReuse && ! isMergeNode [ dest ] -> { frames [ dest ] = frame true } oldFrame == null -> { frames [ dest ] = newFrame ( frame . locals , frame . maxStackSize ) . apply { init ( frame ) } true } ! isMergeNode [ dest ] -> { oldFrame . init ( frame ) true } else -> try { oldFrame . merge ( frame , interpreter ) } catch ( e : AnalyzerException ) { throw AnalyzerException ( null , \"\" ) } } updateQueue ( changes , dest ) }","docstring":"/**\n * Updates frame at the index [dest] with its old value if provided and previous control flow node frame [frame].\n * Reuses old frame when possible and when [canReuse] is true.\n * If updated, adds the frame to the queue\n */"} {"signature":"private fun fastMergeControlFlowEdge ( dest : Int , frame : F , canReuse : Boolean )","body":"{ val oldFrame = frames [ dest ] val changes = when { oldFrame == null -> { frames [ dest ] = if ( canReuse && ! isMergeNode [ dest ] ) { frame } else { newFrame ( frame . locals , frame . maxStackSize ) . apply { init ( frame ) } } true } else -> false } updateQueue ( changes , dest ) }","docstring":""} {"signature":"private fun updateQueue ( changes : Boolean , dest : Int )","body":"{ if ( changes && ! queued [ dest ] ) { queued [ dest ] = true queue [ top ++ ] = dest } }","docstring":""} {"signature":"private fun visitMeaningfulInstruction ( insnNode : AbstractInsnNode , insnType : Int , insnOpcode : Int , current : F , insn : Int )","body":"{ when { insnType == AbstractInsnNode . JUMP_INSN -> visitJumpInsnNode ( insnNode as JumpInsnNode , current , insn , insnOpcode ) insnType == AbstractInsnNode . LOOKUPSWITCH_INSN -> visitLookupSwitchInsnNode ( insnNode as LookupSwitchInsnNode , current ) insnType == AbstractInsnNode . TABLESWITCH_INSN -> visitTableSwitchInsnNode ( insnNode as TableSwitchInsnNode , current ) insnOpcode != Opcodes . ATHROW && ( insnOpcode < Opcodes . IRETURN || insnOpcode > Opcodes . RETURN ) -> visitOpInsn ( insnNode , current , insn ) else -> { } } }","docstring":""} {"signature":"private fun visitNopInsn ( insnNode : AbstractInsnNode , current : F , insn : Int )","body":"{ processControlFlowEdge ( current , insnNode , insn + , canReuse = true ) }","docstring":""} {"signature":"private fun visitOpInsn ( insnNode : AbstractInsnNode , current : F , insn : Int )","body":"{ processControlFlowEdge ( current , insnNode , insn + ) }","docstring":""} {"signature":"private fun visitTableSwitchInsnNode ( insnNode : TableSwitchInsnNode , current : F )","body":"{ processControlFlowEdge ( current , insnNode , insnNode . dflt . indexOf ( ) ) for ( label in insnNode . labels . asReversed ( ) ) { processControlFlowEdge ( current , insnNode , label . indexOf ( ) ) } }","docstring":""} {"signature":"private fun visitLookupSwitchInsnNode ( insnNode : LookupSwitchInsnNode , current : F )","body":"{ processControlFlowEdge ( current , insnNode , insnNode . dflt . indexOf ( ) ) for ( label in insnNode . labels ) { processControlFlowEdge ( current , insnNode , label . indexOf ( ) ) } }","docstring":""} {"signature":"private fun visitJumpInsnNode ( insnNode : JumpInsnNode , current : F , insn : Int , insnOpcode : Int )","body":"{ if ( insnOpcode != Opcodes . GOTO ) { processControlFlowEdge ( current , insnNode , insn + ) } processControlFlowEdge ( current , insnNode , insnNode . label . indexOf ( ) ) }","docstring":""} {"signature":"protected fun AbstractInsnNode . indexOf ( )","body":"= method . instructions . indexOf ( this )","docstring":""} {"signature":"private fun Frame < V > . dump ( ) : String","body":"{ return buildString { append ( \"\" ) append ( \"\" ) for ( i in until method . maxLocals ) { append ( \"\" ) } append ( \"\" ) val stackSize = this@dump . stackSize append ( \"\" ) append ( stackSize ) if ( stackSize == ) { append ( \"\" ) } else { append ( \"\" ) for ( i in until stackSize ) { append ( \"\" ) } append ( \"\" ) } append ( \"\" ) } }","docstring":""} {"signature":"fun findMergeNodes ( method : MethodNode ) : BooleanArray","body":"{ val isMergeNode = BooleanArray ( method . instructions . size ( ) ) for ( insn in method . instructions ) { when ( insn . nodeType ) { AbstractInsnNode . JUMP_INSN -> { val jumpInsn = insn as JumpInsnNode isMergeNode [ method . instructions . indexOf ( jumpInsn . label ) ] = true } AbstractInsnNode . LOOKUPSWITCH_INSN -> { val switchInsn = insn as LookupSwitchInsnNode isMergeNode [ method . instructions . indexOf ( switchInsn . dflt ) ] = true for ( label in switchInsn . labels ) { isMergeNode [ method . instructions . indexOf ( label ) ] = true } } AbstractInsnNode . TABLESWITCH_INSN -> { val switchInsn = insn as TableSwitchInsnNode isMergeNode [ method . instructions . indexOf ( switchInsn . dflt ) ] = true for ( label in switchInsn . labels ) { isMergeNode [ method . instructions . indexOf ( label ) ] = true } } } } for ( tcb in method . tryCatchBlocks ) { isMergeNode [ method . instructions . indexOf ( tcb . handler ) ] = true } return isMergeNode }","docstring":""} {"signature":"fun type ( call : Call ? ) : KotlinType ?","body":"fun type ( call : Call ? ) : KotlinType ?","docstring":""} {"signature":"operator fun plus ( smartCast : SingleSmartCast ) : ExplicitSmartCasts","body":"operator fun plus ( smartCast : SingleSmartCast ) : ExplicitSmartCasts","docstring":""} {"signature":"override fun type ( call : Call ? )","body":"= if ( call == this . call ) type else null","docstring":""} {"signature":"override fun plus ( smartCast : SingleSmartCast )","body":"= if ( this == smartCast ) this else MultipleSmartCasts ( mapOf ( call to type , smartCast . call to smartCast . type ) )","docstring":""} {"signature":"override fun type ( call : Call ? )","body":"= map [ call ]","docstring":""} {"signature":"override fun plus ( smartCast : SingleSmartCast )","body":"= MultipleSmartCasts ( map + mapOf ( smartCast . call to smartCast . type ) )","docstring":""} {"signature":"override fun apply ( project : Project )","body":"{ val properties = KotlinTaskProperties ( providerFactory ) project . configureKotlinVersions ( properties ) }","docstring":""} {"signature":"private fun Project . configureKotlinVersions ( properties : KotlinTaskProperties )","body":"{ plugins . withType < KotlinBasePlugin > ( ) . configureEach { configureExtension ( properties ) if ( properties . kotlinOverrideUserValues . get ( ) ) { forceConfigureTask ( properties ) } else { configureTask ( properties ) } } }","docstring":""} {"signature":"private fun Project . configureExtension ( properties : KotlinTaskProperties )","body":"{ extensions . projectCompilerOptions ( ) ? . let { configureKotlinOptions ( properties , it , ignoreExtensionValue = true ) } }","docstring":""} {"signature":"private fun Project . configureTask ( properties : KotlinTaskProperties )","body":"{ tasks . withType < KotlinCompilationTask < * > > ( ) . configureEach { configureKotlinOptions ( properties , it . compilerOptions ) } }","docstring":""} {"signature":"private fun Project . forceConfigureTask ( properties : KotlinTaskProperties )","body":"{ afterEvaluate { tasks . withType < KotlinCompilationTask < * > > ( ) . configureEach { configureKotlinOptions ( properties , it . compilerOptions , true ) } } }","docstring":""} {"signature":"@ OptIn ( ExperimentalKotlinGradlePluginApi :: class ) private fun ExtensionContainer . projectCompilerOptions ( ) : KotlinCommonCompilerOptions ?","body":"{ val kotlinExtension = findByName ( \"\" ) ? : return null return when ( kotlinExtension ) { is KotlinJvmProjectExtension -> kotlinExtension . compilerOptions is KotlinAndroidProjectExtension -> kotlinExtension . compilerOptions is KotlinMultiplatformExtension -> kotlinExtension . compilerOptions else -> null } }","docstring":""} {"signature":"private fun Project . projectLevelLanguageVersion ( ) : Provider < KotlinVersion >","body":"{ return extensions . projectCompilerOptions ( ) ? . languageVersion ? : providers . provider { null } }","docstring":""} {"signature":"private fun Project . projectLevelApiVersion ( ) : Provider < KotlinVersion >","body":"{ return extensions . projectCompilerOptions ( ) ? . apiVersion ? : providers . provider { null } }","docstring":""} {"signature":"private fun Project . configureKotlinOptions ( properties : KotlinTaskProperties , taskOptions : KotlinCommonCompilerOptions , shouldSetValue : Boolean = false , ignoreExtensionValue : Boolean = false , )","body":"{ taskOptions . languageVersion . configureValue ( properties . kotlinLanguageVersion . run { if ( ! ignoreExtensionValue ) orElse ( projectLevelLanguageVersion ( ) ) else this } , shouldSetValue ) taskOptions . apiVersion . configureValue ( properties . kotlinApiVersion . run { if ( ! ignoreExtensionValue ) orElse ( projectLevelApiVersion ( ) ) else this } , shouldSetValue ) }","docstring":""} {"signature":"private fun < T : Any > Property < T > . configureValue ( source : Provider < T > , shouldSetValue : Boolean ) : Property < T >","body":"= if ( shouldSetValue ) { value ( source ) } else { convention ( source ) }","docstring":""} {"signature":"fun primitives ( boolean : Boolean = true , character : Char = '' , byte : Byte = . toByte ( ) , short : Short = ( - ) . toShort ( ) , int : Int = , float : Float = - , long : Long = , double : Double = )","body":"{ assertEquals ( true , boolean ) assertEquals ( '' , character ) assertEquals ( . toByte ( ) , byte ) assertEquals ( ( - ) . toShort ( ) , short ) assertEquals ( , int ) assertEquals ( - , float ) assertEquals ( , long ) assertEquals ( , double ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ :: primitives . callBy ( emptyMap ( ) ) return \"\" }","docstring":""} {"signature":"override fun deserialize ( decoder : Decoder ) : Any ?","body":"{ if ( decoder !is JsonDecoder ) error ( \"\" ) fun deserialize ( element : JsonElement ) : Any ? { return when ( element ) { is JsonArray -> buildList { element . forEach { add ( deserialize ( it ) ) } } is JsonObject -> buildMap { element . forEach { put ( it . key , deserialize ( it . value ) ) } } is JsonPrimitive -> when { element . isString -> element . content element is JsonNull -> null element . booleanOrNull != null -> element . boolean element . intOrNull != null -> element . int element . longOrNull != null -> element . long element . doubleOrNull != null -> element . double else -> error ( \"\" ) } } } return deserialize ( decoder . decodeJsonElement ( ) ) }","docstring":""} {"signature":"override fun serialize ( encoder : Encoder , value : Any ? )","body":"{ when ( value ) { is String -> encoder . encodeString ( value ) is Double -> encoder . encodeDouble ( value ) is Float -> encoder . encodeFloat ( value ) is Number -> encoder . encodeLong ( value . toLong ( ) ) is Boolean -> encoder . encodeBoolean ( value ) is List < * > -> ListSerializer ( UntypedSerialization ) . serialize ( encoder , value ) is Map < * , * > -> { value . keys . forEach { require ( it is String ) { \"\" } } @ Suppress ( \"\" ) MapSerializer ( serializer < String > ( ) , UntypedSerialization ) . serialize ( encoder , value as Map < String , * > ) } else -> { throw IllegalArgumentException ( \"\" ) } } }","docstring":""} {"signature":"fun throwException ( ) : Unit","body":"= error ( \"\" )","docstring":""} {"signature":"fun getWrappingStrategy ( ) : WrappingStrategy","body":"{ return wrap @ { childElement -> Wrap ( \"\" ) . let { return@wrap it } } }","docstring":""} {"signature":"fun getWrapAfterAnnotation ( childElement : ASTNode ) : Wrap ?","body":"{ return Wrap ( \"\" ) }","docstring":""} {"signature":"fun box ( ) : String","body":"{ return getWrappingStrategy ( ) . invoke ( ASTNode ( ) ) ? . message ? : \"\" }","docstring":""} {"signature":"public fun y ( parameters : AxisParameters . ( ) -> Unit = { } )","body":"{ y . apply ( parameters ) }","docstring":""} {"signature":"override fun isOverriddenFunction ( overrideCandidate : FirSimpleFunction , baseDeclaration : FirSimpleFunction ) : Boolean","body":"= overrideCandidate . isPlatformOverriddenFunction ( session , baseDeclaration ) ? : standardOverrideChecker . isOverriddenFunction ( overrideCandidate , baseDeclaration )","docstring":""} {"signature":"override fun isOverriddenProperty ( overrideCandidate : FirCallableDeclaration , baseDeclaration : FirProperty ) : Boolean","body":"= standardOverrideChecker . isOverriddenProperty ( overrideCandidate , baseDeclaration )","docstring":""} {"signature":"override fun chooseIntersectionVisibility ( overrides : Collection < FirCallableSymbol < * > > , dispatchClassSymbol : FirRegularClassSymbol ? , ) : Visibility","body":"{ return chooseIntersectionVisibilityOrNull ( overrides ) { it . isAbstractAccordingToRawStatus || it . isObjCClassPropertyOrAccessor ( session ) } ? : Visibilities . Unknown }","docstring":""} {"signature":"private fun FirCallableSymbol < * > . isObjCClassPropertyOrAccessor ( session : FirSession )","body":"= ( this is FirPropertySymbol || this is FirPropertyAccessorSymbol ) && ( containingClassLookupTag ( ) ? . toSymbol ( session ) as? FirClassSymbol < * > ) ? . isObjCClass ( session ) ? : false","docstring":""} {"signature":"private fun FirSimpleFunction . isPlatformOverriddenFunction ( session : FirSession , baseDeclaration : FirSimpleFunction ) : Boolean ?","body":"{ if ( this . name != baseDeclaration . name ) { return null } val superInfo = baseDeclaration . symbol . decodeObjCMethodAnnotation ( session ) ? : return null val subInfo = symbol . decodeObjCMethodAnnotation ( session ) return if ( subInfo != null ) { superInfo . selector == subInfo . selector } else { if ( ! parameterNamesMatch ( this , baseDeclaration ) ) false else null } }","docstring":"/**\n * mimics ObjCOverridabilityCondition.isOverridable\n */"} {"signature":"private fun parameterNamesMatch ( first : FirSimpleFunction , second : FirSimpleFunction ) : Boolean","body":"{ if ( first . valueParameters . size != second . valueParameters . size ) { return false } first . valueParameters . forEachIndexed { index , parameter -> if ( index > && parameter . name != second . valueParameters [ index ] . name ) { return false } } return true }","docstring":"/**\n * mimics ObjCInteropKt.parameterNamesMatch\n */"} {"signature":"@ Test fun `compare same version` ( )","body":"{ assertTrue ( SchemaVersion ( , , ) <= SchemaVersion ( , , ) , \"\" ) assertTrue ( SchemaVersion ( , , ) >= SchemaVersion ( , , ) , \"\" ) assertFalse ( SchemaVersion ( , , ) > SchemaVersion ( , , ) , \"\" ) }","docstring":""} {"signature":"@ Test fun `compare higher version` ( )","body":"{ assertTrue ( SchemaVersion ( , , ) > SchemaVersion ( , , ) ) assertTrue ( SchemaVersion ( , , ) > SchemaVersion ( , , ) ) assertTrue ( SchemaVersion ( , , ) > SchemaVersion ( , , ) ) }","docstring":""} {"signature":"@ Test fun `compare lower version` ( )","body":"{ assertTrue ( SchemaVersion ( , , ) < SchemaVersion ( , , ) ) assertTrue ( SchemaVersion ( , , ) < SchemaVersion ( , , ) ) assertTrue ( SchemaVersion ( , , ) < SchemaVersion ( , , ) ) }","docstring":""} {"signature":"@ Test fun parseSchemaVersion ( )","body":"{ assertEquals ( SchemaVersion ( , , ) , SchemaVersion . parseStringOrThrow ( \"\" ) ) assertEquals ( SchemaVersion ( , , ) , SchemaVersion . parseStringOrThrow ( \"\" ) ) assertEquals ( SchemaVersion ( , , ) , SchemaVersion . parseStringOrThrow ( \"\" ) ) }","docstring":""} {"signature":"@ Test fun `parseSchemaVersion failure` ( )","body":"{ assertFailsWith < IllegalArgumentException > { SchemaVersion . parseStringOrThrow ( \"\" ) } assertFailsWith < IllegalArgumentException > { SchemaVersion . parseStringOrThrow ( \"\" ) } assertFailsWith < IllegalArgumentException > { SchemaVersion . parseStringOrThrow ( \"\" ) } }","docstring":""} {"signature":"@ Test fun `toString and parse` ( )","body":"{ assertEquals ( SchemaVersion ( , , ) , SchemaVersion . parseStringOrThrow ( SchemaVersion ( , , ) . toString ( ) ) ) assertEquals ( SchemaVersion ( , , ) , SchemaVersion . parseStringOrThrow ( SchemaVersion ( , , ) . toString ( ) ) ) }","docstring":""} {"signature":"@ Test fun isCompatible ( )","body":"{ assertTrue ( SchemaVersion ( , , ) . isCompatible ( SchemaVersion ( , , ) ) ) assertTrue ( SchemaVersion ( , , ) . isCompatible ( SchemaVersion ( , , ) ) ) assertFalse ( SchemaVersion ( , , ) . isCompatible ( SchemaVersion ( , , ) ) ) assertFalse ( SchemaVersion ( , , ) . isCompatible ( SchemaVersion ( , , ) ) ) assertFalse ( SchemaVersion ( , , ) . isCompatible ( SchemaVersion ( , , ) ) ) }","docstring":""} {"signature":"override fun getResolutionFacadeWithForcedPlatform ( elements : List < KtElement > , platform : TargetPlatform ) : ResolutionFacade","body":"{ return KotlinSimpleResolutionFacade ( ideaProject , elements ) }","docstring":""} {"signature":"override fun getResolutionFacadeByFile ( file : PsiFile , platform : TargetPlatform ) : ResolutionFacade","body":"{ throw UnsupportedOperationException ( ) }","docstring":""} {"signature":"override fun getResolutionFacadeByModuleInfo ( moduleInfo : ModuleInfo , settings : PlatformAnalysisSettings ) : ResolutionFacade ?","body":"{ throw UnsupportedOperationException ( ) }","docstring":""} {"signature":"override fun getSuppressionCache ( ) : KotlinSuppressCache","body":"{ throw UnsupportedOperationException ( ) }","docstring":""} {"signature":"override fun getResolutionFacade ( elements : List < KtElement > ) : ResolutionFacade","body":"{ return KotlinSimpleResolutionFacade ( ideaProject , elements ) }","docstring":""} {"signature":"override fun getResolutionFacade ( element : KtElement ) : ResolutionFacade","body":"= getResolutionFacade ( listOf ( element ) )","docstring":""} {"signature":"override fun getResolutionFacadeByModuleInfo ( moduleInfo : ModuleInfo , platform : TargetPlatform ) : ResolutionFacade ?","body":"= null","docstring":""} {"signature":"override fun < T : Any > tryGetFrontendService ( element : PsiElement , serviceClass : Class < T > ) : T ?","body":"{ return null }","docstring":""} {"signature":"override fun resolveToDescriptor ( declaration : KtDeclaration , bodyResolveMode : BodyResolveMode ) : DeclarationDescriptor","body":"{ throw UnsupportedOperationException ( ) }","docstring":""} {"signature":"override fun analyze ( element : KtElement , bodyResolveMode : BodyResolveMode ) : BindingContext","body":"{ val ktFile = element . containingKtFile return KotlinAnalysisFileCache . getAnalysisResult ( ktFile ) . analysisResult . bindingContext }","docstring":""} {"signature":"override fun analyzeWithAllCompilerChecks ( elements : Collection < KtElement > , callback : DiagnosticSink . DiagnosticsCallback ? ) : AnalysisResult","body":"{ val ktFile = elements . first ( ) . containingKtFile return KotlinAnalysisFileCache . getAnalysisResult ( ktFile ) . analysisResult }","docstring":""} {"signature":"override fun analyze ( elements : Collection < KtElement > , bodyResolveMode : BodyResolveMode ) : BindingContext","body":"{ if ( elements . isEmpty ( ) ) { return BindingContext . EMPTY } val ktFile = elements . first ( ) . containingKtFile return KotlinAnalysisFileCache . getAnalysisResult ( ktFile ) . analysisResult . bindingContext }","docstring":""} {"signature":"override fun < T : Any > getFrontendService ( element : PsiElement , serviceClass : Class < T > ) : T","body":"{ throw UnsupportedOperationException ( ) }","docstring":""} {"signature":"override fun < T : Any > getFrontendService ( serviceClass : Class < T > ) : T","body":"{ val files = elements . map { it . containingKtFile } . toSet ( ) if ( files . isEmpty ( ) ) throw IllegalStateException ( \"\" ) val componentProvider = KotlinAnalyzer . analyzeFiles ( files ) . componentProvider ? : throw IllegalStateException ( \"\" ) return componentProvider . getService ( serviceClass ) }","docstring":""} {"signature":"override fun < T : Any > getFrontendService ( moduleDescriptor : ModuleDescriptor , serviceClass : Class < T > ) : T","body":"{ throw UnsupportedOperationException ( ) }","docstring":""} {"signature":"override fun < T : Any > getIdeService ( serviceClass : Class < T > ) : T","body":"{ throw UnsupportedOperationException ( ) }","docstring":""} {"signature":"override fun getResolverForProject ( ) : ResolverForProject < out ModuleInfo >","body":"{ throw UnsupportedOperationException ( ) }","docstring":""} {"signature":"@ Suppress ( \"\" ) fun < T : Any > ComponentProvider . getService ( request : Class < T > ) : T","body":"{ return resolve ( request ) ! ! . getValue ( ) as T }","docstring":""} {"signature":"override fun invoke ( p1 : Int ) : String ?","body":"{ return if ( p1 and flag != ) name else null }","docstring":""} {"signature":"override fun invoke ( p1 : Int ) : String ?","body":"{ return if ( p1 and flag == ) name else null }","docstring":""} {"signature":"fun Int . isPrivate ( )","body":"= this and Opcodes . ACC_PRIVATE != ","docstring":""} {"signature":"fun Int . isSynthetic ( )","body":"= this and Opcodes . ACC_SYNTHETIC != ","docstring":""} {"signature":"fun Int . isBridge ( )","body":"= this and Opcodes . ACC_BRIDGE != ","docstring":""} {"signature":"fun Int . classFlags ( )","body":"= flagsList ( CLASS_FLAGS )","docstring":""} {"signature":"fun Int . methodFlags ( )","body":"= flagsList ( METHOD_FLAGS )","docstring":""} {"signature":"fun Int . fieldFlags ( )","body":"= flagsList ( FIELD_FLAGS )","docstring":""} {"signature":"private fun Int . flagsList ( flags : List < ( Int ) -> String ? > )","body":"= flags . mapNotNull { flag -> flag ( this ) } . joinToString ( prefix = \"\" , postfix = \"\" ) { it }","docstring":""} {"signature":"override fun equals ( other : Any ? )","body":"= super . equals ( other )","docstring":""} {"signature":"fun box ( ) : String","body":"{ val a : A ? = null testTrue { a == null } testFalse { a != null } testTrue { null == a } testFalse { null != a } return \"\" }","docstring":""} {"signature":"@ Test fun testUsingTempFolder ( @ TempDir folder : Path )","body":"{ val person = Person ( \"\" , ) val json = \"\"\"\"\"\" val jsonFile = ( folder . resolve ( \"\" ) ) . createFile ( ) jsonFile . writeText ( serialize ( person ) ) assertEquals ( json , jsonFile . readText ( ) ) }","docstring":""} {"signature":"fun box ( )","body":"= expectThrowableMessage { mustEqual }","docstring":""} {"signature":"fun equals1 ( a : Float , b : Float )","body":"= a == b","docstring":""} {"signature":"fun equals2 ( a : Float ? , b : Float ? )","body":"= a ! ! == b ! !","docstring":""} {"signature":"fun equals3 ( a : Float ? , b : Float ? )","body":"= a != null && b != null && a == b","docstring":""} {"signature":"fun equals4 ( a : Float ? , b : Float ? )","body":"= if ( a is Float && b is Float ) a == b else null ! !","docstring":""} {"signature":"fun equals5 ( a : Any ? , b : Any ? )","body":"= if ( a is Float && b is Float ) a == b else null ! !","docstring":""} {"signature":"fun box ( ) : String","body":"{ if ( - != ) return \"\" if ( ! equals1 ( - , ) ) return \"\" if ( ! equals2 ( - , ) ) return \"\" if ( ! equals3 ( - , ) ) return \"\" if ( ! equals4 ( - , ) ) return \"\" if ( equals5 ( - , ) ) return \"\" return \"\" }","docstring":""} {"signature":"@ JsModule ( \"\" ) external fun func ( opts : String = definedExternally ) : Number","body":"@ JsModule ( \"\" ) external fun func ( opts : String = definedExternally ) : Number","docstring":""} {"signature":"@ JvmOverloads fun testTopLevelFunction ( x : Int = ) : Z","body":"= Z ( x )","docstring":""} {"signature":"fun < T : LineNumberReader > KnitContext . withLineNumberReader ( file : File , factory : ( Reader ) -> T , block : T . ( ) -> Unit ) : T ?","body":"{ val reader = factory ( file . reader ( ) ) reader . use { try { it . block ( ) } catch ( e : Exception ) { log . error ( \"\" , e ) return null } } return reader }","docstring":""} {"signature":"operator fun File . div ( path : String ) : File","body":"= File ( this , path . replace ( \"\" , File . separator ) )","docstring":""} {"signature":"internal fun Reader . firstLineSeparator ( ) : String ?","body":"{ val n = '' . toInt ( ) val r = '' . toInt ( ) while ( true ) { val current = read ( ) if ( current == - ) { return null } else if ( current == n || current == r ) { var result = current . toChar ( ) . toString ( ) val next = read ( ) if ( current == r && next == n ) { result += next . toChar ( ) . toString ( ) } return result } } }","docstring":""}