FreeBSD/contrib/gcc/cp/parser.c
/* Pars an Objective-C method prototype list.  */
Pars an Objective-C method prototype list.
Pars an Objective - C method prototype list .
static void
cp_parser_objc_method_prototype_list (cp_parser* parser)
{
  cp_token *token = cp_lexer_peek_token (parser->lexer);
  while (token->keyword != RID_AT_END && token->type != CPP_EOF)
    {
      if (token->type == CPP_PLUS || token->type == CPP_MINUS)
      {
	tree attributes, sig;
	sig = cp_parser_objc_method_signature (parser, &attributes);
	objc_add_method_declaration (sig, attributes);
	cp_parser_consume_semicolon_at_end_of_statement (parser);
      }
      else if (token->keyword == RID_AT_PROPERTY)
	objc_cp_parser_at_property (parser);
      else
	cp_parser_objc_interstitial_code (parser);
      token = cp_lexer_peek_token (parser->lexer);
    }
  cp_parser_require_keyword (parser, RID_AT_END, "`@end'");
  objc_finish_interface ();
}
static void cp_parser_objc_method_prototype_list ( cp_parser * parser ) { cp_token * token = cp_lexer_peek_token ( parser -> lexer ) ; while ( token -> keyword != RID_AT_END && token -> type != CPP_EOF ) { if ( token -> type == CPP_PLUS || token -> type == CPP_MINUS ) { tree attributes , sig ; sig = cp_parser_objc_method_signature ( parser , & attributes ) ; objc_add_method_declaration ( sig , attributes ) ; cp_parser_consume_semicolon_at_end_of_statement ( parser ) ; } else if ( token -> keyword == RID_AT_PROPERTY ) objc_cp_parser_at_property ( parser ) ; else cp_parser_objc_interstitial_code ( parser ) ; token = cp_lexer_peek_token ( parser -> lexer ) ; } cp_parser_require_keyword ( parser , RID_AT_END , " " ) ; objc_finish_interface ( ) ; }
Pars an Objective-C method prototype list.
Pars an Objective - C method prototype list .
/* APPLE LOCAL 4093475 */ /* APPLE LOCAL begin radar 3803157 - objc attribute */ /* APPLE LOCAL end radar 3803157 - objc attribute */ /* APPLE LOCAL begin C* interface */ /* APPLE LOCAL end C* interface */ /* Allow for interspersed non-ObjC++ code.  */ /* APPLE LOCAL 4093475 */