summaryrefslogtreecommitdiffstats
path: root/modules/mono/editor/script_class_parser.h
diff options
context:
space:
mode:
authorIgnacio Etcheverry <ignalfonsore@gmail.com>2018-10-28 01:31:17 +0200
committerIgnacio Etcheverry <ignalfonsore@gmail.com>2018-10-28 01:31:27 +0200
commit2cf02f302fd39e75af557737be61b891bebabc30 (patch)
treec682fb863bfe88adc995a17bd66565b94e0fde02 /modules/mono/editor/script_class_parser.h
parentaa6876df5068141014930052428df4bbbd549ca5 (diff)
downloadredot-engine-2cf02f302fd39e75af557737be61b891bebabc30.tar.gz
Fix C# parsing the full name of base types
Previously it would fail if the type name included its namespace.
Diffstat (limited to 'modules/mono/editor/script_class_parser.h')
-rw-r--r--modules/mono/editor/script_class_parser.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/modules/mono/editor/script_class_parser.h b/modules/mono/editor/script_class_parser.h
index 11cf1853e2..1e174c28a9 100644
--- a/modules/mono/editor/script_class_parser.h
+++ b/modules/mono/editor/script_class_parser.h
@@ -52,13 +52,18 @@ private:
TK_OP_LESS,
TK_OP_GREATER,
TK_EOF,
- TK_ERROR
+ TK_ERROR,
+ TK_MAX
};
+ static const char *token_names[TK_MAX];
+ static String get_token_name(Token p_token);
+
Token get_token();
- Error _skip_type_parameters();
+ Error _skip_generic_type_params();
+ Error _parse_type_full_name(String &r_full_name);
Error _parse_class_base(Vector<String> &r_base);
Error _parse_namespace_name(String &r_name, int &r_curly_stack);