lib/rules/no-inferred-method-name.js
function isMethodCall(node) {
                    var nodeParentType = node.parent.type,
                        nodeParentParentParentType = node.parent.parent.parent.type;

                    if (nodeParentType === "CallExpression" && nodeParentParentParentType === "BlockStatement" && !variable) {
                        return true;
                    } else {
                        return false;
                    }
                }
function isMethodCall(node) {
                    var nodeParentType = node.parent.type,
                        nodeParentParentParentType = node.parent.parent.parent.type;

                    if (nodeParentType === "CallExpression" && nodeParentParentParentType === "BlockStatement" && !variable) {
                        return true;
                    } else {
                        return false;
                    }
                }
function isMethodCall ( node ) { var nodeParentType = node . parent . type , nodeParentParentParentType = node . parent . parent . parent . type ; if ( nodeParentType === "CallExpression" && nodeParentParentParentType === "BlockStatement" && ! variable ) { return true ; } else { return false ; } }
Checks for object literal method
@param {ASTNode} node The AST node being checked.
@returns true if parent node is a call expression and is part of an object literal
Checks for object literal method