Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 18 of 18 for SendOnly (0.14 sec)

  1. src/cmd/compile/internal/syntax/printer.go

    		}
    		p.print(_Rbrace)
    
    	case *MapType:
    		p.print(_Map, _Lbrack, n.Key, _Rbrack, n.Value)
    
    	case *ChanType:
    		if n.Dir == RecvOnly {
    			p.print(_Arrow)
    		}
    		p.print(_Chan)
    		if n.Dir == SendOnly {
    			p.print(_Arrow)
    		}
    		p.print(blank)
    		if e, _ := n.Elem.(*ChanType); n.Dir == 0 && e != nil && e.Dir == RecvOnly {
    			// don't print chan (<-chan T) as chan <-chan T
    			p.print(_Lparen)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 24 07:17:27 UTC 2023
    - 21.5K bytes
    - Viewed (0)
  2. api/go1.5.txt

    pkg go/types, const MethodVal SelectionKind
    pkg go/types, const RecvOnly = 2
    pkg go/types, const RecvOnly ChanDir
    pkg go/types, const Rune = 5
    pkg go/types, const Rune BasicKind
    pkg go/types, const SendOnly = 1
    pkg go/types, const SendOnly ChanDir
    pkg go/types, const SendRecv = 0
    pkg go/types, const SendRecv ChanDir
    pkg go/types, const String = 17
    pkg go/types, const String BasicKind
    pkg go/types, const Uint = 7
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 30 21:14:09 UTC 2015
    - 46.6K bytes
    - Viewed (0)
  3. src/go/types/stmt.go

    	case *Array:
    		return Typ[Int], typ.elem, "", false, true
    	case *Slice:
    		return Typ[Int], typ.elem, "", false, true
    	case *Map:
    		return typ.key, typ.elem, "", false, true
    	case *Chan:
    		if typ.dir == SendOnly {
    			return bad("receive from send-only channel")
    		}
    		return typ.elem, nil, "", false, true
    	case *Signature:
    		if !buildcfg.Experiment.RangeFunc && allowVersion != nil && !allowVersion(go1_23) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  4. src/go/internal/gccgoimporter/parser.go

    	p.expectKeyword("chan")
    
    	t := new(types.Chan)
    	p.update(t, nlist)
    
    	dir := types.SendRecv
    	switch p.tok {
    	case '-':
    		p.next()
    		p.expect('<')
    		dir = types.SendOnly
    
    	case '<':
    		// don't consume '<' if it belongs to Type
    		if p.scanner.Peek() == '-' {
    			p.next()
    			p.expect('-')
    			dir = types.RecvOnly
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 02 23:14:07 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/stmt.go

    	case *Array:
    		return Typ[Int], typ.elem, "", false, true
    	case *Slice:
    		return Typ[Int], typ.elem, "", false, true
    	case *Map:
    		return typ.key, typ.elem, "", false, true
    	case *Chan:
    		if typ.dir == SendOnly {
    			return bad("receive from send-only channel")
    		}
    		return typ.elem, nil, "", false, true
    	case *Signature:
    		if !buildcfg.Experiment.RangeFunc && allowVersion != nil && !allowVersion(go1_23) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  6. src/go/types/expr.go

    			return
    		}
    		ch, _ := u.(*Chan)
    		if ch == nil {
    			check.errorf(x, InvalidReceive, invalidOp+"cannot receive from non-channel %s", x)
    			x.mode = invalid
    			return
    		}
    		if ch.dir == SendOnly {
    			check.errorf(x, InvalidReceive, invalidOp+"cannot receive from send-only channel %s", x)
    			x.mode = invalid
    			return
    		}
    
    		x.mode = commaok
    		x.typ = ch.elem
    		check.hasCallOrRecv = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/expr.go

    			return
    		}
    		ch, _ := u.(*Chan)
    		if ch == nil {
    			check.errorf(x, InvalidReceive, invalidOp+"cannot receive from non-channel %s", x)
    			x.mode = invalid
    			return
    		}
    		if ch.dir == SendOnly {
    			check.errorf(x, InvalidReceive, invalidOp+"cannot receive from send-only channel %s", x)
    			x.mode = invalid
    			return
    		}
    		x.mode = commaok
    		x.typ = ch.elem
    		check.hasCallOrRecv = true
    		return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"RelativeTo", Func, 5},
    		{"Rune", Const, 5},
    		{"Satisfies", Func, 20},
    		{"Scope", Type, 5},
    		{"Selection", Type, 5},
    		{"SelectionKind", Type, 5},
    		{"SelectionString", Func, 5},
    		{"SendOnly", Const, 5},
    		{"SendRecv", Const, 5},
    		{"Signature", Type, 5},
    		{"Sizes", Type, 5},
    		{"SizesFor", Func, 9},
    		{"Slice", Type, 5},
    		{"StdSizes", Type, 5},
    		{"StdSizes.MaxAlign", Field, 5},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top