Lines Matching defs:interface
233 @interface, this can be used to determine if we are in the main
234 @interface, or in a class extension. */
770 chain of interface hierarchy. */
849 /* We must be in an interface, category, or protocol. */
852 error_at (location, "property declaration not in %<@interface%>,"
1122 /* Look up the property in the current @interface (which
1128 /* Look up the property in the main @interface, then
1251 property in the main @interface, we'll just update the
1300 list of methods in the interface (and, failing that, the local list
1309 maybe_make_artificial_property_decl (tree interface, tree implementation,
1320 /* First, check the @interface and all superclasses. */
1321 if (interface)
1332 getter = lookup_method_static (interface, getter_name, flags);
1333 setter = lookup_method_static (interface, setter_name, flags);
1355 @interface and in the @implementation. */
1504 interface. */
1543 not declared in the interface, but exists locally
1620 that is not declared in the interface, but exists
1743 error_at (input_location, "could not find interface for class %qE", class_name);
2099 "method declaration not in @interface context");
2260 /* Replace the IDENTIFIER_NODE with an actual @interface now
2562 /* If we could not find an @interface declaration, we must have
2830 objc_get_protocol_qualified_type (tree interface, tree protocols)
2833 tree type = (interface ? objc_is_id (interface) : objc_object_type);
2838 type = objc_is_class_name (interface);
2844 if (TREE_CODE (interface) == IDENTIFIER_NODE)
2845 interface = identifier_global_value (interface);
2847 type = ((interface && TREE_CODE (interface) == TYPE_DECL
2848 && DECL_ORIGINAL_TYPE (interface))
2849 ? DECL_ORIGINAL_TYPE (interface)
2854 /* This case happens when we are given an 'interface' which
2856 used, and 'interface' really is the identifier of the
2895 /* For RECORD_TYPEs, point to the @interface; for 'id' and 'Class',
3058 /* Forward-declare '@interface Protocol'. */
3268 error ("cannot find interface declaration for %qE",
3272 error ("interface %qE does not have valid constant string layout",
3496 the TYPE_OBJC_INTERFACE. If later an @interface is found,
3497 we'll replace the ident with the interface. */
3902 tree interface = objc_map_get (interface_map, ident);
3904 if (interface == OBJC_MAP_NOT_FOUND)
3907 return interface;
3918 tree interface = lookup_interface (class_name);
3920 if (interface)
3921 return get_class_ivars (interface, true);
3923 error ("cannot find interface declaration for %qE",
3958 doing the ivars list inside an @interface context, then return
4016 tree interface;
4017 for (interface = lookup_interface (CLASS_SUPER_NAME (objc_interface_context));
4018 interface; interface = lookup_interface (CLASS_SUPER_NAME (interface)))
4021 for (ivar = CLASS_RAW_IVARS (interface);
4035 tree interface;
4036 for (interface = lookup_interface (CLASS_SUPER_NAME
4038 interface; interface = lookup_interface
4039 (CLASS_SUPER_NAME (interface)))
4042 for (ivar = CLASS_RAW_IVARS (interface); ivar;
4122 tree interface = objc_interface_context;
4125 interface = lookup_interface (CLASS_SUPER_NAME (interface));
4127 for ( ; interface; interface = lookup_interface
4128 (CLASS_SUPER_NAME (interface)))
4147 for (decl = CLASS_RAW_IVARS (interface);
4173 get_class_ivars (tree interface, bool inherited)
4175 tree ivar_chain = copy_list (CLASS_RAW_IVARS (interface));
4181 if (!CLASS_IVARS (interface))
4182 CLASS_IVARS (interface) = ivar_chain;
4187 while (CLASS_SUPER_NAME (interface))
4190 interface = lookup_interface (CLASS_SUPER_NAME (interface));
4191 ivar_chain = chainon (copy_list (CLASS_RAW_IVARS (interface)),
4598 /* The following routine will examine the current @interface for any
5277 about a missing @interface for it. Then, you can do
5470 @interface, if one exists. class_tree is the class name
5484 in [NSObject alloc]. Find the interface corresponding to
5491 we have seen no @interface corresponding to that
5494 alloc], where we've never seen the @interface of
5502 warning (0, "%<@interface%> of class %qE not found",
5511 error ("no super class declared in @interface for %qE",
5587 /* If we could not find an @interface declaration, we must
5597 /* We could not find an @interface declaration, yet, if
5626 /* We could not find an @interface declaration, and
5634 warning, either include an @interface for the
5637 warning (0, "%<@interface%> of class %qE not found", rtype);
5647 @interface. Look up the method name in the published
5648 @interface for the class (and its superclasses). */
5652 /* If the method was not found in the @interface, it may still
5734 that the object will be of at runtime. The @interface(s) for
5737 as non-deprecated in such @interface(s).
5993 lookup_method_static (tree interface, tree ident, int flags)
5996 tree inter = interface;
6066 methods already defined in the interface (or implementation). */
6152 for an @interface for a class or category, or for a
6212 warning (0, "duplicate interface declaration for category %<%E(%E)%>",
6322 @interface X
6496 error ("cannot find interface declaration for %qE",
6556 an @interface or a @protocol) are in IMPLEMENTATION (the
6558 all methods declared in an @interface were implemented in an
6602 'interface' or any of its superclasses. */
6608 tree interface = NULL_TREE;
6611 @interface. */
6614 interface = lookup_interface (CLASS_NAME (implementation));
6617 if (lookup_method (CLASS_NST_METHODS (interface), chain))
6624 if (CLASS_SUPER_NAME (interface))
6625 interface = lookup_interface (CLASS_SUPER_NAME (interface));
6627 interface = NULL_TREE;
6634 interface = lookup_interface (CLASS_SUPER_NAME (implementation));
6636 interface = NULL_TREE;
6639 /* Now, interface is the superclass, if any; go check it. */
6640 if (interface)
6642 if (lookup_method_static (interface, chain, 0))
6791 /* Check whether the current interface (accessible via
6847 /* Check whether the current interface (accessible via
6901 that we must have seen an @interface, not just a @class. If we
6914 error ("cannot find interface declaration for %qE, superclass of %qE",
6969 /* Lookup the interface for this implementation. */
6973 warning (0, "cannot find interface declaration for %qE",
6980 insure it conforms to the one specified in the interface. */
7004 error ("duplicate interface declaration for class %qE", class_name);
7006 warning (0, "duplicate interface declaration for class %qE", class_name);
7045 find the interface so that can derive the objects template. */
7048 error ("cannot find interface declaration for %qE",
7061 interface, and continue working on it. */
7097 find the interface so that can derive the objects template. */
7101 error ("cannot find interface declaration for %qE",
7243 lookup_ivar (tree interface, tree instance_variable_name)
7245 while (interface)
7249 for (decl_chain = CLASS_IVARS (interface); decl_chain; decl_chain = DECL_CHAIN (decl_chain))
7254 if (CLASS_SUPER_NAME (interface))
7255 interface = lookup_interface (CLASS_SUPER_NAME (interface));
7276 /* Find declaration of the property getter in the interface (or
7280 /* If one not declared in the interface, this condition has already
7282 the interface). */
7457 /* Find declaration of the property setter in the interface (or
7461 /* If one not declared in the interface, this condition has already
7463 the interface). */
7636 objc_add_synthesize_declaration_for_property (location_t location, tree interface,
7662 /* Check that the property is declared in the interface. It could
7664 property = lookup_property (interface, property_name);
7668 error_at (location, "no declaration of property %qs found in the interface",
7691 tree ivar = is_ivar (CLASS_IVARS (interface), ivar_name);
7809 tree interface, chain;
7833 interface = lookup_interface (CLASS_NAME (objc_implementation_context));
7834 if (!interface)
7838 "%<@synthesize%> requires the @interface of the class to be available");
7845 objc_add_synthesize_declaration_for_property (location, interface, TREE_VALUE (chain),
7854 objc_add_dynamic_declaration_for_property (location_t location, tree interface,
7879 /* Check that the property is declared in the interface. It could
7881 property = lookup_property (interface, property_name);
7885 error_at (location, "no declaration of property %qs found in the interface",
7918 tree interface, chain;
7940 interface = lookup_interface (CLASS_NAME (objc_implementation_context));
7943 interface = lookup_category (implementation_template,
7950 if (!interface)
7954 "%<@dynamic%> requires the @interface of the class to be available");
7961 objc_add_dynamic_declaration_for_property (location, interface, TREE_VALUE (chain));
7966 current implementation (class or category). CLASS is the interface where
7997 /* This is called once we see the "@end" in an interface/implementation. */
8013 /* Ensure that all method listed in the interface contain bodies. */
8035 /* Ensure all method listed in the interface contain bodies. */
8823 /* If the method in the @interface was deprecated, mark
8830 /* If the method in the @interface was marked as
8839 see a corresponding @interface declaration (which is allowed
8841 the @interface anyway, so that message dispatch lookups
8843 tree interface = implementation_template;
8847 interface = lookup_category
8848 (interface,
8851 if (interface)
8852 objc_add_method (interface, copy_node (method),
8917 error ("no super class declared in interface for %qE",
9166 /* Dump an @interface declaration of the supplied class CHAIN to the
9168 prints out an @interface declaration of all classes compiled in
9182 fprintf (fp, "\n@interface %s", my_name);