Change the default names for typed data structures

TList -> ListOfT
TSet -> SetOfT
KeyValueMap -> MapOfKeyToValue

Issue #108
This commit is contained in:
Erik Arvidsson
2015-07-23 14:12:06 -07:00
parent 615a0971c3
commit e379360f3a
21 changed files with 422 additions and 418 deletions
+2 -2
View File
@@ -25,7 +25,7 @@ func (cache *commitCache) updateFromCommit(commit Commit) {
cache.refs[commit.Ref()] = true
}
func (cache *commitCache) Update(currentCommits CommitSet) {
func (cache *commitCache) Update(currentCommits SetOfCommit) {
if currentCommits.Len() == 0 {
return
}
@@ -35,7 +35,7 @@ func (cache *commitCache) Update(currentCommits CommitSet) {
return
}
commitSet := CommitSet{types.MustReadValue(commitsRef, cache.source).(types.Set)}
commitSet := SetOfCommit{types.MustReadValue(commitsRef, cache.source).(types.Set)}
commitSet.Iter(func(commit Commit) (stop bool) {
cache.updateFromCommit(commit)
return