code: public boolean recordTypeTransformation(String name, Node expr) {
      if (currentInfo.declareTypeTransformation(name, expr)) {
        populated = true;
        return true;
      } else {
        return false;
      }
    }
docs: Records a type transformation expression together with its template
  type name.