Commits

Ben Langmuir committed 74113f92cee
[syntax-map] Fix array-of-object-literal syntax map, argument label keywords 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