code: public int idxForName(final String name) {
      final Integer id = this.name2idx.get(name);
      return id == null ? -1 : id;
    }
docs: Returns the variable index for a given variable name.
  @param name the variable name
  @return the variable index for the name