Compile for localRef, PSNull and PSName with attributes.