pike.git / src / pike_types.c

version» Context lines:

pike.git/src/pike_types.c:5532:    case T_ARRAY:    if (arg_no < 0) {    type_stack_mark();    push_finished_type(fun = get_argument_type(fun->car, arg_no));    push_type(T_ARRAY);    free_type(fun);    return pop_unfinished_type();    }    return get_argument_type(fun->car, arg_no);    +  case PIKE_T_ATTRIBUTE: +  type_stack_mark(); +  push_finished_type(get_argument_type(fun->cdr, arg_no)); +  push_type_attribute((struct pike_string *)(fun->car)); +  return pop_unfinished_type(); +  +  case PIKE_T_SCOPE: +  case T_ASSIGN: +  case PIKE_T_NAME: +  fun = fun->cdr; +  goto loop; +     default: -  + #if 0 +  fprintf(stderr, +  "Failed to resolve argument type for argument %d.\n" +  "Type: ", +  arg_no); +  simple_describe_type(fun); +  fprintf(stderr, "\n" +  "Node type: %d\n", +  fun->type); + #endif    add_ref(zero_type_string);    return zero_type_string;    }   }      /* Get the resulting type from a soft cast.    *    * Flags:    * 1 SOFT_WEAKER Weaker type.    */