MCPcopy
hub / github.com/marimo-team/marimo / toCode

Method toCode

frontend/src/utils/python-poet/poet.ts:130–136  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

128 }
129
130 toCode(): string {
131 const right = asString(this.value);
132 if (right.includes("\n")) {
133 return `${this.name} = (\n${indent(right)}\n)`;
134 }
135 return `${this.name} = ${right}`;
136 }
137}
138
139export class FunctionArg implements PythonCode {

Callers

nothing calls this directly

Calls 2

asStringFunction · 0.85
indentFunction · 0.85

Tested by

no test coverage detected