mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-23 17:30:04 -05:00
Make fewer direct calls to 'error' and 'errorAtPos' in the parser.
This commit is contained in:
@@ -1234,7 +1234,7 @@ module ts {
|
||||
}
|
||||
}
|
||||
else {
|
||||
error(Diagnostics._0_expected, ";");
|
||||
parseExpected(SyntaxKind.SemicolonToken);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1536,7 +1536,7 @@ module ts {
|
||||
if (isListTerminator(kind)) {
|
||||
break;
|
||||
}
|
||||
error(Diagnostics._0_expected, ",");
|
||||
parseExpected(SyntaxKind.CommaToken);
|
||||
}
|
||||
else if (isListTerminator(kind)) {
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user