MCPcopy Create free account
hub / github.com/ampproject/amphtml / build

Method build

src/extension-analytics.js:185–193  ·  view source on GitHub ↗

* Call the #build() method to build and get the CustomEventReporter instance. * One CustomEventReporterBuilder instance can only build one reporter, which * means #build() should only be called once after all eventType are added. * @return {!CustomEventReporter}

()

Source from the content-addressed store, hash-verified

183 * @return {!CustomEventReporter}
184 */
185 build() {
186 devAssert(this.config_, 'CustomEventReporter already built');
187 const report = new CustomEventReporter(
188 this.parent_,
189 /** @type {!JsonObject} */ (this.config_)
190 );
191 this.config_ = null;
192 return report;
193 }
194}
195
196/**

Callers 2

postPageImpression_Method · 0.95
setupAnalytics_Method · 0.95

Calls 1

devAssertFunction · 0.90

Tested by

no test coverage detected