-remove unnecesary error report, fixes #3361

This commit is contained in:
Juan Linietsky 2016-01-23 15:36:03 -03:00
parent 2cc640dbed
commit de7fe2fced
3 changed files with 21 additions and 7 deletions

View file

@ -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;