Access Of Field

Author: LGTM

import cpp

from Field f, FieldAccess access
where
  f.hasName('aDate') and
  f.getDeclaringType().hasName('Order') and
  f = access.getTarget()
select access

Description

Finds field read `<field name>` on instance of class type `<class typename>`