[SR-6572] Specialize ExtensionDeclSyntax in libSyntax Parsing #49122
Labels
compiler
The Swift compiler in itself
declarations
Feature: declarations
extension
Feature → declarations: `extension` declarations
† libswiftSyntax
† Area → compiler: the once-integrated C++ Syntax library succeeded by SwiftSyntax
parser
Area → compiler: The legacy C++ parser
task
Additional Detail from JIRA
md5: 0c91fdc7ba3ed9ea78b10c4bea2ed8fd
Issue Description:
Currently, libSyntax parsing doesn't specialize extension declarations, meaning all extension declarations are manifested as UnkownDecl. Since libSyntax clients will very likely interested in specialized analysis on extensions. We need to teach the parser to specialize them.
To demo what we have now:
See that the function decl is specialized however the extension decl is not. The desirable feature will be having extension decls specialized as well. One can follow the patch we specialized struct declaration from: c4604d7
The text was updated successfully, but these errors were encountered: