This will be best illustrated with an example:
I am looking for the name of a primary prefix with an ancestor that contains something with SEARCH_KEY in the name, this works well.
//PrimaryExpression/PrimaryPrefix/Name [ ancestor::MethodDeclaration//Something/Something[contains(@Image,'SEARCH_KEY')] ]
Now, is there a way to SEARCH_KEY as the Image property of the Name element?
source share