| 397 | } |
| 398 | |
| 399 | String CSharpLanguage::validate_path(const String &p_path) const { |
| 400 | String class_name = p_path.get_file().get_basename(); |
| 401 | if (get_reserved_words().has(class_name)) { |
| 402 | return RTR("Class name can't be a reserved keyword"); |
| 403 | } |
| 404 | if (!TS->is_valid_identifier(class_name)) { |
| 405 | return RTR("Class name must be a valid identifier"); |
| 406 | } |
| 407 | |
| 408 | return ""; |
| 409 | } |
| 410 | |
| 411 | Script *CSharpLanguage::create_script() const { |
| 412 | return memnew(CSharpScript); |
nothing calls this directly
no test coverage detected