(lib/SymbolGraphGen) incorrect parsing of concrete Self
type tokens in function signatures
#78343
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
triage needed
This issue needs more specific labels
Description
given some input signatures like these:
lib/SymbolGraphGen will not parse the former correctly, it will instead dump something like this:
which contains a garbage
': `Self`'
token.for some reason, the return type is correctly detected and canonicalized from
Self
toStruct
.this only affects non-generic
Self
, truly genericSelf
does not appear to be affected.Reproduction
see above
Expected behavior
there should be a text token containing
': '
and atypeIdentifier
token containingStruct
.Environment
$ swift --version
Swift version 6.0.2 (swift-6.0.2-RELEASE)
Target: x86_64-unknown-linux-gnu
Additional information
No response
The text was updated successfully, but these errors were encountered: