| 2715 | |
| 2716 | #ifdef DEBUG_ENABLED |
| 2717 | static bool enum_has_value(const GDScriptParser::DataType p_type, int64_t p_value) { |
| 2718 | for (const KeyValue<StringName, int64_t> &E : p_type.enum_values) { |
| 2719 | if (E.value == p_value) { |
| 2720 | return true; |
| 2721 | } |
| 2722 | } |
| 2723 | return false; |
| 2724 | } |
| 2725 | #endif // DEBUG_ENABLED |
| 2726 | |
| 2727 | void GDScriptAnalyzer::update_const_expression_builtin_type(GDScriptParser::ExpressionNode *p_expression, const GDScriptParser::DataType &p_type, const char *p_usage, bool p_is_cast) { |
no outgoing calls
no test coverage detected