( factory: typescript.NodeFactory, ast: MessageFormatElement[] )
| 80 | } |
| 81 | |
| 82 | function messageASTToTSNode( |
| 83 | factory: typescript.NodeFactory, |
| 84 | ast: MessageFormatElement[] |
| 85 | ) { |
| 86 | return factory.createArrayLiteralExpression( |
| 87 | ast.map(el => objToTSNode(factory, el)) |
| 88 | ) |
| 89 | } |
| 90 | |
| 91 | function literalToObj(ts: TypeScript, n: typescript.Node) { |
| 92 | if (ts.isNumericLiteral(n)) { |
no test coverage detected