feat: add field for storing autoParam information at StructureFieldInfo

We need this information when copying fields from parent structures.
We don't use hacks such as traversing the parent constructor type.
This commit is contained in:
Leonardo de Moura 2022-05-26 14:06:42 -07:00
parent dcb974a1cf
commit f48b822532

View file

@ -15,6 +15,7 @@ structure StructureFieldInfo where
projFn : Name
subobject? : Option Name -- It is `some parentStructName` if it is a subobject, and `parentStructName` is the name of the parent structure
binderInfo : BinderInfo
autoParam? : Option Expr := none
deriving Inhabited, Repr
def StructureFieldInfo.lt (i₁ i₂ : StructureFieldInfo) : Bool :=