Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 125 for walkFn (0.13 sec)

  1. 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)
  2. cmd/preferredimports/preferredimports.go

    	if err != nil {
    		log.Fatalf("Error compiling regex: %v", err)
    	}
    	c := collector{regex: regex}
    	for _, arg := range args {
    		err := filepath.Walk(arg, c.handlePath)
    		if err != nil {
    			log.Fatalf("Error walking: %v", err)
    		}
    	}
    	sort.Strings(c.dirs)
    
    	if len(*importAliases) > 0 {
    		bytes, err := os.ReadFile(*importAliases)
    		if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:44 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  3. 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)
  4. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/tasks/CachingTaskDependencyResolveContext.java

        private final Deque<Object> queue = new ArrayDeque<Object>();
        private final CachingDirectedGraphWalker<Object, T> walker;
        private Task task;
    
        public CachingTaskDependencyResolveContext(Collection<? extends WorkDependencyResolver<T>> workResolvers) {
            this.walker = new CachingDirectedGraphWalker<>(new TaskGraphImpl(workResolvers));
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 02 20:48:26 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  5. subprojects/core/src/test/groovy/org/gradle/api/internal/tasks/AbstractTaskInputsAndOutputsTest.groovy

            def visitor = new GetInputPropertiesVisitor()
            TaskPropertyUtils.visitProperties(walker, task, visitor)
            return visitor.properties.collectEntries { [it.propertyName, InputParameterUtils.prepareInputParameterValue(it.value)] }
        }
    
        def inputFileProperties() {
            def inputFiles = [:]
            TaskPropertyUtils.visitProperties(walker, task, new PropertyVisitor() {
                @Override
                void visitInputFileProperty(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 20:42:35 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  6. hack/boilerplate/boilerplate.py

            files = args.filenames
        else:
            for root, dirs, walkfiles in os.walk(args.rootdir):
                # don't visit certain dirs. This is just a performance improvement
                # as we would prune these later in normalize_files(). But doing it
                # cuts down the amount of filesystem walking we do and cuts down
                # the size of the file list
                for dname in skipped_names:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:51 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  7. src/go/types/mono.go

    	var stack []int
    	seen := make([]bool, len(check.mono.vertices))
    
    	// We have a path that contains a cycle and ends at v, but v may
    	// only be reachable from the cycle, not on the cycle itself. We
    	// start by walking backwards along the path until we find a vertex
    	// that appears twice.
    	for !seen[v] {
    		stack = append(stack, v)
    		seen[v] = true
    		v = check.mono.edges[check.mono.vertices[v].pre].src
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/mono.go

    	var stack []int
    	seen := make([]bool, len(check.mono.vertices))
    
    	// We have a path that contains a cycle and ends at v, but v may
    	// only be reachable from the cycle, not on the cycle itself. We
    	// start by walking backwards along the path until we find a vertex
    	// that appears twice.
    	for !seen[v] {
    		stack = append(stack, v)
    		seen[v] = true
    		v = check.mono.edges[check.mono.vertices[v].pre].src
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 28 00:05:29 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  9. src/go/ast/walk_test.go

    package ast_test
    
    import (
    	"go/ast"
    	"go/parser"
    	"go/token"
    	"testing"
    )
    
    func TestPreorderBreak(t *testing.T) {
    	// This test checks that Preorder correctly handles a break statement while
    	// in the middle of walking a node. Previously, incorrect handling of the
    	// boolean returned by the yield function resulted in the iterator calling
    	// yield for sibling nodes even after yield had returned false. With that
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:34:10 UTC 2024
    - 916 bytes
    - Viewed (0)
  10. src/syscall/rlimit.go

    //
    // Go does not use select, so it should not be subject to these limits.
    // On some systems the limit is 256, which is very easy to run into,
    // even in simple programs like gofmt when they parallelize walking
    // a file tree.
    //
    // After a long discussion on go.dev/issue/46279, we decided the
    // best approach was for Go to raise the limit unconditionally for itself,
    // and then leave old software to set the limit back as needed.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 20:13:57 UTC 2024
    - 1.6K bytes
    - Viewed (0)
Back to top