original_string: public function add_field($field, $table, $alias = null) {
          $field = self::resolve_field($field, $table);
          if (!empty($alias)) {
              $field .= ' AS ' . $alias;
          }
          $this->fields[] = $field;
      }
code: public function add_field($field, $table, $alias = null) {
          $field = self::resolve_field($field, $table);
          if (!empty($alias)) {
              $field .= ' AS ' . $alias;
          }
          $this->fields[] = $field;
      }
code_tokens: public function add_field ( $ field , $ table , $ alias = null ) { $ field = self :: resolve_field ( $ field , $ table ) ; if ( ! empty ( $ alias ) ) { $ field .= ' AS ' . $ alias ; } $ this -> fields [ ] = $ field ; }
docstring: Add a field to select.
  
  @param string $field The field, or *.
  @param string $table The table name, without the prefix 'glossary_'.
  @param string $alias An alias for the field.
docstring_tokens: Add a field to select .