* Ensures "use strict" directive is added * * @param statements An array of statements
(statements)
| 27058 | * @param statements An array of statements |
| 27059 | */ |
| 27060 | function ensureUseStrict(statements) { |
| 27061 | var foundUseStrict = ts.findUseStrictPrologue(statements); |
| 27062 | if (!foundUseStrict) { |
| 27063 | return ts.setTextRange(createNodeArray(__spreadArray([createUseStrictPrologue()], statements, true)), statements); |
| 27064 | } |
| 27065 | return statements; |
| 27066 | } |
| 27067 | /** |
| 27068 | * Lifts a NodeArray containing only Statement nodes to a block. |
| 27069 | * |
nothing calls this directly
no test coverage detected