| 964 | } |
| 965 | |
| 966 | func (e *encoder) global(n *semantic.Global) (outID uint64) { |
| 967 | e.build(&e.instances.Global, e.maps.Global, n, &outID, func() *Global { |
| 968 | return &Global{ |
| 969 | Owner: e.node(n.Owner()), |
| 970 | Ast: e.astField(n.AST), |
| 971 | Annotations: e.annotations(n.Annotations), |
| 972 | Type: e.ty(n.Type), |
| 973 | Name: e.str(n.Name()), |
| 974 | Default: e.expr(n.Default), |
| 975 | } |
| 976 | }) |
| 977 | return |
| 978 | } |
| 979 | |
| 980 | func (e *encoder) ignore(n *semantic.Ignore) (outID uint64) { |
| 981 | e.build(&e.instances.Ignore, e.maps.Ignore, n, &outID, func() *Ignore { |