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

Method map_

gapil/bapi/encode.go:1072–1084  ·  view source on GitHub ↗
(n *semantic.Map)

Source from the content-addressed store, hash-verified

1070}
1071
1072func (e *encoder) map_(n *semantic.Map) (outID uint64) {
1073 e.build(&e.instances.Map, e.maps.Map, n, &outID, func() *Map {
1074 n.SortMembers()
1075 return &Map{
1076 Owner: e.node(n.Owner()),
1077 Name: e.str(n.Name()),
1078 KeyType: e.ty(n.KeyType),
1079 ValueType: e.ty(n.ValueType),
1080 Dense: n.Dense,
1081 }
1082 })
1083 return
1084}
1085
1086func (e *encoder) mapAssign(n *semantic.MapAssign) (outID uint64) {
1087 e.build(&e.instances.MapAssign, e.maps.MapAssign, n, &outID, func() *MapAssign {

Callers 6

nodeMethod · 0.95
mapContainsMethod · 0.95
mapIndexMethod · 0.95
mapRemoveMethod · 0.95
mapClearMethod · 0.95
tyMethod · 0.95

Calls 7

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

Tested by

no test coverage detected