descriptors.proto: add skip_in_comparison option for (prepared to retire) constructor field in Class message
Original commit: be875d797f
This commit is contained in:
@@ -141,8 +141,6 @@ open class ProtoCompareGenerated(private val oldNameResolver: NameResolver, priv
|
|||||||
}
|
}
|
||||||
|
|
||||||
open fun checkEquals(old: ProtoBuf.Type, new: ProtoBuf.Type): Boolean {
|
open fun checkEquals(old: ProtoBuf.Type, new: ProtoBuf.Type): Boolean {
|
||||||
if (!checkEquals(old.constructor, new.constructor)) return false
|
|
||||||
|
|
||||||
if (!checkEqualsTypeArgument(old, new)) return false
|
if (!checkEqualsTypeArgument(old, new)) return false
|
||||||
|
|
||||||
if (old.hasNullable() != new.hasNullable()) return false
|
if (old.hasNullable() != new.hasNullable()) return false
|
||||||
@@ -259,10 +257,6 @@ open class ProtoCompareGenerated(private val oldNameResolver: NameResolver, priv
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
open fun checkEquals(old: ProtoBuf.Type.Constructor, new: ProtoBuf.Type.Constructor): Boolean {
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
|
|
||||||
open fun checkEquals(old: ProtoBuf.Type.Argument, new: ProtoBuf.Type.Argument): Boolean {
|
open fun checkEquals(old: ProtoBuf.Type.Argument, new: ProtoBuf.Type.Argument): Boolean {
|
||||||
if (old.hasProjection() != new.hasProjection()) return false
|
if (old.hasProjection() != new.hasProjection()) return false
|
||||||
if (old.hasProjection()) {
|
if (old.hasProjection()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user