src/service/extensions-impl.js
/**
   * Adds `name` to the list of services registered by the current extension.
   * @param {string} name
   * @param {function(new:Object, !./ampdoc-impl.AmpDoc)} implementationClass
   * @private
   */
Adds `name` to the list of services registered by the current extension.
Adds ` name ` to the list of services registered by the current extension .
addService_(name, implementationClass) {
    const holder = this.getCurrentExtensionHolder_();
    holder.extension.services.push(name);
    this.addDocFactory_(ampdoc => {
      registerServiceBuilderForDoc(
          ampdoc,
          name,
          implementationClass,
           true);
    });
  }
addService_ ( name , implementationClass ) { const holder = this . getCurrentExtensionHolder_ ( ) ; holder . extension . services . push ( name ) ; this . addDocFactory_ ( ampdoc => { registerServiceBuilderForDoc ( ampdoc , name , implementationClass , true ) ; } ) ; }
Adds `name` to the list of services registered by the current extension.
Adds ` name ` to the list of services registered by the current extension .
/* instantiate */