Add methods for combine InvocationKind's
There is two methods added -- `or` and `and` `or` is used by CFA for combining two kinds that came from different edges of control flow graph `and` is analog of `+` operator for invocation kinds
This commit is contained in:
+1
-1
@@ -197,7 +197,7 @@ class FirContractSerializer {
|
||||
InvocationKind.AT_MOST_ONCE -> ProtoBuf.Effect.InvocationKind.AT_MOST_ONCE
|
||||
InvocationKind.EXACTLY_ONCE -> ProtoBuf.Effect.InvocationKind.EXACTLY_ONCE
|
||||
InvocationKind.AT_LEAST_ONCE -> ProtoBuf.Effect.InvocationKind.AT_LEAST_ONCE
|
||||
InvocationKind.UNKNOWN -> null
|
||||
else -> null
|
||||
}
|
||||
|
||||
private fun constantValueProtobufEnum(constantReference: ConeConstantReference): ProtoBuf.Expression.ConstantValue? =
|
||||
|
||||
Reference in New Issue
Block a user