code: public static Expression constant(@Nullable Dir dir) {
      return (dir == null)
          ? BytecodeUtils.constantNull(DIR_TYPE)
          : FieldRef.enumReference(dir).accessor();
    }
docs: Returns an {@link Expression} that evaluates to the given Dir, or null.