IASTNodeSelector nodeSelector= ast.getNodeSelector(null);
IASTNode selectedNode = nodeSelector.findEnclosingNode(offset, 1);
if (selectedNode instanceof IASTName) {
IASTName selectedName = (IASTName) selectedNode;
IBinding binding = selectedName.resolveBinding();
CppToProtobufMapping info = delegate.createMappingFrom(binding);
mappingReference.set(info);
return OK_STATUS;
}
return CANCEL_STATUS;
}