| 43 | #endif |
| 44 | |
| 45 | void GDScriptV2TokenizerCompatText::set_source_code(const String &p_source_code) { |
| 46 | source = p_source_code; |
| 47 | if (source.is_empty()) { |
| 48 | _source = U""; |
| 49 | } else { |
| 50 | _source = source.ptr(); |
| 51 | } |
| 52 | _current = _source; |
| 53 | line = 1; |
| 54 | column = 1; |
| 55 | length = p_source_code.length(); |
| 56 | position = 0; |
| 57 | } |
| 58 | |
| 59 | void GDScriptV2TokenizerCompatText::set_cursor_position(int p_line, int p_column) { |
| 60 | cursor_line = p_line; |
no test coverage detected