function checkProperties(props) {
    // Check for lonely setters if in the ES5 mode.
    if (state.inES5()) {
      for (var name in props) {
        if (props[name] && props[name].setterToken && !props[name].getterToken &&
          !props[name].static) {
          warning("W078", props[name].setterToken);
        }
      }
    }
  }
Validate the properties defined within an object literal or class body.
See the `saveAccessor` and `saveProperty` functions for more detail.

@param {object} props - Collection of objects describing the properties
                        encountered