(field *StructFieldCode, firstField *Opcode)
| 384 | } |
| 385 | |
| 386 | func (c *StructCode) lastFieldCode(field *StructFieldCode, firstField *Opcode) *Opcode { |
| 387 | if isEmbeddedStruct(field) { |
| 388 | return c.lastAnonymousFieldCode(firstField) |
| 389 | } |
| 390 | lastField := firstField |
| 391 | for lastField.NextField != nil { |
| 392 | lastField = lastField.NextField |
| 393 | } |
| 394 | return lastField |
| 395 | } |
| 396 | |
| 397 | func (c *StructCode) lastAnonymousFieldCode(firstField *Opcode) *Opcode { |
| 398 | // firstField is special StructHead operation for anonymous structure. |
no test coverage detected