acorn: Add getLineInfo() function type defintion

This commit adds the `getLineInfo()` function type definition for
[acorn](https://github.com/marijnh/acorn).

Below is the link to the exported function for reference:
f919909891/src/locutil.js (L31)
This commit is contained in:
Eric N. Vander Weele
2015-10-11 09:32:41 -04:00
parent 3fc1377ce2
commit de1d22e510

1
acorn/acorn.d.ts vendored
View File

@@ -9,6 +9,7 @@ declare module acorn {
var version: string;
function parse(input: string, options?: Options): ESTree.Program;
function parseExpressionAt(input: string, pos: number, options?: Options): ESTree.Expression;
function getLineInfo(input: string, offset: number): ESTree.Position;
var defaultOptions: Options;
interface TokenType {