Method code for $root.match_descendants()

[Turn off line numbering]
  1: arg string;
  2: var match, child;
  3: 
  4: match = .match_children(string);
  5: if (match)
  6:     return match;
  7: for child in (.children()) {
  8:     match = child.match_descendants(string);
  9:     if (match)
 10:         return match;
 11: }
 12: return 0;

["// Created as a part of ColdCore, see: @help Credit"]

the Cold Dark