dis_sql/src/sql_ast_map.cxx
//
// ast_sym_kind_map - Return ast node kind for passed symbol kind
//
// Used to build a tree node for a symbol.
//
Return ast node kind for passed symbol kind
Used to build a tree node for a symbol.
Return ast node kind for passed symbol kind Used to build a tree node for a symbol .
EXTERN_C ast_node_kind ast_sym_kind_map (sym_kind sk)
{
   ast_node_kind ank;
   switch (sk) {
      case sk_none: ank = ank_none; break;
      case sk_externref: ank = ank_externref; break;
      case sk_record_type: ank = ank_record_type; break;
      case sk_ref_type: ank = ank_ref_type; break;
      case sk_table_type: ank = ank_table_type; break;
      case sk_type: ank = ank_type; break;
      case sk_alias: ank = ank_alias; break;
      case sk_column: ank = ank_column; break;
      case sk_column_alias: ank = ank_column_alias; break;
      case sk_constant: ank = ank_constant; break;
      case sk_context: ank = ank_context; break;
      case sk_cursor: ank = ank_cursor; break;
      case sk_dblink: ank = ank_dblink; break;
      case sk_exception: ank = ank_exception; break;
      case sk_field: ank = ank_field; break;
      case sk_file: ank = ank_file; break;
      case sk_function: ank = ank_function; break;
      case sk_label: ank = ank_label; break;
      case sk_package: ank = ank_package; break;
      case sk_plsql_table: ank = ank_plsql_table; break;
      case sk_procedure: ank = ank_procedure; break;
      case sk_record: ank = ank_record; break;
      case sk_savepoint: ank = ank_savepoint; break;
      case sk_schema: ank = ank_schema; break;
      case sk_sequence: ank = ank_sequence; break;
      case sk_string: ank = ank_string; break;
      case sk_table: ank = ank_table; break;
      case sk_trigger: ank = ank_trigger; break;
      case sk_variable: ank = ank_variable; break;
      default: ank = ank_none;
   }
   return (ank);
}
EXTERN_C ast_node_kind ast_sym_kind_map ( sym_kind sk ) { ast_node_kind ank ; switch ( sk ) { case sk_none : ank = ank_none ; break ; case sk_externref : ank = ank_externref ; break ; case sk_record_type : ank = ank_record_type ; break ; case sk_ref_type : ank = ank_ref_type ; break ; case sk_table_type : ank = ank_table_type ; break ; case sk_type : ank = ank_type ; break ; case sk_alias : ank = ank_alias ; break ; case sk_column : ank = ank_column ; break ; case sk_column_alias : ank = ank_column_alias ; break ; case sk_constant : ank = ank_constant ; break ; case sk_context : ank = ank_context ; break ; case sk_cursor : ank = ank_cursor ; break ; case sk_dblink : ank = ank_dblink ; break ; case sk_exception : ank = ank_exception ; break ; case sk_field : ank = ank_field ; break ; case sk_file : ank = ank_file ; break ; case sk_function : ank = ank_function ; break ; case sk_label : ank = ank_label ; break ; case sk_package : ank = ank_package ; break ; case sk_plsql_table : ank = ank_plsql_table ; break ; case sk_procedure : ank = ank_procedure ; break ; case sk_record : ank = ank_record ; break ; case sk_savepoint : ank = ank_savepoint ; break ; case sk_schema : ank = ank_schema ; break ; case sk_sequence : ank = ank_sequence ; break ; case sk_string : ank = ank_string ; break ; case sk_table : ank = ank_table ; break ; case sk_trigger : ank = ank_trigger ; break ; case sk_variable : ank = ank_variable ; break ; default : ank = ank_none ; } return ( ank ) ; }
ast_sym_kind_map - Return ast node kind for passed symbol kind
Used to build a tree node for a symbol.
ast_sym_kind_map - Return ast node kind for passed symbol kind Used to build a tree node for a symbol .