Rename token.IDMap to token.Map.

This commit is contained in:
Nigel Tao committed 2017-06-08 13:10:01 +10:00
1 parent f6cc7950ff
commit 6e7e566232
15 files changed
+230 -230

No files matched your search

+2 -2
View File
@@ -16,7 +16,7 @@ import (
var newLine = []byte{'\n'}
func Render(w io.Writer, m *token.IDMap, src []token.Token, comments []string) (err error) {
func Render(w io.Writer, tm *token.Map, src []token.Token, comments []string) (err error) {
if len(src) == 0 {
return nil
}
@@ -109,7 +109,7 @@ func Render(w io.Writer, m *token.IDMap, src []token.Token, comments []string) (
}
}
buf = append(buf, m.ByToken(t)...)
buf = append(buf, tm.ByToken(t)...)
if t.ID.Key() == token.KeyOpenCurly {
if indent == maxIndent {