(n *semantic.Function)
| 938 | } |
| 939 | |
| 940 | func (e *encoder) function(n *semantic.Function) (outID uint64) { |
| 941 | e.build(&e.instances.Function, e.maps.Function, n, &outID, func() *Function { |
| 942 | p := &Function{} |
| 943 | p.Owner = e.node(n.Owner()) |
| 944 | p.Ast = e.astFunction(n.AST) |
| 945 | p.Annotations = e.annotations(n.Annotations) |
| 946 | p.Name = e.str(n.Name()) |
| 947 | p.Docs = e.docs(n.Docs) |
| 948 | p.Return = e.param(n.Return) |
| 949 | p.This = e.param(n.This) |
| 950 | foreach(n.FullParameters, e.param, &p.FullParameters) |
| 951 | p.Block = e.block(n.Block) |
| 952 | p.Signature = e.signature(n.Signature) |
| 953 | p.Extern = n.Extern |
| 954 | p.Subroutine = n.Subroutine |
| 955 | p.Recursive = n.Recursive |
| 956 | p.Order = &LogicalOrder{ |
| 957 | Resolved: n.Order.Resolved(), |
| 958 | Pre: n.Order.Pre(), |
| 959 | Post: n.Order.Post(), |
| 960 | } |
| 961 | return p |
| 962 | }) |
| 963 | return |
| 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 { |
no test coverage detected