Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for parsedFileCache (0.13 sec)

  1. src/cmd/api/main_test.go

    	for f := range w.features {
    		fs = append(fs, f)
    	}
    	sort.Strings(fs)
    	return
    }
    
    var parsedFileCache = make(map[string]*ast.File)
    
    func (w *Walker) parseFile(dir, file string) (*ast.File, error) {
    	filename := filepath.Join(dir, file)
    	if f := parsedFileCache[filename]; f != nil {
    		return f, nil
    	}
    
    	f, err := parser.ParseFile(fset, filename, nil, parser.ParseComments)
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Sep 04 18:16:59 UTC 2024
    - 31.4K bytes
    - Viewed (0)
Back to top