function checkArgumentPositionArrayExpression()

in rules/one-dependency-per-line.js [45:60]


        function checkArgumentPositionArrayExpression(angularComponentNode, arrayNode) {
            var linesFound = [];

            arrayNode.elements.forEach(function(element) {
                if (element.type === 'Literal') {
                    reportMultipleItemsInOneLine(arrayNode, linesFound, element);
                }
                if (element.type === 'FunctionExpression') {
                    checkArgumentPositionInFunction(element);
                }
                if (element.type === 'Identifier') {
                    var fn = getFunctionDeclaration(angularComponentNode, element.name);
                    checkArgumentPositionInFunction(fn);
                }
            });
        }