extensions/amp-bind/0.1/bind-evaluator.js
/**
   * Parses and stores given bindings into expression objects and returns map
   * of expression string to parse errors.
   * @param {!Array<BindingDef>} bindings
   * @return {!Object<string, EvaluatorErrorDef>},
   */
Parses and stores given bindings into expression objects and returns map
of expression string to parse errors.
@param {!Array} bindings
@return {!Object}.
Parses and stores given bindings into expression objects and returns map of expression string to parse errors . @param { !Array } bindings @return { !Object } .
addBindings(bindings) {
    const errors = Object.create(null);
    bindings.forEach(binding => {
      const parsed = this.parse_(binding.expressionString);
      if (parsed.error) {
        errors[binding.expressionString] = parsed.error;
      } else {
        this.bindings_.push(binding);
      }
    });
    return errors;
  }
addBindings ( bindings ) { const errors = Object . create ( null ) ; bindings . forEach ( binding => { const parsed = this . parse_ ( binding . expressionString ) ; if ( parsed . error ) { errors [ binding . expressionString ] = parsed . error ; } else { this . bindings_ . push ( binding ) ; } } ) ; return errors ; }
Parses and stores given bindings into expression objects and returns map
 of expression string to parse errors.
Parses and stores given bindings into expression objects and returns map of expression string to parse errors .
// Create BindExpression objects from expression strings.