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

Method check_prev_token

bytecode/bytecode_base.cpp:1214–1219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1212}
1213
1214bool GDScriptDecomp::check_prev_token(int p_pos, const Vector<uint32_t> &p_tokens, GlobalToken p_token) {
1215 if (p_pos == 0) {
1216 return false;
1217 }
1218 return get_global_token(p_tokens[p_pos - 1]) == p_token;
1219}
1220
1221bool GDScriptDecomp::check_next_token(int p_pos, const Vector<uint32_t> &p_tokens, GlobalToken p_token) {
1222 if (p_pos + 1 >= p_tokens.size()) {

Callers 1

parse_scriptMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected