schemadsl: assign the struct representation.
This is a very minimal patch to get one of the most common cases;
a bunch more representation parsing is still needed in the future.
@@ -293,7 +293,8 @@ func (p *parser) typeStruct() (*dmt.TypeDefnStruct, error) {
}
if tok == "}" {
- // TODO: repr
+ // TODO: repr. currently hardcoded to map repr.
+ defn.Representation.StructRepresentation_Map = repr
return defn, nil
}
name := tok
