MCPcopy Create free account
hub / github.com/Snapchat/Valdi / isEmptyJsxExpression

Method isEmptyJsxExpression

compiler/companion/src/JSXProcessor.ts:627–637  ·  view source on GitHub ↗
(child: ts.JsxChild)

Source from the content-addressed store, hash-verified

625 }
626
627 private isEmptyJsxExpression(child: ts.JsxChild): boolean {
628 if (!ts.isJsxExpression(child)) {
629 return false;
630 }
631
632 if (child.expression) {
633 return false;
634 }
635
636 return true;
637 }
638
639 private ensureImplicitSlottedNotUsedWithExplicit(
640 node: ts.Node,

Callers 3

outputSlotMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected