Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 289 for walkP (0.04 sec)

  1. test/fixedbugs/issue46304.go

    type Op struct {
    	tag   string
    	_x    []string
    	_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() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 22 00:51:17 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  2. src/io/fs/walk.go

    // as an error by any function.
    var SkipAll = errors.New("skip everything and stop the walk")
    
    // WalkDirFunc is the type of the function called by [WalkDir] to visit
    // each file or directory.
    //
    // The path argument contains the argument to [WalkDir] as a prefix.
    // That is, if WalkDir is called with root argument "dir" and finds a file
    // named "a" in that directory, the walk function will be called with
    // argument "dir/a".
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 09 08:50:19 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  3. 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)
  4. src/cmd/compile/internal/syntax/walk.go

    // for each of the non-nil children of root, followed by a call of f(nil).
    //
    // See Walk for caveats about shared nodes.
    func Inspect(root Node, f func(Node) bool) {
    	Walk(root, inspector(f))
    }
    
    type inspector func(Node) bool
    
    func (v inspector) Visit(node Node) Visitor {
    	if v(node) {
    		return v
    	}
    	return nil
    }
    
    // Walk traverses an AST in pre-order: It starts by calling
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:55:04 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  5. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/FileSystemSnapshot.java

         */
        Stream<FileSystemLocationSnapshot> roots();
    
        /**
         * Walks the whole hierarchy represented by this snapshot.
         *
         * The walk is depth first.
         */
        SnapshotVisitResult accept(FileSystemSnapshotHierarchyVisitor visitor);
    
        /**
         * Walks the whole hierarchy represented by this snapshot.
         *
         * The walk is depth first.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:32 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  6. src/reflect/visiblefields.go

    	visiting map[Type]bool
    	fields   []StructField
    	index    []int
    }
    
    // walk walks all the fields in the struct type t, visiting
    // fields in index preorder and appending them to w.fields
    // (this maintains the required ordering).
    // Fields that have been overridden have their
    // Name field cleared.
    func (w *visibleFieldsWalker) walk(t Type) {
    	if w.visiting[t] {
    		return
    	}
    	w.visiting[t] = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 26 14:24:17 UTC 2021
    - 3K bytes
    - Viewed (0)
  7. src/cmd/doc/dirs.go

    	if !ok {
    		return Dir{}, false
    	}
    	d.hist = append(d.hist, dir)
    	d.offset++
    	return dir, ok
    }
    
    // walk walks the trees in GOROOT and GOPATH.
    func (d *Dirs) walk(roots []Dir) {
    	for _, root := range roots {
    		d.bfsWalkRoot(root)
    	}
    	close(d.scan)
    }
    
    // bfsWalkRoot walks a single directory hierarchy in breadth-first lexical order.
    // Each Go source directory it finds is delivered on d.scan.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 17:49:12 UTC 2022
    - 9K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/api/internal/file/copy/CopySpecBackedCopyActionProcessingStreamTest.groovy

        }
    
        def "walks spec"() {
            when:
            copyActionProcessingStream.process(action)
    
            then:
            1 * copySpecInternal.walk(_ as CopySpecActionImpl)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jul 20 13:25:37 UTC 2021
    - 1.6K bytes
    - Viewed (0)
  9. 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)
  10. src/cmd/compile/internal/walk/stmt.go

    	// to avoid confusion about what gets returned
    	// in the presence of type assertions.
    }
    
    func walkStmtList(s []ir.Node) {
    	for i := range s {
    		s[i] = walkStmt(s[i])
    	}
    }
    
    // walkFor walks an OFOR node.
    func walkFor(n *ir.ForStmt) ir.Node {
    	if n.Cond != nil {
    		init := ir.TakeInit(n.Cond)
    		walkStmtList(init)
    		n.Cond = walkExpr(n.Cond, &init)
    		n.Cond = ir.InitExpr(init, n.Cond)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 06 15:42:30 UTC 2023
    - 4.7K bytes
    - Viewed (0)
Back to top