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

Method AddChunk

shell/shell.go:276–282  ·  view source on GitHub ↗

AddChunk adds current lines into a chunk of code that should be compiled separately.

()

Source from the content-addressed store, hash-verified

274// AddChunk adds current lines into a chunk of code
275// that should be compiled separately.
276func (sh *Shell) AddChunk() {
277 if len(sh.Lines) == 0 {
278 return
279 }
280 sh.Chunks = append(sh.Chunks, strings.Join(sh.Lines, "\n"))
281 sh.Lines = nil
282}
283
284// TranspileCode processes each line of given code,
285// adding the results to the LineStack

Callers 3

CodeMethod · 0.95
TranspileCodeMethod · 0.95
RunCodeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected