pogen comments
This commit is contained in:
parent
77e956705a
commit
99aa4d4c41
@ -196,10 +196,10 @@ export function processFile(sourceFile: ts.SourceFile) {
|
|||||||
if (ce.arguments[1].kind != ts.SyntaxKind.TaggedTemplateExpression) {
|
if (ce.arguments[1].kind != ts.SyntaxKind.TaggedTemplateExpression) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
let comment = getComment(ce);
|
|
||||||
let {line} = ts.getLineAndCharacterOfPosition(sourceFile, ce.pos);
|
let {line} = ts.getLineAndCharacterOfPosition(sourceFile, ce.pos);
|
||||||
let t1 = processTaggedTemplateExpression(<ts.TaggedTemplateExpression>ce.arguments[0]);
|
let t1 = processTaggedTemplateExpression(<ts.TaggedTemplateExpression>ce.arguments[0]);
|
||||||
let t2 = processTaggedTemplateExpression(<ts.TaggedTemplateExpression>ce.arguments[1]);
|
let t2 = processTaggedTemplateExpression(<ts.TaggedTemplateExpression>ce.arguments[1]);
|
||||||
|
let comment = getComment(ce);
|
||||||
|
|
||||||
formatMsgComment(line, comment);
|
formatMsgComment(line, comment);
|
||||||
formatMsgLine("msgid", t1.template);
|
formatMsgLine("msgid", t1.template);
|
||||||
|
Loading…
Reference in New Issue
Block a user