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

Method OpcodeToToken

src/decompiler.cc:94–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92 std::string Indent(size_t amount) { return std::string(amount, ' '); }
93
94 std::string OpcodeToToken(Opcode opcode) {
95 std::string s = opcode.GetDecomp();
96 std::replace(s.begin(), s.end(), '.', '_');
97 return s;
98 }
99
100 void IndentValue(Value& val, size_t amount, std::string_view first_indent) {
101 auto indent = Indent(amount);

Callers

nothing calls this directly

Calls 3

GetDecompMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected