Use CharacterCode enum

This commit is contained in:
Andrew Casey
2017-11-07 10:10:34 -08:00
parent 2f13222180
commit d1fa006a1e

View File

@@ -1351,11 +1351,11 @@ namespace ts {
return position;
function AdvancePastLineBreak() {
if (text.charCodeAt(position) === 0xD) {
if (text.charCodeAt(position) === CharacterCodes.carriageReturn) {
position++;
}
if (text.charCodeAt(position) === 0xA) {
if (text.charCodeAt(position) === CharacterCodes.lineFeed) {
position++;
}
}