Files
2018-08-02 17:53:23 +01:00

11 lines
327 B
Plaintext

import cpp
from Class c, int i, string m, string members, string locations
where
if exists(c.getAMember())
then m = c.getAMember(i).toString()
else (m = "<none>" and i = -1)
and members = count(c.getAMember()) + " members"
and locations = count(c.getLocation()) + " locations"
select c, members, locations, i, m