summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gd_parser.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2016-01-23 15:36:03 -0300
committerJuan Linietsky <reduzio@gmail.com>2016-01-23 15:36:03 -0300
commitde7fe2fced036154993376e245c694a03ef70172 (patch)
treedf003fb976587928cbba636f7c05c2d527d9f63f /modules/gdscript/gd_parser.cpp
parent2cc640dbede53cfaf04ae37a9063bff386a4d515 (diff)
downloadredot-engine-de7fe2fced036154993376e245c694a03ef70172.tar.gz
-remove unnecesary error report, fixes #3361
Diffstat (limited to 'modules/gdscript/gd_parser.cpp')
-rw-r--r--modules/gdscript/gd_parser.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/gdscript/gd_parser.cpp b/modules/gdscript/gd_parser.cpp
index c4175e048d..4c6b6ff2dd 100644
--- a/modules/gdscript/gd_parser.cpp
+++ b/modules/gdscript/gd_parser.cpp
@@ -3145,6 +3145,11 @@ Error GDParser::parse(const String& p_code, const String& p_base_path, bool p_ju
return ret;
}
+bool GDParser::is_tool_script() const {
+
+ return (head && head->type==Node::TYPE_CLASS && static_cast<const ClassNode*>(head)->tool);
+}
+
const GDParser::Node *GDParser::get_parse_tree() const {
return head;