void processBody(BlockStatement bs, TBody tb) { tb.text = bs.GetText(); var ivisitor = new FindAllMemberReference(); bs.AcceptVisitor(ivisitor); var ilist = ivisitor.memberRefList; foreach (var expr in ilist) { var invoke = new TInvoke(); invoke.target = expr.Target.GetText(); invoke.member = expr.MemberName; invoke.type = GetTargetTypeString(expr); tb.invokes.Add(invoke); } }