* Check if node is a prologue directive (e.g "use strict") * @param node node to check * @returns {boolean} true if it is, false otherwise
(node: ts.Node)
| 9 | * @returns {boolean} true if it is, false otherwise |
| 10 | */ |
| 11 | function isNotPrologueDirective(node: ts.Node): boolean { |
| 12 | return ( |
| 13 | !ts.isExpressionStatement(node) || !ts.isStringLiteral(node.expression) |
| 14 | ); |
| 15 | } |
| 16 | |
| 17 | /** |
| 18 | * Check if this node is a import react node |