mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-30 11:24:49 -05:00
Don't create errors directly when parsing template spans.
This commit is contained in:
@@ -1676,13 +1676,12 @@ module ts {
|
||||
literal = parseLiteralNode();
|
||||
}
|
||||
else {
|
||||
error(Diagnostics.Invalid_template_literal_expected);
|
||||
parseExpected(SyntaxKind.CloseBraceToken);
|
||||
literal = <LiteralExpression>createMissingNode();
|
||||
literal.text = "";
|
||||
}
|
||||
|
||||
span.literal = literal;
|
||||
|
||||
return finishNode(span);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user