containsSilentNonBlockedChild method

bool containsSilentNonBlockedChild (
  1. List<Node> bodyRules
)

Implementation

bool containsSilentNonBlockedChild(List<Node> bodyRules) {
  if (bodyRules == null) return false;

  for (var r = 0; r < bodyRules.length; r++) {
    final rule = bodyRules[r];
    if ((rule is SilentNode) &&
        (rule as SilentNode).isSilent(_context) &&
        !rule.blocksVisibility()) {
      //the atRule contains something that was referenced (likely by extend)
      //therefore it needs to be shown in output too
      return true;
    }
  }

  return false;

//2.8.0 20160702
// containsSilentNonBlockedChild: function(bodyRules) {
//     var rule;
//     if (bodyRules == null) {
//         return false;
//     }
//     for (var r = 0; r < bodyRules.length; r++) {
//         rule = bodyRules[r];
//         if (rule.isSilent && rule.isSilent(this._context) && !rule.blocksVisibility()) {
//             //the atrule contains something that was referenced (likely by extend)
//             //therefore it needs to be shown in output too
//             return true;
//         }
//     }
//     return false;
// },
}