area.go 401 B

123456789101112131415161718192021222324
  1. package scope
  2. import (
  3. "cp/node"
  4. "cp/object"
  5. "rt2/context"
  6. )
  7. //менеджер зон видимости
  8. type Manager interface {
  9. context.ContextAware
  10. Calculate(n node.Node) Area
  11. Allocate(n node.Node)
  12. Dispose(n node.Node)
  13. }
  14. //зона видимости
  15. type Area interface {
  16. Get(o object.Object) Object
  17. Set(o Object)
  18. }
  19. //объект зоны видимости
  20. type Object interface{}