public override TargetClassType GetDeclaringType(Thread target) { if (!subprog.HasThis) return null; var type = subprog.This.Type; var ptype = type as TargetPointerType; if (ptype != null) type = ptype.StaticType; return (TargetClassType) type; }