| 1410 | } |
| 1411 | |
| 1412 | func (e *encoder) staticArray(n *semantic.StaticArray) (outID uint64) { |
| 1413 | e.build(&e.instances.StaticArray, e.maps.StaticArray, n, &outID, func() *StaticArray { |
| 1414 | p := &StaticArray{} |
| 1415 | p.Owner = e.node(n.Owner()) |
| 1416 | p.Name = e.str(n.Name()) |
| 1417 | p.ValueType = e.ty(n.ValueType) |
| 1418 | p.Size = n.Size |
| 1419 | p.SizeExpr = e.expr(n.SizeExpr) |
| 1420 | return p |
| 1421 | }) |
| 1422 | return |
| 1423 | } |
| 1424 | |
| 1425 | func (e *encoder) stringValue(n semantic.StringValue) (outID uint64) { |
| 1426 | e.build(&e.instances.StringValue, e.maps.StringValue, n, &outID, func() *StringValue { |