MCPcopy
hub / github.com/expr-lang/expr / MapNode

Method MapNode

compiler/compiler.go:1301–1308  ·  view source on GitHub ↗
(node *ast.MapNode)

Source from the content-addressed store, hash-verified

1299}
1300
1301func (c *compiler) MapNode(node *ast.MapNode) {
1302 for _, pair := range node.Pairs {
1303 c.compile(pair)
1304 }
1305
1306 c.emitPush(len(node.Pairs))
1307 c.emit(OpMap)
1308}
1309
1310func (c *compiler) PairNode(node *ast.PairNode) {
1311 c.compile(node.Key)

Callers 1

compileMethod · 0.95

Calls 3

compileMethod · 0.95
emitPushMethod · 0.95
emitMethod · 0.95

Tested by

no test coverage detected