descriptors.proto: add skip_in_comparison option for (prepared to retire) constructor field in Class message

This commit is contained in:
Michael Nedzelsky
2015-08-03 21:04:33 +03:00
parent 20bae99166
commit be875d797f
3 changed files with 70 additions and 75 deletions
@@ -141,8 +141,6 @@ open class ProtoCompareGenerated(private val oldNameResolver: NameResolver, priv
}
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 (old.hasNullable() != new.hasNullable()) return false
@@ -259,10 +257,6 @@ open class ProtoCompareGenerated(private val oldNameResolver: NameResolver, priv
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 {
if (old.hasProjection() != new.hasProjection()) return false
if (old.hasProjection()) {