Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 269 for walkIf (0.11 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/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)
  5. 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)
  6. 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)
  7. pkg/util/filesystem/defaultfs.go

    // ReadDir via os.ReadDir
    func (fs *DefaultFs) ReadDir(dirname string) ([]os.DirEntry, error) {
    	return os.ReadDir(fs.prefix(dirname))
    }
    
    // Walk via filepath.Walk
    func (fs *DefaultFs) Walk(root string, walkFn filepath.WalkFunc) error {
    	return filepath.Walk(fs.prefix(root), walkFn)
    }
    
    // defaultFile implements File using same-named functions from "os"
    type defaultFile struct {
    	file *os.File
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 03 07:38:14 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/properties/bean/DefaultPropertyWalker.java

        private final InstanceMetadataWalker walker;
        private final ImplementationResolver implementationResolver;
        private final Map<Class<? extends Annotation>, PropertyAnnotationHandler> handlers;
    
        public DefaultPropertyWalker(TypeMetadataStore typeMetadataStore, ImplementationResolver implementationResolver, Collection<PropertyAnnotationHandler> propertyHandlers) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/utils/tpu_cluster_util.h

    #include "tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util.h"
    
    namespace mlir {
    namespace TFTPU {
    
    // For each TPU cluster in `module`, walk over all ops inside the cluster
    // and reachable in the call graph from the cluster.
    // For each op walked, `callback` is applied to the op, the root cluster, and
    // the root cluster's host device. `callback` returning WasInterrupted
    // indicates failure.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 04:50:13 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  10. pkg/util/filesystem/filesystem.go

    	// from "os"
    	ReadFile(filename string) ([]byte, error)
    	TempDir(dir, prefix string) (string, error)
    	TempFile(dir, prefix string) (File, error)
    	ReadDir(dirname string) ([]os.DirEntry, error)
    	Walk(root string, walkFn filepath.WalkFunc) error
    }
    
    // File is an interface that we can use to mock various filesystem operations typically
    // accessed through the File object from the "os" package
    type File interface {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 13 01:02:46 UTC 2023
    - 1.6K bytes
    - Viewed (0)
Back to top