Make sure Chunks includes type.Refs and the TypeRef

Chunks shold return the futures for types.Ref values.

For typed values that have a TypeRef which has a package ref, also
include that.
This commit is contained in:
Erik Arvidsson
2015-10-12 19:34:17 -04:00
parent 9e36e080fd
commit 8565f175ee
39 changed files with 346 additions and 140 deletions

View File

@@ -20,7 +20,7 @@ func (r {{.Name}}) Equals(other types.Value) bool {
}
func (r {{.Name}}) Chunks() []types.Future {
return nil
return r.TypeRef().Chunks()
}
func (r {{.Name}}) NomsValue() types.Value {