gi: support mapping function info to method