MCPcopy Create free account
hub / github.com/GDRETools/gdsdecomp / get_local_token_val

Method get_local_token_val

bytecode/bytecode_custom.cpp:143–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143int GDScriptDecomp_custom::get_local_token_val(GDScriptDecomp::GlobalToken p_token) const {
144 for (int i = 0; i < tokens.size(); i++) {
145 if (tokens[i] == p_token) {
146 return i;
147 }
148 }
149 return -1;
150}
151
152GDScriptDecomp_custom::GDScriptDecomp_custom(Dictionary p_custom_def) {
153 bytecode_version = p_custom_def.get("bytecode_version", 0);

Callers 5

_token_to_binaryMethod · 0.45
make_tokenMethod · 0.45
scanMethod · 0.45
_advanceMethod · 0.45
parse_code_stringMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected