Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for ChanDir (0.15 sec)

  1. src/go/types/chan.go

    type Chan struct {
    	dir  ChanDir
    	elem Type
    }
    
    // A ChanDir value indicates a channel direction.
    type ChanDir int
    
    // The direction of a channel is indicated by one of these constants.
    const (
    	SendRecv ChanDir = iota
    	SendOnly
    	RecvOnly
    )
    
    // NewChan returns a new channel type for the given direction and element type.
    func NewChan(dir ChanDir, elem Type) *Chan {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/chan.go

    type Chan struct {
    	dir  ChanDir
    	elem Type
    }
    
    // A ChanDir value indicates a channel direction.
    type ChanDir int
    
    // The direction of a channel is indicated by one of these constants.
    const (
    	SendRecv ChanDir = iota
    	SendOnly
    	RecvOnly
    )
    
    // NewChan returns a new channel type for the given direction and element type.
    func NewChan(dir ChanDir, elem Type) *Chan {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 01 22:17:50 UTC 2021
    - 910 bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types/identity.go

    				return false
    			}
    		}
    		return true
    
    	case TARRAY:
    		if t1.NumElem() != t2.NumElem() {
    			return false
    		}
    
    	case TCHAN:
    		if t1.ChanDir() != t2.ChanDir() {
    			return false
    		}
    
    	case TMAP:
    		if !identical(t1.Key(), t2.Key(), flags, assumedEqual) {
    			return false
    		}
    	}
    
    	return identical(t1.Elem(), t2.Elem(), flags, assumedEqual)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 20:57:01 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  4. src/reflect/badlinkname.go

    //go:linkname badlinkname_rtype_Bits reflect.(*rtype).Bits
    func badlinkname_rtype_Bits(*rtype) int
    
    //go:linkname badlinkname_rtype_ChanDir reflect.(*rtype).ChanDir
    func badlinkname_rtype_ChanDir(*rtype) ChanDir
    
    //go:linkname badlinkname_rtype_Comparable reflect.(*rtype).Comparable
    func badlinkname_rtype_Comparable(*rtype) bool
    
    //go:linkname badlinkname_rtype_ConvertibleTo reflect.(*rtype).ConvertibleTo
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  5. src/go/internal/gcimporter/support.go

    			fakeLines[i] = i
    		}
    	})
    	for _, f := range s.files {
    		f.file.SetLines(fakeLines[:f.lastline])
    	}
    }
    
    var (
    	fakeLines     []int
    	fakeLinesOnce sync.Once
    )
    
    func chanDir(d int) types.ChanDir {
    	// tag values must match the constants in cmd/compile/internal/gc/go.go
    	switch d {
    	case 1 /* Crecv */ :
    		return types.RecvOnly
    	case 2 /* Csend */ :
    		return types.SendOnly
    	case 3 /* Cboth */ :
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/syntax/nodes.go

    	// <-chan Elem
    	// chan<- Elem
    	ChanType struct {
    		Dir  ChanDir // 0 means no direction
    		Elem Expr
    		expr
    	}
    )
    
    type expr struct {
    	node
    	typeAndValue // After typechecking, contains the results of typechecking this expression.
    }
    
    func (*expr) aExpr() {}
    
    type ChanDir uint
    
    const (
    	_ ChanDir = iota
    	SendOnly
    	RecvOnly
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 14:52:38 UTC 2023
    - 9K bytes
    - Viewed (0)
  7. src/go/internal/gccgoimporter/importer_test.go

    	{pkgpath: "issue27856", name: "M", gccgoVersion: 7, want: "type M struct{E F}"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:17:57 UTC 2022
    - 7.2K bytes
    - Viewed (0)
Back to top