@@ -595,7 +595,7 @@ ERROR(ambiguous_module_type,none,
595
595
" ambiguous type name %0 in module %1" , (Identifier, Identifier))
596
596
ERROR(use_nonmatching_operator,none,
597
597
" %0 is not a %select{binary|prefix unary|postfix unary}1 operator" ,
598
- (Identifier , unsigned ))
598
+ (DeclBaseName , unsigned ))
599
599
ERROR(broken_associated_type_witness,none,
600
600
" reference to invalid associated type %0 of type %1" , (DeclName, Type))
601
601
@@ -680,7 +680,7 @@ ERROR(invalid_arg_count_for_operator,none,
680
680
ERROR(operator_in_local_scope,none,
681
681
" operator functions can only be declared at global or in type scope" , ())
682
682
ERROR(nonstatic_operator_in_type,none,
683
- " operator %0 declared in type %1 must be 'static'" , (Identifier , Type))
683
+ " operator %0 declared in type %1 must be 'static'" , (DeclBaseName , Type))
684
684
ERROR(nonfinal_operator_in_class,none,
685
685
" operator %0 declared in non-final class %1 must be 'final'" ,
686
686
(Identifier, Type))
@@ -751,10 +751,10 @@ ERROR(did_not_call_function_value,none,
751
751
())
752
752
ERROR(did_not_call_function,none,
753
753
" function %0 was used as a property; add () to call it" ,
754
- (Identifier ))
754
+ (DeclBaseName ))
755
755
ERROR(did_not_call_method,none,
756
756
" method %0 was used as a property; add () to call it" ,
757
- (Identifier ))
757
+ (DeclBaseName ))
758
758
759
759
ERROR(init_not_instance_member,none,
760
760
" 'init' is a member of the type; use 'type(of: ...)' to initialize "
@@ -810,13 +810,13 @@ ERROR(optional_chain_isnt_chaining,none,
810
810
ERROR(pattern_in_expr,none,
811
811
" %0 cannot appear in an expression" , (PatternKind))
812
812
NOTE(note_call_to_operator,none,
813
- " in call to operator %0" , (Identifier ))
813
+ " in call to operator %0" , (DeclBaseName ))
814
814
NOTE(note_call_to_func,none,
815
- " in call to function %0" , (Identifier ))
815
+ " in call to function %0" , (DeclBaseName ))
816
816
NOTE(note_call_to_initializer,none,
817
817
" in call to initializer" , ())
818
818
NOTE(note_init_parameter,none,
819
- " in initialization of parameter %0" , (Identifier ))
819
+ " in initialization of parameter %0" , (DeclBaseName ))
820
820
821
821
822
822
ERROR(missing_nullary_call,none,
@@ -1561,10 +1561,10 @@ NOTE(optional_req_near_match_accessibility,none,
1561
1561
// Protocols and existentials
1562
1562
ERROR(assoc_type_outside_of_protocol,none,
1563
1563
" associated type %0 can only be used with a concrete type or "
1564
- " generic parameter base" , (Identifier ))
1564
+ " generic parameter base" , (DeclBaseName ))
1565
1565
ERROR(typealias_outside_of_protocol,none,
1566
1566
" type alias %0 can only be used with a concrete type or "
1567
- " generic parameter base" , (Identifier ))
1567
+ " generic parameter base" , (DeclBaseName ))
1568
1568
1569
1569
ERROR(circular_protocol_def,none,
1570
1570
" circular protocol inheritance %0" , (StringRef))
@@ -1617,7 +1617,7 @@ ERROR(requires_same_concrete_type,none,
1617
1617
" generic signature requires types %0 and %1 to be the same" , (Type, Type))
1618
1618
ERROR(protocol_typealias_conflict, none,
1619
1619
" type alias %0 requires types %1 and %2 to be the same" ,
1620
- (Identifier , Type, Type))
1620
+ (DeclBaseName , Type, Type))
1621
1621
WARNING(redundant_conformance_constraint,none,
1622
1622
" redundant conformance constraint %0: %1" , (Type, ProtocolDecl *))
1623
1623
NOTE(redundant_conformance_here,none,
@@ -1713,22 +1713,22 @@ NOTE(multiple_override_prev,none,
1713
1713
" %0 previously overridden here" , (DeclName))
1714
1714
1715
1715
ERROR(override_unavailable,none,
1716
- " cannot override %0 which has been marked unavailable" , (Identifier ))
1716
+ " cannot override %0 which has been marked unavailable" , (DeclBaseName ))
1717
1717
ERROR(override_unavailable_msg, none,
1718
1718
" cannot override %0 which has been marked unavailable: %1" ,
1719
- (Identifier , StringRef))
1719
+ (DeclBaseName , StringRef))
1720
1720
1721
1721
ERROR(override_less_available,none,
1722
1722
" overriding %0 must be as available as declaration it overrides" ,
1723
- (Identifier ))
1723
+ (DeclBaseName ))
1724
1724
1725
1725
ERROR(override_accessor_less_available,none,
1726
1726
" overriding %0 for %1 must be as available as declaration it overrides" ,
1727
- (DescriptiveDeclKind, Identifier ))
1727
+ (DescriptiveDeclKind, DeclBaseName ))
1728
1728
1729
1729
ERROR(override_let_property,none,
1730
1730
" cannot override immutable 'let' property %0 with the getter of a 'var'" ,
1731
- (Identifier ))
1731
+ (DeclBaseName ))
1732
1732
1733
1733
1734
1734
ERROR(override_not_accessible,none,
@@ -1773,12 +1773,12 @@ ERROR(override_property_type_mismatch,none,
1773
1773
" property %0 with type %1 cannot override a property with type %2" ,
1774
1774
(Identifier, Type, Type))
1775
1775
ERROR(override_with_stored_property,none,
1776
- " cannot override with a stored property %0" , (Identifier ))
1776
+ " cannot override with a stored property %0" , (DeclBaseName ))
1777
1777
ERROR(observing_readonly_property,none,
1778
- " cannot observe read-only property %0; it can't change" , (Identifier ))
1778
+ " cannot observe read-only property %0; it can't change" , (DeclBaseName ))
1779
1779
ERROR(override_mutable_with_readonly_property,none,
1780
1780
" cannot override mutable property with read-only property %0" ,
1781
- (Identifier ))
1781
+ (DeclBaseName ))
1782
1782
ERROR(override_argument_name_mismatch,none,
1783
1783
" argument names for %select{method|initializer}0 %1 do not match those "
1784
1784
" of overridden %select{method|initializer}0 %2" ,
@@ -2003,7 +2003,7 @@ ERROR(property_behavior_protocol_no_initStorage,none,
2003
2003
(Type, Type))
2004
2004
ERROR(property_behavior_unknown_requirement,none,
2005
2005
" property behavior protocol %0 has non-behavior requirement %1" ,
2006
- (Identifier, Identifier ))
2006
+ (Identifier, DeclBaseName ))
2007
2007
NOTE(property_behavior_unknown_requirement_here,none,
2008
2008
" declared here" , ())
2009
2009
NOTE(self_conformance_required_by_property_behavior,none,
@@ -2463,21 +2463,21 @@ ERROR(self_assignment_prop,none,
2463
2463
" assigning a property to itself" , ())
2464
2464
ERROR(property_use_in_closure_without_explicit_self,none,
2465
2465
" reference to property %0 in closure requires explicit 'self.' to make"
2466
- " capture semantics explicit" , (Identifier ))
2466
+ " capture semantics explicit" , (DeclBaseName ))
2467
2467
ERROR(method_call_in_closure_without_explicit_self,none,
2468
2468
" call to method %0 in closure requires explicit 'self.' to make"
2469
- " capture semantics explicit" , (Identifier ))
2469
+ " capture semantics explicit" , (DeclBaseName ))
2470
2470
ERROR(implicit_use_of_self_in_closure,none,
2471
2471
" implicit use of 'self' in closure; use 'self.' to make"
2472
2472
" capture semantics explicit" , ())
2473
2473
ERROR(capture_before_declaration,none,
2474
- " cannot capture %0 before it is declared" , (Identifier ))
2474
+ " cannot capture %0 before it is declared" , (DeclBaseName ))
2475
2475
ERROR(transitive_capture_before_declaration,none,
2476
2476
" cannot capture %0, which would use %1 before it is declared" ,
2477
- (Identifier, Identifier ))
2477
+ (DeclBaseName, DeclBaseName ))
2478
2478
NOTE(transitive_capture_through_here,none,
2479
2479
" %0, declared here, captures %1" ,
2480
- (Identifier, Identifier ))
2480
+ (DeclBaseName, DeclBaseName ))
2481
2481
2482
2482
ERROR(closure_implicit_capture_without_noescape,none,
2483
2483
" escaping closures can only capture inout parameters explicitly by value" ,
@@ -2520,18 +2520,18 @@ NOTE(add_self_to_type,none,
2520
2520
2521
2521
WARNING(warn_unqualified_access,none,
2522
2522
" use of %0 treated as a reference to %1 in %2 %3" ,
2523
- (Identifier , DescriptiveDeclKind, DescriptiveDeclKind, DeclName))
2523
+ (DeclBaseName , DescriptiveDeclKind, DescriptiveDeclKind, DeclName))
2524
2524
NOTE(fix_unqualified_access_member,none,
2525
2525
" use 'self.' to silence this warning" , ())
2526
2526
NOTE(fix_unqualified_access_top_level,none,
2527
2527
" use '%0' to reference the %1" ,
2528
- (StringRef, DescriptiveDeclKind, Identifier ))
2528
+ (StringRef, DescriptiveDeclKind, DeclBaseName ))
2529
2529
NOTE(fix_unqualified_access_top_level_multi,none,
2530
2530
" use '%0' to reference the %1 in module %2" ,
2531
- (StringRef, DescriptiveDeclKind, Identifier ))
2531
+ (StringRef, DescriptiveDeclKind, DeclBaseName ))
2532
2532
2533
2533
ERROR(unsupported_special_decl_ref, none,
2534
- " referencing %0 as a function value is not implemented" , (Identifier ))
2534
+ " referencing %0 as a function value is not implemented" , (DeclBaseName ))
2535
2535
2536
2536
WARNING(bitcasting_away_noescape, none,
2537
2537
" 'unsafeBitCast' from non-escaping function type %0 to escaping "
@@ -2614,20 +2614,20 @@ NOTE(silence_optional_in_interpolation_segment_call,none,
2614
2614
2615
2615
ERROR(invalid_noescape_use,none,
2616
2616
" non-escaping %select{value|parameter}1 %0 may only be called" ,
2617
- (Identifier , bool ))
2617
+ (DeclBaseName , bool ))
2618
2618
NOTE(noescape_autoclosure,none,
2619
2619
" parameter %0 is implicitly non-escaping because it was declared @autoclosure" ,
2620
- (Identifier ))
2620
+ (DeclBaseName ))
2621
2621
NOTE(noescape_parameter,none,
2622
2622
" parameter %0 is implicitly non-escaping" ,
2623
- (Identifier ))
2623
+ (DeclBaseName ))
2624
2624
2625
2625
ERROR(closure_noescape_use,none,
2626
2626
" closure use of non-escaping parameter %0 may allow it to escape" ,
2627
- (Identifier ))
2627
+ (DeclBaseName ))
2628
2628
ERROR(decl_closure_noescape_use,none,
2629
2629
" declaration closing over non-escaping parameter %0 may allow it to escape" ,
2630
- (Identifier ))
2630
+ (DeclBaseName ))
2631
2631
ERROR(passing_noescape_to_escaping,none,
2632
2632
" passing non-escaping parameter %0 to function expecting an @escaping closure" ,
2633
2633
(Identifier))
@@ -2640,7 +2640,7 @@ ERROR(general_noescape_to_escaping,none,
2640
2640
2641
2641
ERROR(capture_across_type_decl,none,
2642
2642
" %0 declaration cannot close over value %1 defined in outer scope" ,
2643
- (DescriptiveDeclKind, Identifier ))
2643
+ (DescriptiveDeclKind, DeclBaseName ))
2644
2644
2645
2645
// ------------------------------------------------------------------------------
2646
2646
// Type Check Statements
@@ -3457,12 +3457,12 @@ ERROR(fixed_layout_attr_on_internal_type,
3457
3457
none, " '@_fixed_layout' attribute can only be applied to '@_versioned' "
3458
3458
" or public declarations, but %0 is "
3459
3459
" %select{private|fileprivate|internal|%error|%error}1" ,
3460
- (Identifier , Accessibility))
3460
+ (DeclBaseName , Accessibility))
3461
3461
3462
3462
ERROR(versioned_attr_with_explicit_accessibility,
3463
3463
none, " '@_versioned' attribute can only be applied to internal "
3464
3464
" declarations, but %0 is %select{private|fileprivate|%error|public|open}1" ,
3465
- (Identifier , Accessibility))
3465
+ (DeclBaseName , Accessibility))
3466
3466
3467
3467
ERROR(versioned_attr_in_protocol,none,
3468
3468
" '@_versioned' attribute cannot be used in protocols" , ())
@@ -3507,7 +3507,7 @@ ERROR(inlineable_stored_property,
3507
3507
ERROR(inlineable_decl_not_public,
3508
3508
none, " '@_inlineable' attribute can only be applied to public declarations, "
3509
3509
" but %0 is %select{private|fileprivate|internal|%error|%error}1" ,
3510
- (Identifier , Accessibility))
3510
+ (DeclBaseName , Accessibility))
3511
3511
3512
3512
// ------------------------------------------------------------------------------
3513
3513
// @_specialize diagnostics
0 commit comments