Added lookup of rpc statements when searching by augment target path.
Signed-off-by: Martin Vitez <mvitez@cisco.com>
if (node == null && (parent instanceof Module)) {\r
val notifications = (parent as Module).notifications;\r
for (notification : notifications) {\r
- if (notification.QName.localName.equals(name.localName)) {\r
+ if (notification.QName.equals(name)) {\r
node = notification\r
}\r
}\r
}\r
+ if (node == null && (parent instanceof Module)) {
+ val rpcs = (parent as Module).rpcs;
+ for (rpc : rpcs) {
+ if (rpc.QName.equals(name)) {
+ node = rpc
+ }
+ }
+ }
\r
if (!(node instanceof ChoiceNode) && !(node instanceof ChoiceCaseNode)) {\r
var String prefix = node.QName.prefix\r