MCPcopy Create free account
hub / github.com/cogentcore/core / Code

Method Code

shell/shell.go:266–272  ·  view source on GitHub ↗

Code returns the current transpiled lines, split into chunks that should be compiled separately.

()

Source from the content-addressed store, hash-verified

264// Code returns the current transpiled lines,
265// split into chunks that should be compiled separately.
266func (sh *Shell) Code() string {
267 sh.AddChunk()
268 if len(sh.Chunks) == 0 {
269 return ""
270 }
271 return strings.Join(sh.Chunks, "\n")
272}
273
274// AddChunk adds current lines into a chunk of code
275// that should be compiled separately.

Callers 3

TranspileFileMethod · 0.95
TestCommandFunction · 0.95
TranspileLineMethod · 0.45

Calls 1

AddChunkMethod · 0.95

Tested by 1

TestCommandFunction · 0.76