diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-11-23 01:00:28 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-11-23 01:07:12 +0100 |
commit | 4000b3ae76b0a0ae137088cf2c718d924f3068bc (patch) | |
tree | fdd6601bb1e9b344221b8f0358f094c0535c9156 | |
parent | d2f9fc8617de0496f546972c7798f3c1669c2393 (diff) |
fix pogen with sub-JSX expression
-rw-r--r-- | pogen/pogen.ts | 3 |
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; |