| 771 | } |
| 772 | |
| 773 | void DeclarationBuilder::declareEnum(const RangeInRevision &range, |
| 774 | const Identifier &name) |
| 775 | { |
| 776 | EnumerationType::Ptr type(new EnumerationType); |
| 777 | |
| 778 | { |
| 779 | DUChainWriteLocker lock; |
| 780 | auto* decl = openDeclaration<ClassMemberDeclaration>(name, range); |
| 781 | |
| 782 | decl->setKind(Declaration::Type); |
| 783 | decl->setType(type); // The type needs to be set here because closeContext is called before closeAndAssignType and needs to know the type of decl |
| 784 | |
| 785 | type->setDataType(IntegralType::TypeEnumeration); |
| 786 | type->setDeclaration(decl); |
| 787 | } |
| 788 | openType(type); |
| 789 | } |
| 790 | |
| 791 | void DeclarationBuilder::declareComponentSubclass(QmlJS::AST::UiObjectInitializer* node, |
| 792 | const KDevelop::RangeInRevision& range, |
nothing calls this directly
no test coverage detected