mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-19 20:37:00 -05:00
Use CharacterCode enum
This commit is contained in:
@@ -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++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user