mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-22 00:47:28 +01:00
Move func WuffsRoot to package generate
This commit is contained in:
1 parent
f5c6204f09
commit
d92e90d4f0
4 files changed
+35
-20
No files matched your search
@@ -32,8 +32,6 @@ import (
|
||||
"github.com/google/wuffs/lang/check"
|
||||
"github.com/google/wuffs/lang/generate"
|
||||
|
||||
cf "github.com/google/wuffs/cmd/commonflags"
|
||||
|
||||
a "github.com/google/wuffs/lang/ast"
|
||||
t "github.com/google/wuffs/lang/token"
|
||||
)
|
||||
@@ -613,7 +611,7 @@ func (g *gen) writeUse(b *buffer, n *a.Use) error {
|
||||
|
||||
if g.wuffsRoot == "" {
|
||||
var err error
|
||||
g.wuffsRoot, err = cf.WuffsRoot()
|
||||
g.wuffsRoot, err = generate.WuffsRoot()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user