Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 662 for walkFn (0.1 sec)

  1. staging/src/k8s.io/cli-runtime/pkg/resource/interfaces.go

    type ContentValidator interface {
    	ValidateBytes(data []byte) error
    }
    
    // Visitor lets clients walk a list of resources.
    type Visitor interface {
    	Visit(VisitorFunc) error
    }
    
    // VisitorFunc implements the Visitor interface for a matching function.
    // If there was a problem walking a list of resources, the incoming error
    // will describe the problem and the function can decide how to handle that error.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 23:00:24 UTC 2019
    - 3.1K bytes
    - Viewed (0)
  2. 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)
  3. src/cmd/vendor/golang.org/x/tools/go/ast/astutil/rewrite.go

    	// Files and packages
    	case *ast.File:
    		a.apply(n, "Doc", nil, n.Doc)
    		a.apply(n, "Name", nil, n.Name)
    		a.applyList(n, "Decls")
    		// Don't walk n.Comments; they have either been walked already if
    		// they are Doc comments, or they can be easily walked explicitly.
    
    	case *ast.Package:
    		// collect and sort names for reproducible behavior
    		var names []string
    		for name := range n.Files {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 12.2K bytes
    - Viewed (0)
  4. src/cmd/cgo/ast.go

    		f.walk(n.Body, ctxTypeSwitch, visit)
    	case *ast.CommClause:
    		f.walk(n.Comm, ctxStmt, visit)
    		f.walk(n.Body, ctxStmt, visit)
    	case *ast.SelectStmt:
    		f.walk(n.Body, ctxStmt, visit)
    	case *ast.ForStmt:
    		f.walk(n.Init, ctxStmt, visit)
    		f.walk(&n.Cond, ctxExpr, visit)
    		f.walk(n.Post, ctxStmt, visit)
    		f.walk(n.Body, ctxStmt, visit)
    	case *ast.RangeStmt:
    		f.walk(&n.Key, ctxExpr, visit)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 07 16:54:27 UTC 2023
    - 14.3K bytes
    - Viewed (0)
  5. platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/collections/DirectoryFileTreeTest.groovy

        }
    
        /**
        file structure:
        root
            rootFile1
            dir1
               dirFile1
               dirFile2
            rootFile2
    
            Test that the files are really walked breadth first
         */
        def "walk breadth first - isReproducible: #visitor.isReproducibleFileOrder"() {
            given:
            def root = temporaryFolder.createDir("root")
            def rootFile1 = root.createFile("rootFile1")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/walk/closure.go

    	clofn.SetNeedctxt(true)
    
    	// The closure expression may be walked more than once if it appeared in composite
    	// literal initialization (e.g, see issue #49029).
    	//
    	// Don't add the closure function to compilation queue more than once, since when
    	// compiling a function twice would lead to an ICE.
    	if !clofn.Walked() {
    		clofn.SetWalked(true)
    		ir.CurFunc.Closures = append(ir.CurFunc.Closures, clofn)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 15:56:08 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  7. pkg/kubelet/pluginmanager/pluginwatcher/plugin_watcher.go

    func (w *Watcher) Start(stopCh <-chan struct{}) error {
    	klog.V(2).InfoS("Plugin Watcher Start", "path", w.path)
    
    	// Creating the directory to be watched if it doesn't exist yet,
    	// and walks through the directory to discover the existing plugins.
    	if err := w.init(); err != nil {
    		return err
    	}
    
    	fsWatcher, err := fsnotify.NewWatcher()
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 01 00:26:37 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/internal/classpath/ClasspathWalkerTest.groovy

        @Rule
        TestNameTestDirectoryProvider tmpDir = new TestNameTestDirectoryProvider(ClasspathWalkerTest.class)
        def walker = new ClasspathWalker(TestFiles.fileSystem())
    
        def "skips missing file"() {
            def visitor = Mock(ClasspathEntryVisitor)
    
            when:
            walker.visit(tmpDir.file("missing"), visitor)
    
            then:
            0 * visitor._
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 20 11:15:22 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/walk/switch.go

    	"cmd/compile/internal/types"
    	"cmd/internal/obj"
    	"cmd/internal/src"
    )
    
    // walkSwitch walks a switch statement.
    func walkSwitch(sw *ir.SwitchStmt) {
    	// Guard against double walk, see #25776.
    	if sw.Walked() {
    		return // Was fatal, but eliminating every possible source of double-walking is hard
    	}
    	sw.SetWalked(true)
    
    	if sw.Tag != nil && sw.Tag.Op() == ir.OTYPESW {
    		walkSwitchType(sw)
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:01 UTC 2024
    - 30.1K bytes
    - Viewed (0)
  10. 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)
Back to top