FreeBSD/contrib/gcc/cp/parser.c
/* Parse an Objective-C class implementation.  */
Parse an Objective-C class implementation.
Parse an Objective - C class implementation .
static void
cp_parser_objc_class_implementation (cp_parser* parser)
{
  tree name, super, categ;
  bool is_categ;
  cp_lexer_consume_token (parser->lexer);  
  name = cp_parser_identifier (parser);
  cp_parser_objc_superclass_or_category (parser, &super, &categ, &is_categ);
  if (is_categ)
    {
      if (categ == NULL_TREE)
	 {
	error ("cannot implement anonymous category");
	return;
	 }
      objc_start_category_implementation (name, categ);
    }
  else
    {
      objc_start_class_implementation (name, super);
      cp_parser_objc_class_ivars (parser);
      objc_continue_implementation ();
    }
  cp_parser_objc_method_definition_list (parser);
}
static void cp_parser_objc_class_implementation ( cp_parser * parser ) { tree name , super , categ ; bool is_categ ; cp_lexer_consume_token ( parser -> lexer ) ; name = cp_parser_identifier ( parser ) ; cp_parser_objc_superclass_or_category ( parser , & super , & categ , & is_categ ) ; if ( is_categ ) { if ( categ == NULL_TREE ) { error ( " " ) ; return ; } objc_start_category_implementation ( name , categ ) ; } else { objc_start_class_implementation ( name , super ) ; cp_parser_objc_class_ivars ( parser ) ; objc_continue_implementation ( ) ; } cp_parser_objc_method_definition_list ( parser ) ; }
Parse an Objective-C class implementation.
Parse an Objective - C class implementation .
/* APPLE LOCAL radar 4965989 */ /* Eat '@implementation'.  */ /* APPLE LOCAL radar 4965989 */ /* We have either a class or a category on our hands.  */ /* APPLE LOCAL begin radar 4965989 */ /* APPLE LOCAL end radar 4965989 */ /* Handle instance variable declarations, if any.  */