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

Method get_token_column

bytecode/gdscript_v1_tokenizer_compat.cpp:1005–1011  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1003}
1004
1005int GDScriptV1TokenizerTextCompat::get_token_column(int p_offset) const {
1006 ERR_FAIL_COND_V(p_offset <= -MAX_LOOKAHEAD, -1);
1007 ERR_FAIL_COND_V(p_offset >= MAX_LOOKAHEAD, -1);
1008
1009 int ofs = (TK_RB_SIZE + tk_rb_pos + p_offset - MAX_LOOKAHEAD - 1) % TK_RB_SIZE;
1010 return tk_rb[ofs].start_column;
1011}
1012
1013const Variant &GDScriptV1TokenizerTextCompat::get_token_constant(int p_offset) const {
1014 ERR_FAIL_COND_V(p_offset <= -MAX_LOOKAHEAD, tk_rb[0].literal);

Callers 2

parse_scriptMethod · 0.45
decompile_bufferMethod · 0.45

Calls 3

backMethod · 0.80
keyMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected