Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for IsField (0.4 sec)

  1. src/go/types/object.go

    }
    
    // Anonymous reports whether the variable is an embedded field.
    // Same as Embedded; only present for backward-compatibility.
    func (obj *Var) Anonymous() bool { return obj.embedded }
    
    // Embedded reports whether the variable is an embedded field.
    func (obj *Var) Embedded() bool { return obj.embedded }
    
    // IsField reports whether the variable is a struct field.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/object.go

    }
    
    // Anonymous reports whether the variable is an embedded field.
    // Same as Embedded; only present for backward-compatibility.
    func (obj *Var) Anonymous() bool { return obj.embedded }
    
    // Embedded reports whether the variable is an embedded field.
    func (obj *Var) Embedded() bool { return obj.embedded }
    
    // IsField reports whether the variable is a struct field.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/api_test.go

    			}
    			continue
    		}
    
    		// struct fields, type-associated and interface methods
    		// have no parent scope
    		wantParent := true
    		switch obj := obj.(type) {
    		case *Var:
    			if obj.IsField() {
    				wantParent = false
    			}
    		case *Func:
    			if obj.Type().(*Signature).Recv() != nil { // method
    				wantParent = false
    			}
    		}
    
    		gotParent := obj.Parent() != nil
    		switch {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
  4. src/go/types/api_test.go

    			}
    			continue
    		}
    
    		// struct fields, type-associated and interface methods
    		// have no parent scope
    		wantParent := true
    		switch obj := obj.(type) {
    		case *Var:
    			if obj.IsField() {
    				wantParent = false
    			}
    		case *Func:
    			if obj.Signature().Recv() != nil { // method
    				wantParent = false
    			}
    		}
    
    		gotParent := obj.Parent() != nil
    		switch {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
  5. src/runtime/export_windows_test.go

    // license that can be found in the LICENSE file.
    
    // Export guts for testing.
    
    package runtime
    
    import "unsafe"
    
    const MaxArgs = maxArgs
    
    var (
    	OsYield                 = osyield
    	TimeBeginPeriodRetValue = &timeBeginPeriodRetValue
    )
    
    func NumberOfProcessors() int32 {
    	var info systeminfo
    	stdcall1(_GetSystemInfo, uintptr(unsafe.Pointer(&info)))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 17:25:00 UTC 2024
    - 759 bytes
    - Viewed (0)
  6. src/runtime/cpuprof.go

    func (p *cpuProfile) add(tagPtr *unsafe.Pointer, stk []uintptr) {
    	// Simple cas-lock to coordinate with setcpuprofilerate.
    	for !prof.signalLock.CompareAndSwap(0, 1) {
    		// TODO: Is it safe to osyield here? https://go.dev/issue/52672
    		osyield()
    	}
    
    	if prof.hz.Load() != 0 { // implies cpuprof.log != nil
    		if p.numExtra > 0 || p.lostExtra > 0 || p.lostAtomic > 0 {
    			p.addExtra()
    		}
    		hdr := [1]uint64{1}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  7. src/runtime/os_plan9.go

    	return 0
    }
    
    func initsig(preinit bool) {
    	if !preinit {
    		notify(unsafe.Pointer(abi.FuncPCABI0(sigtramp)))
    	}
    }
    
    //go:nosplit
    func osyield() {
    	sleep(0)
    }
    
    //go:nosplit
    func osyield_no_g() {
    	osyield()
    }
    
    //go:nosplit
    func usleep(µs uint32) {
    	ms := int32(µs / 1000)
    	if ms == 0 {
    		ms = 1
    	}
    	sleep(ms)
    }
    
    //go:nosplit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  8. src/runtime/lock_futex.go

    		// Try for lock, rescheduling.
    		for i := 0; i < passive_spin; i++ {
    			for l.key == mutex_unlocked {
    				if atomic.Cas(key32(&l.key), mutex_unlocked, wait) {
    					timer.end()
    					return
    				}
    			}
    			osyield()
    		}
    
    		// Sleep.
    		v = atomic.Xchg(key32(&l.key), mutex_sleeping)
    		if v == mutex_unlocked {
    			timer.end()
    			return
    		}
    		wait = mutex_sleeping
    		futexsleep(key32(&l.key), mutex_sleeping, -1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:34 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  9. src/runtime/signal_unix.go

    	// have been delivered. Give other threads a chance to run and
    	// pick up the signal.
    	osyield()
    	osyield()
    	osyield()
    
    	// If that didn't work, try _SIG_DFL.
    	setsig(sig, _SIG_DFL)
    	raise(sig)
    
    	osyield()
    	osyield()
    	osyield()
    
    	// If we are still somehow running, just exit with the wrong status.
    	exit(2)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 16:04:54 UTC 2024
    - 45K bytes
    - Viewed (0)
  10. src/runtime/lock_sema.go

    			// Unlocked. Try to lock.
    			if atomic.Casuintptr(&l.key, v, v|locked) {
    				timer.end()
    				return
    			}
    			i = 0
    		}
    		if i < spin {
    			procyield(active_spin_cnt)
    		} else if i < spin+passive_spin {
    			osyield()
    		} else {
    			// Someone else has it.
    			// l->waitm points to a linked list of M's waiting
    			// for this lock, chained through m->nextwaitm.
    			// Queue this M.
    			for {
    				gp.m.nextwaitm = muintptr(v &^ locked)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 6.8K bytes
    - Viewed (0)
Back to top