mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-16 02:33:28 +00:00
reflect: Chan related stubs
This commit is contained in:
committed by
Ron Evans
parent
87153e9a02
commit
1976d9e3fe
@@ -529,3 +529,7 @@ func FuncOf(in, out []Type, variadic bool) Type {
|
|||||||
|
|
||||||
return toType(reflectlite.FuncOf(rawIn, rawOut, variadic))
|
return toType(reflectlite.FuncOf(rawIn, rawOut, variadic))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func ChanOf(dir ChanDir, t Type) Type {
|
||||||
|
panic("unimplemented: reflect.ChanOf")
|
||||||
|
}
|
||||||
|
|||||||
@@ -178,6 +178,10 @@ func (v Value) Send(x Value) {
|
|||||||
panic("unimplemented: reflect.Value.Send()")
|
panic("unimplemented: reflect.Value.Send()")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (v Value) TrySend(x Value) bool {
|
||||||
|
panic("unimplemented: reflect.Value.TrySend()")
|
||||||
|
}
|
||||||
|
|
||||||
func (v Value) Close() {
|
func (v Value) Close() {
|
||||||
panic("unimplemented: reflect.Value.Close()")
|
panic("unimplemented: reflect.Value.Close()")
|
||||||
}
|
}
|
||||||
@@ -217,6 +221,10 @@ func (v Value) Recv() (x Value, ok bool) {
|
|||||||
panic("unimplemented: (reflect.Value).Recv()")
|
panic("unimplemented: (reflect.Value).Recv()")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (v Value) TryRecv() (x Value, ok bool) {
|
||||||
|
panic("unimplemented: (reflect.Value).TryRecv()")
|
||||||
|
}
|
||||||
|
|
||||||
func NewAt(typ Type, p unsafe.Pointer) Value {
|
func NewAt(typ Type, p unsafe.Pointer) Value {
|
||||||
panic("unimplemented: reflect.New()")
|
panic("unimplemented: reflect.New()")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user