implementation of mayUseCodeInAssignment()