mirror of
https://github.com/traefik/yaegi.git
synced 2026-06-01 18:37:56 +00:00
When a define statement relies on a selector or type that may exist in another file it should revisit once GTA is complete. This allows that revisit. **Note:** In order to keep the original GTA error for the define statement, so the error received is correct and meaningful, I have added a node `meta` property. I decided to make it generic as it may be useful in future. There may be a better way to stash errors across the GTA runs and am open to suggestion here. Fixes #1253
20 lines
202 B
Go
20 lines
202 B
Go
package method38
|
|
|
|
import "sync"
|
|
|
|
func NewPool() Pool { return Pool{} }
|
|
|
|
type Buffer struct {
|
|
bs []byte
|
|
pool Pool
|
|
}
|
|
|
|
type Pool struct {
|
|
p *sync.Pool
|
|
}
|
|
|
|
var (
|
|
_pool = NewPool()
|
|
Get = _pool.Get
|
|
)
|