diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2024-02-09 12:35:00 +0100 |
|---|---|---|
| committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-02-09 12:35:00 +0100 |
| commit | 77af6ca8adccc7ebcea4dff370bcd28e45715b0c (patch) | |
| tree | f3515d394160557e7da0612c0a2e2390da5fefbb /modules/gdscript/gdscript_parser.h | |
| parent | 1774c17b64a0c0bf3f4f6ce85f38af576cf72a8a (diff) | |
| parent | 72e5f8c31e9237a4581cf250aa9943a4290f4017 (diff) | |
| download | redot-engine-77af6ca8adccc7ebcea4dff370bcd28e45715b0c.tar.gz | |
Merge pull request #87634 from vnen/gdscript-binary-tokens
GDScript: Reintroduce binary tokenization on export
Diffstat (limited to 'modules/gdscript/gdscript_parser.h')
| -rw-r--r-- | modules/gdscript/gdscript_parser.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_parser.h b/modules/gdscript/gdscript_parser.h index 11c5e51b9a..c064a2d0f4 100644 --- a/modules/gdscript/gdscript_parser.h +++ b/modules/gdscript/gdscript_parser.h @@ -1336,7 +1336,7 @@ private: HashSet<int> unsafe_lines; #endif - GDScriptTokenizer tokenizer; + GDScriptTokenizer *tokenizer = nullptr; GDScriptTokenizer::Token previous; GDScriptTokenizer::Token current; @@ -1540,6 +1540,7 @@ private: public: Error parse(const String &p_source_code, const String &p_script_path, bool p_for_completion); + Error parse_binary(const Vector<uint8_t> &p_binary, const String &p_script_path); ClassNode *get_tree() const { return head; } bool is_tool() const { return _is_tool; } ClassNode *find_class(const String &p_qualified_name) const; |
