MCPcopy Index your code
hub / github.com/goccy/go-json / toValueOpcodes

Method toValueOpcodes

internal/encoder/code.go:748–756  ·  view source on GitHub ↗
(ctx *compileContext)

Source from the content-addressed store, hash-verified

746}
747
748func (c *StructFieldCode) toValueOpcodes(ctx *compileContext) Opcodes {
749 if c.isAnonymous {
750 anonymCode, ok := c.value.(AnonymousCode)
751 if ok {
752 return anonymCode.ToAnonymousOpcode(ctx)
753 }
754 }
755 return c.value.ToOpcode(ctx)
756}
757
758func (c *StructFieldCode) ToOpcode(ctx *compileContext, isFirstField, isEndField bool) Opcodes {
759 field := &Opcode{

Callers 2

ToOpcodeMethod · 0.95
ToAnonymousOpcodeMethod · 0.95

Calls 2

ToAnonymousOpcodeMethod · 0.65
ToOpcodeMethod · 0.65

Tested by

no test coverage detected