Merge branch 'master' into load-subdirs

This commit is contained in:
dloverin committed 2013-05-13 08:29:31 -04:00
commit 47de2cb19c
27 files changed
+855 -245

No files matched your search

@@ -540,5 +540,21 @@ define(function (require, exports, module) {
}
};
/**
* Deterimine if the cursor is located in the name of a function declaration.
* This is so we can suppress hints when in a funtion name, as we do for variable and
* parameter declarations, but we can tell those from the token itself rather than having
* to look at previous tokens.
*
* @return {boolean} - true if the current cursor position is in the name of a function decl.
*/
Session.prototype.isFunctionName = function () {
var cursor = this.getCursor(),
token = this.getToken(cursor),
prevToken = this._getPreviousToken(cursor);
return prevToken.string === "function";
};
module.exports = Session;
});