| 713 | }; |
| 714 | |
| 715 | struct ClassDoc { |
| 716 | String name; |
| 717 | String inherits; |
| 718 | String brief_description; |
| 719 | String description; |
| 720 | String keywords; |
| 721 | Vector<TutorialDoc> tutorials; |
| 722 | Vector<MethodDoc> constructors; |
| 723 | Vector<MethodDoc> methods; |
| 724 | Vector<MethodDoc> operators; |
| 725 | Vector<MethodDoc> signals; |
| 726 | Vector<ConstantDoc> constants; |
| 727 | HashMap<String, EnumDoc> enums; |
| 728 | Vector<PropertyDoc> properties; |
| 729 | Vector<MethodDoc> annotations; |
| 730 | Vector<ThemeItemDoc> theme_properties; |
| 731 | bool is_deprecated = false; |
| 732 | String deprecated_message; |
| 733 | bool is_experimental = false; |
| 734 | String experimental_message; |
| 735 | bool is_script_doc = false; |
| 736 | String script_path; |
| 737 | bool operator<(const ClassDoc &p_class) const { |
| 738 | return name < p_class.name; |
| 739 | } |
| 740 | static ClassDoc from_dict(const Dictionary &p_dict) { |
| 741 | ClassDoc doc; |
| 742 | |
| 743 | if (p_dict.has("name")) { |
| 744 | doc.name = p_dict["name"]; |
| 745 | } |
| 746 | |
| 747 | if (p_dict.has("inherits")) { |
| 748 | doc.inherits = p_dict["inherits"]; |
| 749 | } |
| 750 | |
| 751 | if (p_dict.has("brief_description")) { |
| 752 | doc.brief_description = p_dict["brief_description"]; |
| 753 | } |
| 754 | |
| 755 | if (p_dict.has("description")) { |
| 756 | doc.description = p_dict["description"]; |
| 757 | } |
| 758 | |
| 759 | if (p_dict.has("keywords")) { |
| 760 | doc.keywords = p_dict["keywords"]; |
| 761 | } |
| 762 | |
| 763 | Array tutorials; |
| 764 | if (p_dict.has("tutorials")) { |
| 765 | tutorials = p_dict["tutorials"]; |
| 766 | size_t tutorials_size = tutorials.size(); |
| 767 | doc.tutorials.resize(tutorials_size); |
| 768 | for (size_t i = 0; i < tutorials_size; i++) { |
| 769 | doc.tutorials.write[i] = TutorialDoc::from_dict(tutorials[i]); |
| 770 | } |
| 771 | } |
| 772 |
no outgoing calls
no test coverage detected