MCPcopy Index your code
hub / github.com/formatjs/formatjs / unwrapObjectLiteralExpression

Function unwrapObjectLiteralExpression

packages/ts-transformer/transform.ts:288–294  ·  view source on GitHub ↗
(
  ts: TypeScript,
  node: typescript.Expression
)

Source from the content-addressed store, hash-verified

286}
287
288function unwrapObjectLiteralExpression(
289 ts: TypeScript,
290 node: typescript.Expression
291): typescript.ObjectLiteralExpression | undefined {
292 const expression = unwrapTransparentTypeScriptExpression(ts, node)
293 return ts.isObjectLiteralExpression(expression) ? expression : undefined
294}
295
296function extractMessageDescriptor(
297 ts: TypeScript,

Callers 1

Tested by

no test coverage detected