[FIR] Get rid of unnecessary opt ins

This commit is contained in:
Victor Petukhov
2022-02-11 11:43:42 +03:00
committed by teamcity
parent 9885094472
commit 095a5d1fdf
2 changed files with 0 additions and 4 deletions
@@ -264,7 +264,6 @@ private fun mapInapplicableCandidateError(
}
}
@OptIn(ExperimentalStdlibApi::class)
private fun mapSystemHasContradictionError(
session: FirSession,
diagnostic: ConeConstraintSystemHasContradiction,
@@ -256,7 +256,6 @@ private fun Candidate.findClosestMatchingReceivers(
object CheckDslScopeViolation : ResolutionStage() {
private val dslMarkerClassId = ClassId.fromString("kotlin/DslMarker")
@OptIn(ExperimentalStdlibApi::class)
override suspend fun check(candidate: Candidate, callInfo: CallInfo, sink: CheckerSink, context: ResolutionContext) {
fun checkReceiverValue(receiverValue: ReceiverValue?) {
if (receiverValue is ImplicitReceiverValue<*>) {
@@ -333,7 +332,6 @@ object CheckDslScopeViolation : ResolutionStage() {
}
}
@OptIn(ExperimentalStdlibApi::class)
private fun ImplicitReceiverValue<*>.getDslMarkersOfImplicitReceiver(context: ResolutionContext): Set<ClassId> {
return buildSet {
(boundSymbol as? FirAnonymousFunctionSymbol)?.fir?.matchingParameterFunctionType?.let {
@@ -358,7 +356,6 @@ object CheckDslScopeViolation : ResolutionStage() {
}
}
@OptIn(ExperimentalStdlibApi::class)
private fun FirThisReceiverExpression.getDslMarkersOfThisReceiverExpression(context: ResolutionContext): Set<ClassId> {
return buildSet {
collectDslMarkerAnnotations(context, typeRef.coneType)