MCPcopy Index your code
hub / github.com/Shopify/go-lua / collectValidLines

Method collectValidLines

debug.go:274–284  ·  view source on GitHub ↗
(f closure)

Source from the content-addressed store, hash-verified

272}
273
274func (l *State) collectValidLines(f closure) {
275 if lc, ok := f.(*luaClosure); !ok {
276 l.apiPush(nil)
277 } else {
278 t := newTable()
279 l.apiPush(t)
280 for _, i := range lc.prototype.lineInfo {
281 t.putAtInt(int(i), true)
282 }
283 }
284}
285
286// Info gets information about a specific function or function invocation.
287//

Callers 1

InfoFunction · 0.80

Calls 3

apiPushMethod · 0.95
newTableFunction · 0.85
putAtIntMethod · 0.80

Tested by

no test coverage detected