src/JSUtils/Session.js
function isOnFunctionIdentifier() {

            // Check if we might be on function identifier of the function call.
            var type = token.type,
                nextToken,
                localLexical,
                localCursor = {line: cursor.line, ch: token.end};

            if (type === "variable-2" || type === "variable" || type === "property") {
                nextToken = self.getNextToken(localCursor, true);
                if (nextToken && nextToken.string === "(") {
                    localLexical = getLexicalState(nextToken);
                    return localLexical;
                }
            }

            return null;
        }
function isOnFunctionIdentifier() {

            // Check if we might be on function identifier of the function call.
            var type = token.type,
                nextToken,
                localLexical,
                localCursor = {line: cursor.line, ch: token.end};

            if (type === "variable-2" || type === "variable" || type === "property") {
                nextToken = self.getNextToken(localCursor, true);
                if (nextToken && nextToken.string === "(") {
                    localLexical = getLexicalState(nextToken);
                    return localLexical;
                }
            }

            return null;
        }
function isOnFunctionIdentifier ( ) { // Check if we might be on function identifier of the function call. var type = token . type , nextToken , localLexical , localCursor = { line : cursor . line , ch : token . end } ; if ( type === "variable-2" || type === "variable" || type === "property" ) { nextToken = self . getNextToken ( localCursor , true ) ; if ( nextToken && nextToken . string === "(" ) { localLexical = getLexicalState ( nextToken ) ; return localLexical ; } } return null ; }
Test if the cursor is on a function identifier

@return {Object} - lexical state if on a function identifier, null otherwise.
Test if the cursor is on a function identifier