| 665 | } |
| 666 | |
| 667 | static int _get_method_location(const StringName &p_class, const StringName &p_method) { |
| 668 | if (!ClassDB::has_method(p_class, p_method)) { |
| 669 | return ScriptLanguage::LOCATION_OTHER; |
| 670 | } |
| 671 | |
| 672 | int depth = 0; |
| 673 | StringName class_test = p_class; |
| 674 | while (class_test && !ClassDB::has_method(class_test, p_method, true)) { |
| 675 | class_test = ClassDB::get_parent_class(class_test); |
| 676 | depth++; |
| 677 | } |
| 678 | |
| 679 | return depth | ScriptLanguage::LOCATION_PARENT_MASK; |
| 680 | } |
| 681 | |
| 682 | static int _get_enum_constant_location(const StringName &p_class, const StringName &p_enum_constant) { |
| 683 | if (!ClassDB::get_integer_constant_enum(p_class, p_enum_constant)) { |
no test coverage detected