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

Function phase_source_transforms

tools/link.py:2112–2120  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

2110
2111@ToolchainProfiler.profile_block('source transforms')
2112def phase_source_transforms(options):
2113 # Apply a source code transformation, if requested
2114 global final_js
2115 safe_copy(final_js, final_js + '.tr.js')
2116 final_js += '.tr.js'
2117 posix = not WINDOWS
2118 logger.debug('applying transform: %s', options.js_transform)
2119 shared.check_call(remove_quotes([*shlex.split(options.js_transform, posix=posix), os.path.abspath(final_js)]))
2120 save_intermediate('transformed')
2121
2122
2123# Unmangle previously mangled `await import` and `await` references in

Callers 1

phase_post_linkFunction · 0.85

Calls 4

safe_copyFunction · 0.85
remove_quotesFunction · 0.85
splitMethod · 0.80
save_intermediateFunction · 0.70

Tested by

no test coverage detected