Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 271 for walkFn (0.1 sec)

  1. src/path/filepath/path.go

    		}
    	}
    	return nil
    }
    
    // walk recursively descends path, calling walkFn.
    func walk(path string, info fs.FileInfo, walkFn WalkFunc) error {
    	if !info.IsDir() {
    		return walkFn(path, info, nil)
    	}
    
    	names, err := readDirNames(path)
    	err1 := walkFn(path, info, err)
    	// If err != nil, walk can't walk into this directory.
    	// err1 != nil means walkFn want walk to skip this directory or stop walking.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  2. src/cmd/go/internal/fsys/fsys.go

    		if err := walk(filename, fi, walkFn); err != nil {
    			if !fi.IsDir() || err != filepath.SkipDir {
    				return err
    			}
    		}
    	}
    	return nil
    }
    
    // Walk walks the file tree rooted at root, calling walkFn for each file or
    // directory in the tree, including root.
    func Walk(root string, walkFn filepath.WalkFunc) error {
    	Trace("Walk", root)
    	info, err := Lstat(root)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:35:34 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  3. src/go/build/deps_test.go

    func listStdPkgs(goroot string) ([]string, error) {
    	// Based on cmd/go's matchPackages function.
    	var pkgs []string
    
    	src := filepath.Join(goroot, "src") + string(filepath.Separator)
    	walkFn := func(path string, d fs.DirEntry, err error) error {
    		if err != nil || !d.IsDir() || path == src {
    			return nil
    		}
    
    		base := filepath.Base(path)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 16:41:13 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  4. cmd/metacache-walk.go

    			return nil
    		}
    
    		if s.walkMu != nil {
    			s.walkMu.Lock()
    		}
    		entries, err := s.ListDir(ctx, "", opts.Bucket, current, -1)
    		if s.walkMu != nil {
    			s.walkMu.Unlock()
    		}
    		if err != nil {
    			// Folder could have gone away in-between
    			if err != errVolumeNotFound && err != errFileNotFound {
    				internalLogOnceIf(ctx, err, "metacache-walk-scan-dir")
    			}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Jun 01 05:17:37 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  5. src/go/ast/walk.go

    		if n.Elt != nil {
    			Walk(v, n.Elt)
    		}
    
    	case *FuncLit:
    		Walk(v, n.Type)
    		Walk(v, n.Body)
    
    	case *CompositeLit:
    		if n.Type != nil {
    			Walk(v, n.Type)
    		}
    		walkList(v, n.Elts)
    
    	case *ParenExpr:
    		Walk(v, n.X)
    
    	case *SelectorExpr:
    		Walk(v, n.X)
    		Walk(v, n.Sel)
    
    	case *IndexExpr:
    		Walk(v, n.X)
    		Walk(v, n.Index)
    
    	case *IndexListExpr:
    		Walk(v, n.X)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:34:10 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/stdlib_test.go

    }
    
    func walkPkgDirs(dir string, pkgh func(dir string, filenames []string), errh func(args ...interface{})) {
    	w := walker{pkgh, errh}
    	w.walk(dir)
    }
    
    type walker struct {
    	pkgh func(dir string, filenames []string)
    	errh func(args ...any)
    }
    
    func (w *walker) walk(dir string) {
    	files, err := os.ReadDir(dir)
    	if err != nil {
    		w.errh(err)
    		return
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:18:33 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssagen/nowb.go

    	extraCalls map[*ir.Func][]nowritebarrierrecCall
    
    	// curfn is the current function during AST walks.
    	curfn *ir.Func
    }
    
    type nowritebarrierrecCall struct {
    	target *ir.Func // caller or callee
    	lineno src.XPos // line of call
    }
    
    // newNowritebarrierrecChecker creates a nowritebarrierrecChecker. It
    // must be called before walk.
    func newNowritebarrierrecChecker() *nowritebarrierrecChecker {
    	c := &nowritebarrierrecChecker{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 17:29:46 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_sequencing.cc

      // Walk the input and output dependencies of the Ops in `operations` to form
      // the closer of Ops needed to evaluate 'operations'. Input dependencies are
      // walked if 'predecessors' is true and output dependencies are walked if
      // 'successors' is true. In either case, if a discoverd Op is in the
      // 'ops_to_avoid' set, then the dependency walking is terminated.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  9. src/text/template/exec.go

    	truth, ok := isTrue(indirectInterface(val))
    	if !ok {
    		s.errorf("if/with can't use %v", val)
    	}
    	if truth {
    		if typ == parse.NodeWith {
    			s.walk(val, list)
    		} else {
    			s.walk(dot, list)
    		}
    	} else if elseList != nil {
    		s.walk(dot, elseList)
    	}
    }
    
    // IsTrue reports whether the value is 'true', in the sense of not the zero of its type,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:22:24 UTC 2024
    - 32K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/deadstore.go

    		}
    
    		// Walk backwards looking for dead stores. Keep track of shadowed addresses.
    		// A "shadowed address" is a pointer, offset, and size describing a memory region that
    		// is known to be written. We keep track of shadowed addresses in the shadowed map,
    		// mapping the ID of the address to a shadowRange where future writes will happen.
    		// Since we're walking backwards, writes to a shadowed region are useless,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 25 20:07:26 UTC 2024
    - 11K bytes
    - Viewed (0)
Back to top