mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Argument labels are allowed to use keywords, in which case we want to treat them as identifiers in the syntax map (except for '_'). This commit moves calculation of that into the original lexing instead of in the model walker, which makes it much more robust, since the model walker was only guessing about what was next on the the TokenNodes list. This fixes a bug where arrays of object literals would only have the first object correct (the following ones were identifiers), as well as some incorrect cases where we treated keywords as identifiers. rdar://problem/27726422
53 KiB
53 KiB