@@ -257,13 +257,15 @@ ERROR(getset_nontrivial_pattern,none,
257
257
" getter/setter can only be defined for a single variable" , ())
258
258
ERROR(expected_rbrace_in_getset,none,
259
259
" expected '}' at end of variable get/set clause" , ())
260
- ERROR(duplicate_property_accessor,none,
261
- " duplicate definition of %0" , (StringRef))
260
+ ERROR(duplicate_accessor,none,
261
+ " %select{variable|subscript}0 already has %1" , (unsigned , StringRef))
262
+ ERROR(conflicting_accessor,none,
263
+ " %select{variable|subscript}0 cannot provide both %1 and %2" ,
264
+ (unsigned , StringRef, StringRef))
265
+ ERROR(modify_mutatingness_different_from_setter,none,
266
+ " mutating-ness of 'modify' accessor cannot differ from setter" , ())
262
267
NOTE(previous_accessor,none,
263
- " previous definition of %0 is here" , (StringRef))
264
- ERROR(conflicting_property_addressor,none,
265
- " %select{variable|subscript}0 already has a "
266
- " %select{addressor|mutable addressor}1" , (unsigned , unsigned ))
268
+ " %select{|previous definition of }1%0 %select{defined |}1here" , (StringRef, bool ))
267
269
ERROR(expected_accessor_name,none,
268
270
" expected %select{%error|setter|%error|willSet|didSet}0 parameter name" ,
269
271
(unsigned ))
@@ -278,32 +280,22 @@ ERROR(expected_lbrace_accessor,PointsToFirstBadToken,
278
280
ERROR(expected_accessor_kw,none,
279
281
" expected 'get', 'set', 'willSet', or 'didSet' keyword to "
280
282
" start an accessor definition" ,())
281
- ERROR(var_set_without_get,none,
282
- " variable with a setter must also have a getter" , ())
283
- ERROR(observingproperty_with_getset,none,
284
- " %select{willSet|didSet}0 variable must not also have a "
285
- " %select{get|set}1 specifier" , (unsigned , unsigned ))
286
- ERROR(observingproperty_with_address,none,
287
- " variable with addressor may not have %select{willSet|didSet}0" ,
288
- (unsigned ))
289
- ERROR(observingproperty_in_subscript,none,
290
- " %select{willSet|didSet}0 is not allowed in subscripts" , (unsigned ))
283
+ ERROR(missing_getter,none,
284
+ " %select{variable|subscript}0 with %1 must also have a getter" ,
285
+ (unsigned , StringRef))
286
+ ERROR(missing_reading_accessor,none,
287
+ " %select{variable|subscript}0 with %1 must also have "
288
+ " a getter or an addressor" ,
289
+ (unsigned , StringRef))
290
+ ERROR(observing_accessor_conflicts_with_accessor,none,
291
+ " %select{'willSet'|'didSet'}0 cannot be provided together with %1" ,
292
+ (unsigned , StringRef))
293
+ ERROR(observing_accessor_in_subscript,none,
294
+ " %select{'willSet'|'didSet'}0 is not allowed in subscripts" , (unsigned ))
291
295
ERROR(getset_init,none,
292
296
" variable with getter/setter cannot have an initial value" , ())
293
297
ERROR(getset_cannot_be_implied,none,
294
298
" variable with implied type cannot have implied getter/setter" , ())
295
- ERROR(mutableaddressor_without_address,none,
296
- " %select{variable|subscript}0 must provide either a getter or "
297
- " 'address' if it provides 'mutableAddress'" , (unsigned ))
298
- ERROR(mutableaddressor_with_setter,none,
299
- " %select{variable|subscript}0 cannot provide both 'mutableAddress' "
300
- " and a setter" , (unsigned ))
301
- ERROR(addressor_with_getter,none,
302
- " %select{variable|subscript}0 cannot provide both 'address' and "
303
- " a getter" , (unsigned ))
304
- ERROR(addressor_with_setter,none,
305
- " %select{variable|subscript}0 cannot provide both 'address' and "
306
- " a setter; use an ordinary getter instead" , (unsigned ))
307
299
ERROR(behavior_multiple_vars,none,
308
300
" applying property behavior with parameter to multiple variables is "
309
301
" not supported" , ())
0 commit comments