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

Function mustName

interpreter/interpreter_test.go:150–156  ·  view source on GitHub ↗

Helper functions

(symbol string)

Source from the content-addressed store, hash-verified

148// Helper functions
149
150func mustName(symbol string) ast.Constant {
151 c, err := ast.Name(symbol)
152 if err != nil {
153 panic(err)
154 }
155 return c
156}
157
158func makePair(fst, snd ast.Constant) ast.Constant {
159 return ast.Pair(&fst, &snd)

Callers 3

TestDisplayStringFunction · 0.85
makeMapFunction · 0.85
makeStructFunction · 0.85

Calls 1

NameFunction · 0.92

Tested by

no test coverage detected