MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / external_dict

Method external_dict

tools/settings.py:346–356  ·  view source on GitHub ↗
(self, skip_keys={})

Source from the content-addressed store, hash-verified

344 return self.attrs
345
346 def external_dict(self, skip_keys={}): # noqa
347 external_settings = {}
348 for key, value in self.dict().items():
349 if value != self.defaults.get(key) and key not in INTERNAL_SETTINGS and key not in skip_keys:
350 external_settings[key] = value # noqa: PERF403
351 if not self.attrs['STRICT']:
352 # When not running in strict mode we also externalize all legacy settings
353 # (Since the external tools do process LEGACY_SETTINGS themselves)
354 for key in self.legacy_settings:
355 external_settings[key] = self.attrs[key]
356 return external_settings
357
358 def keys(self):
359 return self.attrs.keys()

Callers 3

read_and_preprocessFunction · 0.80
compile_javascriptFunction · 0.80

Calls 2

dictMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected