MCPcopy
hub / github.com/ampproject/amphtml / parse

Method parse

src/service/url-impl.js:45–51  ·  view source on GitHub ↗

* Parses the URL in the context of the current document. * * @param {string} url * @param {boolean=} opt_nocache * Cache is always ignored on ESM builds, see https://go.amp.dev/pr/31594 * @return {!Location}

(url, opt_nocache)

Source from the content-addressed store, hash-verified

43 * @return {!Location}
44 */
45 parse(url, opt_nocache) {
46 return parseUrlWithA(
47 this.anchor_,
48 url,
49 mode.isEsm() || opt_nocache ? null : this.cache_
50 );
51 }
52
53 /**
54 * @param {string|!Location} url

Callers 15

parse_Method · 0.95
getExperimentGlobalsFunction · 0.45
getAmpConfigFunction · 0.45
parseClosureCommentsFunction · 0.45
isValidSelectorFunction · 0.45
readJsconfigPathsFunction · 0.45
finalizeRunnerFunction · 0.45
output.jsFile · 0.45
output.jsFile · 0.45
output.jsFile · 0.45
index.jsFile · 0.45
output.mjsFile · 0.45

Calls 1

parseUrlWithAFunction · 0.90

Tested by

no test coverage detected