Commits

Xi Ge committed 30c3205c766
[CodeComplete] Adjust the end location of a delayed-parsing var decl. rdar://22981278 Before this commit, for a var decl at top level, code completion engine assumes the code completion token contained in this decl is the end point of the delayed parsing, i.e. the second pass of code completion. This may lead to incomplete ASTs during the second pass, for instance, when the code completion token lies at the second argument of a call expr that takes three arguments. We fix the issue by allowing the first pass to pre-register the end location of a top-level var decl since the first pass is a more error-tolerant and holistic parsing, and the second pass to reuse this loc. Swift SVN r32729