MCPcopy Index your code
hub / github.com/ampproject/amphtml / constructor

Method constructor

src/service/variable-source.js:164–175  ·  view source on GitHub ↗

* @param {!./ampdoc-impl.AmpDoc} ampdoc

(ampdoc)

Source from the content-addressed store, hash-verified

162 * @param {!./ampdoc-impl.AmpDoc} ampdoc
163 */
164 constructor(ampdoc) {
165 /** @protected @const {!./ampdoc-impl.AmpDoc} */
166 this.ampdoc = ampdoc;
167
168 /** @private @const {!{[key: string]: !ReplacementDef}} */
169 this.replacements_ = Object.create(null);
170
171 /** @private {boolean} */
172 this.initialized_ = false;
173
174 this.getUrlMacroAllowlist_();
175 }
176
177 /**
178 * Lazily initialize the default replacements.

Callers

nothing calls this directly

Calls 2

getUrlMacroAllowlist_Method · 0.95
createMethod · 0.45

Tested by

no test coverage detected