func (lang) Prepare( src map[string]*build8.File, imp build8.Importer, ) []*lex8.Error { if f := build8.OnlyFile(src); f != nil { return listImport(f.Path, f, imp) } f := src["import.s"] if f == nil { return nil } return listImport(f.Path, f, imp) }
func (l *lang) Prepare( src map[string]*build8.File, importer build8.Importer, ) []*lex8.Error { importer.Import("$", "asm/builtin", nil) if f := build8.OnlyFile(src); f != nil { return listImport(f.Path, f, importer, l.golike) } f := src["import.g"] if f == nil { return nil } return listImport(f.Path, f, importer, l.golike) }