lib/rules/lines-around-comment.js
function isParentNodeType(parent, nodeType) {
            return parent.type === nodeType ||
                (parent.body && parent.body.type === nodeType) ||
                (parent.consequent && parent.consequent.type === nodeType);
        }
function isParentNodeType(parent, nodeType) {
            return parent.type === nodeType ||
                (parent.body && parent.body.type === nodeType) ||
                (parent.consequent && parent.consequent.type === nodeType);
        }
function isParentNodeType ( parent , nodeType ) { return parent . type === nodeType || ( parent . body && parent . body . type === nodeType ) || ( parent . consequent && parent . consequent . type === nodeType ) ; }
Returns whether or not comments are inside a node type or not.
@param {ASTNode} parent The Comment parent node.
@param {string} nodeType The parent type to check against.
@returns {boolean} True if the comment is inside nodeType.
Returns whether or not comments are inside a node type or not .