-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start parsing names with argument labels.
Basic implementatation of SE-0021, naming functions with argument labels. Handle parsing of compound function names in various unqualified-identifier productions, updating the AST representation of various expressions from Identifiers to DeclNames. The result doesn't capture all of the source locations we want; more on that later. As part of this, remove the parsing code for the "selector-style" method names, since we now have a replacement. The feature was never publicized and doesn't make sense in Swift, so zap it outright.
- Loading branch information
1 parent
193a285
commit ecfde0e
Showing
19 changed files
with
279 additions
and
184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
1 comment
on commit ecfde0e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DougGregor It looks like this broke the LLDB build. From SwiftASTManipulator.cpp:
swift::Identifier name = decl_ref_expr->getName();
It's using name.str(), etc., so I don't think it's as simple as changing this to a DeclName.
If you're unable to get this fixed up soon I'll revert.
Aside: I think we need a new name for this production. "decl-name"?