function ensureAllCommentsPrinted(astComments){if(!astComments){return;}for(var i=0;i<astComments.length;++i){if(astComments[i].value.trim()==="prettier-ignore"){// If there's a prettier-ignore, we're not printing that sub-tree so we
// don't know if the comments was printed or not.
return;}}astComments.forEach(function(comment){if(!comment.printed){throw new Error('Comment "'+comment.value.trim()+'" was not printed. Please report this error!');}delete comment.printed;});}
@param {{ cache: boolean, sync: boolean }} opts