mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-06 20:13:40 +00:00
reflect: implement New function
This is very important for some use cases, for example for Vecty.
This commit is contained in:
committed by
Ron Evans
parent
57271d7eaa
commit
e587b1d1b4
@@ -112,6 +112,11 @@ type typecodeID struct {
|
||||
length uintptr
|
||||
|
||||
methodSet *interfaceMethodInfo // nil or a GEP of an array
|
||||
|
||||
// The type that's a pointer to this type, nil if it is already a pointer.
|
||||
// Keeping the type struct alive here is important so that values from
|
||||
// reflect.New (which uses reflect.PtrTo) can be used in type asserts etc.
|
||||
ptrTo *typecodeID
|
||||
}
|
||||
|
||||
// structField is used by the compiler to pass information to the interface
|
||||
|
||||
Reference in New Issue
Block a user