swift
968521c6 - [Completion] Fix trailing closure index check

Commit
1 year ago
[Completion] Fix trailing closure index check `Res.FirstTrailingClosureIndex` is an index into the argument list, so comparing it against a parameter index is wrong. Instead, compare it against the argument index of the completion token, which is what we want to be checking. This ensures we don't try and offer argument completions for non-function default arguments. rdar://127760308
Author
Committer
Parents
Loading