Lines Matching defs:setter
889 argument of the setter) can't be a bitfield (as return values
971 " attribute conflicts with %<setter%> attribute");
973 inform (attrs[OBJC_PROPATTR_GROUP_SETTER]->prop_loc, "%<setter%>"
999 In this case, both the variable and the getter/setter must be provided
1076 /* Now determine the final property getter and setter names. They
1080 /* Adjust, or fill in, setter and getter names. We overwrite the
1082 with the final setter and getter identifiers that will be
1086 /* The setter should be terminated by ':', but the parser only
1214 /* We can only compare the setter names if both the old and new property have a setter. */
1220 "%<setter%> attribute of property %qD conflicts with "
1268 readwrite property the setter would have the opposite
1291 new setter name. */
1353 with a getter or setter, we should get the PROPERTY_DECL and use
1365 provided for a 'setter' or 'getter' for 'component' with default
1370 Return NULL_TREE if 'getter' or 'setter' could not be found. */
1378 tree setter = NULL_TREE;
1396 setter = lookup_method_static (interface, setter_name, flags);
1400 if (!getter && !setter)
1407 setter = lookup_method (CLASS_CLS_METHODS (implementation), setter_name);
1412 setter = lookup_method (CLASS_NST_METHODS (implementation), setter_name);
1419 if (!getter && !setter)
1422 setter = lookup_method_in_protocol_list (protocol_list, setter_name, is_class);
1425 /* There needs to be at least a getter or setter for this to be a
1427 if (getter || setter)
1436 type = TREE_VALUE (TREE_TYPE (METHOD_SEL_ARGS (setter)));
1439 information we collected on the type and getter/setter
1453 the getter or setter will be used, so we can't generate an
1470 if (!setter)
1489 setter for it could be found. */
1550 for getter/setter methods and internally declare
1564 eventual existing non-property setter can be used
1567 property, and looking up the setter in the
1606 that they may refer to a setter/getter that is
1683 possible that they may refer to a setter/getter
1734 PROPERTY_REF becomes a 'setter' instead of a 'getter', then
1775 convert it into a setter/getter call on the class. */
1844 error_at (input_location, "could not find setter/getter for %qE in class %qE",
1879 /* This function builds a setter call for a PROPERTY_REF (real, for a
1883 assign to the property. A plain setter call is returned, or
1900 tree setter;
1902 /* TODO: Check that the setter return type is 'void'. */
1905 setter = objc_finish_message_expr (object_expr,
1908 return setter;
1914 generate a 'setter' function call for the property. If this is not
1925 call to the 'setter' method instead. */
1931 /* Building a simple call to the setter method would work for cases such as
1940 compound statement which does the setter call (to set the
1991 /* This happens if building the setter failed because the
2029 'setter' for the property in an appropriate way to build the
2121 /* This happens if building the setter failed because the property
6669 for any @dynamic property with the same setter or getter name
6686 /* If the method is a property setter/getter, we'll still
6692 /* Note that since this is a property getter/setter, it
6804 property with the same setter or getter name as this
7285 /* This routine builds name of the setter synthesized function. */
7542 /* This routine synthesizes a 'setter' method. */
7552 /* If user has implemented a setter with same name then do nothing. */
7557 /* Find declaration of the property setter in the interface (or
7583 prototype for the setter that does not have an argument! */
7587 error_at (DECL_SOURCE_LOCATION (decl), "invalid setter, it must have one argument");
7592 /* Now we need to decide how we build the setter. There are three
7825 'assign', 'nonatomic' because the runtime getter/setter helper
7830 getter/setter because trying to set up the runtime
7831 getter/setter helper calls with bitfields is at high risk
7895 /* Note how we don't actually synthesize the getter/setter here; it
7897 implemented his own getter/setter later on in the @implementation
7898 (in which case we shouldn't generate getter/setter). We wait
8187 /* Now we check that the appropriate setter is declared,
8199 /* The setter name is something like 'setName:'.