This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright 2010-2018 JetBrains s.r.o. and Kotlin Programming Language contributors. | |
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. | |
*/ | |
import CoroutineSingletons.UNDECIDED | |
import arrow.atomic.Atomic | |
import arrow.atomic.loop | |
import arrow.atomic.value | |
import kotlin.coroutines.Continuation | |
import kotlin.coroutines.CoroutineContext |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import kotlinx.coroutines.delay | |
import java.io.InputStream | |
import java.nio.ByteBuffer | |
import javax.sound.sampled.AudioFormat | |
import javax.sound.sampled.AudioInputStream | |
import javax.sound.sampled.AudioSystem | |
import javax.sound.sampled.Clip | |
import kotlin.math.sin | |
import kotlin.time.Duration | |
import kotlin.time.DurationUnit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@file:OptIn(ExperimentalContracts::class) @file:Suppress("SUBTYPING_BETWEEN_CONTEXT_RECEIVERS") | |
import kotlin.contracts.* | |
@Target(AnnotationTarget.FUNCTION) | |
annotation class Concept | |
inline fun <A, B, R> withContexts( | |
a: A, b: B, block: context(A, B) () -> R | |
): R { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@file:Suppress("unused", "MemberVisibilityCanBePrivate") | |
import org.jetbrains.kotlin.backend.common.CodegenUtil | |
import org.jetbrains.kotlin.codegen.JvmCodegenUtil | |
import org.jetbrains.kotlin.codegen.getCallLabelForLambdaArgument | |
import org.jetbrains.kotlin.codegen.isValueArgumentForCallToMethodWithTypeCheckBarrier | |
import org.jetbrains.kotlin.com.intellij.psi.PsiElement | |
import org.jetbrains.kotlin.config.LanguageVersionSettings | |
import org.jetbrains.kotlin.descriptors.* | |
import org.jetbrains.kotlin.js.translate.utils.BindingUtils |