MCPcopy
hub / github.com/concrete-utopia/utopia / jsExpressionValue

Function jsExpressionValue

editor/src/core/shared/element-template.ts:269–280  ·  view source on GitHub ↗
(
  value: T,
  comments: ParsedComments,
  uid: string = UUID(),
)

Source from the content-addressed store, hash-verified

267}
268
269export function jsExpressionValue<T>(
270 value: T,
271 comments: ParsedComments,
272 uid: string = UUID(),
273): JSExpressionValue<T> {
274 return {
275 type: 'ATTRIBUTE_VALUE',
276 value: value,
277 comments: comments,
278 uid: uid,
279 }
280}
281
282/**
283 If the contents of an `ATTRIBUTE_VALUE` is an object (whose values are not `JSXAttribute`s), we might still want to

Callers 15

createInsertImageActionFunction · 0.90
createJsxImageFunction · 0.90
updateFrameValueForPropFunction · 0.90
createLookupRenderFunction · 0.90
runJSExpressionLazyFunction · 0.90
runSetPropertyFunction · 0.90
runBulkUpdatePropertiesFunction · 0.90

Calls

no outgoing calls

Tested by 7

reparentElementFunction · 0.72
reparentElementFunction · 0.72
storyboardComponentFunction · 0.72
modifyCallFunction · 0.72
testInsertionToParentFunction · 0.72
sampleJsxAttributesFunction · 0.72