demo/typescript.js
function getTouchingWord(sourceFile, position) {
        return getTouchingToken(sourceFile, position, function (n) { return isWord(n.kind); });
    }
function getTouchingWord(sourceFile, position) {
        return getTouchingToken(sourceFile, position, function (n) { return isWord(n.kind); });
    }
/* Gets the token whose text has range [start, end) and
position >= start and (position < end or (position === end && token is keyword or identifier))