MCPcopy Create free account
hub / github.com/goplus/py / AsCode

Function AsCode

code.go:55–60  ·  view source on GitHub ↗
(o *Base)

Source from the content-addressed store, hash-verified

53}
54
55func AsCode(o *Base) (v *Code, ok bool) {
56 if ok = C.codeCheck(o.c()) != 0; ok {
57 v = newCode(o.c())
58 }
59 return
60}
61
62func Compile(text, filename string, start StartToken) (*Code, error) {
63 t := C.CString(text)

Callers

nothing calls this directly

Calls 2

newCodeFunction · 0.85
cMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…