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

Method chain

frontend/src/utils/python-poet/poet.ts:185–197  ·  view source on GitHub ↗
(
    name: string,
    args: PythonCode[] | Record<string, PythonCode>,
  )

Source from the content-addressed store, hash-verified

183 }
184
185 chain(
186 name: string,
187 args: PythonCode[] | Record<string, PythonCode>,
188 ): FunctionCall {
189 args = objectToArgs(args);
190
191 // If the function call is multi-line, we need to add a newline to the name
192 const fullName = this.multiLine
193 ? `${this.toCode()}\n.${name}`
194 : `${this.toCode()}.${name}`;
195
196 return new FunctionCall(fullName, args, this.multiLine);
197 }
198}
199
200function objectToArgs(

Callers 8

generateAltairChartFunction · 0.95
poet.test.tsFile · 0.80
unflattenFunction · 0.80
_flatten_sequenceFunction · 0.80
_flattenFunction · 0.80
check_for_errorsFunction · 0.80
mutate_graphMethod · 0.80
_depends_onFunction · 0.80

Calls 2

toCodeMethod · 0.95
objectToArgsFunction · 0.85

Tested by

no test coverage detected