code: public SourcePosition position() {
          return (tree != null)
                  ? SourcePositionImpl.make(tree.sourcefile, tree.pos, tree.lineMap)
                  : SourcePositionImpl.make(docPath, Position.NOPOS, null);
      }
docs: Return the source position of the entity, or null if
  no position is available.