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

Function is_whitespace_or_ignorable

bytecode/bytecode_base.cpp:1202–1212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1200}
1201
1202bool is_whitespace_or_ignorable(GDScriptDecomp::GlobalToken p_token) {
1203 switch (p_token) {
1204 case GDScriptDecomp::G_TK_INDENT:
1205 case GDScriptDecomp::G_TK_DEDENT:
1206 case GDScriptDecomp::G_TK_NEWLINE:
1207 case GDScriptDecomp::G_TK_CURSOR:
1208 return true;
1209 default:
1210 return false;
1211 }
1212}
1213
1214bool GDScriptDecomp::check_prev_token(int p_pos, const Vector<uint32_t> &p_tokens, GlobalToken p_token) {
1215 if (p_pos == 0) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected