Remove one-based helper function.

This commit is contained in:
Cyrus Najmabadi
2015-02-16 17:41:07 -08:00
parent 8ef4df8acb
commit 1098e80f4b
5 changed files with 16 additions and 10 deletions

View File

@@ -756,7 +756,10 @@ module ts {
}
public getOneBasedLineAndCharacterOfPosition(position: number): LineAndCharacter {
return ts.getOneBasedLineAndCharacterOfPosition(this, position);
var result = ts.getZeroBasedLineAndCharacterOfPosition(this, position);
result.line++;
result.character++;
return result;
}
public getLineStarts(): number[] {