File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -396,7 +396,6 @@ Types
396
396
any-generic-type ::= context decl-name 'V' // nominal struct type
397
397
any-generic-type ::= context decl-name 'XY' // unknown nominal type
398
398
any-generic-type ::= protocol 'P' // nominal protocol type
399
- any-generic-type ::= context decl-name 'a' // typealias type (used in DWARF and USRs)
400
399
401
400
any-generic-type ::= standard-substitutions
402
401
@@ -604,6 +603,17 @@ The number of parameters and results must match with the number of
604
603
``<FUNC-REPRESENTATION> ``.
605
604
The ``<generic-signature> `` is used if the function is polymorphic.
606
605
606
+ DWARF debug info and USRs also mangle sugared types, adding the following
607
+ productions:
608
+
609
+ ::
610
+
611
+ any-generic-type ::= context decl-name 'a' // typealias type
612
+ type ::= base-type "XSq" // sugared Optional type
613
+ type ::= base-type "XSa" // sugared Array type
614
+ type ::= key-type value-type "XSD" // sugared Dictionary type
615
+ type ::= base-type "XSp" // sugared Paren type
616
+
607
617
Generics
608
618
~~~~~~~~
609
619
You can’t perform that action at this time.
0 commit comments