UNPKG

ts-simple-ast

Version:

TypeScript compiler wrapper for static analysis and code manipulation.

12 lines (11 loc) 309 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function getPosAfterNewLine(text, pos) { while (pos < text.length) { if (text[pos] === "\n") return pos + 1; pos++; } return pos; } exports.getPosAfterNewLine = getPosAfterNewLine;