package/newlines.js
function newLineAfterCompositeExpressions(previous) {
    if (previous.type === 'ExpressionStatement') {
        var expression = previous.expression;

        switch (expression.type) {
            case 'AssignmentExpression':
            case 'BinaryExpression':
                return NEED_EXTRA_NEWLINE_AFTER[expression.right.type];}}}
function newLineAfterCompositeExpressions(previous) {
    if (previous.type === 'ExpressionStatement') {
        var expression = previous.expression;

        switch (expression.type) {
            case 'AssignmentExpression':
            case 'BinaryExpression':
                return NEED_EXTRA_NEWLINE_AFTER[expression.right.type];}}}
function newLineAfterCompositeExpressions ( previous ) { if ( previous . type === 'ExpressionStatement' ) { var expression = previous . expression ; switch ( expression . type ) { case 'AssignmentExpression' : case 'BinaryExpression' : return NEED_EXTRA_NEWLINE_AFTER [ expression . right . type ] ; } } }
Returns true if newline is needed after the composite expression

Examples:
1. Assignment expression
a.b.c = function() {
return 4;
}

2. a + function() {
return 2;
}
Returns true if newline is needed after the composite expression