MCPcopy Create free account
hub / github.com/WebAssembly/wabt / _WriteModuleCommand

Method _WriteModuleCommand

test/gen-spec-js.py:405–412  ·  view source on GitHub ↗
(self, command)

Source from the content-addressed store, hash-verified

403 return '$%d' % self.module_idx
404
405 def _WriteModuleCommand(self, command):
406 self.module_idx += 1
407 idx_name = self._ModuleIdxName()
408
409 self.out_file.write('let %s = instance("%s");\n' %
410 (idx_name, self._Module(command['filename'])))
411 if 'name' in command:
412 self.out_file.write('let %s = %s;\n' % (command['name'], idx_name))
413
414 def _WriteActionCommand(self, command):
415 self.out_file.write('%s;\n' % self._Action(command['action']))

Callers

nothing calls this directly

Calls 2

_ModuleIdxNameMethod · 0.95
_ModuleMethod · 0.95

Tested by

no test coverage detected