galex
02/03/2018, 2:08 PM<?xml version="1.0" encoding="utf-8"?>
<resources>(X)
(X)<color name="electric_violet">#AD32FE</color>(X)
(X)
</resources>
In a Completion Contributor I am trying to find the places where (X) shows up, basically all the white spaces inside the xml tag “resources”. I tried many things, like:```psiElement().inside(psiElement().withName("resources")``` Etc. and nothing worked. The only way I managed to do that is inside the CompletionProvider callback, do to the following:
val xmlTagImpl = parameters.position.parent.parent as? XmlTagImpl
if (xmlTagImpl?.name == "resources") {
}
Thanks in advance for your help!