mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 08:55:11 +01:00
Rename ParseFile, RenderFile to Parse, Render.
Also make various funcs' arg order consist wrt the IDMap and the input or inputs.
This commit is contained in:
1 parent
3a6ccbae67
commit
54567dbd47
6 files changed
+13
-13
No files matched your search
+2
-2
@@ -21,7 +21,7 @@ var (
|
||||
)
|
||||
|
||||
// TypeString returns a string form of the type n.
|
||||
func TypeString(n *a.Node, m *t.IDMap) string {
|
||||
func TypeString(m *t.IDMap, n *a.Node) string {
|
||||
if n == nil {
|
||||
return "!nil!"
|
||||
}
|
||||
@@ -38,7 +38,7 @@ func TypeString(n *a.Node, m *t.IDMap) string {
|
||||
case 0:
|
||||
return m.ByID(n.ID1)
|
||||
case t.IDPtr:
|
||||
return "ptr " + TypeString(n.RHS, m)
|
||||
return "ptr " + TypeString(m, n.RHS)
|
||||
case t.IDOpenBracket:
|
||||
// TODO.
|
||||
default:
|
||||
|
||||
Reference in new issue
Block a user