MCPcopy Index your code
hub / github.com/dropbox/ts-transform-react-constant-elements / isNotPrologueDirective

Function isNotPrologueDirective

src/transform.ts:11–15  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

9 * @returns {boolean} true if it is, false otherwise
10 */
11function 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

Callers 1

visitSourceFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected