function verifyGroupAlignment(properties){var length=properties.length,widths=properties.map(getKeyWidth),// Width of keys, including quotes
align=alignmentOptions.on;// "value" or "colon"
var targetWidth=Math.max.apply(null,widths),beforeColon=void 0,afterColon=void 0,mode=void 0;if(alignmentOptions&&length>1){// When aligning values within a group, use the alignment configuration.
beforeColon=alignmentOptions.beforeColon;afterColon=alignmentOptions.afterColon;mode=alignmentOptions.mode;}else{beforeColon=multiLineOptions.beforeColon;afterColon=multiLineOptions.afterColon;mode=alignmentOptions.mode;}// Conditionally include one space before or after colon
targetWidth+=align==="colon"?beforeColon:afterColon;for(var i=0;i<length;i++){var property=properties[i];var whitespace=getPropertyWhitespace(property);if(whitespace){// Object literal getters/setters lack a colon
var width=widths[i];if(align==="value"){report(property,"key",whitespace.beforeColon,beforeColon,mode);report(property,"value",whitespace.afterColon,targetWidth-width,mode);}else{// align = "colon"
report(property,"key",whitespace.beforeColon,targetWidth-width,mode);report(property,"value",whitespace.afterColon,afterColon,mode);}}}}
Verifies correct vertical alignment of a group of properties.
@param {ASTNode[]} properties List of Property AST nodes.
@returns {void}