MCPcopy Index your code
hub / github.com/yuin/gopher-lua / AddLabel

Method AddLabel

compile.go:378–384  ·  view source on GitHub ↗
(label *gotoLabelDesc)

Source from the content-addressed store, hash-verified

376}
377
378func (b *codeBlock) AddLabel(label *gotoLabelDesc) *gotoLabelDesc {
379 if old, ok := b.labels[label.Name]; ok {
380 return old
381 }
382 b.labels[label.Name] = label
383 return nil
384}
385
386func (b *codeBlock) GetLabel(label string) *gotoLabelDesc {
387 if v, ok := b.labels[label]; ok {

Callers 1

AddNamedLabelMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected