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

Method writeDebug

dump.go:118–129  ·  view source on GitHub ↗
(p *prototype)

Source from the content-addressed store, hash-verified

116}
117
118func (d *dumpState) writeDebug(p *prototype) {
119 d.writeString(p.source)
120 d.writeInt(len(p.lineInfo))
121 d.write(p.lineInfo)
122 d.writeLocalVariables(p)
123
124 d.writeInt(len(p.upValues))
125
126 for _, uv := range p.upValues {
127 d.writeString(uv.name)
128 }
129}
130
131func (d *dumpState) dumpFunction(p *prototype) {
132 d.writeInt(p.lineDefined)

Callers 1

dumpFunctionMethod · 0.95

Calls 4

writeStringMethod · 0.95
writeIntMethod · 0.95
writeMethod · 0.95
writeLocalVariablesMethod · 0.95

Tested by

no test coverage detected