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

Method map_

gapil/bapi/decode.go:850–863  ·  view source on GitHub ↗
(mapID uint64)

Source from the content-addressed store, hash-verified

848}
849
850func (d *decoder) map_(mapID uint64) (out *semantic.Map) {
851 d.build(d.content.Instances.Map, &d.inst.Map, mapID, &out,
852 func(p *Map, s *semantic.Map) {
853 s.Named = semantic.Named(d.str(p.Name))
854 s.KeyType = d.ty(p.KeyType)
855 s.ValueType = d.ty(p.ValueType)
856 s.Dense = p.Dense
857 if owner := d.node(p.Owner); owner != nil {
858 semantic.Add(owner.(semantic.Owner), s)
859 }
860 d.toSort = append(d.toSort, s)
861 })
862 return
863}
864
865func (d *decoder) mapAssign(mapAssignID uint64) (out *semantic.MapAssign) {
866 d.build(d.content.Instances.MapAssign, &d.inst.MapAssign, mapAssignID, &out,

Callers 6

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

Calls 5

buildMethod · 0.95
strMethod · 0.95
tyMethod · 0.95
nodeMethod · 0.95
AddMethod · 0.65

Tested by

no test coverage detected