[FIR] Get rid of unnecessary opt ins
This commit is contained in:
committed by
teamcity
parent
9885094472
commit
095a5d1fdf
-1
@@ -264,7 +264,6 @@ private fun mapInapplicableCandidateError(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@OptIn(ExperimentalStdlibApi::class)
|
|
||||||
private fun mapSystemHasContradictionError(
|
private fun mapSystemHasContradictionError(
|
||||||
session: FirSession,
|
session: FirSession,
|
||||||
diagnostic: ConeConstraintSystemHasContradiction,
|
diagnostic: ConeConstraintSystemHasContradiction,
|
||||||
|
|||||||
@@ -256,7 +256,6 @@ private fun Candidate.findClosestMatchingReceivers(
|
|||||||
object CheckDslScopeViolation : ResolutionStage() {
|
object CheckDslScopeViolation : ResolutionStage() {
|
||||||
private val dslMarkerClassId = ClassId.fromString("kotlin/DslMarker")
|
private val dslMarkerClassId = ClassId.fromString("kotlin/DslMarker")
|
||||||
|
|
||||||
@OptIn(ExperimentalStdlibApi::class)
|
|
||||||
override suspend fun check(candidate: Candidate, callInfo: CallInfo, sink: CheckerSink, context: ResolutionContext) {
|
override suspend fun check(candidate: Candidate, callInfo: CallInfo, sink: CheckerSink, context: ResolutionContext) {
|
||||||
fun checkReceiverValue(receiverValue: ReceiverValue?) {
|
fun checkReceiverValue(receiverValue: ReceiverValue?) {
|
||||||
if (receiverValue is ImplicitReceiverValue<*>) {
|
if (receiverValue is ImplicitReceiverValue<*>) {
|
||||||
@@ -333,7 +332,6 @@ object CheckDslScopeViolation : ResolutionStage() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@OptIn(ExperimentalStdlibApi::class)
|
|
||||||
private fun ImplicitReceiverValue<*>.getDslMarkersOfImplicitReceiver(context: ResolutionContext): Set<ClassId> {
|
private fun ImplicitReceiverValue<*>.getDslMarkersOfImplicitReceiver(context: ResolutionContext): Set<ClassId> {
|
||||||
return buildSet {
|
return buildSet {
|
||||||
(boundSymbol as? FirAnonymousFunctionSymbol)?.fir?.matchingParameterFunctionType?.let {
|
(boundSymbol as? FirAnonymousFunctionSymbol)?.fir?.matchingParameterFunctionType?.let {
|
||||||
@@ -358,7 +356,6 @@ object CheckDslScopeViolation : ResolutionStage() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@OptIn(ExperimentalStdlibApi::class)
|
|
||||||
private fun FirThisReceiverExpression.getDslMarkersOfThisReceiverExpression(context: ResolutionContext): Set<ClassId> {
|
private fun FirThisReceiverExpression.getDslMarkersOfThisReceiverExpression(context: ResolutionContext): Set<ClassId> {
|
||||||
return buildSet {
|
return buildSet {
|
||||||
collectDslMarkerAnnotations(context, typeRef.coneType)
|
collectDslMarkerAnnotations(context, typeRef.coneType)
|
||||||
|
|||||||
Reference in New Issue
Block a user