MCPcopy
hub / github.com/google/mangle / MapCons

Function MapCons

ast/ast.go:350–353  ·  view source on GitHub ↗

MapCons constructs a map, using pairs. Parts can only be accessed in transforms.

(key, val, rest *Constant)

Source from the content-addressed store, hash-verified

348
349// MapCons constructs a map, using pairs. Parts can only be accessed in transforms.
350func MapCons(key, val, rest *Constant) Constant {
351 e := pair(PairShape, key, val)
352 return pair(MapShape, &e, rest)
353}
354
355// StructCons constructs a struct, using pairs. Parts can only be accessed in transforms.
356func StructCons(label, val, rest *Constant) Constant {

Callers 2

MapFunction · 0.85
TestHashFunction · 0.85

Calls 1

pairFunction · 0.70

Tested by 1

TestHashFunction · 0.68