aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-11-23 01:00:28 +0100
committerFlorian Dold <florian.dold@gmail.com>2016-11-23 01:07:12 +0100
commit4000b3ae76b0a0ae137088cf2c718d924f3068bc (patch)
treefdd6601bb1e9b344221b8f0358f094c0535c9156
parentd2f9fc8617de0496f546972c7798f3c1669c2393 (diff)
fix pogen with sub-JSX expression
-rw-r--r--pogen/pogen.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/pogen/pogen.ts b/pogen/pogen.ts
index 9e9fc1f20..1d31a878a 100644
--- a/pogen/pogen.ts
+++ b/pogen/pogen.ts
@@ -218,6 +218,9 @@ export function processFile(sourceFile: ts.SourceFile) {
}
case ts.SyntaxKind.JsxOpeningElement:
break;
+ case ts.SyntaxKind.JsxElement:
+ fragments.push(`%${holeNum[0]++}$s`);
+ break;
case ts.SyntaxKind.JsxExpression:
{
let e = childNode as ts.JsxExpression;