• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/ruby-104/ruby/ext/ripper/

Lines Matching +defs:file +defs:type

33 /* Apple Note: For the avoidance of doubt, Apple elects to distribute this file under the terms of the BSD license. */
329 char *parser_ruby_sourcefile; /* current source file */
423 #define rb_node_newnode(type, a1, a2, a3) node_newnode(parser, (type), (a1), (a2), (a3))
428 #define logop(type,node1,node2) logop_gen(parser, (type), (node1), (node2))
501 #define new_attr_op_assign(lhs, type, attr, op, rhs) new_attr_op_assign_gen(parser, (lhs), (attr), (op), (rhs))
541 static VALUE new_attr_op_assign_gen(struct parser_params *parser, VALUE lhs, VALUE type, VALUE attr, VALUE op, VALUE rhs);
542 #define new_attr_op_assign(lhs, type, attr, op, rhs) new_attr_op_assign_gen(parser, (lhs), (type), (attr), (op), (rhs))
699 # define rb_warn4S(file,line,fmt,a) rb_compile_warn((file), (line), (fmt), (a))
706 # define rb_warn4S(file,line,fmt,a) ripper_warnS(parser, (fmt), (a))
1081 /* A type that is properly aligned for any stack member. */
12072 rb_compile_file(const char *f, VALUE file, int start)
12076 return rb_parser_compile_file(vparser, f, file, start);
12080 rb_parser_compile_file(volatile VALUE vparser, const char *f, VALUE file, int start)
12082 return rb_parser_compile_file_path(vparser, rb_filesystem_str_new_cstr(f), file, start);
12086 rb_parser_compile_file_path(volatile VALUE vparser, VALUE fname, VALUE file, int start)
12093 lex_input = file;
12851 compile_error(PARSER_ARG "unterminated regexp meets end of file");
12856 compile_error(PARSER_ARG "unterminated string meets end of file");
13636 compile_error(PARSER_ARG "embedded document meets end of file");
14358 yyerror("unknown type of %string");
14363 compile_error(PARSER_ARG "unterminated quoted string meets end of file");
14420 yyerror("unknown type of %string");
14735 node_newnode(struct parser_params *parser, enum node_type type, VALUE a0, VALUE a1, VALUE a2)
14737 NODE *n = (rb_node_newnode)(type, a0, a1, a2);
15726 enum node_type type;
15733 switch (type = nd_type(head)) {
15737 type == NODE_DOT3);
15754 enum node_type type;
15758 type = nd_type(node);
15760 if (type == NODE_LIT && FIXNUM_P(node->nd_lit)) {
15853 logop_gen(struct parser_params *parser, enum node_type type, NODE *left, NODE *right)
15856 if (left && (enum node_type)nd_type(left) == type) {
15858 while ((second = node->nd_2nd) != 0 && (enum node_type)nd_type(second) == type) {
15861 node->nd_2nd = NEW_NODE(type, second, right, 0);
15864 return NEW_NODE(type, left, right, 0);
16086 new_attr_op_assign_gen(struct parser_params *parser, VALUE lhs, VALUE type, VALUE attr, VALUE op, VALUE rhs)
16088 VALUE recv = dispatch3(field, lhs, type, attr);
16702 int type = ID_JUNK;
16710 type = ID_GLOBAL;
16711 if (is_special_global_name(++m, e, enc)) return type;
16715 type = ID_INSTANCE;
16718 type = ID_CLASS;
16770 type = rb_enc_isupper(*m, enc) ? ID_CONST : ID_LOCAL;
16778 if (type == ID_GLOBAL || type == ID_CLASS || type == ID_INSTANCE) return -1;
16779 type = ID_JUNK;
16784 if (!(allowed_atttset & (1U << type))) return -1;
16785 type = ID_ATTRSET;
16791 return m == e ? type : -1;
16805 int type = rb_enc_symname_type(ptr, len, rb_enc_get(name), allowed_atttset);
16807 return type;
17601 rb_raise(rb_eArgError, "wrong type of ruby object: %p (%s)",
18082 * after the assignment will be added as an Array of lines with the file