| 781 | } |
| 782 | |
| 783 | Ref<GDScriptParserRef> GDScriptParser::get_depended_parser_for(const String &p_path) { |
| 784 | Ref<GDScriptParserRef> ref; |
| 785 | if (depended_parsers.has(p_path)) { |
| 786 | ref = depended_parsers[p_path]; |
| 787 | } else { |
| 788 | Error err = OK; |
| 789 | ref = GDScriptCache::get_parser(p_path, GDScriptParserRef::EMPTY, err, script_path); |
| 790 | if (ref.is_valid()) { |
| 791 | depended_parsers[p_path] = ref; |
| 792 | } |
| 793 | } |
| 794 | |
| 795 | return ref; |
| 796 | } |
| 797 | |
| 798 | const HashMap<String, Ref<GDScriptParserRef>> &GDScriptParser::get_depended_parsers() { |
| 799 | return depended_parsers; |
no test coverage detected