MCPcopy Index your code
hub / github.com/alibaba/lowcode-engine / generateAttrValue

Function generateAttrValue

modules/code-generator/src/utils/nodeToJSX.ts:60–76  ·  view source on GitHub ↗
(
  attrData: { attrName: string; attrValue: IPublicTypeCompositeValue },
  scope: IScope,
  config?: NodeGeneratorConfig,
)

Source from the content-addressed store, hash-verified

58}
59
60function generateAttrValue(
61 attrData: { attrName: string; attrValue: IPublicTypeCompositeValue },
62 scope: IScope,
63 config?: NodeGeneratorConfig,
64): CodePiece[] {
65 const valueStr = generateCompositeType(attrData.attrValue, scope, {
66 handlers: config?.handlers,
67 nodeGenerator: config?.self,
68 });
69 return [
70 {
71 type: PIECE_TYPE.ATTR,
72 name: attrData.attrName,
73 value: valueStr,
74 },
75 ];
76}
77
78function generateAttr(
79 attrName: string,

Callers 1

generateAttrFunction · 0.85

Calls 1

generateCompositeTypeFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…