mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-22 00:47:28 +01:00
Rename token.IDMap to token.Map.
This commit is contained in:
1 parent
f6cc7950ff
commit
6e7e566232
15 files changed
+230
-230
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user