| 81 | } |
| 82 | |
| 83 | QmlJS::AST::Statement* getQMLAttribute(QmlJS::AST::UiObjectMemberList* members, const QString& attribute) |
| 84 | { |
| 85 | for (QmlJS::AST::UiObjectMemberList *it = members; it; it = it->next) { |
| 86 | // The member needs to be a script binding whose name matches attribute |
| 87 | auto* binding = QmlJS::AST::cast<QmlJS::AST::UiScriptBinding*>(it->member); |
| 88 | |
| 89 | if (binding && binding->qualifiedId && binding->qualifiedId->name == attribute) { |
| 90 | return binding->statement; |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | return nullptr; |
| 95 | } |
| 96 | |
| 97 | QString getNodeValue(AST::Node* node) |
| 98 | { |
no outgoing calls
no test coverage detected