mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 00: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
@@ -24,14 +24,14 @@ func TestCheck(t *testing.T) {
|
||||
|
||||
idMap := &token.IDMap{}
|
||||
|
||||
tokens, _, err := token.Tokenize([]byte(src), idMap, filename)
|
||||
tokens, _, err := token.Tokenize(idMap, filename, []byte(src))
|
||||
if err != nil {
|
||||
t.Fatalf("Tokenize: %v", err)
|
||||
}
|
||||
|
||||
node, err := parse.ParseFile(tokens, idMap, filename)
|
||||
node, err := parse.Parse(idMap, filename, tokens)
|
||||
if err != nil {
|
||||
t.Fatalf("ParseFile: %v", err)
|
||||
t.Fatalf("Parse: %v", err)
|
||||
}
|
||||
|
||||
c, err := Check(idMap, node)
|
||||
@@ -57,7 +57,7 @@ func TestCheck(t *testing.T) {
|
||||
for id, typ := range bar.LocalVars {
|
||||
got = append(got, [2]string{
|
||||
idMap.ByID(id),
|
||||
TypeString(typ, idMap),
|
||||
TypeString(idMap, typ),
|
||||
})
|
||||
}
|
||||
sort.Slice(got, func(i, j int) bool {
|
||||
|
||||
Reference in new issue
Block a user