Lines Matching refs:filename
38 filename string member
67 func newParser(rd io.Reader, filename string) *parser {
71 p.mk.filename = filename
78 filename: p.mk.filename,
731 for _, filename := range candidates {
732 if exists(filename) {
733 return filename, nil
740 parser := newParser(rd, loc.filename)
771 func (mc *makefileCacheT) lookup(filename string) (makefile, [sha1.Size]byte, bool, error) {
774 c, present := mc.mk[filename]
779 ts := getTimestamp(filename)
786 func (mc *makefileCacheT) parse(filename string) (makefile, [sha1.Size]byte, error) {
787 glog.Infof("parse Makefile %q", filename)
788 mk, hash, ok, err := makefileCache.lookup(filename)
791 glog.Infof("makefile cache hit for %q", filename)
796 glog.Infof("reading makefile %q", filename)
798 c, err := ioutil.ReadFile(filename)
803 mk, err = parseMakefile(c, filename)
808 makefileCache.mk[filename] = mkCacheEntry{
818 func parseMakefile(s []byte, filename string) (makefile, error) {
819 parser := newParser(bytes.NewReader(s), filename)