MCPcopy
hub / github.com/formatjs/formatjs / unwrapObjectExpression

Function unwrapObjectExpression

packages/unplugin/transform.ts:128–131  ·  view source on GitHub ↗
(node: any)

Source from the content-addressed store, hash-verified

126 }
127
128 function unwrapObjectExpression(node: any): any {
129 const expression = unwrapTransparentTypeScriptExpression(node)
130 return expression?.type === 'ObjectExpression' ? expression : undefined
131 }
132
133 function getStaticValue(node: any): string | undefined {
134 node = unwrapTransparentTypeScriptExpression(node)

Callers 1

handleCallExpressionFunction · 0.85

Tested by

no test coverage detected