MCPcopy Index your code
hub / github.com/Moddable-OpenSource/moddable / resolveVariable

Method resolveVariable

tools/mcmanifest.js:3160–3167  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

3158 return {...sourceIn, source: result};
3159 }
3160 resolveVariable(value) {
3161 value = value.replace(/\$\(([^\)]+)\)/g, (offset, value) => {
3162 if (value in this.environment)
3163 return this.environment[value];
3164 return this.getenv(value);
3165 });
3166 return this.resolveSlash(value);
3167 }
3168 run() {
3169 // merge manifests
3170 var path = this.manifestPath;

Callers 5

includeManifestMethod · 0.95
mergeNodeRedMethod · 0.95
mergePlatformMethod · 0.95
parseBuildMethod · 0.95
resolveSourceMethod · 0.95

Calls 2

resolveSlashMethod · 0.95
replaceMethod · 0.80

Tested by

no test coverage detected