Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 624 for walkIf (0.32 sec)

  1. src/cmd/compile/internal/walk/stmt.go

    	call.Fun = walkExpr(call.Fun, &init)
    
    	if len(init) > 0 {
    		init.Append(n)
    		return ir.NewBlockStmt(n.Pos(), init)
    	}
    	return n
    }
    
    // walkIf walks an OIF node.
    func walkIf(n *ir.IfStmt) ir.Node {
    	n.Cond = walkExpr(n.Cond, n.PtrInit())
    	walkStmtList(n.Body)
    	walkStmtList(n.Else)
    	return n
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 06 15:42:30 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/syntax/walk.go

    func Walk(root Node, v Visitor) {
    	walker{v}.node(root)
    }
    
    // A Visitor's Visit method is invoked for each node encountered by Walk.
    // If the result visitor w is not nil, Walk visits each of the children
    // of node with the visitor w, followed by a call of w.Visit(nil).
    type Visitor interface {
    	Visit(node Node) (w Visitor)
    }
    
    type walker struct {
    	v Visitor
    }
    
    func (w walker) node(n Node) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:55:04 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  3. src/io/fs/walk.go

    				break
    			}
    			return err
    		}
    	}
    	return nil
    }
    
    // WalkDir walks the file tree rooted at root, calling fn for each file or
    // directory in the tree, including root.
    //
    // All errors that arise visiting files and directories are filtered by fn:
    // see the [fs.WalkDirFunc] documentation for details.
    //
    // The files are walked in lexical order, which makes the output deterministic
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 09 08:50:19 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  4. 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)
  5. src/cmd/compile/internal/walk/walk.go

    const tmpstringbufsize = 32
    
    func Walk(fn *ir.Func) {
    	ir.CurFunc = fn
    	errorsBefore := base.Errors()
    	order(fn)
    	if base.Errors() > errorsBefore {
    		return
    	}
    
    	if base.Flag.W != 0 {
    		s := fmt.Sprintf("\nbefore walk %v", ir.CurFunc.Sym())
    		ir.DumpList(s, ir.CurFunc.Body)
    	}
    
    	walkStmtList(ir.CurFunc.Body)
    	if base.Flag.W != 0 {
    		s := fmt.Sprintf("after walk %v", ir.CurFunc.Sym())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 20:56:00 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. src/path/filepath/path_test.go

    		t.Helper()
    		sawFoo2 = false
    		err := walk(root)
    		if err != nil {
    			t.Fatal(err)
    		}
    		if sawFoo2 {
    			t.Errorf("SkipDir on file foo1 did not block processing of foo2")
    		}
    	}
    
    	t.Run("Walk", func(t *testing.T) {
    		Walk := func(root string) error { return filepath.Walk(td, walkFn) }
    		check(t, Walk, td)
    		check(t, Walk, filepath.Join(td, "dir"))
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:38:19 UTC 2024
    - 47.1K bytes
    - Viewed (0)
  9. test/fixedbugs/issue46304.go

    	_q    [20]uint64
    	plist []P
    }
    
    type P struct {
    	tag string
    	_x  [10]uint64
    	b   bool
    }
    
    type M int
    
    //go:noinline
    func (w *M) walkP(p *P) *P {
    	np := &P{}
    	*np = *p
    	np.tag += "new"
    	return np
    }
    
    func (w *M) walkOp(op *Op) *Op {
    	if op == nil {
    		return nil
    	}
    
    	orig := op
    	cloned := false
    	clone := func() {
    		if !cloned {
    			cloned = true
    			op = &Op{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 22 00:51:17 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/properties/annotations/TypeMetadataWalker.java

    import javax.annotation.Nullable;
    import java.lang.annotation.Annotation;
    
    /**
     * A generalized type metadata walker for traversing annotated types and instances using their {@link TypeMetadata}.
     *
     * During the walk we first visit the root (the type or instance passed to {@link #walk(Object, TypeMetadataVisitor)},
     * and then the properties are visited in depth-first order.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 3.9K bytes
    - Viewed (0)
Back to top