code: function _makeFindCondition(match) {
          switch (typeof match) {
          case "function":
              return match;
          case "string":
              return function findCondition(name, node) {
                  return node.name === name;
              }.bind(undefined, match.toUpperCase());
          case "number":
              return function findCondition(type, node) {
                  return node.type === type;
              }.bind(undefined, match);
          default:
              console.error("Invalid find condition: " + match);
          }
      }
docs: Construct a find condition (used in `find` and `findParent`)
  The match can be a callback returning true or false, the node
  name or the node type.
  @param {function} or {string} or {number} match criteria