PascalCase -> camelCase

This commit is contained in:
Andrew Casey 2017-11-07 10:47:36 -08:00
parent 3e339d88a1
commit 2715f890b4

View file

@ -1337,21 +1337,21 @@ namespace ts {
// However we should still skip a pinned comment at the top
if (ranges.length && ranges[0].kind === SyntaxKind.MultiLineCommentTrivia && isPinnedComment(text, ranges[0])) {
position = ranges[0].end;
AdvancePastLineBreak();
advancePastLineBreak();
ranges = ranges.slice(1);
}
// As well as any triple slash references
for (const range of ranges) {
if (range.kind === SyntaxKind.SingleLineCommentTrivia && isRecognizedTripleSlashComment(node.text, range.pos, range.end)) {
position = range.end;
AdvancePastLineBreak();
advancePastLineBreak();
continue;
}
break;
}
return position;
function AdvancePastLineBreak() {
function advancePastLineBreak() {
if (position < textLength) {
const charCode = text.charCodeAt(position);
if (isLineBreak(charCode)) {