| 695 | } |
| 696 | |
| 697 | static int _get_enum_location(const StringName &p_class, const StringName &p_enum) { |
| 698 | if (!ClassDB::has_enum(p_class, p_enum)) { |
| 699 | return ScriptLanguage::LOCATION_OTHER; |
| 700 | } |
| 701 | |
| 702 | int depth = 0; |
| 703 | StringName class_test = p_class; |
| 704 | while (class_test && !ClassDB::has_enum(class_test, p_enum, true)) { |
| 705 | class_test = ClassDB::get_parent_class(class_test); |
| 706 | depth++; |
| 707 | } |
| 708 | |
| 709 | return depth | ScriptLanguage::LOCATION_PARENT_MASK; |
| 710 | } |
| 711 | |
| 712 | // END LOCATION METHODS |
| 713 |
no outgoing calls
no test coverage detected