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

Method check_next_token

bytecode/bytecode_base.cpp:1221–1226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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()) {
1223 return false;
1224 }
1225 return get_global_token(p_tokens[p_pos + 1]) == p_token;
1226}
1227
1228bool GDScriptDecomp::is_token_func_call(int p_pos, const Vector<uint32_t> &p_tokens) {
1229 if (p_pos > 0 && get_global_token(p_tokens[p_pos - 1]) == G_TK_PR_FUNCTION) {

Callers 1

parse_scriptMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected