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

Method get

src/service/variable-source.js:198–204  ·  view source on GitHub ↗

* Method exists to assist stubbing in tests. * @param {string} name * @return {!ReplacementDef}

(name)

Source from the content-addressed store, hash-verified

196 * @return {!ReplacementDef}
197 */
198 get(name) {
199 if (!this.initialized_) {
200 this.initialize_();
201 }
202
203 return this.replacements_[name];
204 }
205
206 /**
207 * Sets a synchronous value resolver for the variable with the specified name.

Callers

nothing calls this directly

Calls 1

initialize_Method · 0.95

Tested by

no test coverage detected