diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-09-26 22:53:41 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-09-26 22:53:41 +0200 |
commit | 99aa4d4c411f08627e5589ae3a07c251dcef9ed4 (patch) | |
tree | ac8d5c6322eb736a7e94b8ca626ec4c21037798f | |
parent | 77e956705a01185b61f42bf59f04d3323e267cd4 (diff) |
pogen comments
-rw-r--r-- | pogen/pogen.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pogen/pogen.ts b/pogen/pogen.ts index 32e786b0c..a622c9990 100644 --- a/pogen/pogen.ts +++ b/pogen/pogen.ts @@ -196,10 +196,10 @@ export function processFile(sourceFile: ts.SourceFile) { if (ce.arguments[1].kind != ts.SyntaxKind.TaggedTemplateExpression) { break; } - let comment = getComment(ce); let {line} = ts.getLineAndCharacterOfPosition(sourceFile, ce.pos); let t1 = processTaggedTemplateExpression(<ts.TaggedTemplateExpression>ce.arguments[0]); let t2 = processTaggedTemplateExpression(<ts.TaggedTemplateExpression>ce.arguments[1]); + let comment = getComment(ce); formatMsgComment(line, comment); formatMsgLine("msgid", t1.template); |