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

Method resolve

extensions/amp-animation/0.1/parsers/css-expr-ast.js:132–137  ·  view source on GitHub ↗

* Resolves the value of all variable components. Only performs any work if * variable components exist. As an optimization, this node is returned * for a non-variable nodes (`isConst() == true`). Otherwise, `calc()` method * is used to calculate the new value. * @param {!CssContext} cont

(context, normalize)

Source from the content-addressed store, hash-verified

130 * @final
131 */
132 resolve(context, normalize) {
133 if (this.isConst(normalize)) {
134 return this;
135 }
136 return this.calc(context, normalize);
137 }
138
139 /**
140 * Whether the CSS node is a constant or includes variable components.

Callers 15

ImportDeclarationFunction · 0.80
startAtRepoRootFunction · 0.80
resolveImportedEnumFunction · 0.80
input.jsFile · 0.80
output.mjsFile · 0.80
input.jsFile · 0.80
input.jsFile · 0.80
resetServerFilesFunction · 0.80

Calls 2

isConstMethod · 0.95
calcMethod · 0.95

Tested by

no test coverage detected