MCPcopy Create free account
hub / github.com/google/gapid / staticArray

Method staticArray

gapil/bapi/encode.go:1412–1423  ·  view source on GitHub ↗
(n *semantic.StaticArray)

Source from the content-addressed store, hash-verified

1410}
1411
1412func (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
1425func (e *encoder) stringValue(n semantic.StringValue) (outID uint64) {
1426 e.build(&e.instances.StringValue, e.maps.StringValue, n, &outID, func() *StringValue {

Callers 3

nodeMethod · 0.95
arrayIndexMethod · 0.95
tyMethod · 0.95

Calls 7

buildMethod · 0.95
nodeMethod · 0.95
strMethod · 0.95
tyMethod · 0.95
exprMethod · 0.95
OwnerMethod · 0.65
NameMethod · 0.65

Tested by

no test coverage detected