MCPcopy Create free account
hub / github.com/Shopify/go-lua / stringToMask

Function stringToMask

debug.go:455–465  ·  view source on GitHub ↗
(s string, maskCount bool)

Source from the content-addressed store, hash-verified

453}
454
455func stringToMask(s string, maskCount bool) (mask byte) {
456 for r, b := range map[rune]byte{'c': MaskCall, 'r': MaskReturn, 'l': MaskLine} {
457 if strings.ContainsRune(s, r) {
458 mask |= b
459 }
460 }
461 if maskCount {
462 mask |= MaskCount
463 }
464 return
465}
466
467var debugLibrary = []RegistryFunction{
468 // {"debug", db_debug},

Callers 1

debug.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…