Add schema.Kind and Type.Kind(). Remove Type.ReprKind().
The schema.Type objects don't have a `Kind() ReprKind` method. That was just a bad idea. I didn't try to fix it; I just nuked it. The new schema.Type.Kind() method docs include a description of why it's incorrect to wish for a either a single or a statically known ReprKind for a type. (Context mention: the previous commit was also a wind-up for this. And technically, I'm still winding back up the mental stack here: this had to get straightened out because I wanted to start poking codegen for structs; and then I had beef with the TypeStruct.tupleStyle field being a bool; and then fixing that pointed out that the current Type.ReprKind methods were kinda insane... yaks!)
Showing
schema/kind.go
0 → 100644
Please register or sign in to comment