Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for IfNode (0.1 sec)

  1. src/text/template/exec.go

    		if len(node.Pipe.Decl) == 0 {
    			s.printValue(node, val)
    		}
    	case *parse.BreakNode:
    		panic(walkBreak)
    	case *parse.CommentNode:
    	case *parse.ContinueNode:
    		panic(walkContinue)
    	case *parse.IfNode:
    		s.walkIfOrWith(parse.NodeIf, dot, node.Pipe, node.List, node.ElseList)
    	case *parse.ListNode:
    		for _, node := range node.Nodes {
    			s.walk(dot, node)
    		}
    	case *parse.RangeNode:
    		s.walkRange(dot, node)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:22:24 UTC 2024
    - 32K bytes
    - Viewed (0)
  2. src/internal/syscall/unix/siginfo_linux_test.go

    	if v := unsafe.Sizeof(si); v != 128 {
    		t.Fatalf("sizeof: got %d, want 128", v)
    	}
    
    	ofSigno := 0
    	ofErrno := 4
    	ofCode := 8
    	if strings.HasPrefix(runtime.GOARCH, "mips") {
    		// These two fields are swapped on MIPS platforms.
    		ofErrno, ofCode = ofCode, ofErrno
    	}
    	ofPid := 12
    	if host64bit {
    		ofPid = 16
    	}
    	ofUid := ofPid + 4
    	ofStatus := ofPid + 8
    
    	offsets := []struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 01:23:00 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  3. src/runtime/export_test.go

    }
    
    const PreemptMSupported = preemptMSupported
    
    type LFNode struct {
    	Next    uint64
    	Pushcnt uintptr
    }
    
    func LFStackPush(head *uint64, node *LFNode) {
    	(*lfstack)(head).push((*lfnode)(unsafe.Pointer(node)))
    }
    
    func LFStackPop(head *uint64) *LFNode {
    	return (*LFNode)((*lfstack)(head).pop())
    }
    func LFNodeValidate(node *LFNode) {
    	lfnodeValidate((*lfnode)(unsafe.Pointer(node)))
    }
    
    func Netpoll(delta int64) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  4. src/syscall/syscall_linux.go

    			return nil
    		}
    		return EACCES
    	}
    
    	var fmode uint32
    	if uint32(uid) == st.Uid {
    		fmode = (st.Mode >> 6) & 7
    	} else {
    		var gid int
    		if flags&_AT_EACCESS != 0 {
    			gid = Getegid()
    		} else {
    			gid = Getgid()
    		}
    
    		if uint32(gid) == st.Gid || isGroupMember(int(st.Gid)) {
    			fmode = (st.Mode >> 3) & 7
    		} else {
    			fmode = st.Mode & 7
    		}
    	}
    
    	if fmode&mode == mode {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  5. src/runtime/runtime2.go

    	name      string
    	file      string
    	line      int32
    	startLine int32
    }
    
    type itab = abi.ITab
    
    // Lock-free stack node.
    // Also known to export_test.go.
    type lfnode struct {
    	next    uint64
    	pushcnt uintptr
    }
    
    type forcegcstate struct {
    	lock mutex
    	g    *g
    	idle atomic.Bool
    }
    
    // A _defer holds an entry on the list of deferred calls.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 47.9K bytes
    - Viewed (0)
  6. src/runtime/mgc.go

    // gcBgMarkWorker goroutine.
    type gcBgMarkWorkerNode struct {
    	// Unused workers are managed in a lock-free stack. This field must be first.
    	node lfnode
    
    	// The g of this worker.
    	gp guintptr
    
    	// Release this m on park. This is used to communicate with the unlock
    	// function, which cannot access the G's stack. It is unused outside of
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62K bytes
    - Viewed (0)
Back to top