Commit c1eed395 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent c54fe437
...@@ -275,6 +275,8 @@ func (d *decoder) decodeMap(assignto string, typ *types.Map, obj types.Object) { ...@@ -275,6 +275,8 @@ func (d *decoder) decodeMap(assignto string, typ *types.Map, obj types.Object) {
// //
// obj is object that uses this type in source program (so in case of an error // obj is object that uses this type in source program (so in case of an error
// we can point to source location for where it happenned) // we can point to source location for where it happenned)
// TODO -> walkType and hook decoder/encoder via interface
func (d *decoder) decodeType(assignto string, typ types.Type, obj types.Object) { func (d *decoder) decodeType(assignto string, typ types.Type, obj types.Object) {
switch u := typ.Underlying().(type) { switch u := typ.Underlying().(type) {
case *types.Basic: case *types.Basic:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment