Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 166 for doDecl (0.19 sec)

  1. src/go/internal/gcimporter/iimport.go

    	names := make([]string, 0, len(p.pkgIndex[localpkg]))
    	for name := range p.pkgIndex[localpkg] {
    		names = append(names, name)
    	}
    	slices.Sort(names)
    	for _, name := range names {
    		p.doDecl(localpkg, name)
    	}
    
    	// SetConstraint can't be called if the constraint type is not yet complete.
    	// When type params are created in the 'P' case of (*importReader).obj(),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  2. src/go/types/decl.go

    	// in check.decl. Initialization expressions depending on other
    	// consts, vars, or functions, add dependencies to the current
    	// check.decl.
    	switch obj := obj.(type) {
    	case *Const:
    		check.decl = d // new package-level const decl
    		check.constDecl(obj, d.vtyp, d.init, d.inherited)
    	case *Var:
    		check.decl = d // new package-level var decl
    		check.varDecl(obj, d.lhs, d.vtyp, d.init)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/decl.go

    	// in check.decl. Initialization expressions depending on other
    	// consts, vars, or functions, add dependencies to the current
    	// check.decl.
    	switch obj := obj.(type) {
    	case *Const:
    		check.decl = d // new package-level const decl
    		check.constDecl(obj, d.vtyp, d.init, d.inherited)
    	case *Var:
    		check.decl = d // new package-level var decl
    		check.varDecl(obj, d.lhs, d.vtyp, d.init)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 29.6K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/testinggoroutine/testinggoroutine.go

    		}
    	}
    
    	if fn := typeutil.StaticCallee(info, call); fn != nil { // static call or method in the package?
    		if decl := toDecl(fn); decl != nil {
    			return &asyncCall{region: decl, async: goStmt, scope: nil, fun: fun}
    		}
    	}
    
    	// Check go statement for go t.Forbidden() or go func(){t.Forbidden()}().
    	return &asyncCall{region: goStmt, async: goStmt, scope: nil, fun: fun}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  5. test/decl.go

    Alan Donovan <******@****.***> 1360693069 -0500
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 12 18:17:49 UTC 2013
    - 926 bytes
    - Viewed (0)
  6. internal/pubsub/pubsub_test.go

    	ch2 := make(chan Maskable, 1)
    	ch3 := make(chan Maskable, 1)
    	doneCh := make(chan struct{})
    	defer close(doneCh)
    	if err := ps.Subscribe(MaskAll, ch1, doneCh, nil); err != nil {
    		t.Fatalf("unexpected error: %v", err)
    	}
    	if err := ps.Subscribe(MaskAll, ch2, doneCh, nil); err != nil {
    		t.Fatalf("unexpected error: %v", err)
    	}
    	if err := ps.Subscribe(MaskAll, ch3, doneCh, nil); err == nil {
    		t.Fatalf("unexpected nil err")
    	}
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  7. internal/store/store.go

    					// Get next key.
    					case <-doneCh:
    						return
    					}
    				}
    			}
    
    			select {
    			case <-retryTicker.C:
    			case <-doneCh:
    				return
    			}
    		}
    	}()
    
    	return keyCh
    }
    
    // sendItems - Reads items from the store and re-plays.
    func sendItems(target Target, keyCh <-chan Key, doneCh <-chan struct{}, logger logger) {
    	retryTicker := time.NewTicker(retryInterval)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Mar 25 16:44:20 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/server/healthz_test.go

    	t.Run("test that liveness check returns true until the delay has elapsed", func(t *testing.T) {
    		t0 := time.Unix(0, 0)
    		c := testingclock.NewFakeClock(t0)
    		doneCh := make(chan struct{})
    
    		healthCheck := delayedHealthCheck(postStartHookHealthz{"test", doneCh}, c, time.Duration(10)*time.Second)
    		err := healthCheck.Check(nil)
    		if err != nil {
    			t.Errorf("Got %v, expected no error", err)
    		}
    		c.Step(10 * time.Second)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 15 09:52:18 UTC 2021
    - 2.2K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/testing/promise/counting.go

    // - an optional initial value,
    // - an optional "done" channel,
    // - the value that is Set after the "done" channel becomes selectable.
    // Note that for this implementation, the reaction to `doneCh`
    // becoming selectable does not wait for a Get.
    // If `doneCh != nil` then the caller promises to close it reasonably promptly
    // (to the degree allowed by the Go runtime scheduler), and increment the
    // goroutine counter before that.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 10 14:37:53 UTC 2021
    - 3.3K bytes
    - Viewed (0)
  10. pkg/config/mesh/watcher_test_utils.go

    type TestWatcher struct {
    	internalWatcher
    	doneCh chan struct{} // used to implement a blocking Update method
    }
    
    func NewTestWatcher(meshConfig *meshconfig.MeshConfig) *TestWatcher {
    	w := &TestWatcher{
    		internalWatcher: internalWatcher{},
    	}
    	w.internalWatcher.MeshConfig.Store(meshConfig)
    	w.doneCh = make(chan struct{}, 1)
    	w.AddMeshHandler(func() {
    		w.doneCh <- struct{}{}
    	})
    	return w
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Nov 03 00:26:45 UTC 2023
    - 1.5K bytes
    - Viewed (0)
Back to top