QString JavaCodeMarker::markedUpFullName(const Node *node, const Node * /* relative */ ) { QString fullName; for ( ;; ) { fullName.prepend( markedUpName(node) ); if ( node->parent()->name().isEmpty() ) break; node = node->parent(); fullName.prepend( "." ); } return fullName; }
QString QmlCodeMarker::markedUpFullName(const Node *node, const Node *relative) { if (node->name().isEmpty()) { return "global"; } else { QString fullName; for (;;) { fullName.prepend(markedUpName(node)); if (node->parent() == relative || node->parent()->name().isEmpty()) break; fullName.prepend("<@op>::</@op>"); node = node->parent(); } return fullName; } }