Adding support to specify field visibility in compiler