MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / get_depended_parser_for

Method get_depended_parser_for

modules/gdscript/gdscript_parser.cpp:783–796  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

781}
782
783Ref<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
798const HashMap<String, Ref<GDScriptParserRef>> &GDScriptParser::get_depended_parsers() {
799 return depended_parsers;

Callers 9

resolve_datatypeMethod · 0.80
resolve_class_bodyMethod · 0.80
reduce_identifierMethod · 0.80
type_from_variantMethod · 0.80
_type_from_variantFunction · 0.80
_guess_identifier_typeFunction · 0.80

Calls 2

hasMethod · 0.45
is_validMethod · 0.45

Tested by

no test coverage detected