lib/rules/max-lines-per-function.js
function isEmbedded(node) {
            if (!node.parent) {
                return false;
            }
            if (node !== node.parent.value) {
                return false;
            }
            if (node.parent.type === "MethodDefinition") {
                return true;
            }
            if (node.parent.type === "Property") {
                return node.parent.method === true || node.parent.kind === "get" || node.parent.kind === "set";
            }
            return false;
        }
function isEmbedded(node) {
            if (!node.parent) {
                return false;
            }
            if (node !== node.parent.value) {
                return false;
            }
            if (node.parent.type === "MethodDefinition") {
                return true;
            }
            if (node.parent.type === "Property") {
                return node.parent.method === true || node.parent.kind === "get" || node.parent.kind === "set";
            }
            return false;
        }
function isEmbedded ( node ) { if ( ! node . parent ) { return false ; } if ( node !== node . parent . value ) { return false ; } if ( node . parent . type === "MethodDefinition" ) { return true ; } if ( node . parent . type === "Property" ) { return node . parent . method === true || node . parent . kind === "get" || node . parent . kind === "set" ; } return false ; }
Identifies is a node is a FunctionExpression which is embedded within a MethodDefinition or Property
@param {ASTNode} node Node to test
@returns {boolean} True if it's a FunctionExpression embedded within a MethodDefinition or Property
Identifies is a node is a FunctionExpression which is embedded within a MethodDefinition or Property