CallExpression: function()

in rules/one-dependency-per-line.js [110:135]


            CallExpression: function(node) {
                var fn;
                if (utils.isAngularComponent(node) &&
                    node.callee.type === 'MemberExpression' &&
                    node.arguments[1].type === 'FunctionExpression' &&
                    angularObjectList.indexOf(node.callee.property.name) >= 0) {
                    fn = node.arguments[1];
                    return checkArgumentPositionInFunction(fn);
                }
                if (utils.isAngularComponent(node) &&
                    node.callee.type === 'MemberExpression' &&
                    node.arguments[1].type === 'Identifier' &&
                    angularObjectList.indexOf(node.callee.property.name) >= 0) {
                    var fName = node.arguments[1].name;
                    fn = getFunctionDeclaration(node, fName);
                    if (fn) {
                        return checkArgumentPositionInFunction(fn);
                    }
                }
                if (utils.isAngularComponent(node) &&
                    node.callee.type === 'MemberExpression' &&
                    node.arguments[1].type === 'ArrayExpression' &&
                    angularObjectList.indexOf(node.callee.property.name) >= 0) {
                    return checkArgumentPositionArrayExpression(node, node.arguments[1]);
                }
            }