MCPcopy Create free account
hub / github.com/KDE/kdevelop / declareProperty

Method declareProperty

plugins/qmljs/duchain/declarationbuilder.cpp:741–754  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

739}
740
741void DeclarationBuilder::declareProperty(QmlJS::AST::UiObjectInitializer* node,
742 const RangeInRevision &range,
743 const Identifier &name)
744{
745 AbstractType::Ptr type = typeFromName(QmlJS::getQMLAttributeValue(node->members, QStringLiteral("type")).value);
746
747 {
748 DUChainWriteLocker lock;
749 auto* decl = openDeclaration<ClassMemberDeclaration>(name, range);
750
751 decl->setAbstractType(type);
752 }
753 openType(type);
754}
755
756void DeclarationBuilder::declareParameter(QmlJS::AST::UiObjectInitializer* node,
757 const RangeInRevision &range,

Callers

nothing calls this directly

Calls 2

getQMLAttributeValueFunction · 0.85
setAbstractTypeMethod · 0.45

Tested by

no test coverage detected