Remove parse's Options.AllowBuiltIns

This commit is contained in:
Nigel Tao committed 2018-12-28 15:50:18 +11:00
1 parent 5cddd4894f
commit 489fec4437
2 files changed
+2 -18

No files matched your search

+1 -4
View File
@@ -118,9 +118,6 @@ func (c *Checker) parseBuiltInFuncs(ss []string, generic bool) (map[t.QQID]*a.Fu
}
buf := []byte(nil)
opts := parse.Options{
AllowBuiltIns: true,
}
for _, s := range ss {
buf = buf[:0]
buf = append(buf, "pub func "...)
@@ -141,7 +138,7 @@ func (c *Checker) parseBuiltInFuncs(ss []string, generic bool) (map[t.QQID]*a.Fu
}
}
}
file, err := parse.Parse(c.tm, filename, tokens, &opts)
file, err := parse.Parse(c.tm, filename, tokens, nil)
if err != nil {
return nil, fmt.Errorf("check: parsing %q: could not parse built-in funcs: %v", s, err)
}