MCPcopy
hub / github.com/facebook/react / stringify

Function stringify

compiler/packages/snap/src/sprout/index.ts:14–18  ·  view source on GitHub ↗
(result: EvaluatorResult)

Source from the content-addressed store, hash-verified

12 | {kind: 'invalid'; value: string};
13
14function stringify(result: EvaluatorResult): string {
15 return `(kind: ${result.kind}) ${result.value}${
16 result.logs.length > 0 ? `\nlogs: [${result.logs.toString()}]` : ''
17 }`;
18}
19function makeError(description: string, value: string): SproutResult {
20 return {
21 kind: 'invalid',

Callers 13

progressFunction · 0.85
encodeReferenceChunkFunction · 0.85
emitPostponeChunkFunction · 0.85
emitErrorChunkFunction · 0.85
emitImportChunkFunction · 0.85
emitHintChunkFunction · 0.85
serializeDebugModelFunction · 0.85
emitChunkFunction · 0.85
retryTaskFunction · 0.85
runSproutFunction · 0.85
handleVersionChangeMethod · 0.85

Calls 1

toStringMethod · 0.65

Tested by

no test coverage detected